@microsoft/omnichannel-chat-sdk
Advanced tools
Comparing version 0.1.1-main.19bda01 to 0.1.1-main.1b11879
@@ -14,2 +14,3 @@ # Changelog | ||
- Add `getConversationDetails` | ||
- Add ability to pass custom `ariaTelemetryKey` | ||
@@ -16,0 +17,0 @@ ### Changed |
@@ -387,5 +387,5 @@ "use strict"; | ||
this.addEventListener(eventName, function (params) { return __awaiter(_this, void 0, void 0, function () { | ||
var body; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
var body, exceptionDetails; | ||
var _a, _b, _c, _d, _e; | ||
return __generator(this, function (_f) { | ||
body = { | ||
@@ -395,8 +395,21 @@ SecondaryChannelType: SecondaryChannelType.Voice, | ||
}; | ||
(_a = this.scenarioMarker) === null || _a === void 0 ? void 0 : _a.startScenario(TelemetryEvent_1.default.OnCallDisconnected, { | ||
CallId: this.callId || '' | ||
}); | ||
try { | ||
(_a = this.callingParams) === null || _a === void 0 ? void 0 : _a.OCClient.makeSecondaryChannelEventRequest((_b = this.callingParams) === null || _b === void 0 ? void 0 : _b.chatToken.requestId, body); | ||
(_b = this.callingParams) === null || _b === void 0 ? void 0 : _b.OCClient.makeSecondaryChannelEventRequest((_c = this.callingParams) === null || _c === void 0 ? void 0 : _c.chatToken.requestId, body); | ||
this.debug && console.debug("[VoiceVideoCallingProxy][onCallDisconnected][makeSecondaryChannelEventRequest]"); | ||
(_d = this.scenarioMarker) === null || _d === void 0 ? void 0 : _d.completeScenario(TelemetryEvent_1.default.OnCallDisconnected, { | ||
CallId: this.callId || '' | ||
}); | ||
} | ||
catch (e) { | ||
console.error("[VoiceVideoCallingProxy][onCallDisconnected][makeSecondaryChannelEventRequest] Failure " + e); | ||
exceptionDetails = { | ||
response: 'OCClientMakeSecondaryChannelEventRequestFailed' | ||
}; | ||
(_e = this.scenarioMarker) === null || _e === void 0 ? void 0 : _e.failScenario(TelemetryEvent_1.default.OnCallDisconnected, { | ||
CallId: this.callId || '', | ||
ExceptionDetails: JSON.stringify(exceptionDetails) | ||
}); | ||
} | ||
@@ -403,0 +416,0 @@ this.clearRemoteVideoElementChildren(); |
declare const ic3ClientVersion = "2021.03.02.1"; | ||
declare const webChatIC3AdapterVersion = "0.1.0-master.92b1505"; | ||
declare const ariaTelemetryKey = "07172c8dd08d4de7a594b5b5cf81e668-92304109-4cd9-41b6-8806-714387b256e8-7337"; | ||
declare const ariaTelemetryKey = "c7655518acf1403f93ff6b9f77942f0a-d01a02fd-6b50-4de3-a566-62eda11f93bc-7083"; | ||
export { ic3ClientVersion, webChatIC3AdapterVersion, ariaTelemetryKey }; |
@@ -8,4 +8,4 @@ "use strict"; | ||
exports.webChatIC3AdapterVersion = webChatIC3AdapterVersion; | ||
var ariaTelemetryKey = '07172c8dd08d4de7a594b5b5cf81e668-92304109-4cd9-41b6-8806-714387b256e8-7337'; | ||
var ariaTelemetryKey = 'c7655518acf1403f93ff6b9f77942f0a-d01a02fd-6b50-4de3-a566-62eda11f93bc-7083'; | ||
exports.ariaTelemetryKey = ariaTelemetryKey; | ||
//# sourceMappingURL=settings.js.map |
@@ -14,2 +14,3 @@ import { AWTEventData } from '../external/aria/webjs/AriaSDK'; | ||
private static _disable; | ||
static initialize(key: string): void; | ||
static setDebug(flag: boolean): void; | ||
@@ -16,0 +17,0 @@ static disable(): void; |
@@ -23,2 +23,7 @@ "use strict"; | ||
} | ||
AriaTelemetry.initialize = function (key) { | ||
/* istanbul ignore next */ | ||
this._debug && console.log("[AriaTelemetry][logger][initialize][custom]"); | ||
AriaTelemetry._logger = AriaSDK_1.AWTLogManager.initialize(key); | ||
}; | ||
/* istanbul ignore next */ | ||
@@ -184,2 +189,3 @@ AriaTelemetry.setDebug = function (flag) { | ||
if (!AriaTelemetry._logger) { | ||
/* istanbul ignore next */ | ||
this._debug && console.log("[AriaTelemetry][logger][initialize]"); | ||
@@ -186,0 +192,0 @@ AriaTelemetry._logger = AriaSDK_1.AWTLogManager.initialize(settings_1.ariaTelemetryKey); |
@@ -12,3 +12,3 @@ declare enum TelemetryEvent { | ||
OnAgentEndSession = "OnAgentEndSession", | ||
UploadFileAttachment = "UpdateFileAttachment", | ||
UploadFileAttachment = "UploadFileAttachment", | ||
DownloadFileAttachment = "DownloadFileAttachment", | ||
@@ -26,3 +26,3 @@ EmailLiveChatTranscript = "EmailLiveChatTranscript", | ||
StopCall = "StopCall", | ||
onCallDisconnected = "onCallDisconnected" | ||
OnCallDisconnected = "OnCallDisconnected" | ||
} | ||
@@ -29,0 +29,0 @@ export declare const startEvent: (event: TelemetryEvent) => string; |
@@ -16,3 +16,3 @@ "use strict"; | ||
TelemetryEvent["OnAgentEndSession"] = "OnAgentEndSession"; | ||
TelemetryEvent["UploadFileAttachment"] = "UpdateFileAttachment"; | ||
TelemetryEvent["UploadFileAttachment"] = "UploadFileAttachment"; | ||
TelemetryEvent["DownloadFileAttachment"] = "DownloadFileAttachment"; | ||
@@ -30,3 +30,3 @@ TelemetryEvent["EmailLiveChatTranscript"] = "EmailLiveChatTranscript"; | ||
TelemetryEvent["StopCall"] = "StopCall"; | ||
TelemetryEvent["onCallDisconnected"] = "onCallDisconnected"; | ||
TelemetryEvent["OnCallDisconnected"] = "OnCallDisconnected"; | ||
})(TelemetryEvent || (TelemetryEvent = {})); | ||
@@ -33,0 +33,0 @@ exports.startEvent = function (event) { |
@@ -37,2 +37,3 @@ "use strict"; | ||
IC3ClientLogger.prototype.useTelemetry = function (telemetry) { | ||
/* istanbul ignore next */ | ||
this.debug && console.log("[IC3ClientLogger][useTelemetry]"); | ||
@@ -94,2 +95,3 @@ this.telemetry = telemetry; | ||
OCSDKLogger.prototype.useTelemetry = function (telemetry) { | ||
/* istanbul ignore next */ | ||
this.debug && console.log("[OCSDKLogger][useTelemetry]"); | ||
@@ -96,0 +98,0 @@ this.telemetry = telemetry; |
{ | ||
"name": "@microsoft/omnichannel-chat-sdk", | ||
"version": "0.1.1-main.19bda01", | ||
"version": "0.1.1-main.1b11879", | ||
"description": "Microsoft Omnichannel Chat SDK", | ||
@@ -5,0 +5,0 @@ "files": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
716855
8854
1