import { Expose } from 'class-transformer';
import { IsDefined, IsIn, IsNumberString, IsString } from 'class-validator';
import { AllowRawText } from '../../../../middlewares/classTransformers/allowRawText';

export class TimeTrackingKioskLinkValidateCodeVC {
    @IsDefined()
    @IsString()
    @Expose()
    @AllowRawText()
    code!: string;

    @IsDefined()
    @IsNumberString()
    @Expose()
    id!: number;

    @IsDefined()
    @IsString()
    @Expose()
    @IsIn(['humand-time-tracking-kiosk-vc'], { message: 'Verification code does not match.' })
    verificationCode!: string;
}
