import { Expose } from 'class-transformer';
import { IsBoolean, IsDefined, IsInt, IsOptional, IsPositive, IsUUID } from 'class-validator';

export class RecalculateCategorizedHoursVC {
    @IsDefined()
    @IsInt()
    @IsPositive()
    @Expose()
    instanceId!: number;

    @IsDefined()
    @IsUUID('all')
    @Expose()
    categorizedHourId!: string;

    @IsOptional()
    @IsBoolean()
    @Expose()
    dryRun?: boolean;
}
