File

src/profile/dto/dynamicfields-investor.dto.ts

Index

Properties

Properties

registries
Type : BatchRegistry[]
Decorators :
@ApiProperty()
@IsArray()
@IsNotEmpty()
registryName
Type : RegistryName
Decorators :
@ApiProperty({required: true, enumName: 'The registry name', enum: undefined})
@IsEnum(RegistryName)
import { ApiProperty } from "@nestjs/swagger";
import { IsArray, IsEnum, IsNotEmpty } from "class-validator";
import { BatchRegistry, RegistryName } from "src/common/interfaces";

export class DynamicFieldsDto {
  @ApiProperty()
  @IsArray()
  @IsNotEmpty()
  registries: BatchRegistry[];

  @ApiProperty({
    required: true,
    enumName: "The registry name",
    enum: [
      "DealerRegistry",
      "InvestorRegistry",
      "fundRegistry",
      "InstrumentRegistry",
    ],
  })
  @IsEnum(RegistryName)
  registryName: RegistryName;
}

results matching ""

    No results matching ""