@contractspec/example.workflow-system 1.57.0 → 1.58.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,223 +1,218 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
-
3
- //#region src/instance/instance.schema.d.ts
4
1
  /**
5
2
  * A running workflow instance.
6
3
  */
7
- declare const WorkflowInstanceModel: _contractspec_lib_schema0.SchemaModel<{
8
- id: {
9
- type: _contractspec_lib_schema0.FieldType<string, string>;
10
- isOptional: false;
11
- };
12
- workflowDefinitionId: {
13
- type: _contractspec_lib_schema0.FieldType<string, string>;
14
- isOptional: false;
15
- };
16
- referenceId: {
17
- type: _contractspec_lib_schema0.FieldType<string, string>;
18
- isOptional: true;
19
- };
20
- referenceType: {
21
- type: _contractspec_lib_schema0.FieldType<string, string>;
22
- isOptional: true;
23
- };
24
- status: {
25
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
26
- isOptional: false;
27
- };
28
- currentStepId: {
29
- type: _contractspec_lib_schema0.FieldType<string, string>;
30
- isOptional: true;
31
- };
32
- contextData: {
33
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
34
- isOptional: true;
35
- };
36
- triggeredBy: {
37
- type: _contractspec_lib_schema0.FieldType<string, string>;
38
- isOptional: false;
39
- };
40
- organizationId: {
41
- type: _contractspec_lib_schema0.FieldType<string, string>;
42
- isOptional: false;
43
- };
44
- priority: {
45
- type: _contractspec_lib_schema0.FieldType<number, number>;
46
- isOptional: false;
47
- };
48
- dueAt: {
49
- type: _contractspec_lib_schema0.FieldType<Date, string>;
50
- isOptional: true;
51
- };
52
- outcome: {
53
- type: _contractspec_lib_schema0.FieldType<string, string>;
54
- isOptional: true;
55
- };
56
- resultData: {
57
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
58
- isOptional: true;
59
- };
60
- errorMessage: {
61
- type: _contractspec_lib_schema0.FieldType<string, string>;
62
- isOptional: true;
63
- };
64
- createdAt: {
65
- type: _contractspec_lib_schema0.FieldType<Date, string>;
66
- isOptional: false;
67
- };
68
- startedAt: {
69
- type: _contractspec_lib_schema0.FieldType<Date, string>;
70
- isOptional: true;
71
- };
72
- completedAt: {
73
- type: _contractspec_lib_schema0.FieldType<Date, string>;
74
- isOptional: true;
75
- };
4
+ export declare const WorkflowInstanceModel: import("@contractspec/lib.schema").SchemaModel<{
5
+ id: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ workflowDefinitionId: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
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
+ status: {
22
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
23
+ isOptional: false;
24
+ };
25
+ currentStepId: {
26
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
27
+ isOptional: true;
28
+ };
29
+ contextData: {
30
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
31
+ isOptional: true;
32
+ };
33
+ triggeredBy: {
34
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
35
+ isOptional: false;
36
+ };
37
+ organizationId: {
38
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
39
+ isOptional: false;
40
+ };
41
+ priority: {
42
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
43
+ isOptional: false;
44
+ };
45
+ dueAt: {
46
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
47
+ isOptional: true;
48
+ };
49
+ outcome: {
50
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
51
+ isOptional: true;
52
+ };
53
+ resultData: {
54
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
55
+ isOptional: true;
56
+ };
57
+ errorMessage: {
58
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
59
+ isOptional: true;
60
+ };
61
+ createdAt: {
62
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
63
+ isOptional: false;
64
+ };
65
+ startedAt: {
66
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
67
+ isOptional: true;
68
+ };
69
+ completedAt: {
70
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
71
+ isOptional: true;
72
+ };
76
73
  }>;
77
74
  /**
78
75
  * Input for starting a workflow.
79
76
  */
80
- declare const StartWorkflowInputModel: _contractspec_lib_schema0.SchemaModel<{
81
- workflowKey: {
82
- type: _contractspec_lib_schema0.FieldType<string, string>;
83
- isOptional: false;
84
- };
85
- contextData: {
86
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
87
- isOptional: true;
88
- };
89
- referenceId: {
90
- type: _contractspec_lib_schema0.FieldType<string, string>;
91
- isOptional: true;
92
- };
93
- referenceType: {
94
- type: _contractspec_lib_schema0.FieldType<string, string>;
95
- isOptional: true;
96
- };
97
- priority: {
98
- type: _contractspec_lib_schema0.FieldType<number, number>;
99
- isOptional: true;
100
- };
101
- dueAt: {
102
- type: _contractspec_lib_schema0.FieldType<Date, string>;
103
- isOptional: true;
104
- };
77
+ export declare const StartWorkflowInputModel: import("@contractspec/lib.schema").SchemaModel<{
78
+ workflowKey: {
79
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
80
+ isOptional: false;
81
+ };
82
+ contextData: {
83
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
84
+ isOptional: true;
85
+ };
86
+ referenceId: {
87
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
88
+ isOptional: true;
89
+ };
90
+ referenceType: {
91
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
92
+ isOptional: true;
93
+ };
94
+ priority: {
95
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
96
+ isOptional: true;
97
+ };
98
+ dueAt: {
99
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
100
+ isOptional: true;
101
+ };
105
102
  }>;
106
103
  /**
107
104
  * Input for transitioning a workflow.
108
105
  */
109
- declare const TransitionInputModel: _contractspec_lib_schema0.SchemaModel<{
110
- instanceId: {
111
- type: _contractspec_lib_schema0.FieldType<string, string>;
112
- isOptional: false;
113
- };
114
- action: {
115
- type: _contractspec_lib_schema0.FieldType<string, string>;
116
- isOptional: false;
117
- };
118
- data: {
119
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
120
- isOptional: true;
121
- };
122
- comment: {
123
- type: _contractspec_lib_schema0.FieldType<string, string>;
124
- isOptional: true;
125
- };
126
- }>;
127
- /**
128
- * Result of a workflow transition.
129
- */
130
- declare const TransitionResultModel: _contractspec_lib_schema0.SchemaModel<{
131
- success: {
132
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
133
- isOptional: false;
134
- };
135
- instance: {
136
- type: _contractspec_lib_schema0.SchemaModel<{
137
- id: {
138
- type: _contractspec_lib_schema0.FieldType<string, string>;
139
- isOptional: false;
140
- };
141
- workflowDefinitionId: {
142
- type: _contractspec_lib_schema0.FieldType<string, string>;
106
+ export declare const TransitionInputModel: import("@contractspec/lib.schema").SchemaModel<{
107
+ instanceId: {
108
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
143
109
  isOptional: false;
144
- };
145
- referenceId: {
146
- type: _contractspec_lib_schema0.FieldType<string, string>;
147
- isOptional: true;
148
- };
149
- referenceType: {
150
- type: _contractspec_lib_schema0.FieldType<string, string>;
151
- isOptional: true;
152
- };
153
- status: {
154
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
110
+ };
111
+ action: {
112
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
155
113
  isOptional: false;
156
- };
157
- currentStepId: {
158
- type: _contractspec_lib_schema0.FieldType<string, string>;
114
+ };
115
+ data: {
116
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
159
117
  isOptional: true;
160
- };
161
- contextData: {
162
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
118
+ };
119
+ comment: {
120
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
163
121
  isOptional: true;
164
- };
165
- triggeredBy: {
166
- type: _contractspec_lib_schema0.FieldType<string, string>;
167
- isOptional: false;
168
- };
169
- organizationId: {
170
- type: _contractspec_lib_schema0.FieldType<string, string>;
122
+ };
123
+ }>;
124
+ /**
125
+ * Result of a workflow transition.
126
+ */
127
+ export declare const TransitionResultModel: import("@contractspec/lib.schema").SchemaModel<{
128
+ success: {
129
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
171
130
  isOptional: false;
172
- };
173
- priority: {
174
- type: _contractspec_lib_schema0.FieldType<number, number>;
131
+ };
132
+ instance: {
133
+ type: import("@contractspec/lib.schema").SchemaModel<{
134
+ id: {
135
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
136
+ isOptional: false;
137
+ };
138
+ workflowDefinitionId: {
139
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
140
+ isOptional: false;
141
+ };
142
+ referenceId: {
143
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
144
+ isOptional: true;
145
+ };
146
+ referenceType: {
147
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
148
+ isOptional: true;
149
+ };
150
+ status: {
151
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
152
+ isOptional: false;
153
+ };
154
+ currentStepId: {
155
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
156
+ isOptional: true;
157
+ };
158
+ contextData: {
159
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
160
+ isOptional: true;
161
+ };
162
+ triggeredBy: {
163
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
164
+ isOptional: false;
165
+ };
166
+ organizationId: {
167
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
168
+ isOptional: false;
169
+ };
170
+ priority: {
171
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
172
+ isOptional: false;
173
+ };
174
+ dueAt: {
175
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
176
+ isOptional: true;
177
+ };
178
+ outcome: {
179
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
180
+ isOptional: true;
181
+ };
182
+ resultData: {
183
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
184
+ isOptional: true;
185
+ };
186
+ errorMessage: {
187
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
188
+ isOptional: true;
189
+ };
190
+ createdAt: {
191
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
192
+ isOptional: false;
193
+ };
194
+ startedAt: {
195
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
196
+ isOptional: true;
197
+ };
198
+ completedAt: {
199
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
200
+ isOptional: true;
201
+ };
202
+ }>;
175
203
  isOptional: false;
176
- };
177
- dueAt: {
178
- type: _contractspec_lib_schema0.FieldType<Date, string>;
204
+ };
205
+ previousStepKey: {
206
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
179
207
  isOptional: true;
180
- };
181
- outcome: {
182
- type: _contractspec_lib_schema0.FieldType<string, string>;
208
+ };
209
+ currentStepKey: {
210
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
183
211
  isOptional: true;
184
- };
185
- resultData: {
186
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
212
+ };
213
+ message: {
214
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
187
215
  isOptional: true;
188
- };
189
- errorMessage: {
190
- type: _contractspec_lib_schema0.FieldType<string, string>;
191
- isOptional: true;
192
- };
193
- createdAt: {
194
- type: _contractspec_lib_schema0.FieldType<Date, string>;
195
- isOptional: false;
196
- };
197
- startedAt: {
198
- type: _contractspec_lib_schema0.FieldType<Date, string>;
199
- isOptional: true;
200
- };
201
- completedAt: {
202
- type: _contractspec_lib_schema0.FieldType<Date, string>;
203
- isOptional: true;
204
- };
205
- }>;
206
- isOptional: false;
207
- };
208
- previousStepKey: {
209
- type: _contractspec_lib_schema0.FieldType<string, string>;
210
- isOptional: true;
211
- };
212
- currentStepKey: {
213
- type: _contractspec_lib_schema0.FieldType<string, string>;
214
- isOptional: true;
215
- };
216
- message: {
217
- type: _contractspec_lib_schema0.FieldType<string, string>;
218
- isOptional: true;
219
- };
216
+ };
220
217
  }>;
221
- //#endregion
222
- export { StartWorkflowInputModel, TransitionInputModel, TransitionResultModel, WorkflowInstanceModel };
223
218
  //# sourceMappingURL=instance.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"instance.schema.d.ts","names":[],"sources":["../../src/instance/instance.schema.ts"],"mappings":";;;;;;cAMa,qBAAA,4BAAqB,WAAA;;UAqChC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,uBAAA,4BAAuB,WAAA;;UAclC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,oBAAA,4BAAoB,WAAA;;UAS/B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAKW,qBAAA,4BAAqB,WAAA;;UAgBhC,yBAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"instance.schema.d.ts","sourceRoot":"","sources":["../../src/instance/instance.schema.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqChC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;EAclC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;EAS/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBhC,CAAC"}