@contractspec/example.workflow-system 1.57.0 → 1.59.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.
Files changed (209) hide show
  1. package/dist/approval/approval.enum.d.ts +2 -7
  2. package/dist/approval/approval.enum.d.ts.map +1 -1
  3. package/dist/approval/approval.enum.js +20 -26
  4. package/dist/approval/approval.event.d.ts +108 -114
  5. package/dist/approval/approval.event.d.ts.map +1 -1
  6. package/dist/approval/approval.event.js +103 -210
  7. package/dist/approval/approval.handler.d.ts +17 -18
  8. package/dist/approval/approval.handler.d.ts.map +1 -1
  9. package/dist/approval/approval.operations.d.ts +429 -435
  10. package/dist/approval/approval.operations.d.ts.map +1 -1
  11. package/dist/approval/approval.operations.js +364 -339
  12. package/dist/approval/approval.schema.d.ts +86 -91
  13. package/dist/approval/approval.schema.d.ts.map +1 -1
  14. package/dist/approval/approval.schema.js +71 -107
  15. package/dist/approval/index.d.ts +8 -5
  16. package/dist/approval/index.d.ts.map +1 -0
  17. package/dist/approval/index.js +484 -5
  18. package/dist/browser/approval/approval.enum.js +22 -0
  19. package/dist/browser/approval/approval.event.js +112 -0
  20. package/dist/browser/approval/approval.operations.js +369 -0
  21. package/dist/browser/approval/approval.schema.js +73 -0
  22. package/dist/browser/approval/index.js +484 -0
  23. package/dist/browser/docs/index.js +103 -0
  24. package/dist/browser/docs/workflow-system.docblock.js +103 -0
  25. package/dist/browser/entities/approval.js +119 -0
  26. package/dist/browser/entities/index.js +508 -0
  27. package/dist/browser/entities/instance.js +161 -0
  28. package/dist/browser/entities/step.js +124 -0
  29. package/dist/browser/entities/workflow.js +82 -0
  30. package/dist/browser/example.js +42 -0
  31. package/dist/browser/handlers/index.js +253 -0
  32. package/dist/browser/handlers/workflow.handlers.js +253 -0
  33. package/dist/browser/index.js +3120 -0
  34. package/dist/browser/instance/index.js +677 -0
  35. package/dist/browser/instance/instance.enum.js +15 -0
  36. package/dist/browser/instance/instance.event.js +164 -0
  37. package/dist/browser/instance/instance.handler.js +356 -0
  38. package/dist/browser/instance/instance.operations.js +9 -0
  39. package/dist/browser/instance/instance.schema.js +101 -0
  40. package/dist/browser/presentations/index.js +109 -0
  41. package/dist/browser/seeders/index.js +3 -0
  42. package/dist/browser/shared/index.js +3 -0
  43. package/dist/browser/shared/mock-data.js +11 -0
  44. package/dist/browser/shared/types.js +0 -0
  45. package/dist/browser/state-machine/index.js +6 -0
  46. package/dist/browser/tests/operations.test-spec.js +6 -0
  47. package/dist/browser/ui/WorkflowDashboard.js +3 -0
  48. package/dist/browser/ui/hooks/index.js +50 -0
  49. package/dist/browser/ui/hooks/useWorkflowList.js +50 -0
  50. package/dist/browser/ui/index.js +54 -0
  51. package/dist/browser/ui/renderers/index.js +227 -0
  52. package/dist/browser/ui/renderers/workflow.markdown.js +227 -0
  53. package/dist/browser/workflow/index.js +21 -0
  54. package/dist/browser/workflow/workflow.enum.js +36 -0
  55. package/dist/browser/workflow/workflow.event.js +6 -0
  56. package/dist/browser/workflow/workflow.handler.js +5 -0
  57. package/dist/browser/workflow/workflow.operations.js +8 -0
  58. package/dist/browser/workflow/workflow.schema.js +151 -0
  59. package/dist/browser/workflow-system.capability.js +5 -0
  60. package/dist/browser/workflow-system.feature.js +3 -0
  61. package/dist/docs/index.d.ts +2 -1
  62. package/dist/docs/index.d.ts.map +1 -0
  63. package/dist/docs/index.js +104 -1
  64. package/dist/docs/workflow-system.docblock.d.ts +2 -1
  65. package/dist/docs/workflow-system.docblock.d.ts.map +1 -0
  66. package/dist/docs/workflow-system.docblock.js +45 -56
  67. package/dist/entities/approval.d.ts +35 -40
  68. package/dist/entities/approval.d.ts.map +1 -1
  69. package/dist/entities/approval.js +116 -124
  70. package/dist/entities/index.d.ts +132 -137
  71. package/dist/entities/index.d.ts.map +1 -1
  72. package/dist/entities/index.js +506 -29
  73. package/dist/entities/instance.d.ts +46 -51
  74. package/dist/entities/instance.d.ts.map +1 -1
  75. package/dist/entities/instance.js +158 -164
  76. package/dist/entities/step.d.ts +31 -36
  77. package/dist/entities/step.d.ts.map +1 -1
  78. package/dist/entities/step.js +122 -132
  79. package/dist/entities/workflow.d.ts +22 -27
  80. package/dist/entities/workflow.d.ts.map +1 -1
  81. package/dist/entities/workflow.js +80 -99
  82. package/dist/example.d.ts +2 -6
  83. package/dist/example.d.ts.map +1 -1
  84. package/dist/example.js +41 -55
  85. package/dist/handlers/index.d.ts +2 -2
  86. package/dist/handlers/index.d.ts.map +1 -0
  87. package/dist/handlers/index.js +254 -3
  88. package/dist/handlers/workflow.handlers.d.ts +107 -106
  89. package/dist/handlers/workflow.handlers.d.ts.map +1 -1
  90. package/dist/handlers/workflow.handlers.js +237 -246
  91. package/dist/index.d.ts +15 -26
  92. package/dist/index.d.ts.map +1 -0
  93. package/dist/index.js +3121 -26
  94. package/dist/instance/index.d.ts +8 -5
  95. package/dist/instance/index.d.ts.map +1 -0
  96. package/dist/instance/index.js +677 -5
  97. package/dist/instance/instance.enum.d.ts +1 -6
  98. package/dist/instance/instance.enum.d.ts.map +1 -1
  99. package/dist/instance/instance.enum.js +14 -18
  100. package/dist/instance/instance.event.d.ts +313 -319
  101. package/dist/instance/instance.event.d.ts.map +1 -1
  102. package/dist/instance/instance.event.js +151 -279
  103. package/dist/instance/instance.handler.d.ts +21 -22
  104. package/dist/instance/instance.handler.d.ts.map +1 -1
  105. package/dist/instance/instance.handler.js +352 -89
  106. package/dist/instance/instance.operations.d.ts +819 -825
  107. package/dist/instance/instance.operations.d.ts.map +1 -1
  108. package/dist/instance/instance.operations.js +10 -464
  109. package/dist/instance/instance.schema.d.ts +196 -201
  110. package/dist/instance/instance.schema.d.ts.map +1 -1
  111. package/dist/instance/instance.schema.js +97 -167
  112. package/dist/presentations/index.d.ts +23 -28
  113. package/dist/presentations/index.d.ts.map +1 -1
  114. package/dist/presentations/index.js +104 -334
  115. package/dist/seeders/index.d.ts +4 -8
  116. package/dist/seeders/index.d.ts.map +1 -1
  117. package/dist/seeders/index.js +4 -19
  118. package/dist/shared/index.d.ts +6 -3
  119. package/dist/shared/index.d.ts.map +1 -0
  120. package/dist/shared/index.js +4 -3
  121. package/dist/shared/mock-data.d.ts +16 -16
  122. package/dist/shared/mock-data.d.ts.map +1 -1
  123. package/dist/shared/mock-data.js +11 -11
  124. package/dist/shared/types.d.ts +69 -72
  125. package/dist/shared/types.d.ts.map +1 -1
  126. package/dist/shared/types.js +1 -0
  127. package/dist/state-machine/index.d.ts +92 -95
  128. package/dist/state-machine/index.d.ts.map +1 -1
  129. package/dist/state-machine/index.js +6 -157
  130. package/dist/tests/operations.test-spec.d.ts +4 -9
  131. package/dist/tests/operations.test-spec.d.ts.map +1 -1
  132. package/dist/tests/operations.test-spec.js +7 -123
  133. package/dist/ui/WorkflowDashboard.d.ts +1 -6
  134. package/dist/ui/WorkflowDashboard.d.ts.map +1 -1
  135. package/dist/ui/WorkflowDashboard.js +3 -222
  136. package/dist/ui/hooks/index.d.ts +2 -2
  137. package/dist/ui/hooks/index.d.ts.map +1 -0
  138. package/dist/ui/hooks/index.js +51 -5
  139. package/dist/ui/hooks/useWorkflowList.d.ts +15 -19
  140. package/dist/ui/hooks/useWorkflowList.d.ts.map +1 -1
  141. package/dist/ui/hooks/useWorkflowList.js +47 -51
  142. package/dist/ui/index.d.ts +7 -6
  143. package/dist/ui/index.d.ts.map +1 -0
  144. package/dist/ui/index.js +55 -6
  145. package/dist/ui/renderers/index.d.ts +2 -2
  146. package/dist/ui/renderers/index.d.ts.map +1 -0
  147. package/dist/ui/renderers/index.js +227 -2
  148. package/dist/ui/renderers/workflow.markdown.d.ts +13 -14
  149. package/dist/ui/renderers/workflow.markdown.d.ts.map +1 -1
  150. package/dist/ui/renderers/workflow.markdown.js +223 -229
  151. package/dist/workflow/index.d.ts +8 -5
  152. package/dist/workflow/index.d.ts.map +1 -0
  153. package/dist/workflow/index.js +22 -6
  154. package/dist/workflow/workflow.enum.d.ts +4 -9
  155. package/dist/workflow/workflow.enum.d.ts.map +1 -1
  156. package/dist/workflow/workflow.enum.js +32 -42
  157. package/dist/workflow/workflow.event.d.ts +112 -118
  158. package/dist/workflow/workflow.event.d.ts.map +1 -1
  159. package/dist/workflow/workflow.event.js +7 -150
  160. package/dist/workflow/workflow.handler.d.ts +23 -24
  161. package/dist/workflow/workflow.handler.d.ts.map +1 -1
  162. package/dist/workflow/workflow.handler.js +6 -66
  163. package/dist/workflow/workflow.operations.d.ts +847 -853
  164. package/dist/workflow/workflow.operations.d.ts.map +1 -1
  165. package/dist/workflow/workflow.operations.js +9 -345
  166. package/dist/workflow/workflow.schema.d.ts +229 -234
  167. package/dist/workflow/workflow.schema.d.ts.map +1 -1
  168. package/dist/workflow/workflow.schema.js +146 -243
  169. package/dist/workflow-system.capability.d.ts +3 -8
  170. package/dist/workflow-system.capability.d.ts.map +1 -1
  171. package/dist/workflow-system.capability.js +6 -34
  172. package/dist/workflow-system.feature.d.ts +1 -6
  173. package/dist/workflow-system.feature.d.ts.map +1 -1
  174. package/dist/workflow-system.feature.js +4 -346
  175. package/package.json +415 -93
  176. package/dist/approval/approval.enum.js.map +0 -1
  177. package/dist/approval/approval.event.js.map +0 -1
  178. package/dist/approval/approval.handler.js +0 -72
  179. package/dist/approval/approval.handler.js.map +0 -1
  180. package/dist/approval/approval.operations.js.map +0 -1
  181. package/dist/approval/approval.schema.js.map +0 -1
  182. package/dist/docs/workflow-system.docblock.js.map +0 -1
  183. package/dist/entities/approval.js.map +0 -1
  184. package/dist/entities/index.js.map +0 -1
  185. package/dist/entities/instance.js.map +0 -1
  186. package/dist/entities/step.js.map +0 -1
  187. package/dist/entities/workflow.js.map +0 -1
  188. package/dist/example.js.map +0 -1
  189. package/dist/handlers/workflow.handlers.js.map +0 -1
  190. package/dist/instance/instance.enum.js.map +0 -1
  191. package/dist/instance/instance.event.js.map +0 -1
  192. package/dist/instance/instance.handler.js.map +0 -1
  193. package/dist/instance/instance.operations.js.map +0 -1
  194. package/dist/instance/instance.schema.js.map +0 -1
  195. package/dist/presentations/index.js.map +0 -1
  196. package/dist/seeders/index.js.map +0 -1
  197. package/dist/shared/mock-data.js.map +0 -1
  198. package/dist/state-machine/index.js.map +0 -1
  199. package/dist/tests/operations.test-spec.js.map +0 -1
  200. package/dist/ui/WorkflowDashboard.js.map +0 -1
  201. package/dist/ui/hooks/useWorkflowList.js.map +0 -1
  202. package/dist/ui/renderers/workflow.markdown.js.map +0 -1
  203. package/dist/workflow/workflow.enum.js.map +0 -1
  204. package/dist/workflow/workflow.event.js.map +0 -1
  205. package/dist/workflow/workflow.handler.js.map +0 -1
  206. package/dist/workflow/workflow.operations.js.map +0 -1
  207. package/dist/workflow/workflow.schema.js.map +0 -1
  208. package/dist/workflow-system.capability.js.map +0 -1
  209. package/dist/workflow-system.feature.js.map +0 -1
