@microsoft/omnichannel-chat-sdk 1.9.5 → 1.9.6
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 -114
- package/lib/OmnichannelChatSDK.js +2609 -2394
- package/lib/OmnichannelChatSDK.js.map +1 -1
- package/lib/api/createVoiceVideoCalling.d.ts +53 -53
- package/lib/api/createVoiceVideoCalling.js +462 -462
- package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.d.ts +3 -0
- package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js +14 -0
- package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js.map +1 -0
- package/lib/config/ocSDKConfiguration.d.ts +7 -7
- package/lib/config/ocSDKConfiguration.js +9 -9
- package/lib/config/settings.d.ts +6 -6
- package/lib/config/settings.js +13 -13
- 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 -63
- package/lib/core/ChatSDKError.js +73 -72
- package/lib/core/ChatSDKError.js.map +1 -1
- 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 -5
- 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 -42
- package/lib/telemetry/TelemetryEvent.js +49 -45
- package/lib/telemetry/TelemetryEvent.js.map +1 -1
- package/lib/telemetry/retrieveCollectorUri.d.ts +2 -2
- package/lib/telemetry/retrieveCollectorUri.js +25 -25
- package/lib/tsconfig.tsbuildinfo +1976 -1911
- package/lib/utils/AMSClientLoadStates.d.ts +6 -0
- package/lib/utils/AMSClientLoadStates.js +12 -0
- package/lib/utils/AMSClientLoadStates.js.map +1 -0
- 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/fillMobilePlatformData.d.ts +2 -0
- package/lib/utils/fillMobilePlatformData.js +44 -0
- package/lib/utils/fillMobilePlatformData.js.map +1 -0
- package/lib/utils/fillPlatformData.browser.d.ts +2 -0
- package/lib/utils/fillPlatformData.browser.js +8 -0
- package/lib/utils/fillPlatformData.browser.js.map +1 -0
- package/lib/utils/fillPlatformData.d.ts +2 -0
- package/lib/utils/fillPlatformData.js +8 -0
- package/lib/utils/fillPlatformData.js.map +1 -0
- package/lib/utils/fillWebPlatformData.d.ts +2 -0
- package/lib/utils/fillWebPlatformData.js +21 -0
- package/lib/utils/fillWebPlatformData.js.map +1 -0
- 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/CHANGELOG.md +0 -435
@@ -0,0 +1,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var ChatSDKError_1 = require("../core/ChatSDKError");
|
4
|
+
var LiveChatVersion_1 = require("../core/LiveChatVersion");
|
5
|
+
var TelemetryEvent_1 = require("../telemetry/TelemetryEvent");
|
6
|
+
var exceptionThrowers_1 = require("../utils/exceptionThrowers");
|
7
|
+
var throwUnsupportedLiveChatVersionFailureIfApplicable = function (liveChatVersion, scenarioMarker) {
|
8
|
+
var supportedLiveChatVersions = [LiveChatVersion_1.default.V1, LiveChatVersion_1.default.V2];
|
9
|
+
if (!supportedLiveChatVersions.includes(liveChatVersion)) {
|
10
|
+
exceptionThrowers_1.default.throwUnsupportedLiveChatVersionFailure(new Error(ChatSDKError_1.ChatSDKErrorName.UnsupportedLiveChatVersion), scenarioMarker, TelemetryEvent_1.default.InitializeChatSDK);
|
11
|
+
}
|
12
|
+
};
|
13
|
+
exports.default = throwUnsupportedLiveChatVersionFailureIfApplicable;
|
14
|
+
//# sourceMappingURL=throwUnsupportedLiveChatVersionFailureIfApplicable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"throwUnsupportedLiveChatVersionFailureIfApplicable.js","sourceRoot":"","sources":["../../src/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.ts"],"names":[],"mappings":";;AAAA,qDAAwD;AACxD,2DAAsD;AAEtD,8DAAyD;AACzD,gEAA2D;AAE3D,IAAM,kDAAkD,GAAG,UAAC,eAAuB,EAAE,cAA8B;IAC/G,IAAM,yBAAyB,GAAG,CAAC,yBAAe,CAAC,EAAE,EAAE,yBAAe,CAAC,EAAE,CAAC,CAAC;IAC3E,IAAI,CAAC,yBAAyB,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;QACtD,2BAAiB,CAAC,sCAAsC,CAAC,IAAI,KAAK,CAAC,+BAAgB,CAAC,0BAA0B,CAAC,EAAE,cAAc,EAAE,wBAAc,CAAC,iBAAiB,CAAC,CAAC;KACtK;AACL,CAAC,CAAC;AAEF,kBAAe,kDAAkD,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
declare const ocSDKConfiguration: {
|
2
|
-
getChatTokenRetryCount: number;
|
3
|
-
getChatTokenTimeBetweenRetriesOnFailure: number;
|
4
|
-
getChatTokenRetryOn429: boolean;
|
5
|
-
useUnauthReconnectIdSigQueryParam: boolean;
|
6
|
-
};
|
7
|
-
export default ocSDKConfiguration;
|
1
|
+
declare const ocSDKConfiguration: {
|
2
|
+
getChatTokenRetryCount: number;
|
3
|
+
getChatTokenTimeBetweenRetriesOnFailure: number;
|
4
|
+
getChatTokenRetryOn429: boolean;
|
5
|
+
useUnauthReconnectIdSigQueryParam: boolean;
|
6
|
+
};
|
7
|
+
export default ocSDKConfiguration;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var ocSDKConfiguration = {
|
4
|
-
getChatTokenRetryCount: 5,
|
5
|
-
getChatTokenTimeBetweenRetriesOnFailure: 2000,
|
6
|
-
getChatTokenRetryOn429: true,
|
7
|
-
useUnauthReconnectIdSigQueryParam: false
|
8
|
-
};
|
9
|
-
exports.default = ocSDKConfiguration;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var ocSDKConfiguration = {
|
4
|
+
getChatTokenRetryCount: 5,
|
5
|
+
getChatTokenTimeBetweenRetriesOnFailure: 2000,
|
6
|
+
getChatTokenRetryOn429: true,
|
7
|
+
useUnauthReconnectIdSigQueryParam: false
|
8
|
+
};
|
9
|
+
exports.default = ocSDKConfiguration;
|
10
10
|
//# sourceMappingURL=ocSDKConfiguration.js.map
|
package/lib/config/settings.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
declare const ic3ClientVersion = "2021.08.14.1";
|
2
|
-
declare const webChatIC3AdapterVersion = "0.1.0-master.2dba07b";
|
3
|
-
declare const webChatACSAdapterVersion = "0.0.35-beta.20";
|
4
|
-
declare const webChatDirectLineVersion = "0.15.1";
|
5
|
-
declare const ariaTelemetryKey = "c7655518acf1403f93ff6b9f77942f0a-d01a02fd-6b50-4de3-a566-62eda11f93bc-7083";
|
6
|
-
export { ic3ClientVersion, webChatIC3AdapterVersion, webChatACSAdapterVersion, webChatDirectLineVersion, ariaTelemetryKey };
|
1
|
+
declare const ic3ClientVersion = "2021.08.14.1";
|
2
|
+
declare const webChatIC3AdapterVersion = "0.1.0-master.2dba07b";
|
3
|
+
declare const webChatACSAdapterVersion = "0.0.35-beta.20";
|
4
|
+
declare const webChatDirectLineVersion = "0.15.1";
|
5
|
+
declare const ariaTelemetryKey = "c7655518acf1403f93ff6b9f77942f0a-d01a02fd-6b50-4de3-a566-62eda11f93bc-7083";
|
6
|
+
export { ic3ClientVersion, webChatIC3AdapterVersion, webChatACSAdapterVersion, webChatDirectLineVersion, ariaTelemetryKey };
|
package/lib/config/settings.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ariaTelemetryKey = exports.webChatDirectLineVersion = exports.webChatACSAdapterVersion = exports.webChatIC3AdapterVersion = exports.ic3ClientVersion = void 0;
|
4
|
-
var ic3ClientVersion = '2021.08.14.1';
|
5
|
-
exports.ic3ClientVersion = ic3ClientVersion;
|
6
|
-
var webChatIC3AdapterVersion = '0.1.0-master.2dba07b';
|
7
|
-
exports.webChatIC3AdapterVersion = webChatIC3AdapterVersion;
|
8
|
-
var webChatACSAdapterVersion = '0.0.35-beta.20';
|
9
|
-
exports.webChatACSAdapterVersion = webChatACSAdapterVersion;
|
10
|
-
var webChatDirectLineVersion = '0.15.1';
|
11
|
-
exports.webChatDirectLineVersion = webChatDirectLineVersion;
|
12
|
-
var ariaTelemetryKey = 'c7655518acf1403f93ff6b9f77942f0a-d01a02fd-6b50-4de3-a566-62eda11f93bc-7083';
|
13
|
-
exports.ariaTelemetryKey = ariaTelemetryKey;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ariaTelemetryKey = exports.webChatDirectLineVersion = exports.webChatACSAdapterVersion = exports.webChatIC3AdapterVersion = exports.ic3ClientVersion = void 0;
|
4
|
+
var ic3ClientVersion = '2021.08.14.1';
|
5
|
+
exports.ic3ClientVersion = ic3ClientVersion;
|
6
|
+
var webChatIC3AdapterVersion = '0.1.0-master.2dba07b';
|
7
|
+
exports.webChatIC3AdapterVersion = webChatIC3AdapterVersion;
|
8
|
+
var webChatACSAdapterVersion = '0.0.35-beta.20';
|
9
|
+
exports.webChatACSAdapterVersion = webChatACSAdapterVersion;
|
10
|
+
var webChatDirectLineVersion = '0.15.1';
|
11
|
+
exports.webChatDirectLineVersion = webChatDirectLineVersion;
|
12
|
+
var ariaTelemetryKey = 'c7655518acf1403f93ff6b9f77942f0a-d01a02fd-6b50-4de3-a566-62eda11f93bc-7083';
|
13
|
+
exports.ariaTelemetryKey = ariaTelemetryKey;
|
14
14
|
//# sourceMappingURL=settings.js.map
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export default interface AuthSettings {
|
2
|
-
msdyn_authenticationtype: string;
|
3
|
-
msdyn_javascriptclientfunction: string;
|
4
|
-
msdyn_publickeyurl: string;
|
5
|
-
}
|
1
|
+
export default interface AuthSettings {
|
2
|
+
msdyn_authenticationtype: string;
|
3
|
+
msdyn_javascriptclientfunction: string;
|
4
|
+
msdyn_publickeyurl: string;
|
5
|
+
}
|
package/lib/core/AuthSettings.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=AuthSettings.js.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
declare enum AxiosErrorCodes {
|
2
|
-
ERR_NETWORK = "ERR_NETWORK"
|
3
|
-
}
|
4
|
-
export default AxiosErrorCodes;
|
1
|
+
declare enum AxiosErrorCodes {
|
2
|
+
ERR_NETWORK = "ERR_NETWORK"
|
3
|
+
}
|
4
|
+
export default AxiosErrorCodes;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var AxiosErrorCodes;
|
4
|
-
(function (AxiosErrorCodes) {
|
5
|
-
AxiosErrorCodes["ERR_NETWORK"] = "ERR_NETWORK";
|
6
|
-
})(AxiosErrorCodes || (AxiosErrorCodes = {}));
|
7
|
-
exports.default = AxiosErrorCodes;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var AxiosErrorCodes;
|
4
|
+
(function (AxiosErrorCodes) {
|
5
|
+
AxiosErrorCodes["ERR_NETWORK"] = "ERR_NETWORK";
|
6
|
+
})(AxiosErrorCodes || (AxiosErrorCodes = {}));
|
7
|
+
exports.default = AxiosErrorCodes;
|
8
8
|
//# sourceMappingURL=AxiosErrorCodes.js.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
declare enum CallingOptionsOptionSetNumber {
|
2
|
-
NoCalling = 192350000,
|
3
|
-
VideoAndVoiceCalling = 192350001,
|
4
|
-
VoiceOnly = 192350002
|
5
|
-
}
|
6
|
-
export default CallingOptionsOptionSetNumber;
|
1
|
+
declare enum CallingOptionsOptionSetNumber {
|
2
|
+
NoCalling = 192350000,
|
3
|
+
VideoAndVoiceCalling = 192350001,
|
4
|
+
VoiceOnly = 192350002
|
5
|
+
}
|
6
|
+
export default CallingOptionsOptionSetNumber;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var CallingOptionsOptionSetNumber;
|
4
|
-
(function (CallingOptionsOptionSetNumber) {
|
5
|
-
CallingOptionsOptionSetNumber[CallingOptionsOptionSetNumber["NoCalling"] = 192350000] = "NoCalling";
|
6
|
-
CallingOptionsOptionSetNumber[CallingOptionsOptionSetNumber["VideoAndVoiceCalling"] = 192350001] = "VideoAndVoiceCalling";
|
7
|
-
CallingOptionsOptionSetNumber[CallingOptionsOptionSetNumber["VoiceOnly"] = 192350002] = "VoiceOnly";
|
8
|
-
})(CallingOptionsOptionSetNumber || (CallingOptionsOptionSetNumber = {}));
|
9
|
-
exports.default = CallingOptionsOptionSetNumber;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var CallingOptionsOptionSetNumber;
|
4
|
+
(function (CallingOptionsOptionSetNumber) {
|
5
|
+
CallingOptionsOptionSetNumber[CallingOptionsOptionSetNumber["NoCalling"] = 192350000] = "NoCalling";
|
6
|
+
CallingOptionsOptionSetNumber[CallingOptionsOptionSetNumber["VideoAndVoiceCalling"] = 192350001] = "VideoAndVoiceCalling";
|
7
|
+
CallingOptionsOptionSetNumber[CallingOptionsOptionSetNumber["VoiceOnly"] = 192350002] = "VoiceOnly";
|
8
|
+
})(CallingOptionsOptionSetNumber || (CallingOptionsOptionSetNumber = {}));
|
9
|
+
exports.default = CallingOptionsOptionSetNumber;
|
10
10
|
//# sourceMappingURL=CallingOptionsOptionSetNumber.js.map
|
package/lib/core/ChatConfig.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
export default interface ChatConfig {
|
2
|
-
ChatWidgetLanguage: any;
|
3
|
-
DataMaskingInfo: unknown;
|
4
|
-
LiveChatConfigAuthSettings: unknown;
|
5
|
-
LiveChatVersion: number;
|
6
|
-
LiveWSAndLiveChatEngJoin: any;
|
7
|
-
allowedFileExtensions: string;
|
8
|
-
maxUploadFileSize: string;
|
9
|
-
msdyn_enablemarkdown?: string;
|
10
|
-
}
|
1
|
+
export default interface ChatConfig {
|
2
|
+
ChatWidgetLanguage: any;
|
3
|
+
DataMaskingInfo: unknown;
|
4
|
+
LiveChatConfigAuthSettings: unknown;
|
5
|
+
LiveChatVersion: number;
|
6
|
+
LiveWSAndLiveChatEngJoin: any;
|
7
|
+
allowedFileExtensions: string;
|
8
|
+
maxUploadFileSize: string;
|
9
|
+
msdyn_enablemarkdown?: string;
|
10
|
+
}
|
package/lib/core/ChatConfig.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=ChatConfig.js.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export default interface ChatReconnectContext {
|
2
|
-
redirectURL: string | null;
|
3
|
-
reconnectId: string | null;
|
4
|
-
}
|
1
|
+
export default interface ChatReconnectContext {
|
2
|
+
redirectURL: string | null;
|
3
|
+
reconnectId: string | null;
|
4
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=ChatReconnectContext.js.map
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export default interface ChatReconnectOptionalParams {
|
2
|
-
reconnectId?: string;
|
3
|
-
}
|
1
|
+
export default interface ChatReconnectOptionalParams {
|
2
|
+
reconnectId?: string;
|
3
|
+
}
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=ChatReconnectOptionalParams.js.map
|
@@ -1,38 +1,38 @@
|
|
1
|
-
import ChatAdapterConfig from "./messaging/ChatAdapterConfig";
|
2
|
-
import IC3Config from "./messaging/IC3Config";
|
3
|
-
interface DataMaskingSDKConfig {
|
4
|
-
disable: boolean;
|
5
|
-
maskingCharacter: string;
|
6
|
-
}
|
7
|
-
interface TelemetrySDKConfig {
|
8
|
-
disable: boolean;
|
9
|
-
ariaTelemetryKey?: string;
|
10
|
-
ariaCollectorUri?: string;
|
11
|
-
runtimeId?: string;
|
12
|
-
}
|
13
|
-
interface PersistentChatConfig {
|
14
|
-
disable: boolean;
|
15
|
-
tokenUpdateTime: number;
|
16
|
-
}
|
17
|
-
interface ChatReconnectConfig {
|
18
|
-
disable: boolean;
|
19
|
-
}
|
20
|
-
/**
|
21
|
-
* Non-backward compatible configurations or experimentals. Subject to change any time. Internal use only.
|
22
|
-
*/
|
23
|
-
interface InternalChatSDKConfig {
|
24
|
-
createCoreServicesOrgUrlAtRuntime?: boolean;
|
25
|
-
}
|
26
|
-
interface ChatSDKConfig {
|
27
|
-
dataMasking?: DataMaskingSDKConfig;
|
28
|
-
telemetry?: TelemetrySDKConfig;
|
29
|
-
persistentChat?: PersistentChatConfig;
|
30
|
-
chatReconnect?: ChatReconnectConfig;
|
31
|
-
getAuthToken?: () => Promise<string | null>;
|
32
|
-
ic3Config?: IC3Config;
|
33
|
-
chatAdapterConfig?: ChatAdapterConfig;
|
34
|
-
internalConfig?: InternalChatSDKConfig;
|
35
|
-
ocUserAgent?: string[];
|
36
|
-
}
|
37
|
-
export { DataMaskingSDKConfig, PersistentChatConfig };
|
38
|
-
export default ChatSDKConfig;
|
1
|
+
import ChatAdapterConfig from "./messaging/ChatAdapterConfig";
|
2
|
+
import IC3Config from "./messaging/IC3Config";
|
3
|
+
interface DataMaskingSDKConfig {
|
4
|
+
disable: boolean;
|
5
|
+
maskingCharacter: string;
|
6
|
+
}
|
7
|
+
interface TelemetrySDKConfig {
|
8
|
+
disable: boolean;
|
9
|
+
ariaTelemetryKey?: string;
|
10
|
+
ariaCollectorUri?: string;
|
11
|
+
runtimeId?: string;
|
12
|
+
}
|
13
|
+
interface PersistentChatConfig {
|
14
|
+
disable: boolean;
|
15
|
+
tokenUpdateTime: number;
|
16
|
+
}
|
17
|
+
interface ChatReconnectConfig {
|
18
|
+
disable: boolean;
|
19
|
+
}
|
20
|
+
/**
|
21
|
+
* Non-backward compatible configurations or experimentals. Subject to change any time. Internal use only.
|
22
|
+
*/
|
23
|
+
interface InternalChatSDKConfig {
|
24
|
+
createCoreServicesOrgUrlAtRuntime?: boolean;
|
25
|
+
}
|
26
|
+
interface ChatSDKConfig {
|
27
|
+
dataMasking?: DataMaskingSDKConfig;
|
28
|
+
telemetry?: TelemetrySDKConfig;
|
29
|
+
persistentChat?: PersistentChatConfig;
|
30
|
+
chatReconnect?: ChatReconnectConfig;
|
31
|
+
getAuthToken?: () => Promise<string | null>;
|
32
|
+
ic3Config?: IC3Config;
|
33
|
+
chatAdapterConfig?: ChatAdapterConfig;
|
34
|
+
internalConfig?: InternalChatSDKConfig;
|
35
|
+
ocUserAgent?: string[];
|
36
|
+
}
|
37
|
+
export { DataMaskingSDKConfig, PersistentChatConfig };
|
38
|
+
export default ChatSDKConfig;
|
@@ -1,3 +1,3 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
//# sourceMappingURL=ChatSDKConfig.js.map
|
@@ -1,63 +1,64 @@
|
|
1
|
-
/**
|
2
|
-
* Enum of ChatSDK standard errors.
|
3
|
-
*
|
4
|
-
* @enum {string}
|
5
|
-
*/
|
6
|
-
export declare enum ChatSDKErrorName {
|
7
|
-
/** Failure in ChatAdapter initialization */
|
8
|
-
ChatAdapterInitializationFailure = "ChatAdapterInitializationFailure",
|
9
|
-
/** Live Chat Version currently not supported with ChatSDK */
|
10
|
-
UnsupportedLiveChatVersion = "UnsupportedLiveChatVersion",
|
11
|
-
/** Failure in OCSDK initialization */
|
12
|
-
OmnichannelClientInitializationFailure = "OmnichannelClientInitializationFailure",
|
13
|
-
/** Failure in messaging/communication client creation */
|
14
|
-
MessagingClientCreationFailure = "MessagingClientCreationFailure",
|
15
|
-
/** Failure in retrieval of ChatConfig */
|
16
|
-
ChatConfigRetrievalFailure = "ChatConfigRetrievalFailure",
|
17
|
-
/** ChatSDK is not initialized */
|
18
|
-
UninitializedChatSDK = "UninitializedChatSDK",
|
19
|
-
/** Failure in retrieving ChatToken */
|
20
|
-
ChatTokenRetrievalFailure = "ChatTokenRetrievalFailure",
|
21
|
-
/** Failure in loading a script dynamically */
|
22
|
-
ScriptLoadFailure = "ScriptLoadFailure",
|
23
|
-
/** Feature not supported in the platform used */
|
24
|
-
UnsupportedPlatform = "UnsupportedPlatform",
|
25
|
-
/** Feature is not enabled. */
|
26
|
-
FeatureDisabled = "FeatureDisabled",
|
27
|
-
/** Conversation has been closed (WrapUp/Closed state) */
|
28
|
-
ClosedConversation = "ClosedConversation",
|
29
|
-
/** Conversation is invalid or not found */
|
30
|
-
InvalidConversation = "InvalidConversation",
|
31
|
-
/** Failure in retrieval of the conversation given the authenticated user id */
|
32
|
-
AuthenticatedChatConversationRetrievalFailure = "AuthenticatedChatConversationRetrievalFailure",
|
33
|
-
/** Failure on retrieving conversation from persistent chat */
|
34
|
-
PersistentChatConversationRetrievalFailure = "PersistentChatConversationRetrievalFailure",
|
35
|
-
/** Failure on conversation init due to widget being outside of operating hours */
|
36
|
-
WidgetUseOutsideOperatingHour = "WidgetUseOutsideOperatingHour",
|
37
|
-
/** Failure in conversation initialization */
|
38
|
-
ConversationInitializationFailure = "ConversationInitializationFailure",
|
39
|
-
/** Failure in closure of the conversation */
|
40
|
-
ConversationClosureFailure = "ConversationClosureFailure",
|
41
|
-
/** Failure in messaging/communication client initialization */
|
42
|
-
MessagingClientInitializationFailure = "MessagingClientInitializationFailure",
|
43
|
-
/** Failure in message/communication client joining the conversation */
|
44
|
-
MessagingClientConversationJoinFailure = "MessagingClientConversationJoinFailure",
|
45
|
-
/** Failure on retrieving live chat transcript of a conversation */
|
46
|
-
LiveChatTranscriptRetrievalFailure = "LiveChatTranscriptRetrievalFailure",
|
47
|
-
/** Failure on retrieving conversation details */
|
48
|
-
ConversationDetailsRetrievalFailure = "ConversationDetailsRetrievalFailure",
|
49
|
-
/** Failure on finding the contact id related to the auth code */
|
50
|
-
AuthContactIdNotFoundFailure = "AuthContactIdNotFoundFailure",
|
51
|
-
/** AuthTokenProvider is not implemented */
|
52
|
-
GetAuthTokenNotFound = "GetAuthTokenNotFound",
|
53
|
-
/** Failure on retrieving AuthToken from AuthTokenProvider */
|
54
|
-
GetAuthTokenFailed = "GetAuthTokenFailed",
|
55
|
-
/** AuthToken is undefined */
|
56
|
-
UndefinedAuthToken = "UndefinedAuthToken"
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
1
|
+
/**
|
2
|
+
* Enum of ChatSDK standard errors.
|
3
|
+
*
|
4
|
+
* @enum {string}
|
5
|
+
*/
|
6
|
+
export declare enum ChatSDKErrorName {
|
7
|
+
/** Failure in ChatAdapter initialization */
|
8
|
+
ChatAdapterInitializationFailure = "ChatAdapterInitializationFailure",
|
9
|
+
/** Live Chat Version currently not supported with ChatSDK */
|
10
|
+
UnsupportedLiveChatVersion = "UnsupportedLiveChatVersion",
|
11
|
+
/** Failure in OCSDK initialization */
|
12
|
+
OmnichannelClientInitializationFailure = "OmnichannelClientInitializationFailure",
|
13
|
+
/** Failure in messaging/communication client creation */
|
14
|
+
MessagingClientCreationFailure = "MessagingClientCreationFailure",
|
15
|
+
/** Failure in retrieval of ChatConfig */
|
16
|
+
ChatConfigRetrievalFailure = "ChatConfigRetrievalFailure",
|
17
|
+
/** ChatSDK is not initialized */
|
18
|
+
UninitializedChatSDK = "UninitializedChatSDK",
|
19
|
+
/** Failure in retrieving ChatToken */
|
20
|
+
ChatTokenRetrievalFailure = "ChatTokenRetrievalFailure",
|
21
|
+
/** Failure in loading a script dynamically */
|
22
|
+
ScriptLoadFailure = "ScriptLoadFailure",
|
23
|
+
/** Feature not supported in the platform used */
|
24
|
+
UnsupportedPlatform = "UnsupportedPlatform",
|
25
|
+
/** Feature is not enabled. */
|
26
|
+
FeatureDisabled = "FeatureDisabled",
|
27
|
+
/** Conversation has been closed (WrapUp/Closed state) */
|
28
|
+
ClosedConversation = "ClosedConversation",
|
29
|
+
/** Conversation is invalid or not found */
|
30
|
+
InvalidConversation = "InvalidConversation",
|
31
|
+
/** Failure in retrieval of the conversation given the authenticated user id */
|
32
|
+
AuthenticatedChatConversationRetrievalFailure = "AuthenticatedChatConversationRetrievalFailure",
|
33
|
+
/** Failure on retrieving conversation from persistent chat */
|
34
|
+
PersistentChatConversationRetrievalFailure = "PersistentChatConversationRetrievalFailure",
|
35
|
+
/** Failure on conversation init due to widget being outside of operating hours */
|
36
|
+
WidgetUseOutsideOperatingHour = "WidgetUseOutsideOperatingHour",
|
37
|
+
/** Failure in conversation initialization */
|
38
|
+
ConversationInitializationFailure = "ConversationInitializationFailure",
|
39
|
+
/** Failure in closure of the conversation */
|
40
|
+
ConversationClosureFailure = "ConversationClosureFailure",
|
41
|
+
/** Failure in messaging/communication client initialization */
|
42
|
+
MessagingClientInitializationFailure = "MessagingClientInitializationFailure",
|
43
|
+
/** Failure in message/communication client joining the conversation */
|
44
|
+
MessagingClientConversationJoinFailure = "MessagingClientConversationJoinFailure",
|
45
|
+
/** Failure on retrieving live chat transcript of a conversation */
|
46
|
+
LiveChatTranscriptRetrievalFailure = "LiveChatTranscriptRetrievalFailure",
|
47
|
+
/** Failure on retrieving conversation details */
|
48
|
+
ConversationDetailsRetrievalFailure = "ConversationDetailsRetrievalFailure",
|
49
|
+
/** Failure on finding the contact id related to the auth code */
|
50
|
+
AuthContactIdNotFoundFailure = "AuthContactIdNotFoundFailure",
|
51
|
+
/** AuthTokenProvider is not implemented */
|
52
|
+
GetAuthTokenNotFound = "GetAuthTokenNotFound",
|
53
|
+
/** Failure on retrieving AuthToken from AuthTokenProvider */
|
54
|
+
GetAuthTokenFailed = "GetAuthTokenFailed",
|
55
|
+
/** AuthToken is undefined */
|
56
|
+
UndefinedAuthToken = "UndefinedAuthToken",
|
57
|
+
UnknownAMSLoadState = "UnknownAMSLoadState"
|
58
|
+
}
|
59
|
+
export declare class ChatSDKError {
|
60
|
+
message: ChatSDKErrorName;
|
61
|
+
httpResponseStatusCode: number | undefined;
|
62
|
+
constructor(message: ChatSDKErrorName, httpResponseStatusCode?: number);
|
63
|
+
toString(): string;
|
64
|
+
}
|
package/lib/core/ChatSDKError.js
CHANGED
@@ -1,73 +1,74 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ChatSDKError = exports.ChatSDKErrorName = void 0;
|
4
|
-
/**
|
5
|
-
* Enum of ChatSDK standard errors.
|
6
|
-
*
|
7
|
-
* @enum {string}
|
8
|
-
*/
|
9
|
-
var ChatSDKErrorName;
|
10
|
-
(function (ChatSDKErrorName) {
|
11
|
-
/** Failure in ChatAdapter initialization */
|
12
|
-
ChatSDKErrorName["ChatAdapterInitializationFailure"] = "ChatAdapterInitializationFailure";
|
13
|
-
/** Live Chat Version currently not supported with ChatSDK */
|
14
|
-
ChatSDKErrorName["UnsupportedLiveChatVersion"] = "UnsupportedLiveChatVersion";
|
15
|
-
/** Failure in OCSDK initialization */
|
16
|
-
ChatSDKErrorName["OmnichannelClientInitializationFailure"] = "OmnichannelClientInitializationFailure";
|
17
|
-
/** Failure in messaging/communication client creation */
|
18
|
-
ChatSDKErrorName["MessagingClientCreationFailure"] = "MessagingClientCreationFailure";
|
19
|
-
/** Failure in retrieval of ChatConfig */
|
20
|
-
ChatSDKErrorName["ChatConfigRetrievalFailure"] = "ChatConfigRetrievalFailure";
|
21
|
-
/** ChatSDK is not initialized */
|
22
|
-
ChatSDKErrorName["UninitializedChatSDK"] = "UninitializedChatSDK";
|
23
|
-
/** Failure in retrieving ChatToken */
|
24
|
-
ChatSDKErrorName["ChatTokenRetrievalFailure"] = "ChatTokenRetrievalFailure";
|
25
|
-
/** Failure in loading a script dynamically */
|
26
|
-
ChatSDKErrorName["ScriptLoadFailure"] = "ScriptLoadFailure";
|
27
|
-
/** Feature not supported in the platform used */
|
28
|
-
ChatSDKErrorName["UnsupportedPlatform"] = "UnsupportedPlatform";
|
29
|
-
/** Feature is not enabled. */
|
30
|
-
ChatSDKErrorName["FeatureDisabled"] = "FeatureDisabled";
|
31
|
-
/** Conversation has been closed (WrapUp/Closed state) */
|
32
|
-
ChatSDKErrorName["ClosedConversation"] = "ClosedConversation";
|
33
|
-
/** Conversation is invalid or not found */
|
34
|
-
ChatSDKErrorName["InvalidConversation"] = "InvalidConversation";
|
35
|
-
/** Failure in retrieval of the conversation given the authenticated user id */
|
36
|
-
ChatSDKErrorName["AuthenticatedChatConversationRetrievalFailure"] = "AuthenticatedChatConversationRetrievalFailure";
|
37
|
-
/** Failure on retrieving conversation from persistent chat */
|
38
|
-
ChatSDKErrorName["PersistentChatConversationRetrievalFailure"] = "PersistentChatConversationRetrievalFailure";
|
39
|
-
/** Failure on conversation init due to widget being outside of operating hours */
|
40
|
-
ChatSDKErrorName["WidgetUseOutsideOperatingHour"] = "WidgetUseOutsideOperatingHour";
|
41
|
-
/** Failure in conversation initialization */
|
42
|
-
ChatSDKErrorName["ConversationInitializationFailure"] = "ConversationInitializationFailure";
|
43
|
-
/** Failure in closure of the conversation */
|
44
|
-
ChatSDKErrorName["ConversationClosureFailure"] = "ConversationClosureFailure";
|
45
|
-
/** Failure in messaging/communication client initialization */
|
46
|
-
ChatSDKErrorName["MessagingClientInitializationFailure"] = "MessagingClientInitializationFailure";
|
47
|
-
/** Failure in message/communication client joining the conversation */
|
48
|
-
ChatSDKErrorName["MessagingClientConversationJoinFailure"] = "MessagingClientConversationJoinFailure";
|
49
|
-
/** Failure on retrieving live chat transcript of a conversation */
|
50
|
-
ChatSDKErrorName["LiveChatTranscriptRetrievalFailure"] = "LiveChatTranscriptRetrievalFailure";
|
51
|
-
/** Failure on retrieving conversation details */
|
52
|
-
ChatSDKErrorName["ConversationDetailsRetrievalFailure"] = "ConversationDetailsRetrievalFailure";
|
53
|
-
/** Failure on finding the contact id related to the auth code */
|
54
|
-
ChatSDKErrorName["AuthContactIdNotFoundFailure"] = "AuthContactIdNotFoundFailure";
|
55
|
-
/** AuthTokenProvider is not implemented */
|
56
|
-
ChatSDKErrorName["GetAuthTokenNotFound"] = "GetAuthTokenNotFound";
|
57
|
-
/** Failure on retrieving AuthToken from AuthTokenProvider */
|
58
|
-
ChatSDKErrorName["GetAuthTokenFailed"] = "GetAuthTokenFailed";
|
59
|
-
/** AuthToken is undefined */
|
60
|
-
ChatSDKErrorName["UndefinedAuthToken"] = "UndefinedAuthToken";
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
this.
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ChatSDKError = exports.ChatSDKErrorName = void 0;
|
4
|
+
/**
|
5
|
+
* Enum of ChatSDK standard errors.
|
6
|
+
*
|
7
|
+
* @enum {string}
|
8
|
+
*/
|
9
|
+
var ChatSDKErrorName;
|
10
|
+
(function (ChatSDKErrorName) {
|
11
|
+
/** Failure in ChatAdapter initialization */
|
12
|
+
ChatSDKErrorName["ChatAdapterInitializationFailure"] = "ChatAdapterInitializationFailure";
|
13
|
+
/** Live Chat Version currently not supported with ChatSDK */
|
14
|
+
ChatSDKErrorName["UnsupportedLiveChatVersion"] = "UnsupportedLiveChatVersion";
|
15
|
+
/** Failure in OCSDK initialization */
|
16
|
+
ChatSDKErrorName["OmnichannelClientInitializationFailure"] = "OmnichannelClientInitializationFailure";
|
17
|
+
/** Failure in messaging/communication client creation */
|
18
|
+
ChatSDKErrorName["MessagingClientCreationFailure"] = "MessagingClientCreationFailure";
|
19
|
+
/** Failure in retrieval of ChatConfig */
|
20
|
+
ChatSDKErrorName["ChatConfigRetrievalFailure"] = "ChatConfigRetrievalFailure";
|
21
|
+
/** ChatSDK is not initialized */
|
22
|
+
ChatSDKErrorName["UninitializedChatSDK"] = "UninitializedChatSDK";
|
23
|
+
/** Failure in retrieving ChatToken */
|
24
|
+
ChatSDKErrorName["ChatTokenRetrievalFailure"] = "ChatTokenRetrievalFailure";
|
25
|
+
/** Failure in loading a script dynamically */
|
26
|
+
ChatSDKErrorName["ScriptLoadFailure"] = "ScriptLoadFailure";
|
27
|
+
/** Feature not supported in the platform used */
|
28
|
+
ChatSDKErrorName["UnsupportedPlatform"] = "UnsupportedPlatform";
|
29
|
+
/** Feature is not enabled. */
|
30
|
+
ChatSDKErrorName["FeatureDisabled"] = "FeatureDisabled";
|
31
|
+
/** Conversation has been closed (WrapUp/Closed state) */
|
32
|
+
ChatSDKErrorName["ClosedConversation"] = "ClosedConversation";
|
33
|
+
/** Conversation is invalid or not found */
|
34
|
+
ChatSDKErrorName["InvalidConversation"] = "InvalidConversation";
|
35
|
+
/** Failure in retrieval of the conversation given the authenticated user id */
|
36
|
+
ChatSDKErrorName["AuthenticatedChatConversationRetrievalFailure"] = "AuthenticatedChatConversationRetrievalFailure";
|
37
|
+
/** Failure on retrieving conversation from persistent chat */
|
38
|
+
ChatSDKErrorName["PersistentChatConversationRetrievalFailure"] = "PersistentChatConversationRetrievalFailure";
|
39
|
+
/** Failure on conversation init due to widget being outside of operating hours */
|
40
|
+
ChatSDKErrorName["WidgetUseOutsideOperatingHour"] = "WidgetUseOutsideOperatingHour";
|
41
|
+
/** Failure in conversation initialization */
|
42
|
+
ChatSDKErrorName["ConversationInitializationFailure"] = "ConversationInitializationFailure";
|
43
|
+
/** Failure in closure of the conversation */
|
44
|
+
ChatSDKErrorName["ConversationClosureFailure"] = "ConversationClosureFailure";
|
45
|
+
/** Failure in messaging/communication client initialization */
|
46
|
+
ChatSDKErrorName["MessagingClientInitializationFailure"] = "MessagingClientInitializationFailure";
|
47
|
+
/** Failure in message/communication client joining the conversation */
|
48
|
+
ChatSDKErrorName["MessagingClientConversationJoinFailure"] = "MessagingClientConversationJoinFailure";
|
49
|
+
/** Failure on retrieving live chat transcript of a conversation */
|
50
|
+
ChatSDKErrorName["LiveChatTranscriptRetrievalFailure"] = "LiveChatTranscriptRetrievalFailure";
|
51
|
+
/** Failure on retrieving conversation details */
|
52
|
+
ChatSDKErrorName["ConversationDetailsRetrievalFailure"] = "ConversationDetailsRetrievalFailure";
|
53
|
+
/** Failure on finding the contact id related to the auth code */
|
54
|
+
ChatSDKErrorName["AuthContactIdNotFoundFailure"] = "AuthContactIdNotFoundFailure";
|
55
|
+
/** AuthTokenProvider is not implemented */
|
56
|
+
ChatSDKErrorName["GetAuthTokenNotFound"] = "GetAuthTokenNotFound";
|
57
|
+
/** Failure on retrieving AuthToken from AuthTokenProvider */
|
58
|
+
ChatSDKErrorName["GetAuthTokenFailed"] = "GetAuthTokenFailed";
|
59
|
+
/** AuthToken is undefined */
|
60
|
+
ChatSDKErrorName["UndefinedAuthToken"] = "UndefinedAuthToken";
|
61
|
+
ChatSDKErrorName["UnknownAMSLoadState"] = "UnknownAMSLoadState";
|
62
|
+
})(ChatSDKErrorName = exports.ChatSDKErrorName || (exports.ChatSDKErrorName = {}));
|
63
|
+
var ChatSDKError = /** @class */ (function () {
|
64
|
+
function ChatSDKError(message, httpResponseStatusCode) {
|
65
|
+
this.message = message;
|
66
|
+
this.httpResponseStatusCode = httpResponseStatusCode;
|
67
|
+
}
|
68
|
+
ChatSDKError.prototype.toString = function () {
|
69
|
+
return this.message;
|
70
|
+
};
|
71
|
+
return ChatSDKError;
|
72
|
+
}());
|
73
|
+
exports.ChatSDKError = ChatSDKError;
|
73
74
|
//# sourceMappingURL=ChatSDKError.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ChatSDKError.js","sourceRoot":"","sources":["../../src/core/ChatSDKError.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,
|
1
|
+
{"version":3,"file":"ChatSDKError.js","sourceRoot":"","sources":["../../src/core/ChatSDKError.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,gBAsDX;AAtDD,WAAY,gBAAgB;IACxB,4CAA4C;IAC5C,yFAAqE,CAAA;IACrE,6DAA6D;IAC7D,6EAAyD,CAAA;IACzD,sCAAsC;IACtC,qGAAiF,CAAA;IACjF,yDAAyD;IACzD,qFAAiE,CAAA;IACjE,yCAAyC;IACzC,6EAAyD,CAAA;IACzD,iCAAiC;IACjC,iEAA6C,CAAA;IAC7C,sCAAsC;IACtC,2EAAuD,CAAA;IACvD,8CAA8C;IAC9C,2DAAuC,CAAA;IACvC,iDAAiD;IACjD,+DAA2C,CAAA;IAC3C,8BAA8B;IAC9B,uDAAmC,CAAA;IACnC,yDAAyD;IACzD,6DAAyC,CAAA;IACzC,2CAA2C;IAC3C,+DAA2C,CAAA;IAC3C,+EAA+E;IAC/E,mHAA+F,CAAA;IAC/F,8DAA8D;IAC9D,6GAAyF,CAAA;IACzF,kFAAkF;IAClF,mFAA+D,CAAA;IAC/D,6CAA6C;IAC7C,2FAAuE,CAAA;IACvE,6CAA6C;IAC7C,6EAAyD,CAAA;IACzD,+DAA+D;IAC/D,iGAA6E,CAAA;IAC7E,uEAAuE;IACvE,qGAAiF,CAAA;IACjF,mEAAmE;IACnE,6FAAyE,CAAA;IACzE,iDAAiD;IACjD,+FAA2E,CAAA;IAC3E,iEAAiE;IACjE,iFAA6D,CAAA;IAC7D,2CAA2C;IAC3C,iEAA6C,CAAA;IAC7C,6DAA6D;IAC7D,6DAAyC,CAAA;IACzC,6BAA6B;IAC7B,6DAAyC,CAAA;IAEzC,+DAA2C,CAAA;AAE/C,CAAC,EAtDW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAsD3B;AAED;IAII,sBAAY,OAAyB,EAAE,sBAA+B;QAClE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;IACzD,CAAC;IAED,+BAAQ,GAAR;QACI,OAAO,IAAI,CAAC,OAAiB,CAAC;IAClC,CAAC;IACL,mBAAC;AAAD,CAAC,AAZD,IAYC;AAZY,oCAAY"}
|