@microsoft/omnichannel-amsclient
Advanced tools
Comparing version 0.1.0-main.5414575 to 0.1.0-main.8285125
@@ -1,1 +0,1 @@ | ||
exports.baseUrl = 'https://comms-test.omnichannelengagementhub.com/ams'; exports.sdkVersion = '0.1.0-main.5414575'; | ||
exports.baseUrl = 'https://comms.omnichannelengagementhub.com/ams'; exports.sdkVersion = '0.1.0-main.8285125'; |
@@ -28,5 +28,5 @@ import AMSFileInfo from "./AMSFileInfo"; | ||
postMessage(eventType: PostMessageEventType, eventName: PostMessageEventName, data?: PostMessageRequestData, resolve?: CallableFunction, reject?: CallableFunction): void; | ||
handleEvent(event: MessageEvent<any>): Promise<void>; | ||
handleEvent(event: MessageEvent): Promise<void>; | ||
private loadIframe; | ||
} | ||
export default FramedClient; |
@@ -276,20 +276,30 @@ "use strict"; | ||
if (event.data.eventName === PostMessageEventName_1.default.SkypeTokenAuth) { | ||
this.requestCallbacks[data.requestId].resolve(); | ||
delete this.requestCallbacks[data.requestId]; | ||
if (data.requestId in this.requestCallbacks) { | ||
this.requestCallbacks[data.requestId].resolve(); | ||
delete this.requestCallbacks[data.requestId]; | ||
} | ||
} | ||
else if (event.data.eventName === PostMessageEventName_1.default.CreateObject) { | ||
this.requestCallbacks[data.requestId].resolve(data.response); | ||
delete this.requestCallbacks[data.requestId]; | ||
if (data.requestId in this.requestCallbacks) { | ||
this.requestCallbacks[data.requestId].resolve(data.response); | ||
delete this.requestCallbacks[data.requestId]; | ||
} | ||
} | ||
else if (event.data.eventName === PostMessageEventName_1.default.UploadDocument) { | ||
this.requestCallbacks[data.requestId].resolve(data.response); | ||
delete this.requestCallbacks[data.requestId]; | ||
if (data.requestId in this.requestCallbacks) { | ||
this.requestCallbacks[data.requestId].resolve(data.response); | ||
delete this.requestCallbacks[data.requestId]; | ||
} | ||
} | ||
else if (event.data.eventName === PostMessageEventName_1.default.GetViewStatus) { | ||
this.requestCallbacks[data.requestId].resolve(data.response); | ||
delete this.requestCallbacks[data.requestId]; | ||
if (data.requestId in this.requestCallbacks) { | ||
this.requestCallbacks[data.requestId].resolve(data.response); | ||
delete this.requestCallbacks[data.requestId]; | ||
} | ||
} | ||
else if (event.data.eventName === PostMessageEventName_1.default.GetView) { | ||
this.requestCallbacks[data.requestId].resolve(data.response); | ||
delete this.requestCallbacks[data.requestId]; | ||
if (data.requestId in this.requestCallbacks) { | ||
this.requestCallbacks[data.requestId].resolve(data.response); | ||
delete this.requestCallbacks[data.requestId]; | ||
} | ||
} | ||
@@ -296,0 +306,0 @@ else if (event.data.eventName === PostMessageEventName_1.default.SendTelemetry) { |
declare enum PostMessageEventName { | ||
IframeLoaded = "IframeLoaded", | ||
SkypeTokenAuth = "SkypeTokenAuth", | ||
CreateObject = "CreateObject", | ||
UploadDocument = "UploadDocument", | ||
GetViewStatus = "GetViewStatus", | ||
GetView = "GetView", | ||
SendTelemetry = "SendTelemetry" | ||
IframeLoaded = "AMSIframeLoaded", | ||
SkypeTokenAuth = "AMSSkypeTokenAuth", | ||
CreateObject = "AMSCreateObject", | ||
UploadDocument = "AMSUploadDocument", | ||
GetViewStatus = "AMSGetViewStatus", | ||
GetView = "AMSGetView", | ||
SendTelemetry = "AMSSendTelemetry" | ||
} | ||
export default PostMessageEventName; |
@@ -5,11 +5,11 @@ "use strict"; | ||
(function (PostMessageEventName) { | ||
PostMessageEventName["IframeLoaded"] = "IframeLoaded"; | ||
PostMessageEventName["SkypeTokenAuth"] = "SkypeTokenAuth"; | ||
PostMessageEventName["CreateObject"] = "CreateObject"; | ||
PostMessageEventName["UploadDocument"] = "UploadDocument"; | ||
PostMessageEventName["GetViewStatus"] = "GetViewStatus"; | ||
PostMessageEventName["GetView"] = "GetView"; | ||
PostMessageEventName["SendTelemetry"] = "SendTelemetry"; | ||
PostMessageEventName["IframeLoaded"] = "AMSIframeLoaded"; | ||
PostMessageEventName["SkypeTokenAuth"] = "AMSSkypeTokenAuth"; | ||
PostMessageEventName["CreateObject"] = "AMSCreateObject"; | ||
PostMessageEventName["UploadDocument"] = "AMSUploadDocument"; | ||
PostMessageEventName["GetViewStatus"] = "AMSGetViewStatus"; | ||
PostMessageEventName["GetView"] = "AMSGetView"; | ||
PostMessageEventName["SendTelemetry"] = "AMSSendTelemetry"; | ||
})(PostMessageEventName || (PostMessageEventName = {})); | ||
exports.default = PostMessageEventName; | ||
//# sourceMappingURL=PostMessageEventName.js.map |
{ | ||
"name": "@microsoft/omnichannel-amsclient", | ||
"version": "0.1.0-main.5414575", | ||
"version": "0.1.0-main.8285125", | ||
"description": "Microsoft Omnichannel AMSClient", | ||
@@ -5,0 +5,0 @@ "files": [ |
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
208230
1619