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.
@@ -29587,6 +29587,7 @@ __webpack_require__.d(__webpack_exports__, {
29587
29587
  getPortalUserInfo: function() { return /* reexport */ getPortalUserInfo; },
29588
29588
  getPortalUserMappingInfos: function() { return /* reexport */ getPortalUserMappingInfos; },
29589
29589
  getPortalUserSig: function() { return /* reexport */ getPortalUserSig; },
29590
+ getRobotInfoByID: function() { return /* reexport */ getRobotInfoByID; },
29590
29591
  getRoleIDsByUserAndGroupID: function() { return /* reexport */ getRoleIDsByUserAndGroupID; },
29591
29592
  getThirdAppPathByKey: function() { return /* reexport */ getThirdAppPathByKey; },
29592
29593
  getUrlParamValue: function() { return /* reexport */ getUrlParamValue; },
@@ -30835,6 +30836,7 @@ class ChatClientMgr {
30835
30836
  this.userID = params.userID;
30836
30837
  this.chatType = params.chatType || 0;
30837
30838
  this.singleChatID = params.singleChatID || "";
30839
+ this.customParams = params.customParams || {};
30838
30840
  this.chartOrigin = params.chartOrigin;
30839
30841
  console.log("ChatClientMgr init:", this.actionKey);
30840
30842
  // this.charAIs = {};
@@ -30906,7 +30908,8 @@ class ChatClientMgr {
30906
30908
  await this.initChatAIs();
30907
30909
  let charParams = {
30908
30910
  type: this.getChatTypeKey(this.chatType),
30909
- singleChatID: this.singleChatID
30911
+ singleChatID: this.singleChatID,
30912
+ customParams: this.customParams
30910
30913
  };
30911
30914
  console.log("charParams", charParams);
30912
30915
  this.handler.fireEventToChatWindow(event, this.chartOrigin, this.makeKey("sdata_alllife_initChat"), charParams, result => {
@@ -31061,6 +31064,18 @@ class ChatClientMgr {
31061
31064
 
31062
31065
 
31063
31066
 
31067
+
31068
+ const getRobotInfoByID = async (robotID, groupID) => {
31069
+ let queryData = {
31070
+ "param": {
31071
+ "id": robotID,
31072
+ "groupID": groupID
31073
+ }
31074
+ };
31075
+ let result = await request.post(`/dataservice/rest/orchestration/getRobotInfoByID`, queryData);
31076
+ let robotInfo = result.data.robotInfo;
31077
+ return robotInfo;
31078
+ };
31064
31079
  const getIMHanlder = customerHanlder => {
31065
31080
  let handler = {
31066
31081
  genTestUserSig: async data => {