isdata-customer-sdk 0.1.45 → 0.1.47
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/dist/index.js +10 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +10 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +3 -3
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29539,6 +29539,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29539
29539
|
getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
|
|
29540
29540
|
getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
|
|
29541
29541
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
29542
|
+
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
29542
29543
|
getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
|
|
29543
29544
|
getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
|
|
29544
29545
|
getPortalUserMappingInfos: function() { return /* reexport */ getPortalUserMappingInfos; },
|
|
@@ -29588,6 +29589,10 @@ if (typeof window !== 'undefined') {
|
|
|
29588
29589
|
*/
|
|
29589
29590
|
const registerEventListener = (eventName, actionFun) => {
|
|
29590
29591
|
let eventBus = window.rjEventCenter;
|
|
29592
|
+
if (!eventBus) {
|
|
29593
|
+
initEventCenter();
|
|
29594
|
+
eventBus = window.rjEventCenter;
|
|
29595
|
+
}
|
|
29591
29596
|
if (eventBus && eventBus.register) {
|
|
29592
29597
|
eventBus.register(eventName, actionFun);
|
|
29593
29598
|
}
|
|
@@ -29719,6 +29724,11 @@ let prefixPath = window.prefixPath || "";
|
|
|
29719
29724
|
|
|
29720
29725
|
|
|
29721
29726
|
|
|
29727
|
+
const getPortalAccessToken = async (appKey, appSecret) => {
|
|
29728
|
+
let result = await request.get(`/sdata/rest/appAuth/getAccessToken?appKey=${appKey}&appSecret=${appSecret}`);
|
|
29729
|
+
console.log("getPortalAccessToken", result);
|
|
29730
|
+
return result;
|
|
29731
|
+
};
|
|
29722
29732
|
/**
|
|
29723
29733
|
* 获取门户应用ID
|
|
29724
29734
|
* @param {*} isPortalAction 是否是门户操作
|