Feature/add support to deactivate x-ray rules (#3537)
* Add support to deactivate X-ray rules * Update changelog
This commit is contained in:
committed by
GitHub
parent
ac5aec9262
commit
2b212078b8
@@ -1,5 +1,7 @@
|
||||
export interface PortfolioReportRule {
|
||||
evaluation: string;
|
||||
evaluation?: string;
|
||||
isActive: boolean;
|
||||
key: string;
|
||||
name: string;
|
||||
value: boolean;
|
||||
value?: boolean;
|
||||
}
|
||||
|
@@ -2,7 +2,8 @@ import {
|
||||
ColorScheme,
|
||||
DateRange,
|
||||
HoldingsViewMode,
|
||||
ViewMode
|
||||
ViewMode,
|
||||
XRayRulesSettings
|
||||
} from '@ghostfolio/common/types';
|
||||
|
||||
export interface UserSettings {
|
||||
@@ -23,4 +24,5 @@ export interface UserSettings {
|
||||
retirementDate?: string;
|
||||
savingsRate?: number;
|
||||
viewMode?: ViewMode;
|
||||
xRayRules?: XRayRulesSettings;
|
||||
}
|
||||
|
@@ -19,6 +19,7 @@ import type { SubscriptionOffer } from './subscription-offer.type';
|
||||
import type { ToggleOption } from './toggle-option.type';
|
||||
import type { UserWithSettings } from './user-with-settings.type';
|
||||
import type { ViewMode } from './view-mode.type';
|
||||
import type { XRayRulesSettings } from './x-ray-rules-settings.type';
|
||||
|
||||
export type {
|
||||
AccessType,
|
||||
@@ -41,5 +42,6 @@ export type {
|
||||
SubscriptionOffer,
|
||||
ToggleOption,
|
||||
UserWithSettings,
|
||||
ViewMode
|
||||
ViewMode,
|
||||
XRayRulesSettings
|
||||
};
|
||||
|
12
libs/common/src/lib/types/x-ray-rules-settings.type.ts
Normal file
12
libs/common/src/lib/types/x-ray-rules-settings.type.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export type XRayRulesSettings = {
|
||||
AccountClusterRiskCurrentInvestment?: RuleSettings;
|
||||
AccountClusterRiskSingleAccount?: RuleSettings;
|
||||
CurrencyClusterRiskBaseCurrencyCurrentInvestment?: RuleSettings;
|
||||
CurrencyClusterRiskCurrentInvestment?: RuleSettings;
|
||||
EmergencyFundSetup?: RuleSettings;
|
||||
FeeRatioInitialInvestment?: RuleSettings;
|
||||
};
|
||||
|
||||
interface RuleSettings {
|
||||
isActive: boolean;
|
||||
}
|
Reference in New Issue
Block a user