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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codehooks-js",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "type": "module",
5
5
  "description": "Codehooks.io official library - provides express.JS like syntax",
6
6
  "main": "index.js",
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
- listSteps(filter: any): Promise<any[]>;
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
- listSteps(filter: any): Promise<any[]>;
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
@@ -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 listSteps(filter) {
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();