mirror of https://github.com/ghostfolio/ghostfolio
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.
48 lines
828 B
48 lines
828 B
import { AssetClass, AssetSubClass, Prisma } from '@prisma/client';
|
|
import {
|
|
IsArray,
|
|
IsEnum,
|
|
IsObject,
|
|
IsOptional,
|
|
IsString
|
|
} from 'class-validator';
|
|
|
|
export class UpdateAssetProfileDto {
|
|
@IsEnum(AssetClass, { each: true })
|
|
@IsOptional()
|
|
assetClass?: AssetClass;
|
|
|
|
@IsEnum(AssetSubClass, { each: true })
|
|
@IsOptional()
|
|
assetSubClass?: AssetSubClass;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
comment?: string;
|
|
|
|
@IsArray()
|
|
@IsOptional()
|
|
countries?: Prisma.InputJsonArray;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
currency?: string;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
name?: string;
|
|
|
|
@IsObject()
|
|
@IsOptional()
|
|
scraperConfiguration?: Prisma.InputJsonObject;
|
|
|
|
@IsArray()
|
|
@IsOptional()
|
|
sectors?: Prisma.InputJsonArray;
|
|
|
|
@IsObject()
|
|
@IsOptional()
|
|
symbolMapping?: {
|
|
[dataProvider: string]: string;
|
|
};
|
|
}
|
|
|