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

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

    @IsDefined()
    @IsValidDate(ISO_DATE)
    @Expose()
    startDate!: string;

    @IsDefined()
    @IsValidDate(ISO_DATE)
    @Expose()
    endDate!: string;
}
