isdata-customer-sdk 0.1.49 → 0.1.51
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 +65 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +65 -3
- 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
|
@@ -29569,8 +29569,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29569
29569
|
destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
|
|
29570
29570
|
fireEvent: function() { return /* reexport */ fireEvent; },
|
|
29571
29571
|
getAPPInfosByID: function() { return /* reexport */ getAPPInfosByID; },
|
|
29572
|
+
getAllUserInfosByGroupID: function() { return /* reexport */ getAllUserInfosByGroupID; },
|
|
29572
29573
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
29573
29574
|
getAuthPic: function() { return /* reexport */ getAuthPic; },
|
|
29575
|
+
getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
|
|
29574
29576
|
getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
|
|
29575
29577
|
getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
|
|
29576
29578
|
getKey: function() { return /* reexport */ getKey; },
|
|
@@ -29581,6 +29583,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29581
29583
|
getObjectUseTimes: function() { return /* reexport */ getObjectUseTimes; },
|
|
29582
29584
|
getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
|
|
29583
29585
|
getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
|
|
29586
|
+
getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
|
|
29584
29587
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
29585
29588
|
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
29586
29589
|
getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
|
|
@@ -29589,6 +29592,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29589
29592
|
getPortalUserMappingInfos: function() { return /* reexport */ getPortalUserMappingInfos; },
|
|
29590
29593
|
getPortalUserSig: function() { return /* reexport */ getPortalUserSig; },
|
|
29591
29594
|
getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
|
|
29595
|
+
getThirdAppPathByKey: function() { return /* reexport */ getThirdAppPathByKey; },
|
|
29592
29596
|
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
29593
29597
|
getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
|
|
29594
29598
|
hasListener: function() { return /* reexport */ hasListener; },
|
|
@@ -29596,6 +29600,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29596
29600
|
initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
|
|
29597
29601
|
loginAccount: function() { return /* reexport */ loginAccount; },
|
|
29598
29602
|
logoutAccount: function() { return /* reexport */ logoutAccount; },
|
|
29603
|
+
queryAndStoreAppVariable: function() { return /* reexport */ queryAndStoreAppVariable; },
|
|
29599
29604
|
queryAppVariable: function() { return /* reexport */ queryAppVariable; },
|
|
29600
29605
|
queryAssetById: function() { return /* reexport */ queryAssetById; },
|
|
29601
29606
|
queryGroupIDByOfficeId: function() { return /* reexport */ queryGroupIDByOfficeId; },
|
|
@@ -30292,9 +30297,10 @@ const logoutAccount = async endside_type => {
|
|
|
30292
30297
|
let response = JSON.parse(resultData.request.response);
|
|
30293
30298
|
let resultCode = response.code;
|
|
30294
30299
|
if (resultCode == "10110020") {
|
|
30295
|
-
window.sessionStorage.setItem("iportal_login_user_id", "");
|
|
30296
|
-
window.sessionStorage.setItem("iportal_group_id", "");
|
|
30297
|
-
window.sessionStorage.setItem("iportal_login_user_key", "");
|
|
30300
|
+
// window.sessionStorage.setItem("iportal_login_user_id", "");
|
|
30301
|
+
// window.sessionStorage.setItem("iportal_group_id", "");
|
|
30302
|
+
// window.sessionStorage.setItem("iportal_login_user_key", "");
|
|
30303
|
+
window.sessionStorage.clear();
|
|
30298
30304
|
return {
|
|
30299
30305
|
code: resultCode,
|
|
30300
30306
|
message: response.message
|
|
@@ -30480,6 +30486,28 @@ const queryAppVariable = (name, appVariables) => {
|
|
|
30480
30486
|
}
|
|
30481
30487
|
return "";
|
|
30482
30488
|
};
|
|
30489
|
+
const getThirdAppPathByKey = async (appkey, appSecret, groupID) => {
|
|
30490
|
+
let requestData = {
|
|
30491
|
+
param: {
|
|
30492
|
+
appKey: appkey,
|
|
30493
|
+
appSecret: appSecret,
|
|
30494
|
+
groupID: groupID
|
|
30495
|
+
}
|
|
30496
|
+
};
|
|
30497
|
+
let result = await request.post(`/dataservice/rest/orchestration/getThirdAppPathByKey`, requestData);
|
|
30498
|
+
let path = result.data.path;
|
|
30499
|
+
return path;
|
|
30500
|
+
};
|
|
30501
|
+
const queryAndStoreAppVariable = async (name, appVariables) => {
|
|
30502
|
+
let value = window.sessionStorage.getItem("isdata_app_variable_" + name);
|
|
30503
|
+
if (!value) {
|
|
30504
|
+
value = queryAppVariable(name, appVariables);
|
|
30505
|
+
if (value) {
|
|
30506
|
+
window.sessionStorage.setItem("isdata_app_variable_" + name, value);
|
|
30507
|
+
}
|
|
30508
|
+
}
|
|
30509
|
+
return value;
|
|
30510
|
+
};
|
|
30483
30511
|
|
|
30484
30512
|
/**
|
|
30485
30513
|
* 添加或更新对象使用次数
|
|
@@ -30604,6 +30632,40 @@ const getAPPInfosByID = async id => {
|
|
|
30604
30632
|
let groupDptData = resultData.data.appInfo;
|
|
30605
30633
|
return groupDptData;
|
|
30606
30634
|
};
|
|
30635
|
+
const getAllUserInfosByGroupID = async groupID => {
|
|
30636
|
+
let requestData = {
|
|
30637
|
+
param: {
|
|
30638
|
+
groupID: groupID
|
|
30639
|
+
}
|
|
30640
|
+
};
|
|
30641
|
+
let result = await request.post(`/dataservice/rest/orchestration/getAllUserInfosByGroupID`, requestData);
|
|
30642
|
+
let data = result.data.resultDatas;
|
|
30643
|
+
return data;
|
|
30644
|
+
};
|
|
30645
|
+
const getChildrenOfficeInfosByID = async officeID => {
|
|
30646
|
+
let requestData = {
|
|
30647
|
+
param: {
|
|
30648
|
+
officeID: officeID
|
|
30649
|
+
}
|
|
30650
|
+
};
|
|
30651
|
+
let result = await request.post(`/dataservice/rest/orchestration/getChildrenOfficeInfosByID`, requestData);
|
|
30652
|
+
let data = result.data.resultDatas;
|
|
30653
|
+
return data;
|
|
30654
|
+
};
|
|
30655
|
+
const getPojectDptsByUserAndGroupID = async (userID, groupID) => {
|
|
30656
|
+
let requestData = {
|
|
30657
|
+
param: {
|
|
30658
|
+
userID: userID,
|
|
30659
|
+
groupID: groupID
|
|
30660
|
+
}
|
|
30661
|
+
};
|
|
30662
|
+
let result = await request.post(`/dataservice/rest/orchestration/getPojectDptsByUserAndGroupID`, requestData);
|
|
30663
|
+
let data = {
|
|
30664
|
+
dptDatas: result.data.officeDatas,
|
|
30665
|
+
userMappings: result.data.userMappings
|
|
30666
|
+
};
|
|
30667
|
+
return data;
|
|
30668
|
+
};
|
|
30607
30669
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
30608
30670
|
var es_iterator_some = __webpack_require__(3579);
|
|
30609
30671
|
;// ./src/api/iframe.js
|