import { IsBoolean, IsEnum, IsInt, IsOptional, IsString, Matches, Min } from "class-validator"; import { HH_MM_REGEX } from "src/common/utils/constants.utils"; import { Weekday } from "@prisma/client"; export class SchedulePresetShiftsDto { @IsInt() preset_id!: number; @IsEnum(Weekday) week_day!: Weekday; @IsInt() @Min(1) sort_order!: number; @IsString() type!: string; @IsString() @Matches(HH_MM_REGEX) start_time!: string; @IsString() @Matches(HH_MM_REGEX) end_time!: string; @IsOptional() @IsBoolean() is_remote?: boolean; }