Browse Source

Setup categories and platforms

pull/7237/head
Thomas Kaul 2 months ago
parent
commit
1606b6f16e
  1. 2
      libs/common/src/lib/interfaces/index.ts
  2. 4
      libs/common/src/lib/interfaces/product.interface.ts
  3. 4
      libs/common/src/lib/types/index.ts

2
libs/common/src/lib/interfaces/index.ts

@ -35,7 +35,7 @@ import type { PortfolioPerformance } from './portfolio-performance.interface';
import type { PortfolioPosition } from './portfolio-position.interface'; import type { PortfolioPosition } from './portfolio-position.interface';
import type { PortfolioReportRule } from './portfolio-report-rule.interface'; import type { PortfolioReportRule } from './portfolio-report-rule.interface';
import type { PortfolioSummary } from './portfolio-summary.interface'; import type { PortfolioSummary } from './portfolio-summary.interface';
import type { Product } from './product'; import type { Product } from './product.interface';
import type { ReferralPartner } from './referral-partner.interface'; import type { ReferralPartner } from './referral-partner.interface';
import type { AccessTokenResponse } from './responses/access-token-response.interface'; import type { AccessTokenResponse } from './responses/access-token-response.interface';
import type { AccountBalancesResponse } from './responses/account-balances-response.interface'; import type { AccountBalancesResponse } from './responses/account-balances-response.interface';

4
libs/common/src/lib/interfaces/product.ts → libs/common/src/lib/interfaces/product.interface.ts

@ -1,5 +1,8 @@
import { ProductCategory, ProductPlatform } from '@ghostfolio/common/types';
export interface Product { export interface Product {
alias?: string; alias?: string;
categories?: ProductCategory[];
founded?: number; founded?: number;
hasFreePlan?: boolean; hasFreePlan?: boolean;
hasSelfHostingAbility?: boolean; hasSelfHostingAbility?: boolean;
@ -10,6 +13,7 @@ export interface Product {
name: string; name: string;
note?: string; note?: string;
origin?: string; origin?: string;
platforms?: ProductPlatform[];
pricingPerYear?: string; pricingPerYear?: string;
regions?: string[]; regions?: string[];
slogan?: string; slogan?: string;

4
libs/common/src/lib/types/index.ts

@ -16,6 +16,8 @@ import type { MarketDataPreset } from './market-data-preset.type';
import type { MarketState } from './market-state.type'; import type { MarketState } from './market-state.type';
import type { Market } from './market.type'; import type { Market } from './market.type';
import type { OrderWithAccount } from './order-with-account.type'; import type { OrderWithAccount } from './order-with-account.type';
import type { ProductCategory } from './product-category.type';
import type { ProductPlatform } from './product-platform.type';
import type { RequestWithUser } from './request-with-user.type'; import type { RequestWithUser } from './request-with-user.type';
import type { SectorName } from './sector-name.type'; import type { SectorName } from './sector-name.type';
import type { SubscriptionOfferKey } from './subscription-offer-key.type'; import type { SubscriptionOfferKey } from './subscription-offer-key.type';
@ -41,6 +43,8 @@ export type {
MarketDataPreset, MarketDataPreset,
MarketState, MarketState,
OrderWithAccount, OrderWithAccount,
ProductCategory,
ProductPlatform,
RequestWithUser, RequestWithUser,
SectorName, SectorName,
SubscriptionOfferKey, SubscriptionOfferKey,

Loading…
Cancel
Save