File

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

Index

Properties

Properties

Readonly address
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@ApiProperty()
Readonly adminEmail
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@IsEmail()
@ApiProperty()
Readonly adminFirstName
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@ApiProperty()
Readonly adminLastName
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@ApiProperty()
Readonly Optional adminPassword
Type : string
Decorators :
@IsString()
@ApiProperty()
@MinLength(6)
@ApiProperty({minLength: 6})
@IsOptional()
Readonly contact
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@ApiProperty()
Readonly email
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@IsEmail()
@ApiProperty()
Readonly name
Type : string
Decorators :
@IsString()
@IsNotEmpty()
@ApiProperty()
import { ApiProperty } from '@nestjs/swagger';
import { IsEmail, IsNotEmpty, IsString, MinLength, IsOptional } from 'class-validator';


export class PartnerRegisterDto {
  @IsString()
  @IsNotEmpty()
  @ApiProperty()
  readonly name: string;

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

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

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

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

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

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

  @IsString()
  @ApiProperty()
  @MinLength(6)
  @ApiProperty({ minLength: 6 })
  @IsOptional()
  readonly adminPassword?: string;
}

result-matching ""

    No results matching ""