@lssm/example.workflow-system 0.0.0-canary-20251217052941 → 0.0.0-canary-20251217060433

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 (34) hide show
  1. package/dist/approval/approval.contracts.d.ts +534 -0
  2. package/dist/approval/approval.enum.d.ts +13 -0
  3. package/dist/approval/approval.event.d.ts +130 -0
  4. package/dist/approval/approval.handler.d.ts +22 -0
  5. package/dist/approval/approval.schema.d.ts +99 -0
  6. package/dist/approval/index.d.ts +5 -0
  7. package/dist/docs/index.d.ts +1 -0
  8. package/dist/docs/workflow-system.docblock.d.ts +1 -0
  9. package/dist/entities/approval.d.ts +57 -0
  10. package/dist/entities/index.d.ts +138 -0
  11. package/dist/entities/instance.d.ts +68 -0
  12. package/dist/entities/step.d.ts +49 -0
  13. package/dist/entities/workflow.d.ts +40 -0
  14. package/dist/example.d.ts +39 -0
  15. package/dist/index.d.ts +19 -0
  16. package/dist/instance/index.d.ts +5 -0
  17. package/dist/instance/instance.contracts.d.ts +1023 -0
  18. package/dist/instance/instance.enum.d.ts +9 -0
  19. package/dist/instance/instance.event.d.ts +355 -0
  20. package/dist/instance/instance.handler.d.ts +26 -0
  21. package/dist/instance/instance.schema.d.ts +222 -0
  22. package/dist/presentations/index.d.ts +63 -0
  23. package/dist/shared/index.d.ts +3 -0
  24. package/dist/shared/mock-data.d.ts +18 -0
  25. package/dist/shared/types.d.ts +80 -0
  26. package/dist/state-machine/index.d.ts +147 -0
  27. package/dist/workflow/index.d.ts +5 -0
  28. package/dist/workflow/workflow.contracts.d.ts +1010 -0
  29. package/dist/workflow/workflow.enum.d.ts +21 -0
  30. package/dist/workflow/workflow.event.d.ts +134 -0
  31. package/dist/workflow/workflow.handler.d.ts +28 -0
  32. package/dist/workflow/workflow.schema.d.ts +264 -0
  33. package/dist/workflow-system.feature.d.ts +11 -0
  34. package/package.json +44 -44
