orgnote-api 0.40.29 → 0.40.31
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/constants/i18n-keys.d.ts
CHANGED
|
@@ -153,7 +153,9 @@ export declare enum i18n {
|
|
|
153
153
|
AUTH_INVALID_CALLBACK_PARAMS = "invalid authentication callback parameters",
|
|
154
154
|
AUTH_REMOVE_ACCOUNT_DESCRIPTION = "permanently delete your account",
|
|
155
155
|
AUTH_GROUP = "auth",
|
|
156
|
-
TABS_COUNT = "tabsCount"
|
|
156
|
+
TABS_COUNT = "tabsCount",
|
|
157
|
+
TOC_NO_ACTIVE_DOCUMENT = "no active document",
|
|
158
|
+
TOC_NO_HEADLINES_FOUND = "no headlines found"
|
|
157
159
|
}
|
|
158
160
|
export declare const I18N: {
|
|
159
161
|
REPORT_BUG: DefaultCommands.REPORT_BUG;
|
|
@@ -387,5 +389,7 @@ export declare const I18N: {
|
|
|
387
389
|
AUTH_REMOVE_ACCOUNT_DESCRIPTION: i18n.AUTH_REMOVE_ACCOUNT_DESCRIPTION;
|
|
388
390
|
AUTH_GROUP: i18n.AUTH_GROUP;
|
|
389
391
|
TABS_COUNT: i18n.TABS_COUNT;
|
|
392
|
+
TOC_NO_ACTIVE_DOCUMENT: i18n.TOC_NO_ACTIVE_DOCUMENT;
|
|
393
|
+
TOC_NO_HEADLINES_FOUND: i18n.TOC_NO_HEADLINES_FOUND;
|
|
390
394
|
};
|
|
391
395
|
export type I18N = i18n | DefaultCommands;
|
package/constants/i18n-keys.js
CHANGED
|
@@ -162,6 +162,9 @@ export var i18n;
|
|
|
162
162
|
i18n["AUTH_GROUP"] = "auth";
|
|
163
163
|
// Tabs
|
|
164
164
|
i18n["TABS_COUNT"] = "tabsCount";
|
|
165
|
+
// TOC
|
|
166
|
+
i18n["TOC_NO_ACTIVE_DOCUMENT"] = "no active document";
|
|
167
|
+
i18n["TOC_NO_HEADLINES_FOUND"] = "no headlines found";
|
|
165
168
|
})(i18n || (i18n = {}));
|
|
166
169
|
export const I18N = {
|
|
167
170
|
...i18n,
|
package/models/repositories.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ExtensionSource } from './extension.js';
|
|
2
|
-
import { FileInfo } from './file-info.js';
|
|
3
2
|
import { FilePathInfo } from './file-path.js';
|
|
4
3
|
import { LayoutSnapshotRepository } from './layout-snapshot-repository.js';
|
|
5
4
|
import { LoggerRepository } from './log-repository.js';
|
|
@@ -15,19 +14,6 @@ export interface ExtensionSourceRepository {
|
|
|
15
14
|
deleteBySource(source: string): Promise<void>;
|
|
16
15
|
clear(): Promise<void>;
|
|
17
16
|
}
|
|
18
|
-
export interface FileInfoRepository {
|
|
19
|
-
upsert(file: FileInfo): Promise<void>;
|
|
20
|
-
bulkUpsert(file: FileInfo[]): Promise<void>;
|
|
21
|
-
update(filePath: string, file: Partial<FileInfo>): Promise<void>;
|
|
22
|
-
delete(filePath: string): Promise<void>;
|
|
23
|
-
markAsDelete(filePath: string, deletedAt?: Date): Promise<void>;
|
|
24
|
-
clear(): Promise<void>;
|
|
25
|
-
search(text: string): Promise<FileInfo[]>;
|
|
26
|
-
getByPath(path: string): Promise<FileInfo | undefined>;
|
|
27
|
-
getAll(): Promise<FileInfo[]>;
|
|
28
|
-
getFilesAfterUpdateTime(updatedTime?: Date): Promise<FileInfo[]>;
|
|
29
|
-
count(updatedTime?: Date): Promise<number>;
|
|
30
|
-
}
|
|
31
17
|
export interface NoteInfoRepository {
|
|
32
18
|
getNotesAfterUpdateTime(updatedTime?: string): Promise<NoteInfo[]>;
|
|
33
19
|
getDeletedNotes(): Promise<NoteInfo[]>;
|
|
@@ -82,7 +68,6 @@ export interface QueueRepository {
|
|
|
82
68
|
}
|
|
83
69
|
export interface Repositories {
|
|
84
70
|
logRepository: LoggerRepository;
|
|
85
|
-
fileInfoRepository: FileInfoRepository;
|
|
86
71
|
noteInfoRepository: NoteInfoRepository;
|
|
87
72
|
layoutSnapshotRepository: LayoutSnapshotRepository;
|
|
88
73
|
queueRepository: QueueRepository;
|