isdata-customer-sdk 0.1.62 → 0.1.63

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.umd.js CHANGED
@@ -30926,7 +30926,16 @@ class ChatClientMgr {
30926
30926
  });
30927
30927
  }
30928
30928
  getChatTypeKey(type) {
30929
- return type == 1 ? "IM_SINGLE_MODE" : "IM_MULTIPLE_MODE";
30929
+ switch (type) {
30930
+ case 0:
30931
+ return "IM_MULTIPLE_MODE";
30932
+ case 1:
30933
+ return "IM_SINGLE_MODE";
30934
+ case 2:
30935
+ return "IM_EMBED_MODE";
30936
+ default:
30937
+ return "IM_MULTIPLE_MODE";
30938
+ }
30930
30939
  }
30931
30940
  async initChatAIs() {
30932
30941
  this.chatAIClient = await this.handler.getChatClient({