36 lines
470 B
TypeScript
36 lines
470 B
TypeScript
import {
|
|
IsEmail,
|
|
IsNotEmpty,
|
|
IsBoolean,
|
|
IsOptional,
|
|
IsString,
|
|
} from 'class-validator';
|
|
|
|
export class RegisterDto {
|
|
@IsEmail()
|
|
email: string;
|
|
|
|
@IsNotEmpty()
|
|
password: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
name?: string;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
surname?: string;
|
|
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
TermsAndConditions?: boolean;
|
|
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
PrivacyPolicy?: boolean;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
Platform?: string;
|
|
}
|