isdata-customer-sdk 0.1.64 → 0.1.65
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.common.js +16 -1
- package/dist/index.common.js.map +1 -1
- package/dist/index.umd.js +16 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -29597,6 +29597,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29597
29597
|
getPortalUserInfo: function() { return /* reexport */ getPortalUserInfo; },
|
|
29598
29598
|
getPortalUserMappingInfos: function() { return /* reexport */ getPortalUserMappingInfos; },
|
|
29599
29599
|
getPortalUserSig: function() { return /* reexport */ getPortalUserSig; },
|
|
29600
|
+
getRobotInfoByID: function() { return /* reexport */ getRobotInfoByID; },
|
|
29600
29601
|
getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
|
|
29601
29602
|
getThirdAppPathByKey: function() { return /* reexport */ getThirdAppPathByKey; },
|
|
29602
29603
|
getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
|
|
@@ -30845,6 +30846,7 @@ class ChatClientMgr {
|
|
|
30845
30846
|
this.userID = params.userID;
|
|
30846
30847
|
this.chatType = params.chatType || 0;
|
|
30847
30848
|
this.singleChatID = params.singleChatID || "";
|
|
30849
|
+
this.customParams = params.customParams || {};
|
|
30848
30850
|
this.chartOrigin = params.chartOrigin;
|
|
30849
30851
|
console.log("ChatClientMgr init:", this.actionKey);
|
|
30850
30852
|
// this.charAIs = {};
|
|
@@ -30916,7 +30918,8 @@ class ChatClientMgr {
|
|
|
30916
30918
|
await this.initChatAIs();
|
|
30917
30919
|
let charParams = {
|
|
30918
30920
|
type: this.getChatTypeKey(this.chatType),
|
|
30919
|
-
singleChatID: this.singleChatID
|
|
30921
|
+
singleChatID: this.singleChatID,
|
|
30922
|
+
customParams: this.customParams
|
|
30920
30923
|
};
|
|
30921
30924
|
console.log("charParams", charParams);
|
|
30922
30925
|
this.handler.fireEventToChatWindow(event, this.chartOrigin, this.makeKey("sdata_alllife_initChat"), charParams, result => {
|
|
@@ -31071,6 +31074,18 @@ class ChatClientMgr {
|
|
|
31071
31074
|
|
|
31072
31075
|
|
|
31073
31076
|
|
|
31077
|
+
|
|
31078
|
+
const getRobotInfoByID = async (robotID, groupID) => {
|
|
31079
|
+
let queryData = {
|
|
31080
|
+
"param": {
|
|
31081
|
+
"id": robotID,
|
|
31082
|
+
"groupID": groupID
|
|
31083
|
+
}
|
|
31084
|
+
};
|
|
31085
|
+
let result = await request.post(`/dataservice/rest/orchestration/getRobotInfoByID`, queryData);
|
|
31086
|
+
let robotInfo = result.data.robotInfo;
|
|
31087
|
+
return robotInfo;
|
|
31088
|
+
};
|
|
31074
31089
|
const getIMHanlder = customerHanlder => {
|
|
31075
31090
|
let handler = {
|
|
31076
31091
|
genTestUserSig: async data => {
|