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.umd.js
CHANGED
|
@@ -29568,6 +29568,7 @@ __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; },
|
|
29573
29574
|
getAppPortalMenuDatas: function() { return /* reexport */ getAppPortalMenuDatas; },
|
|
@@ -29613,6 +29614,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29613
29614
|
sendWindowMessage: function() { return /* reexport */ sendWindowMessage; },
|
|
29614
29615
|
setPortalPageConfig: function() { return /* reexport */ setPortalPageConfig; },
|
|
29615
29616
|
switchPortalLogin: function() { return /* reexport */ switchPortalLogin; },
|
|
29617
|
+
updateIMMapping: function() { return /* reexport */ updateIMMapping; },
|
|
29616
29618
|
updateUserSelectPortal: function() { return /* reexport */ updateUserSelectPortal; },
|
|
29617
29619
|
validateSSOPageLoaded: function() { return /* reexport */ validateSSOPageLoaded; }
|
|
29618
29620
|
});
|
|
@@ -30251,25 +30253,6 @@ const getPortalUserSig = async (userID, platType, groupID) => {
|
|
|
30251
30253
|
let sigID = result.data.userSig;
|
|
30252
30254
|
return sigID;
|
|
30253
30255
|
};
|
|
30254
|
-
|
|
30255
|
-
/**
|
|
30256
|
-
* 添加IM签名ID映射关系
|
|
30257
|
-
*/
|
|
30258
|
-
const addIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30259
|
-
let queryData = {
|
|
30260
|
-
param: {
|
|
30261
|
-
data: {
|
|
30262
|
-
userID: userID,
|
|
30263
|
-
im_type: platType,
|
|
30264
|
-
group_id: groupID,
|
|
30265
|
-
userSig: sigID
|
|
30266
|
-
}
|
|
30267
|
-
}
|
|
30268
|
-
};
|
|
30269
|
-
let result = await request.post(`/dataservice/rest/orchestration/addIMMapping`, queryData);
|
|
30270
|
-
let resultData = result.data;
|
|
30271
|
-
return resultData;
|
|
30272
|
-
};
|
|
30273
30256
|
// EXTERNAL MODULE: ./node_modules/crypto-js/index.js
|
|
30274
30257
|
var crypto_js = __webpack_require__(1396);
|
|
30275
30258
|
var crypto_js_default = /*#__PURE__*/__webpack_require__.n(crypto_js);
|
|
@@ -30666,6 +30649,53 @@ const getPojectDptsByUserAndGroupID = async (userID, groupID) => {
|
|
|
30666
30649
|
};
|
|
30667
30650
|
return data;
|
|
30668
30651
|
};
|
|
30652
|
+
|
|
30653
|
+
/**
|
|
30654
|
+
* 添加IM签名ID映射关系
|
|
30655
|
+
*/
|
|
30656
|
+
const addIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30657
|
+
let queryData = {
|
|
30658
|
+
param: {
|
|
30659
|
+
data: {
|
|
30660
|
+
userID: userID,
|
|
30661
|
+
im_type: platType,
|
|
30662
|
+
group_id: groupID,
|
|
30663
|
+
userSig: sigID
|
|
30664
|
+
}
|
|
30665
|
+
}
|
|
30666
|
+
};
|
|
30667
|
+
let result = await request.post(`/dataservice/rest/orchestration/addIMMapping`, queryData);
|
|
30668
|
+
let resultData = result.data;
|
|
30669
|
+
return resultData;
|
|
30670
|
+
};
|
|
30671
|
+
const getAIRobotInfos = async (userID, groupID) => {
|
|
30672
|
+
let requestData = {
|
|
30673
|
+
param: {
|
|
30674
|
+
userID: userID,
|
|
30675
|
+
groupID: groupID
|
|
30676
|
+
}
|
|
30677
|
+
};
|
|
30678
|
+
let result = await request.post(`/dataservice/rest/orchestration/getAIRobotInfos`, requestData);
|
|
30679
|
+
let infos = result.data.robotInfos;
|
|
30680
|
+
return infos;
|
|
30681
|
+
};
|
|
30682
|
+
|
|
30683
|
+
/**
|
|
30684
|
+
* 添加IM签名ID映射关系
|
|
30685
|
+
*/
|
|
30686
|
+
const updateIMMapping = async (userID, platType, groupID, sigID) => {
|
|
30687
|
+
let queryData = {
|
|
30688
|
+
param: {
|
|
30689
|
+
userID: userID,
|
|
30690
|
+
im_type: platType,
|
|
30691
|
+
groupID: groupID,
|
|
30692
|
+
userSig: sigID
|
|
30693
|
+
}
|
|
30694
|
+
};
|
|
30695
|
+
let result = await request.post(`/dataservice/rest/orchestration/updateIMMapping`, queryData);
|
|
30696
|
+
let resultData = result.data;
|
|
30697
|
+
return resultData;
|
|
30698
|
+
};
|
|
30669
30699
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.iterator.some.js
|
|
30670
30700
|
var es_iterator_some = __webpack_require__(3579);
|
|
30671
30701
|
;// ./src/api/iframe.js
|