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;
}
