@microsoft/omnichannel-chat-sdk 1.0.1-main.fa78d5f → 1.1.1-main.3ce5a59

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +21 -3
  2. package/README.md +474 -306
  3. package/lib/OmnichannelChatSDK.d.ts +6 -4
  4. package/lib/OmnichannelChatSDK.js +302 -302
  5. package/lib/OmnichannelChatSDK.js.map +1 -1
  6. package/lib/api/createVoiceVideoCalling.js +6 -2
  7. package/lib/api/createVoiceVideoCalling.js.map +1 -1
  8. package/lib/config/settings.d.ts +1 -1
  9. package/lib/config/settings.js +1 -1
  10. package/lib/core/ChatConfig.d.ts +4 -0
  11. package/lib/core/ChatSDKExceptionDetails.d.ts +5 -0
  12. package/lib/core/ChatSDKExceptionDetails.js +3 -0
  13. package/lib/core/ChatSDKExceptionDetails.js.map +1 -0
  14. package/lib/core/ChatTranscriptBody.d.ts +1 -1
  15. package/lib/core/LiveWorkItemDetails.d.ts +2 -0
  16. package/lib/core/OmnichannelErrorCodes.d.ts +4 -0
  17. package/lib/core/OmnichannelErrorCodes.js +8 -0
  18. package/lib/core/OmnichannelErrorCodes.js.map +1 -0
  19. package/lib/core/PostChatContext.d.ts +1 -0
  20. package/lib/core/messaging/ChatAdapterOptionalParams.d.ts +14 -0
  21. package/lib/core/messaging/ChatAdapterOptionalParams.js +3 -0
  22. package/lib/core/messaging/ChatAdapterOptionalParams.js.map +1 -0
  23. package/lib/core/messaging/MessageTags.d.ts +2 -0
  24. package/lib/core/messaging/MessageTags.js +4 -2
  25. package/lib/core/messaging/MessageTags.js.map +1 -1
  26. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.d.ts +5 -0
  27. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.js +34 -0
  28. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.js.map +1 -0
  29. package/lib/external/CallingSDK/ICallingSDKLogData.d.ts +7 -0
  30. package/lib/external/CallingSDK/ICallingSDKLogData.js +3 -0
  31. package/lib/external/CallingSDK/ICallingSDKLogData.js.map +1 -0
  32. package/lib/external/IC3Adapter/IIC3AdapterOptions.d.ts +12 -0
  33. package/lib/index.d.ts +7 -6
  34. package/lib/index.js +13 -8
  35. package/lib/index.js.map +1 -1
  36. package/lib/telemetry/AriaTelemetry.d.ts +1 -0
  37. package/lib/telemetry/AriaTelemetry.js +55 -0
  38. package/lib/telemetry/AriaTelemetry.js.map +1 -1
  39. package/lib/telemetry/ScenarioMarker.d.ts +2 -0
  40. package/lib/telemetry/ScenarioMarker.js +7 -3
  41. package/lib/telemetry/ScenarioMarker.js.map +1 -1
  42. package/lib/telemetry/ScenarioType.d.ts +1 -0
  43. package/lib/telemetry/ScenarioType.js +1 -0
  44. package/lib/telemetry/ScenarioType.js.map +1 -1
  45. package/lib/telemetry/TelemetryEvent.d.ts +1 -3
  46. package/lib/telemetry/TelemetryEvent.js +0 -2
  47. package/lib/telemetry/TelemetryEvent.js.map +1 -1
  48. package/lib/tsconfig.tsbuildinfo +158 -63
  49. package/lib/utils/WebUtils.d.ts +3 -1
  50. package/lib/utils/WebUtils.js +8 -2
  51. package/lib/utils/WebUtils.js.map +1 -1
  52. package/lib/utils/libraries.d.ts +1 -3
  53. package/lib/utils/libraries.js +2 -11
  54. package/lib/utils/libraries.js.map +1 -1
  55. package/lib/utils/locale.d.ts +2 -0
  56. package/lib/utils/locale.js +5 -3
  57. package/lib/utils/locale.js.map +1 -1
  58. package/lib/utils/loggers.d.ts +26 -1
  59. package/lib/utils/loggers.js +94 -2
  60. package/lib/utils/loggers.js.map +1 -1
  61. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import ACSClient from "./core/messaging/ACSClient";
2
2
  import { ParticipantsRemovedEvent } from '@azure/communication-signaling';
3
+ import ChatAdapterOptionalParams from "./core/messaging/ChatAdapterOptionalParams";
3
4
  import ChatConfig from "./core/ChatConfig";
4
5
  import ChatReconnectContext from "./core/ChatReconnectContext";
5
6
  import ChatReconnectOptionalParams from "./core/ChatReconnectOptionalParams";
@@ -20,10 +21,10 @@ import LiveWorkItemDetails from "./core/LiveWorkItemDetails";
20
21
  import OmnichannelConfig from "./core/OmnichannelConfig";
21
22
  import OmnichannelMessage from "./core/messaging/OmnichannelMessage";
22
23
  import OnNewMessageOptionalParams from "./core/messaging/OnNewMessageOptionalParams";
23
- import PostChatContext from "./core/PostChatContext";
24
24
  import StartChatOptionalParams from "./core/StartChatOptionalParams";
25
25
  declare class OmnichannelChatSDK {
26
26
  private debug;
27
+ runtimeId: string;
27
28
  OCSDKProvider: unknown;
28
29
  IC3SDKProvider: unknown;
29
30
  OCClient: any;
@@ -33,6 +34,7 @@ declare class OmnichannelChatSDK {
33
34
  omnichannelConfig: OmnichannelConfig;
34
35
  chatSDKConfig: ChatSDKConfig;
35
36
  isInitialized: boolean;
37
+ localeId: string;
36
38
  requestId: string;
37
39
  private chatToken;
38
40
  private liveChatConfig;
@@ -49,6 +51,7 @@ declare class OmnichannelChatSDK {
49
51
  private ocSdkLogger;
50
52
  private acsClientLogger;
51
53
  private acsAdapterLogger;
54
+ private callingSdkLogger;
52
55
  private isPersistentChat;
53
56
  private isChatReconnect;
54
57
  private reconnectId;
@@ -80,15 +83,14 @@ declare class OmnichannelChatSDK {
80
83
  downloadFileAttachment(fileMetadata: FileMetadata | IFileMetadata): Promise<Blob>;
81
84
  emailLiveChatTranscript(body: ChatTranscriptBody): Promise<any>;
82
85
  getLiveChatTranscript(): Promise<any>;
83
- createChatAdapter(protocol?: string | null): Promise<unknown>;
86
+ createChatAdapter(optionalParams?: ChatAdapterOptionalParams): Promise<unknown>;
84
87
  getVoiceVideoCalling(params?: any): Promise<any>;
85
88
  getPostChatSurveyContext(): Promise<any>;
86
- initializePostChatRenderer(): Promise<void>;
87
- renderPostChatSurvey(containerId: string, postChatContext: PostChatContext): Promise<void>;
88
89
  private getIC3Client;
89
90
  private getChatConfig;
90
91
  private resolveIC3ClientUrl;
91
92
  private resolveChatAdapterUrl;
92
93
  private updateChatToken;
94
+ private setAuthTokenProvider;
93
95
  }
94
96
  export default OmnichannelChatSDK;