@microsoft/omnichannel-chat-sdk 1.9.5-main.fd99e0f → 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.
Files changed (207) hide show
  1. package/lib/OmnichannelChatSDK.d.ts +128 -114
  2. package/lib/OmnichannelChatSDK.js +2609 -2394
  3. package/lib/OmnichannelChatSDK.js.map +1 -1
  4. package/lib/api/createVoiceVideoCalling.d.ts +53 -53
  5. package/lib/api/createVoiceVideoCalling.js +462 -462
  6. package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.d.ts +3 -0
  7. package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js +14 -0
  8. package/lib/commands/throwUnsupportedLiveChatVersionFailureIfApplicable.js.map +1 -0
  9. package/lib/config/ocSDKConfiguration.d.ts +7 -7
  10. package/lib/config/ocSDKConfiguration.js +9 -9
  11. package/lib/config/settings.d.ts +6 -6
  12. package/lib/config/settings.js +13 -13
  13. package/lib/core/AuthSettings.d.ts +5 -5
  14. package/lib/core/AuthSettings.js +2 -2
  15. package/lib/core/AxiosErrorCodes.d.ts +4 -4
  16. package/lib/core/AxiosErrorCodes.js +7 -7
  17. package/lib/core/CallingOptionsOptionSetNumber.d.ts +6 -6
  18. package/lib/core/CallingOptionsOptionSetNumber.js +9 -9
  19. package/lib/core/ChatConfig.d.ts +10 -10
  20. package/lib/core/ChatConfig.js +2 -2
  21. package/lib/core/ChatReconnectContext.d.ts +4 -4
  22. package/lib/core/ChatReconnectContext.js +2 -2
  23. package/lib/core/ChatReconnectOptionalParams.d.ts +3 -3
  24. package/lib/core/ChatReconnectOptionalParams.js +2 -2
  25. package/lib/core/ChatSDKConfig.d.ts +38 -38
  26. package/lib/core/ChatSDKConfig.js +2 -2
  27. package/lib/core/ChatSDKError.d.ts +64 -63
  28. package/lib/core/ChatSDKError.js +73 -72
  29. package/lib/core/ChatSDKError.js.map +1 -1
  30. package/lib/core/ChatSDKExceptionDetails.d.ts +13 -13
  31. package/lib/core/ChatSDKExceptionDetails.js +2 -2
  32. package/lib/core/ChatTranscriptBody.d.ts +5 -5
  33. package/lib/core/ChatTranscriptBody.js +2 -2
  34. package/lib/core/ConversationMode.d.ts +5 -5
  35. package/lib/core/ConversationMode.js +8 -8
  36. package/lib/core/EmailLiveChatTranscriptOptionalParams.d.ts +4 -4
  37. package/lib/core/EmailLiveChatTranscriptOptionalParams.js +2 -2
  38. package/lib/core/GetAgentAvailabilityOptionalParams.d.ts +13 -13
  39. package/lib/core/GetAgentAvailabilityOptionalParams.js +2 -2
  40. package/lib/core/GetChatTokenOptionalParams.d.ts +3 -3
  41. package/lib/core/GetChatTokenOptionalParams.js +2 -2
  42. package/lib/core/GetConversationDetailsOptionalParams.d.ts +4 -4
  43. package/lib/core/GetConversationDetailsOptionalParams.js +2 -2
  44. package/lib/core/GetLiveChatConfigOptionalParams.d.ts +5 -5
  45. package/lib/core/GetLiveChatConfigOptionalParams.js +2 -2
  46. package/lib/core/GetLiveChatTranscriptOptionalParams.d.ts +4 -4
  47. package/lib/core/GetLiveChatTranscriptOptionalParams.js +2 -2
  48. package/lib/core/InitializeOptionalParams.d.ts +6 -5
  49. package/lib/core/InitializeOptionalParams.js +2 -2
  50. package/lib/core/LiveChatContext.d.ts +14 -14
  51. package/lib/core/LiveChatContext.js +2 -2
  52. package/lib/core/LiveChatVersion.d.ts +5 -5
  53. package/lib/core/LiveChatVersion.js +8 -8
  54. package/lib/core/LiveWorkItemDetails.d.ts +8 -8
  55. package/lib/core/LiveWorkItemDetails.js +2 -2
  56. package/lib/core/LiveWorkItemState.d.ts +8 -8
  57. package/lib/core/LiveWorkItemState.js +11 -11
  58. package/lib/core/OmnichannelConfig.d.ts +5 -5
  59. package/lib/core/OmnichannelConfig.js +2 -2
  60. package/lib/core/OmnichannelErrorCodes.d.ts +4 -4
  61. package/lib/core/OmnichannelErrorCodes.js +7 -7
  62. package/lib/core/PostChatContext.d.ts +8 -8
  63. package/lib/core/PostChatContext.js +2 -2
  64. package/lib/core/SetAuthTokenProviderOptionalParams.d.ts +3 -3
  65. package/lib/core/SetAuthTokenProviderOptionalParams.js +2 -2
  66. package/lib/core/StartChatOptionalParams.d.ts +18 -18
  67. package/lib/core/StartChatOptionalParams.js +2 -2
  68. package/lib/core/messaging/ACSChatMessageType.d.ts +7 -7
  69. package/lib/core/messaging/ACSChatMessageType.js +10 -10
  70. package/lib/core/messaging/ACSClient.d.ts +45 -45
  71. package/lib/core/messaging/ACSClient.js +612 -612
  72. package/lib/core/messaging/ACSClientConfig.d.ts +5 -5
  73. package/lib/core/messaging/ACSClientConfig.js +2 -2
  74. package/lib/core/messaging/ACSParticipantDisplayName.d.ts +6 -6
  75. package/lib/core/messaging/ACSParticipantDisplayName.js +9 -9
  76. package/lib/core/messaging/ACSSessionInfo.d.ts +5 -5
  77. package/lib/core/messaging/ACSSessionInfo.js +2 -2
  78. package/lib/core/messaging/ChatAdapterConfig.d.ts +8 -8
  79. package/lib/core/messaging/ChatAdapterConfig.js +2 -2
  80. package/lib/core/messaging/ChatAdapterOptionalParams.d.ts +24 -24
  81. package/lib/core/messaging/ChatAdapterOptionalParams.js +2 -2
  82. package/lib/core/messaging/ChatAdapterProtocols.d.ts +6 -6
  83. package/lib/core/messaging/ChatAdapterProtocols.js +10 -10
  84. package/lib/core/messaging/ChatSDKMessage.d.ts +6 -6
  85. package/lib/core/messaging/ChatSDKMessage.js +2 -2
  86. package/lib/core/messaging/IC3Config.d.ts +4 -4
  87. package/lib/core/messaging/IC3Config.js +2 -2
  88. package/lib/core/messaging/MessageTags.d.ts +3 -3
  89. package/lib/core/messaging/MessageTags.js +6 -6
  90. package/lib/core/messaging/OmnichannelMessage.d.ts +64 -64
  91. package/lib/core/messaging/OmnichannelMessage.js +51 -51
  92. package/lib/core/messaging/OnNewMessageOptionalParams.d.ts +3 -3
  93. package/lib/core/messaging/OnNewMessageOptionalParams.js +2 -2
  94. package/lib/external/ACSAdapter/AMSFileManager.d.ts +76 -76
  95. package/lib/external/ACSAdapter/AMSFileManager.js +394 -394
  96. package/lib/external/ACSAdapter/AMSFileScanner.d.ts +36 -36
  97. package/lib/external/ACSAdapter/AMSFileScanner.js +275 -275
  98. package/lib/external/ACSAdapter/activityUtils.d.ts +9 -9
  99. package/lib/external/ACSAdapter/activityUtils.js +79 -79
  100. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.d.ts +5 -5
  101. package/lib/external/ACSAdapter/createChannelDataEgressMiddleware.js +33 -33
  102. package/lib/external/ACSAdapter/createFileScanIngressMiddleware.d.ts +2 -2
  103. package/lib/external/ACSAdapter/createFileScanIngressMiddleware.js +95 -95
  104. package/lib/external/ACSAdapter/createFormatEgressTagsMiddleware.d.ts +2 -2
  105. package/lib/external/ACSAdapter/createFormatEgressTagsMiddleware.js +30 -30
  106. package/lib/external/ACSAdapter/createFormatIngressTagsMiddleware.d.ts +2 -2
  107. package/lib/external/ACSAdapter/createFormatIngressTagsMiddleware.js +24 -24
  108. package/lib/external/CallingSDK/ICallingSDKLogData.d.ts +7 -7
  109. package/lib/external/CallingSDK/ICallingSDKLogData.js +2 -2
  110. package/lib/external/IC3Adapter/IChatToken.d.ts +11 -11
  111. package/lib/external/IC3Adapter/IChatToken.js +3 -3
  112. package/lib/external/IC3Adapter/IIC3AdapterOptions.d.ts +22 -22
  113. package/lib/external/IC3Adapter/IIC3AdapterOptions.js +2 -2
  114. package/lib/external/IC3Adapter/INotification.d.ts +6 -6
  115. package/lib/external/IC3Adapter/INotification.js +2 -2
  116. package/lib/external/IC3Adapter/Notification.d.ts +7 -7
  117. package/lib/external/IC3Adapter/Notification.js +14 -14
  118. package/lib/external/IC3Client/IIC3SDKLogData.d.ts +9 -9
  119. package/lib/external/IC3Client/IIC3SDKLogData.js +2 -2
  120. package/lib/external/OCSDK/IOCSDKLogData.d.ts +14 -14
  121. package/lib/external/OCSDK/IOCSDKLogData.js +2 -2
  122. package/lib/index.d.ts +25 -25
  123. package/lib/index.js +34 -34
  124. package/lib/telemetry/AriaTelemetry.d.ts +40 -40
  125. package/lib/telemetry/AriaTelemetry.js +539 -539
  126. package/lib/telemetry/EUDomainNames.d.ts +2 -2
  127. package/lib/telemetry/EUDomainNames.js +16 -16
  128. package/lib/telemetry/EventMarker.d.ts +3 -3
  129. package/lib/telemetry/EventMarker.js +12 -12
  130. package/lib/telemetry/GCCDomainPatterns.d.ts +2 -2
  131. package/lib/telemetry/GCCDomainPatterns.js +7 -7
  132. package/lib/telemetry/LogLevel.d.ts +8 -8
  133. package/lib/telemetry/LogLevel.js +11 -11
  134. package/lib/telemetry/ScenarioMarker.d.ts +21 -21
  135. package/lib/telemetry/ScenarioMarker.js +82 -82
  136. package/lib/telemetry/ScenarioType.d.ts +11 -11
  137. package/lib/telemetry/ScenarioType.js +14 -14
  138. package/lib/telemetry/StopWatch.d.ts +6 -6
  139. package/lib/telemetry/StopWatch.js +14 -14
  140. package/lib/telemetry/TelemetryEvent.d.ts +46 -42
  141. package/lib/telemetry/TelemetryEvent.js +49 -45
  142. package/lib/telemetry/TelemetryEvent.js.map +1 -1
  143. package/lib/telemetry/retrieveCollectorUri.d.ts +2 -2
  144. package/lib/telemetry/retrieveCollectorUri.js +25 -25
  145. package/lib/tsconfig.tsbuildinfo +1977 -1912
  146. package/lib/utils/AMSClientLoadStates.d.ts +6 -0
  147. package/lib/utils/AMSClientLoadStates.js +12 -0
  148. package/lib/utils/AMSClientLoadStates.js.map +1 -0
  149. package/lib/utils/CoreServicesUtils.d.ts +7 -7
  150. package/lib/utils/CoreServicesUtils.js +39 -39
  151. package/lib/utils/CoreServicesUtils.js.map +1 -1
  152. package/lib/utils/WebUtils.d.ts +10 -10
  153. package/lib/utils/WebUtils.js +128 -128
  154. package/lib/utils/chatAdapterCreators.d.ts +20 -20
  155. package/lib/utils/chatAdapterCreators.js +208 -208
  156. package/lib/utils/createOcSDKConfiguration.d.ts +4 -4
  157. package/lib/utils/createOcSDKConfiguration.js +22 -22
  158. package/lib/utils/createOmnichannelMessage.d.ts +11 -11
  159. package/lib/utils/createOmnichannelMessage.js +77 -77
  160. package/lib/utils/createTelemetry.d.ts +3 -3
  161. package/lib/utils/createTelemetry.js +9 -9
  162. package/lib/utils/exceptionSuppressors.d.ts +29 -29
  163. package/lib/utils/exceptionSuppressors.js +49 -49
  164. package/lib/utils/exceptionThrowers.d.ts +119 -119
  165. package/lib/utils/exceptionThrowers.js +137 -137
  166. package/lib/utils/fillMobilePlatformData.d.ts +2 -0
  167. package/lib/utils/fillMobilePlatformData.js +44 -0
  168. package/lib/utils/fillMobilePlatformData.js.map +1 -0
  169. package/lib/utils/fillPlatformData.browser.d.ts +2 -0
  170. package/lib/utils/fillPlatformData.browser.js +8 -0
  171. package/lib/utils/fillPlatformData.browser.js.map +1 -0
  172. package/lib/utils/fillPlatformData.d.ts +2 -0
  173. package/lib/utils/fillPlatformData.js +8 -0
  174. package/lib/utils/fillPlatformData.js.map +1 -0
  175. package/lib/utils/fillWebPlatformData.d.ts +2 -0
  176. package/lib/utils/fillWebPlatformData.js +21 -0
  177. package/lib/utils/fillWebPlatformData.js.map +1 -0
  178. package/lib/utils/internalUtils.d.ts +4 -4
  179. package/lib/utils/internalUtils.js +16 -16
  180. package/lib/utils/libraries.d.ts +12 -12
  181. package/lib/utils/libraries.js +34 -34
  182. package/lib/utils/locale.d.ts +4 -4
  183. package/lib/utils/locale.js +60 -60
  184. package/lib/utils/location.d.ts +7 -7
  185. package/lib/utils/location.js +95 -95
  186. package/lib/utils/loggerUtils.d.ts +15 -15
  187. package/lib/utils/loggerUtils.js +55 -55
  188. package/lib/utils/loggers.d.ts +111 -111
  189. package/lib/utils/loggers.js +501 -501
  190. package/lib/utils/parsers.d.ts +6 -6
  191. package/lib/utils/parsers.js +10 -10
  192. package/lib/utils/platform.d.ts +9 -9
  193. package/lib/utils/platform.js +11 -11
  194. package/lib/utils/setOcUserAgent.d.ts +2 -2
  195. package/lib/utils/setOcUserAgent.js +21 -21
  196. package/lib/utils/sleep.d.ts +2 -2
  197. package/lib/utils/sleep.js +4 -4
  198. package/lib/utils/urlResolvers.d.ts +10 -10
  199. package/lib/utils/urlResolvers.js +64 -64
  200. package/lib/utils/utilities.d.ts +5 -5
  201. package/lib/utils/utilities.js +36 -36
  202. package/lib/validators/OmnichannelConfigValidator.d.ts +3 -3
  203. package/lib/validators/OmnichannelConfigValidator.js +28 -28
  204. package/lib/validators/SDKConfigValidators.d.ts +5 -5
  205. package/lib/validators/SDKConfigValidators.js +48 -48
  206. package/package.json +2 -2
  207. package/CHANGELOG.md +0 -432
