Files
dyolink/backend/src/modules/staff/dto/accept-staff-invite.dto.ts

17 lines
445 B
TypeScript
Raw Normal View History

import { IsString, MinLength } from 'class-validator';
import { ErrorCode } from '../../../common/errors';
export class AcceptStaffInviteDto {
@IsString()
@MinLength(1, { message: ErrorCode.VALIDATION_TOKEN_REQUIRED })
token: string;
@IsString()
@MinLength(8, { message: ErrorCode.VALIDATION_PASSWORD_TOO_SHORT })
password: string;
@IsString()
@MinLength(1, { message: ErrorCode.VALIDATION_NAME_TOO_SHORT })
name: string;
}