@microsoft/omnichannel-chat-sdk 1.9.7-main.9019907 → 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/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
package/lib/utils/location.js
CHANGED
@@ -1,96 +1,96 @@
|
|
1
|
-
"use strict";
|
2
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
4
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
5
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
6
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
7
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
8
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
9
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
10
|
-
});
|
11
|
-
};
|
12
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
13
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
14
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
15
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
16
|
-
function step(op) {
|
17
|
-
if (f) throw new TypeError("Generator is already executing.");
|
18
|
-
while (_) try {
|
19
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
20
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
21
|
-
switch (op[0]) {
|
22
|
-
case 0: case 1: t = op; break;
|
23
|
-
case 4: _.label++; return { value: op[1], done: false };
|
24
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
25
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
26
|
-
default:
|
27
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
28
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
29
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
30
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
31
|
-
if (t[2]) _.ops.pop();
|
32
|
-
_.trys.pop(); continue;
|
33
|
-
}
|
34
|
-
op = body.call(thisArg, _);
|
35
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
36
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
37
|
-
}
|
38
|
-
};
|
39
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
40
|
-
exports.getLocationInfo = void 0;
|
41
|
-
var TelemetryEvent_1 = require("../telemetry/TelemetryEvent");
|
42
|
-
var platform_1 = require("./platform");
|
43
|
-
exports.getLocationInfo = function (scenarioMarker, chatId, requestId) { return __awaiter(void 0, void 0, void 0, function () {
|
44
|
-
var reportLocationError;
|
45
|
-
return __generator(this, function (_a) {
|
46
|
-
reportLocationError = function (response, error) {
|
47
|
-
console.error(response, error);
|
48
|
-
var exceptionDetails;
|
49
|
-
try {
|
50
|
-
exceptionDetails = JSON.stringify({ Response: response, ExceptionalDetails: error });
|
51
|
-
}
|
52
|
-
catch (_a) {
|
53
|
-
exceptionDetails = JSON.stringify({ Response: response });
|
54
|
-
}
|
55
|
-
scenarioMarker.failScenario(TelemetryEvent_1.default.GetGeolocation, {
|
56
|
-
RequestId: requestId,
|
57
|
-
ChatId: chatId,
|
58
|
-
ExceptionDetails: exceptionDetails
|
59
|
-
});
|
60
|
-
};
|
61
|
-
return [2 /*return*/, new Promise(function (resolve, reject) {
|
62
|
-
scenarioMarker.startScenario(TelemetryEvent_1.default.GetGeolocation, {
|
63
|
-
RequestId: requestId
|
64
|
-
});
|
65
|
-
var location = {
|
66
|
-
latitude: "",
|
67
|
-
longitude: ""
|
68
|
-
};
|
69
|
-
if (platform_1.default.isNode() || platform_1.default.isReactNative() || !navigator.geolocation) {
|
70
|
-
reportLocationError("Unsupported");
|
71
|
-
resolve(location);
|
72
|
-
}
|
73
|
-
var onSuccess = function (position) {
|
74
|
-
try {
|
75
|
-
location.latitude = position.coords.latitude.toString();
|
76
|
-
location.longitude = position.coords.longitude.toString();
|
77
|
-
scenarioMarker.completeScenario(TelemetryEvent_1.default.GetGeolocation, {
|
78
|
-
RequestId: requestId,
|
79
|
-
ChatId: chatId
|
80
|
-
});
|
81
|
-
resolve(location);
|
82
|
-
}
|
83
|
-
catch (ex) {
|
84
|
-
reportLocationError("GetGeolocationFailed", ex);
|
85
|
-
resolve(location);
|
86
|
-
}
|
87
|
-
};
|
88
|
-
var onError = function (ex) {
|
89
|
-
reportLocationError("GetGeolocationFailed", ex);
|
90
|
-
resolve(location);
|
91
|
-
};
|
92
|
-
navigator.geolocation.getCurrentPosition(onSuccess, onError);
|
93
|
-
})];
|
94
|
-
});
|
95
|
-
}); };
|
1
|
+
"use strict";
|
2
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
3
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
4
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
5
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
6
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
7
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
8
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
9
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
10
|
+
});
|
11
|
+
};
|
12
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
13
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
14
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
15
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
16
|
+
function step(op) {
|
17
|
+
if (f) throw new TypeError("Generator is already executing.");
|
18
|
+
while (_) try {
|
19
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
20
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
21
|
+
switch (op[0]) {
|
22
|
+
case 0: case 1: t = op; break;
|
23
|
+
case 4: _.label++; return { value: op[1], done: false };
|
24
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
25
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
26
|
+
default:
|
27
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
28
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
29
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
30
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
31
|
+
if (t[2]) _.ops.pop();
|
32
|
+
_.trys.pop(); continue;
|
33
|
+
}
|
34
|
+
op = body.call(thisArg, _);
|
35
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
36
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
37
|
+
}
|
38
|
+
};
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
40
|
+
exports.getLocationInfo = void 0;
|
41
|
+
var TelemetryEvent_1 = require("../telemetry/TelemetryEvent");
|
42
|
+
var platform_1 = require("./platform");
|
43
|
+
exports.getLocationInfo = function (scenarioMarker, chatId, requestId) { return __awaiter(void 0, void 0, void 0, function () {
|
44
|
+
var reportLocationError;
|
45
|
+
return __generator(this, function (_a) {
|
46
|
+
reportLocationError = function (response, error) {
|
47
|
+
console.error(response, error);
|
48
|
+
var exceptionDetails;
|
49
|
+
try {
|
50
|
+
exceptionDetails = JSON.stringify({ Response: response, ExceptionalDetails: error });
|
51
|
+
}
|
52
|
+
catch (_a) {
|
53
|
+
exceptionDetails = JSON.stringify({ Response: response });
|
54
|
+
}
|
55
|
+
scenarioMarker.failScenario(TelemetryEvent_1.default.GetGeolocation, {
|
56
|
+
RequestId: requestId,
|
57
|
+
ChatId: chatId,
|
58
|
+
ExceptionDetails: exceptionDetails
|
59
|
+
});
|
60
|
+
};
|
61
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
62
|
+
scenarioMarker.startScenario(TelemetryEvent_1.default.GetGeolocation, {
|
63
|
+
RequestId: requestId
|
64
|
+
});
|
65
|
+
var location = {
|
66
|
+
latitude: "",
|
67
|
+
longitude: ""
|
68
|
+
};
|
69
|
+
if (platform_1.default.isNode() || platform_1.default.isReactNative() || !navigator.geolocation) {
|
70
|
+
reportLocationError("Unsupported");
|
71
|
+
resolve(location);
|
72
|
+
}
|
73
|
+
var onSuccess = function (position) {
|
74
|
+
try {
|
75
|
+
location.latitude = position.coords.latitude.toString();
|
76
|
+
location.longitude = position.coords.longitude.toString();
|
77
|
+
scenarioMarker.completeScenario(TelemetryEvent_1.default.GetGeolocation, {
|
78
|
+
RequestId: requestId,
|
79
|
+
ChatId: chatId
|
80
|
+
});
|
81
|
+
resolve(location);
|
82
|
+
}
|
83
|
+
catch (ex) {
|
84
|
+
reportLocationError("GetGeolocationFailed", ex);
|
85
|
+
resolve(location);
|
86
|
+
}
|
87
|
+
};
|
88
|
+
var onError = function (ex) {
|
89
|
+
reportLocationError("GetGeolocationFailed", ex);
|
90
|
+
resolve(location);
|
91
|
+
};
|
92
|
+
navigator.geolocation.getCurrentPosition(onSuccess, onError);
|
93
|
+
})];
|
94
|
+
});
|
95
|
+
}); };
|
96
96
|
//# sourceMappingURL=location.js.map
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import AriaTelemetry from "../telemetry/AriaTelemetry";
|
2
|
-
import { ACSAdapterLogger, ACSClientLogger, AMSClientLogger, CallingSDKLogger, IC3ClientLogger, OCSDKLogger } from "./loggers";
|
3
|
-
export declare const useTelemetry: (telemetry: typeof AriaTelemetry, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
4
|
-
export declare const setRuntimeId: (runtimeId: string, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
5
|
-
export declare const setRequestId: (requestId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
6
|
-
export declare const setDebug: (flag: boolean, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
7
|
-
export declare const setChatId: (chatId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
8
|
-
declare const _default: {
|
9
|
-
useTelemetry: (telemetry: typeof AriaTelemetry, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
10
|
-
setRuntimeId: (runtimeId: string, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
11
|
-
setRequestId: (requestId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
12
|
-
setDebug: (flag: boolean, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
13
|
-
setChatId: (chatId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
14
|
-
};
|
15
|
-
export default _default;
|
1
|
+
import AriaTelemetry from "../telemetry/AriaTelemetry";
|
2
|
+
import { ACSAdapterLogger, ACSClientLogger, AMSClientLogger, CallingSDKLogger, IC3ClientLogger, OCSDKLogger } from "./loggers";
|
3
|
+
export declare const useTelemetry: (telemetry: typeof AriaTelemetry, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
4
|
+
export declare const setRuntimeId: (runtimeId: string, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
5
|
+
export declare const setRequestId: (requestId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
6
|
+
export declare const setDebug: (flag: boolean, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
7
|
+
export declare const setChatId: (chatId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
8
|
+
declare const _default: {
|
9
|
+
useTelemetry: (telemetry: typeof AriaTelemetry, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
10
|
+
setRuntimeId: (runtimeId: string, ocSdkLogger: OCSDKLogger, acsClientLogger: ACSClientLogger, acsAdapterLogger: ACSAdapterLogger, callingSdkLogger: CallingSDKLogger, amsClientLogger: AMSClientLogger, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
11
|
+
setRequestId: (requestId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
12
|
+
setDebug: (flag: boolean, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
13
|
+
setChatId: (chatId: string, ocSdkLogger?: OCSDKLogger | null | undefined, acsClientLogger?: ACSClientLogger | null | undefined, acsAdapterLogger?: ACSAdapterLogger | null | undefined, callingSdkLogger?: CallingSDKLogger | null | undefined, amsClientLogger?: AMSClientLogger | null | undefined, ic3ClientLogger?: IC3ClientLogger | null) => void;
|
14
|
+
};
|
15
|
+
export default _default;
|
package/lib/utils/loggerUtils.js
CHANGED
@@ -1,56 +1,56 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.setChatId = exports.setDebug = exports.setRequestId = exports.setRuntimeId = exports.useTelemetry = void 0;
|
4
|
-
exports.useTelemetry = function (telemetry, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
5
|
-
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
6
|
-
ocSdkLogger.useTelemetry(telemetry);
|
7
|
-
acsClientLogger.useTelemetry(telemetry);
|
8
|
-
acsAdapterLogger.useTelemetry(telemetry);
|
9
|
-
callingSdkLogger.useTelemetry(telemetry);
|
10
|
-
amsClientLogger.useTelemetry(telemetry);
|
11
|
-
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.useTelemetry(telemetry);
|
12
|
-
};
|
13
|
-
exports.setRuntimeId = function (runtimeId, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
14
|
-
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
15
|
-
ocSdkLogger.setRuntimeId(runtimeId);
|
16
|
-
acsClientLogger.setRuntimeId(runtimeId);
|
17
|
-
acsAdapterLogger.setRuntimeId(runtimeId);
|
18
|
-
callingSdkLogger.setRuntimeId(runtimeId);
|
19
|
-
amsClientLogger.setRuntimeId(runtimeId);
|
20
|
-
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setRuntimeId(runtimeId);
|
21
|
-
};
|
22
|
-
exports.setRequestId = function (requestId, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
23
|
-
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
24
|
-
ocSdkLogger === null || ocSdkLogger === void 0 ? void 0 : ocSdkLogger.setRequestId(requestId);
|
25
|
-
acsClientLogger === null || acsClientLogger === void 0 ? void 0 : acsClientLogger.setRequestId(requestId);
|
26
|
-
acsAdapterLogger === null || acsAdapterLogger === void 0 ? void 0 : acsAdapterLogger.setRequestId(requestId);
|
27
|
-
callingSdkLogger === null || callingSdkLogger === void 0 ? void 0 : callingSdkLogger.setRequestId(requestId);
|
28
|
-
amsClientLogger === null || amsClientLogger === void 0 ? void 0 : amsClientLogger.setRequestId(requestId);
|
29
|
-
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setRequestId(requestId);
|
30
|
-
};
|
31
|
-
exports.setDebug = function (flag, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
32
|
-
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
33
|
-
ocSdkLogger === null || ocSdkLogger === void 0 ? void 0 : ocSdkLogger.setDebug(flag);
|
34
|
-
acsClientLogger === null || acsClientLogger === void 0 ? void 0 : acsClientLogger.setDebug(flag);
|
35
|
-
acsAdapterLogger === null || acsAdapterLogger === void 0 ? void 0 : acsAdapterLogger.setDebug(flag);
|
36
|
-
callingSdkLogger === null || callingSdkLogger === void 0 ? void 0 : callingSdkLogger.setDebug(flag);
|
37
|
-
amsClientLogger === null || amsClientLogger === void 0 ? void 0 : amsClientLogger.setDebug(flag);
|
38
|
-
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setDebug(flag);
|
39
|
-
};
|
40
|
-
exports.setChatId = function (chatId, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
41
|
-
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
42
|
-
ocSdkLogger === null || ocSdkLogger === void 0 ? void 0 : ocSdkLogger.setChatId(chatId);
|
43
|
-
acsClientLogger === null || acsClientLogger === void 0 ? void 0 : acsClientLogger.setChatId(chatId);
|
44
|
-
acsAdapterLogger === null || acsAdapterLogger === void 0 ? void 0 : acsAdapterLogger.setChatId(chatId);
|
45
|
-
callingSdkLogger === null || callingSdkLogger === void 0 ? void 0 : callingSdkLogger.setChatId(chatId);
|
46
|
-
amsClientLogger === null || amsClientLogger === void 0 ? void 0 : amsClientLogger.setChatId(chatId);
|
47
|
-
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setChatId(chatId);
|
48
|
-
};
|
49
|
-
exports.default = {
|
50
|
-
useTelemetry: exports.useTelemetry,
|
51
|
-
setRuntimeId: exports.setRuntimeId,
|
52
|
-
setRequestId: exports.setRequestId,
|
53
|
-
setDebug: exports.setDebug,
|
54
|
-
setChatId: exports.setChatId
|
55
|
-
};
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.setChatId = exports.setDebug = exports.setRequestId = exports.setRuntimeId = exports.useTelemetry = void 0;
|
4
|
+
exports.useTelemetry = function (telemetry, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
5
|
+
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
6
|
+
ocSdkLogger.useTelemetry(telemetry);
|
7
|
+
acsClientLogger.useTelemetry(telemetry);
|
8
|
+
acsAdapterLogger.useTelemetry(telemetry);
|
9
|
+
callingSdkLogger.useTelemetry(telemetry);
|
10
|
+
amsClientLogger.useTelemetry(telemetry);
|
11
|
+
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.useTelemetry(telemetry);
|
12
|
+
};
|
13
|
+
exports.setRuntimeId = function (runtimeId, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
14
|
+
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
15
|
+
ocSdkLogger.setRuntimeId(runtimeId);
|
16
|
+
acsClientLogger.setRuntimeId(runtimeId);
|
17
|
+
acsAdapterLogger.setRuntimeId(runtimeId);
|
18
|
+
callingSdkLogger.setRuntimeId(runtimeId);
|
19
|
+
amsClientLogger.setRuntimeId(runtimeId);
|
20
|
+
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setRuntimeId(runtimeId);
|
21
|
+
};
|
22
|
+
exports.setRequestId = function (requestId, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
23
|
+
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
24
|
+
ocSdkLogger === null || ocSdkLogger === void 0 ? void 0 : ocSdkLogger.setRequestId(requestId);
|
25
|
+
acsClientLogger === null || acsClientLogger === void 0 ? void 0 : acsClientLogger.setRequestId(requestId);
|
26
|
+
acsAdapterLogger === null || acsAdapterLogger === void 0 ? void 0 : acsAdapterLogger.setRequestId(requestId);
|
27
|
+
callingSdkLogger === null || callingSdkLogger === void 0 ? void 0 : callingSdkLogger.setRequestId(requestId);
|
28
|
+
amsClientLogger === null || amsClientLogger === void 0 ? void 0 : amsClientLogger.setRequestId(requestId);
|
29
|
+
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setRequestId(requestId);
|
30
|
+
};
|
31
|
+
exports.setDebug = function (flag, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
32
|
+
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
33
|
+
ocSdkLogger === null || ocSdkLogger === void 0 ? void 0 : ocSdkLogger.setDebug(flag);
|
34
|
+
acsClientLogger === null || acsClientLogger === void 0 ? void 0 : acsClientLogger.setDebug(flag);
|
35
|
+
acsAdapterLogger === null || acsAdapterLogger === void 0 ? void 0 : acsAdapterLogger.setDebug(flag);
|
36
|
+
callingSdkLogger === null || callingSdkLogger === void 0 ? void 0 : callingSdkLogger.setDebug(flag);
|
37
|
+
amsClientLogger === null || amsClientLogger === void 0 ? void 0 : amsClientLogger.setDebug(flag);
|
38
|
+
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setDebug(flag);
|
39
|
+
};
|
40
|
+
exports.setChatId = function (chatId, ocSdkLogger, acsClientLogger, acsAdapterLogger, callingSdkLogger, amsClientLogger, ic3ClientLogger) {
|
41
|
+
if (ic3ClientLogger === void 0) { ic3ClientLogger = null; }
|
42
|
+
ocSdkLogger === null || ocSdkLogger === void 0 ? void 0 : ocSdkLogger.setChatId(chatId);
|
43
|
+
acsClientLogger === null || acsClientLogger === void 0 ? void 0 : acsClientLogger.setChatId(chatId);
|
44
|
+
acsAdapterLogger === null || acsAdapterLogger === void 0 ? void 0 : acsAdapterLogger.setChatId(chatId);
|
45
|
+
callingSdkLogger === null || callingSdkLogger === void 0 ? void 0 : callingSdkLogger.setChatId(chatId);
|
46
|
+
amsClientLogger === null || amsClientLogger === void 0 ? void 0 : amsClientLogger.setChatId(chatId);
|
47
|
+
ic3ClientLogger === null || ic3ClientLogger === void 0 ? void 0 : ic3ClientLogger.setChatId(chatId);
|
48
|
+
};
|
49
|
+
exports.default = {
|
50
|
+
useTelemetry: exports.useTelemetry,
|
51
|
+
setRuntimeId: exports.setRuntimeId,
|
52
|
+
setRequestId: exports.setRequestId,
|
53
|
+
setDebug: exports.setDebug,
|
54
|
+
setChatId: exports.setChatId
|
55
|
+
};
|
56
56
|
//# sourceMappingURL=loggerUtils.js.map
|
package/lib/utils/loggers.d.ts
CHANGED
@@ -1,111 +1,111 @@
|
|
1
|
-
import LogLevel from "../telemetry/LogLevel";
|
2
|
-
import OmnichannelConfig from "../core/OmnichannelConfig";
|
3
|
-
import ICallingSDKLogData from "../external/CallingSDK/ICallingSDKLogData";
|
4
|
-
import IIC3SDKLogData from "../external/IC3Client/IIC3SDKLogData";
|
5
|
-
import IOCSDKLogData from "../external/OCSDK/IOCSDKLogData";
|
6
|
-
import AriaTelemetry from "../telemetry/AriaTelemetry";
|
7
|
-
export declare class IC3ClientLogger {
|
8
|
-
private omnichannelConfig;
|
9
|
-
private debug;
|
10
|
-
private runtimeId;
|
11
|
-
private requestId;
|
12
|
-
private chatId;
|
13
|
-
private telemetry;
|
14
|
-
constructor(omnichannelConfig: OmnichannelConfig);
|
15
|
-
setDebug(flag: boolean): void;
|
16
|
-
setRuntimeId(runtimeId: string): void;
|
17
|
-
setRequestId(requestId: string): void;
|
18
|
-
setChatId(chatId: string): void;
|
19
|
-
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
20
|
-
logClientSdkTelemetryEvent(logLevel: LogLevel, event: IIC3SDKLogData): void;
|
21
|
-
}
|
22
|
-
export declare class OCSDKLogger {
|
23
|
-
private omnichannelConfig;
|
24
|
-
private debug;
|
25
|
-
private runtimeId;
|
26
|
-
private requestId;
|
27
|
-
private chatId;
|
28
|
-
private telemetry;
|
29
|
-
constructor(omnichannelConfig: OmnichannelConfig);
|
30
|
-
setDebug(flag: boolean): void;
|
31
|
-
setRuntimeId(runtimeId: string): void;
|
32
|
-
setRequestId(requestId: string): void;
|
33
|
-
setChatId(chatId: string): void;
|
34
|
-
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
35
|
-
logClientSdkTelemetryEvent(logLevel: LogLevel, event: IOCSDKLogData): void;
|
36
|
-
}
|
37
|
-
export declare class ACSClientLogger {
|
38
|
-
private omnichannelConfig;
|
39
|
-
private debug;
|
40
|
-
private runtimeId;
|
41
|
-
private requestId;
|
42
|
-
private chatId;
|
43
|
-
private telemetry;
|
44
|
-
private scenarioMarker;
|
45
|
-
constructor(omnichannelConfig: OmnichannelConfig);
|
46
|
-
setDebug(flag: boolean): void;
|
47
|
-
setRuntimeId(runtimeId: string): void;
|
48
|
-
setRequestId(requestId: string): void;
|
49
|
-
setChatId(chatId: string): void;
|
50
|
-
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
51
|
-
logClientSdkTelemetryEvent(logLevel: LogLevel, event: any): void;
|
52
|
-
startScenario(event: string, additionalProperties?: any): void;
|
53
|
-
failScenario(event: string, additionalProperties?: any): void;
|
54
|
-
completeScenario(event: string, additionalProperties?: any): void;
|
55
|
-
}
|
56
|
-
export declare class ACSAdapterLogger {
|
57
|
-
private omnichannelConfig;
|
58
|
-
private debug;
|
59
|
-
private runtimeId;
|
60
|
-
private requestId;
|
61
|
-
private chatId;
|
62
|
-
private telemetry;
|
63
|
-
private scenarioMarker;
|
64
|
-
constructor(omnichannelConfig: OmnichannelConfig);
|
65
|
-
setDebug(flag: boolean): void;
|
66
|
-
setRuntimeId(runtimeId: string): void;
|
67
|
-
setRequestId(requestId: string): void;
|
68
|
-
setChatId(chatId: string): void;
|
69
|
-
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
70
|
-
logEvent(logLevel: LogLevel, event: any): void;
|
71
|
-
startScenario(event: string, additionalProperties?: any): void;
|
72
|
-
failScenario(event: string, additionalProperties?: any): void;
|
73
|
-
completeScenario(event: string, additionalProperties?: any): void;
|
74
|
-
}
|
75
|
-
export declare class CallingSDKLogger {
|
76
|
-
private omnichannelConfig;
|
77
|
-
private debug;
|
78
|
-
private runtimeId;
|
79
|
-
private requestId;
|
80
|
-
private chatId;
|
81
|
-
private telemetry;
|
82
|
-
constructor(omnichannelConfig: OmnichannelConfig);
|
83
|
-
setDebug(flag: boolean): void;
|
84
|
-
setRuntimeId(runtimeId: string): void;
|
85
|
-
setRequestId(requestId: string): void;
|
86
|
-
setChatId(chatId: string): void;
|
87
|
-
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
88
|
-
logScenarioOperation(operationName: string, startTime: number, endTime: number, isSuccess: boolean, retryCount: number, data?: object): void;
|
89
|
-
logCallingSdkTelemetryEvent(logLevel: LogLevel, event: ICallingSDKLogData): void;
|
90
|
-
}
|
91
|
-
export declare class AMSClientLogger {
|
92
|
-
private omnichannelConfig;
|
93
|
-
private debug;
|
94
|
-
private runtimeId;
|
95
|
-
private requestId;
|
96
|
-
private chatId;
|
97
|
-
private telemetry;
|
98
|
-
constructor(omnichannelConfig: OmnichannelConfig);
|
99
|
-
setDebug(flag: boolean): void;
|
100
|
-
setRuntimeId(runtimeId: string): void;
|
101
|
-
setRequestId(requestId: string): void;
|
102
|
-
setChatId(chatId: string): void;
|
103
|
-
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
104
|
-
logClientSdkTelemetryEvent(logLevel: LogLevel, event: any): void;
|
105
|
-
}
|
106
|
-
export declare const createIC3ClientLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => IC3ClientLogger;
|
107
|
-
export declare const createOCSDKLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => OCSDKLogger;
|
108
|
-
export declare const createACSClientLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => ACSClientLogger;
|
109
|
-
export declare const createACSAdapterLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => ACSAdapterLogger;
|
110
|
-
export declare const createCallingSDKLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => CallingSDKLogger;
|
111
|
-
export declare const createAMSClientLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => AMSClientLogger;
|
1
|
+
import LogLevel from "../telemetry/LogLevel";
|
2
|
+
import OmnichannelConfig from "../core/OmnichannelConfig";
|
3
|
+
import ICallingSDKLogData from "../external/CallingSDK/ICallingSDKLogData";
|
4
|
+
import IIC3SDKLogData from "../external/IC3Client/IIC3SDKLogData";
|
5
|
+
import IOCSDKLogData from "../external/OCSDK/IOCSDKLogData";
|
6
|
+
import AriaTelemetry from "../telemetry/AriaTelemetry";
|
7
|
+
export declare class IC3ClientLogger {
|
8
|
+
private omnichannelConfig;
|
9
|
+
private debug;
|
10
|
+
private runtimeId;
|
11
|
+
private requestId;
|
12
|
+
private chatId;
|
13
|
+
private telemetry;
|
14
|
+
constructor(omnichannelConfig: OmnichannelConfig);
|
15
|
+
setDebug(flag: boolean): void;
|
16
|
+
setRuntimeId(runtimeId: string): void;
|
17
|
+
setRequestId(requestId: string): void;
|
18
|
+
setChatId(chatId: string): void;
|
19
|
+
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
20
|
+
logClientSdkTelemetryEvent(logLevel: LogLevel, event: IIC3SDKLogData): void;
|
21
|
+
}
|
22
|
+
export declare class OCSDKLogger {
|
23
|
+
private omnichannelConfig;
|
24
|
+
private debug;
|
25
|
+
private runtimeId;
|
26
|
+
private requestId;
|
27
|
+
private chatId;
|
28
|
+
private telemetry;
|
29
|
+
constructor(omnichannelConfig: OmnichannelConfig);
|
30
|
+
setDebug(flag: boolean): void;
|
31
|
+
setRuntimeId(runtimeId: string): void;
|
32
|
+
setRequestId(requestId: string): void;
|
33
|
+
setChatId(chatId: string): void;
|
34
|
+
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
35
|
+
logClientSdkTelemetryEvent(logLevel: LogLevel, event: IOCSDKLogData): void;
|
36
|
+
}
|
37
|
+
export declare class ACSClientLogger {
|
38
|
+
private omnichannelConfig;
|
39
|
+
private debug;
|
40
|
+
private runtimeId;
|
41
|
+
private requestId;
|
42
|
+
private chatId;
|
43
|
+
private telemetry;
|
44
|
+
private scenarioMarker;
|
45
|
+
constructor(omnichannelConfig: OmnichannelConfig);
|
46
|
+
setDebug(flag: boolean): void;
|
47
|
+
setRuntimeId(runtimeId: string): void;
|
48
|
+
setRequestId(requestId: string): void;
|
49
|
+
setChatId(chatId: string): void;
|
50
|
+
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
51
|
+
logClientSdkTelemetryEvent(logLevel: LogLevel, event: any): void;
|
52
|
+
startScenario(event: string, additionalProperties?: any): void;
|
53
|
+
failScenario(event: string, additionalProperties?: any): void;
|
54
|
+
completeScenario(event: string, additionalProperties?: any): void;
|
55
|
+
}
|
56
|
+
export declare class ACSAdapterLogger {
|
57
|
+
private omnichannelConfig;
|
58
|
+
private debug;
|
59
|
+
private runtimeId;
|
60
|
+
private requestId;
|
61
|
+
private chatId;
|
62
|
+
private telemetry;
|
63
|
+
private scenarioMarker;
|
64
|
+
constructor(omnichannelConfig: OmnichannelConfig);
|
65
|
+
setDebug(flag: boolean): void;
|
66
|
+
setRuntimeId(runtimeId: string): void;
|
67
|
+
setRequestId(requestId: string): void;
|
68
|
+
setChatId(chatId: string): void;
|
69
|
+
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
70
|
+
logEvent(logLevel: LogLevel, event: any): void;
|
71
|
+
startScenario(event: string, additionalProperties?: any): void;
|
72
|
+
failScenario(event: string, additionalProperties?: any): void;
|
73
|
+
completeScenario(event: string, additionalProperties?: any): void;
|
74
|
+
}
|
75
|
+
export declare class CallingSDKLogger {
|
76
|
+
private omnichannelConfig;
|
77
|
+
private debug;
|
78
|
+
private runtimeId;
|
79
|
+
private requestId;
|
80
|
+
private chatId;
|
81
|
+
private telemetry;
|
82
|
+
constructor(omnichannelConfig: OmnichannelConfig);
|
83
|
+
setDebug(flag: boolean): void;
|
84
|
+
setRuntimeId(runtimeId: string): void;
|
85
|
+
setRequestId(requestId: string): void;
|
86
|
+
setChatId(chatId: string): void;
|
87
|
+
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
88
|
+
logScenarioOperation(operationName: string, startTime: number, endTime: number, isSuccess: boolean, retryCount: number, data?: object): void;
|
89
|
+
logCallingSdkTelemetryEvent(logLevel: LogLevel, event: ICallingSDKLogData): void;
|
90
|
+
}
|
91
|
+
export declare class AMSClientLogger {
|
92
|
+
private omnichannelConfig;
|
93
|
+
private debug;
|
94
|
+
private runtimeId;
|
95
|
+
private requestId;
|
96
|
+
private chatId;
|
97
|
+
private telemetry;
|
98
|
+
constructor(omnichannelConfig: OmnichannelConfig);
|
99
|
+
setDebug(flag: boolean): void;
|
100
|
+
setRuntimeId(runtimeId: string): void;
|
101
|
+
setRequestId(requestId: string): void;
|
102
|
+
setChatId(chatId: string): void;
|
103
|
+
useTelemetry(telemetry: typeof AriaTelemetry): void;
|
104
|
+
logClientSdkTelemetryEvent(logLevel: LogLevel, event: any): void;
|
105
|
+
}
|
106
|
+
export declare const createIC3ClientLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => IC3ClientLogger;
|
107
|
+
export declare const createOCSDKLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => OCSDKLogger;
|
108
|
+
export declare const createACSClientLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => ACSClientLogger;
|
109
|
+
export declare const createACSAdapterLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => ACSAdapterLogger;
|
110
|
+
export declare const createCallingSDKLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => CallingSDKLogger;
|
111
|
+
export declare const createAMSClientLogger: (omnichannelConfig: OmnichannelConfig, debug?: boolean) => AMSClientLogger;
|