src/auth/dtos/auth-register-user.dto.ts
Properties |
Type : string
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/auth/dtos/auth-register-user.dto.ts:8
|
| password |
Type : string
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/auth/dtos/auth-register-user.dto.ts:16
|
| address |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
CreateUserDto
|
|
Defined in
CreateUserDto:49
|
| cmsFields |
Type : CmsFieldDTO[]
|
Decorators :
@IsDefined()
|
|
Inherited from
CreateUserDto
|
|
Defined in
CreateUserDto:86
|
| dealerId |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
CreateUserDto
|
|
Defined in
CreateUserDto:79
|
| endUserRole |
Type : EndUserRoles
|
Decorators :
@ApiProperty({enumName: 'End user roles', enum: undefined})
|
|
Inherited from
CreateUserDto
|
|
Defined in
CreateUserDto:71
|
| Optional legalDocuments |
Type : FileDTO
|
Decorators :
@IsOptional()
|
|
Inherited from
CreateUserDto
|
|
Defined in
CreateUserDto:64
|
| name |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
CreateUserDto
|
|
Defined in
CreateUserDto:56
|
| onChainFields |
Type : OnChainFieldDTO[]
|
Decorators :
@IsOptional()
|
|
Inherited from
CreateUserDto
|
|
Defined in
CreateUserDto:94
|
| subscribedBonds |
Type : string[]
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
CreateUserDto
|
|
Defined in
CreateUserDto:42
|
| subscribedFunds |
Type : string[]
|
Decorators :
@ApiProperty({description: 'The id of funds', isArray: true, type: 'string'})
|
|
Inherited from
CreateUserDto
|
|
Defined in
CreateUserDto:34
|
| abaCode |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:74
|
| accountBic |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:39
|
| accountName |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:45
|
| accountNo |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:33
|
| bankAddress |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:15
|
| bankBic |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:27
|
| bankChaps |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:21
|
| bankName |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:9
|
| currency |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:69
|
| ibanNo |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:51
|
| ultimateAccountNo |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Inherited from
BankDetailsDTO
|
|
Defined in
BankDetailsDTO:63
|
| ultimateName |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
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;
}