@microsoft/omnichannel-chat-sdk 1.0.1-main.fa78d5f → 1.1.1-main.211b61c

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