isdata-customer-sdk 0.1.54 → 0.1.55
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 +49 -19
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +49 -19
- 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,6 +29558,7 @@ __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; },
|
|
29563
29564
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
@@ -29603,6 +29604,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29603
29604
|
sendWindowMessage: function() { return /* reexport */ sendWindowMessage; },
|
|
29604
29605
|
setPortalPageConfig: function() { return /* reexport */ setPortalPageConfig; },
|
|
29605
29606
|
switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
|
|
29607
|
+
updateIMMapping: function() { return /* reexport */ updateIMMapping; },
|
|
29606
29608
|
updateUserSelectPortal: function() { return /* reexport */ updateUserSelectPortal; },
|
|
29607
29609
|
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
|
|
29608
29610
|
});
|
|
@@ -30241,25 +30243,6 @@ const getPortalUserSig = async (userID, platType, groupID) => {
|
|
|
30241
30243
|
let sigID = result.data.userSig;
|
|
30242
30244
|
return sigID;
|
|
30243
30245
|
};
|
|
30244
|
-
|
|
30245
|
-
/**
|
|
30246
|
-
* 添加IM签名ID映射关系
|
|
30247
|
-
*/
|
|
30248
|
-
const addIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30249
|
-
let queryData = {
|
|
30250
|
-
param: {
|
|
30251
|
-
data: {
|
|
30252
|
-
userID: userID,
|
|
30253
|
-
im_type: platType,
|
|
30254
|
-
group_id: groupID,
|
|
30255
|
-
userSig: sigID
|
|
30256
|
-
}
|
|
30257
|
-
}
|
|
30258
|
-
};
|
|
30259
|
-
let result = await request.post(`/dataservice/rest/orchestration/addIMMapping`, queryData);
|
|
30260
|
-
let resultData = result.data;
|
|
30261
|
-
return resultData;
|
|
30262
|
-
};
|
|
30263
30246
|
// EXTERNAL MODULE: ./node_modules/crypto-js/index.js
|
|
30264
30247
|
var crypto_js = __webpack_require__(1396);
|
|
30265
30248
|
var crypto_js_default = /*#__PURE__*/__webpack_require__.n(crypto_js);
|
|
@@ -30656,6 +30639,53 @@ const getPojectDptsByUserAndGroupID = async (userID, groupID) => {
|
|
|
30656
30639
|
};
|
|
30657
30640
|
return data;
|
|
30658
30641
|
};
|
|
30642
|
+
|
|
30643
|
+
/**
|
|
30644
|
+
* 添加IM签名ID映射关系
|
|
30645
|
+
*/
|
|
30646
|
+
const addIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30647
|
+
let queryData = {
|
|
30648
|
+
param: {
|
|
30649
|
+
data: {
|
|
30650
|
+
userID: userID,
|
|
30651
|
+
im_type: platType,
|
|
30652
|
+
group_id: groupID,
|
|
30653
|
+
userSig: sigID
|
|
30654
|
+
}
|
|
30655
|
+
}
|
|
30656
|
+
};
|
|
30657
|
+
let result = await request.post(`/dataservice/rest/orchestration/addIMMapping`, queryData);
|
|
30658
|
+
let resultData = result.data;
|
|
30659
|
+
return resultData;
|
|
30660
|
+
};
|
|
30661
|
+
const getAIRobotInfos = async (userID, groupID) => {
|
|
30662
|
+
let requestData = {
|
|
30663
|
+
param: {
|
|
30664
|
+
userID: userID,
|
|
30665
|
+
groupID: groupID
|
|
30666
|
+
}
|
|
30667
|
+
};
|
|
30668
|
+
let result = await request.post(`/dataservice/rest/orchestration/getAIRobotInfos`, requestData);
|
|
30669
|
+
let infos = result.data.robotInfos;
|
|
30670
|
+
return infos;
|
|
30671
|
+
};
|
|
30672
|
+
|
|
30673
|
+
/**
|
|
30674
|
+
* 添加IM签名ID映射关系
|
|
30675
|
+
*/
|
|
30676
|
+
const updateIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30677
|
+
let queryData = {
|
|
30678
|
+
param: {
|
|
30679
|
+
userID: userID,
|
|
30680
|
+
im_type: platType,
|
|
30681
|
+
groupID: groupID,
|
|
30682
|
+
userSig: sigID
|
|
30683
|
+
}
|
|
30684
|
+
};
|
|
30685
|
+
let result = await request.post(`/dataservice/rest/orchestration/updateIMMapping`, queryData);
|
|
30686
|
+
let resultData = result.data;
|
|
30687
|
+
return resultData;
|
|
30688
|
+
};
|
|
30659
30689
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
30660
30690
|
var es_iterator_some = __webpack_require__(3579);
|
|
30661
30691
|
;// ./src/api/iframe.js
|