@contractspec/example.workflow-system 0.0.0-canary-20260119224015 → 0.0.0-canary-20260119225944

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.
@@ -1,44 +1,44 @@
1
- import * as _contractspec_lib_schema874 from "@contractspec/lib.schema";
1
+ import * as _contractspec_lib_schema1118 from "@contractspec/lib.schema";
2
2
 
3
3
  //#region src/workflow/workflow.schema.d.ts
4
4
  /**
5
5
  * A step in a workflow definition.
6
6
  */
7
- declare const WorkflowStepModel: _contractspec_lib_schema874.SchemaModel<{
7
+ declare const WorkflowStepModel: _contractspec_lib_schema1118.SchemaModel<{
8
8
  id: {
9
- type: _contractspec_lib_schema874.FieldType<string, string>;
9
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
10
10
  isOptional: false;
11
11
  };
12
12
  key: {
13
- type: _contractspec_lib_schema874.FieldType<string, string>;
13
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
14
14
  isOptional: false;
15
15
  };
16
16
  name: {
17
- type: _contractspec_lib_schema874.FieldType<string, string>;
17
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
18
18
  isOptional: false;
19
19
  };
20
20
  description: {
21
- type: _contractspec_lib_schema874.FieldType<string, string>;
21
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
22
22
  isOptional: true;
23
23
  };
24
24
  type: {
25
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string, string, string, string, string]>;
25
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string, string, string, string, string]>;
26
26
  isOptional: false;
27
27
  };
28
28
  position: {
29
- type: _contractspec_lib_schema874.FieldType<number, number>;
29
+ type: _contractspec_lib_schema1118.FieldType<number, number>;
30
30
  isOptional: false;
31
31
  };
32
32
  transitions: {
33
- type: _contractspec_lib_schema874.FieldType<unknown, unknown>;
33
+ type: _contractspec_lib_schema1118.FieldType<unknown, unknown>;
34
34
  isOptional: false;
35
35
  };
36
36
  approvalMode: {
37
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string]>;
37
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string]>;
38
38
  isOptional: true;
39
39
  };
40
40
  approverRoles: {
41
- type: _contractspec_lib_schema874.FieldType<string, string>;
41
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
42
42
  isArray: true;
43
43
  isOptional: true;
44
44
  };
@@ -46,91 +46,91 @@ declare const WorkflowStepModel: _contractspec_lib_schema874.SchemaModel<{
46
46
  /**
47
47
  * A workflow definition.
48
48
  */
49
- declare const WorkflowDefinitionModel: _contractspec_lib_schema874.SchemaModel<{
49
+ declare const WorkflowDefinitionModel: _contractspec_lib_schema1118.SchemaModel<{
50
50
  id: {
51
- type: _contractspec_lib_schema874.FieldType<string, string>;
51
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
52
52
  isOptional: false;
53
53
  };
54
54
  name: {
55
- type: _contractspec_lib_schema874.FieldType<string, string>;
55
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
56
56
  isOptional: false;
57
57
  };
58
58
  key: {
59
- type: _contractspec_lib_schema874.FieldType<string, string>;
59
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
60
60
  isOptional: false;
61
61
  };
62
62
  description: {
63
- type: _contractspec_lib_schema874.FieldType<string, string>;
63
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
64
64
  isOptional: true;
65
65
  };
66
66
  version: {
67
- type: _contractspec_lib_schema874.FieldType<string, string>;
67
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
68
68
  isOptional: false;
69
69
  };
70
70
  status: {
71
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string]>;
71
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string]>;
72
72
  isOptional: false;
73
73
  };
74
74
  triggerType: {
75
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string]>;
75
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string]>;
76
76
  isOptional: false;
77
77
  };
78
78
  initialStepId: {
79
- type: _contractspec_lib_schema874.FieldType<string, string>;
79
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
80
80
  isOptional: true;
81
81
  };
82
82
  featureFlagKey: {
83
- type: _contractspec_lib_schema874.FieldType<string, string>;
83
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
84
84
  isOptional: true;
85
85
  };
86
86
  organizationId: {
87
- type: _contractspec_lib_schema874.FieldType<string, string>;
87
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
88
88
  isOptional: false;
89
89
  };
90
90
  createdAt: {
91
- type: _contractspec_lib_schema874.FieldType<Date, string>;
91
+ type: _contractspec_lib_schema1118.FieldType<Date, string>;
92
92
  isOptional: false;
93
93
  };
94
94
  updatedAt: {
95
- type: _contractspec_lib_schema874.FieldType<Date, string>;
95
+ type: _contractspec_lib_schema1118.FieldType<Date, string>;
96
96
  isOptional: false;
97
97
  };
98
98
  steps: {
99
- type: _contractspec_lib_schema874.SchemaModel<{
99
+ type: _contractspec_lib_schema1118.SchemaModel<{
100
100
  id: {
101
- type: _contractspec_lib_schema874.FieldType<string, string>;
101
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
102
102
  isOptional: false;
103
103
  };
104
104
  key: {
105
- type: _contractspec_lib_schema874.FieldType<string, string>;
105
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
106
106
  isOptional: false;
107
107
  };
108
108
  name: {
109
- type: _contractspec_lib_schema874.FieldType<string, string>;
109
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
110
110
  isOptional: false;
111
111
  };
112
112
  description: {
113
- type: _contractspec_lib_schema874.FieldType<string, string>;
113
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
114
114
  isOptional: true;
115
115
  };
116
116
  type: {
117
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string, string, string, string, string]>;
117
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string, string, string, string, string]>;
118
118
  isOptional: false;
119
119
  };
120
120
  position: {
121
- type: _contractspec_lib_schema874.FieldType<number, number>;
121
+ type: _contractspec_lib_schema1118.FieldType<number, number>;
122
122
  isOptional: false;
123
123
  };
124
124
  transitions: {
125
- type: _contractspec_lib_schema874.FieldType<unknown, unknown>;
125
+ type: _contractspec_lib_schema1118.FieldType<unknown, unknown>;
126
126
  isOptional: false;
127
127
  };
128
128
  approvalMode: {
129
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string]>;
129
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string]>;
130
130
  isOptional: true;
131
131
  };
132
132
  approverRoles: {
133
- type: _contractspec_lib_schema874.FieldType<string, string>;
133
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
134
134
  isArray: true;
135
135
  isOptional: true;
136
136
  };
@@ -142,121 +142,121 @@ declare const WorkflowDefinitionModel: _contractspec_lib_schema874.SchemaModel<{
142
142
  /**
143
143
  * Input for creating a workflow definition.
144
144
  */
145
- declare const CreateWorkflowInputModel: _contractspec_lib_schema874.SchemaModel<{
145
+ declare const CreateWorkflowInputModel: _contractspec_lib_schema1118.SchemaModel<{
146
146
  name: {
147
- type: _contractspec_lib_schema874.FieldType<string, string>;
147
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
148
148
  isOptional: false;
149
149
  };
150
150
  key: {
151
- type: _contractspec_lib_schema874.FieldType<string, string>;
151
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
152
152
  isOptional: false;
153
153
  };
154
154
  description: {
155
- type: _contractspec_lib_schema874.FieldType<string, string>;
155
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
156
156
  isOptional: true;
157
157
  };
158
158
  triggerType: {
159
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string]>;
159
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string]>;
160
160
  isOptional: true;
161
161
  };
162
162
  triggerConfig: {
163
- type: _contractspec_lib_schema874.FieldType<unknown, unknown>;
163
+ type: _contractspec_lib_schema1118.FieldType<unknown, unknown>;
164
164
  isOptional: true;
165
165
  };
166
166
  featureFlagKey: {
167
- type: _contractspec_lib_schema874.FieldType<string, string>;
167
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
168
168
  isOptional: true;
169
169
  };
170
170
  settings: {
171
- type: _contractspec_lib_schema874.FieldType<unknown, unknown>;
171
+ type: _contractspec_lib_schema1118.FieldType<unknown, unknown>;
172
172
  isOptional: true;
173
173
  };
174
174
  }>;
175
175
  /**
176
176
  * Input for updating a workflow definition.
177
177
  */
178
- declare const UpdateWorkflowInputModel: _contractspec_lib_schema874.SchemaModel<{
178
+ declare const UpdateWorkflowInputModel: _contractspec_lib_schema1118.SchemaModel<{
179
179
  workflowId: {
180
- type: _contractspec_lib_schema874.FieldType<string, string>;
180
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
181
181
  isOptional: false;
182
182
  };
183
183
  name: {
184
- type: _contractspec_lib_schema874.FieldType<string, string>;
184
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
185
185
  isOptional: true;
186
186
  };
187
187
  description: {
188
- type: _contractspec_lib_schema874.FieldType<string, string>;
188
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
189
189
  isOptional: true;
190
190
  };
191
191
  triggerType: {
192
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string]>;
192
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string]>;
193
193
  isOptional: true;
194
194
  };
