File

src/auth/dtos/auth-register-user.dto.ts

Extends

CreateUserDto

Index

Properties

Properties

email
Type : string
Decorators :
@ApiProperty({required: true})
@IsEmail()
password
Type : string
Decorators :
@ApiProperty({required: true})
@Matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$&+,:;=?@#|'<>.^*()%!-])[^\s]{8,}$/, {message: 'invalid password'})
address
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@MinLength(3)
@MaxLength(300)
@IsOptional()
Inherited from CreateUserDto
Defined in CreateUserDto:49
cmsFields
Type : CmsFieldDTO[]
Decorators :
@IsDefined()
@IsArray()
@ArrayUnique()
@ValidateNested()
@Type(undefined)
Inherited from CreateUserDto
Defined in CreateUserDto:86
dealerId
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
@MaxLength(300)
@IsOptional()
Inherited from CreateUserDto
Defined in CreateUserDto:79
endUserRole
Type : EndUserRoles
Decorators :
@ApiProperty({enumName: 'End user roles', enum: undefined})
@IsEnum(EndUserRoles)
Inherited from CreateUserDto
Defined in CreateUserDto:71
Optional legalDocuments
Type : FileDTO
Decorators :
@IsOptional()
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
Inherited from CreateUserDto
Defined in CreateUserDto:64
name
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
@MaxLength(300)
Inherited from CreateUserDto
Defined in CreateUserDto:56
onChainFields
Type : OnChainFieldDTO[]
Decorators :
@IsOptional()
@IsDefined()
@IsArray()
@ArrayUnique()
@ValidateNested()
@Type(undefined)
Inherited from CreateUserDto
Defined in CreateUserDto:94
subscribedBonds
Type : string[]
Decorators :
@ApiProperty({type: 'string'})
@IsArray()
@ArrayNotEmpty()
@ArrayUnique()
@IsOptional()
@IsString({each: true})
Inherited from CreateUserDto
Defined in CreateUserDto:42
subscribedFunds
Type : string[]
Decorators :
@ApiProperty({description: 'The id of funds', isArray: true, type: 'string'})
@IsArray()
@ArrayUnique()
@IsString({each: true})
Inherited from CreateUserDto
Defined in CreateUserDto:34
abaCode
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsOptional()
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:74
accountBic
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:39
accountName
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:45
accountNo
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:33
bankAddress
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:15
bankBic
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:27
bankChaps
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:21
bankName
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:9
currency
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:69
ibanNo
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:51
ultimateAccountNo
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:63
ultimateName
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
Inherited from BankDetailsDTO
Defined in BankDetailsDTO:57
import { ApiProperty } from "@nestjs/swagger";
import { IsEmail, Matches } from "class-validator";
import { CreateUserDto } from "src/user/dto/create-user.dto";

export class AuthRegisterUserDto extends CreateUserDto {
  @ApiProperty({ required: true })
  @IsEmail()
  email: string;

  /* Minimum eight characters, at least one uppercase letter, one lowercase letter, one number, and one special character */
  @ApiProperty({ required: true })
  @Matches(
    /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[$&+,:;=?@#|'<>.^*()%!-])[^\s]{8,}$/,
    { message: "invalid password" },
  )
  password: string;
}

results matching ""

    No results matching ""