codehooks-js 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/index.d.ts +1 -1
- package/types/workflow/engine.d.mts +1 -1
- package/workflow/engine.mjs +1 -1
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -77,7 +77,7 @@ declare class Codehooks {
|
|
|
77
77
|
qId: string;
|
|
78
78
|
}>;
|
|
79
79
|
getStepsStatus(id: string): Promise<any>;
|
|
80
|
-
|
|
80
|
+
getInstances(filter: any): Promise<any[]>;
|
|
81
81
|
cancelSteps(id: string): Promise<any>;
|
|
82
82
|
[EventEmitter.captureRejectionSymbol]?<K>(error: Error, event: string | symbol, ...args: any[]): void;
|
|
83
83
|
addListener<K>(eventName: string | symbol, listener: (...args: any[]) => void): any;
|
|
@@ -112,7 +112,7 @@ declare class StepsEngine extends EventEmitter<[never]> {
|
|
|
112
112
|
* @param {Object} filter - Filter criteria for steps workflows
|
|
113
113
|
* @returns {Promise<Array>} List of steps instances
|
|
114
114
|
*/
|
|
115
|
-
|
|
115
|
+
getInstances(filter: any): Promise<any[]>;
|
|
116
116
|
/**
|
|
117
117
|
* Cancel a steps instance
|
|
118
118
|
* @param {string} id - ID of the steps instance to cancel
|
package/workflow/engine.mjs
CHANGED
|
@@ -349,7 +349,7 @@ class StepsEngine extends EventEmitter {
|
|
|
349
349
|
* @param {Object} filter - Filter criteria for steps workflows
|
|
350
350
|
* @returns {Promise<Array>} List of steps instances
|
|
351
351
|
*/
|
|
352
|
-
async
|
|
352
|
+
async getInstances(filter) {
|
|
353
353
|
return new Promise(async (resolve, reject) => {
|
|
354
354
|
const connection = await Datastore.open();
|
|
355
355
|
const states = await connection.find(StepsEngine.collectionName, filter).toArray();
|