@expressms/smartapp-sdk 1.12.0-alpha.0 → 1.12.0-alpha.1
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/index.d.ts +2 -2
- package/build/main/index.js +4 -2
- package/build/module/index.d.ts +2 -2
- package/build/module/index.js +3 -3
- package/build/umd/index.js +39 -0
- package/package.json +1 -1
package/build/main/index.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import { addContact, createPersonalChat, getContact, openContactCard, openPerson
|
|
|
5
5
|
import { useQuery } from './lib/helpers/helpers';
|
|
6
6
|
import { ready } from './lib/logging';
|
|
7
7
|
import { onNotification } from './lib/notification';
|
|
8
|
-
import { runWebCommandsPipeline, setAllowedNavigationDomains, setWebResourceCookies } from './lib/proxy';
|
|
8
|
+
import { getCredentials, runWebCommandsPipeline, setAllowedNavigationDomains, setCredentials, setWebResourceCookies } from './lib/proxy';
|
|
9
9
|
import { closeSmartApp, exitSmartAppToCatalog, onBackPressed, onMoveToRoot, openSmartApp, routingChanged } from './lib/routing';
|
|
10
|
-
export { Bridge, ready, routingChanged, onBackPressed, addContact, getContact, createPersonalChat, onNotification, sendMessage, openSmartApp, openFile, uploadFile, uploadFiles, exitSmartAppToCatalog, useQuery, openClientSettings, getChats, searchCorporatePhonebook, sendBotCommand, openGroupChat, onMoveToRoot, requestLocation, openContactCard, requestSelfProfile, closeSmartApp, getAppVisibility, getConnectionStatus, subscribeClientEvents, unsubscribeClientEvents, createDeeplink, openChatMessage, clientStorageGet, clientStorageSet, clientStorageRemove, clientStorageClear, openPersonalChat, handleDeeplink, searchLocalPhonebook, getUnreadCounter, getLayoutType, cleanCache, getSmartAppList, setWebResourceCookies, setAllowedNavigationDomains, runWebCommandsPipeline, };
|
|
10
|
+
export { Bridge, ready, routingChanged, onBackPressed, addContact, getContact, createPersonalChat, onNotification, sendMessage, openSmartApp, openFile, uploadFile, uploadFiles, exitSmartAppToCatalog, useQuery, openClientSettings, getChats, searchCorporatePhonebook, sendBotCommand, openGroupChat, onMoveToRoot, requestLocation, openContactCard, requestSelfProfile, closeSmartApp, getAppVisibility, getConnectionStatus, subscribeClientEvents, unsubscribeClientEvents, createDeeplink, openChatMessage, clientStorageGet, clientStorageSet, clientStorageRemove, clientStorageClear, openPersonalChat, handleDeeplink, searchLocalPhonebook, getUnreadCounter, getLayoutType, cleanCache, getSmartAppList, setWebResourceCookies, setAllowedNavigationDomains, runWebCommandsPipeline, getCredentials, setCredentials, };
|
package/build/main/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.runWebCommandsPipeline = exports.setAllowedNavigationDomains = exports.setWebResourceCookies = exports.getSmartAppList = exports.cleanCache = exports.getLayoutType = exports.getUnreadCounter = exports.searchLocalPhonebook = exports.handleDeeplink = exports.openPersonalChat = exports.clientStorageClear = exports.clientStorageRemove = exports.clientStorageSet = exports.clientStorageGet = exports.openChatMessage = exports.createDeeplink = exports.unsubscribeClientEvents = exports.subscribeClientEvents = exports.getConnectionStatus = exports.getAppVisibility = exports.closeSmartApp = exports.requestSelfProfile = exports.openContactCard = exports.requestLocation = exports.onMoveToRoot = exports.openGroupChat = exports.sendBotCommand = exports.searchCorporatePhonebook = exports.getChats = exports.openClientSettings = exports.useQuery = exports.exitSmartAppToCatalog = exports.uploadFiles = exports.uploadFile = exports.openFile = exports.openSmartApp = exports.sendMessage = exports.onNotification = exports.createPersonalChat = exports.getContact = exports.addContact = exports.onBackPressed = exports.routingChanged = exports.ready = exports.Bridge = void 0;
|
|
6
|
+
exports.setCredentials = exports.getCredentials = exports.runWebCommandsPipeline = exports.setAllowedNavigationDomains = exports.setWebResourceCookies = exports.getSmartAppList = exports.cleanCache = exports.getLayoutType = exports.getUnreadCounter = exports.searchLocalPhonebook = exports.handleDeeplink = exports.openPersonalChat = exports.clientStorageClear = exports.clientStorageRemove = exports.clientStorageSet = exports.clientStorageGet = exports.openChatMessage = exports.createDeeplink = exports.unsubscribeClientEvents = exports.subscribeClientEvents = exports.getConnectionStatus = exports.getAppVisibility = exports.closeSmartApp = exports.requestSelfProfile = exports.openContactCard = exports.requestLocation = exports.onMoveToRoot = exports.openGroupChat = exports.sendBotCommand = exports.searchCorporatePhonebook = exports.getChats = exports.openClientSettings = exports.useQuery = exports.exitSmartAppToCatalog = exports.uploadFiles = exports.uploadFile = exports.openFile = exports.openSmartApp = exports.sendMessage = exports.onNotification = exports.createPersonalChat = exports.getContact = exports.addContact = exports.onBackPressed = exports.routingChanged = exports.ready = exports.Bridge = void 0;
|
|
7
7
|
const smartapp_bridge_1 = __importDefault(require("@expressms/smartapp-bridge"));
|
|
8
8
|
exports.Bridge = smartapp_bridge_1.default;
|
|
9
9
|
const client_1 = require("./lib/client");
|
|
@@ -48,8 +48,10 @@ Object.defineProperty(exports, "ready", { enumerable: true, get: function () { r
|
|
|
48
48
|
const notification_1 = require("./lib/notification");
|
|
49
49
|
Object.defineProperty(exports, "onNotification", { enumerable: true, get: function () { return notification_1.onNotification; } });
|
|
50
50
|
const proxy_1 = require("./lib/proxy");
|
|
51
|
+
Object.defineProperty(exports, "getCredentials", { enumerable: true, get: function () { return proxy_1.getCredentials; } });
|
|
51
52
|
Object.defineProperty(exports, "runWebCommandsPipeline", { enumerable: true, get: function () { return proxy_1.runWebCommandsPipeline; } });
|
|
52
53
|
Object.defineProperty(exports, "setAllowedNavigationDomains", { enumerable: true, get: function () { return proxy_1.setAllowedNavigationDomains; } });
|
|
54
|
+
Object.defineProperty(exports, "setCredentials", { enumerable: true, get: function () { return proxy_1.setCredentials; } });
|
|
53
55
|
Object.defineProperty(exports, "setWebResourceCookies", { enumerable: true, get: function () { return proxy_1.setWebResourceCookies; } });
|
|
54
56
|
const routing_1 = require("./lib/routing");
|
|
55
57
|
Object.defineProperty(exports, "closeSmartApp", { enumerable: true, get: function () { return routing_1.closeSmartApp; } });
|
|
@@ -58,4 +60,4 @@ Object.defineProperty(exports, "onBackPressed", { enumerable: true, get: functio
|
|
|
58
60
|
Object.defineProperty(exports, "onMoveToRoot", { enumerable: true, get: function () { return routing_1.onMoveToRoot; } });
|
|
59
61
|
Object.defineProperty(exports, "openSmartApp", { enumerable: true, get: function () { return routing_1.openSmartApp; } });
|
|
60
62
|
Object.defineProperty(exports, "routingChanged", { enumerable: true, get: function () { return routing_1.routingChanged; } });
|
|
61
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsaUZBQStDO0FBdUQ3QyxpQkF2REsseUJBQU0sQ0F1REw7QUF0RFIseUNBdUJxQjtBQXVFbkIsMkZBN0ZBLG1CQUFVLE9BNkZBO0FBTlYsbUdBdEZBLDJCQUFrQixPQXNGQTtBQUhsQixpR0FsRkEseUJBQWdCLE9Ba0ZBO0FBRWhCLG9HQW5GQSw0QkFBbUIsT0FtRkE7QUFEbkIsaUdBakZBLHlCQUFnQixPQWlGQTtBQUhoQiwrRkE3RUEsdUJBQWMsT0E2RUE7QUFKZCxpR0F4RUEseUJBQWdCLE9Bd0VBO0FBVGhCLHlGQTlEQSxpQkFBUSxPQThEQTtBQVVSLG9HQXZFQSw0QkFBbUIsT0F1RUE7QUFhbkIsOEZBbkZBLHNCQUFhLE9BbUZBO0FBRWIsZ0dBcEZBLHdCQUFlLE9Bb0ZBO0FBSGYsaUdBaEZBLHlCQUFnQixPQWdGQTtBQUZoQiwrRkE3RUEsdUJBQWMsT0E2RUE7QUFOZCxnR0F0RUEsd0JBQWUsT0FzRUE7QUFmZixtR0F0REEs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JBLCtCQUFxQixPQXFCQTtBQVZyQiw4RkFWQSx1QkFBYSxPQVVBO0FBaUJiLDZGQTFCQSxzQkFBWSxPQTBCQTtBQVhaLDZGQWRBLHNCQUFZLE9BY0E7QUFQWiwrRkFOQSx3QkFBYyxPQU1BIn0=
|
package/build/module/index.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import { addContact, createPersonalChat, getContact, openContactCard, openPerson
|
|
|
5
5
|
import { useQuery } from './lib/helpers/helpers';
|
|
6
6
|
import { ready } from './lib/logging';
|
|
7
7
|
import { onNotification } from './lib/notification';
|
|
8
|
-
import { runWebCommandsPipeline, setAllowedNavigationDomains, setWebResourceCookies } from './lib/proxy';
|
|
8
|
+
import { getCredentials, runWebCommandsPipeline, setAllowedNavigationDomains, setCredentials, setWebResourceCookies } from './lib/proxy';
|
|
9
9
|
import { closeSmartApp, exitSmartAppToCatalog, onBackPressed, onMoveToRoot, openSmartApp, routingChanged } from './lib/routing';
|
|
10
|
-
export { Bridge, ready, routingChanged, onBackPressed, addContact, getContact, createPersonalChat, onNotification, sendMessage, openSmartApp, openFile, uploadFile, uploadFiles, exitSmartAppToCatalog, useQuery, openClientSettings, getChats, searchCorporatePhonebook, sendBotCommand, openGroupChat, onMoveToRoot, requestLocation, openContactCard, requestSelfProfile, closeSmartApp, getAppVisibility, getConnectionStatus, subscribeClientEvents, unsubscribeClientEvents, createDeeplink, openChatMessage, clientStorageGet, clientStorageSet, clientStorageRemove, clientStorageClear, openPersonalChat, handleDeeplink, searchLocalPhonebook, getUnreadCounter, getLayoutType, cleanCache, getSmartAppList, setWebResourceCookies, setAllowedNavigationDomains, runWebCommandsPipeline, };
|
|
10
|
+
export { Bridge, ready, routingChanged, onBackPressed, addContact, getContact, createPersonalChat, onNotification, sendMessage, openSmartApp, openFile, uploadFile, uploadFiles, exitSmartAppToCatalog, useQuery, openClientSettings, getChats, searchCorporatePhonebook, sendBotCommand, openGroupChat, onMoveToRoot, requestLocation, openContactCard, requestSelfProfile, closeSmartApp, getAppVisibility, getConnectionStatus, subscribeClientEvents, unsubscribeClientEvents, createDeeplink, openChatMessage, clientStorageGet, clientStorageSet, clientStorageRemove, clientStorageClear, openPersonalChat, handleDeeplink, searchLocalPhonebook, getUnreadCounter, getLayoutType, cleanCache, getSmartAppList, setWebResourceCookies, setAllowedNavigationDomains, runWebCommandsPipeline, getCredentials, setCredentials, };
|
package/build/module/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { addContact, createPersonalChat, getContact, openContactCard, openPerson
|
|
|
5
5
|
import { useQuery } from './lib/helpers/helpers';
|
|
6
6
|
import { ready } from './lib/logging';
|
|
7
7
|
import { onNotification } from './lib/notification';
|
|
8
|
-
import { runWebCommandsPipeline, setAllowedNavigationDomains, setWebResourceCookies, } from './lib/proxy';
|
|
8
|
+
import { getCredentials, runWebCommandsPipeline, setAllowedNavigationDomains, setCredentials, setWebResourceCookies, } from './lib/proxy';
|
|
9
9
|
import { closeSmartApp, exitSmartAppToCatalog, onBackPressed, onMoveToRoot, openSmartApp, routingChanged, } from './lib/routing';
|
|
10
|
-
export { Bridge, ready, routingChanged, onBackPressed, addContact, getContact, createPersonalChat, onNotification, sendMessage, openSmartApp, openFile, uploadFile, uploadFiles, exitSmartAppToCatalog, useQuery, openClientSettings, getChats, searchCorporatePhonebook, sendBotCommand, openGroupChat, onMoveToRoot, requestLocation, openContactCard, requestSelfProfile, closeSmartApp, getAppVisibility, getConnectionStatus, subscribeClientEvents, unsubscribeClientEvents, createDeeplink, openChatMessage, clientStorageGet, clientStorageSet, clientStorageRemove, clientStorageClear, openPersonalChat, handleDeeplink, searchLocalPhonebook, getUnreadCounter, getLayoutType, cleanCache, getSmartAppList, setWebResourceCookies, setAllowedNavigationDomains, runWebCommandsPipeline, };
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
export { Bridge, ready, routingChanged, onBackPressed, addContact, getContact, createPersonalChat, onNotification, sendMessage, openSmartApp, openFile, uploadFile, uploadFiles, exitSmartAppToCatalog, useQuery, openClientSettings, getChats, searchCorporatePhonebook, sendBotCommand, openGroupChat, onMoveToRoot, requestLocation, openContactCard, requestSelfProfile, closeSmartApp, getAppVisibility, getConnectionStatus, subscribeClientEvents, unsubscribeClientEvents, createDeeplink, openChatMessage, clientStorageGet, clientStorageSet, clientStorageRemove, clientStorageClear, openPersonalChat, handleDeeplink, searchLocalPhonebook, getUnreadCounter, getLayoutType, cleanCache, getSmartAppList, setWebResourceCookies, setAllowedNavigationDomains, runWebCommandsPipeline, getCredentials, setCredentials, };
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxNQUFNLE1BQU0sNEJBQTRCLENBQUE7QUFDL0MsT0FBTyxFQUNMLFVBQVUsRUFDVixrQkFBa0IsRUFDbEIsZ0JBQWdCLEVBQ2hCLG1CQUFtQixFQUNuQixnQkFBZ0IsRUFDaEIsY0FBYyxFQUNkLGdCQUFnQixFQUNoQixRQUFRLEVBQ1IsbUJBQW1CLEVBQ25CLGFBQWEsRUFDYixlQUFlLEVBQ2YsZ0JBQWdCLEVBQ2hCLGNBQWMsRUFDZCxlQUFlLEVBQ2Ysa0JBQWtCLEVBQ2xCLGFBQWEsRUFDYixlQUFlLEVBQ2Ysd0JBQXdCLEVBQ3hCLG9CQUFvQixFQUNwQixjQUFjLEVBQ2QscUJBQXFCLEVBQ3JCLHVCQUF1QixHQUN4QixNQUFNLGNBQWMsQ0FBQTtBQUNyQixPQUFPLEVBQUUsUUFBUSxFQUFFLFVBQVUsRUFBRSxXQUFXLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQTtBQUNyRSxPQUFPLEVBQ0wsVUFBVSxFQUNWLGtCQUFrQixFQUNsQixVQUFVLEVBQ1YsZUFBZSx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QkFBZ0IsRUFDaEIsY0FBYyxFQUNkLG9CQUFvQixFQUNwQixnQkFBZ0IsRUFDaEIsYUFBYSxFQUNiLFVBQVUsRUFDVixlQUFlLEVBQ2YscUJBQXFCLEVBQ3JCLDJCQUEyQixFQUMzQixzQkFBc0IsRUFDdEIsY0FBYyxFQUNkLGNBQWMsR0FDZixDQUFBIn0=
|
package/build/umd/index.js
CHANGED
|
@@ -2577,6 +2577,43 @@
|
|
|
2577
2577
|
})
|
|
2578
2578
|
.then(event => event);
|
|
2579
2579
|
};
|
|
2580
|
+
/**
|
|
2581
|
+
* DRAFT: Get saved credentials of web resource
|
|
2582
|
+
* @returns Promise that'll be fullfilled with credentials on success, otherwise rejected with reason
|
|
2583
|
+
*/
|
|
2584
|
+
const getCredentials = (domains) => {
|
|
2585
|
+
if (!bridge)
|
|
2586
|
+
return Promise.reject(ERROR_CODES.NO_BRIDGE);
|
|
2587
|
+
return bridge
|
|
2588
|
+
.sendClientEvent({
|
|
2589
|
+
method: METHODS.GET_CREDENTIALS,
|
|
2590
|
+
params: {
|
|
2591
|
+
domains,
|
|
2592
|
+
},
|
|
2593
|
+
timeout: 10_000,
|
|
2594
|
+
})
|
|
2595
|
+
.then(event => event);
|
|
2596
|
+
};
|
|
2597
|
+
/**
|
|
2598
|
+
* DRAFT: Save credentials of web resource
|
|
2599
|
+
* @param login User login
|
|
2600
|
+
* @param password User pass
|
|
2601
|
+
* @returns Promise that'll be fullfilled with credentials on success, otherwise rejected with reason
|
|
2602
|
+
*/
|
|
2603
|
+
const setCredentials = (login, password) => {
|
|
2604
|
+
if (!bridge)
|
|
2605
|
+
return Promise.reject(ERROR_CODES.NO_BRIDGE);
|
|
2606
|
+
return bridge
|
|
2607
|
+
.sendClientEvent({
|
|
2608
|
+
method: METHODS.SET_CREDENTIALS,
|
|
2609
|
+
params: {
|
|
2610
|
+
login,
|
|
2611
|
+
password,
|
|
2612
|
+
},
|
|
2613
|
+
timeout: 10_000,
|
|
2614
|
+
})
|
|
2615
|
+
.then(event => event);
|
|
2616
|
+
};
|
|
2580
2617
|
/**
|
|
2581
2618
|
* Run pipeline for manipulating web resource
|
|
2582
2619
|
* @param pipeline Pipeline with jobs & command
|
|
@@ -2650,6 +2687,7 @@
|
|
|
2650
2687
|
exports.getChats = getChats;
|
|
2651
2688
|
exports.getConnectionStatus = getConnectionStatus;
|
|
2652
2689
|
exports.getContact = getContact;
|
|
2690
|
+
exports.getCredentials = getCredentials;
|
|
2653
2691
|
exports.getLayoutType = getLayoutType;
|
|
2654
2692
|
exports.getSmartAppList = getSmartAppList;
|
|
2655
2693
|
exports.getUnreadCounter = getUnreadCounter;
|
|
@@ -2674,6 +2712,7 @@
|
|
|
2674
2712
|
exports.sendBotCommand = sendBotCommand;
|
|
2675
2713
|
exports.sendMessage = sendMessage;
|
|
2676
2714
|
exports.setAllowedNavigationDomains = setAllowedNavigationDomains;
|
|
2715
|
+
exports.setCredentials = setCredentials;
|
|
2677
2716
|
exports.setWebResourceCookies = setWebResourceCookies;
|
|
2678
2717
|
exports.subscribeClientEvents = subscribeClientEvents;
|
|
2679
2718
|
exports.unsubscribeClientEvents = unsubscribeClientEvents;
|