@microsoft/omnichannel-chat-sdk 1.0.1-main.fa78d5f → 1.1.1-main.063303c

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