@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,356 +1,350 @@
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.event.d.ts
5
1
  /**
6
2
  * InstanceStartedEvent - A new workflow instance has been started.
7
3
  */
8
- declare const InstanceStartedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
9
- instanceId: {
10
- type: _contractspec_lib_schema0.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- workflowId: {
14
- type: _contractspec_lib_schema0.FieldType<string, string>;
15
- isOptional: false;
16
- };
17
- workflowKey: {
18
- type: _contractspec_lib_schema0.FieldType<string, string>;
19
- isOptional: false;
20
- };
21
- status: {
22
- type: _contractspec_lib_schema0.FieldType<string, string>;
23
- isOptional: false;
24
- };
25
- referenceId: {
26
- type: _contractspec_lib_schema0.FieldType<string, string>;
27
- isOptional: true;
28
- };
29
- referenceType: {
30
- type: _contractspec_lib_schema0.FieldType<string, string>;
31
- isOptional: true;
32
- };
33
- triggeredBy: {
34
- type: _contractspec_lib_schema0.FieldType<string, string>;
35
- isOptional: false;
36
- };
37
- organizationId: {
38
- type: _contractspec_lib_schema0.FieldType<string, string>;
39
- isOptional: false;
40
- };
41
- timestamp: {
42
- type: _contractspec_lib_schema0.FieldType<Date, string>;
43
- isOptional: false;
44
- };
4
+ export declare const InstanceStartedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
5
+ instanceId: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ workflowId: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ workflowKey: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ status: {
18
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ referenceId: {
22
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
23
+ isOptional: true;
24
+ };
25
+ referenceType: {
26
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
27
+ isOptional: true;
28
+ };
29
+ triggeredBy: {
30
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
31
+ isOptional: false;
32
+ };
33
+ organizationId: {
34
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
35
+ isOptional: false;
36
+ };
37
+ timestamp: {
38
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
39
+ isOptional: false;
40
+ };
45
41
  }>>;
46
42
  /**
47
43
  * StepEnteredEvent - A workflow instance has entered a new step.
48
44
  */
49
- declare const StepEnteredEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
50
- instanceId: {
51
- type: _contractspec_lib_schema0.FieldType<string, string>;
52
- isOptional: false;
53
- };
54
- workflowId: {
55
- type: _contractspec_lib_schema0.FieldType<string, string>;
56
- isOptional: false;
57
- };
58
- fromStepKey: {
59
- type: _contractspec_lib_schema0.FieldType<string, string>;
60
- isOptional: true;
61
- };
62
- toStepKey: {
63
- type: _contractspec_lib_schema0.FieldType<string, string>;
64
- isOptional: false;
65
- };
66
- action: {
67
- type: _contractspec_lib_schema0.FieldType<string, string>;
68
- isOptional: true;
69
- };
70
- executedBy: {
71
- type: _contractspec_lib_schema0.FieldType<string, string>;
72
- isOptional: false;
73
- };
74
- timestamp: {
75
- type: _contractspec_lib_schema0.FieldType<Date, string>;
76
- isOptional: false;
77
- };
45
+ export declare const StepEnteredEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
46
+ instanceId: {
47
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
48
+ isOptional: false;
49
+ };
50
+ workflowId: {
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
52
+ isOptional: false;
53
+ };
54
+ fromStepKey: {
55
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
56
+ isOptional: true;
57
+ };
58
+ toStepKey: {
59
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
60
+ isOptional: false;
61
+ };
62
+ action: {
63
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
64
+ isOptional: true;
65
+ };
66
+ executedBy: {
67
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
68
+ isOptional: false;
69
+ };
70
+ timestamp: {
71
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
72
+ isOptional: false;
73
+ };
78
74
  }>>;
79
75
  /**
80
76
  * StepExitedEvent - A workflow instance has exited a step.
81
77
  */
82
- declare const StepExitedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
83
- instanceId: {
84
- type: _contractspec_lib_schema0.FieldType<string, string>;
85
- isOptional: false;
86
- };
87
- workflowId: {
88
- type: _contractspec_lib_schema0.FieldType<string, string>;
89
- isOptional: false;
90
- };
91
- fromStepKey: {
92
- type: _contractspec_lib_schema0.FieldType<string, string>;
93
- isOptional: true;
94
- };
95
- toStepKey: {
96
- type: _contractspec_lib_schema0.FieldType<string, string>;
97
- isOptional: false;
98
- };
99
- action: {
100
- type: _contractspec_lib_schema0.FieldType<string, string>;
101
- isOptional: true;
102
- };
103
- executedBy: {
104
- type: _contractspec_lib_schema0.FieldType<string, string>;
105
- isOptional: false;
106
- };
107
- timestamp: {
108
- type: _contractspec_lib_schema0.FieldType<Date, string>;
109
- isOptional: false;
110
- };
78
+ export declare const StepExitedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
79
+ instanceId: {
80
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
81
+ isOptional: false;
82
+ };
83
+ workflowId: {
84
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
85
+ isOptional: false;
86
+ };
87
+ fromStepKey: {
88
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
89
+ isOptional: true;
90
+ };
91
+ toStepKey: {
92
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
93
+ isOptional: false;
94
+ };
95
+ action: {
96
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
97
+ isOptional: true;
98
+ };
99
+ executedBy: {
100
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ timestamp: {
104
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
105
+ isOptional: false;
106
+ };
111
107
  }>>;
