Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@microsoft/omnichannel-amsclient

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@microsoft/omnichannel-amsclient - npm Package Compare versions

Comparing version 0.1.0-main.5414575 to 0.1.0-main.8285125

2

lib/config.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc