@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,265 +1,260 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
-
3
- //#region src/workflow/workflow.schema.d.ts
4
1
  /**
5
2
  * A step in a workflow definition.
6
3
  */
7
- declare const WorkflowStepModel: _contractspec_lib_schema0.SchemaModel<{
8
- id: {
9
- type: _contractspec_lib_schema0.FieldType<string, string>;
10
- isOptional: false;
11
- };
12
- key: {
13
- type: _contractspec_lib_schema0.FieldType<string, string>;
14
- isOptional: false;
15
- };
16
- name: {
17
- type: _contractspec_lib_schema0.FieldType<string, string>;
18
- isOptional: false;
19
- };
20
- description: {
21
- type: _contractspec_lib_schema0.FieldType<string, string>;
22
- isOptional: true;
23
- };
24
- type: {
25
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
26
- isOptional: false;
27
- };
28
- position: {
29
- type: _contractspec_lib_schema0.FieldType<number, number>;
30
- isOptional: false;
31
- };
32
- transitions: {
33
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
34
- isOptional: false;
35
- };
36
- approvalMode: {
37
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
38
- isOptional: true;
39
- };
40
- approverRoles: {
41
- type: _contractspec_lib_schema0.FieldType<string, string>;
42
- isArray: true;
43
- isOptional: true;
44
- };
4
+ export declare const WorkflowStepModel: import("@contractspec/lib.schema").SchemaModel<{
5
+ id: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ key: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ name: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ description: {
18
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
19
+ isOptional: true;
20
+ };
21
+ type: {
22
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
23
+ isOptional: false;
24
+ };
25
+ position: {
26
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
27
+ isOptional: false;
28
+ };
29
+ transitions: {
30
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
31
+ isOptional: false;
32
+ };
33
+ approvalMode: {
34
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
35
+ isOptional: true;
36
+ };
37
+ approverRoles: {
38
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
39
+ isArray: true;
40
+ isOptional: true;
41
+ };
45
42
  }>;
46
43
  /**
47
44
  * A workflow definition.
48
45
  */
49
- declare const WorkflowDefinitionModel: _contractspec_lib_schema0.SchemaModel<{
50
- id: {
51
- type: _contractspec_lib_schema0.FieldType<string, string>;
52
- isOptional: false;
53
- };
54
- name: {
55
- type: _contractspec_lib_schema0.FieldType<string, string>;
56
- isOptional: false;
57
- };
58
- key: {
59
- type: _contractspec_lib_schema0.FieldType<string, string>;
60
- isOptional: false;
61
- };
62
- description: {
63
- type: _contractspec_lib_schema0.FieldType<string, string>;
64
- isOptional: true;
65
- };
66
- version: {
67
- type: _contractspec_lib_schema0.FieldType<string, string>;
68
- isOptional: false;
69
- };
70
- status: {
71
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
72
- isOptional: false;
73
- };
74
- triggerType: {
75
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
76
- isOptional: false;
77
- };
78
- initialStepId: {
79
- type: _contractspec_lib_schema0.FieldType<string, string>;
80
- isOptional: true;
81
- };
82
- featureFlagKey: {
83
- type: _contractspec_lib_schema0.FieldType<string, string>;
84
- isOptional: true;
85
- };
86
- organizationId: {
87
- type: _contractspec_lib_schema0.FieldType<string, string>;
88
- isOptional: false;
89
- };
90
- createdAt: {
91
- type: _contractspec_lib_schema0.FieldType<Date, string>;
92
- isOptional: false;
93
- };
94
- updatedAt: {
95
- type: _contractspec_lib_schema0.FieldType<Date, string>;
96
- isOptional: false;
97
- };
98
- steps: {
99
- type: _contractspec_lib_schema0.SchemaModel<{
100
- id: {
101
- type: _contractspec_lib_schema0.FieldType<string, string>;
46
+ export declare const WorkflowDefinitionModel: import("@contractspec/lib.schema").SchemaModel<{
47
+ id: {
48
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
102
49
  isOptional: false;
103
- };
104
- key: {
105
- type: _contractspec_lib_schema0.FieldType<string, string>;
50
+ };
51
+ name: {
52
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
106
53
  isOptional: false;
107
- };
108
- name: {
109
- type: _contractspec_lib_schema0.FieldType<string, string>;
54
+ };
55
+ key: {
56
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
110
57
  isOptional: false;
111
- };
112
- description: {
113
- type: _contractspec_lib_schema0.FieldType<string, string>;
58
+ };
59
+ description: {
60
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
114
61
  isOptional: true;
115
- };
116
- type: {
117
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
62
+ };
63
+ version: {
64
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
118
65
  isOptional: false;
119
- };
120
- position: {
121
- type: _contractspec_lib_schema0.FieldType<number, number>;
66
+ };
67
+ status: {
68
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
122
69
  isOptional: false;
123
- };
124
- transitions: {
125
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
70
+ };
71
+ triggerType: {
72
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
126
73
  isOptional: false;
127
- };
128
- approvalMode: {
129
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
74
+ };
75
+ initialStepId: {
76
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
77
+ isOptional: true;
78
+ };
79
+ featureFlagKey: {
80
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
130
81
  isOptional: true;
131
- };
132
- approverRoles: {
133
- type: _contractspec_lib_schema0.FieldType<string, string>;
82
+ };
83
+ organizationId: {
84
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
85
+ isOptional: false;
86
+ };
87
+ createdAt: {
88
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
89
+ isOptional: false;
90
+ };
91
+ updatedAt: {
92
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
93
+ isOptional: false;
94
+ };
95
+ steps: {
96
+ type: import("@contractspec/lib.schema").SchemaModel<{
97
+ id: {
98
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
99
+ isOptional: false;
100
+ };
101
+ key: {
102
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
103
+ isOptional: false;
104
+ };
105
+ name: {
106
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
107
+ isOptional: false;
108
+ };
109
+ description: {
110
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
111
+ isOptional: true;
112
+ };
113
+ type: {
114
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
115
+ isOptional: false;
116
+ };
117
+ position: {
118
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
119
+ isOptional: false;
120
+ };
121
+ transitions: {
122
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
123
+ isOptional: false;
124
+ };
125
+ approvalMode: {
126
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
127
+ isOptional: true;
128
+ };
129
+ approverRoles: {
130
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
131
+ isArray: true;
132
+ isOptional: true;
133
+ };
134
+ }>;
134
135
  isArray: true;
135
136
  isOptional: true;
136
- };
137
- }>;
138
- isArray: true;
139
- isOptional: true;
140
- };
137
+ };
141
138
  }>;
142
139
  /**
143
140
  * Input for creating a workflow definition.
144
141
  */
145
- declare const CreateWorkflowInputModel: _contractspec_lib_schema0.SchemaModel<{
146
- name: {
147
- type: _contractspec_lib_schema0.FieldType<string, string>;
148
- isOptional: false;
149
- };
150
- key: {
151
- type: _contractspec_lib_schema0.FieldType<string, string>;
152
- isOptional: false;
153
- };
154
- description: {
155
- type: _contractspec_lib_schema0.FieldType<string, string>;
156
- isOptional: true;
157
- };
158
- triggerType: {
159
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
160
- isOptional: true;
161
- };
162
- triggerConfig: {
163
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
164
- isOptional: true;
165
- };
166
- featureFlagKey: {
167
- type: _contractspec_lib_schema0.FieldType<string, string>;
168
- isOptional: true;
169
- };
170
- settings: {
171
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
172
- isOptional: true;
173
- };
142
+ export declare const CreateWorkflowInputModel: import("@contractspec/lib.schema").SchemaModel<{
143
+ name: {
144
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
145
+ isOptional: false;
146
+ };
147
+ key: {
148
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
149
+ isOptional: false;
150
+ };
151
+ description: {
152
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
153
+ isOptional: true;
154
+ };
155
+ triggerType: {
156
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
157
+ isOptional: true;
158
+ };
159
+ triggerConfig: {
160
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
161
+ isOptional: true;
162
+ };
163
+ featureFlagKey: {
164
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
165
+ isOptional: true;
166
+ };
167
+ settings: {
168
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
169
+ isOptional: true;
170
+ };
174
171
  }>;
175
172
  /**
176
173
  * Input for updating a workflow definition.
177
174
  */
178
- declare const UpdateWorkflowInputModel: _contractspec_lib_schema0.SchemaModel<{
179
- workflowId: {
180
- type: _contractspec_lib_schema0.FieldType<string, string>;
181
- isOptional: false;
182
- };
183
- name: {
184
- type: _contractspec_lib_schema0.FieldType<string, string>;
185
- isOptional: true;
186
- };
187
- description: {
188
- type: _contractspec_lib_schema0.FieldType<string, string>;
189
- isOptional: true;
190
- };
191
- triggerType: {
192
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
193
- isOptional: true;
194
- };
195
- triggerConfig: {
196
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
197
- isOptional: true;
198
- };
199
- featureFlagKey: {
200
- type: _contractspec_lib_schema0.FieldType<string, string>;
201
- isOptional: true;
202
- };
203
- settings: {
204
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
205
- isOptional: true;
206
- };
175
+ export declare const UpdateWorkflowInputModel: import("@contractspec/lib.schema").SchemaModel<{
176
+ workflowId: {
177
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
178
+ isOptional: false;
179
+ };
180
+ name: {
181
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
182
+ isOptional: true;
183
+ };
184
+ description: {
185
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
186
+ isOptional: true;
187
+ };
188
+ triggerType: {
189
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
190
+ isOptional: true;
191
+ };
192
+ triggerConfig: {
193
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
194
+ isOptional: true;
195
+ };
196
+ featureFlagKey: {
197
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
198
+ isOptional: true;
199
+ };
200
+ settings: {
201
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
202
+ isOptional: true;
203
+ };
207
204
  }>;
208
205
  /**
209
206
  * Input for adding a step to a workflow.
210
207
  */
211
- declare const AddStepInputModel: _contractspec_lib_schema0.SchemaModel<{
212
- workflowId: {
213
- type: _contractspec_lib_schema0.FieldType<string, string>;
214
- isOptional: false;
215
- };
216
- key: {
217
- type: _contractspec_lib_schema0.FieldType<string, string>;
218
- isOptional: false;
219
- };
220
- name: {
221
- type: _contractspec_lib_schema0.FieldType<string, string>;
222
- isOptional: false;
223
- };
224
- description: {
225
- type: _contractspec_lib_schema0.FieldType<string, string>;
226
- isOptional: true;
227
- };
228
- type: {
229
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string]>;
230
- isOptional: false;
231
- };
232
- position: {
233
- type: _contractspec_lib_schema0.FieldType<number, number>;
234
- isOptional: true;
235
- };
236
- transitions: {
237
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
238
- isOptional: false;
239
- };
240
- approvalMode: {
241
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string]>;
242
- isOptional: true;
243
- };
244
- approverRoles: {
245
- type: _contractspec_lib_schema0.FieldType<string, string>;
246
- isArray: true;
247
- isOptional: true;
248
- };
249
- approverUserIds: {
250
- type: _contractspec_lib_schema0.FieldType<string, string>;
251
- isArray: true;
252
- isOptional: true;
253
- };
254
- timeoutSeconds: {
255
- type: _contractspec_lib_schema0.FieldType<number, number>;
256
- isOptional: true;
257
- };
258
- slaSeconds: {
259
- type: _contractspec_lib_schema0.FieldType<number, number>;
260
- isOptional: true;
261
- };
208
+ export declare const AddStepInputModel: import("@contractspec/lib.schema").SchemaModel<{
209
+ workflowId: {
210
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
211
+ isOptional: false;
212
+ };
213
+ key: {
214
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
215
+ isOptional: false;
216
+ };
217
+ name: {
218
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
219
+ isOptional: false;
220
+ };
221
+ description: {
222
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
223
+ isOptional: true;
224
+ };
225
+ type: {
226
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string]>;
227
+ isOptional: false;
228
+ };
229
+ position: {
230
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
231
+ isOptional: true;
232
+ };
233
+ transitions: {
234
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
235
+ isOptional: false;
236
+ };
237
+ approvalMode: {
238
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string]>;
239
+ isOptional: true;
240
+ };
241
+ approverRoles: {
242
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
243
+ isArray: true;
244
+ isOptional: true;
245
+ };
246
+ approverUserIds: {
247
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
248
+ isArray: true;
249
+ isOptional: true;
250
+ };
251
+ timeoutSeconds: {
252
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
253
+ isOptional: true;
254
+ };
255
+ slaSeconds: {
256
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
257
+ isOptional: true;
258
+ };
262
259
  }>;
263
- //#endregion
264
- export { AddStepInputModel, CreateWorkflowInputModel, UpdateWorkflowInputModel, WorkflowDefinitionModel, WorkflowStepModel };
265
260
  //# sourceMappingURL=workflow.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.schema.d.ts","names":[],"sources":["../../src/workflow/workflow.schema.ts"],"mappings":";;;;;;cAWa,iBAAA,4BAAiB,WAAA;;UAkB5B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,uBAAA,4BAAuB,WAAA;;UA2BlC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,wBAAA,4BAAwB,WAAA;;UAenC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,wBAAA,4BAAwB,WAAA;;UAkBnC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,iBAAA,4BAAiB,WAAA;;UA4B5B,yBAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"workflow.schema.d.ts","sourceRoot":"","sources":["../../src/workflow/workflow.schema.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB5B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAenC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4B5B,CAAC"}