@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,1010 @@
1
+ import * as _lssm_lib_schema278 from "@lssm/lib.schema";
2
+ import * as _lssm_lib_contracts8 from "@lssm/lib.contracts";
3
+
4
+ //#region src/workflow/workflow.contracts.d.ts
5
+ /**
6
+ * Create a new workflow definition.
7
+ */
8
+ declare const CreateWorkflowContract: _lssm_lib_contracts8.ContractSpec<_lssm_lib_schema278.SchemaModel<{
9
+ name: {
10
+ type: _lssm_lib_schema278.FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ key: {
14
+ type: _lssm_lib_schema278.FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ description: {
18
+ type: _lssm_lib_schema278.FieldType<string, string>;
19
+ isOptional: true;
20
+ };
21
+ triggerType: {
22
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
23
+ isOptional: true;
24
+ };
25
+ triggerConfig: {
26
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
27
+ isOptional: true;
28
+ };
29
+ featureFlagKey: {
30
+ type: _lssm_lib_schema278.FieldType<string, string>;
31
+ isOptional: true;
32
+ };
33
+ settings: {
34
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
35
+ isOptional: true;
36
+ };
37
+ }>, _lssm_lib_schema278.SchemaModel<{
38
+ id: {
39
+ type: _lssm_lib_schema278.FieldType<string, string>;
40
+ isOptional: false;
41
+ };
42
+ name: {
43
+ type: _lssm_lib_schema278.FieldType<string, string>;
44
+ isOptional: false;
45
+ };
46
+ key: {
47
+ type: _lssm_lib_schema278.FieldType<string, string>;
48
+ isOptional: false;
49
+ };
50
+ description: {
51
+ type: _lssm_lib_schema278.FieldType<string, string>;
52
+ isOptional: true;
53
+ };
54
+ version: {
55
+ type: _lssm_lib_schema278.FieldType<number, number>;
56
+ isOptional: false;
57
+ };
58
+ status: {
59
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
60
+ isOptional: false;
61
+ };
62
+ triggerType: {
63
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
64
+ isOptional: false;
65
+ };
66
+ initialStepId: {
67
+ type: _lssm_lib_schema278.FieldType<string, string>;
68
+ isOptional: true;
69
+ };
70
+ featureFlagKey: {
71
+ type: _lssm_lib_schema278.FieldType<string, string>;
72
+ isOptional: true;
73
+ };
74
+ organizationId: {
75
+ type: _lssm_lib_schema278.FieldType<string, string>;
76
+ isOptional: false;
77
+ };
78
+ createdAt: {
79
+ type: _lssm_lib_schema278.FieldType<Date, string>;
80
+ isOptional: false;
81
+ };
82
+ updatedAt: {
83
+ type: _lssm_lib_schema278.FieldType<Date, string>;
84
+ isOptional: false;
85
+ };
86
+ steps: {
87
+ type: _lssm_lib_schema278.SchemaModel<{
88
+ id: {
89
+ type: _lssm_lib_schema278.FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ key: {
93
+ type: _lssm_lib_schema278.FieldType<string, string>;
94
+ isOptional: false;
95
+ };
96
+ name: {
97
+ type: _lssm_lib_schema278.FieldType<string, string>;
98
+ isOptional: false;
99
+ };
100
+ description: {
101
+ type: _lssm_lib_schema278.FieldType<string, string>;
102
+ isOptional: true;
103
+ };
104
+ type: {
105
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
106
+ isOptional: false;
107
+ };
108
+ position: {
109
+ type: _lssm_lib_schema278.FieldType<number, number>;
110
+ isOptional: false;
111
+ };
112
+ transitions: {
113
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
114
+ isOptional: false;
115
+ };
116
+ approvalMode: {
117
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
118
+ isOptional: true;
119
+ };
120
+ approverRoles: {
121
+ type: _lssm_lib_schema278.FieldType<string, string>;
122
+ isArray: true;
123
+ isOptional: true;
124
+ };
125
+ }>;
126
+ isArray: true;
127
+ isOptional: true;
128
+ };
129
+ }>, {
130
+ name: string;
131
+ version: number;
132
+ when: string;
133
+ payload: _lssm_lib_schema278.SchemaModel<{
134
+ id: {
135
+ type: _lssm_lib_schema278.FieldType<string, string>;
136
+ isOptional: false;
137
+ };
138
+ name: {
139
+ type: _lssm_lib_schema278.FieldType<string, string>;
140
+ isOptional: false;
141
+ };
142
+ key: {
143
+ type: _lssm_lib_schema278.FieldType<string, string>;
144
+ isOptional: false;
145
+ };
146
+ description: {
147
+ type: _lssm_lib_schema278.FieldType<string, string>;
148
+ isOptional: true;
149
+ };
150
+ version: {
151
+ type: _lssm_lib_schema278.FieldType<number, number>;
152
+ isOptional: false;
153
+ };
154
+ status: {
155
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
156
+ isOptional: false;
157
+ };
158
+ triggerType: {
159
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
160
+ isOptional: false;
161
+ };
162
+ initialStepId: {
163
+ type: _lssm_lib_schema278.FieldType<string, string>;
164
+ isOptional: true;
165
+ };
166
+ featureFlagKey: {
167
+ type: _lssm_lib_schema278.FieldType<string, string>;
168
+ isOptional: true;
169
+ };
170
+ organizationId: {
171
+ type: _lssm_lib_schema278.FieldType<string, string>;
172
+ isOptional: false;
173
+ };
174
+ createdAt: {
175
+ type: _lssm_lib_schema278.FieldType<Date, string>;
176
+ isOptional: false;
177
+ };
178
+ updatedAt: {
179
+ type: _lssm_lib_schema278.FieldType<Date, string>;
180
+ isOptional: false;
181
+ };
182
+ steps: {
183
+ type: _lssm_lib_schema278.SchemaModel<{
184
+ id: {
185
+ type: _lssm_lib_schema278.FieldType<string, string>;
186
+ isOptional: false;
187
+ };
188
+ key: {
189
+ type: _lssm_lib_schema278.FieldType<string, string>;
190
+ isOptional: false;
191
+ };
192
+ name: {
193
+ type: _lssm_lib_schema278.FieldType<string, string>;
194
+ isOptional: false;
195
+ };
196
+ description: {
197
+ type: _lssm_lib_schema278.FieldType<string, string>;
198
+ isOptional: true;
199
+ };
200
+ type: {
201
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
202
+ isOptional: false;
203
+ };
204
+ position: {
205
+ type: _lssm_lib_schema278.FieldType<number, number>;
206
+ isOptional: false;
207
+ };
208
+ transitions: {
209
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
210
+ isOptional: false;
211
+ };
212
+ approvalMode: {
213
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
214
+ isOptional: true;
215
+ };
216
+ approverRoles: {
217
+ type: _lssm_lib_schema278.FieldType<string, string>;
218
+ isArray: true;
219
+ isOptional: true;
220
+ };
221
+ }>;
222
+ isArray: true;
223
+ isOptional: true;
224
+ };
225
+ }>;
226
+ }[]>;
227
+ /**
228
+ * Update an existing workflow definition.
229
+ */
230
+ declare const UpdateWorkflowContract: _lssm_lib_contracts8.ContractSpec<_lssm_lib_schema278.SchemaModel<{
231
+ workflowId: {
232
+ type: _lssm_lib_schema278.FieldType<string, string>;
233
+ isOptional: false;
234
+ };
235
+ name: {
236
+ type: _lssm_lib_schema278.FieldType<string, string>;
237
+ isOptional: true;
238
+ };
239
+ description: {
240
+ type: _lssm_lib_schema278.FieldType<string, string>;
241
+ isOptional: true;
242
+ };
243
+ triggerType: {
244
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
245
+ isOptional: true;
246
+ };
247
+ triggerConfig: {
248
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
249
+ isOptional: true;
250
+ };
251
+ featureFlagKey: {
252
+ type: _lssm_lib_schema278.FieldType<string, string>;
253
+ isOptional: true;
254
+ };
255
+ settings: {
256
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
257
+ isOptional: true;
258
+ };
259
+ }>, _lssm_lib_schema278.SchemaModel<{
260
+ id: {
261
+ type: _lssm_lib_schema278.FieldType<string, string>;
262
+ isOptional: false;
263
+ };
264
+ name: {
265
+ type: _lssm_lib_schema278.FieldType<string, string>;
266
+ isOptional: false;
267
+ };
268
+ key: {
269
+ type: _lssm_lib_schema278.FieldType<string, string>;
270
+ isOptional: false;
271
+ };
272
+ description: {
273
+ type: _lssm_lib_schema278.FieldType<string, string>;
274
+ isOptional: true;
275
+ };
276
+ version: {
277
+ type: _lssm_lib_schema278.FieldType<number, number>;
278
+ isOptional: false;
279
+ };
280
+ status: {
281
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
282
+ isOptional: false;
283
+ };
284
+ triggerType: {
285
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
286
+ isOptional: false;
287
+ };
288
+ initialStepId: {
289
+ type: _lssm_lib_schema278.FieldType<string, string>;
290
+ isOptional: true;
291
+ };
292
+ featureFlagKey: {
293
+ type: _lssm_lib_schema278.FieldType<string, string>;
294
+ isOptional: true;
295
+ };
296
+ organizationId: {
297
+ type: _lssm_lib_schema278.FieldType<string, string>;
298
+ isOptional: false;
299
+ };
300
+ createdAt: {
301
+ type: _lssm_lib_schema278.FieldType<Date, string>;
302
+ isOptional: false;
303
+ };
304
+ updatedAt: {
305
+ type: _lssm_lib_schema278.FieldType<Date, string>;
306
+ isOptional: false;
307
+ };
308
+ steps: {
309
+ type: _lssm_lib_schema278.SchemaModel<{
310
+ id: {
311
+ type: _lssm_lib_schema278.FieldType<string, string>;
312
+ isOptional: false;
313
+ };
314
+ key: {
315
+ type: _lssm_lib_schema278.FieldType<string, string>;
316
+ isOptional: false;
317
+ };
318
+ name: {
319
+ type: _lssm_lib_schema278.FieldType<string, string>;
320
+ isOptional: false;
321
+ };
322
+ description: {
323
+ type: _lssm_lib_schema278.FieldType<string, string>;
324
+ isOptional: true;
325
+ };
326
+ type: {
327
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
328
+ isOptional: false;
329
+ };
330
+ position: {
331
+ type: _lssm_lib_schema278.FieldType<number, number>;
332
+ isOptional: false;
333
+ };
334
+ transitions: {
335
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
336
+ isOptional: false;
337
+ };
338
+ approvalMode: {
339
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
340
+ isOptional: true;
341
+ };
342
+ approverRoles: {
343
+ type: _lssm_lib_schema278.FieldType<string, string>;
344
+ isArray: true;
345
+ isOptional: true;
346
+ };
347
+ }>;
348
+ isArray: true;
349
+ isOptional: true;
350
+ };
351
+ }>, {
352
+ name: string;
353
+ version: number;
354
+ when: string;
355
+ payload: _lssm_lib_schema278.SchemaModel<{
356
+ id: {
357
+ type: _lssm_lib_schema278.FieldType<string, string>;
358
+ isOptional: false;
359
+ };
360
+ name: {
361
+ type: _lssm_lib_schema278.FieldType<string, string>;
362
+ isOptional: false;
363
+ };
364
+ key: {
365
+ type: _lssm_lib_schema278.FieldType<string, string>;
366
+ isOptional: false;
367
+ };
368
+ description: {
369
+ type: _lssm_lib_schema278.FieldType<string, string>;
370
+ isOptional: true;
371
+ };
372
+ version: {
373
+ type: _lssm_lib_schema278.FieldType<number, number>;
374
+ isOptional: false;
375
+ };
376
+ status: {
377
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
378
+ isOptional: false;
379
+ };
380
+ triggerType: {
381
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
382
+ isOptional: false;
383
+ };
384
+ initialStepId: {
385
+ type: _lssm_lib_schema278.FieldType<string, string>;
386
+ isOptional: true;
387
+ };
388
+ featureFlagKey: {
389
+ type: _lssm_lib_schema278.FieldType<string, string>;
390
+ isOptional: true;
391
+ };
392
+ organizationId: {
393
+ type: _lssm_lib_schema278.FieldType<string, string>;
394
+ isOptional: false;
395
+ };
396
+ createdAt: {
397
+ type: _lssm_lib_schema278.FieldType<Date, string>;
398
+ isOptional: false;
399
+ };
400
+ updatedAt: {
401
+ type: _lssm_lib_schema278.FieldType<Date, string>;
402
+ isOptional: false;
403
+ };
404
+ steps: {
405
+ type: _lssm_lib_schema278.SchemaModel<{
406
+ id: {
407
+ type: _lssm_lib_schema278.FieldType<string, string>;
408
+ isOptional: false;
409
+ };
410
+ key: {
411
+ type: _lssm_lib_schema278.FieldType<string, string>;
412
+ isOptional: false;
413
+ };
414
+ name: {
415
+ type: _lssm_lib_schema278.FieldType<string, string>;
416
+ isOptional: false;
417
+ };
418
+ description: {
419
+ type: _lssm_lib_schema278.FieldType<string, string>;
420
+ isOptional: true;
421
+ };
422
+ type: {
423
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
424
+ isOptional: false;
425
+ };
426
+ position: {
427
+ type: _lssm_lib_schema278.FieldType<number, number>;
428
+ isOptional: false;
429
+ };
430
+ transitions: {
431
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
432
+ isOptional: false;
433
+ };
434
+ approvalMode: {
435
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
436
+ isOptional: true;
437
+ };
438
+ approverRoles: {
439
+ type: _lssm_lib_schema278.FieldType<string, string>;
440
+ isArray: true;
441
+ isOptional: true;
442
+ };
443
+ }>;
444
+ isArray: true;
445
+ isOptional: true;
446
+ };
447
+ }>;
448
+ }[]>;
449
+ /**
450
+ * Add a step to a workflow definition.
451
+ */
452
+ declare const AddStepContract: _lssm_lib_contracts8.ContractSpec<_lssm_lib_schema278.SchemaModel<{
453
+ workflowId: {
454
+ type: _lssm_lib_schema278.FieldType<string, string>;
455
+ isOptional: false;
456
+ };
457
+ key: {
458
+ type: _lssm_lib_schema278.FieldType<string, string>;
459
+ isOptional: false;
460
+ };
461
+ name: {
462
+ type: _lssm_lib_schema278.FieldType<string, string>;
463
+ isOptional: false;
464
+ };
465
+ description: {
466
+ type: _lssm_lib_schema278.FieldType<string, string>;
467
+ isOptional: true;
468
+ };
469
+ type: {
470
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
471
+ isOptional: false;
472
+ };
473
+ position: {
474
+ type: _lssm_lib_schema278.FieldType<number, number>;
475
+ isOptional: true;
476
+ };
477
+ transitions: {
478
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
479
+ isOptional: false;
480
+ };
481
+ approvalMode: {
482
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
483
+ isOptional: true;
484
+ };
485
+ approverRoles: {
486
+ type: _lssm_lib_schema278.FieldType<string, string>;
487
+ isArray: true;
488
+ isOptional: true;
489
+ };
490
+ approverUserIds: {
491
+ type: _lssm_lib_schema278.FieldType<string, string>;
492
+ isArray: true;
493
+ isOptional: true;
494
+ };
495
+ timeoutSeconds: {
496
+ type: _lssm_lib_schema278.FieldType<number, number>;
497
+ isOptional: true;
498
+ };
499
+ slaSeconds: {
500
+ type: _lssm_lib_schema278.FieldType<number, number>;
501
+ isOptional: true;
502
+ };
503
+ }>, _lssm_lib_schema278.SchemaModel<{
504
+ id: {
505
+ type: _lssm_lib_schema278.FieldType<string, string>;
506
+ isOptional: false;
507
+ };
508
+ key: {
509
+ type: _lssm_lib_schema278.FieldType<string, string>;
510
+ isOptional: false;
511
+ };
512
+ name: {
513
+ type: _lssm_lib_schema278.FieldType<string, string>;
514
+ isOptional: false;
515
+ };
516
+ description: {
517
+ type: _lssm_lib_schema278.FieldType<string, string>;
518
+ isOptional: true;
519
+ };
520
+ type: {
521
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
522
+ isOptional: false;
523
+ };
524
+ position: {
525
+ type: _lssm_lib_schema278.FieldType<number, number>;
526
+ isOptional: false;
527
+ };
528
+ transitions: {
529
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
530
+ isOptional: false;
531
+ };
532
+ approvalMode: {
533
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
534
+ isOptional: true;
535
+ };
536
+ approverRoles: {
537
+ type: _lssm_lib_schema278.FieldType<string, string>;
538
+ isArray: true;
539
+ isOptional: true;
540
+ };
541
+ }>, {
542
+ name: string;
543
+ version: number;
544
+ when: string;
545
+ payload: _lssm_lib_schema278.SchemaModel<{
546
+ id: {
547
+ type: _lssm_lib_schema278.FieldType<string, string>;
548
+ isOptional: false;
549
+ };
550
+ key: {
551
+ type: _lssm_lib_schema278.FieldType<string, string>;
552
+ isOptional: false;
553
+ };
554
+ name: {
555
+ type: _lssm_lib_schema278.FieldType<string, string>;
556
+ isOptional: false;
557
+ };
558
+ description: {
559
+ type: _lssm_lib_schema278.FieldType<string, string>;
560
+ isOptional: true;
561
+ };
562
+ type: {
563
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
564
+ isOptional: false;
565
+ };
566
+ position: {
567
+ type: _lssm_lib_schema278.FieldType<number, number>;
568
+ isOptional: false;
569
+ };
570
+ transitions: {
571
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
572
+ isOptional: false;
573
+ };
574
+ approvalMode: {
575
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
576
+ isOptional: true;
577
+ };
578
+ approverRoles: {
579
+ type: _lssm_lib_schema278.FieldType<string, string>;
580
+ isArray: true;
581
+ isOptional: true;
582
+ };
583
+ }>;
584
+ }[]>;
585
+ /**
586
+ * Publish a workflow definition (make it active).
587
+ */
588
+ declare const PublishWorkflowContract: _lssm_lib_contracts8.ContractSpec<_lssm_lib_schema278.SchemaModel<{
589
+ workflowId: {
590
+ type: _lssm_lib_schema278.FieldType<string, string>;
591
+ isOptional: false;
592
+ };
593
+ }>, _lssm_lib_schema278.SchemaModel<{
594
+ id: {
595
+ type: _lssm_lib_schema278.FieldType<string, string>;
596
+ isOptional: false;
597
+ };
598
+ name: {
599
+ type: _lssm_lib_schema278.FieldType<string, string>;
600
+ isOptional: false;
601
+ };
602
+ key: {
603
+ type: _lssm_lib_schema278.FieldType<string, string>;
604
+ isOptional: false;
605
+ };
606
+ description: {
607
+ type: _lssm_lib_schema278.FieldType<string, string>;
608
+ isOptional: true;
609
+ };
610
+ version: {
611
+ type: _lssm_lib_schema278.FieldType<number, number>;
612
+ isOptional: false;
613
+ };
614
+ status: {
615
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
616
+ isOptional: false;
617
+ };
618
+ triggerType: {
619
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
620
+ isOptional: false;
621
+ };
622
+ initialStepId: {
623
+ type: _lssm_lib_schema278.FieldType<string, string>;
624
+ isOptional: true;
625
+ };
626
+ featureFlagKey: {
627
+ type: _lssm_lib_schema278.FieldType<string, string>;
628
+ isOptional: true;
629
+ };
630
+ organizationId: {
631
+ type: _lssm_lib_schema278.FieldType<string, string>;
632
+ isOptional: false;
633
+ };
634
+ createdAt: {
635
+ type: _lssm_lib_schema278.FieldType<Date, string>;
636
+ isOptional: false;
637
+ };
638
+ updatedAt: {
639
+ type: _lssm_lib_schema278.FieldType<Date, string>;
640
+ isOptional: false;
641
+ };
642
+ steps: {
643
+ type: _lssm_lib_schema278.SchemaModel<{
644
+ id: {
645
+ type: _lssm_lib_schema278.FieldType<string, string>;
646
+ isOptional: false;
647
+ };
648
+ key: {
649
+ type: _lssm_lib_schema278.FieldType<string, string>;
650
+ isOptional: false;
651
+ };
652
+ name: {
653
+ type: _lssm_lib_schema278.FieldType<string, string>;
654
+ isOptional: false;
655
+ };
656
+ description: {
657
+ type: _lssm_lib_schema278.FieldType<string, string>;
658
+ isOptional: true;
659
+ };
660
+ type: {
661
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
662
+ isOptional: false;
663
+ };
664
+ position: {
665
+ type: _lssm_lib_schema278.FieldType<number, number>;
666
+ isOptional: false;
667
+ };
668
+ transitions: {
669
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
670
+ isOptional: false;
671
+ };
672
+ approvalMode: {
673
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
674
+ isOptional: true;
675
+ };
676
+ approverRoles: {
677
+ type: _lssm_lib_schema278.FieldType<string, string>;
678
+ isArray: true;
679
+ isOptional: true;
680
+ };
681
+ }>;
682
+ isArray: true;
683
+ isOptional: true;
684
+ };
685
+ }>, {
686
+ name: string;
687
+ version: number;
688
+ when: string;
689
+ payload: _lssm_lib_schema278.SchemaModel<{
690
+ id: {
691
+ type: _lssm_lib_schema278.FieldType<string, string>;
692
+ isOptional: false;
693
+ };
694
+ name: {
695
+ type: _lssm_lib_schema278.FieldType<string, string>;
696
+ isOptional: false;
697
+ };
698
+ key: {
699
+ type: _lssm_lib_schema278.FieldType<string, string>;
700
+ isOptional: false;
701
+ };
702
+ description: {
703
+ type: _lssm_lib_schema278.FieldType<string, string>;
704
+ isOptional: true;
705
+ };
706
+ version: {
707
+ type: _lssm_lib_schema278.FieldType<number, number>;
708
+ isOptional: false;
709
+ };
710
+ status: {
711
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
712
+ isOptional: false;
713
+ };
714
+ triggerType: {
715
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
716
+ isOptional: false;
717
+ };
718
+ initialStepId: {
719
+ type: _lssm_lib_schema278.FieldType<string, string>;
720
+ isOptional: true;
721
+ };
722
+ featureFlagKey: {
723
+ type: _lssm_lib_schema278.FieldType<string, string>;
724
+ isOptional: true;
725
+ };
726
+ organizationId: {
727
+ type: _lssm_lib_schema278.FieldType<string, string>;
728
+ isOptional: false;
729
+ };
730
+ createdAt: {
731
+ type: _lssm_lib_schema278.FieldType<Date, string>;
732
+ isOptional: false;
733
+ };
734
+ updatedAt: {
735
+ type: _lssm_lib_schema278.FieldType<Date, string>;
736
+ isOptional: false;
737
+ };
738
+ steps: {
739
+ type: _lssm_lib_schema278.SchemaModel<{
740
+ id: {
741
+ type: _lssm_lib_schema278.FieldType<string, string>;
742
+ isOptional: false;
743
+ };
744
+ key: {
745
+ type: _lssm_lib_schema278.FieldType<string, string>;
746
+ isOptional: false;
747
+ };
748
+ name: {
749
+ type: _lssm_lib_schema278.FieldType<string, string>;
750
+ isOptional: false;
751
+ };
752
+ description: {
753
+ type: _lssm_lib_schema278.FieldType<string, string>;
754
+ isOptional: true;
755
+ };
756
+ type: {
757
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
758
+ isOptional: false;
759
+ };
760
+ position: {
761
+ type: _lssm_lib_schema278.FieldType<number, number>;
762
+ isOptional: false;
763
+ };
764
+ transitions: {
765
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
766
+ isOptional: false;
767
+ };
768
+ approvalMode: {
769
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
770
+ isOptional: true;
771
+ };
772
+ approverRoles: {
773
+ type: _lssm_lib_schema278.FieldType<string, string>;
774
+ isArray: true;
775
+ isOptional: true;
776
+ };
777
+ }>;
778
+ isArray: true;
779
+ isOptional: true;
780
+ };
781
+ }>;
782
+ }[]>;
783
+ /**
784
+ * List workflow definitions.
785
+ */
786
+ declare const ListWorkflowsContract: _lssm_lib_contracts8.ContractSpec<_lssm_lib_schema278.SchemaModel<{
787
+ status: {
788
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
789
+ isOptional: true;
790
+ };
791
+ search: {
792
+ type: _lssm_lib_schema278.FieldType<string, string>;
793
+ isOptional: true;
794
+ };
795
+ limit: {
796
+ type: _lssm_lib_schema278.FieldType<number, number>;
797
+ isOptional: true;
798
+ defaultValue: number;
799
+ };
800
+ offset: {
801
+ type: _lssm_lib_schema278.FieldType<number, number>;
802
+ isOptional: true;
803
+ defaultValue: number;
804
+ };
805
+ }>, _lssm_lib_schema278.SchemaModel<{
806
+ workflows: {
807
+ type: _lssm_lib_schema278.SchemaModel<{
808
+ id: {
809
+ type: _lssm_lib_schema278.FieldType<string, string>;
810
+ isOptional: false;
811
+ };
812
+ name: {
813
+ type: _lssm_lib_schema278.FieldType<string, string>;
814
+ isOptional: false;
815
+ };
816
+ key: {
817
+ type: _lssm_lib_schema278.FieldType<string, string>;
818
+ isOptional: false;
819
+ };
820
+ description: {
821
+ type: _lssm_lib_schema278.FieldType<string, string>;
822
+ isOptional: true;
823
+ };
824
+ version: {
825
+ type: _lssm_lib_schema278.FieldType<number, number>;
826
+ isOptional: false;
827
+ };
828
+ status: {
829
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
830
+ isOptional: false;
831
+ };
832
+ triggerType: {
833
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
834
+ isOptional: false;
835
+ };
836
+ initialStepId: {
837
+ type: _lssm_lib_schema278.FieldType<string, string>;
838
+ isOptional: true;
839
+ };
840
+ featureFlagKey: {
841
+ type: _lssm_lib_schema278.FieldType<string, string>;
842
+ isOptional: true;
843
+ };
844
+ organizationId: {
845
+ type: _lssm_lib_schema278.FieldType<string, string>;
846
+ isOptional: false;
847
+ };
848
+ createdAt: {
849
+ type: _lssm_lib_schema278.FieldType<Date, string>;
850
+ isOptional: false;
851
+ };
852
+ updatedAt: {
853
+ type: _lssm_lib_schema278.FieldType<Date, string>;
854
+ isOptional: false;
855
+ };
856
+ steps: {
857
+ type: _lssm_lib_schema278.SchemaModel<{
858
+ id: {
859
+ type: _lssm_lib_schema278.FieldType<string, string>;
860
+ isOptional: false;
861
+ };
862
+ key: {
863
+ type: _lssm_lib_schema278.FieldType<string, string>;
864
+ isOptional: false;
865
+ };
866
+ name: {
867
+ type: _lssm_lib_schema278.FieldType<string, string>;
868
+ isOptional: false;
869
+ };
870
+ description: {
871
+ type: _lssm_lib_schema278.FieldType<string, string>;
872
+ isOptional: true;
873
+ };
874
+ type: {
875
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
876
+ isOptional: false;
877
+ };
878
+ position: {
879
+ type: _lssm_lib_schema278.FieldType<number, number>;
880
+ isOptional: false;
881
+ };
882
+ transitions: {
883
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
884
+ isOptional: false;
885
+ };
886
+ approvalMode: {
887
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
888
+ isOptional: true;
889
+ };
890
+ approverRoles: {
891
+ type: _lssm_lib_schema278.FieldType<string, string>;
892
+ isArray: true;
893
+ isOptional: true;
894
+ };
895
+ }>;
896
+ isArray: true;
897
+ isOptional: true;
898
+ };
899
+ }>;
900
+ isArray: true;
901
+ isOptional: false;
902
+ };
903
+ total: {
904
+ type: _lssm_lib_schema278.FieldType<number, number>;
905
+ isOptional: false;
906
+ };
907
+ }>, undefined>;
908
+ /**
909
+ * Get a single workflow definition with steps.
910
+ */
911
+ declare const GetWorkflowContract: _lssm_lib_contracts8.ContractSpec<_lssm_lib_schema278.SchemaModel<{
912
+ workflowId: {
913
+ type: _lssm_lib_schema278.FieldType<string, string>;
914
+ isOptional: false;
915
+ };
916
+ }>, _lssm_lib_schema278.SchemaModel<{
917
+ id: {
918
+ type: _lssm_lib_schema278.FieldType<string, string>;
919
+ isOptional: false;
920
+ };
921
+ name: {
922
+ type: _lssm_lib_schema278.FieldType<string, string>;
923
+ isOptional: false;
924
+ };
925
+ key: {
926
+ type: _lssm_lib_schema278.FieldType<string, string>;
927
+ isOptional: false;
928
+ };
929
+ description: {
930
+ type: _lssm_lib_schema278.FieldType<string, string>;
931
+ isOptional: true;
932
+ };
933
+ version: {
934
+ type: _lssm_lib_schema278.FieldType<number, number>;
935
+ isOptional: false;
936
+ };
937
+ status: {
938
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
939
+ isOptional: false;
940
+ };
941
+ triggerType: {
942
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
943
+ isOptional: false;
944
+ };
945
+ initialStepId: {
946
+ type: _lssm_lib_schema278.FieldType<string, string>;
947
+ isOptional: true;
948
+ };
949
+ featureFlagKey: {
950
+ type: _lssm_lib_schema278.FieldType<string, string>;
951
+ isOptional: true;
952
+ };
953
+ organizationId: {
954
+ type: _lssm_lib_schema278.FieldType<string, string>;
955
+ isOptional: false;
956
+ };
957
+ createdAt: {
958
+ type: _lssm_lib_schema278.FieldType<Date, string>;
959
+ isOptional: false;
960
+ };
961
+ updatedAt: {
962
+ type: _lssm_lib_schema278.FieldType<Date, string>;
963
+ isOptional: false;
964
+ };
965
+ steps: {
966
+ type: _lssm_lib_schema278.SchemaModel<{
967
+ id: {
968
+ type: _lssm_lib_schema278.FieldType<string, string>;
969
+ isOptional: false;
970
+ };
971
+ key: {
972
+ type: _lssm_lib_schema278.FieldType<string, string>;
973
+ isOptional: false;
974
+ };
975
+ name: {
976
+ type: _lssm_lib_schema278.FieldType<string, string>;
977
+ isOptional: false;
978
+ };
979
+ description: {
980
+ type: _lssm_lib_schema278.FieldType<string, string>;
981
+ isOptional: true;
982
+ };
983
+ type: {
984
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string, string, string, string, string]>;
985
+ isOptional: false;
986
+ };
987
+ position: {
988
+ type: _lssm_lib_schema278.FieldType<number, number>;
989
+ isOptional: false;
990
+ };
991
+ transitions: {
992
+ type: _lssm_lib_schema278.FieldType<unknown, unknown>;
993
+ isOptional: false;
994
+ };
995
+ approvalMode: {
996
+ type: _lssm_lib_schema278.EnumType<[string, string, string, string]>;
997
+ isOptional: true;
998
+ };
999
+ approverRoles: {
1000
+ type: _lssm_lib_schema278.FieldType<string, string>;
1001
+ isArray: true;
1002
+ isOptional: true;
1003
+ };
1004
+ }>;
1005
+ isArray: true;
1006
+ isOptional: true;
1007
+ };
1008
+ }>, undefined>;
1009
+ //#endregion
1010
+ export { AddStepContract, CreateWorkflowContract, GetWorkflowContract, ListWorkflowsContract, PublishWorkflowContract, UpdateWorkflowContract };