import { ISO_DATE } from '@humand-packages/common';
import { Expose } from 'class-transformer';
import { IsDefined, IsNumberString, IsOptional, IsString } from 'class-validator';
import { IsValidDate } from '../../../../middlewares/dateValidator';

export class AssignUserWorkScheduleVC {
    @IsDefined()
    @IsNumberString()
    @Expose()
    workScheduleId!: number;

    @IsOptional()
    @IsString()
    @IsValidDate(ISO_DATE)
    @Expose()
    startDate?: string;

    @IsOptional()
    @IsString()
    @IsValidDate(ISO_DATE)
    @Expose()
    endDate?: string;
}
