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 CHANGED
@@ -29559,8 +29559,10 @@ __webpack_require__.d(__webpack_exports__, {
29559
29559
  destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
29560
29560
  fireEvent: function() { return /* reexport */ fireEvent; },
29561
29561
  getAPPInfosByID: function() { return /* reexport */ getAPPInfosByID; },
29562
+ getAllUserInfosByGroupID: function() { return /* reexport */ getAllUserInfosByGroupID; },
29562
29563
  getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
29563
29564
  getAuthPic: function() { return /* reexport */ getAuthPic; },
29565
+ getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
29564
29566
  getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
29565
29567
  getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
29566
29568
  getKey: function() { return /* reexport */ getKey; },
@@ -29571,6 +29573,7 @@ __webpack_require__.d(__webpack_exports__, {
29571
29573
  getObjectUseTimes: function() { return /* reexport */ getObjectUseTimes; },
29572
29574
  getOfficeInfosByIDs: function() { return /* reexport */ getOfficeInfosByIDs; },
29573
29575
  getPageIDByComponentID: function() { return /* reexport */ getPageIDByComponentID; },
29576
+ getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
29574
29577
  getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
29575
29578
  getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
29576
29579
  getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
@@ -29579,6 +29582,7 @@ __webpack_require__.d(__webpack_exports__, {
29579
29582
  getPortalUserMappingInfos: function() { return /* reexport */ getPortalUserMappingInfos; },
29580
29583
  getPortalUserSig: function() { return /* reexport */ getPortalUserSig; },
29581
29584
  getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
29585
+ getThirdAppPathByKey: function() { return /* reexport */ getThirdAppPathByKey; },
29582
29586
  getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
29583
29587
  getUserAllMappngPortal: function() { return /* reexport */ getUserAllMappngPortal; },
29584
29588
  hasListener: function() { return /* reexport */ hasListener; },
@@ -29586,6 +29590,7 @@ __webpack_require__.d(__webpack_exports__, {
29586
29590
  initFrameWindowListener: function() { return /* reexport */ initFrameWindowListener; },
29587
29591
  loginAccount: function() { return /* reexport */ loginAccount; },
29588
29592
  logoutAccount: function() { return /* reexport */ logoutAccount; },
29593
+ queryAndStoreAppVariable: function() { return /* reexport */ queryAndStoreAppVariable; },
29589
29594
  queryAppVariable: function() { return /* reexport */ queryAppVariable; },
29590
29595
  queryAssetById: function() { return /* reexport */ queryAssetById; },
29591
29596
  queryGroupIDByOfficeId: function() { return /* reexport */ queryGroupIDByOfficeId; },
@@ -30282,9 +30287,10 @@ const logoutAccount = async endside_type => {
30282
30287
  let response = JSON.parse(resultData.request.response);
30283
30288
  let resultCode = response.code;
30284
30289
  if (resultCode == "10110020") {
30285
- window.sessionStorage.setItem("iportal_login_user_id", "");
30286
- window.sessionStorage.setItem("iportal_group_id", "");
30287
- window.sessionStorage.setItem("iportal_login_user_key", "");
30290
+ // window.sessionStorage.setItem("iportal_login_user_id", "");
30291
+ // window.sessionStorage.setItem("iportal_group_id", "");
30292
+ // window.sessionStorage.setItem("iportal_login_user_key", "");
30293
+ window.sessionStorage.clear();
30288
30294
  return {
30289
30295
  code: resultCode,
30290
30296
  message: response.message
@@ -30470,6 +30476,28 @@ const queryAppVariable = (name, appVariables) => {
30470
30476
  }
30471
30477
  return "";
30472
30478
  };
30479
+ const getThirdAppPathByKey = async (appkey, appSecret, groupID) => {
30480
+ let requestData = {
30481
+ param: {
30482
+ appKey: appkey,
30483
+ appSecret: appSecret,
30484
+ groupID: groupID
30485
+ }
30486
+ };
30487
+ let result = await request.post(`/dataservice/rest/orchestration/getThirdAppPathByKey`, requestData);
30488
+ let path = result.data.path;
30489
+ return path;
30490
+ };
30491
+ const queryAndStoreAppVariable = async (name, appVariables) => {
30492
+ let value = window.sessionStorage.getItem("isdata_app_variable_" + name);
30493
+ if (!value) {
30494
+ value = queryAppVariable(name, appVariables);
30495
+ if (value) {
30496
+ window.sessionStorage.setItem("isdata_app_variable_" + name, value);
30497
+ }
30498
+ }
30499
+ return value;
30500
+ };
30473
30501
 
30474
30502
  /**
30475
30503
  * 添加或更新对象使用次数
@@ -30594,6 +30622,40 @@ const getAPPInfosByID = async id => {
30594
30622
  let groupDptData = resultData.data.appInfo;
30595
30623
  return groupDptData;
30596
30624
  };
30625
+ const getAllUserInfosByGroupID = async groupID => {
30626
+ let requestData = {
30627
+ param: {
30628
+ groupID: groupID
30629
+ }
30630
+ };
30631
+ let result = await request.post(`/dataservice/rest/orchestration/getAllUserInfosByGroupID`, requestData);
30632
+ let data = result.data.resultDatas;
30633
+ return data;
30634
+ };
30635
+ const getChildrenOfficeInfosByID = async officeID => {
30636
+ let requestData = {
30637
+ param: {
30638
+ officeID: officeID
30639
+ }
30640
+ };
30641
+ let result = await request.post(`/dataservice/rest/orchestration/getChildrenOfficeInfosByID`, requestData);
30642
+ let data = result.data.resultDatas;
30643
+ return data;
30644
+ };
30645
+ const getPojectDptsByUserAndGroupID = async (userID, groupID) => {
30646
+ let requestData = {
30647
+ param: {
30648
+ userID: userID,
30649
+ groupID: groupID
30650
+ }
30651
+ };
30652
+ let result = await request.post(`/dataservice/rest/orchestration/getPojectDptsByUserAndGroupID`, requestData);
30653
+ let data = {
30654
+ dptDatas: result.data.officeDatas,
30655
+ userMappings: result.data.userMappings
30656
+ };
30657
+ return data;
30658
+ };
30597
30659
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
30598
30660
  var es_iterator_some = __webpack_require__(3579);
30599
30661
  ;// ./src/api/iframe.js