2026-04-30 12:55:39 +03:30
|
|
|
import { IsString, MinLength } from 'class-validator';
|
2026-07-12 18:27:38 +03:30
|
|
|
import { ErrorCode } from '../../../common/errors';
|
2026-04-30 12:55:39 +03:30
|
|
|
|
|
|
|
|
export class AcceptStaffInviteDto {
|
|
|
|
|
@IsString()
|
2026-07-12 18:27:38 +03:30
|
|
|
@MinLength(1, { message: ErrorCode.VALIDATION_TOKEN_REQUIRED })
|
2026-04-30 12:55:39 +03:30
|
|
|
token: string;
|
|
|
|
|
|
|
|
|
|
@IsString()
|
2026-07-12 18:27:38 +03:30
|
|
|
@MinLength(8, { message: ErrorCode.VALIDATION_PASSWORD_TOO_SHORT })
|
2026-04-30 12:55:39 +03:30
|
|
|
password: string;
|
|
|
|
|
|
|
|
|
|
@IsString()
|
2026-07-12 18:27:38 +03:30
|
|
|
@MinLength(1, { message: ErrorCode.VALIDATION_NAME_TOO_SHORT })
|
2026-04-30 12:55:39 +03:30
|
|
|
name: string;
|
|
|
|
|
}
|