import { IsBoolean, IsEnum, IsInt, IsOptional } from "class-validator";

export enum DisplayLanguage {
    FR = 'fr-FR',
    EN = 'en-CA',
}

export class PreferencesDto {
    @IsInt() id: number;
    @IsBoolean() notifications: boolean;
    @IsOptional() @IsBoolean() is_dark_mode?: boolean | null;
    @IsEnum(DisplayLanguage) display_language: string;
    @IsBoolean() is_lefty_mode: boolean;
    @IsBoolean() is_employee_list_grid: boolean;
    @IsBoolean() is_timesheet_approval_grid: boolean;
}