@duraflows/nestjs 5.2.1 → 6.0.0

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.
@@ -1,7 +1,11 @@
1
- import type { WorkflowRuntime, ProcessExpiredWorkflowsResult } from "@duraflows/core";
1
+ import type { FindParkedTimeoutsInput, ProcessExpiredWorkflowsResult, WorkflowInstance, WorkflowRuntime } from "@duraflows/core";
2
2
  export declare class WorkflowTimeoutService {
3
3
  private readonly runtime;
4
4
  constructor(runtime: WorkflowRuntime);
5
5
  processExpiredWorkflows(limit?: number): Promise<ProcessExpiredWorkflowsResult>;
6
+ /** Instances parked after repeated timeout failures, oldest-parked first. */
7
+ findParkedTimeouts(input?: FindParkedTimeoutsInput): Promise<WorkflowInstance[]>;
8
+ /** Clears an instance's timeout retry state so the next sweep retries it. */
9
+ rearmTimeout(workflowInstanceUuid: string): Promise<WorkflowInstance>;
6
10
  }
7
11
  //# sourceMappingURL=workflow-timeout.service.d.ts.map
@@ -23,6 +23,14 @@ let WorkflowTimeoutService = class WorkflowTimeoutService {
23
23
  async processExpiredWorkflows(limit) {
24
24
  return this.runtime.processExpiredWorkflows({ limit });
25
25
  }
26
+ /** Instances parked after repeated timeout failures, oldest-parked first. */
27
+ async findParkedTimeouts(input) {
28
+ return this.runtime.findParkedTimeouts(input);
29
+ }
30
+ /** Clears an instance's timeout retry state so the next sweep retries it. */
31
+ async rearmTimeout(workflowInstanceUuid) {
32
+ return this.runtime.rearmTimeout(workflowInstanceUuid);
33
+ }
26
34
  };
27
35
  exports.WorkflowTimeoutService = WorkflowTimeoutService;
28
36
  exports.WorkflowTimeoutService = WorkflowTimeoutService = __decorate([
@@ -1,7 +1,11 @@
1
- import type { WorkflowRuntime, ProcessExpiredWorkflowsResult } from "@duraflows/core";
1
+ import type { FindParkedTimeoutsInput, ProcessExpiredWorkflowsResult, WorkflowInstance, WorkflowRuntime } from "@duraflows/core";
2
2
  export declare class WorkflowTimeoutService {
3
3
  private readonly runtime;
4
4
  constructor(runtime: WorkflowRuntime);
5
5
  processExpiredWorkflows(limit?: number): Promise<ProcessExpiredWorkflowsResult>;
6
+ /** Instances parked after repeated timeout failures, oldest-parked first. */
7
+ findParkedTimeouts(input?: FindParkedTimeoutsInput): Promise<WorkflowInstance[]>;
8
+ /** Clears an instance's timeout retry state so the next sweep retries it. */
9
+ rearmTimeout(workflowInstanceUuid: string): Promise<WorkflowInstance>;
6
10
  }
7
11
  //# sourceMappingURL=workflow-timeout.service.d.ts.map
@@ -20,6 +20,14 @@ let WorkflowTimeoutService = class WorkflowTimeoutService {
20
20
  async processExpiredWorkflows(limit) {
21
21
  return this.runtime.processExpiredWorkflows({ limit });
22
22
  }
23
+ /** Instances parked after repeated timeout failures, oldest-parked first. */
24
+ async findParkedTimeouts(input) {
25
+ return this.runtime.findParkedTimeouts(input);
26
+ }
27
+ /** Clears an instance's timeout retry state so the next sweep retries it. */
28
+ async rearmTimeout(workflowInstanceUuid) {
29
+ return this.runtime.rearmTimeout(workflowInstanceUuid);
30
+ }
23
31
  };
24
32
  WorkflowTimeoutService = __decorate([
25
33
  Injectable(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duraflows/nestjs",
3
- "version": "5.2.1",
3
+ "version": "6.0.0",
4
4
  "description": "NestJS integration for duraflows: dependency injection, services, optional REST controllers, and @WorkflowCommand decorator for DI-backed command handlers.",
5
5
  "keywords": [
6
6
  "duraflows",
@@ -54,7 +54,7 @@
54
54
  "class-validator": "^0.15.1"
55
55
  },
56
56
  "peerDependencies": {
57
- "@duraflows/core": "^5.2.1",
57
+ "@duraflows/core": "^6.0.0",
58
58
  "@nestjs/common": "^11.0.0 || ^12.0.0",
59
59
  "@nestjs/core": "^11.0.0 || ^12.0.0",
60
60
  "reflect-metadata": "^0.2.0"
@@ -65,7 +65,7 @@
65
65
  "@nestjs/platform-express": "^12.1.0",
66
66
  "@nestjs/testing": "^12.1.0",
67
67
  "reflect-metadata": "^0.2.2",
68
- "@duraflows/core": "5.2.1"
68
+ "@duraflows/core": "6.0.0"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "tsc --build"