-
-
Notifications
You must be signed in to change notification settings - Fork 92
Expand file tree
/
Copy pathquery.ts
More file actions
38 lines (35 loc) · 621 Bytes
/
query.ts
File metadata and controls
38 lines (35 loc) · 621 Bytes
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
export enum SortingVariant {
Priority = 0,
PriorityAscending = 1,
Date = 2,
DateDescending = 3,
Order = 4,
DateAdded = 5,
DateAddedDescending = 6,
Alphabetical = 7,
AlphabeticalDescending = 8,
}
export enum ShowMetadataVariant {
Due = 0,
Project = 1,
Labels = 2,
Description = 3,
Deadline = 4,
Time = 5,
}
export enum GroupVariant {
None = 0,
Project = 1,
Section = 2,
Priority = 3,
Date = 4,
Label = 5,
}
export type Query = {
name: string;
filter: string;
autorefresh: number;
sorting: SortingVariant[];
show: Set<ShowMetadataVariant>;
groupBy: GroupVariant;
};