|
|
@ -2,7 +2,7 @@ import { AssetClass, AssetSubClass, DataSource, Type } from '@prisma/client'; |
|
|
import { JobOptions, JobStatus } from 'bull'; |
|
|
import { JobOptions, JobStatus } from 'bull'; |
|
|
import ms from 'ms'; |
|
|
import ms from 'ms'; |
|
|
|
|
|
|
|
|
import { ColorScheme, DateRange, SectorName } from './types'; |
|
|
import { ColorScheme, DateRange } from './types'; |
|
|
|
|
|
|
|
|
export const ghostfolioPrefix = 'GF'; |
|
|
export const ghostfolioPrefix = 'GF'; |
|
|
export const ghostfolioScraperApiSymbolPrefix = `_${ghostfolioPrefix}_`; |
|
|
export const ghostfolioScraperApiSymbolPrefix = `_${ghostfolioPrefix}_`; |
|
|
@ -55,21 +55,6 @@ export const ASSET_CLASS_MAPPING = new Map<AssetClass, AssetSubClass[]>([ |
|
|
|
|
|
|
|
|
export const BULL_BOARD_COOKIE_NAME = 'bull_board_token'; |
|
|
export const BULL_BOARD_COOKIE_NAME = 'bull_board_token'; |
|
|
|
|
|
|
|
|
export const SECTORS = [ |
|
|
|
|
|
'Basic Materials', |
|
|
|
|
|
'Communication Services', |
|
|
|
|
|
'Consumer Cyclical', |
|
|
|
|
|
'Consumer Defensive', |
|
|
|
|
|
'Energy', |
|
|
|
|
|
'Financial Services', |
|
|
|
|
|
'Healthcare', |
|
|
|
|
|
'Industrials', |
|
|
|
|
|
'Other', |
|
|
|
|
|
'Real Estate', |
|
|
|
|
|
'Technology', |
|
|
|
|
|
'Utilities' |
|
|
|
|
|
] as const satisfies readonly SectorName[]; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* WARNING: This route is mirrored in `apps/client/proxy.conf.json`. |
|
|
* WARNING: This route is mirrored in `apps/client/proxy.conf.json`. |
|
|
* If you update this value, you must also update the proxy configuration. |
|
|
* If you update this value, you must also update the proxy configuration. |
|
|
@ -297,6 +282,21 @@ export const REPLACE_NAME_PARTS = [ |
|
|
'Xtrackers (IE) Plc -' |
|
|
'Xtrackers (IE) Plc -' |
|
|
]; |
|
|
]; |
|
|
|
|
|
|
|
|
|
|
|
export const SECTORS = [ |
|
|
|
|
|
'Basic Materials', |
|
|
|
|
|
'Communication Services', |
|
|
|
|
|
'Consumer Cyclical', |
|
|
|
|
|
'Consumer Defensive', |
|
|
|
|
|
'Energy', |
|
|
|
|
|
'Financial Services', |
|
|
|
|
|
'Healthcare', |
|
|
|
|
|
'Industrials', |
|
|
|
|
|
'Other', |
|
|
|
|
|
'Real Estate', |
|
|
|
|
|
'Technology', |
|
|
|
|
|
'Utilities' |
|
|
|
|
|
] as const; |
|
|
|
|
|
|
|
|
export const STORYBOOK_PATH = '/development/storybook'; |
|
|
export const STORYBOOK_PATH = '/development/storybook'; |
|
|
|
|
|
|
|
|
export const SUPPORTED_LANGUAGE_CODES = [ |
|
|
export const SUPPORTED_LANGUAGE_CODES = [ |
|
|
|