112
108
  /**
113
109
  * InstanceCompletedEvent - A workflow instance has completed.
114
110
  */
115
- declare const InstanceCompletedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
116
- instanceId: {
117
- type: _contractspec_lib_schema0.FieldType<string, string>;
118
- isOptional: false;
119
- };
120
- workflowId: {
121
- type: _contractspec_lib_schema0.FieldType<string, string>;
122
- isOptional: false;
123
- };
124
- workflowKey: {
125
- type: _contractspec_lib_schema0.FieldType<string, string>;
126
- isOptional: false;
127
- };
128
- outcome: {
129
- type: _contractspec_lib_schema0.FieldType<string, string>;
130
- isOptional: false;
131
- };
132
- referenceId: {
133
- type: _contractspec_lib_schema0.FieldType<string, string>;
134
- isOptional: true;
135
- };
136
- referenceType: {
137
- type: _contractspec_lib_schema0.FieldType<string, string>;
138
- isOptional: true;
139
- };
140
- duration: {
141
- type: _contractspec_lib_schema0.FieldType<number, number>;
142
- isOptional: false;
143
- };
144
- timestamp: {
145
- type: _contractspec_lib_schema0.FieldType<Date, string>;
146
- isOptional: false;
147
- };
111
+ export declare const InstanceCompletedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
112
+ instanceId: {
113
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
114
+ isOptional: false;
115
+ };
116
+ workflowId: {
117
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
118
+ isOptional: false;
119
+ };
120
+ workflowKey: {
121
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
122
+ isOptional: false;
123
+ };
124
+ outcome: {
125
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
126
+ isOptional: false;
127
+ };
128
+ referenceId: {
129
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
130
+ isOptional: true;
131
+ };
132
+ referenceType: {
133
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
134
+ isOptional: true;
135
+ };
136
+ duration: {
137
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
138
+ isOptional: false;
139
+ };
140
+ timestamp: {
141
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
142
+ isOptional: false;
143
+ };
148
144
  }>>;
149
145
  /**
150
146
  * InstanceCancelledEvent - A workflow instance has been cancelled.
151
147
  */
152
- declare const InstanceCancelledEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
153
- instanceId: {
154
- type: _contractspec_lib_schema0.FieldType<string, string>;
155
- isOptional: false;
156
- };
157
- workflowId: {
158
- type: _contractspec_lib_schema0.FieldType<string, string>;
159
- isOptional: false;
160
- };
161
- workflowKey: {
162
- type: _contractspec_lib_schema0.FieldType<string, string>;
163
- isOptional: false;
164
- };
165
- status: {
166
- type: _contractspec_lib_schema0.FieldType<string, string>;
167
- isOptional: false;
168
- };
169
- referenceId: {
170
- type: _contractspec_lib_schema0.FieldType<string, string>;
171
- isOptional: true;
172
- };
173
- referenceType: {
174
- type: _contractspec_lib_schema0.FieldType<string, string>;
175
- isOptional: true;
176
- };
177
- triggeredBy: {
178
- type: _contractspec_lib_schema0.FieldType<string, string>;
179
- isOptional: false;
180
- };
181
- organizationId: {
182
- type: _contractspec_lib_schema0.FieldType<string, string>;
183
- isOptional: false;
184
- };
185
- timestamp: {
186
- type: _contractspec_lib_schema0.FieldType<Date, string>;
187
- isOptional: false;
188
- };
148
+ export declare const InstanceCancelledEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
149
+ instanceId: {
150
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
151
+ isOptional: false;
152
+ };
153
+ workflowId: {
154
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
155
+ isOptional: false;
156
+ };
157
+ workflowKey: {
158
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ status: {
162
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
163
+ isOptional: false;
164
+ };
165
+ referenceId: {
166
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
167
+ isOptional: true;
168
+ };
169
+ referenceType: {
170
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
171
+ isOptional: true;
172
+ };
173
+ triggeredBy: {
174
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
175
+ isOptional: false;
176
+ };
177
+ organizationId: {
178
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
179
+ isOptional: false;
180
+ };
181
+ timestamp: {
182
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
183
+ isOptional: false;
184
+ };
189
185
  }>>;
