File

src/security/dto/create-fund.dto.ts

Index

Properties

Properties

bankDetails
Type : BankDetailsDTO
Decorators :
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
brochureFile
Type : FileDTO
Decorators :
@ApiProperty({required: true})
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
cmsFields
Type : CmsFieldDTO[]
Decorators :
@IsDefined()
@IsArray()
@ArrayUnique()
@ValidateNested()
@Type(undefined)
disclaimer
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(30000)
extraDocumentsFile
Type : FileDTO
Decorators :
@ApiProperty({required: true})
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
fees
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(1)
@MaxLength(10)
fundType
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(30)
keyDocumentsFile
Type : FileDTO
Decorators :
@ApiProperty({required: true})
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
location
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(30)
logoFile
Type : FileDTO
Decorators :
@ApiProperty({required: true})
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
longDescription
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(300)
partiesFile
Type : FileDTO
Decorators :
@ApiProperty({required: true})
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
performance
Type : IReportDTO
Decorators :
@ApiProperty({required: true})
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
promotionVideoFile
Type : FileDTO
Decorators :
@ApiProperty({required: true})
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
sector
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(30)
shortDescription
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(300)
strategy
Type : IReportDTO
Decorators :
@ApiProperty({required: true})
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
title
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
@MinLength(5)
@MaxLength(300)
import { ApiProperty } from "@nestjs/swagger";
import { Type } from "class-transformer";
import {
  IsNotEmpty,
  IsString,
  MaxLength,
  MinLength,
  IsObject,
  IsNotEmptyObject,
  IsArray,
  IsDefined,
  ValidateNested,
  ArrayUnique,
} from "class-validator";
import { BankDetailsDTO } from "src/shared/dto/bank-details.dto";
import { CmsFieldDTO } from "src/shared/dto/cmsField.dto";
import { FileDTO, IReportDTO } from "src/shared/dto/file.dto";

export class CreateFundDto {
  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(300)
  title: string;

  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(300)
  shortDescription: string;

  @ApiProperty()
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(300)
  longDescription: string;

  @ApiProperty({
    required: true,
  })
  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => FileDTO)
  logoFile: FileDTO;

  @ApiProperty({
    required: true,
  })
  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => FileDTO)
  brochureFile: FileDTO;

  @ApiProperty({
    required: true,
  })
  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => FileDTO)
  keyDocumentsFile: FileDTO;

  @ApiProperty({
    required: true,
  })
  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => FileDTO)
  extraDocumentsFile: FileDTO;

  @ApiProperty({
    required: true,
  })
  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => FileDTO)
  promotionVideoFile: FileDTO;

  @ApiProperty({
    type: "string",
  })
  @IsString()
  @IsNotEmpty()
  @MinLength(1)
  @MaxLength(10)
  fees: string;

  @ApiProperty({
    required: true,
  })
  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => FileDTO)
  partiesFile: FileDTO;

  @ApiProperty({
    type: "string",
  })
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(30000)
  disclaimer: string;

  @ApiProperty({
    type: "string",
  })
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(30)
  fundType: string;

  @ApiProperty({
    type: "string",
  })
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(30)
  sector: string;

  @ApiProperty({
    type: "string",
  })
  @IsString()
  @IsNotEmpty()
  @MinLength(5)
  @MaxLength(30)
  location: string;

  @ApiProperty({
    required: true,
  })
  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => IReportDTO)
  performance: IReportDTO;

  @ApiProperty({
    required: true,
  })
  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => IReportDTO)
  strategy: IReportDTO;

  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => BankDetailsDTO)
  bankDetails: BankDetailsDTO;

  @IsDefined()
  @IsArray()
  @ArrayUnique()
  @ValidateNested()
  @Type(() => CmsFieldDTO)
  cmsFields: CmsFieldDTO[];
}

results matching ""

    No results matching ""