-
-
Notifications
You must be signed in to change notification settings - Fork 746
/
sync.model.ts
54 lines (49 loc) · 1.83 KB
/
sync.model.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import {ProjectState} from '../../features/project/store/project.reducer';
import {GlobalConfigState} from '../../features/config/global-config.model';
import {TaskArchive, TaskState} from '../../features/tasks/task.model';
import {BookmarkState} from '../../features/bookmark/store/bookmark.reducer';
import {NoteState} from '../../features/note/store/note.reducer';
import {TagState} from '../../features/tag/store/tag.reducer';
import {Reminder} from '../../features/reminder/reminder.model';
import {ProjectArchive} from '../../features/project/project.model';
import {MetricState} from '../../features/metric/metric.model';
import {ImprovementState} from '../../features/metric/improvement/improvement.model';
import {ObstructionState} from '../../features/metric/obstruction/obstruction.model';
import {TaskRepeatCfgState} from '../../features/task-repeat-cfg/task-repeat-cfg.model';
import {AttachmentState} from '../../features/attachment/store/attachment.reducer';
import {WorkContextState} from '../../features/work-context/work-context.model';
export interface AppBaseData {
project: ProjectState;
archivedProjects: ProjectArchive;
globalConfig: GlobalConfigState;
reminders?: Reminder[];
task: TaskState;
tag: TagState;
taskArchive: TaskArchive;
taskAttachment: AttachmentState;
context: WorkContextState;
}
// NOTE: [key:string] always refers to projectId
export interface AppDataForProjects {
note?: {
[key: string]: NoteState;
};
bookmark?: {
[key: string]: BookmarkState;
};
taskRepeatCfg?: {
[key: string]: TaskRepeatCfgState;
};
metric?: {
[key: string]: MetricState;
};
improvement?: {
[key: string]: ImprovementState;
};
obstruction?: {
[key: string]: ObstructionState;
};
}
export interface AppDataComplete extends AppBaseData, AppDataForProjects {
lastActiveTime: number;
}