src/security/dto/create-fund.dto.ts
Properties |
| bankDetails |
Type : BankDetailsDTO
|
Decorators :
@IsDefined()
|
|
Defined in src/security/dto/create-fund.dto.ts:171
|
| brochureFile |
Type : FileDTO
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/security/dto/create-fund.dto.ts:59
|
| cmsFields |
Type : CmsFieldDTO[]
|
Decorators :
@IsDefined()
|
|
Defined in src/security/dto/create-fund.dto.ts:178
|
| disclaimer |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/security/dto/create-fund.dto.ts:117
|
| extraDocumentsFile |
Type : FileDTO
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/security/dto/create-fund.dto.ts:79
|
| fees |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/security/dto/create-fund.dto.ts:98
|
| fundType |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/security/dto/create-fund.dto.ts:126
|
| keyDocumentsFile |
Type : FileDTO
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/security/dto/create-fund.dto.ts:69
|
| location |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/security/dto/create-fund.dto.ts:144
|
| logoFile |
Type : FileDTO
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/security/dto/create-fund.dto.ts:49
|
| longDescription |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/security/dto/create-fund.dto.ts:39
|
| partiesFile |
Type : FileDTO
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/security/dto/create-fund.dto.ts:108
|
| performance |
Type : IReportDTO
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/security/dto/create-fund.dto.ts:154
|
| promotionVideoFile |
Type : FileDTO
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/security/dto/create-fund.dto.ts:89
|
| sector |
Type : string
|
Decorators :
@ApiProperty({type: 'string'})
|
|
Defined in src/security/dto/create-fund.dto.ts:135
|
| shortDescription |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/security/dto/create-fund.dto.ts:32
|
| strategy |
Type : IReportDTO
|
Decorators :
@ApiProperty({required: true})
|
|
Defined in src/security/dto/create-fund.dto.ts:164
|
| title |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/security/dto/create-fund.dto.ts:25
|
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[];
}