@5minds/processcube_engine_client
Advanced tools
Comparing version 4.4.0-develop-3e972d-lkjh2vsm to 4.4.0-develop-5d7e55-ll276qw5
@@ -18,2 +18,5 @@ define(["require", "exports", "../Types/index", "./BaseClient"], function (require, exports, index_1, BaseClient_1) { | ||
} | ||
async onActivityError(callback, options) { | ||
return this.createSocketIoSubscription(index_1.socketSettings.paths.activityError, callback, options === null || options === void 0 ? void 0 : options.subscribeOnce, options === null || options === void 0 ? void 0 : options.identity); | ||
} | ||
async onProcessDeployed(callback, options) { | ||
@@ -20,0 +23,0 @@ return this.createSocketIoSubscription(index_1.socketSettings.paths.processDeployed, callback, options === null || options === void 0 ? void 0 : options.subscribeOnce, options === null || options === void 0 ? void 0 : options.identity); |
@@ -6,2 +6,3 @@ define(["require", "exports"], function (require, exports) { | ||
const messagePaths = { | ||
activityError: 'OnActivityError', | ||
activityReached: 'activity_reached', | ||
@@ -8,0 +9,0 @@ activityFinished: 'activity_finished', |
@@ -14,2 +14,6 @@ import { INotificationExtensionAdapter, Identity, Messages, Subscription } from '@5minds/processcube_engine_sdk'; | ||
onReconnected(callback: ClientMessages.CallbackTypes.OnReconnected, subscribeOnce?: boolean, identity?: Identity): Subscription; | ||
onActivityError(callback: Messages.CallbackTypes.OnActivityErrorCallback, options?: { | ||
subscribeOnce?: boolean; | ||
identity?: Identity; | ||
}): Promise<Subscription>; | ||
onProcessDeployed(callback: Messages.CallbackTypes.OnProcessDeployedCallback, options?: { | ||
@@ -16,0 +20,0 @@ subscribeOnce?: boolean; |
@@ -19,2 +19,5 @@ "use strict"; | ||
} | ||
async onActivityError(callback, options) { | ||
return this.createSocketIoSubscription(index_1.socketSettings.paths.activityError, callback, options === null || options === void 0 ? void 0 : options.subscribeOnce, options === null || options === void 0 ? void 0 : options.identity); | ||
} | ||
async onProcessDeployed(callback, options) { | ||
@@ -21,0 +24,0 @@ return this.createSocketIoSubscription(index_1.socketSettings.paths.processDeployed, callback, options === null || options === void 0 ? void 0 : options.subscribeOnce, options === null || options === void 0 ? void 0 : options.identity); |
@@ -5,2 +5,3 @@ "use strict"; | ||
const messagePaths = { | ||
activityError: 'OnActivityError', | ||
activityReached: 'activity_reached', | ||
@@ -7,0 +8,0 @@ activityFinished: 'activity_finished', |
@@ -8,2 +8,3 @@ import { CronjobEventMessage, EventMessage, ExternalTaskCreatedMessage, ExternalTaskLockedMessage, ExternalTaskUnlockedMessage, ProcessDeploymentMessage, ProcessInstancesDeletedMessage, ProcessIsExecutableChangedMessage, UserTaskFinishedMessage } from '@5minds/processcube_engine_sdk'; | ||
export declare type OnReconnected = (attempt: number) => void | Promise<void>; | ||
export declare type OnActivityErrorCallback = (activityError: EventMessage) => void | Promise<void>; | ||
export declare type OnProcessDeployedCallback = (message: ProcessDeploymentMessage) => void | Promise<void>; | ||
@@ -10,0 +11,0 @@ export declare type OnProcessInstancesDeletedCallback = (message: ProcessInstancesDeletedMessage) => void | Promise<void>; |
export declare const socketSettings: { | ||
namespace: string; | ||
paths: { | ||
activityError: string; | ||
activityReached: string; | ||
@@ -5,0 +6,0 @@ activityFinished: string; |
{ | ||
"name": "@5minds/processcube_engine_client", | ||
"version": "4.4.0-develop-3e972d-lkjh2vsm", | ||
"version": "4.4.0-develop-5d7e55-ll276qw5", | ||
"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-develop-da6d82-lkjgvtei", | ||
"@5minds/processcube_engine_sdk": "4.0.0-develop-3065a7-lks764xl", | ||
"@types/socket.io": "^2.1.13", | ||
"@types/socket.io-client": "^1.4.36", | ||
"cross-fetch": "3.1.6", | ||
"cross-fetch": "3.1.8", | ||
"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
587169
165
7396
+ Added@5minds/processcube_engine_sdk@4.0.0-develop-3065a7-lks764xl(transitive)
+ Addedcross-fetch@3.1.8(transitive)
- Removed@5minds/processcube_engine_sdk@4.0.0-develop-da6d82-lkjgvtei(transitive)
- Removedcross-fetch@3.1.6(transitive)
Updated@5minds/processcube_engine_sdk@4.0.0-develop-3065a7-lks764xl
Updatedcross-fetch@3.1.8