New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@5minds/processcube_engine_client

Package Overview
Dependencies
Maintainers
4
Versions
674
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@5minds/processcube_engine_client - npm Package Compare versions

Comparing version 4.4.0-feature-6f3370-lkv3q6xk to 4.4.0-feature-7d569d-ll3mv2db

4

dist/amd/Clients/EventHttpClient.js

@@ -20,7 +20,5 @@ define(["require", "exports", "@5minds/processcube_engine_sdk", "../Types/index", "./BaseClient", "./Lib/Mappers"], function (require, exports, processcube_engine_sdk_1, index_1, BaseClient_1, Mappers_1) {

}
async triggerMessageEvent(messageName, processModelIds, options) {
async triggerMessageEvent(messageName, options) {
const requestAuthHeaders = this.createRequestAuthHeaders(options === null || options === void 0 ? void 0 : options.identity);
let urlRestPart = index_1.restSettings.paths.triggerMessageEvent.replace(index_1.restSettings.params.eventName, messageName);
const encodedProcessModelIds = processModelIds.map((processModelId) => encodeURIComponent(processModelId));
urlRestPart = index_1.restSettings.paths.triggerMessageEvent.replace(index_1.restSettings.params.processModelIds, encodedProcessModelIds.join(','));
if (options === null || options === void 0 ? void 0 : options.processInstanceId) {

@@ -27,0 +25,0 @@ urlRestPart = `${urlRestPart}?process_instance_id=${options === null || options === void 0 ? void 0 : options.processInstanceId}`;

@@ -34,3 +34,3 @@ define(["require", "exports", "../Types/index", "./BaseClient", "./Lib/Mappers"], function (require, exports, index_1, BaseClient_1, Mappers_1) {

}
async triggerMessageEvent(messageName, processModelIds, options) {
async triggerMessageEvent(messageName, options) {
const requestAuthHeaders = this.createRequestAuthHeaders(options === null || options === void 0 ? void 0 : options.identity);

@@ -37,0 +37,0 @@ let urlRestPart = index_1.restSettings.paths.triggerMessageEvent.replace(index_1.restSettings.params.eventName, messageName);

@@ -144,2 +144,5 @@ define(["require", "exports", "../Types/index", "./BaseClient"], function (require, exports, index_1, BaseClient_1) {

}
async onGatewayFinished(callback, options) {
return this.createSocketIoSubscription(index_1.socketSettings.paths.gatewayFinished, callback, options === null || options === void 0 ? void 0 : options.subscribeOnce, options === null || options === void 0 ? void 0 : options.identity);
}
}

@@ -146,0 +149,0 @@ exports.NotificationHttpClient = NotificationHttpClient;

@@ -36,4 +36,2 @@ define(["require", "exports"], function (require, exports) {

userMetadataKey: ':user_metadata_key',
// Ids of models to catch message
processModelIds: ':process_model_ids',
};

@@ -157,3 +155,3 @@ const paths = {

*/
triggerMessageEvent: `/messages/${params.eventName}/${params.processModelIds}/trigger`,
triggerMessageEvent: `/messages/${params.eventName}/trigger`,
/**

@@ -160,0 +158,0 @@ * Triggers a SignalEvent by its name.

@@ -33,2 +33,3 @@ define(["require", "exports"], function (require, exports) {

flowNodeTimerRemoved: 'OnFlowNodeTimerRemoved',
gatewayFinished: 'OnGatewayFinished',
intermediateThrowEventTriggered: 'intermediate_throw_event_triggered',

@@ -35,0 +36,0 @@ intermediateCatchEventReached: 'intermediate_catch_event_reached',

@@ -11,3 +11,3 @@ import { DataModels, IEventExtensionAdapter, Identity, Messages, Subscription } from '@5minds/processcube_engine_sdk';

}): Promise<EventList>;
triggerMessageEvent<TPayload>(messageName: string, processModelIds: Array<string>, options?: {
triggerMessageEvent<TPayload>(messageName: string, options?: {
processInstanceId?: string;

@@ -14,0 +14,0 @@ payload?: TPayload;

@@ -13,3 +13,3 @@ import { DataModels, IFlowNodeInstanceExtensionAdapter, Identity } from '@5minds/processcube_engine_sdk';

finishUserTask(userTaskInstanceId: string, userTaskResult: DataModels.FlowNodeInstances.UserTaskResult, identity?: Identity): Promise<void>;
triggerMessageEvent<TPayload>(messageName: string, processModelIds: Array<string>, options?: {
triggerMessageEvent<TPayload>(messageName: string, options?: {
processInstanceId?: string;

@@ -16,0 +16,0 @@ payload?: TPayload;

@@ -182,2 +182,6 @@ import { INotificationExtensionAdapter, Identity, Messages, Subscription } from '@5minds/processcube_engine_sdk';

}): Promise<Subscription>;
onGatewayFinished(callback: Messages.CallbackTypes.OnGatewayFinishedCallback, options?: {
subscribeOnce?: boolean;
identity?: Identity;
}): Promise<Subscription>;
}

@@ -23,7 +23,5 @@ "use strict";

}
async triggerMessageEvent(messageName, processModelIds, options) {
async triggerMessageEvent(messageName, options) {
const requestAuthHeaders = this.createRequestAuthHeaders(options === null || options === void 0 ? void 0 : options.identity);
let urlRestPart = index_1.restSettings.paths.triggerMessageEvent.replace(index_1.restSettings.params.eventName, messageName);
const encodedProcessModelIds = processModelIds.map((processModelId) => encodeURIComponent(processModelId));
urlRestPart = index_1.restSettings.paths.triggerMessageEvent.replace(index_1.restSettings.params.processModelIds, encodedProcessModelIds.join(','));
if (options === null || options === void 0 ? void 0 : options.processInstanceId) {

@@ -30,0 +28,0 @@ urlRestPart = `${urlRestPart}?process_instance_id=${options === null || options === void 0 ? void 0 : options.processInstanceId}`;

@@ -36,3 +36,3 @@ "use strict";

}
async triggerMessageEvent(messageName, processModelIds, options) {
async triggerMessageEvent(messageName, options) {
const requestAuthHeaders = this.createRequestAuthHeaders(options === null || options === void 0 ? void 0 : options.identity);

@@ -39,0 +39,0 @@ let urlRestPart = index_1.restSettings.paths.triggerMessageEvent.replace(index_1.restSettings.params.eventName, messageName);

@@ -145,4 +145,7 @@ "use strict";

}
async onGatewayFinished(callback, options) {
return this.createSocketIoSubscription(index_1.socketSettings.paths.gatewayFinished, callback, options === null || options === void 0 ? void 0 : options.subscribeOnce, options === null || options === void 0 ? void 0 : options.identity);
}
}
exports.NotificationHttpClient = NotificationHttpClient;
//# sourceMappingURL=NotificationHttpClient.js.map

@@ -35,4 +35,2 @@ "use strict";

userMetadataKey: ':user_metadata_key',
// Ids of models to catch message
processModelIds: ':process_model_ids',
};

@@ -156,3 +154,3 @@ const paths = {

*/
triggerMessageEvent: `/messages/${params.eventName}/${params.processModelIds}/trigger`,
triggerMessageEvent: `/messages/${params.eventName}/trigger`,
/**

@@ -159,0 +157,0 @@ * Triggers a SignalEvent by its name.

@@ -32,2 +32,3 @@ "use strict";

flowNodeTimerRemoved: 'OnFlowNodeTimerRemoved',
gatewayFinished: 'OnGatewayFinished',
intermediateThrowEventTriggered: 'intermediate_throw_event_triggered',

@@ -34,0 +35,0 @@ intermediateCatchEventReached: 'intermediate_catch_event_reached',

@@ -41,1 +41,2 @@ import { CronjobEventMessage, EventMessage, ExternalTaskCreatedMessage, ExternalTaskLockedMessage, ExternalTaskUnlockedMessage, ProcessDeploymentMessage, ProcessInstancesDeletedMessage, ProcessIsExecutableChangedMessage, UserTaskFinishedMessage } from '@5minds/processcube_engine_sdk';

export declare type OnExternalTaskUnlockedCallback = (externaTask: ExternalTaskUnlockedMessage) => void | Promise<void>;
export declare type OnGatewayFinishedCallback = (gatewayFinished: EventMessage) => void | Promise<void>;

@@ -18,3 +18,2 @@ export declare const restSettings: {

userMetadataKey: string;
processModelIds: string;
};

@@ -21,0 +20,0 @@ paths: {

@@ -31,2 +31,3 @@ export declare const socketSettings: {

flowNodeTimerRemoved: string;
gatewayFinished: string;
intermediateThrowEventTriggered: string;

@@ -33,0 +34,0 @@ intermediateCatchEventReached: string;

{
"name": "@5minds/processcube_engine_client",
"version": "4.4.0-feature-6f3370-lkv3q6xk",
"version": "4.4.0-feature-7d569d-ll3mv2db",
"description": "Contains a typescript based client for accessing the Engine.",

@@ -36,6 +36,6 @@ "main": "dist/commonjs/index.js",

"dependencies": {
"@5minds/processcube_engine_sdk": "4.0.0-feature-928fbc-lkts3am1",
"@types/socket.io": "^2.1.13",
"@5minds/processcube_engine_sdk": "4.0.0-feature-a85089-ll3kadxw",
"@types/socket.io": "^3.0.0",
"@types/socket.io-client": "^1.4.36",
"cross-fetch": "3.1.6",
"cross-fetch": "4.0.0",
"socket.io-client": "2.5.0",

@@ -42,0 +42,0 @@ "uuid": "^9.0.0"

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

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