195
195
  triggerConfig: {
196
- type: _contractspec_lib_schema874.FieldType<unknown, unknown>;
196
+ type: _contractspec_lib_schema1118.FieldType<unknown, unknown>;
197
197
  isOptional: true;
198
198
  };
199
199
  featureFlagKey: {
200
- type: _contractspec_lib_schema874.FieldType<string, string>;
200
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
201
201
  isOptional: true;
202
202
  };
203
203
  settings: {
204
- type: _contractspec_lib_schema874.FieldType<unknown, unknown>;
204
+ type: _contractspec_lib_schema1118.FieldType<unknown, unknown>;
205
205
  isOptional: true;
206
206
  };
207
207
  }>;
208
208
  /**
209
209
  * Input for adding a step to a workflow.
210
210
  */
211
- declare const AddStepInputModel: _contractspec_lib_schema874.SchemaModel<{
211
+ declare const AddStepInputModel: _contractspec_lib_schema1118.SchemaModel<{
212
212
  workflowId: {
213
- type: _contractspec_lib_schema874.FieldType<string, string>;
213
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
214
214
  isOptional: false;
215
215
  };
216
216
  key: {
217
- type: _contractspec_lib_schema874.FieldType<string, string>;
217
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
218
218
  isOptional: false;
219
219
  };
220
220
  name: {
221
- type: _contractspec_lib_schema874.FieldType<string, string>;
221
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
222
222
  isOptional: false;
223
223
  };
224
224
  description: {
225
- type: _contractspec_lib_schema874.FieldType<string, string>;
225
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
226
226
  isOptional: true;
227
227
  };
228
228
  type: {
229
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string, string, string, string, string]>;
229
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string, string, string, string, string]>;
230
230
  isOptional: false;
231
231
  };
232
232
  position: {
233
- type: _contractspec_lib_schema874.FieldType<number, number>;
233
+ type: _contractspec_lib_schema1118.FieldType<number, number>;
234
234
  isOptional: true;
235
235
  };
236
236
  transitions: {
237
- type: _contractspec_lib_schema874.FieldType<unknown, unknown>;
237
+ type: _contractspec_lib_schema1118.FieldType<unknown, unknown>;
238
238
  isOptional: false;
239
239
  };
240
240
  approvalMode: {
241
- type: _contractspec_lib_schema874.EnumType<[string, string, string, string]>;
241
+ type: _contractspec_lib_schema1118.EnumType<[string, string, string, string]>;
242
242
  isOptional: true;
243
243
  };
244
244
  approverRoles: {
245
- type: _contractspec_lib_schema874.FieldType<string, string>;
245
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
246
246
  isArray: true;
247
247
  isOptional: true;
248
248
  };
249
249
  approverUserIds: {
250
- type: _contractspec_lib_schema874.FieldType<string, string>;
250
+ type: _contractspec_lib_schema1118.FieldType<string, string>;
251
251
  isArray: true;
252
252
  isOptional: true;
253
253
  };
254
254
  timeoutSeconds: {
255
- type: _contractspec_lib_schema874.FieldType<number, number>;
255
+ type: _contractspec_lib_schema1118.FieldType<number, number>;
256
256
  isOptional: true;
257
257
  };
258
258
  slaSeconds: {
259
- type: _contractspec_lib_schema874.FieldType<number, number>;
259
+ type: _contractspec_lib_schema1118.FieldType<number, number>;
260
260
  isOptional: true;
261
261
  };
