Feature/eliminate circular dependencies in common library (#896)
* Eliminate circular dependencies * Update changelog
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export interface HistoricalDataItem {
|
||||
averagePrice?: number;
|
||||
date: string;
|
||||
grossPerformancePercent?: number;
|
||||
value: number;
|
||||
}
|
@@ -9,6 +9,7 @@ import {
|
||||
import { Coupon } from './coupon.interface';
|
||||
import { Export } from './export.interface';
|
||||
import { Filter } from './filter.interface';
|
||||
import { HistoricalDataItem } from './historical-data-item.interface';
|
||||
import { InfoItem } from './info-item.interface';
|
||||
import { PortfolioChart } from './portfolio-chart.interface';
|
||||
import { PortfolioDetails } from './portfolio-details.interface';
|
||||
@@ -40,6 +41,7 @@ export {
|
||||
Coupon,
|
||||
Export,
|
||||
Filter,
|
||||
HistoricalDataItem,
|
||||
InfoItem,
|
||||
PortfolioChart,
|
||||
PortfolioDetails,
|
||||
|
@@ -1,4 +1,4 @@
|
||||
import { HistoricalDataItem } from '@ghostfolio/api/app/portfolio/interfaces/portfolio-position-detail.interface';
|
||||
import { HistoricalDataItem } from './historical-data-item.interface';
|
||||
|
||||
export interface PortfolioChart {
|
||||
hasError: boolean;
|
||||
|
@@ -1,7 +1,6 @@
|
||||
import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
|
||||
import { AssetClass, AssetSubClass, DataSource } from '@prisma/client';
|
||||
|
||||
import { Market } from '../types';
|
||||
import { Market, MarketState } from '../types';
|
||||
import { Country } from './country.interface';
|
||||
import { Sector } from './sector.interface';
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import { MarketState } from '@ghostfolio/api/services/interfaces/interfaces';
|
||||
import { AssetClass, DataSource } from '@prisma/client';
|
||||
import { MarketState } from '../types';
|
||||
|
||||
export interface Position {
|
||||
assetClass: AssetClass;
|
||||
|
@@ -1,10 +1,12 @@
|
||||
import { Access } from '@ghostfolio/api/app/user/interfaces/access.interface';
|
||||
import { Account, Tag } from '@prisma/client';
|
||||
|
||||
import { UserSettings } from './user-settings.interface';
|
||||
|
||||
export interface User {
|
||||
access: Access[];
|
||||
access: {
|
||||
alias?: string;
|
||||
id: string;
|
||||
}[];
|
||||
accounts: Account[];
|
||||
alias?: string;
|
||||
id: string;
|
||||
|
@@ -2,6 +2,7 @@ import type { AccessWithGranteeUser } from './access-with-grantee-user.type';
|
||||
import { AccountWithValue } from './account-with-value.type';
|
||||
import type { DateRange } from './date-range.type';
|
||||
import type { Granularity } from './granularity.type';
|
||||
import { MarketState } from './market-state-type';
|
||||
import { Market } from './market.type';
|
||||
import type { OrderWithAccount } from './order-with-account.type';
|
||||
import type { RequestWithUser } from './request-with-user.type';
|
||||
@@ -13,6 +14,7 @@ export type {
|
||||
DateRange,
|
||||
Granularity,
|
||||
Market,
|
||||
MarketState,
|
||||
OrderWithAccount,
|
||||
RequestWithUser,
|
||||
ToggleOption
|
||||
|
1
libs/common/src/lib/types/market-state-type.ts
Normal file
1
libs/common/src/lib/types/market-state-type.ts
Normal file
@@ -0,0 +1 @@
|
||||
export type MarketState = 'closed' | 'delayed' | 'open';
|
Reference in New Issue
Block a user