Cleanup - unused files / unused exports / duplicate exports
[ProtonMail-WebClient.git] / packages / shared / lib / interfaces / drive / userSettings.ts
blob63a644e6888fa1b5a8aac872cc5f5325f8120191
1 export enum SortSetting {
2     NameAsc = 1,
3     SizeAsc = 2,
4     ModifiedAsc = 4,
5     NameDesc = -1,
6     SizeDesc = -2,
7     ModifiedDesc = -4,
10 export enum LayoutSetting {
11     List = 0,
12     Grid = 1,
15 export type RevisionRetentionDaysSetting = 0 | 7 | 30 | 180 | 365 | 3650;
17 export interface UserSettings {
18     Sort: SortSetting;
19     Layout: LayoutSetting;
20     RevisionRetentionDays: RevisionRetentionDaysSetting;
21     B2BPhotosEnabled: boolean;
24 export interface UserSettingsResponse {
25     UserSettings: { [K in keyof UserSettings]: UserSettings[K] | null };
26     Defaults: {
27         RevisionRetentionDays: UserSettings['RevisionRetentionDays'];
28         B2BPhotosEnabled: UserSettings['B2BPhotosEnabled'];
29     };