@microsoft/omnichannel-chat-sdk 1.9.6 → 1.9.7-main.68572b9
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/lib/OmnichannelChatSDK.d.ts +128 -128
- package/lib/OmnichannelChatSDK.js +2610 -2609
- package/lib/OmnichannelChatSDK.js.map +1 -1
- package/lib/api/createVoiceVideoCalling.d.ts +53 -53
- package/lib/api/createVoiceVideoCalling.js +462 -462
- package/lib/config/ocSDKConfiguration.d.ts +7 -7
- package/lib/config/ocSDKConfiguration.js +9 -9
- package/lib/config/settings.d.ts +7 -6
- package/lib/config/settings.js +15 -13
- package/lib/config/settings.js.map +1 -1
- package/lib/core/AuthSettings.d.ts +5 -5
- package/lib/core/AuthSettings.js +2 -2
- package/lib/core/AxiosErrorCodes.d.ts +4 -4
- package/lib/core/AxiosErrorCodes.js +7 -7
- package/lib/core/CallingOptionsOptionSetNumber.d.ts +6 -6
- package/lib/core/CallingOptionsOptionSetNumber.js +9 -9
- package/lib/core/ChatConfig.d.ts +10 -10
- package/lib/core/ChatConfig.js +2 -2
- package/lib/core/ChatReconnectContext.d.ts +4 -4
- package/lib/core/ChatReconnectContext.js +2 -2
- package/lib/core/ChatReconnectOptionalParams.d.ts +3 -3
- package/lib/core/ChatReconnectOptionalParams.js +2 -2
- package/lib/core/ChatSDKConfig.d.ts +38 -38
- package/lib/core/ChatSDKConfig.js +2 -2
- package/lib/core/ChatSDKError.d.ts +64 -64
- package/lib/core/ChatSDKError.js +73 -73
- package/lib/core/ChatSDKExceptionDetails.d.ts +13 -13
- package/lib/core/ChatSDKExceptionDetails.js +2 -2
- package/lib/core/ChatTranscriptBody.d.ts +5 -5
- package/lib/core/ChatTranscriptBody.js +2 -2
- package/lib/core/ConversationMode.d.ts +5 -5
- package/lib/core/ConversationMode.js +8 -8
- package/lib/core/EmailLiveChatTranscriptOptionalParams.d.ts +4 -4
- package/lib/core/EmailLiveChatTranscriptOptionalParams.js +2 -2
- package/lib/core/GetAgentAvailabilityOptionalParams.d.ts +13 -13
- package/lib/core/GetAgentAvailabilityOptionalParams.js +2 -2
- package/lib/core/GetChatTokenOptionalParams.d.ts +3 -3
- package/lib/core/GetChatTokenOptionalParams.js +2 -2
- package/lib/core/GetConversationDetailsOptionalParams.d.ts +4 -4
- package/lib/core/GetConversationDetailsOptionalParams.js +2 -2
- package/lib/core/GetLiveChatConfigOptionalParams.d.ts +5 -5
- package/lib/core/GetLiveChatConfigOptionalParams.js +2 -2
- package/lib/core/GetLiveChatTranscriptOptionalParams.d.ts +4 -4
- package/lib/core/GetLiveChatTranscriptOptionalParams.js +2 -2
- package/lib/core/InitializeOptionalParams.d.ts +6 -6
- package/lib/core/InitializeOptionalParams.js +2 -2
- package/lib/core/LiveChatContext.d.ts +14 -14
- package/lib/core/LiveChatContext.js +2 -2
- package/lib/core/LiveChatVersion.d.ts +5 -5
- package/lib/core/LiveChatVersion.js +8 -8
- package/lib/core/LiveWorkItemDetails.d.ts +8 -8
- package/lib/core/LiveWorkItemDetails.js +2 -2
- package/lib/core/LiveWorkItemState.d.ts +8 -8
- package/lib/core/LiveWorkItemState.js +11 -11
- package/lib/core/OmnichannelConfig.d.ts +5 -5
- package/lib/core/OmnichannelConfig.js +2 -2
- package/lib/core/OmnichannelErrorCodes.d.ts +4 -4
- package/lib/core/OmnichannelErrorCodes.js +7 -7
- package/lib/core/PostChatContext.d.ts +8 -8
- package/lib/core/PostChatContext.js +2 -2
- package/lib/core/SetAuthTokenProviderOptionalParams.d.ts +3 -3
- package/lib/core/SetAuthTokenProviderOptionalParams.js +2 -2
- package/lib/core/StartChatOptionalParams.d.ts +18 -18
- package/lib/core/StartChatOptionalParams.js +2 -2
- package/lib/core/messaging/ACSChatMessageType.d.ts +7 -7
- package/lib/core/messaging/ACSChatMessageType.js +10 -10
- package/lib/core/messaging/ACSClient.d.ts +45 -45
- package/lib/core/messaging/ACSClient.js +612 -612
- package/lib/core/messaging/ACSClientConfig.d.ts +5 -5
- package/lib/core/messaging/ACSClientConfig.js +2 -2
- package/lib/core/messaging/ACSParticipantDisplayName.d.ts +6 -6
- package/lib/core/messaging/ACSParticipantDisplayName.js +9 -9
- package/lib/core/messaging/ACSSessionInfo.d.ts +5 -5
- package/lib/core/messaging/ACSSessionInfo.js +2 -2
- package/lib/core/messaging/ChatAdapterConfig.d.ts +8 -8
- package/lib/core/messaging/ChatAdapterConfig.js +2 -2
- package/lib/core/messaging/ChatAdapterOptionalParams.d.ts +24 -24
- package/lib/core/messaging/ChatAdapterOptionalParams.js +2 -2
- package/lib/core/messaging/ChatAdapterProtocols.d.ts +6 -6
- package/lib/core/messaging/ChatAdapterProtocols.js +10 -10
- package/lib/core/messaging/ChatSDKMessage.d.ts +6 -6
- package/lib/core/messaging/ChatSDKMessage.js +2 -2
- package/lib/core/messaging/IC3Config.d.ts +4 -4
- package/lib/core/messaging/IC3Config.js +2 -2
- package/lib/core/messaging/MessageTags.d.ts +3 -3
- package/lib/core/messaging/MessageTags.js +6 -6
- package/lib/core/messaging/OmnichannelMessage.d.ts +64 -64
- package/lib/core/messaging/OmnichannelMessage.js +51 -51
- package/lib/core/messaging/OnNewMessageOptionalParams.d.ts +3 -3
- package/lib/core/messaging/OnNewMessageOptionalParams.js +2 -2
- package/lib/external/ACSAdapter/AMSFileManager.d.ts +76 -76
- package/lib/external/ACSAdapter/AMSFileManager.js +394 -394
- package/lib/external/ACSAdapter/AMSFileScanner.d.ts +36 -36
- package/lib/external/ACSAdapter/AMSFileScanner.js +275 -275
- package/lib/external/ACSAdapter/activityUtils.d.ts +9 -9
- package/lib/external/ACSAdapter/activityUtils.js +79 -79
- package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.d.ts +5 -5
- package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.js +33 -33
- package/lib/external/ACSAdapter/createFileScanIngressMiddleware.d.ts +2 -2
- package/lib/external/ACSAdapter/createFileScanIngressMiddleware.js +95 -95
- package/lib/external/ACSAdapter/createFormatEgressTagsMiddleware.d.ts +2 -2
- package/lib/external/ACSAdapter/createFormatEgressTagsMiddleware.js +30 -30
- package/lib/external/ACSAdapter/createFormatIngressTagsMiddleware.d.ts +2 -2
- package/lib/external/ACSAdapter/createFormatIngressTagsMiddleware.js +24 -24
- package/lib/external/CallingSDK/ICallingSDKLogData.d.ts +7 -7
- package/lib/external/CallingSDK/ICallingSDKLogData.js +2 -2
- package/lib/external/IC3Adapter/IChatToken.d.ts +11 -11
- package/lib/external/IC3Adapter/IChatToken.js +3 -3
- package/lib/external/IC3Adapter/IIC3AdapterOptions.d.ts +22 -22
- package/lib/external/IC3Adapter/IIC3AdapterOptions.js +2 -2
- package/lib/external/IC3Adapter/INotification.d.ts +6 -6
- package/lib/external/IC3Adapter/INotification.js +2 -2
- package/lib/external/IC3Adapter/Notification.d.ts +7 -7
- package/lib/external/IC3Adapter/Notification.js +14 -14
- package/lib/external/IC3Client/IIC3SDKLogData.d.ts +9 -9
- package/lib/external/IC3Client/IIC3SDKLogData.js +2 -2
- package/lib/external/OCSDK/IOCSDKLogData.d.ts +14 -14
- package/lib/external/OCSDK/IOCSDKLogData.js +2 -2
- package/lib/index.d.ts +25 -25
- package/lib/index.js +34 -34
- package/lib/telemetry/AriaTelemetry.d.ts +40 -40
- package/lib/telemetry/AriaTelemetry.js +539 -539
- package/lib/telemetry/EUDomainNames.d.ts +2 -2
- package/lib/telemetry/EUDomainNames.js +16 -16
- package/lib/telemetry/EventMarker.d.ts +3 -3
- package/lib/telemetry/EventMarker.js +12 -12
- package/lib/telemetry/GCCDomainPatterns.d.ts +2 -2
- package/lib/telemetry/GCCDomainPatterns.js +7 -7
- package/lib/telemetry/LogLevel.d.ts +8 -8
- package/lib/telemetry/LogLevel.js +11 -11
- package/lib/telemetry/ScenarioMarker.d.ts +21 -21
- package/lib/telemetry/ScenarioMarker.js +82 -82
- package/lib/telemetry/ScenarioType.d.ts +11 -11
- package/lib/telemetry/ScenarioType.js +14 -14
- package/lib/telemetry/StopWatch.d.ts +6 -6
- package/lib/telemetry/StopWatch.js +14 -14
- package/lib/telemetry/TelemetryEvent.d.ts +46 -46
- package/lib/telemetry/TelemetryEvent.js +49 -49
- package/lib/telemetry/retrieveCollectorUri.d.ts +2 -2
- package/lib/telemetry/retrieveCollectorUri.js +25 -25
- package/lib/tsconfig.tsbuildinfo +1917 -1968
- package/lib/utils/AMSClientLoadStates.d.ts +6 -6
- package/lib/utils/AMSClientLoadStates.js +11 -11
- package/lib/utils/CoreServicesUtils.d.ts +7 -7
- package/lib/utils/CoreServicesUtils.js +39 -39
- package/lib/utils/WebUtils.d.ts +10 -10
- package/lib/utils/WebUtils.js +128 -128
- package/lib/utils/chatAdapterCreators.d.ts +20 -20
- package/lib/utils/chatAdapterCreators.js +208 -208
- package/lib/utils/createOcSDKConfiguration.d.ts +4 -4
- package/lib/utils/createOcSDKConfiguration.js +22 -22
- package/lib/utils/createOmnichannelMessage.d.ts +11 -11
- package/lib/utils/createOmnichannelMessage.js +77 -77
- package/lib/utils/createTelemetry.d.ts +3 -3
- package/lib/utils/createTelemetry.js +9 -9
- package/lib/utils/exceptionSuppressors.d.ts +29 -29
- package/lib/utils/exceptionSuppressors.js +49 -49
- package/lib/utils/exceptionThrowers.d.ts +119 -119
- package/lib/utils/exceptionThrowers.js +137 -137
- package/lib/utils/internalUtils.d.ts +4 -4
- package/lib/utils/internalUtils.js +16 -16
- package/lib/utils/libraries.d.ts +12 -12
- package/lib/utils/libraries.js +34 -34
- package/lib/utils/locale.d.ts +4 -4
- package/lib/utils/locale.js +60 -60
- package/lib/utils/location.d.ts +7 -7
- package/lib/utils/location.js +95 -95
- package/lib/utils/loggerUtils.d.ts +15 -15
- package/lib/utils/loggerUtils.js +55 -55
- package/lib/utils/loggers.d.ts +111 -111
- package/lib/utils/loggers.js +501 -501
- package/lib/utils/parsers.d.ts +6 -6
- package/lib/utils/parsers.js +10 -10
- package/lib/utils/platform.d.ts +9 -9
- package/lib/utils/platform.js +11 -11
- package/lib/utils/setOcUserAgent.d.ts +2 -2
- package/lib/utils/setOcUserAgent.js +21 -21
- package/lib/utils/sleep.d.ts +2 -2
- package/lib/utils/sleep.js +4 -4
- package/lib/utils/urlResolvers.d.ts +10 -10
- package/lib/utils/urlResolvers.js +64 -64
- package/lib/utils/utilities.d.ts +5 -5
- package/lib/utils/utilities.js +36 -36
- package/lib/validators/OmnichannelConfigValidator.d.ts +3 -3
- package/lib/validators/OmnichannelConfigValidator.js +28 -28
- package/lib/validators/SDKConfigValidators.d.ts +5 -5
- package/lib/validators/SDKConfigValidators.js +48 -48
- package/package.json +1 -1
- package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.d.ts +0 -3
- package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js +0 -14
- package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js.map +0 -1
- package/lib/utils/fillMobilePlatformData.d.ts +0 -2
- package/lib/utils/fillMobilePlatformData.js +0 -44
- package/lib/utils/fillMobilePlatformData.js.map +0 -1
- package/lib/utils/fillPlatformData.browser.d.ts +0 -2
- package/lib/utils/fillPlatformData.browser.js +0 -8
- package/lib/utils/fillPlatformData.browser.js.map +0 -1
- package/lib/utils/fillPlatformData.d.ts +0 -2
- package/lib/utils/fillPlatformData.js +0 -8
- package/lib/utils/fillPlatformData.js.map +0 -1
- package/lib/utils/fillWebPlatformData.d.ts +0 -2
- package/lib/utils/fillWebPlatformData.js +0 -21
- package/lib/utils/fillWebPlatformData.js.map +0 -1
@@ -1,78 +1,78 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
3
|
-
__assign = Object.assign || function(t) {
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
-
s = arguments[i];
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
-
t[p] = s[p];
|
8
|
-
}
|
9
|
-
return t;
|
10
|
-
};
|
11
|
-
return __assign.apply(this, arguments);
|
12
|
-
};
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
-
var LiveChatVersion_1 = require("../core/LiveChatVersion");
|
15
|
-
var OmnichannelMessage_1 = require("../core/messaging/OmnichannelMessage");
|
16
|
-
var createOmnichannelMessage = function (message, optionalParams) {
|
17
|
-
var omnichannelMessage = {};
|
18
|
-
omnichannelMessage.liveChatVersion = optionalParams.liveChatVersion || LiveChatVersion_1.default.V1;
|
19
|
-
optionalParams.debug && console.log(message);
|
20
|
-
if (optionalParams.liveChatVersion === LiveChatVersion_1.default.V2) {
|
21
|
-
var _a = message, id = _a.id, content = _a.content, metadata = _a.metadata, sender = _a.sender, senderDisplayName = _a.senderDisplayName, createdOn = _a.createdOn, editedOn = _a.editedOn; // eslint-disable-line @typescript-eslint/no-explicit-any
|
22
|
-
omnichannelMessage.id = id;
|
23
|
-
omnichannelMessage.messageid = undefined;
|
24
|
-
omnichannelMessage.clientmessageid = undefined;
|
25
|
-
omnichannelMessage.deliveryMode = undefined; // Backward compatibility
|
26
|
-
omnichannelMessage.properties = {}; // Backward compatibility
|
27
|
-
omnichannelMessage.content = '';
|
28
|
-
omnichannelMessage.properties.tags = metadata && metadata.tags ? metadata.tags : [];
|
29
|
-
omnichannelMessage.tags = metadata && metadata.tags ? metadata.tags.replace(/\"/g, "").split(",").filter(function (tag) { return tag.length > 0; }) : []; // eslint-disable-line no-useless-escape
|
30
|
-
omnichannelMessage.timestamp = editedOn !== null && editedOn !== void 0 ? editedOn : createdOn;
|
31
|
-
omnichannelMessage.messageType = OmnichannelMessage_1.MessageType.UserMessage; // Backward compatibility
|
32
|
-
omnichannelMessage.sender = {
|
33
|
-
id: sender.communicationUserId,
|
34
|
-
displayName: senderDisplayName,
|
35
|
-
type: OmnichannelMessage_1.PersonType.Bot
|
36
|
-
};
|
37
|
-
if (content) {
|
38
|
-
if (typeof (content) === 'string') {
|
39
|
-
omnichannelMessage.content = content;
|
40
|
-
}
|
41
|
-
else if (typeof (content) === 'object' && typeof (content === null || content === void 0 ? void 0 : content.message) === 'string') { // ChatMessage coming from ChatThreadClient.listMessages() API
|
42
|
-
omnichannelMessage.content = content.message;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
else {
|
46
|
-
if (message.message) { // ChatMessageReceivedEvent coming from WS
|
47
|
-
omnichannelMessage.content = message.message;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
if (metadata && metadata.amsMetadata && metadata.amsReferences || metadata.amsreferences) {
|
51
|
-
try {
|
52
|
-
var data = JSON.parse(metadata.amsMetadata);
|
53
|
-
// "amsreferences" takes precedence
|
54
|
-
var references = JSON.parse(metadata.amsreferences || metadata.amsReferences);
|
55
|
-
var _b = data[0], fileName = _b.fileName, contentType = _b.contentType;
|
56
|
-
// fileMetadata should be defined only when there's an attachment
|
57
|
-
omnichannelMessage.fileMetadata = {}; // Backward compatibility
|
58
|
-
omnichannelMessage.fileMetadata.fileSharingProtocolType = 0;
|
59
|
-
omnichannelMessage.fileMetadata.id = references[0];
|
60
|
-
omnichannelMessage.fileMetadata.name = fileName;
|
61
|
-
omnichannelMessage.fileMetadata.size = 0;
|
62
|
-
omnichannelMessage.fileMetadata.type = contentType;
|
63
|
-
omnichannelMessage.fileMetadata.url = '';
|
64
|
-
}
|
65
|
-
catch (_c) {
|
66
|
-
// Suppress errors to keep chat flowing
|
67
|
-
}
|
68
|
-
}
|
69
|
-
}
|
70
|
-
else {
|
71
|
-
var clientmessageid = message.clientmessageid;
|
72
|
-
omnichannelMessage.id = clientmessageid;
|
73
|
-
omnichannelMessage = __assign({}, message);
|
74
|
-
}
|
75
|
-
return omnichannelMessage;
|
76
|
-
};
|
77
|
-
exports.default = createOmnichannelMessage;
|
1
|
+
"use strict";
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
3
|
+
__assign = Object.assign || function(t) {
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
5
|
+
s = arguments[i];
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
7
|
+
t[p] = s[p];
|
8
|
+
}
|
9
|
+
return t;
|
10
|
+
};
|
11
|
+
return __assign.apply(this, arguments);
|
12
|
+
};
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
14
|
+
var LiveChatVersion_1 = require("../core/LiveChatVersion");
|
15
|
+
var OmnichannelMessage_1 = require("../core/messaging/OmnichannelMessage");
|
16
|
+
var createOmnichannelMessage = function (message, optionalParams) {
|
17
|
+
var omnichannelMessage = {};
|
18
|
+
omnichannelMessage.liveChatVersion = optionalParams.liveChatVersion || LiveChatVersion_1.default.V1;
|
19
|
+
optionalParams.debug && console.log(message);
|
20
|
+
if (optionalParams.liveChatVersion === LiveChatVersion_1.default.V2) {
|
21
|
+
var _a = message, id = _a.id, content = _a.content, metadata = _a.metadata, sender = _a.sender, senderDisplayName = _a.senderDisplayName, createdOn = _a.createdOn, editedOn = _a.editedOn; // eslint-disable-line @typescript-eslint/no-explicit-any
|
22
|
+
omnichannelMessage.id = id;
|
23
|
+
omnichannelMessage.messageid = undefined;
|
24
|
+
omnichannelMessage.clientmessageid = undefined;
|
25
|
+
omnichannelMessage.deliveryMode = undefined; // Backward compatibility
|
26
|
+
omnichannelMessage.properties = {}; // Backward compatibility
|
27
|
+
omnichannelMessage.content = '';
|
28
|
+
omnichannelMessage.properties.tags = metadata && metadata.tags ? metadata.tags : [];
|
29
|
+
omnichannelMessage.tags = metadata && metadata.tags ? metadata.tags.replace(/\"/g, "").split(",").filter(function (tag) { return tag.length > 0; }) : []; // eslint-disable-line no-useless-escape
|
30
|
+
omnichannelMessage.timestamp = editedOn !== null && editedOn !== void 0 ? editedOn : createdOn;
|
31
|
+
omnichannelMessage.messageType = OmnichannelMessage_1.MessageType.UserMessage; // Backward compatibility
|
32
|
+
omnichannelMessage.sender = {
|
33
|
+
id: sender.communicationUserId,
|
34
|
+
displayName: senderDisplayName,
|
35
|
+
type: OmnichannelMessage_1.PersonType.Bot
|
36
|
+
};
|
37
|
+
if (content) {
|
38
|
+
if (typeof (content) === 'string') {
|
39
|
+
omnichannelMessage.content = content;
|
40
|
+
}
|
41
|
+
else if (typeof (content) === 'object' && typeof (content === null || content === void 0 ? void 0 : content.message) === 'string') { // ChatMessage coming from ChatThreadClient.listMessages() API
|
42
|
+
omnichannelMessage.content = content.message;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
else {
|
46
|
+
if (message.message) { // ChatMessageReceivedEvent coming from WS
|
47
|
+
omnichannelMessage.content = message.message;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
if (metadata && metadata.amsMetadata && metadata.amsReferences || metadata.amsreferences) {
|
51
|
+
try {
|
52
|
+
var data = JSON.parse(metadata.amsMetadata);
|
53
|
+
// "amsreferences" takes precedence
|
54
|
+
var references = JSON.parse(metadata.amsreferences || metadata.amsReferences);
|
55
|
+
var _b = data[0], fileName = _b.fileName, contentType = _b.contentType;
|
56
|
+
// fileMetadata should be defined only when there's an attachment
|
57
|
+
omnichannelMessage.fileMetadata = {}; // Backward compatibility
|
58
|
+
omnichannelMessage.fileMetadata.fileSharingProtocolType = 0;
|
59
|
+
omnichannelMessage.fileMetadata.id = references[0];
|
60
|
+
omnichannelMessage.fileMetadata.name = fileName;
|
61
|
+
omnichannelMessage.fileMetadata.size = 0;
|
62
|
+
omnichannelMessage.fileMetadata.type = contentType;
|
63
|
+
omnichannelMessage.fileMetadata.url = '';
|
64
|
+
}
|
65
|
+
catch (_c) {
|
66
|
+
// Suppress errors to keep chat flowing
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
else {
|
71
|
+
var clientmessageid = message.clientmessageid;
|
72
|
+
omnichannelMessage.id = clientmessageid;
|
73
|
+
omnichannelMessage = __assign({}, message);
|
74
|
+
}
|
75
|
+
return omnichannelMessage;
|
76
|
+
};
|
77
|
+
exports.default = createOmnichannelMessage;
|
78
78
|
//# sourceMappingURL=createOmnichannelMessage.js.map
|
@@ -1,3 +1,3 @@
|
|
1
|
-
import AriaTelemetry from "../telemetry/AriaTelemetry";
|
2
|
-
declare const createTelemetry: (debug?: boolean) => typeof AriaTelemetry;
|
3
|
-
export default createTelemetry;
|
1
|
+
import AriaTelemetry from "../telemetry/AriaTelemetry";
|
2
|
+
declare const createTelemetry: (debug?: boolean) => typeof AriaTelemetry;
|
3
|
+
export default createTelemetry;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var AriaTelemetry_1 = require("../telemetry/AriaTelemetry");
|
4
|
-
var createTelemetry = function (debug) {
|
5
|
-
if (debug === void 0) { debug = false; }
|
6
|
-
AriaTelemetry_1.default.setDebug(debug);
|
7
|
-
return AriaTelemetry_1.default;
|
8
|
-
};
|
9
|
-
exports.default = createTelemetry;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var AriaTelemetry_1 = require("../telemetry/AriaTelemetry");
|
4
|
+
var createTelemetry = function (debug) {
|
5
|
+
if (debug === void 0) { debug = false; }
|
6
|
+
AriaTelemetry_1.default.setDebug(debug);
|
7
|
+
return AriaTelemetry_1.default;
|
8
|
+
};
|
9
|
+
exports.default = createTelemetry;
|
10
10
|
//# sourceMappingURL=createTelemetry.js.map
|
@@ -1,29 +1,29 @@
|
|
1
|
-
/**
|
2
|
-
* Utilities to suppress exception on failures in ChatSDK.
|
3
|
-
*
|
4
|
-
* It should catch an exception, then silently fail. Not every exception thrown should be known by the user.
|
5
|
-
*
|
6
|
-
* An exception details object would be logged in telemetry with ChatSDK standard errors as response with the exception object if any.
|
7
|
-
*
|
8
|
-
* If a longer message needs to displayed to the user, a console.error() would be preferred.
|
9
|
-
*
|
10
|
-
* Stack trace should only be logged and not printed.
|
11
|
-
*/
|
12
|
-
import { ChatSDKErrorName } from "../core/ChatSDKError";
|
13
|
-
import ScenarioMarker from "../telemetry/ScenarioMarker";
|
14
|
-
import TelemetryEvent from "../telemetry/TelemetryEvent";
|
15
|
-
export declare const suppressChatSDKError: (chatSDKError: ChatSDKErrorName, e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
16
|
-
[key: string]: string;
|
17
|
-
}, message?: string) => void;
|
18
|
-
export declare const suppressConversationDetailsRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
19
|
-
[key: string]: string;
|
20
|
-
}) => void;
|
21
|
-
declare const _default: {
|
22
|
-
suppressChatSDKError: (chatSDKError: ChatSDKErrorName, e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
23
|
-
[key: string]: string;
|
24
|
-
}, message?: string) => void;
|
25
|
-
suppressConversationDetailsRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
26
|
-
[key: string]: string;
|
27
|
-
}) => void;
|
28
|
-
};
|
29
|
-
export default _default;
|
1
|
+
/**
|
2
|
+
* Utilities to suppress exception on failures in ChatSDK.
|
3
|
+
*
|
4
|
+
* It should catch an exception, then silently fail. Not every exception thrown should be known by the user.
|
5
|
+
*
|
6
|
+
* An exception details object would be logged in telemetry with ChatSDK standard errors as response with the exception object if any.
|
7
|
+
*
|
8
|
+
* If a longer message needs to displayed to the user, a console.error() would be preferred.
|
9
|
+
*
|
10
|
+
* Stack trace should only be logged and not printed.
|
11
|
+
*/
|
12
|
+
import { ChatSDKErrorName } from "../core/ChatSDKError";
|
13
|
+
import ScenarioMarker from "../telemetry/ScenarioMarker";
|
14
|
+
import TelemetryEvent from "../telemetry/TelemetryEvent";
|
15
|
+
export declare const suppressChatSDKError: (chatSDKError: ChatSDKErrorName, e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
16
|
+
[key: string]: string;
|
17
|
+
}, message?: string) => void;
|
18
|
+
export declare const suppressConversationDetailsRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
19
|
+
[key: string]: string;
|
20
|
+
}) => void;
|
21
|
+
declare const _default: {
|
22
|
+
suppressChatSDKError: (chatSDKError: ChatSDKErrorName, e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
23
|
+
[key: string]: string;
|
24
|
+
}, message?: string) => void;
|
25
|
+
suppressConversationDetailsRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
26
|
+
[key: string]: string;
|
27
|
+
}) => void;
|
28
|
+
};
|
29
|
+
export default _default;
|
@@ -1,50 +1,50 @@
|
|
1
|
-
"use strict";
|
2
|
-
/**
|
3
|
-
* Utilities to suppress exception on failures in ChatSDK.
|
4
|
-
*
|
5
|
-
* It should catch an exception, then silently fail. Not every exception thrown should be known by the user.
|
6
|
-
*
|
7
|
-
* An exception details object would be logged in telemetry with ChatSDK standard errors as response with the exception object if any.
|
8
|
-
*
|
9
|
-
* If a longer message needs to displayed to the user, a console.error() would be preferred.
|
10
|
-
*
|
11
|
-
* Stack trace should only be logged and not printed.
|
12
|
-
*/
|
13
|
-
var __assign = (this && this.__assign) || function () {
|
14
|
-
__assign = Object.assign || function(t) {
|
15
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
16
|
-
s = arguments[i];
|
17
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
18
|
-
t[p] = s[p];
|
19
|
-
}
|
20
|
-
return t;
|
21
|
-
};
|
22
|
-
return __assign.apply(this, arguments);
|
23
|
-
};
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
-
exports.suppressConversationDetailsRetrievalFailure = exports.suppressChatSDKError = void 0;
|
26
|
-
var ChatSDKError_1 = require("../core/ChatSDKError");
|
27
|
-
exports.suppressChatSDKError = function (chatSDKError, e, scenarioMarker, telemetryEvent, telemetryData, message) {
|
28
|
-
if (telemetryData === void 0) { telemetryData = {}; }
|
29
|
-
if (message === void 0) { message = ""; }
|
30
|
-
var exceptionDetails = {
|
31
|
-
response: chatSDKError
|
32
|
-
};
|
33
|
-
if (e) {
|
34
|
-
exceptionDetails.errorObject = "" + e;
|
35
|
-
}
|
36
|
-
scenarioMarker.failScenario(telemetryEvent, __assign(__assign({}, telemetryData), { ExceptionDetails: JSON.stringify(exceptionDetails) }));
|
37
|
-
if (message) {
|
38
|
-
exceptionDetails.message = message;
|
39
|
-
console.error(message);
|
40
|
-
}
|
41
|
-
};
|
42
|
-
exports.suppressConversationDetailsRetrievalFailure = function (e, scenarioMarker, telemetryEvent, telemetryData) {
|
43
|
-
if (telemetryData === void 0) { telemetryData = {}; }
|
44
|
-
exports.suppressChatSDKError(ChatSDKError_1.ChatSDKErrorName.ConversationDetailsRetrievalFailure, e, scenarioMarker, telemetryEvent, telemetryData);
|
45
|
-
};
|
46
|
-
exports.default = {
|
47
|
-
suppressChatSDKError: exports.suppressChatSDKError,
|
48
|
-
suppressConversationDetailsRetrievalFailure: exports.suppressConversationDetailsRetrievalFailure
|
49
|
-
};
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* Utilities to suppress exception on failures in ChatSDK.
|
4
|
+
*
|
5
|
+
* It should catch an exception, then silently fail. Not every exception thrown should be known by the user.
|
6
|
+
*
|
7
|
+
* An exception details object would be logged in telemetry with ChatSDK standard errors as response with the exception object if any.
|
8
|
+
*
|
9
|
+
* If a longer message needs to displayed to the user, a console.error() would be preferred.
|
10
|
+
*
|
11
|
+
* Stack trace should only be logged and not printed.
|
12
|
+
*/
|
13
|
+
var __assign = (this && this.__assign) || function () {
|
14
|
+
__assign = Object.assign || function(t) {
|
15
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
16
|
+
s = arguments[i];
|
17
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
18
|
+
t[p] = s[p];
|
19
|
+
}
|
20
|
+
return t;
|
21
|
+
};
|
22
|
+
return __assign.apply(this, arguments);
|
23
|
+
};
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
25
|
+
exports.suppressConversationDetailsRetrievalFailure = exports.suppressChatSDKError = void 0;
|
26
|
+
var ChatSDKError_1 = require("../core/ChatSDKError");
|
27
|
+
exports.suppressChatSDKError = function (chatSDKError, e, scenarioMarker, telemetryEvent, telemetryData, message) {
|
28
|
+
if (telemetryData === void 0) { telemetryData = {}; }
|
29
|
+
if (message === void 0) { message = ""; }
|
30
|
+
var exceptionDetails = {
|
31
|
+
response: chatSDKError
|
32
|
+
};
|
33
|
+
if (e) {
|
34
|
+
exceptionDetails.errorObject = "" + e;
|
35
|
+
}
|
36
|
+
scenarioMarker.failScenario(telemetryEvent, __assign(__assign({}, telemetryData), { ExceptionDetails: JSON.stringify(exceptionDetails) }));
|
37
|
+
if (message) {
|
38
|
+
exceptionDetails.message = message;
|
39
|
+
console.error(message);
|
40
|
+
}
|
41
|
+
};
|
42
|
+
exports.suppressConversationDetailsRetrievalFailure = function (e, scenarioMarker, telemetryEvent, telemetryData) {
|
43
|
+
if (telemetryData === void 0) { telemetryData = {}; }
|
44
|
+
exports.suppressChatSDKError(ChatSDKError_1.ChatSDKErrorName.ConversationDetailsRetrievalFailure, e, scenarioMarker, telemetryEvent, telemetryData);
|
45
|
+
};
|
46
|
+
exports.default = {
|
47
|
+
suppressChatSDKError: exports.suppressChatSDKError,
|
48
|
+
suppressConversationDetailsRetrievalFailure: exports.suppressConversationDetailsRetrievalFailure
|
49
|
+
};
|
50
50
|
//# sourceMappingURL=exceptionSuppressors.js.map
|
@@ -1,119 +1,119 @@
|
|
1
|
-
/**
|
2
|
-
* Utilities to throw exception on failures in ChatSDK.
|
3
|
-
*
|
4
|
-
* It should throw ChatSDK standard errors.
|
5
|
-
*
|
6
|
-
* An exception details object would be logged in telemetry with ChatSDK standard errors as response with the exception object if any.
|
7
|
-
*
|
8
|
-
* The error thrown should have a short message in CamelCase to allow the exception to be caught easily programmatically.
|
9
|
-
*
|
10
|
-
* If a longer message needs to displayed to the user, a console.error() would be preferred.
|
11
|
-
*
|
12
|
-
* Stack trace should only be logged and not printed.
|
13
|
-
*/
|
14
|
-
import { ChatSDKErrorName } from "../core/ChatSDKError";
|
15
|
-
import ScenarioMarker from "../telemetry/ScenarioMarker";
|
16
|
-
import TelemetryEvent from "../telemetry/TelemetryEvent";
|
17
|
-
export declare const throwChatSDKError: (chatSDKError: ChatSDKErrorName, e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
18
|
-
[key: string]: string;
|
19
|
-
}, message?: string) => void;
|
20
|
-
export declare const throwScriptLoadFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
21
|
-
export declare const throwUnsupportedPlatform: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, message: string, telemetryData?: {
|
22
|
-
[key: string]: string;
|
23
|
-
}) => void;
|
24
|
-
export declare const throwFeatureDisabled: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, message: string) => void;
|
25
|
-
export declare const throwOmnichannelClientInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
26
|
-
export declare const throwChatConfigRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
27
|
-
export declare const throwUnsupportedLiveChatVersionFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
28
|
-
export declare const throwMessagingClientCreationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
29
|
-
export declare const throwUninitializedChatSDK: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
30
|
-
export declare const throwChatTokenRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
31
|
-
[key: string]: string;
|
32
|
-
}) => void;
|
33
|
-
export declare const throwInvalidConversation: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
34
|
-
[key: string]: string;
|
35
|
-
}) => void;
|
36
|
-
export declare const throwClosedConversation: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
37
|
-
[key: string]: string;
|
38
|
-
}) => void;
|
39
|
-
export declare const throwAuthenticatedChatConversationRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
40
|
-
[key: string]: string;
|
41
|
-
}) => void;
|
42
|
-
export declare const throwPersistentChatConversationRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
43
|
-
[key: string]: string;
|
44
|
-
}) => void;
|
45
|
-
export declare const throwWidgetUseOutsideOperatingHour: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
46
|
-
[key: string]: string;
|
47
|
-
}) => void;
|
48
|
-
export declare const throwConversationInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
49
|
-
[key: string]: string;
|
50
|
-
}) => void;
|
51
|
-
export declare const throwConversationClosureFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
52
|
-
[key: string]: string;
|
53
|
-
}) => void;
|
54
|
-
export declare const throwMessagingClientInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
55
|
-
[key: string]: string;
|
56
|
-
}) => void;
|
57
|
-
export declare const throwMessagingClientConversationJoinFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
58
|
-
[key: string]: string;
|
59
|
-
}) => void;
|
60
|
-
export declare const throwChatAdapterInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
61
|
-
export declare const throwLiveChatTranscriptRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
62
|
-
[key: string]: string;
|
63
|
-
}) => void;
|
64
|
-
export declare const throwAuthContactIdNotFoundFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
65
|
-
[key: string]: string;
|
66
|
-
}) => void;
|
67
|
-
declare const _default: {
|
68
|
-
throwChatSDKError: (chatSDKError: ChatSDKErrorName, e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
69
|
-
[key: string]: string;
|
70
|
-
}, message?: string) => void;
|
71
|
-
throwScriptLoadFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
72
|
-
throwUnsupportedPlatform: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, message: string, telemetryData?: {
|
73
|
-
[key: string]: string;
|
74
|
-
}) => void;
|
75
|
-
throwFeatureDisabled: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, message: string) => void;
|
76
|
-
throwOmnichannelClientInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
77
|
-
throwUnsupportedLiveChatVersionFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
78
|
-
throwChatConfigRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
79
|
-
throwMessagingClientCreationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
80
|
-
throwUninitializedChatSDK: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
81
|
-
throwChatTokenRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
82
|
-
[key: string]: string;
|
83
|
-
}) => void;
|
84
|
-
throwInvalidConversation: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
85
|
-
[key: string]: string;
|
86
|
-
}) => void;
|
87
|
-
throwClosedConversation: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
88
|
-
[key: string]: string;
|
89
|
-
}) => void;
|
90
|
-
throwAuthenticatedChatConversationRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
91
|
-
[key: string]: string;
|
92
|
-
}) => void;
|
93
|
-
throwPersistentChatConversationRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
94
|
-
[key: string]: string;
|
95
|
-
}) => void;
|
96
|
-
throwWidgetUseOutsideOperatingHour: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
97
|
-
[key: string]: string;
|
98
|
-
}) => void;
|
99
|
-
throwConversationInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
100
|
-
[key: string]: string;
|
101
|
-
}) => void;
|
102
|
-
throwConversationClosureFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
103
|
-
[key: string]: string;
|
104
|
-
}) => void;
|
105
|
-
throwMessagingClientInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
106
|
-
[key: string]: string;
|
107
|
-
}) => void;
|
108
|
-
throwMessagingClientConversationJoinFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
109
|
-
[key: string]: string;
|
110
|
-
}) => void;
|
111
|
-
throwChatAdapterInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
112
|
-
throwLiveChatTranscriptRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
113
|
-
[key: string]: string;
|
114
|
-
}) => void;
|
115
|
-
throwAuthContactIdNotFoundFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
116
|
-
[key: string]: string;
|
117
|
-
}) => void;
|
118
|
-
};
|
119
|
-
export default _default;
|
1
|
+
/**
|
2
|
+
* Utilities to throw exception on failures in ChatSDK.
|
3
|
+
*
|
4
|
+
* It should throw ChatSDK standard errors.
|
5
|
+
*
|
6
|
+
* An exception details object would be logged in telemetry with ChatSDK standard errors as response with the exception object if any.
|
7
|
+
*
|
8
|
+
* The error thrown should have a short message in CamelCase to allow the exception to be caught easily programmatically.
|
9
|
+
*
|
10
|
+
* If a longer message needs to displayed to the user, a console.error() would be preferred.
|
11
|
+
*
|
12
|
+
* Stack trace should only be logged and not printed.
|
13
|
+
*/
|
14
|
+
import { ChatSDKErrorName } from "../core/ChatSDKError";
|
15
|
+
import ScenarioMarker from "../telemetry/ScenarioMarker";
|
16
|
+
import TelemetryEvent from "../telemetry/TelemetryEvent";
|
17
|
+
export declare const throwChatSDKError: (chatSDKError: ChatSDKErrorName, e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
18
|
+
[key: string]: string;
|
19
|
+
}, message?: string) => void;
|
20
|
+
export declare const throwScriptLoadFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
21
|
+
export declare const throwUnsupportedPlatform: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, message: string, telemetryData?: {
|
22
|
+
[key: string]: string;
|
23
|
+
}) => void;
|
24
|
+
export declare const throwFeatureDisabled: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, message: string) => void;
|
25
|
+
export declare const throwOmnichannelClientInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
26
|
+
export declare const throwChatConfigRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
27
|
+
export declare const throwUnsupportedLiveChatVersionFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
28
|
+
export declare const throwMessagingClientCreationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
29
|
+
export declare const throwUninitializedChatSDK: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
30
|
+
export declare const throwChatTokenRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
31
|
+
[key: string]: string;
|
32
|
+
}) => void;
|
33
|
+
export declare const throwInvalidConversation: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
34
|
+
[key: string]: string;
|
35
|
+
}) => void;
|
36
|
+
export declare const throwClosedConversation: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
37
|
+
[key: string]: string;
|
38
|
+
}) => void;
|
39
|
+
export declare const throwAuthenticatedChatConversationRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
40
|
+
[key: string]: string;
|
41
|
+
}) => void;
|
42
|
+
export declare const throwPersistentChatConversationRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
43
|
+
[key: string]: string;
|
44
|
+
}) => void;
|
45
|
+
export declare const throwWidgetUseOutsideOperatingHour: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
46
|
+
[key: string]: string;
|
47
|
+
}) => void;
|
48
|
+
export declare const throwConversationInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
49
|
+
[key: string]: string;
|
50
|
+
}) => void;
|
51
|
+
export declare const throwConversationClosureFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
52
|
+
[key: string]: string;
|
53
|
+
}) => void;
|
54
|
+
export declare const throwMessagingClientInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
55
|
+
[key: string]: string;
|
56
|
+
}) => void;
|
57
|
+
export declare const throwMessagingClientConversationJoinFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
58
|
+
[key: string]: string;
|
59
|
+
}) => void;
|
60
|
+
export declare const throwChatAdapterInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
61
|
+
export declare const throwLiveChatTranscriptRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
62
|
+
[key: string]: string;
|
63
|
+
}) => void;
|
64
|
+
export declare const throwAuthContactIdNotFoundFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
65
|
+
[key: string]: string;
|
66
|
+
}) => void;
|
67
|
+
declare const _default: {
|
68
|
+
throwChatSDKError: (chatSDKError: ChatSDKErrorName, e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData?: {
|
69
|
+
[key: string]: string;
|
70
|
+
}, message?: string) => void;
|
71
|
+
throwScriptLoadFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
72
|
+
throwUnsupportedPlatform: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, message: string, telemetryData?: {
|
73
|
+
[key: string]: string;
|
74
|
+
}) => void;
|
75
|
+
throwFeatureDisabled: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, message: string) => void;
|
76
|
+
throwOmnichannelClientInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
77
|
+
throwUnsupportedLiveChatVersionFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
78
|
+
throwChatConfigRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
79
|
+
throwMessagingClientCreationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
80
|
+
throwUninitializedChatSDK: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
81
|
+
throwChatTokenRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
82
|
+
[key: string]: string;
|
83
|
+
}) => void;
|
84
|
+
throwInvalidConversation: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
85
|
+
[key: string]: string;
|
86
|
+
}) => void;
|
87
|
+
throwClosedConversation: (scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
88
|
+
[key: string]: string;
|
89
|
+
}) => void;
|
90
|
+
throwAuthenticatedChatConversationRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
91
|
+
[key: string]: string;
|
92
|
+
}) => void;
|
93
|
+
throwPersistentChatConversationRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
94
|
+
[key: string]: string;
|
95
|
+
}) => void;
|
96
|
+
throwWidgetUseOutsideOperatingHour: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
97
|
+
[key: string]: string;
|
98
|
+
}) => void;
|
99
|
+
throwConversationInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
100
|
+
[key: string]: string;
|
101
|
+
}) => void;
|
102
|
+
throwConversationClosureFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
103
|
+
[key: string]: string;
|
104
|
+
}) => void;
|
105
|
+
throwMessagingClientInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
106
|
+
[key: string]: string;
|
107
|
+
}) => void;
|
108
|
+
throwMessagingClientConversationJoinFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
109
|
+
[key: string]: string;
|
110
|
+
}) => void;
|
111
|
+
throwChatAdapterInitializationFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent) => void;
|
112
|
+
throwLiveChatTranscriptRetrievalFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
113
|
+
[key: string]: string;
|
114
|
+
}) => void;
|
115
|
+
throwAuthContactIdNotFoundFailure: (e: unknown, scenarioMarker: ScenarioMarker, telemetryEvent: TelemetryEvent, telemetryData: {
|
116
|
+
[key: string]: string;
|
117
|
+
}) => void;
|
118
|
+
};
|
119
|
+
export default _default;
|