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