orgnote-api 0.41.7 → 0.41.8

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.
@@ -149,6 +149,7 @@ export declare enum i18n {
149
149
  AUTH_LOGIN_REQUIRED = "login required",
150
150
  AUTH_ACTIVATING = "activating",
151
151
  AUTH_ENTER_ACTIVATION_KEY = "enter activation key",
152
+ ACTIVATION_FAILED = "activation failed, please check your key and try again",
152
153
  AUTH_LOGOUT = "logout",
153
154
  AUTH_LOGOUT_DESCRIPTION = "sign out from your account",
154
155
  AUTH_LOGIN = "login",
@@ -420,6 +421,7 @@ export declare const I18N: {
420
421
  AUTH_LOGIN_REQUIRED: i18n.AUTH_LOGIN_REQUIRED;
421
422
  AUTH_ACTIVATING: i18n.AUTH_ACTIVATING;
422
423
  AUTH_ENTER_ACTIVATION_KEY: i18n.AUTH_ENTER_ACTIVATION_KEY;
424
+ ACTIVATION_FAILED: i18n.ACTIVATION_FAILED;
423
425
  AUTH_LOGOUT: i18n.AUTH_LOGOUT;
424
426
  AUTH_LOGOUT_DESCRIPTION: i18n.AUTH_LOGOUT_DESCRIPTION;
425
427
  AUTH_LOGIN: i18n.AUTH_LOGIN;
@@ -156,6 +156,7 @@ export var i18n;
156
156
  i18n["AUTH_LOGIN_REQUIRED"] = "login required";
157
157
  i18n["AUTH_ACTIVATING"] = "activating";
158
158
  i18n["AUTH_ENTER_ACTIVATION_KEY"] = "enter activation key";
159
+ i18n["ACTIVATION_FAILED"] = "activation failed, please check your key and try again";
159
160
  i18n["AUTH_LOGOUT"] = "logout";
160
161
  i18n["AUTH_LOGOUT_DESCRIPTION"] = "sign out from your account";
161
162
  i18n["AUTH_LOGIN"] = "login";
@@ -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<void>;
18
+ subscribe: (token: string, email?: string) => Promise<boolean>;
19
19
  removeUserAccount: () => Promise<void>;
20
20
  }
21
21
  export type AuthStoreDefinition = StoreDefinition<AuthStore>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.41.7",
3
+ "version": "0.41.8",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.js",