import { Expose } from 'class-transformer';
import { ArrayMinSize, IsArray, IsDateString, IsNumber, IsOptional } from 'class-validator';

export default class ListTimeTrackingPoliciesVC {
    @IsOptional()
    @IsDateString()
    @Expose()
    fromDate?: string;

    @IsOptional()
    @IsDateString()
    @Expose()
    toDate?: string;

    @IsOptional()
    @IsArray()
    @ArrayMinSize(1)
    @IsNumber({}, { each: true })
    @Expose()
    userIds?: number[];
}
