mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
927 B
54 lines
927 B
import type { Appearance, DateRange, ViewMode } from '@ghostfolio/common/types';
|
|
import {
|
|
IsBoolean,
|
|
IsIn,
|
|
IsNumber,
|
|
IsOptional,
|
|
IsString
|
|
} from 'class-validator';
|
|
|
|
export class UpdateUserSettingDto {
|
|
@IsIn(<Appearance[]>['DARK', 'LIGHT'])
|
|
@IsOptional()
|
|
appearance?: Appearance;
|
|
|
|
@IsOptional()
|
|
@IsString()
|
|
baseCurrency?: string;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
benchmark?: string;
|
|
|
|
@IsIn(<DateRange[]>['1d', '1y', '5y', 'max', 'ytd'])
|
|
@IsOptional()
|
|
dateRange?: DateRange;
|
|
|
|
@IsNumber()
|
|
@IsOptional()
|
|
emergencyFund?: number;
|
|
|
|
@IsBoolean()
|
|
@IsOptional()
|
|
isExperimentalFeatures?: boolean;
|
|
|
|
@IsBoolean()
|
|
@IsOptional()
|
|
isRestrictedView?: boolean;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
language?: string;
|
|
|
|
@IsString()
|
|
@IsOptional()
|
|
locale?: string;
|
|
|
|
@IsNumber()
|
|
@IsOptional()
|
|
savingsRate?: number;
|
|
|
|
@IsIn(<ViewMode[]>['DEFAULT', 'ZEN'])
|
|
@IsOptional()
|
|
viewMode?: ViewMode;
|
|
}
|
|
|