// import { Type } from "class-transformer"; // import { IsArray, IsOptional, IsString, Length, Matches, ValidateNested } from "class-validator"; // export class CreateTimesheetDto { // @IsString() // @Matches(/^\d{4}-\d{2}-\d{2}$/) // date!: string; // @IsString() // @Length(1,64) // type!: string; // @IsString() // @Matches(/^\d{2}:\d{2}$/) // start_time!: string; // @IsString() // @Matches(/^\d{2}:\d{2}$/) // end_time!: string; // @IsOptional() // @IsString() // @Length(0,512) // comment?: string; // } // export class CreateWeekShiftsDto { // @IsArray() // @ValidateNested({each:true}) // @Type(()=> CreateTimesheetDto) // shifts!: CreateTimesheetDto[]; // }