import { Expose, Type } from 'class-transformer';
import { IsArray, ArrayMaxSize, IsDefined, ValidateNested } from 'class-validator';
import { TimeTrackingKioskPinBulkUpsertUserVC } from './timeTrackingKioskPinBulkUpsertUserVC';

export class TimeTrackingKioskPinBulkUpsertVC {
    @IsDefined()
    @IsArray()
    @ArrayMaxSize(1000, { message: 'A maximum of 1000 users can be submitted per request.' })
    @ValidateNested({ each: true })
    @Type(() => TimeTrackingKioskPinBulkUpsertUserVC)
    @Expose()
    users!: TimeTrackingKioskPinBulkUpsertUserVC[];
}
