Files
twenty/server/src/core/@generated/user-settings/user-settings-create-without-user.input.ts
Jérémy M 19e165fc05 feat: implementing experience page (#718)
* 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>
2023-07-18 17:47:27 +00:00

27 lines
698 B
TypeScript

import { Field } from '@nestjs/graphql';
import { InputType } from '@nestjs/graphql';
import { ColorScheme } from '../prisma/color-scheme.enum';
import * as Validator from 'class-validator';
@InputType()
export class UserSettingsCreateWithoutUserInput {
@Field(() => String, {nullable:true})
id?: string;
@Field(() => ColorScheme, {nullable:true})
@Validator.IsString()
@Validator.IsOptional()
colorScheme?: keyof typeof ColorScheme;
@Field(() => String, {nullable:false})
@Validator.IsString()
locale!: string;
@Field(() => Date, {nullable:true})
createdAt?: Date | string;
@Field(() => Date, {nullable:true})
updatedAt?: Date | string;
}