@company-semantics/contracts 0.103.2 → 0.104.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.103.2",
3
+ "version": "0.104.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,6 +18,7 @@ const ALL_STATES: ExecutionState[] = [
18
18
  'completed',
19
19
  'completed_with_rollbacks',
20
20
  'failed_retryable',
21
+ 'failed_exhausted',
21
22
  'failed_terminal',
22
23
  'failed_with_partial_execution',
23
24
  'cancelled',
@@ -25,6 +25,7 @@ export const LIFECYCLE_DECISIONS: DecisionTable = {
25
25
  completed: 'already_confirmed',
26
26
  completed_with_rollbacks: 'already_confirmed',
27
27
  failed_retryable: 'conflict',
28
+ failed_exhausted: 'conflict',
28
29
  failed_terminal: 'conflict',
29
30
  failed_with_partial_execution: 'conflict',
30
31
  undone: 'conflict',
@@ -39,6 +40,7 @@ export const LIFECYCLE_DECISIONS: DecisionTable = {
39
40
  completed: 'conflict',
40
41
  completed_with_rollbacks: 'conflict',
41
42
  failed_retryable: 'conflict',
43
+ failed_exhausted: 'conflict',
42
44
  failed_terminal: 'conflict',
43
45
  failed_with_partial_execution: 'conflict',
44
46
  undone: 'conflict',
@@ -12,6 +12,7 @@
12
12
  * │ │ │ ├──→ completed
13
13
  * │ │ │ ├──→ completed_with_rollbacks
14
14
  * │ │ │ ├──→ failed_retryable ──→ ready (retry)
15
+ * │ │ │ │ └──→ failed_exhausted
15
16
  * │ │ │ ├──→ failed_terminal
16
17
  * │ │ │ ├──→ failed_with_partial_execution
17
18
  * │ │ │ └──→ cancelled
@@ -61,6 +62,7 @@ export type ExecutionState =
61
62
  | 'completed'
62
63
  | 'completed_with_rollbacks'
63
64
  | 'failed_retryable'
65
+ | 'failed_exhausted'
64
66
  | 'failed_terminal'
65
67
  | 'failed_with_partial_execution'
66
68
  | 'cancelled'
@@ -78,7 +80,8 @@ export const VALID_TRANSITIONS: Record<ExecutionState, readonly ExecutionState[]
78
80
  ],
79
81
  completed: ['undone'],
80
82
  completed_with_rollbacks: [],
81
- failed_retryable: ['ready'],
83
+ failed_retryable: ['ready', 'failed_exhausted'],
84
+ failed_exhausted: [],
82
85
  failed_terminal: [],
83
86
  failed_with_partial_execution: [],
84
87
  cancelled: [],