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

export class GetPublicCalendarAPIRequestVC {
    @IsDefined()
    @IsString()
    @Expose()
    employeeId!: string;

    @IsOptional()
    @IsValidDate(ISO_DATE)
    @Expose()
    dateFrom?: string;

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