@@ -0,0 +1,9 @@
1
+ import * as _lssm_lib_schema1179 from "@lssm/lib.schema";
2
+
3
+ //#region src/instance/instance.enum.d.ts
4
+ /**
5
+ * Instance status enum.
6
+ */
7
+ declare const InstanceStatusEnum: _lssm_lib_schema1179.EnumType<[string, string, string, string, string, string, string, string]>;
8
+ //#endregion
9
+ export { InstanceStatusEnum };
@@ -0,0 +1,355 @@
1
+ import * as _lssm_lib_schema776 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts21 from "@lssm/lib.contracts";
3
+
4
+ //#region src/instance/instance.event.d.ts
5
+ /**
6
+ * InstanceStartedEvent - A new workflow instance has been started.
7
+ */
8
+ declare const InstanceStartedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema776.SchemaModel<{
9
+ instanceId: {
10
+ type: _lssm_lib_schema776.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ workflowId: {
14
+ type: _lssm_lib_schema776.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ workflowKey: {
18
+ type: _lssm_lib_schema776.FieldType<string, string>;
19
+ isOptional: false;
20
+ };
21
+ status: {
22
+ type: _lssm_lib_schema776.FieldType<string, string>;
23
+ isOptional: false;
24
+ };
25
+ referenceId: {
26
+ type: _lssm_lib_schema776.FieldType<string, string>;
27
+ isOptional: true;
28
+ };
29
+ referenceType: {
30
+ type: _lssm_lib_schema776.FieldType<string, string>;
31
+ isOptional: true;
32
+ };
33
+ triggeredBy: {
34
+ type: _lssm_lib_schema776.FieldType<string, string>;
35
+ isOptional: false;
36
+ };
37
+ organizationId: {
38
+ type: _lssm_lib_schema776.FieldType<string, string>;
39
+ isOptional: false;
40
+ };
41
+ timestamp: {
42
+ type: _lssm_lib_schema776.FieldType<Date, string>;
43
+ isOptional: false;
44
+ };
45
+ }>>;
46
+ /**
47
+ * StepEnteredEvent - A workflow instance has entered a new step.
48
+ */
49
+ declare const StepEnteredEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema776.SchemaModel<{
50
+ instanceId: {
51
+ type: _lssm_lib_schema776.FieldType<string, string>;
52
+ isOptional: false;
53
+ };
54
+ workflowId: {
55
+ type: _lssm_lib_schema776.FieldType<string, string>;
56
+ isOptional: false;
57
+ };
58
+ fromStepKey: {
59
+ type: _lssm_lib_schema776.FieldType<string, string>;
60
+ isOptional: true;
61
+ };
62
+ toStepKey: {
63
+ type: _lssm_lib_schema776.FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ action: {
67
+ type: _lssm_lib_schema776.FieldType<string, string>;
68
+ isOptional: true;
69
+ };
70
+ executedBy: {
71
+ type: _lssm_lib_schema776.FieldType<string, string>;
72
+ isOptional: false;
73
+ };
74
+ timestamp: {
75
+ type: _lssm_lib_schema776.FieldType<Date, string>;
76
+ isOptional: false;
77
+ };
78
+ }>>;
79
+ /**
80
+ * StepExitedEvent - A workflow instance has exited a step.
81
+ */
82
+ declare const StepExitedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema776.SchemaModel<{
83
+ instanceId: {
84
+ type: _lssm_lib_schema776.FieldType<string, string>;
85
+ isOptional: false;
86
+ };
87
+ workflowId: {
88
+ type: _lssm_lib_schema776.FieldType<string, string>;
89
+ isOptional: false;
90
+ };
91
+ fromStepKey: {
92
+ type: _lssm_lib_schema776.FieldType<string, string>;
93
+ isOptional: true;
94
+ };
95
+ toStepKey: {
96
+ type: _lssm_lib_schema776.FieldType<string, string>;
97
+ isOptional: false;
98
+ };
99
+ action: {
100
+ type: _lssm_lib_schema776.FieldType<string, string>;
101
+ isOptional: true;
102
+ };
103
+ executedBy: {
104
+ type: _lssm_lib_schema776.FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ timestamp: {
108
+ type: _lssm_lib_schema776.FieldType<Date, string>;
109
+ isOptional: false;
110
+ };
111
+ }>>;
112
+ /**
113
+ * InstanceCompletedEvent - A workflow instance has completed.
114
+ */
115
+ declare const InstanceCompletedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema776.SchemaModel<{
116
+ instanceId: {
117
+ type: _lssm_lib_schema776.FieldType<string, string>;
118
+ isOptional: false;
119
+ };
120
+ workflowId: {
121
+ type: _lssm_lib_schema776.FieldType<string, string>;
122
+ isOptional: false;
123
+ };
124
+ workflowKey: {
125
+ type: _lssm_lib_schema776.FieldType<string, string>;
126
+ isOptional: false;
127
+ };
128
+ outcome: {
129
+ type: _lssm_lib_schema776.FieldType<string, string>;
130
+ isOptional: false;
131
+ };
132
+ referenceId: {
133
+ type: _lssm_lib_schema776.FieldType<string, string>;
134
+ isOptional: true;
135
+ };
136
+ referenceType: {
137
+ type: _lssm_lib_schema776.FieldType<string, string>;
138
+ isOptional: true;
139
+ };
140
+ duration: {
141
+ type: _lssm_lib_schema776.FieldType<number, number>;
142
+ isOptional: false;
143
+ };
144
+ timestamp: {
145
+ type: _lssm_lib_schema776.FieldType<Date, string>;
146
+ isOptional: false;
147
+ };
148
+ }>>;
149
+ /**
150
+ * InstanceCancelledEvent - A workflow instance has been cancelled.
151
+ */
152
+ declare const InstanceCancelledEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema776.SchemaModel<{
153
+ instanceId: {
154
+ type: _lssm_lib_schema776.FieldType<string, string>;
155
+ isOptional: false;
156
+ };
157
+ workflowId: {
158
+ type: _lssm_lib_schema776.FieldType<string, string>;
159
+ isOptional: false;
160
+ };
161
+ workflowKey: {
162
+ type: _lssm_lib_schema776.FieldType<string, string>;
163
+ isOptional: false;
164
+ };
165
+ status: {
166
+ type: _lssm_lib_schema776.FieldType<string, string>;
167
+ isOptional: false;
168
+ };
169
+ referenceId: {
170
+ type: _lssm_lib_schema776.FieldType<string, string>;
171
+ isOptional: true;
172
+ };
173
+ referenceType: {
174
+ type: _lssm_lib_schema776.FieldType<string, string>;
175
+ isOptional: true;
176
+ };
177
+ triggeredBy: {
178
+ type: _lssm_lib_schema776.FieldType<string, string>;
179
+ isOptional: false;
180
+ };
181
+ organizationId: {
182
+ type: _lssm_lib_schema776.FieldType<string, string>;
183
+ isOptional: false;
184
+ };
185
+ timestamp: {
186
+ type: _lssm_lib_schema776.FieldType<Date, string>;
187
+ isOptional: false;
188
+ };
189
+ }>>;
190
+ /**
191
+ * InstancePausedEvent - A workflow instance has been paused.
192
+ */
193
+ declare const InstancePausedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema776.SchemaModel<{
194
+ instanceId: {
195
+ type: _lssm_lib_schema776.FieldType<string, string>;
196
+ isOptional: false;
197
+ };
198
+ workflowId: {
199
+ type: _lssm_lib_schema776.FieldType<string, string>;
200
+ isOptional: false;
201
+ };
202
+ workflowKey: {
203
+ type: _lssm_lib_schema776.FieldType<string, string>;
204
+ isOptional: false;
205
+ };
206
+ status: {
207
+ type: _lssm_lib_schema776.FieldType<string, string>;
208
+ isOptional: false;
209
+ };
210
+ referenceId: {
211
+ type: _lssm_lib_schema776.FieldType<string, string>;
212
+ isOptional: true;
213
+ };
214
+ referenceType: {
215
+ type: _lssm_lib_schema776.FieldType<string, string>;
216
+ isOptional: true;
217
+ };
218
+ triggeredBy: {
219
+ type: _lssm_lib_schema776.FieldType<string, string>;
220
+ isOptional: false;
221
+ };
222
+ organizationId: {
223
+ type: _lssm_lib_schema776.FieldType<string, string>;
224
+ isOptional: false;
225
+ };
226
+ timestamp: {
227
+ type: _lssm_lib_schema776.FieldType<Date, string>;
228
+ isOptional: false;
229
+ };
230
+ }>>;
231
+ /**
232
+ * InstanceResumedEvent - A workflow instance has been resumed.
233
+ */
234
+ declare const InstanceResumedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema776.SchemaModel<{
235
+ instanceId: {
236
+ type: _lssm_lib_schema776.FieldType<string, string>;
237
+ isOptional: false;
238
+ };
239
+ workflowId: {
240
+ type: _lssm_lib_schema776.FieldType<string, string>;
241
+ isOptional: false;
242
+ };
243
+ workflowKey: {
244
+ type: _lssm_lib_schema776.FieldType<string, string>;
245
+ isOptional: false;
246
+ };
247
+ status: {
248
+ type: _lssm_lib_schema776.FieldType<string, string>;
249
+ isOptional: false;
250
+ };
251
+ referenceId: {
252
+ type: _lssm_lib_schema776.FieldType<string, string>;
253
+ isOptional: true;
254
+ };
255
+ referenceType: {
256
+ type: _lssm_lib_schema776.FieldType<string, string>;
257
+ isOptional: true;
258
+ };
259
+ triggeredBy: {
260
+ type: _lssm_lib_schema776.FieldType<string, string>;
261
+ isOptional: false;
262
+ };
263
+ organizationId: {
264
+ type: _lssm_lib_schema776.FieldType<string, string>;
265
+ isOptional: false;
266
+ };
267
+ timestamp: {
268
+ type: _lssm_lib_schema776.FieldType<Date, string>;
269
+ isOptional: false;
270
+ };
271
+ }>>;
272
+ /**
273
+ * InstanceFailedEvent - A workflow instance has failed.
274
+ */
275
+ declare const InstanceFailedEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema776.SchemaModel<{
276
+ instanceId: {
277
+ type: _lssm_lib_schema776.FieldType<string, string>;
278
+ isOptional: false;
279
+ };
280
+ workflowId: {
281
+ type: _lssm_lib_schema776.FieldType<string, string>;
282
+ isOptional: false;
283
+ };
284
+ workflowKey: {
285
+ type: _lssm_lib_schema776.FieldType<string, string>;
286
+ isOptional: false;
287
+ };
288
+ status: {
289
+ type: _lssm_lib_schema776.FieldType<string, string>;
290
+ isOptional: false;
291
+ };
292
+ referenceId: {
293
+ type: _lssm_lib_schema776.FieldType<string, string>;
294
+ isOptional: true;
295
+ };
296
+ referenceType: {
297
+ type: _lssm_lib_schema776.FieldType<string, string>;
298
+ isOptional: true;
299
+ };
300
+ triggeredBy: {
301
+ type: _lssm_lib_schema776.FieldType<string, string>;
302
+ isOptional: false;
303
+ };
304
+ organizationId: {
305
+ type: _lssm_lib_schema776.FieldType<string, string>;
306
+ isOptional: false;
307
+ };
308
+ timestamp: {
309
+ type: _lssm_lib_schema776.FieldType<Date, string>;
310
+ isOptional: false;
311
+ };
312
+ }>>;
313
+ /**
314
+ * InstanceTimedOutEvent - A workflow instance has timed out.
315
+ */
316
+ declare const InstanceTimedOutEvent: _lssm_lib_contracts21.EventSpec<_lssm_lib_schema776.SchemaModel<{
317
+ instanceId: {
318
+ type: _lssm_lib_schema776.FieldType<string, string>;
319
+ isOptional: false;
320
+ };
321
+ workflowId: {
322
+ type: _lssm_lib_schema776.FieldType<string, string>;
323
+ isOptional: false;
324
+ };
325
+ workflowKey: {
326
+ type: _lssm_lib_schema776.FieldType<string, string>;
327
+ isOptional: false;
328
+ };
329
+ status: {
330
+ type: _lssm_lib_schema776.FieldType<string, string>;
331
+ isOptional: false;
332
+ };
333
+ referenceId: {
334
+ type: _lssm_lib_schema776.FieldType<string, string>;
335
+ isOptional: true;
336
+ };
337
+ referenceType: {
338
+ type: _lssm_lib_schema776.FieldType<string, string>;
339
+ isOptional: true;
340
+ };
341
+ triggeredBy: {
342
+ type: _lssm_lib_schema776.FieldType<string, string>;
343
+ isOptional: false;
344
+ };
345
+ organizationId: {
346
+ type: _lssm_lib_schema776.FieldType<string, string>;
347
+ isOptional: false;
348
+ };
349
+ timestamp: {
350
+ type: _lssm_lib_schema776.FieldType<Date, string>;
351
+ isOptional: false;
352
+ };
353
+ }>>;
354
+ //#endregion
355
+ export { InstanceCancelledEvent, InstanceCompletedEvent, InstanceFailedEvent, InstancePausedEvent, InstanceResumedEvent, InstanceStartedEvent, InstanceTimedOutEvent, StepEnteredEvent, StepExitedEvent };
@@ -0,0 +1,26 @@
1
+ import { HandlerContext, WorkflowInstanceRecord } from "../shared/types.js";
2
+
3
+ //#region src/instance/instance.handler.d.ts
4
+
5
+ declare function handleStartWorkflow(input: {
6
+ workflowKey: string;
7
+ contextData?: Record<string, unknown>;
8
+ referenceId?: string;
9
+ referenceType?: string;
10
+ priority?: number;
11
+ dueAt?: Date;
12
+ }, context: HandlerContext): Promise<WorkflowInstanceRecord>;
13
+ declare function handleTransitionWorkflow(input: {
14
+ instanceId: string;
15
+ action: string;
16
+ data?: Record<string, unknown>;
17
+ comment?: string;
18
+ }, context: HandlerContext): Promise<{
19
+ success: boolean;
20
+ instance: WorkflowInstanceRecord;
21
+ previousStepKey?: string;
22
+ currentStepKey?: string;
23
+ message?: string;
24
+ }>;
25
+ //#endregion
26
+ export { handleStartWorkflow, handleTransitionWorkflow };
@@ -0,0 +1,222 @@
1
+ import * as _lssm_lib_schema31 from "@lssm/lib.schema";
2
+
3
+ //#region src/instance/instance.schema.d.ts
4
+ /**
5
+ * A running workflow instance.
6
+ */
7
+ declare const WorkflowInstanceModel: _lssm_lib_schema31.SchemaModel<{
8
+ id: {
9
+ type: _lssm_lib_schema31.FieldType<string, string>;
10
+ isOptional: false;
11
+ };
12
+ workflowDefinitionId: {
13
+ type: _lssm_lib_schema31.FieldType<string, string>;
14
+ isOptional: false;
15
+ };
16
+ referenceId: {
17
+ type: _lssm_lib_schema31.FieldType<string, string>;
18
+ isOptional: true;
19
+ };
20
+ referenceType: {
21
+ type: _lssm_lib_schema31.FieldType<string, string>;
22
+ isOptional: true;
23
+ };
24
+ status: {
25
+ type: _lssm_lib_schema31.EnumType<[string, string, string, string, string, string, string, string]>;
26
+ isOptional: false;
27
+ };
28
+ currentStepId: {
29
+ type: _lssm_lib_schema31.FieldType<string, string>;
30
+ isOptional: true;
31
+ };
32
+ contextData: {
33
+ type: _lssm_lib_schema31.FieldType<unknown, unknown>;
34
+ isOptional: true;
35
+ };
36
+ triggeredBy: {
37
+ type: _lssm_lib_schema31.FieldType<string, string>;
38
+ isOptional: false;
39
+ };
40
+ organizationId: {
41
+ type: _lssm_lib_schema31.FieldType<string, string>;
42
+ isOptional: false;
43
+ };
44
+ priority: {
45
+ type: _lssm_lib_schema31.FieldType<number, number>;
46
+ isOptional: false;
47
+ };
48
+ dueAt: {
49
+ type: _lssm_lib_schema31.FieldType<Date, string>;
50
+ isOptional: true;
51
+ };
52
+ outcome: {
53
+ type: _lssm_lib_schema31.FieldType<string, string>;
54
+ isOptional: true;
55
+ };
56
+ resultData: {
57
+ type: _lssm_lib_schema31.FieldType<unknown, unknown>;
58
+ isOptional: true;
59
+ };
60
+ errorMessage: {
61
+ type: _lssm_lib_schema31.FieldType<string, string>;
62
+ isOptional: true;
63
+ };
64
+ createdAt: {
65
+ type: _lssm_lib_schema31.FieldType<Date, string>;
66
+ isOptional: false;
67
+ };
68
+ startedAt: {
69
+ type: _lssm_lib_schema31.FieldType<Date, string>;
70
+ isOptional: true;
71
+ };
72
+ completedAt: {
73
+ type: _lssm_lib_schema31.FieldType<Date, string>;
74
+ isOptional: true;
75
+ };
76
+ }>;
77
+ /**
78
+ * Input for starting a workflow.
79
+ */
80
+ declare const StartWorkflowInputModel: _lssm_lib_schema31.SchemaModel<{
81
+ workflowKey: {
82
+ type: _lssm_lib_schema31.FieldType<string, string>;
83
+ isOptional: false;
84
+ };
85
+ contextData: {
86
+ type: _lssm_lib_schema31.FieldType<unknown, unknown>;
87
+ isOptional: true;
88
+ };
89
+ referenceId: {
90
+ type: _lssm_lib_schema31.FieldType<string, string>;
91
+ isOptional: true;
92
+ };
93
+ referenceType: {
94
+ type: _lssm_lib_schema31.FieldType<string, string>;
95
+ isOptional: true;
96
+ };
97
+ priority: {
98
+ type: _lssm_lib_schema31.FieldType<number, number>;
99
+ isOptional: true;
100
+ };
101
+ dueAt: {
102
+ type: _lssm_lib_schema31.FieldType<Date, string>;
103
+ isOptional: true;
104
+ };
105
+ }>;
106
+ /**
107
+ * Input for transitioning a workflow.
108
+ */
109
+ declare const TransitionInputModel: _lssm_lib_schema31.SchemaModel<{
110
+ instanceId: {
111
+ type: _lssm_lib_schema31.FieldType<string, string>;
112
+ isOptional: false;
113
+ };
114
+ action: {
115
+ type: _lssm_lib_schema31.FieldType<string, string>;
116
+ isOptional: false;
117
+ };
118
+ data: {
119
+ type: _lssm_lib_schema31.FieldType<unknown, unknown>;
120
+ isOptional: true;
121
+ };
122
+ comment: {
123
+ type: _lssm_lib_schema31.FieldType<string, string>;
124
+ isOptional: true;
125
+ };
126
+ }>;
127
+ /**
128
+ * Result of a workflow transition.
129
+ */
130
+ declare const TransitionResultModel: _lssm_lib_schema31.SchemaModel<{
131
+ success: {
132
+ type: _lssm_lib_schema31.FieldType<boolean, boolean>;
133
+ isOptional: false;
134
+ };
135
+ instance: {
136
+ type: _lssm_lib_schema31.SchemaModel<{
137
+ id: {
138
+ type: _lssm_lib_schema31.FieldType<string, string>;
139
+ isOptional: false;
140
+ };
141
+ workflowDefinitionId: {
142
+ type: _lssm_lib_schema31.FieldType<string, string>;
143
+ isOptional: false;
144
+ };
145
+ referenceId: {
146
+ type: _lssm_lib_schema31.FieldType<string, string>;
147
+ isOptional: true;
148
+ };
149
+ referenceType: {
150
+ type: _lssm_lib_schema31.FieldType<string, string>;
151
+ isOptional: true;
152
+ };
153
+ status: {
154
+ type: _lssm_lib_schema31.EnumType<[string, string, string, string, string, string, string, string]>;
155
+ isOptional: false;
156
+ };
157
+ currentStepId: {
158
+ type: _lssm_lib_schema31.FieldType<string, string>;
159
+ isOptional: true;
160
+ };
161
+ contextData: {
162
+ type: _lssm_lib_schema31.FieldType<unknown, unknown>;
163
+ isOptional: true;
164
+ };
165
+ triggeredBy: {
166
+ type: _lssm_lib_schema31.FieldType<string, string>;
167
+ isOptional: false;
168
+ };
169
+ organizationId: {
170
+ type: _lssm_lib_schema31.FieldType<string, string>;
171
+ isOptional: false;
172
+ };
173
+ priority: {
174
+ type: _lssm_lib_schema31.FieldType<number, number>;
175
+ isOptional: false;
176
+ };
177
+ dueAt: {
178
+ type: _lssm_lib_schema31.FieldType<Date, string>;
179
+ isOptional: true;
180
+ };
181
+ outcome: {
182
+ type: _lssm_lib_schema31.FieldType<string, string>;
183
+ isOptional: true;
184
+ };
185
+ resultData: {
186
+ type: _lssm_lib_schema31.FieldType<unknown, unknown>;
187
+ isOptional: true;
188
+ };
189
+ errorMessage: {
190
+ type: _lssm_lib_schema31.FieldType<string, string>;
191
+ isOptional: true;
192
+ };
193
+ createdAt: {
194
+ type: _lssm_lib_schema31.FieldType<Date, string>;
195
+ isOptional: false;
196
+ };
197
+ startedAt: {
198
+ type: _lssm_lib_schema31.FieldType<Date, string>;
199
+ isOptional: true;
200
+ };
201
+ completedAt: {
202
+ type: _lssm_lib_schema31.FieldType<Date, string>;
203
+ isOptional: true;
204
+ };
205
+ }>;
206
+ isOptional: false;
207
+ };
208
+ previousStepKey: {
209
+ type: _lssm_lib_schema31.FieldType<string, string>;
210
+ isOptional: true;
211
+ };
212
+ currentStepKey: {
213
+ type: _lssm_lib_schema31.FieldType<string, string>;
214
+ isOptional: true;
215
+ };
216
+ message: {
217
+ type: _lssm_lib_schema31.FieldType<string, string>;
218
+ isOptional: true;
219
+ };
220
+ }>;
221
+ //#endregion
222
+ export { StartWorkflowInputModel, TransitionInputModel, TransitionResultModel, WorkflowInstanceModel };
@@ -0,0 +1,63 @@
1
+ import { PresentationDescriptorV2 } from "@lssm/lib.contracts";
2
+
3
+ //#region src/presentations/index.d.ts
4
+
5
+ /**
6
+ * Workflow designer canvas for building workflows.
7
+ */
8
+ declare const WorkflowDesignerPresentation: PresentationDescriptorV2;
9
+ /**
10
+ * List of workflow definitions.
11
+ */
12
+ declare const WorkflowListPresentation: PresentationDescriptorV2;
13
+ /**
14
+ * Workflow definition detail view.
15
+ */
16
+ declare const WorkflowDetailPresentation: PresentationDescriptorV2;
17
+ /**
18
+ * List of running workflow instances.
19
+ */
20
+ declare const InstanceListPresentation: PresentationDescriptorV2;
21
+ /**
22
+ * Workflow instance detail view with timeline.
23
+ */
24
+ declare const InstanceDetailPresentation: PresentationDescriptorV2;
25
+ /**
26
+ * Workflow progress tracker widget.
27
+ */
28
+ declare const ProgressTrackerPresentation: PresentationDescriptorV2;
29
+ /**
30
+ * Approval inbox - list of pending approvals.
31
+ */
32
+ declare const ApprovalInboxPresentation: PresentationDescriptorV2;
33
+ /**
34
+ * Approval request detail view.
35
+ */
36
+ declare const ApprovalDetailPresentation: PresentationDescriptorV2;
37
+ /**
38
+ * Approval decision form.
39
+ */
40
+ declare const ApprovalFormPresentation: PresentationDescriptorV2;
41
+ /**
42
+ * Pending approvals count badge.
43
+ */
44
+ declare const PendingApprovalsBadgePresentation: PresentationDescriptorV2;
45
+ /**
46
+ * Workflow metrics dashboard widget.
47
+ */
48
+ declare const WorkflowMetricsPresentation: PresentationDescriptorV2;
49
+ declare const WorkflowSystemPresentations: {
50
+ WorkflowDesignerPresentation: PresentationDescriptorV2;
51
+ WorkflowListPresentation: PresentationDescriptorV2;
52
+ WorkflowDetailPresentation: PresentationDescriptorV2;
53
+ InstanceListPresentation: PresentationDescriptorV2;
54
+ InstanceDetailPresentation: PresentationDescriptorV2;
55
+ ProgressTrackerPresentation: PresentationDescriptorV2;
56
+ ApprovalInboxPresentation: PresentationDescriptorV2;
57
+ ApprovalDetailPresentation: PresentationDescriptorV2;
58
+ ApprovalFormPresentation: PresentationDescriptorV2;
59
+ PendingApprovalsBadgePresentation: PresentationDescriptorV2;
60
+ WorkflowMetricsPresentation: PresentationDescriptorV2;
61
+ };
62
+ //#endregion
63
+ export { ApprovalDetailPresentation, ApprovalFormPresentation, ApprovalInboxPresentation, InstanceDetailPresentation, InstanceListPresentation, PendingApprovalsBadgePresentation, ProgressTrackerPresentation, WorkflowDesignerPresentation, WorkflowDetailPresentation, WorkflowListPresentation, WorkflowMetricsPresentation, WorkflowSystemPresentations };
@@ -0,0 +1,3 @@
1
+ import { ApprovalRequestRecord, HandlerContext, WorkflowDefinitionRecord, WorkflowInstanceRecord, WorkflowStepRecord } from "./types.js";
2
+ import { mockDataStore } from "./mock-data.js";
3
+ export { ApprovalRequestRecord, HandlerContext, WorkflowDefinitionRecord, WorkflowInstanceRecord, WorkflowStepRecord, mockDataStore };
@@ -0,0 +1,18 @@
1
+ import { ApprovalRequestRecord, WorkflowDefinitionRecord, WorkflowInstanceRecord, WorkflowStepRecord } from "./types.js";
2
+
3
+ //#region src/shared/mock-data.d.ts
4
+
5
+ declare const mockDataStore: {
6
+ workflows: Map<string, WorkflowDefinitionRecord>;
7
+ steps: Map<string, WorkflowStepRecord>;
8
+ instances: Map<string, WorkflowInstanceRecord>;
9
+ approvals: Map<string, ApprovalRequestRecord>;
10
+ stepExecutions: Map<string, {
11
+ id: string;
12
+ instanceId: string;
13
+ stepId: string;
14
+ status: string;
15
+ }>;
16
+ };
17
+ //#endregion
18
+ export { mockDataStore };