@@ -1,1024 +1,1018 @@
1
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
-
4
- //#region src/instance/instance.operations.d.ts
5
1
  /**
6
2
  * Start a new workflow instance.
7
3
  */
8
- declare const StartWorkflowContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
9
- workflowKey: {
10
- type: _contractspec_lib_schema0.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- contextData: {
14
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
15
- isOptional: true;
16
- };
17
- referenceId: {
18
- type: _contractspec_lib_schema0.FieldType<string, string>;
19
- isOptional: true;
20
- };
21
- referenceType: {
22
- type: _contractspec_lib_schema0.FieldType<string, string>;
23
- isOptional: true;
24
- };
25
- priority: {
26
- type: _contractspec_lib_schema0.FieldType<number, number>;
27
- isOptional: true;
28
- };
29
- dueAt: {
30
- type: _contractspec_lib_schema0.FieldType<Date, string>;
31
- isOptional: true;
32
- };
33
- }>, _contractspec_lib_schema0.SchemaModel<{
34
- id: {
35
- type: _contractspec_lib_schema0.FieldType<string, string>;
36
- isOptional: false;
37
- };
38
- workflowDefinitionId: {
39
- type: _contractspec_lib_schema0.FieldType<string, string>;
40
- isOptional: false;
41
- };
42
- referenceId: {
43
- type: _contractspec_lib_schema0.FieldType<string, string>;
44
- isOptional: true;
45
- };
46
- referenceType: {
47
- type: _contractspec_lib_schema0.FieldType<string, string>;
48
- isOptional: true;
49
- };
50
- status: {
51
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
52
- isOptional: false;
53
- };
54
- currentStepId: {
55
- type: _contractspec_lib_schema0.FieldType<string, string>;
56
- isOptional: true;
57
- };
58
- contextData: {
59
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
60
- isOptional: true;
61
- };
62
- triggeredBy: {
63
- type: _contractspec_lib_schema0.FieldType<string, string>;
64
- isOptional: false;
65
- };
66
- organizationId: {
67
- type: _contractspec_lib_schema0.FieldType<string, string>;
68
- isOptional: false;
69
- };
70
- priority: {
71
- type: _contractspec_lib_schema0.FieldType<number, number>;
72
- isOptional: false;
73
- };
74
- dueAt: {
75
- type: _contractspec_lib_schema0.FieldType<Date, string>;
76
- isOptional: true;
77
- };
78
- outcome: {
79
- type: _contractspec_lib_schema0.FieldType<string, string>;
80
- isOptional: true;
81
- };
82
- resultData: {
83
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
84
- isOptional: true;
85
- };
86
- errorMessage: {
87
- type: _contractspec_lib_schema0.FieldType<string, string>;
88
- isOptional: true;
89
- };
90
- createdAt: {
91
- type: _contractspec_lib_schema0.FieldType<Date, string>;
92
- isOptional: false;
93
- };
94
- startedAt: {
95
- type: _contractspec_lib_schema0.FieldType<Date, string>;
96
- isOptional: true;
97
- };
98
- completedAt: {
99
- type: _contractspec_lib_schema0.FieldType<Date, string>;
100
- isOptional: true;
101
- };
102
- }>, {
103
- key: string;
104
- version: string;
105
- when: string;
106
- payload: _contractspec_lib_schema0.SchemaModel<{
4
+ export declare const StartWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
5
+ workflowKey: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ contextData: {
10
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
11
+ isOptional: true;
12
+ };
13
+ referenceId: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
15
+ isOptional: true;
16
+ };
17
+ referenceType: {
18
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
19
+ isOptional: true;
20
+ };
21
+ priority: {
22
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
23
+ isOptional: true;
24
+ };
25
+ dueAt: {
26
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
27
+ isOptional: true;
28
+ };
29
+ }>, import("@contractspec/lib.schema").SchemaModel<{
107
30
  id: {
108
- type: _contractspec_lib_schema0.FieldType<string, string>;
109
- isOptional: false;
31
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
32
+ isOptional: false;
110
33
  };
111
34
  workflowDefinitionId: {
112
- type: _contractspec_lib_schema0.FieldType<string, string>;
113
- isOptional: false;
35
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
36
+ isOptional: false;
114
37
  };
115
38
  referenceId: {
116
- type: _contractspec_lib_schema0.FieldType<string, string>;
117
- isOptional: true;
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: true;
118
41
  };
119
42
  referenceType: {
120
- type: _contractspec_lib_schema0.FieldType<string, string>;
121
- isOptional: true;
43
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
44
+ isOptional: true;
122
45
  };
123
46
  status: {
124
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
125
- isOptional: false;
47
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
48
+ isOptional: false;
126
49
  };
127
50
  currentStepId: {
128
- type: _contractspec_lib_schema0.FieldType<string, string>;
129
- isOptional: true;
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
52
+ isOptional: true;
130
53
  };
131
54
  contextData: {
132
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
133
- isOptional: true;
55
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
56
+ isOptional: true;
134
57
  };
135
58
  triggeredBy: {
136
- type: _contractspec_lib_schema0.FieldType<string, string>;
137
- isOptional: false;
59
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
60
+ isOptional: false;
138
61
  };
139
62
  organizationId: {
140
- type: _contractspec_lib_schema0.FieldType<string, string>;
141
- isOptional: false;
63
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
64
+ isOptional: false;
142
65
  };
143
66
  priority: {
144
- type: _contractspec_lib_schema0.FieldType<number, number>;
145
- isOptional: false;
67
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
68
+ isOptional: false;
146
69
  };
147
70
  dueAt: {
148
- type: _contractspec_lib_schema0.FieldType<Date, string>;
149
- isOptional: true;
71
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
72
+ isOptional: true;
150
73
  };
151
74
  outcome: {
152
- type: _contractspec_lib_schema0.FieldType<string, string>;
153
- isOptional: true;
75
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
76
+ isOptional: true;
154
77
  };
155
78
  resultData: {
156
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
157
- isOptional: true;
79
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
80
+ isOptional: true;
158
81
  };
159
82
  errorMessage: {
160
- type: _contractspec_lib_schema0.FieldType<string, string>;
161
- isOptional: true;
83
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
84
+ isOptional: true;
162
85
  };
163
86
  createdAt: {
164
- type: _contractspec_lib_schema0.FieldType<Date, string>;
165
- isOptional: false;
87
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
88
+ isOptional: false;
166
89
  };
167
90
  startedAt: {
168
- type: _contractspec_lib_schema0.FieldType<Date, string>;
169
- isOptional: true;
91
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
92
+ isOptional: true;
170
93
  };
171
94
  completedAt: {
172
- type: _contractspec_lib_schema0.FieldType<Date, string>;
173
- isOptional: true;
95
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
96
+ isOptional: true;
174
97
  };
175
- }>;
98
+ }>, {
99
+ key: string;
100
+ version: string;
101
+ when: string;
102
+ payload: import("@contractspec/lib.schema").SchemaModel<{
103
+ id: {
104
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ workflowDefinitionId: {
108
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
109
+ isOptional: false;
110
+ };
111
+ referenceId: {
112
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
113
+ isOptional: true;
114
+ };
115
+ referenceType: {
116
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
117
+ isOptional: true;
118
+ };
119
+ status: {
120
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
121
+ isOptional: false;
122
+ };
123
+ currentStepId: {
124
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
125
+ isOptional: true;
126
+ };
127
+ contextData: {
128
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
129
+ isOptional: true;
130
+ };
131
+ triggeredBy: {
132
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
133
+ isOptional: false;
134
+ };
135
+ organizationId: {
136
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
137
+ isOptional: false;
138
+ };
139
+ priority: {
140
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
141
+ isOptional: false;
142
+ };
143
+ dueAt: {
144
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
145
+ isOptional: true;
146
+ };
147
+ outcome: {
148
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
149
+ isOptional: true;
150
+ };
151
+ resultData: {
152
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
153
+ isOptional: true;
154
+ };
155
+ errorMessage: {
156
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
157
+ isOptional: true;
158
+ };
159
+ createdAt: {
160
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
161
+ isOptional: false;
162
+ };
163
+ startedAt: {
164
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
165
+ isOptional: true;
166
+ };
167
+ completedAt: {
168
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
169
+ isOptional: true;
170
+ };
171
+ }>;
176
172
  }[]>;
177
173
  /**
178
174
  * Transition workflow to next step.
179
175
  */
180
- declare const TransitionWorkflowContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
181
- instanceId: {
182
- type: _contractspec_lib_schema0.FieldType<string, string>;
183
- isOptional: false;
184
- };
185
- action: {
186
- type: _contractspec_lib_schema0.FieldType<string, string>;
187
- isOptional: false;
188
- };
189
- data: {
190
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
191
- isOptional: true;
192
- };
193
- comment: {
194
- type: _contractspec_lib_schema0.FieldType<string, string>;
195
- isOptional: true;
196
- };
197
- }>, _contractspec_lib_schema0.SchemaModel<{
198
- success: {
199
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
200
- isOptional: false;
201
- };
202
- instance: {
203
- type: _contractspec_lib_schema0.SchemaModel<{
204
- id: {
205
- type: _contractspec_lib_schema0.FieldType<string, string>;
206
- isOptional: false;
207
- };
208
- workflowDefinitionId: {
209
- type: _contractspec_lib_schema0.FieldType<string, string>;
176
+ export declare const TransitionWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
177
+ instanceId: {
178
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
210
179
  isOptional: false;
211
- };
212
- referenceId: {
213
- type: _contractspec_lib_schema0.FieldType<string, string>;
214
- isOptional: true;
215
- };
216
- referenceType: {
217
- type: _contractspec_lib_schema0.FieldType<string, string>;
218
- isOptional: true;
219
- };
220
- status: {
221
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
180
+ };
181
+ action: {
182
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
222
183
  isOptional: false;
223
- };
224
- currentStepId: {
225
- type: _contractspec_lib_schema0.FieldType<string, string>;
184
+ };
185
+ data: {
186
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
226
187
  isOptional: true;
227
- };
228
- contextData: {
229
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
188
+ };
189
+ comment: {
190
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
230
191
  isOptional: true;
231
- };
232
- triggeredBy: {
233
- type: _contractspec_lib_schema0.FieldType<string, string>;
234
- isOptional: false;
235
- };
236
- organizationId: {
237
- type: _contractspec_lib_schema0.FieldType<string, string>;
192
+ };
193
+ }>, import("@contractspec/lib.schema").SchemaModel<{
194
+ success: {
195
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
238
196
  isOptional: false;
239
- };
240
- priority: {
241
- type: _contractspec_lib_schema0.FieldType<number, number>;
197
+ };
198
+ instance: {
199
+ type: import("@contractspec/lib.schema").SchemaModel<{
200
+ id: {
201
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
202
+ isOptional: false;
203
+ };
204
+ workflowDefinitionId: {
205
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
206
+ isOptional: false;
207
+ };
208
+ referenceId: {
209
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
210
+ isOptional: true;
211
+ };
212
+ referenceType: {
213
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
214
+ isOptional: true;
215
+ };
216
+ status: {
217
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
218
+ isOptional: false;
219
+ };
220
+ currentStepId: {
221
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
222
+ isOptional: true;
223
+ };
224
+ contextData: {
225
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
226
+ isOptional: true;
227
+ };
228
+ triggeredBy: {
229
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
230
+ isOptional: false;
231
+ };
232
+ organizationId: {
233
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
234
+ isOptional: false;
235
+ };
236
+ priority: {
237
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
238
+ isOptional: false;
239
+ };
240
+ dueAt: {
241
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
242
+ isOptional: true;
243
+ };
244
+ outcome: {
245
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
246
+ isOptional: true;
247
+ };
248
+ resultData: {
249
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
250
+ isOptional: true;
251
+ };
252
+ errorMessage: {
253
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
254
+ isOptional: true;
255
+ };
256
+ createdAt: {
257
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
258
+ isOptional: false;
259
+ };
260
+ startedAt: {
261
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
262
+ isOptional: true;
263
+ };
264
+ completedAt: {
265
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
266
+ isOptional: true;
267
+ };
268
+ }>;
242
269
  isOptional: false;
243
- };
244
- dueAt: {
245
- type: _contractspec_lib_schema0.FieldType<Date, string>;
246
- isOptional: true;
247
- };
248
- outcome: {
249
- type: _contractspec_lib_schema0.FieldType<string, string>;
270
+ };
271
+ previousStepKey: {
272
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
250
273
  isOptional: true;
251
- };
252
- resultData: {
253
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
274
+ };
275
+ currentStepKey: {
276
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
254
277
  isOptional: true;
255
- };
256
- errorMessage: {
257
- type: _contractspec_lib_schema0.FieldType<string, string>;
278
+ };
279
+ message: {
280
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
258
281
  isOptional: true;
259
- };
260
- createdAt: {
261
- type: _contractspec_lib_schema0.FieldType<Date, string>;
282
+ };
283
+ }>, {
284
+ key: string;
285
+ version: string;
286
+ when: string;
287
+ payload: import("@contractspec/lib.schema").SchemaModel<{
288
+ id: {
289
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
290
+ isOptional: false;
291
+ };
292
+ workflowDefinitionId: {
293
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
294
+ isOptional: false;
295
+ };
296
+ referenceId: {
297
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
298
+ isOptional: true;
299
+ };
300
+ referenceType: {
301
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
302
+ isOptional: true;
303
+ };
304
+ status: {
305
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
306
+ isOptional: false;
307
+ };
308
+ currentStepId: {
309
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
310
+ isOptional: true;
311
+ };
312
+ contextData: {
313
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
314
+ isOptional: true;
315
+ };
316
+ triggeredBy: {
317
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
318
+ isOptional: false;
319
+ };
320
+ organizationId: {
321
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
322
+ isOptional: false;
323
+ };
324
+ priority: {
325
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
326
+ isOptional: false;
327
+ };
328
+ dueAt: {
329
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
330
+ isOptional: true;
331
+ };
332
+ outcome: {
333
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
334
+ isOptional: true;
335
+ };
336
+ resultData: {
337
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
338
+ isOptional: true;
339
+ };
340
+ errorMessage: {
341
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
342
+ isOptional: true;
343
+ };
344
+ createdAt: {
345
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
346
+ isOptional: false;
347
+ };
348
+ startedAt: {
349
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
350
+ isOptional: true;
351
+ };
352
+ completedAt: {
353
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
354
+ isOptional: true;
355
+ };
356
+ }>;
357
+ }[]>;
358
+ /**
359
+ * Pause a running workflow.
360
+ */
361
+ export declare const PauseWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
362
+ instanceId: {
363
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
262
364
  isOptional: false;
263
- };
264
- startedAt: {
265
- type: _contractspec_lib_schema0.FieldType<Date, string>;
266
- isOptional: true;
267
- };
268
- completedAt: {
269
- type: _contractspec_lib_schema0.FieldType<Date, string>;
365
+ };
366
+ reason: {
367
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
270
368
  isOptional: true;
271
- };
272
- }>;
273
- isOptional: false;
274
- };
275
- previousStepKey: {
276
- type: _contractspec_lib_schema0.FieldType<string, string>;
277
- isOptional: true;
278
- };
279
- currentStepKey: {
280
- type: _contractspec_lib_schema0.FieldType<string, string>;
281
- isOptional: true;
282
- };
283
- message: {
284
- type: _contractspec_lib_schema0.FieldType<string, string>;
285
- isOptional: true;
286
- };
287
- }>, {
288
- key: string;
289
- version: string;
290
- when: string;
291
- payload: _contractspec_lib_schema0.SchemaModel<{
369
+ };
370
+ }>, import("@contractspec/lib.schema").SchemaModel<{
292
371
  id: {
293
- type: _contractspec_lib_schema0.FieldType<string, string>;
294
- isOptional: false;
372
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
373
+ isOptional: false;
295
374
  };
296
375
  workflowDefinitionId: {
297
- type: _contractspec_lib_schema0.FieldType<string, string>;
298
- isOptional: false;
376
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
377
+ isOptional: false;
299
378
  };
300
379
  referenceId: {
301
- type: _contractspec_lib_schema0.FieldType<string, string>;
302
- isOptional: true;
380
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
381
+ isOptional: true;
303
382
  };
304
383
  referenceType: {
305
- type: _contractspec_lib_schema0.FieldType<string, string>;
306
- isOptional: true;
384
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
385
+ isOptional: true;
307
386
  };
308
387
  status: {
309
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
310
- isOptional: false;
388
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
389
+ isOptional: false;
311
390
  };
312
391
  currentStepId: {
313
- type: _contractspec_lib_schema0.FieldType<string, string>;
314
- isOptional: true;
392
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
393
+ isOptional: true;
315
394
  };
316
395
  contextData: {
317
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
318
- isOptional: true;
396
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
397
+ isOptional: true;
319
398
  };
320
399
  triggeredBy: {
321
- type: _contractspec_lib_schema0.FieldType<string, string>;
322
- isOptional: false;
400
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
401
+ isOptional: false;
323
402
  };
324
403
  organizationId: {
325
- type: _contractspec_lib_schema0.FieldType<string, string>;
326
- isOptional: false;
404
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
405
+ isOptional: false;
327
406
  };
328
407
  priority: {
329
- type: _contractspec_lib_schema0.FieldType<number, number>;
330
- isOptional: false;
408
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
409
+ isOptional: false;
331
410
  };
332
411
  dueAt: {
333
- type: _contractspec_lib_schema0.FieldType<Date, string>;
334
- isOptional: true;
412
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
413
+ isOptional: true;
335
414
  };
336
415
  outcome: {
337
- type: _contractspec_lib_schema0.FieldType<string, string>;
338
- isOptional: true;
416
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
417
+ isOptional: true;
339
418
  };
340
419
  resultData: {
341
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
342
- isOptional: true;
420
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
421
+ isOptional: true;
343
422
  };
344
423
  errorMessage: {
345
- type: _contractspec_lib_schema0.FieldType<string, string>;
346
- isOptional: true;
424
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
425
+ isOptional: true;
347
426
  };
348
427
  createdAt: {
349
- type: _contractspec_lib_schema0.FieldType<Date, string>;
350
- isOptional: false;
428
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
429
+ isOptional: false;
351
430
  };
352
431
  startedAt: {
353
- type: _contractspec_lib_schema0.FieldType<Date, string>;
354
- isOptional: true;
432
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
433
+ isOptional: true;
355
434
  };
356
435
  completedAt: {
357
- type: _contractspec_lib_schema0.FieldType<Date, string>;
358
- isOptional: true;
436
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
437
+ isOptional: true;
359
438
  };
360
- }>;
439
+ }>, {
440
+ key: string;
441
+ version: string;
442
+ when: string;
443
+ payload: import("@contractspec/lib.schema").SchemaModel<{
444
+ id: {
445
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
446
+ isOptional: false;
447
+ };
448
+ workflowDefinitionId: {
449
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
450
+ isOptional: false;
451
+ };
452
+ referenceId: {
453
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
454
+ isOptional: true;
455
+ };
456
+ referenceType: {
457
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
458
+ isOptional: true;
459
+ };
460
+ status: {
461
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
462
+ isOptional: false;
463
+ };
464
+ currentStepId: {
465
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
466
+ isOptional: true;
467
+ };
468
+ contextData: {
469
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
470
+ isOptional: true;
471
+ };
472
+ triggeredBy: {
473
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
474
+ isOptional: false;
475
+ };
476
+ organizationId: {
477
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
478
+ isOptional: false;
479
+ };
480
+ priority: {
481
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
482
+ isOptional: false;
483
+ };
484
+ dueAt: {
485
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
486
+ isOptional: true;
487
+ };
488
+ outcome: {
489
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
490
+ isOptional: true;
491
+ };
492
+ resultData: {
493
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
494
+ isOptional: true;
495
+ };
496
+ errorMessage: {
497
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
498
+ isOptional: true;
499
+ };
500
+ createdAt: {
501
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
502
+ isOptional: false;
503
+ };
504
+ startedAt: {
505
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
506
+ isOptional: true;
507
+ };
508
+ completedAt: {
509
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
510
+ isOptional: true;
511
+ };
512
+ }>;
361
513
  }[]>;