@@ -1,61 +1,61 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultLocaleString = exports.defaultLocaleId = exports.getLocaleIdFromString = exports.getLocaleStringFromId = void 0;
4
- var localeList = {
5
- "1025": "ar-sa",
6
- "1026": "bg-bg",
7
- "1027": "ca-es",
8
- "1029": "cs-cz",
9
- "1030": "da-dk",
10
- "1031": "de-de",
11
- "1032": "el-gr",
12
- "1033": "en-us",
13
- "3082": "es-es",
14
- "1061": "et-ee",
15
- "1069": "eu-es",
16
- "1035": "fi-fi",
17
- "1036": "fr-fr",
18
- "1110": "gl-es",
19
- "1037": "he-il",
20
- "1081": "hi-in",
21
- "1050": "hr-hr",
22
- "1038": "hu-hu",
23
- "1057": "id-id",
24
- "1040": "it-it",
25
- "1041": "ja-jp",
26
- "1087": "kk-kz",
27
- "1042": "ko-kr",
28
- "1063": "lt-lt",
29
- "1062": "lv-lv",
30
- "1086": "ms-my",
31
- "1044": "nb-no",
32
- "1043": "nl-nl",
33
- "1045": "pl-pl",
34
- "1046": "pt-br",
35
- "2070": "pt-pt",
36
- "1048": "ro-ro",
37
- "1049": "ru-ru",
38
- "1051": "sk-sk",
39
- "1060": "sl-si",
40
- "3098": "sr-cyrl-cs",
41
- "2074": "sr-latn-cs",
42
- "1053": "sv-se",
43
- "1054": "th-th",
44
- "1055": "tr-tr",
45
- "1058": "uk-ua",
46
- "1066": "vi-vn",
47
- "2052": "zh-cn",
48
- "3076": "zh-hk",
49
- "1028": "zh-tw"
50
- };
51
- exports.getLocaleStringFromId = function (id) {
52
- var localeId = Object.keys(localeList).find(function (key) { return key === id; });
53
- return localeId ? localeList[localeId] : exports.defaultLocaleString;
54
- };
55
- exports.getLocaleIdFromString = function (value) {
56
- var localeId = Object.keys(localeList).find(function (key) { return localeList[key] === value; });
57
- return localeId !== null && localeId !== void 0 ? localeId : exports.defaultLocaleId;
58
- };
59
- exports.defaultLocaleId = "1033";
60
- exports.defaultLocaleString = "en-us";
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultLocaleString = exports.defaultLocaleId = exports.getLocaleIdFromString = exports.getLocaleStringFromId = void 0;
4
+ var localeList = {
5
+ "1025": "ar-sa",
6
+ "1026": "bg-bg",
7
+ "1027": "ca-es",
8
+ "1029": "cs-cz",
9
+ "1030": "da-dk",
10
+ "1031": "de-de",
11
+ "1032": "el-gr",
12
+ "1033": "en-us",
13
+ "3082": "es-es",
14
+ "1061": "et-ee",
15
+ "1069": "eu-es",
16
+ "1035": "fi-fi",
17
+ "1036": "fr-fr",
18
+ "1110": "gl-es",
19
+ "1037": "he-il",
20
+ "1081": "hi-in",
21
+ "1050": "hr-hr",
22
+ "1038": "hu-hu",
23
+ "1057": "id-id",
24
+ "1040": "it-it",
25
+ "1041": "ja-jp",
26
+ "1087": "kk-kz",
27
+ "1042": "ko-kr",
28
+ "1063": "lt-lt",
29
+ "1062": "lv-lv",
30
+ "1086": "ms-my",
31
+ "1044": "nb-no",
32
+ "1043": "nl-nl",
33
+ "1045": "pl-pl",
34
+ "1046": "pt-br",
35
+ "2070": "pt-pt",
36
+ "1048": "ro-ro",
37
+ "1049": "ru-ru",
38
+ "1051": "sk-sk",
39
+ "1060": "sl-si",
40
+ "3098": "sr-cyrl-cs",
41
+ "2074": "sr-latn-cs",
42
+ "1053": "sv-se",
43
+ "1054": "th-th",
44
+ "1055": "tr-tr",
45
+ "1058": "uk-ua",
46
+ "1066": "vi-vn",
47
+ "2052": "zh-cn",
48
+ "3076": "zh-hk",
49
+ "1028": "zh-tw"
50
+ };
51
+ exports.getLocaleStringFromId = function (id) {
52
+ var localeId = Object.keys(localeList).find(function (key) { return key === id; });
53
+ return localeId ? localeList[localeId] : exports.defaultLocaleString;
54
+ };
55
+ exports.getLocaleIdFromString = function (value) {
56
+ var localeId = Object.keys(localeList).find(function (key) { return localeList[key] === value; });
57
+ return localeId !== null && localeId !== void 0 ? localeId : exports.defaultLocaleId;
58
+ };
59
+ exports.defaultLocaleId = "1033";
60
+ exports.defaultLocaleString = "en-us";
61
61
  //# sourceMappingURL=locale.js.map
@@ -1,7 +1,7 @@
1
- import ScenarioMarker from "../telemetry/ScenarioMarker";
2
- interface Location {
3
- latitude: string;
4
- longitude: string;
5
- }
6
- export declare const getLocationInfo: (scenarioMarker: ScenarioMarker, chatId: string, requestId: string) => Promise<Location>;
7
- export {};
1
+ import ScenarioMarker from "../telemetry/ScenarioMarker";
2
+ interface Location {
3
+ latitude: string;
4
+ longitude: string;
5
+ }
6
+ export declare const getLocationInfo: (scenarioMarker: ScenarioMarker, chatId: string, requestId: string) => Promise<Location>;
7
+ export {};
@@ -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;
@@ -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