@expressms/smartapp-sdk 1.5.0-alpha.3 → 1.5.0-alpha.5

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.
@@ -2,7 +2,7 @@ import { ClientStorageGetResponse, StatusResponse, StorageValueType } from '../.
2
2
  /**
3
3
  * Get value for key from client storage
4
4
  * @param key Key
5
- * @returns Promise that'll be fullfilled with `response.data.value` on success, otherwise rejected with reason
5
+ * @returns Promise that'll be fullfilled with `payload.value` on success, otherwise rejected with reason
6
6
  */
7
7
  declare const clientStorageGet: ({ key }: {
8
8
  key: string;
@@ -9,7 +9,7 @@ const types_1 = require("../../types");
9
9
  /**
10
10
  * Get value for key from client storage
11
11
  * @param key Key
12
- * @returns Promise that'll be fullfilled with `response.data.value` on success, otherwise rejected with reason
12
+ * @returns Promise that'll be fullfilled with `payload.value` on success, otherwise rejected with reason
13
13
  */
14
14
  const clientStorageGet = ({ key }) => {
15
15
  if (!smartapp_bridge_1.default)
@@ -65,9 +65,7 @@ export interface File {
65
65
  }
66
66
  export interface StatusResponse extends EmitterEventPayload {
67
67
  payload: {
68
- data: {
69
- status: STATUS;
70
- errorCode?: string;
71
- };
68
+ status: STATUS;
69
+ errorCode?: string | null;
72
70
  };
73
71
  }
@@ -9,9 +9,8 @@ export type StorageValueType = string | number | null | object | boolean | [];
9
9
  export type StorageErrorType = CLIENT_STORAGE_ERROR_CODES | null;
10
10
  export interface ClientStorageGetResponse extends EmitterEventPayload {
11
11
  payload: {
12
- data: {
13
- status: STATUS;
14
- value: StorageValueType;
15
- };
12
+ status: STATUS;
13
+ errorCode?: string | null;
14
+ value: StorageValueType;
16
15
  };
17
16
  }
@@ -2,7 +2,7 @@ import { ClientStorageGetResponse, StatusResponse, StorageValueType } from '../.
2
2
  /**
3
3
  * Get value for key from client storage
4
4
  * @param key Key
5
- * @returns Promise that'll be fullfilled with `response.data.value` on success, otherwise rejected with reason
5
+ * @returns Promise that'll be fullfilled with `payload.value` on success, otherwise rejected with reason
6
6
  */
7
7
  declare const clientStorageGet: ({ key }: {
8
8
  key: string;
@@ -3,7 +3,7 @@ import { ERROR_CODES, METHODS } from '../../types';
3
3
  /**
4
4
  * Get value for key from client storage
5
5
  * @param key Key
6
- * @returns Promise that'll be fullfilled with `response.data.value` on success, otherwise rejected with reason
6
+ * @returns Promise that'll be fullfilled with `payload.value` on success, otherwise rejected with reason
7
7
  */
8
8
  const clientStorageGet = ({ key }) => {
9
9
  if (!bridge)
@@ -65,9 +65,7 @@ export interface File {
65
65
  }
66
66
  export interface StatusResponse extends EmitterEventPayload {
67
67
  payload: {
68
- data: {
69
- status: STATUS;
70
- errorCode?: string;
71
- };
68
+ status: STATUS;
69
+ errorCode?: string | null;
72
70
  };
73
71
  }
@@ -9,9 +9,8 @@ export type StorageValueType = string | number | null | object | boolean | [];
9
9
  export type StorageErrorType = CLIENT_STORAGE_ERROR_CODES | null;
10
10
  export interface ClientStorageGetResponse extends EmitterEventPayload {
11
11
  payload: {
12
- data: {
13
- status: STATUS;
14
- value: StorageValueType;
15
- };
12
+ status: STATUS;
13
+ errorCode?: string | null;
14
+ value: StorageValueType;
16
15
  };
17
16
  }
@@ -2051,7 +2051,7 @@
2051
2051
  /**
2052
2052
  * Get value for key from client storage
2053
2053
  * @param key Key
2054
- * @returns Promise that'll be fullfilled with `response.data.value` on success, otherwise rejected with reason
2054
+ * @returns Promise that'll be fullfilled with `payload.value` on success, otherwise rejected with reason
2055
2055
  */
2056
2056
  const clientStorageGet = ({ key }) => {
2057
2057
  if (!bridge)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expressms/smartapp-sdk",
3
- "version": "1.5.0-alpha.3",
3
+ "version": "1.5.0-alpha.5",
4
4
  "description": "Smartapp SDK",
5
5
  "main": "build/main/index.js",
6
6
  "typings": "build/main/index.d.ts",