isdata-customer-sdk 0.1.75 → 0.1.76

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.
@@ -31081,6 +31081,9 @@ class ChatClientMgr {
31081
31081
  this.handler.addChatListener(this.makeKey(`sdata_close_frame_window`), async (data, event) => {
31082
31082
  return this.handler.closeWindow();
31083
31083
  });
31084
+ this.handler.addChatListener(this.makeKey(`sdata_chat_aiAgent_event`), async (data, event) => {
31085
+ return this.handler.onAIAgentEvent(data, event);
31086
+ });
31084
31087
  this.handler.addChatListener(this.makeKey(`sdata_alllife_event_regist`), async (data, event) => {
31085
31088
  this.appSKID = data.appid;
31086
31089
  this.imType = data.im_type;
@@ -31090,7 +31093,7 @@ class ChatClientMgr {
31090
31093
  singleChatID: this.singleChatID,
31091
31094
  customParams: this.customParams
31092
31095
  };
31093
- console.log("charParams", charParams);
31096
+ // console.log("charParams", charParams);
31094
31097
  this.handler.fireEventToChatWindow(event, this.chartOrigin, this.makeKey("sdata_alllife_initChat"), charParams, result => {
31095
31098
  if (result) {
31096
31099
  this.handler.onChatInitFinished();
@@ -31377,6 +31380,9 @@ const getIMHanlder = customerHanlder => {
31377
31380
  },
31378
31381
  onChatInitFinished: async () => {
31379
31382
  // this.chatInitFinish = true;
31383
+ },
31384
+ onAIAgentEvent: async (data, event) => {
31385
+ // this.onAIAgentEvent(data,event);
31380
31386
  }
31381
31387
  };
31382
31388
  handler = {