File

src/admin/dtos/get-registry.dto.ts

Index

Properties

Properties

dataFieldName
Type : string
Decorators :
@ApiProperty({required: true})
@IsString()
dataFieldType
Type : DataFieldType
Decorators :
@ApiProperty({required: true, enumName: 'The registry type', enum: undefined})
@IsEnum(DataFieldType)
id
Type : string
Decorators :
@ApiProperty({required: true})
@IsString()
registryName
Type : RegistryName
Decorators :
@ApiProperty({required: true, enumName: 'The registry name', enum: undefined})
@IsEnum(RegistryName)
import { ApiProperty } from "@nestjs/swagger";
import { IsEnum, IsString } from "class-validator";
import { DataFieldType } from "../EternalRegistry.interface";
import { RegistryName } from "src/common/interfaces";

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

  @ApiProperty({
    required: true,
    enumName: "The registry type",
    enum: [
      "Uint",
      "Bool",
      "String",
      "Bytes",
      "Address",
      "AddressArrayIndexValue",
      "getAddressArray",
    ],
  })
  @IsEnum(DataFieldType)
  dataFieldType: DataFieldType;

  @ApiProperty({ required: true })
  @IsString()
  id: string;

  @ApiProperty({ required: true })
  @IsString()
  dataFieldName: string;
}

results matching ""

    No results matching ""