UNPKG

@nodert-win11/windows.applicationmodel.appservice

Version:

Use the Windows.ApplicationModel.AppService UWP API directly from Node.js

238 lines (184 loc) 6.75 kB
_AppServiceClosedStatus = function () { this.completed = 0; this.canceled = 1; this.resourceLimitsExceeded = 2; this.unknown = 3; } exports.AppServiceClosedStatus = new _AppServiceClosedStatus(); _AppServiceConnectionStatus = function () { this.success = 0; this.appNotInstalled = 1; this.appUnavailable = 2; this.appServiceUnavailable = 3; this.unknown = 4; this.remoteSystemUnavailable = 5; this.remoteSystemNotSupportedByApp = 6; this.notAuthorized = 7; this.authenticationError = 8; this.networkNotAvailable = 9; this.disabledByPolicy = 10; this.webServiceUnavailable = 11; } exports.AppServiceConnectionStatus = new _AppServiceConnectionStatus(); _AppServiceResponseStatus = function () { this.success = 0; this.failure = 1; this.resourceLimitsExceeded = 2; this.unknown = 3; this.remoteSystemUnavailable = 4; this.messageSizeTooLarge = 5; this.appUnavailable = 6; this.authenticationError = 7; this.networkNotAvailable = 8; this.disabledByPolicy = 9; this.webServiceUnavailable = 10; } exports.AppServiceResponseStatus = new _AppServiceResponseStatus(); _StatelessAppServiceResponseStatus = function () { this.success = 0; this.appNotInstalled = 1; this.appUnavailable = 2; this.appServiceUnavailable = 3; this.remoteSystemUnavailable = 4; this.remoteSystemNotSupportedByApp = 5; this.notAuthorized = 6; this.resourceLimitsExceeded = 7; this.messageSizeTooLarge = 8; this.failure = 9; this.unknown = 10; this.authenticationError = 11; this.networkNotAvailable = 12; this.disabledByPolicy = 13; this.webServiceUnavailable = 14; } exports.StatelessAppServiceResponseStatus = new _StatelessAppServiceResponseStatus(); AppServiceCatalog = (function () { var cls = function AppServiceCatalog() { }; cls.findAppServiceProvidersAsync = function findAppServiceProvidersAsync(appServiceName, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="appServiceName" type="String">A param.</param> /// </signature> } return cls; }) (); exports.AppServiceCatalog = AppServiceCatalog; AppServiceClosedEventArgs = (function () { var cls = function AppServiceClosedEventArgs() { this.status = new AppServiceClosedStatus(); }; return cls; }) (); exports.AppServiceClosedEventArgs = AppServiceClosedEventArgs; AppServiceConnection = (function () { var cls = function AppServiceConnection() { this.packageFamilyName = new String(); this.appServiceName = new String(); this.user = new Object(); }; cls.prototype.openAsync = function openAsync(callback) { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.sendMessageAsync = function sendMessageAsync(message, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="message" type="Object">A param.</param> /// </signature> } cls.prototype.openRemoteAsync = function openRemoteAsync(remoteSystemConnectionRequest, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="remoteSystemConnectionRequest" type="Object">A param.</param> /// </signature> } cls.prototype.close = function close() { } cls.sendStatelessMessageAsync = function sendStatelessMessageAsync(connection, connectionRequest, message, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="connection" type="AppServiceConnection">A param.</param> /// <param name="connectionRequest" type="Object">A param.</param> /// <param name="message" type="Object">A param.</param> /// </signature> } cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.AppServiceConnection = AppServiceConnection; AppServiceDeferral = (function () { var cls = function AppServiceDeferral() { }; cls.prototype.complete = function complete() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } return cls; }) (); exports.AppServiceDeferral = AppServiceDeferral; AppServiceRequest = (function () { var cls = function AppServiceRequest() { this.message = new Object(); }; cls.prototype.sendResponseAsync = function sendResponseAsync(message, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="message" type="Object">A param.</param> /// </signature> } return cls; }) (); exports.AppServiceRequest = AppServiceRequest; AppServiceRequestReceivedEventArgs = (function () { var cls = function AppServiceRequestReceivedEventArgs() { this.request = new AppServiceRequest(); }; cls.prototype.getDeferral = function getDeferral() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="AppServiceDeferral" /> /// </signature> return new AppServiceDeferral(); } return cls; }) (); exports.AppServiceRequestReceivedEventArgs = AppServiceRequestReceivedEventArgs; AppServiceResponse = (function () { var cls = function AppServiceResponse() { this.message = new Object(); this.status = new AppServiceResponseStatus(); }; return cls; }) (); exports.AppServiceResponse = AppServiceResponse; AppServiceTriggerDetails = (function () { var cls = function AppServiceTriggerDetails() { this.appServiceConnection = new AppServiceConnection(); this.callerPackageFamilyName = new String(); this.name = new String(); this.isRemoteSystemConnection = new Boolean(); this.callerRemoteConnectionToken = new String(); }; cls.prototype.checkCallerForCapabilityAsync = function checkCallerForCapabilityAsync(capabilityName, callback) { /// <signature> /// <summary>Function summary.</summary> /// <param name="capabilityName" type="String">A param.</param> /// </signature> } return cls; }) (); exports.AppServiceTriggerDetails = AppServiceTriggerDetails; StatelessAppServiceResponse = (function () { var cls = function StatelessAppServiceResponse() { this.message = new Object(); this.status = new StatelessAppServiceResponseStatus(); }; return cls; }) (); exports.StatelessAppServiceResponse = StatelessAppServiceResponse;