@microsoft/omnichannel-ic3core
Advanced tools
Comparing version
@@ -18,3 +18,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
while (_) try { | ||
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; | ||
@@ -88,3 +88,3 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
return __generator(this, function (_a) { | ||
console.log("AmsHelper.ts uploadDocument(): ".concat(documentId, ", ").concat(file, ", ").concat(ic3Info)); | ||
console.log("AmsHelper.ts uploadDocument(): " + documentId + ", " + file + ", " + ic3Info); | ||
isFileImage = Util_1.default.isDocumentTypeImage(file.type); | ||
@@ -179,3 +179,3 @@ url = ServiceEndpointHelper_1.default.getAmsObjectContentUrl(documentId, ic3Info.RegionGtms, isFileImage); | ||
var _this = this; | ||
console.log("AmsHelper.ts getViewStatus(): ".concat(url, ", ").concat(ic3Info)); | ||
console.log("AmsHelper.ts getViewStatus(): " + url + ", " + ic3Info); | ||
return new Promise(function (resolve) { | ||
@@ -182,0 +182,0 @@ setTimeout(resolve, Constants_1.default.DelayForAms); |
@@ -19,3 +19,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
while (_) try { | ||
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; | ||
@@ -22,0 +22,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -11,7 +11,7 @@ "use strict"; | ||
case HostType_1.default.IFrame: | ||
throw new Error("Framed bridge not implemented for ".concat(protocolInfo.hostType, " in IC3Core")); | ||
throw new Error("Framed bridge not implemented for " + protocolInfo.hostType + " in IC3Core"); | ||
case HostType_1.default.Page: | ||
return new FramelessBridge_1.default(protocolInfo.protocolType); | ||
default: | ||
throw new Error("Client bridge not implemented for ".concat(protocolInfo.hostType, " in IC3Core")); | ||
throw new Error("Client bridge not implemented for " + protocolInfo.hostType + " in IC3Core"); | ||
} | ||
@@ -18,0 +18,0 @@ }; |
@@ -33,3 +33,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
while (_) try { | ||
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; | ||
@@ -36,0 +36,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -260,3 +260,3 @@ "use strict"; | ||
.catch(function (e) { | ||
reject("".concat(FileStatus_1.default.Error, " e")); | ||
reject(FileStatus_1.default.Error + " e"); | ||
}); | ||
@@ -263,0 +263,0 @@ } |
@@ -35,3 +35,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
while (_) try { | ||
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; | ||
@@ -141,3 +141,3 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
_this.logger && _this.logger.log(LogLevel_1.default.WARN, IC3TelemetryEvent_1.default.JoinConversationV1GetThreadRequestFailed, { | ||
Description: "Unable to retrieve thread: ".concat(ex), | ||
Description: "Unable to retrieve thread: " + ex, | ||
ElapsedTimeInMilliseconds: elapsedTimeInMilliseconds, | ||
@@ -144,0 +144,0 @@ EndpointUrl: _this.EndpointUrl, EndpointId: _this.ic3Info.endpointId |
@@ -17,3 +17,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
while (_) try { | ||
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; | ||
@@ -102,3 +102,3 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
(_a = this.logger) === null || _a === void 0 ? void 0 : _a.log(LogLevel_1.default.INFO, IC3TelemetryEvent_1.default.IC3InitializationBegins, { | ||
Description: "Endpoint to poll is ".concat(JSON.stringify(this.ic3Info.RegionGtms.chatService)), | ||
Description: "Endpoint to poll is " + JSON.stringify(this.ic3Info.RegionGtms.chatService), | ||
EndpointUrl: this.ic3Info.RegionGtms.chatService, | ||
@@ -136,3 +136,3 @@ EndpointId: this.ic3Info.endpointId | ||
(_a = this.logger) === null || _a === void 0 ? void 0 : _a.log(LogLevel_1.default.INFO, IC3TelemetryEvent_1.default.IC3StoppedPolling, { | ||
Description: "".concat(initializer, " stopped polling."), | ||
Description: initializer + " stopped polling.", | ||
EndpointUrl: this.ic3Info.RegionGtms.chatService, | ||
@@ -168,3 +168,3 @@ EndpointId: this.ic3Info.endpointId | ||
(_a = this.logger) === null || _a === void 0 ? void 0 : _a.log(LogLevel_1.default.INFO, IC3TelemetryEvent_1.default.IC3EndpointCreationSuccess, { | ||
Description: "IC3 endpoint Id is ".concat(this.ic3Info.endpointId), | ||
Description: "IC3 endpoint Id is " + this.ic3Info.endpointId, | ||
EndpointUrl: this.ic3Info.RegionGtms.chatService, | ||
@@ -347,3 +347,3 @@ EndpointId: this.ic3Info.endpointId | ||
var locationHeader = Utilities_1.default.getResponseHeader(jqXHR, HttpHeaders_1.default.LocationHeader); | ||
this.telemetryMessage = "".concat(request, " failed. Error Code: ").concat(jqXHR.status, "."); | ||
this.telemetryMessage = request + " failed. Error Code: " + jqXHR.status + "."; | ||
this.errorCode = jqXHR.status.toString(); | ||
@@ -383,3 +383,3 @@ this.skipUnsubscribe = true; // never unsubscribe on error since endpoint is already invalid | ||
(_a = this.logger) === null || _a === void 0 ? void 0 : _a.log(LogLevel_1.default.ERROR, IC3TelemetryEvent_1.default.MaxRetryCountReachedForRedirect, { | ||
Description: "Fatal Error. Initialization failed. Maximum retry count reached. Exiting. ".concat(this.telemetryMessage), | ||
Description: "Fatal Error. Initialization failed. Maximum retry count reached. Exiting. " + this.telemetryMessage, | ||
ErrorCode: this.errorCode, | ||
@@ -386,0 +386,0 @@ ExceptionDetails: e, |
@@ -14,3 +14,3 @@ "use strict"; | ||
ClientInfo: Constants_1.default.ClientInfoValue, | ||
ContextId: "tcid=".concat((0, uuid_1.uuidv4)()), | ||
ContextId: "tcid=" + (0, uuid_1.uuidv4)(), | ||
Expires: 0, | ||
@@ -17,0 +17,0 @@ Pragma: Constants_1.default.NoCache, |
@@ -1,2 +0,2 @@ | ||
type MatchingIC3EventIndex = { | ||
declare type MatchingIC3EventIndex = { | ||
previousPollIndex: number; | ||
@@ -3,0 +3,0 @@ newPollIndex: number; |
@@ -1,2 +0,2 @@ | ||
type IIC3GetMessagesRequestQueryParameters = { | ||
declare type IIC3GetMessagesRequestQueryParameters = { | ||
pageSize: number; | ||
@@ -3,0 +3,0 @@ view: string; |
{ | ||
"name": "@microsoft/omnichannel-ic3core", | ||
"version": "0.1.5-main.5cbd0c4", | ||
"version": "0.1.5-main.b40adfa", | ||
"description": "Microsoft Omnichannel IC3Core", | ||
@@ -34,5 +34,5 @@ "files": [ | ||
"dependencies": { | ||
"axios": "^1.7.4", | ||
"axios": "^1.8.2", | ||
"buffer": "^6.0.3" | ||
} | ||
} |
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
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
340876
-4.53%298
-0.33%Updated