362
514
  /**
363
- * Pause a running workflow.
515
+ * Resume a paused workflow.
364
516
  */
365
- declare const PauseWorkflowContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
366
- instanceId: {
367
- type: _contractspec_lib_schema0.FieldType<string, string>;
368
- isOptional: false;
369
- };
370
- reason: {
371
- type: _contractspec_lib_schema0.FieldType<string, string>;
372
- isOptional: true;
373
- };
374
- }>, _contractspec_lib_schema0.SchemaModel<{
375
- id: {
376
- type: _contractspec_lib_schema0.FieldType<string, string>;
377
- isOptional: false;
378
- };
379
- workflowDefinitionId: {
380
- type: _contractspec_lib_schema0.FieldType<string, string>;
381
- isOptional: false;
382
- };
383
- referenceId: {
384
- type: _contractspec_lib_schema0.FieldType<string, string>;
385
- isOptional: true;
386
- };
387
- referenceType: {
388
- type: _contractspec_lib_schema0.FieldType<string, string>;
389
- isOptional: true;
390
- };
391
- status: {
392
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
393
- isOptional: false;
394
- };
395
- currentStepId: {
396
- type: _contractspec_lib_schema0.FieldType<string, string>;
397
- isOptional: true;
398
- };
399
- contextData: {
400
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
401
- isOptional: true;
402
- };
403
- triggeredBy: {
404
- type: _contractspec_lib_schema0.FieldType<string, string>;
405
- isOptional: false;
406
- };
407
- organizationId: {
408
- type: _contractspec_lib_schema0.FieldType<string, string>;
409
- isOptional: false;
410
- };
411
- priority: {
412
- type: _contractspec_lib_schema0.FieldType<number, number>;
413
- isOptional: false;
414
- };
415
- dueAt: {
416
- type: _contractspec_lib_schema0.FieldType<Date, string>;
417
- isOptional: true;
418
- };
419
- outcome: {
420
- type: _contractspec_lib_schema0.FieldType<string, string>;
421
- isOptional: true;
422
- };
423
- resultData: {
424
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
425
- isOptional: true;
426
- };
427
- errorMessage: {
428
- type: _contractspec_lib_schema0.FieldType<string, string>;
429
- isOptional: true;
430
- };
431
- createdAt: {
432
- type: _contractspec_lib_schema0.FieldType<Date, string>;
433
- isOptional: false;
434
- };
435
- startedAt: {
436
- type: _contractspec_lib_schema0.FieldType<Date, string>;
437
- isOptional: true;
438
- };
439
- completedAt: {
440
- type: _contractspec_lib_schema0.FieldType<Date, string>;
441
- isOptional: true;
442
- };
443
- }>, {
444
- key: string;
445
- version: string;
446
- when: string;
447
- payload: _contractspec_lib_schema0.SchemaModel<{
517
+ export declare const ResumeWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
518
+ instanceId: {
519
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
520
+ isOptional: false;
521
+ };
522
+ reason: {
523
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
524
+ isOptional: true;
525
+ };
526
+ }>, import("@contractspec/lib.schema").SchemaModel<{
448
527
  id: {
449
- type: _contractspec_lib_schema0.FieldType<string, string>;
450
- isOptional: false;
528
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
529
+ isOptional: false;
451
530
  };
452
531
  workflowDefinitionId: {
453
- type: _contractspec_lib_schema0.FieldType<string, string>;
454
- isOptional: false;
532
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
533
+ isOptional: false;
455
534
  };
456
535
  referenceId: {
457
- type: _contractspec_lib_schema0.FieldType<string, string>;
458
- isOptional: true;
536
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
537
+ isOptional: true;
459
538
  };
460
539
  referenceType: {
461
- type: _contractspec_lib_schema0.FieldType<string, string>;
462
- isOptional: true;
540
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
541
+ isOptional: true;
463
542
  };
464
543
  status: {
465
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
466
- isOptional: false;
544
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
545
+ isOptional: false;
467
546
  };
468
547
  currentStepId: {
469
- type: _contractspec_lib_schema0.FieldType<string, string>;
470
- isOptional: true;
548
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
549
+ isOptional: true;
471
550
  };
472
551
  contextData: {
473
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
474
- isOptional: true;
552
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
553
+ isOptional: true;
475
554
  };
476
555
  triggeredBy: {
477
- type: _contractspec_lib_schema0.FieldType<string, string>;
478
- isOptional: false;
556
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
557
+ isOptional: false;
479
558
  };
480
559
  organizationId: {
481
- type: _contractspec_lib_schema0.FieldType<string, string>;
482
- isOptional: false;
560
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
561
+ isOptional: false;
483
562
  };
484
563
  priority: {
485
- type: _contractspec_lib_schema0.FieldType<number, number>;
486
- isOptional: false;
564
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
565
+ isOptional: false;
487
566
  };
488
567
  dueAt: {
489
- type: _contractspec_lib_schema0.FieldType<Date, string>;
490
- isOptional: true;
568
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
569
+ isOptional: true;
491
570
  };
492
571
  outcome: {
493
- type: _contractspec_lib_schema0.FieldType<string, string>;
494
- isOptional: true;
572
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
573
+ isOptional: true;
495
574
  };
496
575
  resultData: {
497
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
498
- isOptional: true;
576
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
577
+ isOptional: true;
499
578
  };
500
579
  errorMessage: {
501
- type: _contractspec_lib_schema0.FieldType<string, string>;
502
- isOptional: true;
580
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
581
+ isOptional: true;
503
582
  };
504
583
  createdAt: {
505
- type: _contractspec_lib_schema0.FieldType<Date, string>;
506
- isOptional: false;
584
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
585
+ isOptional: false;
507
586
  };
508
587
  startedAt: {
509
- type: _contractspec_lib_schema0.FieldType<Date, string>;
510
- isOptional: true;
588
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
589
+ isOptional: true;
511
590
  };
512
591
  completedAt: {
513
- type: _contractspec_lib_schema0.FieldType<Date, string>;
514
- isOptional: true;
592
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
593
+ isOptional: true;
515
594
  };
516
- }>;
595
+ }>, {
596
+ key: string;
597
+ version: string;
598
+ when: string;
599
+ payload: import("@contractspec/lib.schema").SchemaModel<{
600
+ id: {
601
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
602
+ isOptional: false;
603
+ };
604
+ workflowDefinitionId: {
605
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
606
+ isOptional: false;
607
+ };
608
+ referenceId: {
609
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
610
+ isOptional: true;
611
+ };
612
+ referenceType: {
613
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
614
+ isOptional: true;
615
+ };
616
+ status: {
617
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
618
+ isOptional: false;
619
+ };
620
+ currentStepId: {
621
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
622
+ isOptional: true;
623
+ };
624
+ contextData: {
625
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
626
+ isOptional: true;
627
+ };
628
+ triggeredBy: {
629
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
630
+ isOptional: false;
631
+ };
632
+ organizationId: {
633
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
634
+ isOptional: false;
635
+ };
636
+ priority: {
637
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
638
+ isOptional: false;
639
+ };
640
+ dueAt: {
641
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
642
+ isOptional: true;
643
+ };
644
+ outcome: {
645
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
646
+ isOptional: true;
647
+ };
648
+ resultData: {
649
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
650
+ isOptional: true;
651
+ };
652
+ errorMessage: {
653
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
654
+ isOptional: true;
655
+ };
656
+ createdAt: {
657
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
658
+ isOptional: false;
659
+ };
660
+ startedAt: {
661
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
662
+ isOptional: true;
663
+ };
664
+ completedAt: {
665
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
666
+ isOptional: true;
667
+ };
668
+ }>;
517
669
  }[]>;