262
262
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow.schema.d.ts","names":[],"sources":["../../src/workflow/workflow.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAWa,cAAA,iBAkBX,8BAlB4B,WAkB5B,CAAA;EAAA,EAAA,EAAA;UAAA,2BAAA,CAAA;;;;;;;;+CAlB4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAuBjB,CAAA;EA2BX,WAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;CA3BkC,CAAA;AAgCpC;;;cAhCa,qDAAuB;;UA2BlC,2BAAA,CAAA;;;;IAKmC,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAoBxB,UAAA,EAAA,KAAA;EAkBX,CAAA;;;;;;;;EAlBmC,CAAA;EAuBxB,OAAA,EAAA;IA4BX,IAAA,uCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;+CA5B4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA3CjB,sDAAwB;;UAenC,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,sDAAwB;;UAkBnC,2BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,+CAAiB;;UA4B5B,2BAAA,CAAA"}
1
+ {"version":3,"file":"workflow.schema.d.ts","names":[],"sources":["../../src/workflow/workflow.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAWa,cAAA,iBAkBX,+BAlB4B,WAkB5B,CAAA;EAAA,EAAA,EAAA;UAAA,4BAAA,CAAA;;;;;;;;gDAlB4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAuBjB,CAAA;EA2BX,WAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;CA3BkC,CAAA;AAgCpC;;;cAhCa,sDAAuB;;UA2BlC,4BAAA,CAAA;;;;IAKmC,IAAA,wCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;IAoBxB,UAAA,EAAA,KAAA;EAkBX,CAAA;;;;;;;;EAlBmC,CAAA;EAuBxB,OAAA,EAAA;IA4BX,IAAA,wCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;gDA5B4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA3CjB,uDAAwB;;UAenC,4BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,uDAAwB;;UAkBnC,4BAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKW,gDAAiB;;UA4B5B,4BAAA,CAAA"}
@@ -1,9 +1,9 @@
1
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts4 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/workflow-system.capability.d.ts
4
- declare const WorkflowCapability: _contractspec_lib_contracts0.CapabilitySpec;
5
- declare const ApprovalCapability: _contractspec_lib_contracts0.CapabilitySpec;
6
- declare const StateMachineCapability: _contractspec_lib_contracts0.CapabilitySpec;
4
+ declare const WorkflowCapability: _contractspec_lib_contracts4.CapabilitySpec;
5
+ declare const ApprovalCapability: _contractspec_lib_contracts4.CapabilitySpec;
6
+ declare const StateMachineCapability: _contractspec_lib_contracts4.CapabilitySpec;
7
7
  //#endregion
8
8
  export { ApprovalCapability, StateMachineCapability, WorkflowCapability };
9
9
  //# sourceMappingURL=workflow-system.capability.d.ts.map
@@ -1,4 +1,4 @@
1
- import * as _contractspec_lib_contracts3 from "@contractspec/lib.contracts";
1
+ import * as _contractspec_lib_contracts12 from "@contractspec/lib.contracts";
2
2
 
3
3
  //#region src/workflow-system.feature.d.ts
4
4
 
@@ -6,7 +6,7 @@ import * as _contractspec_lib_contracts3 from "@contractspec/lib.contracts";
6
6
  * Workflow System feature module that bundles workflow definition,
7
7
  * instance management, and approval handling into an installable feature.
8
8
  */
9
- declare const WorkflowSystemFeature: _contractspec_lib_contracts3.FeatureModuleSpec;
9
+ declare const WorkflowSystemFeature: _contractspec_lib_contracts12.FeatureModuleSpec;
10
10
  //#endregion
11
11
  export { WorkflowSystemFeature };
12
12
  //# sourceMappingURL=workflow-system.feature.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-system.feature.d.ts","names":[],"sources":["../src/workflow-system.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWA;cAAa,uBAmKX,4BAAA,CAnKgC"}
1
+ {"version":3,"file":"workflow-system.feature.d.ts","names":[],"sources":["../src/workflow-system.feature.ts"],"sourcesContent":[],"mappings":";;;;;;;AAWA;cAAa,uBAmKX,6BAAA,CAnKgC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/example.workflow-system",
3
- "version": "0.0.0-canary-20260119224015",
3
+ "version": "0.0.0-canary-20260119225944",
4
4
  "description": "Workflow and approval system example for ContractSpec - State machine with role-based transitions",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@contractspec/lib.schema": "1.48.0",
21
- "@contractspec/lib.contracts": "0.0.0-canary-20260119224015",
22
- "@contractspec/lib.example-shared-ui": "0.0.0-canary-20260119224015",
23
- "@contractspec/lib.design-system": "0.0.0-canary-20260119224015",
21
+ "@contractspec/lib.contracts": "0.0.0-canary-20260119225944",
22
+ "@contractspec/lib.example-shared-ui": "0.0.0-canary-20260119225944",
23
+ "@contractspec/lib.design-system": "0.0.0-canary-20260119225944",
24
24
  "@contractspec/lib.runtime-sandbox": "0.3.0",
25
25
  "react": "19.2.3",
26
26
  "react-dom": "19.2.3"