190
186
  /**
191
187
  * InstancePausedEvent - A workflow instance has been paused.
192
188
  */
193
- declare const InstancePausedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
194
- instanceId: {
195
- type: _contractspec_lib_schema0.FieldType<string, string>;
196
- isOptional: false;
197
- };
198
- workflowId: {
199
- type: _contractspec_lib_schema0.FieldType<string, string>;
200
- isOptional: false;
201
- };
202
- workflowKey: {
203
- type: _contractspec_lib_schema0.FieldType<string, string>;
204
- isOptional: false;
205
- };
206
- status: {
207
- type: _contractspec_lib_schema0.FieldType<string, string>;
208
- isOptional: false;
209
- };
210
- referenceId: {
211
- type: _contractspec_lib_schema0.FieldType<string, string>;
212
- isOptional: true;
213
- };
214
- referenceType: {
215
- type: _contractspec_lib_schema0.FieldType<string, string>;
216
- isOptional: true;
217
- };
218
- triggeredBy: {
219
- type: _contractspec_lib_schema0.FieldType<string, string>;
220
- isOptional: false;
221
- };
222
- organizationId: {
223
- type: _contractspec_lib_schema0.FieldType<string, string>;
224
- isOptional: false;
225
- };
226
- timestamp: {
227
- type: _contractspec_lib_schema0.FieldType<Date, string>;
228
- isOptional: false;
229
- };
189
+ export declare const InstancePausedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
190
+ instanceId: {
191
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
192
+ isOptional: false;
193
+ };
194
+ workflowId: {
195
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
196
+ isOptional: false;
197
+ };
198
+ workflowKey: {
199
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
200
+ isOptional: false;
201
+ };
202
+ status: {
203
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
204
+ isOptional: false;
205
+ };
206
+ referenceId: {
207
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
208
+ isOptional: true;
209
+ };
210
+ referenceType: {
211
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
212
+ isOptional: true;
213
+ };
214
+ triggeredBy: {
215
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
216
+ isOptional: false;
217
+ };
218
+ organizationId: {
219
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
220
+ isOptional: false;
221
+ };
222
+ timestamp: {
223
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
224
+ isOptional: false;
225
+ };
230
226
  }>>;
231
227
  /**
232
228
  * InstanceResumedEvent - A workflow instance has been resumed.
233
229
  */
234
- declare const InstanceResumedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
235
- instanceId: {
236
- type: _contractspec_lib_schema0.FieldType<string, string>;
237
- isOptional: false;
238
- };
239
- workflowId: {
240
- type: _contractspec_lib_schema0.FieldType<string, string>;
241
- isOptional: false;
242
- };
243
- workflowKey: {
244
- type: _contractspec_lib_schema0.FieldType<string, string>;
245
- isOptional: false;
246
- };
247
- status: {
248
- type: _contractspec_lib_schema0.FieldType<string, string>;
249
- isOptional: false;
250
- };
251
- referenceId: {
252
- type: _contractspec_lib_schema0.FieldType<string, string>;
253
- isOptional: true;
254
- };
255
- referenceType: {
256
- type: _contractspec_lib_schema0.FieldType<string, string>;
257
- isOptional: true;
258
- };
259
- triggeredBy: {
260
- type: _contractspec_lib_schema0.FieldType<string, string>;
261
- isOptional: false;
262
- };
263
- organizationId: {
264
- type: _contractspec_lib_schema0.FieldType<string, string>;
265
- isOptional: false;
266
- };
267
- timestamp: {
268
- type: _contractspec_lib_schema0.FieldType<Date, string>;
269
- isOptional: false;
270
- };
230
+ export declare const InstanceResumedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
231
+ instanceId: {
232
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
233
+ isOptional: false;
234
+ };
235
+ workflowId: {
236
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
237
+ isOptional: false;
238
+ };
239
+ workflowKey: {
240
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
241
+ isOptional: false;
242
+ };
243
+ status: {
244
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
245
+ isOptional: false;
246
+ };
247
+ referenceId: {
248
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
249
+ isOptional: true;
250
+ };
251
+ referenceType: {
252
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
253
+ isOptional: true;
254
+ };
255
+ triggeredBy: {
256
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
257
+ isOptional: false;
258
+ };
259
+ organizationId: {
260
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
261
+ isOptional: false;
262
+ };
263
+ timestamp: {
264
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
265
+ isOptional: false;
266
+ };
271
267
  }>>;
