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

@atlas-engine/admin_domain.repository.embedded

Package Overview
Dependencies
Maintainers
4
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlas-engine/admin_domain.repository.embedded - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

70

dist/amd/notification_repository.js

@@ -8,2 +8,40 @@ define(["require", "exports", "@atlas-engine/process_model", "@atlas-engine/admin_domain.contracts"], function (require, exports, process_model_1, admin_domain_contracts_1) {

}
async onProcessDeployed(identity, callback, subscribeOnce) {
return this.createSubscription(admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processDeployed, callback, subscribeOnce);
}
async onProcessUndeployed(identity, callback, subscribeOnce) {
return this.createSubscription(admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processUndeployed, callback, subscribeOnce);
}
onProcessStarted(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processStarted;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessEnded(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processEnded;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessTerminated(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processTerminated;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessError(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processError;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
async onCronjobCreated(identity, callback, subscribeOnce) {

@@ -131,34 +169,2 @@ const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.cronjobCreated;

}
onProcessStarted(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processStarted;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessEnded(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processEnded;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessTerminated(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processTerminated;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessError(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processError;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
async removeSubscription(identity, subscription) {

@@ -165,0 +171,0 @@ await this.eventAggregator.unsubscribe(subscription);

@@ -9,2 +9,40 @@ "use strict";

}
async onProcessDeployed(identity, callback, subscribeOnce) {
return this.createSubscription(admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processDeployed, callback, subscribeOnce);
}
async onProcessUndeployed(identity, callback, subscribeOnce) {
return this.createSubscription(admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processUndeployed, callback, subscribeOnce);
}
onProcessStarted(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processStarted;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessEnded(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processEnded;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessTerminated(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processTerminated;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessError(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processError;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
async onCronjobCreated(identity, callback, subscribeOnce) {

@@ -132,34 +170,2 @@ const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.cronjobCreated;

}
onProcessStarted(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processStarted;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessEnded(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processEnded;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessTerminated(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processTerminated;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
onProcessError(identity, callback, subscribeOnce) {
const eventName = admin_domain_contracts_1.Messages.EventAggregatorSettings.messagePaths.processError;
const sanitationCallback = (message) => {
const sanitizedMessage = this.sanitizeMessage(message, admin_domain_contracts_1.Messages.EventMessage);
callback(sanitizedMessage);
};
return this.createSubscription(eventName, sanitationCallback, subscribeOnce);
}
async removeSubscription(identity, subscription) {

@@ -166,0 +172,0 @@ await this.eventAggregator.unsubscribe(subscription);

@@ -7,2 +7,8 @@ import { IEventAggregator, Subscription } from '@atlas-engine/event_aggregator_contracts';

constructor(eventAggregator: IEventAggregator);
onProcessDeployed(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessDeployedCallback, subscribeOnce?: boolean): Promise<Subscription>;
onProcessUndeployed(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessUndeployedCallback, subscribeOnce?: boolean): Promise<Subscription>;
onProcessStarted(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessStartedCallback, subscribeOnce: boolean): Subscription;
onProcessEnded(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessEndedCallback, subscribeOnce: boolean): Subscription;
onProcessTerminated(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessTerminatedCallback, subscribeOnce: boolean): Subscription;
onProcessError(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessErrorCallback, subscribeOnce: boolean): Subscription;
onCronjobCreated(identity: IIdentity, callback: Messages.CallbackTypes.OnCronjobCreatedCallback, subscribeOnce?: boolean): Promise<Subscription>;

@@ -25,6 +31,2 @@ onCronjobStopped(identity: IIdentity, callback: Messages.CallbackTypes.OnCronjobStoppedCallback, subscribeOnce?: boolean): Promise<Subscription>;

onIntermediateCatchEventFinished(identity: IIdentity, callback: Messages.CallbackTypes.OnIntermediateCatchEventFinishedCallback, subscribeOnce: boolean): Subscription;
onProcessStarted(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessStartedCallback, subscribeOnce: boolean): Subscription;
onProcessEnded(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessEndedCallback, subscribeOnce: boolean): Subscription;
onProcessTerminated(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessTerminatedCallback, subscribeOnce: boolean): Subscription;
onProcessError(identity: IIdentity, callback: Messages.CallbackTypes.OnProcessErrorCallback, subscribeOnce: boolean): Subscription;
removeSubscription(identity: IIdentity, subscription: Subscription): Promise<void>;

@@ -31,0 +33,0 @@ private createSubscription;

{
"name": "@atlas-engine/admin_domain.repository.embedded",
"version": "0.1.3",
"version": "0.1.4",
"description": "Contains the repository that the admin domain uses for accessing the Core- and Runtime- domains in an embedded application.",

@@ -5,0 +5,0 @@ "main": "dist/commonjs/index.js",

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