import { ItemsPage2, PagedParams, PartialRecord } from './common'; import { Currency, DayString, Price } from './common-biz'; import { OperationId } from './operations'; import { SecurityEventId } from './securities-events'; import { PortfolioId } from './portfolio'; export type TickerCurrency = string; export type CountPrice = string; export interface AssetsHistoryAccountsData { assetsDict: PartialRecord; balanceInRub: number; } export declare enum AppliedObjectType { operation = "o", event = "e" } export interface AppliedObjectData { appliedCount: number; } export interface AppliedObject { id: OperationId | SecurityEventId | null; type: AppliedObjectType; data?: AppliedObjectData; } export type AssetsHistoryItemId = number; export interface AssetsHistoryItem2 { id: AssetsHistoryItemId; date: Date; appliedObject: AppliedObject; portfolioId: PortfolioId; totalOperations: number; accountsData: AssetsHistoryAccountsData; } export interface TimeLineAsset { ticker: string; basePriceCurrency: Currency; basePrice: number; count: number; price: number | undefined; currency: Currency | undefined; } export type IsPricesMerged = boolean; export type PricesStatuses = PartialRecord; export interface TimeLineData { daysData: TimeLineDayData[]; pricesStatuses: PricesStatuses; } export interface AssetsByCurr { count: number; value: number; valueInRub: number; priceInRub: number; } export interface AssetsTotals { totalsByCurr: PartialRecord; totalInRub: number; } export interface TimeLineDayCalculations { assetsTotals: AssetsTotals; } export interface TimeLineDayData { date: DayString; totalOperations: number; assets: TimeLineAsset[]; balanceInRub: number; calculations?: TimeLineDayCalculations; } export type Ticker = string; export type PricesDictByTicker3 = PartialRecord; export type PricesDictByDate3 = PartialRecord; export declare enum PeriodScale { days = "days", weeks = "weeks", months = "months" } export declare enum AssetsHistoryTableField { date = "date" } export interface AssetsHistorySearchParams { portfolioId?: PortfolioId; type?: AppliedObjectType; } export type AssetsHistoryPagedParams = PagedParams; export type AssetsHistoryIdsItemsPage = ItemsPage2;