@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 +14 -0
- package/README.md +5 -3
- package/lib/OmnichannelChatSDK.d.ts +1 -0
- package/lib/OmnichannelChatSDK.js +184 -136
- package/lib/OmnichannelChatSDK.js.map +1 -1
- package/lib/config/settings.d.ts +1 -1
- package/lib/config/settings.js +1 -1
- package/lib/core/GetAgentAvailabilityOptionalParams.d.ts +1 -0
- package/lib/core/PostChatContext.d.ts +2 -0
- package/lib/core/StartChatOptionalParams.d.ts +4 -0
- package/lib/core/messaging/ACSClient.js +5 -0
- package/lib/core/messaging/ACSClient.js.map +1 -1
- package/lib/external/ACSAdapter/AMSFileManager.js +2 -1
- package/lib/external/ACSAdapter/AMSFileManager.js.map +1 -1
- package/lib/telemetry/AriaTelemetry.d.ts +1 -0
- package/lib/telemetry/AriaTelemetry.js +49 -0
- package/lib/telemetry/AriaTelemetry.js.map +1 -1
- package/lib/telemetry/ScenarioType.d.ts +1 -0
- package/lib/telemetry/ScenarioType.js +1 -0
- package/lib/telemetry/ScenarioType.js.map +1 -1
- package/lib/telemetry/TelemetryEvent.d.ts +2 -1
- package/lib/telemetry/TelemetryEvent.js +1 -0
- package/lib/telemetry/TelemetryEvent.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +70 -30
- package/lib/utils/location.d.ts +7 -0
- package/lib/utils/location.js +96 -0
- package/lib/utils/location.js.map +1 -0
- package/lib/utils/loggers.d.ts +16 -0
- package/lib/utils/loggers.js +69 -1
- package/lib/utils/loggers.js.map +1 -1
- package/package.json +3 -3
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
|
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
|
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
|
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) {
|