* feat: add color scheme toggle * feat: colorScheme stored in UserSettings model * feat: add stories * fix: AnimatePresence exit not working --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
27 lines
689 B
TypeScript
27 lines
689 B
TypeScript
import { Field } from '@nestjs/graphql';
|
|
import { ObjectType } from '@nestjs/graphql';
|
|
import { ColorScheme } from '../prisma/color-scheme.enum';
|
|
import * as Validator from 'class-validator';
|
|
|
|
@ObjectType()
|
|
export class UserSettingsMaxAggregate {
|
|
|
|
@Field(() => String, {nullable:true})
|
|
id?: string;
|
|
|
|
@Field(() => ColorScheme, {nullable:true})
|
|
@Validator.IsString()
|
|
@Validator.IsOptional()
|
|
colorScheme?: keyof typeof ColorScheme;
|
|
|
|
@Field(() => String, {nullable:true})
|
|
@Validator.IsString()
|
|
locale?: string;
|
|
|
|
@Field(() => Date, {nullable:true})
|
|
createdAt?: Date | string;
|
|
|
|
@Field(() => Date, {nullable:true})
|
|
updatedAt?: Date | string;
|
|
}
|