@microsoft/omnichannel-chat-sdk 1.0.1-main.fa78d5f → 1.1.1-main.27f09ae

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 (68) hide show
  1. package/CHANGELOG.md +27 -3
  2. package/README.md +482 -306
  3. package/lib/OmnichannelChatSDK.d.ts +10 -6
  4. package/lib/OmnichannelChatSDK.js +333 -311
  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/GetLiveChatConfigOptionalParams.d.ts +5 -0
  16. package/lib/core/GetLiveChatConfigOptionalParams.js +3 -0
  17. package/lib/core/GetLiveChatConfigOptionalParams.js.map +1 -0
  18. package/lib/core/InitializeOptionalParams.d.ts +5 -0
  19. package/lib/core/InitializeOptionalParams.js +3 -0
  20. package/lib/core/InitializeOptionalParams.js.map +1 -0
  21. package/lib/core/LiveWorkItemDetails.d.ts +2 -0
  22. package/lib/core/OmnichannelErrorCodes.d.ts +4 -0
  23. package/lib/core/OmnichannelErrorCodes.js +8 -0
  24. package/lib/core/OmnichannelErrorCodes.js.map +1 -0
  25. package/lib/core/PostChatContext.d.ts +1 -0
  26. package/lib/core/StartChatOptionalParams.d.ts +1 -0
  27. package/lib/core/messaging/ChatAdapterOptionalParams.d.ts +14 -0
  28. package/lib/core/messaging/ChatAdapterOptionalParams.js +3 -0
  29. package/lib/core/messaging/ChatAdapterOptionalParams.js.map +1 -0
  30. package/lib/core/messaging/MessageTags.d.ts +2 -0
  31. package/lib/core/messaging/MessageTags.js +4 -2
  32. package/lib/core/messaging/MessageTags.js.map +1 -1
  33. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.d.ts +5 -0
  34. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.js +34 -0
  35. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.js.map +1 -0
  36. package/lib/external/CallingSDK/ICallingSDKLogData.d.ts +7 -0
  37. package/lib/external/CallingSDK/ICallingSDKLogData.js +3 -0
  38. package/lib/external/CallingSDK/ICallingSDKLogData.js.map +1 -0
  39. package/lib/external/IC3Adapter/IIC3AdapterOptions.d.ts +12 -0
  40. package/lib/index.d.ts +7 -6
  41. package/lib/index.js +13 -8
  42. package/lib/index.js.map +1 -1
  43. package/lib/telemetry/AriaTelemetry.d.ts +1 -0
  44. package/lib/telemetry/AriaTelemetry.js +55 -0
  45. package/lib/telemetry/AriaTelemetry.js.map +1 -1
  46. package/lib/telemetry/ScenarioMarker.d.ts +2 -0
  47. package/lib/telemetry/ScenarioMarker.js +7 -3
  48. package/lib/telemetry/ScenarioMarker.js.map +1 -1
  49. package/lib/telemetry/ScenarioType.d.ts +1 -0
  50. package/lib/telemetry/ScenarioType.js +1 -0
  51. package/lib/telemetry/ScenarioType.js.map +1 -1
  52. package/lib/telemetry/TelemetryEvent.d.ts +1 -3
  53. package/lib/telemetry/TelemetryEvent.js +0 -2
  54. package/lib/telemetry/TelemetryEvent.js.map +1 -1
  55. package/lib/tsconfig.tsbuildinfo +200 -73
  56. package/lib/utils/WebUtils.d.ts +3 -1
  57. package/lib/utils/WebUtils.js +8 -2
  58. package/lib/utils/WebUtils.js.map +1 -1
  59. package/lib/utils/libraries.d.ts +1 -3
  60. package/lib/utils/libraries.js +2 -11
  61. package/lib/utils/libraries.js.map +1 -1
  62. package/lib/utils/locale.d.ts +2 -0
  63. package/lib/utils/locale.js +5 -3
  64. package/lib/utils/locale.js.map +1 -1
  65. package/lib/utils/loggers.d.ts +26 -1
  66. package/lib/utils/loggers.js +94 -2
  67. package/lib/utils/loggers.js.map +1 -1
  68. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -2,20 +2,44 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
4
  ## [Unreleased]
5
+ ### Added
6
+ - Add `sendDefaultInitContext` optional parameter to `ChatSDK.startChat()` to automatically populate `browser`, `device`, `originurl` & `os` as default init context on web
7
+ - Add `sendCacheHeaders` as optional paramater to `ChatSDK.initialize()` and `ChatSDK.getLiveChatConfig()`
8
+
9
+ ### Changed
10
+ - Uptake [@microsoft/ocsdk@0.3.1](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.3.1)
5
11
 
12
+ ## [1.1.0] - 2022-04-15
6
13
  ### Added
7
- - Add Post Chat Survey Support
8
- - Add `getPostChatSurveyContext` & `initializePostChatRenderer` and `renderPostChatSurvey` API methods
9
- - Add `GetPostChatSurveyContext`, `RenderPostChatSurvey`, and `InitializePostChatRenderer` telemetry events
14
+ - Add `getPostChatSurveyContext` API method
15
+ - Add `GetPostChatSurveyContext` telemetry event
10
16
  - Add `widgetId` & `clientMessageId` as metadata on sending message
17
+ - Update `ChatConfig` interface with `LiveChatVersion`, `allowedFileExtensions` & `maxUploadFileSize` properties
18
+ - Add ability to automatically detect locale from chat config
19
+ - Add `runtimeId` attribute in `OmnichannelChatSDK` & `ChatSDKRuntimeId` field in telemetry
20
+ - Add ability to automatically pass locale from chat config on calling `ChatSDK.emailLiveChatTranscript()`
21
+ - Bubble up `WidgetUseOutsideOperatingHour` exception
22
+ - Add `acs_webchat-chat-adapter` middleware to add default `channelData.tags` & `channelData.metadata`
23
+ - Update `ChatConfig` interface with `msdyn_enablemarkdown` property
24
+ - Throw exception on `ChatSDK.getVoiceVideoCalling()` if feature is disabled or platform is not supported
25
+ - Add `participantType` & `canRenderPostChat` as response of getConversationDetails() API
26
+ - Add support for separate bot post chat survey feature
27
+ - Pass `logger` to `acs_webchat-chat-adapter`
11
28
 
12
29
  ### Fix
13
30
  - Add `acs_webchat-chat-adapter` middlewares to format `channelData.tags`
31
+ - Skip `session init` call on existing conversation
32
+ - Fix `chat reconnect` not ending the conversation on calling `ChatSDK.endChat()`
33
+ - Fix on messaging client not sending heartbeat on new conversations subsequent to the first conversation
34
+ - Fix `ChatSDK.getConversationDetails()` not passing `authenticatedUserToken`
35
+ - Fix `IC3Client.dispose()` called when `IC3Client` is `undefined`
14
36
 
15
37
  ### Changed
16
38
  - README: added examples on usages of the post chat APIs.
17
39
  - Uptake [@azure/communication-chat@1.1.1](https://www.npmjs.com/package/@azure/communication-chat/v/1.1.1)
18
40
  - Uptake [acs_webchat-chat-adapter@0.0.35-beta.2](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.2/dist/chat-adapter.js)
41
+ - Update `locale` property in `ChatTranscriptBody` interface to be optional
42
+ - Uptake [acs_webchat-chat-adapter@0.0.35-beta.4](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.4/dist/chat-adapter.js)
19
43
 
20
44
  ## [1.0.0] - 2021-10-08
21
45
  ### Added