518
670
  /**
519
- * Resume a paused workflow.
671
+ * Cancel a workflow instance.
520
672
  */
521
- declare const ResumeWorkflowContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
522
- instanceId: {
523
- type: _contractspec_lib_schema0.FieldType<string, string>;
524
- isOptional: false;
525
- };
526
- reason: {
527
- type: _contractspec_lib_schema0.FieldType<string, string>;
528
- isOptional: true;
529
- };
530
- }>, _contractspec_lib_schema0.SchemaModel<{
531
- id: {
532
- type: _contractspec_lib_schema0.FieldType<string, string>;
533
- isOptional: false;
534
- };
535
- workflowDefinitionId: {
536
- type: _contractspec_lib_schema0.FieldType<string, string>;
537
- isOptional: false;
538
- };
539
- referenceId: {
540
- type: _contractspec_lib_schema0.FieldType<string, string>;
541
- isOptional: true;
542
- };
543
- referenceType: {
544
- type: _contractspec_lib_schema0.FieldType<string, string>;
545
- isOptional: true;
546
- };
547
- status: {
548
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
549
- isOptional: false;
550
- };
551
- currentStepId: {
552
- type: _contractspec_lib_schema0.FieldType<string, string>;
553
- isOptional: true;
554
- };
555
- contextData: {
556
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
557
- isOptional: true;
558
- };
559
- triggeredBy: {
560
- type: _contractspec_lib_schema0.FieldType<string, string>;
561
- isOptional: false;
562
- };
563
- organizationId: {
564
- type: _contractspec_lib_schema0.FieldType<string, string>;
565
- isOptional: false;
566
- };
567
- priority: {
568
- type: _contractspec_lib_schema0.FieldType<number, number>;
569
- isOptional: false;
570
- };
571
- dueAt: {
572
- type: _contractspec_lib_schema0.FieldType<Date, string>;
573
- isOptional: true;
574
- };
575
- outcome: {
576
- type: _contractspec_lib_schema0.FieldType<string, string>;
577
- isOptional: true;
578
- };
579
- resultData: {
580
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
581
- isOptional: true;
582
- };
583
- errorMessage: {
584
- type: _contractspec_lib_schema0.FieldType<string, string>;
585
- isOptional: true;
586
- };
587
- createdAt: {
588
- type: _contractspec_lib_schema0.FieldType<Date, string>;
589
- isOptional: false;
590
- };
591
- startedAt: {
592
- type: _contractspec_lib_schema0.FieldType<Date, string>;
593
- isOptional: true;
594
- };
595
- completedAt: {
596
- type: _contractspec_lib_schema0.FieldType<Date, string>;
597
- isOptional: true;
598
- };
599
- }>, {
600
- key: string;
601
- version: string;
602
- when: string;
603
- payload: _contractspec_lib_schema0.SchemaModel<{
673
+ export declare const CancelWorkflowContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
674
+ instanceId: {
675
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
676
+ isOptional: false;
677
+ };
678
+ reason: {
679
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
680
+ isOptional: false;
681
+ };
682
+ }>, import("@contractspec/lib.schema").SchemaModel<{
604
683
  id: {
605
- type: _contractspec_lib_schema0.FieldType<string, string>;
606
- isOptional: false;
684
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
685
+ isOptional: false;
607
686
  };
608
687
  workflowDefinitionId: {
609
- type: _contractspec_lib_schema0.FieldType<string, string>;
610
- isOptional: false;
688
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
689
+ isOptional: false;
611
690
  };
612
691
  referenceId: {
613
- type: _contractspec_lib_schema0.FieldType<string, string>;
614
- isOptional: true;
692
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
693
+ isOptional: true;
615
694
  };
616
695
  referenceType: {
617
- type: _contractspec_lib_schema0.FieldType<string, string>;
618
- isOptional: true;
696
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
697
+ isOptional: true;
619
698
  };
620
699
  status: {
621
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
622
- isOptional: false;
700
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
701
+ isOptional: false;
623
702
  };
624
703
  currentStepId: {
625
- type: _contractspec_lib_schema0.FieldType<string, string>;
626
- isOptional: true;
704
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
705
+ isOptional: true;
627
706
  };
628
707
  contextData: {
629
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
630
- isOptional: true;
708
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
709
+ isOptional: true;
631
710
  };
632
711
  triggeredBy: {
633
- type: _contractspec_lib_schema0.FieldType<string, string>;
634
- isOptional: false;
712
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
713
+ isOptional: false;
635
714
  };
636
715
  organizationId: {
637
- type: _contractspec_lib_schema0.FieldType<string, string>;
638
- isOptional: false;
716
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
717
+ isOptional: false;
639
718
  };
640
719
  priority: {
641
- type: _contractspec_lib_schema0.FieldType<number, number>;
642
- isOptional: false;
720
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
721
+ isOptional: false;
643
722
  };
644
723
  dueAt: {
645
- type: _contractspec_lib_schema0.FieldType<Date, string>;
646
- isOptional: true;
724
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
725
+ isOptional: true;
647
726
  };
648
727
  outcome: {
649
- type: _contractspec_lib_schema0.FieldType<string, string>;
650
- isOptional: true;
728
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
729
+ isOptional: true;
651
730
  };
652
731
  resultData: {
653
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
654
- isOptional: true;
732
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
733
+ isOptional: true;
655
734
  };
656
735
  errorMessage: {
657
- type: _contractspec_lib_schema0.FieldType<string, string>;
658
- isOptional: true;
736
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
737
+ isOptional: true;
659
738
  };
660
739
  createdAt: {
661
- type: _contractspec_lib_schema0.FieldType<Date, string>;
662
- isOptional: false;
740
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
741
+ isOptional: false;
663
742
  };
664
743
  startedAt: {
665
- type: _contractspec_lib_schema0.FieldType<Date, string>;
666
- isOptional: true;
744
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
745
+ isOptional: true;
667
746
  };
668
747
  completedAt: {
669
- type: _contractspec_lib_schema0.FieldType<Date, string>;
670
- isOptional: true;
748
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
749
+ isOptional: true;
671
750
  };
672
- }>;
751
+ }>, {
752
+ key: string;
753
+ version: string;
754
+ when: string;
755
+ payload: import("@contractspec/lib.schema").SchemaModel<{
756
+ id: {
757
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
758
+ isOptional: false;
759
+ };
760
+ workflowDefinitionId: {
761
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
762
+ isOptional: false;
763
+ };
764
+ referenceId: {
765
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
766
+ isOptional: true;
767
+ };
768
+ referenceType: {
769
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
770
+ isOptional: true;
771
+ };
772
+ status: {
773
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
774
+ isOptional: false;
775
+ };
776
+ currentStepId: {
777
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
778
+ isOptional: true;
779
+ };
780
+ contextData: {
781
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
782
+ isOptional: true;
783
+ };
784
+ triggeredBy: {
785
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
786
+ isOptional: false;
787
+ };
788
+ organizationId: {
789
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
790
+ isOptional: false;
791
+ };
792
+ priority: {
793
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
794
+ isOptional: false;
795
+ };
796
+ dueAt: {
797
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
798
+ isOptional: true;
799
+ };
800
+ outcome: {
801
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
802
+ isOptional: true;
803
+ };
804
+ resultData: {
805
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
806
+ isOptional: true;
807
+ };
808
+ errorMessage: {
809
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
810
+ isOptional: true;
811
+ };
812
+ createdAt: {
813
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
814
+ isOptional: false;
815
+ };
816
+ startedAt: {
817
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
818
+ isOptional: true;
819
+ };
820
+ completedAt: {
821
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
822
+ isOptional: true;
823
+ };
824
+ }>;
673
825
  }[]>;