272
268
  /**
273
269
  * InstanceFailedEvent - A workflow instance has failed.
274
270
  */
275
- declare const InstanceFailedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
276
- instanceId: {
277
- type: _contractspec_lib_schema0.FieldType<string, string>;
278
- isOptional: false;
279
- };
280
- workflowId: {
281
- type: _contractspec_lib_schema0.FieldType<string, string>;
282
- isOptional: false;
283
- };
284
- workflowKey: {
285
- type: _contractspec_lib_schema0.FieldType<string, string>;
286
- isOptional: false;
287
- };
288
- status: {
289
- type: _contractspec_lib_schema0.FieldType<string, string>;
290
- isOptional: false;
291
- };
292
- referenceId: {
293
- type: _contractspec_lib_schema0.FieldType<string, string>;
294
- isOptional: true;
295
- };
296
- referenceType: {
297
- type: _contractspec_lib_schema0.FieldType<string, string>;
298
- isOptional: true;
299
- };
300
- triggeredBy: {
301
- type: _contractspec_lib_schema0.FieldType<string, string>;
302
- isOptional: false;
303
- };
304
- organizationId: {
305
- type: _contractspec_lib_schema0.FieldType<string, string>;
306
- isOptional: false;
307
- };
308
- timestamp: {
309
- type: _contractspec_lib_schema0.FieldType<Date, string>;
310
- isOptional: false;
311
- };
271
+ export declare const InstanceFailedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
272
+ instanceId: {
273
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
274
+ isOptional: false;
275
+ };
276
+ workflowId: {
277
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
278
+ isOptional: false;
279
+ };
280
+ workflowKey: {
281
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
282
+ isOptional: false;
283
+ };
284
+ status: {
285
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
286
+ isOptional: false;
287
+ };
288
+ referenceId: {
289
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
290
+ isOptional: true;
291
+ };
292
+ referenceType: {
293
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
294
+ isOptional: true;
295
+ };
296
+ triggeredBy: {
297
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
298
+ isOptional: false;
299
+ };
300
+ organizationId: {
301
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
302
+ isOptional: false;
303
+ };
304
+ timestamp: {
305
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
306
+ isOptional: false;
307
+ };
312
308
  }>>;
313
309
  /**
314
310
  * InstanceTimedOutEvent - A workflow instance has timed out.
315
311
  */
316
- declare const InstanceTimedOutEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
317
- instanceId: {
318
- type: _contractspec_lib_schema0.FieldType<string, string>;
319
- isOptional: false;
320
- };
321
- workflowId: {
322
- type: _contractspec_lib_schema0.FieldType<string, string>;
323
- isOptional: false;
324
- };
325
- workflowKey: {
326
- type: _contractspec_lib_schema0.FieldType<string, string>;
327
- isOptional: false;
328
- };
329
- status: {
330
- type: _contractspec_lib_schema0.FieldType<string, string>;
331
- isOptional: false;
332
- };
333
- referenceId: {
334
- type: _contractspec_lib_schema0.FieldType<string, string>;
335
- isOptional: true;
336
- };
337
- referenceType: {
338
- type: _contractspec_lib_schema0.FieldType<string, string>;
339
- isOptional: true;
340
- };
341
- triggeredBy: {
342
- type: _contractspec_lib_schema0.FieldType<string, string>;
343
- isOptional: false;
344
- };
345
- organizationId: {
346
- type: _contractspec_lib_schema0.FieldType<string, string>;
347
- isOptional: false;
348
- };
349
- timestamp: {
350
- type: _contractspec_lib_schema0.FieldType<Date, string>;
351
- isOptional: false;
352
- };
312
+ export declare const InstanceTimedOutEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
313
+ instanceId: {
314
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
315
+ isOptional: false;
316
+ };
317
+ workflowId: {
318
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
319
+ isOptional: false;
320
+ };
321
+ workflowKey: {
322
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
323
+ isOptional: false;
324
+ };
325
+ status: {
326
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
327
+ isOptional: false;
328
+ };
329
+ referenceId: {
330
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
331
+ isOptional: true;
332
+ };
333
+ referenceType: {
334
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
335
+ isOptional: true;
336
+ };
337
+ triggeredBy: {
338
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
339
+ isOptional: false;
340
+ };
341
+ organizationId: {
342
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
343
+ isOptional: false;
344
+ };
345
+ timestamp: {
346
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
347
+ isOptional: false;
348
+ };
353
349
  }>>;
354
- //#endregion
355
- export { InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceTimedOutEvent, StepEnteredEvent, StepExitedEvent };
356
350
  //# sourceMappingURL=instance.event.d.ts.map