isdata-customer-sdk 0.1.54 → 0.1.56
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 +94 -12
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +94 -12
- 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
|
@@ -29568,13 +29568,16 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29568
29568
|
decrypt: function() { return /* reexport */ decrypt; },
|
|
29569
29569
|
destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
|
|
29570
29570
|
fireEvent: function() { return /* reexport */ fireEvent; },
|
|
29571
|
+
getAIRobotInfos: function() { return /* reexport */ getAIRobotInfos; },
|
|
29571
29572
|
getAPPInfosByID: function() { return /* reexport */ getAPPInfosByID; },
|
|
29572
29573
|
getAllUserInfosByGroupID: function() { return /* reexport */ getAllUserInfosByGroupID; },
|
|
29574
|
+
getAppCustomData: function() { return /* reexport */ getAppCustomData; },
|
|
29573
29575
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
29574
29576
|
getAuthPic: function() { return /* reexport */ getAuthPic; },
|
|
29575
29577
|
getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
|
|
29576
29578
|
getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
|
|
29577
29579
|
getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
|
|
29580
|
+
getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
|
|
29578
29581
|
getKey: function() { return /* reexport */ getKey; },
|
|
29579
29582
|
getLoginPageNotices: function() { return /* reexport */ getLoginPageNotices; },
|
|
29580
29583
|
getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
|
|
@@ -29586,6 +29589,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29586
29589
|
getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
|
|
29587
29590
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
29588
29591
|
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
29592
|
+
getPortalAppCustomConfig: function() { return /* reexport */ getPortalAppCustomConfig; },
|
|
29589
29593
|
getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
|
|
29590
29594
|
getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
|
|
29591
29595
|
getPortalUserInfo: function() { return /* reexport */ getPortalUserInfo; },
|
|
@@ -29613,6 +29617,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29613
29617
|
sendWindowMessage: function() { return /* reexport */ sendWindowMessage; },
|
|
29614
29618
|
setPortalPageConfig: function() { return /* reexport */ setPortalPageConfig; },
|
|
29615
29619
|
switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
|
|
29620
|
+
updateIMMapping: function() { return /* reexport */ updateIMMapping; },
|
|
29616
29621
|
updateUserSelectPortal: function() { return /* reexport */ updateUserSelectPortal; },
|
|
29617
29622
|
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
|
|
29618
29623
|
});
|
|
@@ -30253,22 +30258,19 @@ const getPortalUserSig = async (userID, platType, groupID) => {
|
|
|
30253
30258
|
};
|
|
30254
30259
|
|
|
30255
30260
|
/**
|
|
30256
|
-
*
|
|
30261
|
+
* 通过租户ID获取门户应用的客户配置
|
|
30262
|
+
* @param {*} groupID
|
|
30263
|
+
* @returns
|
|
30257
30264
|
*/
|
|
30258
|
-
const
|
|
30259
|
-
let
|
|
30265
|
+
const getPortalAppCustomConfig = async groupID => {
|
|
30266
|
+
let requestData = {
|
|
30260
30267
|
param: {
|
|
30261
|
-
|
|
30262
|
-
userID: userID,
|
|
30263
|
-
im_type: platType,
|
|
30264
|
-
group_id: groupID,
|
|
30265
|
-
userSig: sigID
|
|
30266
|
-
}
|
|
30268
|
+
groupID: groupID
|
|
30267
30269
|
}
|
|
30268
30270
|
};
|
|
30269
|
-
let result = await request.post(`/dataservice/rest/orchestration/
|
|
30270
|
-
let
|
|
30271
|
-
return
|
|
30271
|
+
let result = await request.post(`/dataservice/rest/orchestration/getPortalAppCustomConfig`, requestData);
|
|
30272
|
+
let appInfo = result.data.configInfo;
|
|
30273
|
+
return appInfo;
|
|
30272
30274
|
};
|
|
30273
30275
|
// EXTERNAL MODULE: ./node_modules/crypto-js/index.js
|
|
30274
30276
|
var crypto_js = __webpack_require__(1396);
|
|
@@ -30666,6 +30668,86 @@ const getPojectDptsByUserAndGroupID = async (userID, groupID) => {
|
|
|
30666
30668
|
};
|
|
30667
30669
|
return data;
|
|
30668
30670
|
};
|
|
30671
|
+
|
|
30672
|
+
/**
|
|
30673
|
+
* 添加IM签名ID映射关系
|
|
30674
|
+
*/
|
|
30675
|
+
const addIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30676
|
+
let queryData = {
|
|
30677
|
+
param: {
|
|
30678
|
+
data: {
|
|
30679
|
+
userID: userID,
|
|
30680
|
+
im_type: platType,
|
|
30681
|
+
group_id: groupID,
|
|
30682
|
+
userSig: sigID
|
|
30683
|
+
}
|
|
30684
|
+
}
|
|
30685
|
+
};
|
|
30686
|
+
let result = await request.post(`/dataservice/rest/orchestration/addIMMapping`, queryData);
|
|
30687
|
+
let resultData = result.data;
|
|
30688
|
+
return resultData;
|
|
30689
|
+
};
|
|
30690
|
+
const getAIRobotInfos = async (userID, groupID) => {
|
|
30691
|
+
let requestData = {
|
|
30692
|
+
param: {
|
|
30693
|
+
userID: userID,
|
|
30694
|
+
groupID: groupID
|
|
30695
|
+
}
|
|
30696
|
+
};
|
|
30697
|
+
let result = await request.post(`/dataservice/rest/orchestration/getAIRobotInfos`, requestData);
|
|
30698
|
+
let infos = result.data.robotInfos;
|
|
30699
|
+
return infos;
|
|
30700
|
+
};
|
|
30701
|
+
|
|
30702
|
+
/**
|
|
30703
|
+
* 添加IM签名ID映射关系
|
|
30704
|
+
*/
|
|
30705
|
+
const updateIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30706
|
+
let queryData = {
|
|
30707
|
+
param: {
|
|
30708
|
+
userID: userID,
|
|
30709
|
+
im_type: platType,
|
|
30710
|
+
groupID: groupID,
|
|
30711
|
+
userSig: sigID
|
|
30712
|
+
}
|
|
30713
|
+
};
|
|
30714
|
+
let result = await request.post(`/dataservice/rest/orchestration/updateIMMapping`, queryData);
|
|
30715
|
+
let resultData = result.data;
|
|
30716
|
+
return resultData;
|
|
30717
|
+
};
|
|
30718
|
+
|
|
30719
|
+
/**
|
|
30720
|
+
* 获取应用自定义数据
|
|
30721
|
+
* @param {*} appID
|
|
30722
|
+
* @returns
|
|
30723
|
+
*/
|
|
30724
|
+
const getAppCustomData = async appID => {
|
|
30725
|
+
let requestData = {
|
|
30726
|
+
param: {
|
|
30727
|
+
appID: appID
|
|
30728
|
+
}
|
|
30729
|
+
};
|
|
30730
|
+
let result = await request.post(`/dataservice/rest/orchestration/getAppCustomData`, requestData);
|
|
30731
|
+
let infos = result.data.customData;
|
|
30732
|
+
infos = infos ? JSON.parse(infos) : {};
|
|
30733
|
+
return infos;
|
|
30734
|
+
};
|
|
30735
|
+
|
|
30736
|
+
/**
|
|
30737
|
+
* 获取集成应用的信息
|
|
30738
|
+
* @param {*} appID
|
|
30739
|
+
* @returns
|
|
30740
|
+
*/
|
|
30741
|
+
const getIntegrateAppInfoByID = async appID => {
|
|
30742
|
+
let requestData = {
|
|
30743
|
+
param: {
|
|
30744
|
+
appID: appID
|
|
30745
|
+
}
|
|
30746
|
+
};
|
|
30747
|
+
let result = await request.post(`/dataservice/rest/orchestration/getIntegrateAppInfoByID`, requestData);
|
|
30748
|
+
let appInfo = result.data.appInfo;
|
|
30749
|
+
return appInfo;
|
|
30750
|
+
};
|
|
30669
30751
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
30670
30752
|
var es_iterator_some = __webpack_require__(3579);
|
|
30671
30753
|
;// ./src/api/iframe.js
|