@microsoft/omnichannel-chat-sdk 1.2.1-main.d718a78 → 1.3.0

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/CHANGELOG.md CHANGED
@@ -2,14 +2,28 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
4
  ## [Unreleased]
5
+
6
+ ## [1.3.0] - 2023-04-05
5
7
  ### Added
6
8
  - Add ability to use `ChatSDK.createChatAdapter()` for `DirectLine` protocol
7
9
  - Add `CreateACSAdapter` telemetry event
8
10
  - Improve `ChatSDK.createChatAdapter()` with retries using exponential backoff & additional details on failures
9
11
  - Add `GetAgentAvailability` SDK method for auth chat
12
+ - Pass `logger` to AMSClient
13
+ - Add `portalContactId` in `StartChatOptionalParams` and `GetAgentAvailabilityOptionalParams`
14
+ - Added exception on initialization failure
15
+ - Upgraded ACSAdapter to version beta.17
16
+ - Added `botSurveyInviteLink` and `botFormsProLocale` the `getPostChatSurveyContext()` response
10
17
 
11
18
  ### Fixed
12
19
  - Fix `ChatAdapterOptionalParams.ACSAdapter.options.egressMiddleware` being used as `ingressMiddleware`
20
+ - Fix `ChatSDK.onTypingEvent()` being triggered on current user typing
21
+ - Update `ChatSDK.liveChatVersion` to be `V2` by default
22
+
23
+ ### Changed
24
+ - Uptake [@microsoft/omnichannel-amsclient@0.1.4](https://www.npmjs.com/package/@microsoft/omnichannel-amsclient/v/0.1.4)
25
+ - Uptake [acs_webchat-chat-adapter@0.0.35-beta.17](https://unpkg.com/acs_webchat-chat-adapter@0.0.35-beta.17/dist/chat-adapter.js)
26
+ - Uptake [@microsoft/ocsdk@0.3.4](https://www.npmjs.com/package/@microsoft/ocsdk/v/0.3.4)
13
27
 
14
28
  ## [1.2.0] - 2022-11-11
15
29
  ### Added
package/README.md CHANGED
@@ -445,10 +445,10 @@ try {
445
445
  ```
446
446
  ### Get Post Chat Survey Context
447
447
 
448
- It gets post chat survey link, survey locale, and whether an agent has joined the survey.
448
+ It gets the participant type that should be used for the survey and both the default and bot survey details.
449
449
 
450
450
  ```ts
451
- const context = await chatSDK.getPostChatSurveyContext();
451
+ const postChatSurveyContext = await chatSDK.getPostChatSurveyContext();
452
452
  ```
453
453
 
454
454
  ### Get Agent Availability
@@ -512,7 +512,9 @@ try {
512
512
  if (context.participantJoined) { // participantJoined will be true if an agent has joined the conversation, or a bot has joined the conversation and the bot survey flag has been turned on on the admin side.
513
513
  // formsProLocale is the default language you have set on the CustomerVoice portal. You can override this url parameter with any locale that CustomerVoice supports.
514
514
  // If "&lang=" is not set on the url, the locale will be English.
515
- const linkToSend = context.surveyInviteLink + "&lang=" + context.formsProLocale;
515
+ const link = context.participantType === "Bot" ? context.botSurveyInviteLink : context.surveyInviteLink;
516
+ const locale = context.participantType === "Bot" ? context.botFormsProLocale : context.formsProLocale;
517
+ const linkToSend = link + "&lang=" + locale;
516
518
  // This link is accessible and will redirect to the survey page. Use it as you see fit.
517
519
  }
518
520
  } catch (ex) {
@@ -55,6 +55,7 @@ declare class OmnichannelChatSDK {
55
55
  private acsClientLogger;
56
56
  private acsAdapterLogger;
57
57
  private callingSdkLogger;
58
+ private amsClientLogger;
58
59
  private isPersistentChat;
59
60
  private isChatReconnect;
60
61
  private reconnectId;