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.
30 lines
625 B
30 lines
625 B
import { AssetClass, AssetSubClass, Prisma } from '@prisma/client';
|
|
import { 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;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
name?: string;
|
|
|
|
@IsObject()
|
|
@IsOptional()
|
|
scraperConfiguration?: Prisma.InputJsonObject;
|
|
|
|
@IsObject()
|
|
@IsOptional()
|
|
symbolMapping?: {
|
|
[dataProvider: string]: string;
|
|
};
|
|
}
|
|
|