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.js
CHANGED
|
@@ -29529,6 +29529,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29529
29529
|
getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
|
|
29530
29530
|
getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
|
|
29531
29531
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
29532
|
+
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
29532
29533
|
getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
|
|
29533
29534
|
getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
|
|
29534
29535
|
getPortalUserMappingInfos: function() { return /* reexport */ getPortalUserMappingInfos; },
|
|
@@ -29578,6 +29579,10 @@ if (typeof window !== 'undefined') {
|
|
|
29578
29579
|
*/
|
|
29579
29580
|
const registerEventListener = (eventName, actionFun) => {
|
|
29580
29581
|
let eventBus = window.rjEventCenter;
|
|
29582
|
+
if (!eventBus) {
|
|
29583
|
+
initEventCenter();
|
|
29584
|
+
eventBus = window.rjEventCenter;
|
|
29585
|
+
}
|
|
29581
29586
|
if (eventBus && eventBus.register) {
|
|
29582
29587
|
eventBus.register(eventName, actionFun);
|
|
29583
29588
|
}
|
|
@@ -29709,6 +29714,11 @@ let prefixPath = window.prefixPath || "";
|
|
|
29709
29714
|
|
|
29710
29715
|
|
|
29711
29716
|
|
|
29717
|
+
const getPortalAccessToken = async (appKey, appSecret) => {
|
|
29718
|
+
let result = await request.get(`/sdata/rest/appAuth/getAccessToken?appKey=${appKey}&appSecret=${appSecret}`);
|
|
29719
|
+
console.log("getPortalAccessToken", result);
|
|
29720
|
+
return result;
|
|
29721
|
+
};
|
|
29712
29722
|
/**
|
|
29713
29723
|
* 获取门户应用ID
|
|
29714
29724
|
* @param {*} isPortalAction 是否是门户操作
|