orgnote-api 0.41.7 → 0.41.10
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
|
@@ -136,6 +136,7 @@ export declare enum i18n {
|
|
|
136
136
|
CONFIRM_CLEAR_LOGS = "confirm clear logs",
|
|
137
137
|
SYSTEM_INFO = "system info",
|
|
138
138
|
FONTS = "fonts",
|
|
139
|
+
NOTIFICATIONS = "notifications",
|
|
139
140
|
FILE_DELETED_EXTERNALLY = "file was deleted externally",
|
|
140
141
|
BUFFER_READONLY = "buffer is read-only",
|
|
141
142
|
IMAGE_LOAD_FAILED = "failed to load image",
|
|
@@ -149,6 +150,7 @@ export declare enum i18n {
|
|
|
149
150
|
AUTH_LOGIN_REQUIRED = "login required",
|
|
150
151
|
AUTH_ACTIVATING = "activating",
|
|
151
152
|
AUTH_ENTER_ACTIVATION_KEY = "enter activation key",
|
|
153
|
+
ACTIVATION_FAILED = "activation failed, please check your key and try again",
|
|
152
154
|
AUTH_LOGOUT = "logout",
|
|
153
155
|
AUTH_LOGOUT_DESCRIPTION = "sign out from your account",
|
|
154
156
|
AUTH_LOGIN = "login",
|
|
@@ -407,6 +409,7 @@ export declare const I18N: {
|
|
|
407
409
|
CONFIRM_CLEAR_LOGS: i18n.CONFIRM_CLEAR_LOGS;
|
|
408
410
|
SYSTEM_INFO: i18n.SYSTEM_INFO;
|
|
409
411
|
FONTS: i18n.FONTS;
|
|
412
|
+
NOTIFICATIONS: i18n.NOTIFICATIONS;
|
|
410
413
|
FILE_DELETED_EXTERNALLY: i18n.FILE_DELETED_EXTERNALLY;
|
|
411
414
|
BUFFER_READONLY: i18n.BUFFER_READONLY;
|
|
412
415
|
IMAGE_LOAD_FAILED: i18n.IMAGE_LOAD_FAILED;
|
|
@@ -420,6 +423,7 @@ export declare const I18N: {
|
|
|
420
423
|
AUTH_LOGIN_REQUIRED: i18n.AUTH_LOGIN_REQUIRED;
|
|
421
424
|
AUTH_ACTIVATING: i18n.AUTH_ACTIVATING;
|
|
422
425
|
AUTH_ENTER_ACTIVATION_KEY: i18n.AUTH_ENTER_ACTIVATION_KEY;
|
|
426
|
+
ACTIVATION_FAILED: i18n.ACTIVATION_FAILED;
|
|
423
427
|
AUTH_LOGOUT: i18n.AUTH_LOGOUT;
|
|
424
428
|
AUTH_LOGOUT_DESCRIPTION: i18n.AUTH_LOGOUT_DESCRIPTION;
|
|
425
429
|
AUTH_LOGIN: i18n.AUTH_LOGIN;
|
package/constants/i18n-keys.js
CHANGED
|
@@ -139,6 +139,7 @@ export var i18n;
|
|
|
139
139
|
i18n["CONFIRM_CLEAR_LOGS"] = "confirm clear logs";
|
|
140
140
|
i18n["SYSTEM_INFO"] = "system info";
|
|
141
141
|
i18n["FONTS"] = "fonts";
|
|
142
|
+
i18n["NOTIFICATIONS"] = "notifications";
|
|
142
143
|
// Buffer
|
|
143
144
|
i18n["FILE_DELETED_EXTERNALLY"] = "file was deleted externally";
|
|
144
145
|
i18n["BUFFER_READONLY"] = "buffer is read-only";
|
|
@@ -156,6 +157,7 @@ export var i18n;
|
|
|
156
157
|
i18n["AUTH_LOGIN_REQUIRED"] = "login required";
|
|
157
158
|
i18n["AUTH_ACTIVATING"] = "activating";
|
|
158
159
|
i18n["AUTH_ENTER_ACTIVATION_KEY"] = "enter activation key";
|
|
160
|
+
i18n["ACTIVATION_FAILED"] = "activation failed, please check your key and try again";
|
|
159
161
|
i18n["AUTH_LOGOUT"] = "logout";
|
|
160
162
|
i18n["AUTH_LOGOUT_DESCRIPTION"] = "sign out from your account";
|
|
161
163
|
i18n["AUTH_LOGIN"] = "login";
|
package/models/auth-store.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface AuthStore {
|
|
|
15
15
|
logout: () => Promise<void>;
|
|
16
16
|
verifyUser: () => Promise<void>;
|
|
17
17
|
authUser: (u: PersonalInfo, token: string) => Promise<void>;
|
|
18
|
-
subscribe: (token: string, email?: string) => Promise<
|
|
18
|
+
subscribe: (token: string, email?: string) => Promise<boolean>;
|
|
19
19
|
removeUserAccount: () => Promise<void>;
|
|
20
20
|
}
|
|
21
21
|
export type AuthStoreDefinition = StoreDefinition<AuthStore>;
|
package/models/log.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { type InferOutput } from 'valibot';
|
|
2
|
+
export declare const LOG_LEVEL_SCHEMA: import("valibot").UnionSchema<[import("valibot").LiteralSchema<"error", undefined>, import("valibot").LiteralSchema<"warn", undefined>, import("valibot").LiteralSchema<"info", undefined>, import("valibot").LiteralSchema<"debug", undefined>, import("valibot").LiteralSchema<"trace", undefined>], undefined>;
|
|
3
|
+
export type LogLevel = InferOutput<typeof LOG_LEVEL_SCHEMA>;
|
|
2
4
|
export interface LogRecord {
|
|
3
5
|
id?: number;
|
|
4
6
|
ts: Date;
|
package/models/log.js
CHANGED
|
@@ -30,6 +30,7 @@ export declare const ORG_NOTE_CONFIG_SCHEMA: import("valibot").SchemaWithPipe<re
|
|
|
30
30
|
readonly lightThemeName: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").StringSchema<undefined>, import("valibot").LiteralSchema<any, undefined>], undefined>, undefined>;
|
|
31
31
|
readonly enableAnimations: import("valibot").BooleanSchema<undefined>;
|
|
32
32
|
readonly notificationTimeout: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
33
|
+
readonly minNotificationLevel: import("valibot").OptionalSchema<import("valibot").UnionSchema<[import("valibot").LiteralSchema<"error", undefined>, import("valibot").LiteralSchema<"warn", undefined>, import("valibot").LiteralSchema<"info", undefined>, import("valibot").LiteralSchema<"debug", undefined>, import("valibot").LiteralSchema<"trace", undefined>], undefined>, undefined>;
|
|
33
34
|
readonly persistantPanes: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
34
35
|
readonly persistantPanesSaveDelay: import("valibot").NumberSchema<undefined>;
|
|
35
36
|
readonly dropZoneEdgeRatio: import("valibot").NumberSchema<undefined>;
|
package/models/orgnote-config.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { object, boolean, number, string, union, optional, array, literal, pipe, unknown, objectWithRest, } from 'valibot';
|
|
2
2
|
import { OrgNoteEncryptionSchema } from "./encryption.js";
|
|
3
|
+
import { LOG_LEVEL_SCHEMA } from "./log.js";
|
|
3
4
|
export const ORG_NOTE_CONFIG_SCHEMA = pipe(objectWithRest({
|
|
4
5
|
editor: object({
|
|
5
6
|
showSpecialSymbols: boolean(),
|
|
@@ -31,6 +32,7 @@ export const ORG_NOTE_CONFIG_SCHEMA = pipe(objectWithRest({
|
|
|
31
32
|
lightThemeName: optional(union([string(), literal(null)])),
|
|
32
33
|
enableAnimations: boolean(),
|
|
33
34
|
notificationTimeout: optional(number()),
|
|
35
|
+
minNotificationLevel: optional(LOG_LEVEL_SCHEMA),
|
|
34
36
|
persistantPanes: optional(boolean()),
|
|
35
37
|
persistantPanesSaveDelay: number(),
|
|
36
38
|
dropZoneEdgeRatio: number(),
|