|
|
|
@ -5,6 +5,7 @@ import type { |
|
|
|
HoldingsViewMode, |
|
|
|
ViewMode |
|
|
|
} from '@ghostfolio/common/types'; |
|
|
|
import { PerformanceCalculationType } from '@ghostfolio/common/types/performance-calculation-type.type'; |
|
|
|
import { IsCurrencyCode } from '@ghostfolio/common/validators/is-currency-code'; |
|
|
|
|
|
|
|
import { |
|
|
|
@ -96,6 +97,10 @@ export class UpdateUserSettingDto { |
|
|
|
@IsOptional() |
|
|
|
locale?: string; |
|
|
|
|
|
|
|
@IsIn([PerformanceCalculationType.ROAI, PerformanceCalculationType.ROI]) |
|
|
|
@IsOptional() |
|
|
|
performanceCalculationType?: PerformanceCalculationType; |
|
|
|
|
|
|
|
/** |
|
|
|
* The target financial amount the user aims to reach before retiring. |
|
|
|
* Can be explicitly set to null to clear the value and calculate it dynamically. |
|
|
|
|