@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.
- package/build/main/lib/client/storage.d.ts +1 -1
- package/build/main/lib/client/storage.js +1 -1
- package/build/main/types/bridge.d.ts +2 -4
- package/build/main/types/storage.d.ts +3 -4
- package/build/module/lib/client/storage.d.ts +1 -1
- package/build/module/lib/client/storage.js +1 -1
- package/build/module/types/bridge.d.ts +2 -4
- package/build/module/types/storage.d.ts +3 -4
- package/build/umd/index.js +1 -1
- package/package.json +1 -1
|
@@ -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 `
|
|
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 `
|
|
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)
|
|
@@ -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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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 `
|
|
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 `
|
|
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)
|
|
@@ -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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
};
|
|
12
|
+
status: STATUS;
|
|
13
|
+
errorCode?: string | null;
|
|
14
|
+
value: StorageValueType;
|
|
16
15
|
};
|
|
17
16
|
}
|
package/build/umd/index.js
CHANGED
|
@@ -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 `
|
|
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)
|