You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import { CreateAccountDto } from '@ghostfolio/api/app/account/create-account.dto';
|
|
|
|
import { CreateOrderDto } from '@ghostfolio/api/app/order/create-order.dto';
|
|
|
|
|
|
|
|
import { Type } from 'class-transformer';
|
|
|
|
import { IsArray, IsOptional, ValidateNested } from 'class-validator';
|
|
|
|
|
|
|
|
export class ImportDataDto {
|
|
|
|
@IsOptional()
|
|
|
|
@IsArray()
|
|
|
|
@Type(() => CreateAccountDto)
|
|
|
|
@ValidateNested({ each: true })
|
|
|
|
accounts: CreateAccountDto[];
|
|
|
|
|
|
|
|
@IsArray()
|
|
|
|
@Type(() => CreateOrderDto)
|
|
|
|
@ValidateNested({ each: true })
|
|
|
|
activities: CreateOrderDto[];
|
|
|
|
}
|