@microsoft/omnichannel-chat-sdk 1.9.6 → 1.9.7-main.b4583a2
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 +2609 -2609
- 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 +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 -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 +1914 -1966
- 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,2 +1,2 @@
|
|
1
|
-
declare const EUDomainNames: string[];
|
2
|
-
export default EUDomainNames;
|
1
|
+
declare const EUDomainNames: string[];
|
2
|
+
export default EUDomainNames;
|
@@ -1,17 +1,17 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var EUDomainNames = [
|
4
|
-
"crm4.omnichannelengagementhub.com",
|
5
|
-
"crm12.omnichannelengagementhub.com",
|
6
|
-
"crm16.omnichannelengagementhub.com",
|
7
|
-
"crm17.omnichannelengagementhub.com",
|
8
|
-
"crm19.omnichannelengagementhub.com",
|
9
|
-
"crm11.omnichannelengagementhub.com",
|
10
|
-
"eu.omnichannelengagementhub.com",
|
11
|
-
"fr.omnichannelengagementhub.com",
|
12
|
-
"de.omnichannelengagementhub.com",
|
13
|
-
"ch.omnichannelengagementhub.com",
|
14
|
-
"uk.omnichannelengagementhub.com" // UK
|
15
|
-
];
|
16
|
-
exports.default = EUDomainNames;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var EUDomainNames = [
|
4
|
+
"crm4.omnichannelengagementhub.com",
|
5
|
+
"crm12.omnichannelengagementhub.com",
|
6
|
+
"crm16.omnichannelengagementhub.com",
|
7
|
+
"crm17.omnichannelengagementhub.com",
|
8
|
+
"crm19.omnichannelengagementhub.com",
|
9
|
+
"crm11.omnichannelengagementhub.com",
|
10
|
+
"eu.omnichannelengagementhub.com",
|
11
|
+
"fr.omnichannelengagementhub.com",
|
12
|
+
"de.omnichannelengagementhub.com",
|
13
|
+
"ch.omnichannelengagementhub.com",
|
14
|
+
"uk.omnichannelengagementhub.com" // UK
|
15
|
+
];
|
16
|
+
exports.default = EUDomainNames;
|
17
17
|
//# sourceMappingURL=EUDomainNames.js.map
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export declare const startEvent: (event: string) => string;
|
2
|
-
export declare const completeEvent: (event: string) => string;
|
3
|
-
export declare const failEvent: (event: string) => string;
|
1
|
+
export declare const startEvent: (event: string) => string;
|
2
|
+
export declare const completeEvent: (event: string) => string;
|
3
|
+
export declare const failEvent: (event: string) => string;
|
@@ -1,13 +1,13 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.failEvent = exports.completeEvent = exports.startEvent = void 0;
|
4
|
-
exports.startEvent = function (event) {
|
5
|
-
return event + "Started";
|
6
|
-
};
|
7
|
-
exports.completeEvent = function (event) {
|
8
|
-
return event + "Completed";
|
9
|
-
};
|
10
|
-
exports.failEvent = function (event) {
|
11
|
-
return event + "Failed";
|
12
|
-
};
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.failEvent = exports.completeEvent = exports.startEvent = void 0;
|
4
|
+
exports.startEvent = function (event) {
|
5
|
+
return event + "Started";
|
6
|
+
};
|
7
|
+
exports.completeEvent = function (event) {
|
8
|
+
return event + "Completed";
|
9
|
+
};
|
10
|
+
exports.failEvent = function (event) {
|
11
|
+
return event + "Failed";
|
12
|
+
};
|
13
13
|
//# sourceMappingURL=EventMarker.js.map
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const GCCDomainPatterns: string[];
|
2
|
-
export default GCCDomainPatterns;
|
1
|
+
declare const GCCDomainPatterns: string[];
|
2
|
+
export default GCCDomainPatterns;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var GCCDomainPatterns = [
|
4
|
-
"gov.omnichannelengagementhub.com",
|
5
|
-
"-crm9"
|
6
|
-
];
|
7
|
-
exports.default = GCCDomainPatterns;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var GCCDomainPatterns = [
|
4
|
+
"gov.omnichannelengagementhub.com",
|
5
|
+
"-crm9"
|
6
|
+
];
|
7
|
+
exports.default = GCCDomainPatterns;
|
8
8
|
//# sourceMappingURL=GCCDomainPatterns.js.map
|
@@ -1,8 +1,8 @@
|
|
1
|
-
declare enum LogLevel {
|
2
|
-
INFO = "INFO",
|
3
|
-
DEBUG = "DEBUG",
|
4
|
-
WARN = "WARN",
|
5
|
-
ERROR = "ERROR",
|
6
|
-
LOG = "LOG"
|
7
|
-
}
|
8
|
-
export default LogLevel;
|
1
|
+
declare enum LogLevel {
|
2
|
+
INFO = "INFO",
|
3
|
+
DEBUG = "DEBUG",
|
4
|
+
WARN = "WARN",
|
5
|
+
ERROR = "ERROR",
|
6
|
+
LOG = "LOG"
|
7
|
+
}
|
8
|
+
export default LogLevel;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var LogLevel;
|
4
|
-
(function (LogLevel) {
|
5
|
-
LogLevel["INFO"] = "INFO";
|
6
|
-
LogLevel["DEBUG"] = "DEBUG";
|
7
|
-
LogLevel["WARN"] = "WARN";
|
8
|
-
LogLevel["ERROR"] = "ERROR";
|
9
|
-
LogLevel["LOG"] = "LOG";
|
10
|
-
})(LogLevel || (LogLevel = {}));
|
11
|
-
exports.default = LogLevel;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var LogLevel;
|
4
|
+
(function (LogLevel) {
|
5
|
+
LogLevel["INFO"] = "INFO";
|
6
|
+
LogLevel["DEBUG"] = "DEBUG";
|
7
|
+
LogLevel["WARN"] = "WARN";
|
8
|
+
LogLevel["ERROR"] = "ERROR";
|
9
|
+
LogLevel["LOG"] = "LOG";
|
10
|
+
})(LogLevel || (LogLevel = {}));
|
11
|
+
exports.default = LogLevel;
|
12
12
|
//# sourceMappingURL=LogLevel.js.map
|
@@ -1,21 +1,21 @@
|
|
1
|
-
import AriaTelemetry from "./AriaTelemetry";
|
2
|
-
import { AWTEventData } from "../external/aria/webjs/AriaSDK";
|
3
|
-
import OmnichannelConfig from "../core/OmnichannelConfig";
|
4
|
-
import ScenarioType from "./ScenarioType";
|
5
|
-
declare class ScenarioMarker {
|
6
|
-
private omnichannelConfig;
|
7
|
-
private debug;
|
8
|
-
private runtimeId;
|
9
|
-
private telemetryEvents;
|
10
|
-
private telemetry;
|
11
|
-
private scenarioType;
|
12
|
-
constructor(omnichannelConfig: OmnichannelConfig);
|
13
|
-
setDebug(flag: boolean): void;
|
14
|
-
setScenarioType(scenarioType: ScenarioType): void;
|
15
|
-
setRuntimeId(runtimeId: string): void;
|
16
|
-
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
17
|
-
startScenario(event: string, additionalProperties?: AWTEventData["properties"]): void;
|
18
|
-
failScenario(event: string, additionalProperties?: AWTEventData["properties"]): void;
|
19
|
-
completeScenario(event: string, additionalProperties?: AWTEventData["properties"]): void;
|
20
|
-
}
|
21
|
-
export default ScenarioMarker;
|
1
|
+
import AriaTelemetry from "./AriaTelemetry";
|
2
|
+
import { AWTEventData } from "../external/aria/webjs/AriaSDK";
|
3
|
+
import OmnichannelConfig from "../core/OmnichannelConfig";
|
4
|
+
import ScenarioType from "./ScenarioType";
|
5
|
+
declare class ScenarioMarker {
|
6
|
+
private omnichannelConfig;
|
7
|
+
private debug;
|
8
|
+
private runtimeId;
|
9
|
+
private telemetryEvents;
|
10
|
+
private telemetry;
|
11
|
+
private scenarioType;
|
12
|
+
constructor(omnichannelConfig: OmnichannelConfig);
|
13
|
+
setDebug(flag: boolean): void;
|
14
|
+
setScenarioType(scenarioType: ScenarioType): void;
|
15
|
+
setRuntimeId(runtimeId: string): void;
|
16
|
+
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
17
|
+
startScenario(event: string, additionalProperties?: AWTEventData["properties"]): void;
|
18
|
+
failScenario(event: string, additionalProperties?: AWTEventData["properties"]): void;
|
19
|
+
completeScenario(event: string, additionalProperties?: AWTEventData["properties"]): void;
|
20
|
+
}
|
21
|
+
export default ScenarioMarker;
|
@@ -1,83 +1,83 @@
|
|
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 ScenarioType_1 = require("./ScenarioType");
|
15
|
-
var StopWatch_1 = require("./StopWatch");
|
16
|
-
var EventMarker_1 = require("./EventMarker");
|
17
|
-
var ScenarioMarker = /** @class */ (function () {
|
18
|
-
function ScenarioMarker(omnichannelConfig) {
|
19
|
-
this.omnichannelConfig = omnichannelConfig;
|
20
|
-
this.runtimeId = '';
|
21
|
-
this.telemetry = null;
|
22
|
-
this.debug = false;
|
23
|
-
this.telemetryEvents = new Map();
|
24
|
-
this.scenarioType = ScenarioType_1.default.EVENTS;
|
25
|
-
}
|
26
|
-
/* istanbul ignore next */
|
27
|
-
ScenarioMarker.prototype.setDebug = function (flag) {
|
28
|
-
var _a;
|
29
|
-
this.debug = flag;
|
30
|
-
(_a = this.telemetry) === null || _a === void 0 ? void 0 : _a.setDebug(flag);
|
31
|
-
};
|
32
|
-
ScenarioMarker.prototype.setScenarioType = function (scenarioType) {
|
33
|
-
this.scenarioType = scenarioType;
|
34
|
-
};
|
35
|
-
ScenarioMarker.prototype.setRuntimeId = function (runtimeId) {
|
36
|
-
this.runtimeId = runtimeId;
|
37
|
-
};
|
38
|
-
ScenarioMarker.prototype.useTelemetry = function (telemetry) {
|
39
|
-
this.debug && console.log("[ScenarioMarker][useTelemetry]");
|
40
|
-
this.telemetry = telemetry;
|
41
|
-
};
|
42
|
-
ScenarioMarker.prototype.startScenario = function (event, additionalProperties) {
|
43
|
-
var _a;
|
44
|
-
if (additionalProperties === void 0) { additionalProperties = {}; }
|
45
|
-
this.debug && console.log("[ScenarioMarker][startScenario]");
|
46
|
-
if (!this.telemetryEvents.has(event)) {
|
47
|
-
var stopWatch = new StopWatch_1.default();
|
48
|
-
stopWatch.start();
|
49
|
-
this.telemetryEvents.set(event, stopWatch);
|
50
|
-
}
|
51
|
-
var properties = __assign({ ChatSDKRuntimeId: this.runtimeId, Event: EventMarker_1.startEvent(event), OrgId: this.omnichannelConfig.orgId, OrgUrl: this.omnichannelConfig.orgUrl, WidgetId: this.omnichannelConfig.widgetId }, additionalProperties);
|
52
|
-
(_a = this.telemetry) === null || _a === void 0 ? void 0 : _a.info(properties, this.scenarioType);
|
53
|
-
};
|
54
|
-
ScenarioMarker.prototype.failScenario = function (event, additionalProperties) {
|
55
|
-
var _a;
|
56
|
-
if (additionalProperties === void 0) { additionalProperties = {}; }
|
57
|
-
this.debug && console.log("[ScenarioMarker][failScenario]");
|
58
|
-
if (!this.telemetryEvents.has(event)) {
|
59
|
-
console.warn("'" + event + "' event has not started.");
|
60
|
-
return;
|
61
|
-
}
|
62
|
-
var stopWatch = this.telemetryEvents.get(event);
|
63
|
-
this.telemetryEvents.delete(event);
|
64
|
-
var properties = __assign({ ChatSDKRuntimeId: this.runtimeId, Event: EventMarker_1.failEvent(event), OrgId: this.omnichannelConfig.orgId, OrgUrl: this.omnichannelConfig.orgUrl, WidgetId: this.omnichannelConfig.widgetId, ElapsedTimeInMilliseconds: stopWatch.stop() }, additionalProperties);
|
65
|
-
(_a = this.telemetry) === null || _a === void 0 ? void 0 : _a.error(properties, this.scenarioType);
|
66
|
-
};
|
67
|
-
ScenarioMarker.prototype.completeScenario = function (event, additionalProperties) {
|
68
|
-
var _a;
|
69
|
-
if (additionalProperties === void 0) { additionalProperties = {}; }
|
70
|
-
this.debug && console.log("[ScenarioMarker][completeScenario]");
|
71
|
-
if (!this.telemetryEvents.has(event)) {
|
72
|
-
console.warn("'" + event + "' event has not started.");
|
73
|
-
return;
|
74
|
-
}
|
75
|
-
var stopWatch = this.telemetryEvents.get(event);
|
76
|
-
this.telemetryEvents.delete(event);
|
77
|
-
var properties = __assign({ ChatSDKRuntimeId: this.runtimeId, Event: EventMarker_1.completeEvent(event), OrgId: this.omnichannelConfig.orgId, OrgUrl: this.omnichannelConfig.orgUrl, WidgetId: this.omnichannelConfig.widgetId, ElapsedTimeInMilliseconds: stopWatch.stop() }, additionalProperties);
|
78
|
-
(_a = this.telemetry) === null || _a === void 0 ? void 0 : _a.info(properties, this.scenarioType);
|
79
|
-
};
|
80
|
-
return ScenarioMarker;
|
81
|
-
}());
|
82
|
-
exports.default = ScenarioMarker;
|
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 ScenarioType_1 = require("./ScenarioType");
|
15
|
+
var StopWatch_1 = require("./StopWatch");
|
16
|
+
var EventMarker_1 = require("./EventMarker");
|
17
|
+
var ScenarioMarker = /** @class */ (function () {
|
18
|
+
function ScenarioMarker(omnichannelConfig) {
|
19
|
+
this.omnichannelConfig = omnichannelConfig;
|
20
|
+
this.runtimeId = '';
|
21
|
+
this.telemetry = null;
|
22
|
+
this.debug = false;
|
23
|
+
this.telemetryEvents = new Map();
|
24
|
+
this.scenarioType = ScenarioType_1.default.EVENTS;
|
25
|
+
}
|
26
|
+
/* istanbul ignore next */
|
27
|
+
ScenarioMarker.prototype.setDebug = function (flag) {
|
28
|
+
var _a;
|
29
|
+
this.debug = flag;
|
30
|
+
(_a = this.telemetry) === null || _a === void 0 ? void 0 : _a.setDebug(flag);
|
31
|
+
};
|
32
|
+
ScenarioMarker.prototype.setScenarioType = function (scenarioType) {
|
33
|
+
this.scenarioType = scenarioType;
|
34
|
+
};
|
35
|
+
ScenarioMarker.prototype.setRuntimeId = function (runtimeId) {
|
36
|
+
this.runtimeId = runtimeId;
|
37
|
+
};
|
38
|
+
ScenarioMarker.prototype.useTelemetry = function (telemetry) {
|
39
|
+
this.debug && console.log("[ScenarioMarker][useTelemetry]");
|
40
|
+
this.telemetry = telemetry;
|
41
|
+
};
|
42
|
+
ScenarioMarker.prototype.startScenario = function (event, additionalProperties) {
|
43
|
+
var _a;
|
44
|
+
if (additionalProperties === void 0) { additionalProperties = {}; }
|
45
|
+
this.debug && console.log("[ScenarioMarker][startScenario]");
|
46
|
+
if (!this.telemetryEvents.has(event)) {
|
47
|
+
var stopWatch = new StopWatch_1.default();
|
48
|
+
stopWatch.start();
|
49
|
+
this.telemetryEvents.set(event, stopWatch);
|
50
|
+
}
|
51
|
+
var properties = __assign({ ChatSDKRuntimeId: this.runtimeId, Event: EventMarker_1.startEvent(event), OrgId: this.omnichannelConfig.orgId, OrgUrl: this.omnichannelConfig.orgUrl, WidgetId: this.omnichannelConfig.widgetId }, additionalProperties);
|
52
|
+
(_a = this.telemetry) === null || _a === void 0 ? void 0 : _a.info(properties, this.scenarioType);
|
53
|
+
};
|
54
|
+
ScenarioMarker.prototype.failScenario = function (event, additionalProperties) {
|
55
|
+
var _a;
|
56
|
+
if (additionalProperties === void 0) { additionalProperties = {}; }
|
57
|
+
this.debug && console.log("[ScenarioMarker][failScenario]");
|
58
|
+
if (!this.telemetryEvents.has(event)) {
|
59
|
+
console.warn("'" + event + "' event has not started.");
|
60
|
+
return;
|
61
|
+
}
|
62
|
+
var stopWatch = this.telemetryEvents.get(event);
|
63
|
+
this.telemetryEvents.delete(event);
|
64
|
+
var properties = __assign({ ChatSDKRuntimeId: this.runtimeId, Event: EventMarker_1.failEvent(event), OrgId: this.omnichannelConfig.orgId, OrgUrl: this.omnichannelConfig.orgUrl, WidgetId: this.omnichannelConfig.widgetId, ElapsedTimeInMilliseconds: stopWatch.stop() }, additionalProperties);
|
65
|
+
(_a = this.telemetry) === null || _a === void 0 ? void 0 : _a.error(properties, this.scenarioType);
|
66
|
+
};
|
67
|
+
ScenarioMarker.prototype.completeScenario = function (event, additionalProperties) {
|
68
|
+
var _a;
|
69
|
+
if (additionalProperties === void 0) { additionalProperties = {}; }
|
70
|
+
this.debug && console.log("[ScenarioMarker][completeScenario]");
|
71
|
+
if (!this.telemetryEvents.has(event)) {
|
72
|
+
console.warn("'" + event + "' event has not started.");
|
73
|
+
return;
|
74
|
+
}
|
75
|
+
var stopWatch = this.telemetryEvents.get(event);
|
76
|
+
this.telemetryEvents.delete(event);
|
77
|
+
var properties = __assign({ ChatSDKRuntimeId: this.runtimeId, Event: EventMarker_1.completeEvent(event), OrgId: this.omnichannelConfig.orgId, OrgUrl: this.omnichannelConfig.orgUrl, WidgetId: this.omnichannelConfig.widgetId, ElapsedTimeInMilliseconds: stopWatch.stop() }, additionalProperties);
|
78
|
+
(_a = this.telemetry) === null || _a === void 0 ? void 0 : _a.info(properties, this.scenarioType);
|
79
|
+
};
|
80
|
+
return ScenarioMarker;
|
81
|
+
}());
|
82
|
+
exports.default = ScenarioMarker;
|
83
83
|
//# sourceMappingURL=ScenarioMarker.js.map
|
@@ -1,11 +1,11 @@
|
|
1
|
-
declare enum ScenarioType {
|
2
|
-
EVENTS = "occhatsdk_events",
|
3
|
-
IC3CLIENT = "occhatsdk_ic3clientevents",
|
4
|
-
OCSDK = "occhatsdk_ocsdkevents",
|
5
|
-
ACSCLIENT = "occhatsdk_acsclientevents",
|
6
|
-
ACSADAPTER = "occhatsdk_acsadapterevents",
|
7
|
-
CALLINGSDK = "occhatsdk_callingsdkevents",
|
8
|
-
AMSCLIENT = "occhatsdk_amsclientevents",
|
9
|
-
UNDEFINED = "undefined"
|
10
|
-
}
|
11
|
-
export default ScenarioType;
|
1
|
+
declare enum ScenarioType {
|
2
|
+
EVENTS = "occhatsdk_events",
|
3
|
+
IC3CLIENT = "occhatsdk_ic3clientevents",
|
4
|
+
OCSDK = "occhatsdk_ocsdkevents",
|
5
|
+
ACSCLIENT = "occhatsdk_acsclientevents",
|
6
|
+
ACSADAPTER = "occhatsdk_acsadapterevents",
|
7
|
+
CALLINGSDK = "occhatsdk_callingsdkevents",
|
8
|
+
AMSCLIENT = "occhatsdk_amsclientevents",
|
9
|
+
UNDEFINED = "undefined"
|
10
|
+
}
|
11
|
+
export default ScenarioType;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var ScenarioType;
|
4
|
-
(function (ScenarioType) {
|
5
|
-
ScenarioType["EVENTS"] = "occhatsdk_events";
|
6
|
-
ScenarioType["IC3CLIENT"] = "occhatsdk_ic3clientevents";
|
7
|
-
ScenarioType["OCSDK"] = "occhatsdk_ocsdkevents";
|
8
|
-
ScenarioType["ACSCLIENT"] = "occhatsdk_acsclientevents";
|
9
|
-
ScenarioType["ACSADAPTER"] = "occhatsdk_acsadapterevents";
|
10
|
-
ScenarioType["CALLINGSDK"] = "occhatsdk_callingsdkevents";
|
11
|
-
ScenarioType["AMSCLIENT"] = "occhatsdk_amsclientevents";
|
12
|
-
ScenarioType["UNDEFINED"] = "undefined";
|
13
|
-
})(ScenarioType || (ScenarioType = {}));
|
14
|
-
exports.default = ScenarioType;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var ScenarioType;
|
4
|
+
(function (ScenarioType) {
|
5
|
+
ScenarioType["EVENTS"] = "occhatsdk_events";
|
6
|
+
ScenarioType["IC3CLIENT"] = "occhatsdk_ic3clientevents";
|
7
|
+
ScenarioType["OCSDK"] = "occhatsdk_ocsdkevents";
|
8
|
+
ScenarioType["ACSCLIENT"] = "occhatsdk_acsclientevents";
|
9
|
+
ScenarioType["ACSADAPTER"] = "occhatsdk_acsadapterevents";
|
10
|
+
ScenarioType["CALLINGSDK"] = "occhatsdk_callingsdkevents";
|
11
|
+
ScenarioType["AMSCLIENT"] = "occhatsdk_amsclientevents";
|
12
|
+
ScenarioType["UNDEFINED"] = "undefined";
|
13
|
+
})(ScenarioType || (ScenarioType = {}));
|
14
|
+
exports.default = ScenarioType;
|
15
15
|
//# sourceMappingURL=ScenarioType.js.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
declare class StopWatch {
|
2
|
-
private timeStart?;
|
3
|
-
start(): void;
|
4
|
-
stop(): number;
|
5
|
-
}
|
6
|
-
export default StopWatch;
|
1
|
+
declare class StopWatch {
|
2
|
+
private timeStart?;
|
3
|
+
start(): void;
|
4
|
+
stop(): number;
|
5
|
+
}
|
6
|
+
export default StopWatch;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
var StopWatch = /** @class */ (function () {
|
4
|
-
function StopWatch() {
|
5
|
-
}
|
6
|
-
StopWatch.prototype.start = function () {
|
7
|
-
this.timeStart = new Date().getTime();
|
8
|
-
};
|
9
|
-
StopWatch.prototype.stop = function () {
|
10
|
-
return new Date().getTime() - this.timeStart; // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
11
|
-
};
|
12
|
-
return StopWatch;
|
13
|
-
}());
|
14
|
-
exports.default = StopWatch;
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
var StopWatch = /** @class */ (function () {
|
4
|
+
function StopWatch() {
|
5
|
+
}
|
6
|
+
StopWatch.prototype.start = function () {
|
7
|
+
this.timeStart = new Date().getTime();
|
8
|
+
};
|
9
|
+
StopWatch.prototype.stop = function () {
|
10
|
+
return new Date().getTime() - this.timeStart; // eslint-disable-line @typescript-eslint/no-non-null-assertion
|
11
|
+
};
|
12
|
+
return StopWatch;
|
13
|
+
}());
|
14
|
+
exports.default = StopWatch;
|
15
15
|
//# sourceMappingURL=StopWatch.js.map
|
@@ -1,46 +1,46 @@
|
|
1
|
-
declare enum TelemetryEvent {
|
2
|
-
ValidateOmnichannelConfig = "ValidateOmnichannelConfig",
|
3
|
-
ValidateSDKConfig = "ValidateSDKConfig",
|
4
|
-
InitializeChatSDK = "InitializeChatSDK",
|
5
|
-
InitializeChatSDKParallel = "InitializeChatSDKParallel",
|
6
|
-
InitializeMessagingClient = "InitializeMessagingClient ",
|
7
|
-
InitializeComponents = "InitializeComponents",
|
8
|
-
InitializeLoadChatConfig = "InitializeLoadChatConfig",
|
9
|
-
StartChat = "StartChat",
|
10
|
-
EndChat = "EndChat",
|
11
|
-
GetLiveChatConfig = "GetLiveChatConfig",
|
12
|
-
GetAuthToken = "GetAuthToken",
|
13
|
-
GetPreChatSurvey = "GetPreChatSurvey",
|
14
|
-
GetChatToken = "GetChatToken",
|
15
|
-
GetConversationDetails = "GetConversationDetails",
|
16
|
-
GetCurrentLiveChatContext = "GetCurrentLiveChatContext",
|
17
|
-
GetMessages = "GetMessages",
|
18
|
-
SendMessages = "SendMessages",
|
19
|
-
SendTypingEvent = "SendTypingEvent",
|
20
|
-
OnAgentEndSession = "OnAgentEndSession",
|
21
|
-
OnNewMessage = "OnNewMessage",
|
22
|
-
OnTypingEvent = "OnTypingEvent",
|
23
|
-
UploadFileAttachment = "UploadFileAttachment",
|
24
|
-
DownloadFileAttachment = "DownloadFileAttachment",
|
25
|
-
EmailLiveChatTranscript = "EmailLiveChatTranscript",
|
26
|
-
GetLiveChatTranscript = "GetLiveChatTranscript",
|
27
|
-
CreateIC3Adapter = "CreateChatAdapter",
|
28
|
-
CreateACSAdapter = "CreateACSAdapter",
|
29
|
-
CreateDirectLine = "CreateDirectLine",
|
30
|
-
GetVoiceVideoCalling = "GetVoiceVideoCalling",
|
31
|
-
GetIC3Client = "GetIC3Client",
|
32
|
-
InitializeVoiceVideoCallingSDK = "InitializeVoiceVideoCallingSDK",
|
33
|
-
AcceptVoiceCall = "AcceptVoiceCall",
|
34
|
-
AcceptVideoCall = "AcceptVideoCall",
|
35
|
-
RejectCall = "RejectCall",
|
36
|
-
StopCall = "StopCall",
|
37
|
-
OnCallDisconnected = "OnCallDisconnected",
|
38
|
-
UpdateChatToken = "UpdateChatToken",
|
39
|
-
GetChatReconnectContext = "GetChatReconnectContext",
|
40
|
-
GetPostChatSurveyContext = "GetPostChatSurveyContext",
|
41
|
-
GetAgentAvailability = "GetAgentAvailability",
|
42
|
-
GetGeolocation = "GetGeolocation",
|
43
|
-
GetChatReconnectContextWithReconnectId = "GetChatReconnectContextWithReconnectId",
|
44
|
-
GetChatReconnectContextWithAuthToken = "GetChatReconnectContextWithAuthToken"
|
45
|
-
}
|
46
|
-
export default TelemetryEvent;
|
1
|
+
declare enum TelemetryEvent {
|
2
|
+
ValidateOmnichannelConfig = "ValidateOmnichannelConfig",
|
3
|
+
ValidateSDKConfig = "ValidateSDKConfig",
|
4
|
+
InitializeChatSDK = "InitializeChatSDK",
|
5
|
+
InitializeChatSDKParallel = "InitializeChatSDKParallel",
|
6
|
+
InitializeMessagingClient = "InitializeMessagingClient ",
|
7
|
+
InitializeComponents = "InitializeComponents",
|
8
|
+
InitializeLoadChatConfig = "InitializeLoadChatConfig",
|
9
|
+
StartChat = "StartChat",
|
10
|
+
EndChat = "EndChat",
|
11
|
+
GetLiveChatConfig = "GetLiveChatConfig",
|
12
|
+
GetAuthToken = "GetAuthToken",
|
13
|
+
GetPreChatSurvey = "GetPreChatSurvey",
|
14
|
+
GetChatToken = "GetChatToken",
|
15
|
+
GetConversationDetails = "GetConversationDetails",
|
16
|
+
GetCurrentLiveChatContext = "GetCurrentLiveChatContext",
|
17
|
+
GetMessages = "GetMessages",
|
18
|
+
SendMessages = "SendMessages",
|
19
|
+
SendTypingEvent = "SendTypingEvent",
|
20
|
+
OnAgentEndSession = "OnAgentEndSession",
|
21
|
+
OnNewMessage = "OnNewMessage",
|
22
|
+
OnTypingEvent = "OnTypingEvent",
|
23
|
+
UploadFileAttachment = "UploadFileAttachment",
|
24
|
+
DownloadFileAttachment = "DownloadFileAttachment",
|
25
|
+
EmailLiveChatTranscript = "EmailLiveChatTranscript",
|
26
|
+
GetLiveChatTranscript = "GetLiveChatTranscript",
|
27
|
+
CreateIC3Adapter = "CreateChatAdapter",
|
28
|
+
CreateACSAdapter = "CreateACSAdapter",
|
29
|
+
CreateDirectLine = "CreateDirectLine",
|
30
|
+
GetVoiceVideoCalling = "GetVoiceVideoCalling",
|
31
|
+
GetIC3Client = "GetIC3Client",
|
32
|
+
InitializeVoiceVideoCallingSDK = "InitializeVoiceVideoCallingSDK",
|
33
|
+
AcceptVoiceCall = "AcceptVoiceCall",
|
34
|
+
AcceptVideoCall = "AcceptVideoCall",
|
35
|
+
RejectCall = "RejectCall",
|
36
|
+
StopCall = "StopCall",
|
37
|
+
OnCallDisconnected = "OnCallDisconnected",
|
38
|
+
UpdateChatToken = "UpdateChatToken",
|
39
|
+
GetChatReconnectContext = "GetChatReconnectContext",
|
40
|
+
GetPostChatSurveyContext = "GetPostChatSurveyContext",
|
41
|
+
GetAgentAvailability = "GetAgentAvailability",
|
42
|
+
GetGeolocation = "GetGeolocation",
|
43
|
+
GetChatReconnectContextWithReconnectId = "GetChatReconnectContextWithReconnectId",
|
44
|
+
GetChatReconnectContextWithAuthToken = "GetChatReconnectContextWithAuthToken"
|
45
|
+
}
|
46
|
+
export default TelemetryEvent;
|