674
826
  /**
675
- * Cancel a workflow instance.
827
+ * List workflow instances.
676
828
  */
677
- declare const CancelWorkflowContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
678
- instanceId: {
679
- type: _contractspec_lib_schema0.FieldType<string, string>;
680
- isOptional: false;
681
- };
682
- reason: {
683
- type: _contractspec_lib_schema0.FieldType<string, string>;
684
- isOptional: false;
685
- };
686
- }>, _contractspec_lib_schema0.SchemaModel<{
687
- id: {
688
- type: _contractspec_lib_schema0.FieldType<string, string>;
689
- isOptional: false;
690
- };
691
- workflowDefinitionId: {
692
- type: _contractspec_lib_schema0.FieldType<string, string>;
693
- isOptional: false;
694
- };
695
- referenceId: {
696
- type: _contractspec_lib_schema0.FieldType<string, string>;
697
- isOptional: true;
698
- };
699
- referenceType: {
700
- type: _contractspec_lib_schema0.FieldType<string, string>;
701
- isOptional: true;
702
- };
703
- status: {
704
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
705
- isOptional: false;
706
- };
707
- currentStepId: {
708
- type: _contractspec_lib_schema0.FieldType<string, string>;
709
- isOptional: true;
710
- };
711
- contextData: {
712
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
713
- isOptional: true;
714
- };
715
- triggeredBy: {
716
- type: _contractspec_lib_schema0.FieldType<string, string>;
717
- isOptional: false;
718
- };
719
- organizationId: {
720
- type: _contractspec_lib_schema0.FieldType<string, string>;
721
- isOptional: false;
722
- };
723
- priority: {
724
- type: _contractspec_lib_schema0.FieldType<number, number>;
725
- isOptional: false;
726
- };
727
- dueAt: {
728
- type: _contractspec_lib_schema0.FieldType<Date, string>;
729
- isOptional: true;
730
- };
731
- outcome: {
732
- type: _contractspec_lib_schema0.FieldType<string, string>;
733
- isOptional: true;
734
- };
735
- resultData: {
736
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
737
- isOptional: true;
738
- };
739
- errorMessage: {
740
- type: _contractspec_lib_schema0.FieldType<string, string>;
741
- isOptional: true;
742
- };
743
- createdAt: {
744
- type: _contractspec_lib_schema0.FieldType<Date, string>;
745
- isOptional: false;
746
- };
747
- startedAt: {
748
- type: _contractspec_lib_schema0.FieldType<Date, string>;
749
- isOptional: true;
750
- };
751
- completedAt: {
752
- type: _contractspec_lib_schema0.FieldType<Date, string>;
753
- isOptional: true;
754
- };
755
- }>, {
756
- key: string;
757
- version: string;
758
- when: string;
759
- payload: _contractspec_lib_schema0.SchemaModel<{
829
+ export declare const ListInstancesContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
830
+ workflowKey: {
831
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
832
+ isOptional: true;
833
+ };
834
+ status: {
835
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
836
+ isOptional: true;
837
+ };
838
+ referenceType: {
839
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
840
+ isOptional: true;
841
+ };
842
+ referenceId: {
843
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
844
+ isOptional: true;
845
+ };
846
+ triggeredBy: {
847
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
848
+ isOptional: true;
849
+ };
850
+ limit: {
851
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
852
+ isOptional: true;
853
+ defaultValue: number;
854
+ };
855
+ offset: {
856
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
857
+ isOptional: true;
858
+ defaultValue: number;
859
+ };
860
+ }>, import("@contractspec/lib.schema").SchemaModel<{
861
+ instances: {
862
+ type: import("@contractspec/lib.schema").SchemaModel<{
863
+ id: {
864
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
865
+ isOptional: false;
866
+ };
867
+ workflowDefinitionId: {
868
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
869
+ isOptional: false;
870
+ };
871
+ referenceId: {
872
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
873
+ isOptional: true;
874
+ };
875
+ referenceType: {
876
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
877
+ isOptional: true;
878
+ };
879
+ status: {
880
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
881
+ isOptional: false;
882
+ };
883
+ currentStepId: {
884
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
885
+ isOptional: true;
886
+ };
887
+ contextData: {
888
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
889
+ isOptional: true;
890
+ };
891
+ triggeredBy: {
892
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
893
+ isOptional: false;
894
+ };
895
+ organizationId: {
896
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
897
+ isOptional: false;
898
+ };
899
+ priority: {
900
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
901
+ isOptional: false;
902
+ };
903
+ dueAt: {
904
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
905
+ isOptional: true;
906
+ };
907
+ outcome: {
908
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
909
+ isOptional: true;
910
+ };
911
+ resultData: {
912
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
913
+ isOptional: true;
914
+ };
915
+ errorMessage: {
916
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
917
+ isOptional: true;
918
+ };
919
+ createdAt: {
920
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
921
+ isOptional: false;
922
+ };
923
+ startedAt: {
924
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
925
+ isOptional: true;
926
+ };
927
+ completedAt: {
928
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
929
+ isOptional: true;
930
+ };
931
+ }>;
932
+ isArray: true;
933
+ isOptional: false;
934
+ };
935
+ total: {
936
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
937
+ isOptional: false;
938
+ };
939
+ }>, undefined>;
940
+ /**
941
+ * Get a single workflow instance.
942
+ */
943
+ export declare const GetInstanceContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
944
+ instanceId: {
945
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
946
+ isOptional: false;
947
+ };
948
+ }>, import("@contractspec/lib.schema").SchemaModel<{
760
949
  id: {
761
- type: _contractspec_lib_schema0.FieldType<string, string>;
762
- isOptional: false;
950
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
951
+ isOptional: false;
763
952
  };
764
953
  workflowDefinitionId: {
765
- type: _contractspec_lib_schema0.FieldType<string, string>;
766
- isOptional: false;
954
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
955
+ isOptional: false;
767
956
  };
768
957
  referenceId: {
769
- type: _contractspec_lib_schema0.FieldType<string, string>;
770
- isOptional: true;
958
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
959
+ isOptional: true;
771
960
  };
772
961
  referenceType: {
773
- type: _contractspec_lib_schema0.FieldType<string, string>;
774
- isOptional: true;
962
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
963
+ isOptional: true;
775
964
  };
776
965
  status: {
777
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
778
- isOptional: false;
966
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
967
+ isOptional: false;
779
968
  };
780
969
  currentStepId: {
781
- type: _contractspec_lib_schema0.FieldType<string, string>;
782
- isOptional: true;
970
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
971
+ isOptional: true;
783
972
  };
784
973
  contextData: {
785
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
786
- isOptional: true;
974
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
975
+ isOptional: true;
787
976
  };
788
977
  triggeredBy: {
789
- type: _contractspec_lib_schema0.FieldType<string, string>;
790
- isOptional: false;
978
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
979
+ isOptional: false;
791
980
  };
792
981
  organizationId: {
793
- type: _contractspec_lib_schema0.FieldType<string, string>;
794
- isOptional: false;
982
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
983
+ isOptional: false;
795
984
  };
796
985
  priority: {
797
- type: _contractspec_lib_schema0.FieldType<number, number>;
798
- isOptional: false;
986
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
987
+ isOptional: false;
799
988
  };
800
989
  dueAt: {
801
- type: _contractspec_lib_schema0.FieldType<Date, string>;
802
- isOptional: true;
990
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
991
+ isOptional: true;
803
992
  };
804
993
  outcome: {
805
- type: _contractspec_lib_schema0.FieldType<string, string>;
806
- isOptional: true;
994
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
995
+ isOptional: true;
807
996
  };
808
997
  resultData: {
809
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
810
- isOptional: true;
998
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
999
+ isOptional: true;
811
1000
  };
812
1001
  errorMessage: {
813
- type: _contractspec_lib_schema0.FieldType<string, string>;
814
- isOptional: true;
1002
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
1003
+ isOptional: true;
815
1004
  };
816
1005
  createdAt: {
817
- type: _contractspec_lib_schema0.FieldType<Date, string>;
818
- isOptional: false;
1006
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
1007
+ isOptional: false;
819
1008
  };
820
1009
  startedAt: {
821
- type: _contractspec_lib_schema0.FieldType<Date, string>;
822
- isOptional: true;
1010
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
1011
+ isOptional: true;
823
1012
  };
824
1013
  completedAt: {
825
- type: _contractspec_lib_schema0.FieldType<Date, string>;
826
- isOptional: true;
827
- };
828
- }>;
829
- }[]>;
830
- /**
831
- * List workflow instances.
832
- */
833
- declare const ListInstancesContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
834
- workflowKey: {
835
- type: _contractspec_lib_schema0.FieldType<string, string>;
836
- isOptional: true;
837
- };
838
- status: {
839
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
840
- isOptional: true;
841
- };
842
- referenceType: {
843
- type: _contractspec_lib_schema0.FieldType<string, string>;
844
- isOptional: true;
845
- };
846
- referenceId: {
847
- type: _contractspec_lib_schema0.FieldType<string, string>;
848
- isOptional: true;
849
- };
850
- triggeredBy: {
851
- type: _contractspec_lib_schema0.FieldType<string, string>;
852
- isOptional: true;
853
- };
854
- limit: {
855
- type: _contractspec_lib_schema0.FieldType<number, number>;
856
- isOptional: true;
857
- defaultValue: number;
858
- };
859
- offset: {
860
- type: _contractspec_lib_schema0.FieldType<number, number>;
861
- isOptional: true;
862
- defaultValue: number;
863
- };
864
- }>, _contractspec_lib_schema0.SchemaModel<{
865
- instances: {
866
- type: _contractspec_lib_schema0.SchemaModel<{
867
- id: {
868
- type: _contractspec_lib_schema0.FieldType<string, string>;
869
- isOptional: false;
870
- };
871
- workflowDefinitionId: {
872
- type: _contractspec_lib_schema0.FieldType<string, string>;
873
- isOptional: false;
874
- };
875
- referenceId: {
876
- type: _contractspec_lib_schema0.FieldType<string, string>;
877
- isOptional: true;
878
- };
879
- referenceType: {
880
- type: _contractspec_lib_schema0.FieldType<string, string>;
881
- isOptional: true;
882
- };
883
- status: {
884
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
885
- isOptional: false;
886
- };
887
- currentStepId: {
888
- type: _contractspec_lib_schema0.FieldType<string, string>;
889
- isOptional: true;
890
- };
891
- contextData: {
892
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
893
- isOptional: true;
894
- };
895
- triggeredBy: {
896
- type: _contractspec_lib_schema0.FieldType<string, string>;
897
- isOptional: false;
898
- };
899
- organizationId: {
900
- type: _contractspec_lib_schema0.FieldType<string, string>;
901
- isOptional: false;
902
- };
903
- priority: {
904
- type: _contractspec_lib_schema0.FieldType<number, number>;
905
- isOptional: false;
906
- };
907
- dueAt: {
908
- type: _contractspec_lib_schema0.FieldType<Date, string>;
1014
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
909
1015
  isOptional: true;
910
- };
911
- outcome: {
912
- type: _contractspec_lib_schema0.FieldType<string, string>;
913
- isOptional: true;
914
- };
915
- resultData: {
916
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
917
- isOptional: true;
918
- };
919
- errorMessage: {
920
- type: _contractspec_lib_schema0.FieldType<string, string>;
921
- isOptional: true;
922
- };
923
- createdAt: {
924
- type: _contractspec_lib_schema0.FieldType<Date, string>;
925
- isOptional: false;
926
- };
927
- startedAt: {
928
- type: _contractspec_lib_schema0.FieldType<Date, string>;
929
- isOptional: true;
930
- };
931
- completedAt: {
932
- type: _contractspec_lib_schema0.FieldType<Date, string>;
933
- isOptional: true;
934
- };
935
- }>;
936
- isArray: true;
937
- isOptional: false;
938
- };
939
- total: {
940
- type: _contractspec_lib_schema0.FieldType<number, number>;
941
- isOptional: false;
942
- };
943
- }>, undefined>;
944
- /**
945
- * Get a single workflow instance.
946
- */
947
- declare const GetInstanceContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
948
- instanceId: {
949
- type: _contractspec_lib_schema0.FieldType<string, string>;
950
- isOptional: false;
951
- };
952
- }>, _contractspec_lib_schema0.SchemaModel<{
953
- id: {
954
- type: _contractspec_lib_schema0.FieldType<string, string>;
955
- isOptional: false;
956
- };
957
- workflowDefinitionId: {
958
- type: _contractspec_lib_schema0.FieldType<string, string>;
959
- isOptional: false;
960
- };
961
- referenceId: {
962
- type: _contractspec_lib_schema0.FieldType<string, string>;
963
- isOptional: true;
964
- };
965
- referenceType: {
966
- type: _contractspec_lib_schema0.FieldType<string, string>;
967
- isOptional: true;
968
- };
969
- status: {
970
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
971
- isOptional: false;
972
- };
973
- currentStepId: {
974
- type: _contractspec_lib_schema0.FieldType<string, string>;
975
- isOptional: true;
976
- };
977
- contextData: {
978
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
979
- isOptional: true;
980
- };
981
- triggeredBy: {
982
- type: _contractspec_lib_schema0.FieldType<string, string>;
983
- isOptional: false;
984
- };
985
- organizationId: {
986
- type: _contractspec_lib_schema0.FieldType<string, string>;
987
- isOptional: false;
988
- };
989
- priority: {
990
- type: _contractspec_lib_schema0.FieldType<number, number>;
991
- isOptional: false;
992
- };
993
- dueAt: {
994
- type: _contractspec_lib_schema0.FieldType<Date, string>;
995
- isOptional: true;
996
- };
997
- outcome: {
998
- type: _contractspec_lib_schema0.FieldType<string, string>;
999
- isOptional: true;
1000
- };
1001
- resultData: {
1002
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
1003
- isOptional: true;
1004
- };
1005
- errorMessage: {
1006
- type: _contractspec_lib_schema0.FieldType<string, string>;
1007
- isOptional: true;
1008
- };
1009
- createdAt: {
1010
- type: _contractspec_lib_schema0.FieldType<Date, string>;
1011
- isOptional: false;
1012
- };
1013
- startedAt: {
1014
- type: _contractspec_lib_schema0.FieldType<Date, string>;
1015
- isOptional: true;
1016
- };
1017
- completedAt: {
1018
- type: _contractspec_lib_schema0.FieldType<Date, string>;
1019
- isOptional: true;
1020
- };
1016
+ };
1021
1017
  }>, undefined>;
1022
- //#endregion
1023
- export { CancelWorkflowContract, GetInstanceContract, ListInstancesContract, PauseWorkflowContract, ResumeWorkflowContract, StartWorkflowContract, TransitionWorkflowContract };
1024
1018
  //# sourceMappingURL=instance.operations.d.ts.map