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.js
CHANGED
|
@@ -29558,13 +29558,16 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29558
29558
|
decrypt: function() { return /* reexport */ decrypt; },
|
|
29559
29559
|
destroyEventCenter: function() { return /* reexport */ destroyEventCenter; },
|
|
29560
29560
|
fireEvent: function() { return /* reexport */ fireEvent; },
|
|
29561
|
+
getAIRobotInfos: function() { return /* reexport */ getAIRobotInfos; },
|
|
29561
29562
|
getAPPInfosByID: function() { return /* reexport */ getAPPInfosByID; },
|
|
29562
29563
|
getAllUserInfosByGroupID: function() { return /* reexport */ getAllUserInfosByGroupID; },
|
|
29564
|
+
getAppCustomData: function() { return /* reexport */ getAppCustomData; },
|
|
29563
29565
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
29564
29566
|
getAuthPic: function() { return /* reexport */ getAuthPic; },
|
|
29565
29567
|
getChildrenOfficeInfosByID: function() { return /* reexport */ getChildrenOfficeInfosByID; },
|
|
29566
29568
|
getCurrentUserPortalPageID: function() { return /* reexport */ getCurrentUserPortalPageID; },
|
|
29567
29569
|
getGroupMappingsByAccount: function() { return /* reexport */ getGroupMappingsByAccount; },
|
|
29570
|
+
getIntegrateAppInfoByID: function() { return /* reexport */ getIntegrateAppInfoByID; },
|
|
29568
29571
|
getKey: function() { return /* reexport */ getKey; },
|
|
29569
29572
|
getLoginPageNotices: function() { return /* reexport */ getLoginPageNotices; },
|
|
29570
29573
|
getMappingAppInfoByID: function() { return /* reexport */ getMappingAppInfoByID; },
|
|
@@ -29576,6 +29579,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29576
29579
|
getPojectDptsByUserAndGroupID: function() { return /* reexport */ getPojectDptsByUserAndGroupID; },
|
|
29577
29580
|
getPoratlAppID: function() { return /* reexport */ getPoratlAppID; },
|
|
29578
29581
|
getPortalAccessToken: function() { return /* reexport */ getPortalAccessToken; },
|
|
29582
|
+
getPortalAppCustomConfig: function() { return /* reexport */ getPortalAppCustomConfig; },
|
|
29579
29583
|
getPortalPageConfig: function() { return /* reexport */ getPortalPageConfig; },
|
|
29580
29584
|
getPortalPageMenuID: function() { return /* reexport */ getPortalPageMenuID; },
|
|
29581
29585
|
getPortalUserInfo: function() { return /* reexport */ getPortalUserInfo; },
|
|
@@ -29603,6 +29607,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29603
29607
|
sendWindowMessage: function() { return /* reexport */ sendWindowMessage; },
|
|
29604
29608
|
setPortalPageConfig: function() { return /* reexport */ setPortalPageConfig; },
|
|
29605
29609
|
switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
|
|
29610
|
+
updateIMMapping: function() { return /* reexport */ updateIMMapping; },
|
|
29606
29611
|
updateUserSelectPortal: function() { return /* reexport */ updateUserSelectPortal; },
|
|
29607
29612
|
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
|
|
29608
29613
|
});
|
|
@@ -30243,22 +30248,19 @@ const getPortalUserSig = async (userID, platType, groupID) => {
|
|
|
30243
30248
|
};
|
|
30244
30249
|
|
|
30245
30250
|
/**
|
|
30246
|
-
*
|
|
30251
|
+
* 通过租户ID获取门户应用的客户配置
|
|
30252
|
+
* @param {*} groupID
|
|
30253
|
+
* @returns
|
|
30247
30254
|
*/
|
|
30248
|
-
const
|
|
30249
|
-
let
|
|
30255
|
+
const getPortalAppCustomConfig = async groupID => {
|
|
30256
|
+
let requestData = {
|
|
30250
30257
|
param: {
|
|
30251
|
-
|
|
30252
|
-
userID: userID,
|
|
30253
|
-
im_type: platType,
|
|
30254
|
-
group_id: groupID,
|
|
30255
|
-
userSig: sigID
|
|
30256
|
-
}
|
|
30258
|
+
groupID: groupID
|
|
30257
30259
|
}
|
|
30258
30260
|
};
|
|
30259
|
-
let result = await request.post(`/dataservice/rest/orchestration/
|
|
30260
|
-
let
|
|
30261
|
-
return
|
|
30261
|
+
let result = await request.post(`/dataservice/rest/orchestration/getPortalAppCustomConfig`, requestData);
|
|
30262
|
+
let appInfo = result.data.configInfo;
|
|
30263
|
+
return appInfo;
|
|
30262
30264
|
};
|
|
30263
30265
|
// EXTERNAL MODULE: ./node_modules/crypto-js/index.js
|
|
30264
30266
|
var crypto_js = __webpack_require__(1396);
|
|
@@ -30656,6 +30658,86 @@ const getPojectDptsByUserAndGroupID = async (userID, groupID) => {
|
|
|
30656
30658
|
};
|
|
30657
30659
|
return data;
|
|
30658
30660
|
};
|
|
30661
|
+
|
|
30662
|
+
/**
|
|
30663
|
+
* 添加IM签名ID映射关系
|
|
30664
|
+
*/
|
|
30665
|
+
const addIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30666
|
+
let queryData = {
|
|
30667
|
+
param: {
|
|
30668
|
+
data: {
|
|
30669
|
+
userID: userID,
|
|
30670
|
+
im_type: platType,
|
|
30671
|
+
group_id: groupID,
|
|
30672
|
+
userSig: sigID
|
|
30673
|
+
}
|
|
30674
|
+
}
|
|
30675
|
+
};
|
|
30676
|
+
let result = await request.post(`/dataservice/rest/orchestration/addIMMapping`, queryData);
|
|
30677
|
+
let resultData = result.data;
|
|
30678
|
+
return resultData;
|
|
30679
|
+
};
|
|
30680
|
+
const getAIRobotInfos = async (userID, groupID) => {
|
|
30681
|
+
let requestData = {
|
|
30682
|
+
param: {
|
|
30683
|
+
userID: userID,
|
|
30684
|
+
groupID: groupID
|
|
30685
|
+
}
|
|
30686
|
+
};
|
|
30687
|
+
let result = await request.post(`/dataservice/rest/orchestration/getAIRobotInfos`, requestData);
|
|
30688
|
+
let infos = result.data.robotInfos;
|
|
30689
|
+
return infos;
|
|
30690
|
+
};
|
|
30691
|
+
|
|
30692
|
+
/**
|
|
30693
|
+
* 添加IM签名ID映射关系
|
|
30694
|
+
*/
|
|
30695
|
+
const updateIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30696
|
+
let queryData = {
|
|
30697
|
+
param: {
|
|
30698
|
+
userID: userID,
|
|
30699
|
+
im_type: platType,
|
|
30700
|
+
groupID: groupID,
|
|
30701
|
+
userSig: sigID
|
|
30702
|
+
}
|
|
30703
|
+
};
|
|
30704
|
+
let result = await request.post(`/dataservice/rest/orchestration/updateIMMapping`, queryData);
|
|
30705
|
+
let resultData = result.data;
|
|
30706
|
+
return resultData;
|
|
30707
|
+
};
|
|
30708
|
+
|
|
30709
|
+
/**
|
|
30710
|
+
* 获取应用自定义数据
|
|
30711
|
+
* @param {*} appID
|
|
30712
|
+
* @returns
|
|
30713
|
+
*/
|
|
30714
|
+
const getAppCustomData = async appID => {
|
|
30715
|
+
let requestData = {
|
|
30716
|
+
param: {
|
|
30717
|
+
appID: appID
|
|
30718
|
+
}
|
|
30719
|
+
};
|
|
30720
|
+
let result = await request.post(`/dataservice/rest/orchestration/getAppCustomData`, requestData);
|
|
30721
|
+
let infos = result.data.customData;
|
|
30722
|
+
infos = infos ? JSON.parse(infos) : {};
|
|
30723
|
+
return infos;
|
|
30724
|
+
};
|
|
30725
|
+
|
|
30726
|
+
/**
|
|
30727
|
+
* 获取集成应用的信息
|
|
30728
|
+
* @param {*} appID
|
|
30729
|
+
* @returns
|
|
30730
|
+
*/
|
|
30731
|
+
const getIntegrateAppInfoByID = async appID => {
|
|
30732
|
+
let requestData = {
|
|
30733
|
+
param: {
|
|
30734
|
+
appID: appID
|
|
30735
|
+
}
|
|
30736
|
+
};
|
|
30737
|
+
let result = await request.post(`/dataservice/rest/orchestration/getIntegrateAppInfoByID`, requestData);
|
|
30738
|
+
let appInfo = result.data.appInfo;
|
|
30739
|
+
return appInfo;
|
|
30740
|
+
};
|
|
30659
30741
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
30660
30742
|
var es_iterator_some = __webpack_require__(3579);
|
|
30661
30743
|
;// ./src/api/iframe.js
|