orgnote-api 0.41.29 → 0.41.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.
@@ -185,7 +185,9 @@ export declare enum i18n {
185
185
  NOTE_INFO_LAST_OPENED = "note info last opened",
186
186
  NOTE_INFO_LAST_SYNC = "note info last sync",
187
187
  GPG_EMAIL_REQUIRED = "gpg email required",
188
- GPG_EMAIL_INVALID = "gpg email invalid"
188
+ GPG_EMAIL_INVALID = "gpg email invalid",
189
+ CLEAR_ALL_NOTIFICATIONS = "clear all notifications",
190
+ NO_NOTIFICATIONS = "no notifications"
189
191
  }
190
192
  export declare const I18N: {
191
193
  REPORT_BUG: DefaultCommands.REPORT_BUG;
@@ -291,6 +293,7 @@ export declare const I18N: {
291
293
  COPY_COMMAND_URL: DefaultCommands.COPY_COMMAND_URL;
292
294
  IMPORT_EXTENSION: DefaultCommands.IMPORT_EXTENSION;
293
295
  OPEN_EXTENSIONS_MANAGER: DefaultCommands.OPEN_EXTENSIONS_MANAGER;
296
+ OPEN_NOTIFICATIONS: DefaultCommands.OPEN_NOTIFICATIONS;
294
297
  LOGIN: DefaultCommands.LOGIN;
295
298
  LOGOUT: DefaultCommands.LOGOUT;
296
299
  REMOVE_ACCOUNT: DefaultCommands.REMOVE_ACCOUNT;
@@ -497,5 +500,7 @@ export declare const I18N: {
497
500
  NOTE_INFO_LAST_SYNC: i18n.NOTE_INFO_LAST_SYNC;
498
501
  GPG_EMAIL_REQUIRED: i18n.GPG_EMAIL_REQUIRED;
499
502
  GPG_EMAIL_INVALID: i18n.GPG_EMAIL_INVALID;
503
+ CLEAR_ALL_NOTIFICATIONS: i18n.CLEAR_ALL_NOTIFICATIONS;
504
+ NO_NOTIFICATIONS: i18n.NO_NOTIFICATIONS;
500
505
  };
501
506
  export type I18N = i18n | DefaultCommands;
@@ -197,6 +197,8 @@ export var i18n;
197
197
  // GPG
198
198
  i18n["GPG_EMAIL_REQUIRED"] = "gpg email required";
199
199
  i18n["GPG_EMAIL_INVALID"] = "gpg email invalid";
200
+ i18n["CLEAR_ALL_NOTIFICATIONS"] = "clear all notifications";
201
+ i18n["NO_NOTIFICATIONS"] = "no notifications";
200
202
  })(i18n || (i18n = {}));
201
203
  export const I18N = {
202
204
  ...i18n,
@@ -102,6 +102,7 @@ export declare enum DefaultCommands {
102
102
  COPY_COMMAND_URL = "copy command url",
103
103
  IMPORT_EXTENSION = "import extension",
104
104
  OPEN_EXTENSIONS_MANAGER = "open extensions manager",
105
+ OPEN_NOTIFICATIONS = "open notifications",
105
106
  LOGIN = "login",
106
107
  LOGOUT = "logout",
107
108
  REMOVE_ACCOUNT = "remove account",
@@ -123,6 +123,8 @@ export var DefaultCommands;
123
123
  // Extensions
124
124
  DefaultCommands["IMPORT_EXTENSION"] = "import extension";
125
125
  DefaultCommands["OPEN_EXTENSIONS_MANAGER"] = "open extensions manager";
126
+ // Notifications
127
+ DefaultCommands["OPEN_NOTIFICATIONS"] = "open notifications";
126
128
  // Auth
127
129
  DefaultCommands["LOGIN"] = "login";
128
130
  DefaultCommands["LOGOUT"] = "logout";
@@ -3,7 +3,9 @@ import { NotificationConfig } from './notification-config.js';
3
3
  import { StoreDefinition } from './store.js';
4
4
  import { Ref } from 'vue';
5
5
  export interface Notification {
6
- read?: boolean;
6
+ readAt?: string;
7
+ createdAt: string;
8
+ count?: number;
7
9
  config: NotificationConfig;
8
10
  dismiss?: ReturnType<typeof Notify.create>;
9
11
  icon?: string;
@@ -15,7 +17,7 @@ export interface NotificationsStore {
15
17
  clear: () => void;
16
18
  hideAll: () => void;
17
19
  delete: (notificationId: string) => void;
18
- markAsRead: (notificationId: string) => void;
20
+ markAsRead: (notificationId: string, readAt?: string) => void;
19
21
  notifications: Ref<Notification[]>;
20
22
  }
21
23
  export type NotificationsStoreDefinition = StoreDefinition<NotificationsStore>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.41.29",
3
+ "version": "0.41.31",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -89,4 +89,4 @@
89
89
  "vue": ">=3.0.0",
90
90
  "vue-router": ">=4.0.0"
91
91
  }
92
- }
92
+ }