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.
40 lines
874 B
40 lines
874 B
import {
|
|
Account,
|
|
DataSource,
|
|
Order,
|
|
Platform,
|
|
SymbolProfile,
|
|
Tag
|
|
} from '@prisma/client';
|
|
|
|
import { AccountBalance } from './account-balance.interface';
|
|
import { MarketData } from './market-data.interface';
|
|
|
|
export interface Export {
|
|
accounts: (Omit<Account, 'createdAt' | 'updatedAt' | 'userId'> & {
|
|
balances: AccountBalance[];
|
|
})[];
|
|
activities: (Omit<
|
|
Order,
|
|
| 'accountUserId'
|
|
| 'createdAt'
|
|
| 'date'
|
|
| 'isDraft'
|
|
| 'symbolProfileId'
|
|
| 'updatedAt'
|
|
| 'userId'
|
|
> & { dataSource: DataSource; date: string; symbol: string })[];
|
|
assetProfiles: (Omit<
|
|
SymbolProfile,
|
|
'createdAt' | 'id' | 'updatedAt' | 'userId'
|
|
> & {
|
|
marketData: MarketData[];
|
|
})[];
|
|
meta: {
|
|
date: string;
|
|
version: string;
|
|
};
|
|
platforms: Platform[];
|
|
tags: Omit<Tag, 'userId'>[];
|
|
user: { settings: { currency: string } };
|
|
}
|
|
|