orgnote-api 0.41.32 → 0.41.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/models/file-meta.d.ts +12 -0
- package/package.json +1 -1
package/models/file-meta.d.ts
CHANGED
|
@@ -3,6 +3,17 @@ export interface FileMetaFilter {
|
|
|
3
3
|
offset?: number;
|
|
4
4
|
tags?: string[];
|
|
5
5
|
}
|
|
6
|
+
export type FileTaskKind = 'list-checkbox' | 'headline-checkbox' | 'headline-todo';
|
|
7
|
+
export type FileTaskState = 'todo' | 'done';
|
|
8
|
+
export interface FileTask {
|
|
9
|
+
id: string;
|
|
10
|
+
kind: FileTaskKind;
|
|
11
|
+
state: FileTaskState;
|
|
12
|
+
text: string;
|
|
13
|
+
line: number;
|
|
14
|
+
start?: number;
|
|
15
|
+
end?: number;
|
|
16
|
+
}
|
|
6
17
|
export interface FileMeta {
|
|
7
18
|
id: string;
|
|
8
19
|
filePath: string[];
|
|
@@ -11,6 +22,7 @@ export interface FileMeta {
|
|
|
11
22
|
tags?: string[];
|
|
12
23
|
links?: string[];
|
|
13
24
|
backlinks?: string[];
|
|
25
|
+
tasks?: FileTask[];
|
|
14
26
|
createdAt?: string;
|
|
15
27
|
updatedAt?: string;
|
|
16
28
|
touchedAt?: string;
|