File

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

Index

Properties

Properties

Readonly email
Type : string
Decorators :
@IsString()
@IsEmail()
@IsNotEmpty()
@ApiProperty()
Readonly firstName
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@ApiProperty()
Readonly lastName
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@ApiProperty()
Readonly Optional partner
Type : PartnerDto
Decorators :
@ApiPropertyOptional()
@IsOptional()
Readonly password
Type : string
Decorators :
@IsString()
@MinLength(6)
@ApiProperty({minLength: 6})
import { ApiPropertyOptional, ApiProperty } from '@nestjs/swagger';
import { PartnerDto } from 'modules/partner/dtos'
import { IsEmail, IsIn, IsNotEmpty, IsString, MinLength, IsOptional, IsUUID } from 'class-validator';

export class UserPartnerRegisterDto {
  @IsString()
  @IsNotEmpty()
  @ApiProperty()
  readonly firstName: string;

  @IsString()
  @IsNotEmpty()
  @ApiProperty()
  readonly lastName: string;

  @IsString()
  @IsEmail()
  @IsNotEmpty()
  @ApiProperty()
  readonly email: string;

  @ApiPropertyOptional()
  @IsOptional()
  readonly partner?: PartnerDto;

  @IsString()
  @MinLength(6)
  @ApiProperty({ minLength: 6 })
  readonly password: string;

}

result-matching ""

    No results matching ""