@lssm/example.workflow-system 0.0.0-canary-20251217060804 → 0.0.0-canary-20251217060834
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.
- package/dist/approval/approval.contracts.d.ts +134 -134
- package/dist/approval/approval.enum.d.ts +3 -3
- package/dist/approval/approval.event.d.ts +32 -32
- package/dist/approval/approval.schema.d.ts +24 -24
- package/dist/entities/approval.d.ts +36 -36
- package/dist/entities/index.d.ts +127 -127
- package/dist/entities/instance.d.ts +47 -47
- package/dist/entities/step.d.ts +32 -32
- package/dist/entities/workflow.d.ts +23 -23
- package/dist/instance/instance.contracts.d.ts +256 -256
- package/dist/instance/instance.enum.d.ts +2 -2
- package/dist/instance/instance.event.d.ts +87 -87
- package/dist/instance/instance.schema.d.ts +54 -54
- package/dist/workflow/workflow.contracts.d.ts +246 -246
- package/dist/workflow/workflow.enum.d.ts +5 -5
- package/dist/workflow/workflow.event.d.ts +32 -32
- package/dist/workflow/workflow.schema.d.ts +63 -63
- package/package.json +11 -11
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema315 from "@lssm/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/instance/instance.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Instance status enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const InstanceStatusEnum:
|
|
7
|
+
declare const InstanceStatusEnum: _lssm_lib_schema315.EnumType<[string, string, string, string, string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { InstanceStatusEnum };
|
|
@@ -1,353 +1,353 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema316 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts6 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/instance/instance.event.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* InstanceStartedEvent - A new workflow instance has been started.
|
|
7
7
|
*/
|
|
8
|
-
declare const InstanceStartedEvent:
|
|
8
|
+
declare const InstanceStartedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema316.SchemaModel<{
|
|
9
9
|
instanceId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
workflowId: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
workflowKey: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
status: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
23
23
|
isOptional: false;
|
|
24
24
|
};
|
|
25
25
|
referenceId: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
referenceType: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
31
31
|
isOptional: true;
|
|
32
32
|
};
|
|
33
33
|
triggeredBy: {
|
|
34
|
-
type:
|
|
34
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
35
35
|
isOptional: false;
|
|
36
36
|
};
|
|
37
37
|
organizationId: {
|
|
38
|
-
type:
|
|
38
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
39
39
|
isOptional: false;
|
|
40
40
|
};
|
|
41
41
|
timestamp: {
|
|
42
|
-
type:
|
|
42
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
43
43
|
isOptional: false;
|
|
44
44
|
};
|
|
45
45
|
}>>;
|
|
46
46
|
/**
|
|
47
47
|
* StepEnteredEvent - A workflow instance has entered a new step.
|
|
48
48
|
*/
|
|
49
|
-
declare const StepEnteredEvent:
|
|
49
|
+
declare const StepEnteredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema316.SchemaModel<{
|
|
50
50
|
instanceId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
workflowId: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
fromStepKey: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
toStepKey: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
action: {
|
|
67
|
-
type:
|
|
67
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
68
68
|
isOptional: true;
|
|
69
69
|
};
|
|
70
70
|
executedBy: {
|
|
71
|
-
type:
|
|
71
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
timestamp: {
|
|
75
|
-
type:
|
|
75
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
76
76
|
isOptional: false;
|
|
77
77
|
};
|
|
78
78
|
}>>;
|
|
79
79
|
/**
|
|
80
80
|
* StepExitedEvent - A workflow instance has exited a step.
|
|
81
81
|
*/
|
|
82
|
-
declare const StepExitedEvent:
|
|
82
|
+
declare const StepExitedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema316.SchemaModel<{
|
|
83
83
|
instanceId: {
|
|
84
|
-
type:
|
|
84
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
workflowId: {
|
|
88
|
-
type:
|
|
88
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
fromStepKey: {
|
|
92
|
-
type:
|
|
92
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
93
93
|
isOptional: true;
|
|
94
94
|
};
|
|
95
95
|
toStepKey: {
|
|
96
|
-
type:
|
|
96
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
97
97
|
isOptional: false;
|
|
98
98
|
};
|
|
99
99
|
action: {
|
|
100
|
-
type:
|
|
100
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
101
101
|
isOptional: true;
|
|
102
102
|
};
|
|
103
103
|
executedBy: {
|
|
104
|
-
type:
|
|
104
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
timestamp: {
|
|
108
|
-
type:
|
|
108
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
}>>;
|
|
112
112
|
/**
|
|
113
113
|
* InstanceCompletedEvent - A workflow instance has completed.
|
|
114
114
|
*/
|
|
115
|
-
declare const InstanceCompletedEvent:
|
|
115
|
+
declare const InstanceCompletedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema316.SchemaModel<{
|
|
116
116
|
instanceId: {
|
|
117
|
-
type:
|
|
117
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
118
118
|
isOptional: false;
|
|
119
119
|
};
|
|
120
120
|
workflowId: {
|
|
121
|
-
type:
|
|
121
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
122
122
|
isOptional: false;
|
|
123
123
|
};
|
|
124
124
|
workflowKey: {
|
|
125
|
-
type:
|
|
125
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
126
126
|
isOptional: false;
|
|
127
127
|
};
|
|
128
128
|
outcome: {
|
|
129
|
-
type:
|
|
129
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
130
130
|
isOptional: false;
|
|
131
131
|
};
|
|
132
132
|
referenceId: {
|
|
133
|
-
type:
|
|
133
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
134
134
|
isOptional: true;
|
|
135
135
|
};
|
|
136
136
|
referenceType: {
|
|
137
|
-
type:
|
|
137
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
138
138
|
isOptional: true;
|
|
139
139
|
};
|
|
140
140
|
duration: {
|
|
141
|
-
type:
|
|
141
|
+
type: _lssm_lib_schema316.FieldType<number, number>;
|
|
142
142
|
isOptional: false;
|
|
143
143
|
};
|
|
144
144
|
timestamp: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
146
146
|
isOptional: false;
|
|
147
147
|
};
|
|
148
148
|
}>>;
|
|
149
149
|
/**
|
|
150
150
|
* InstanceCancelledEvent - A workflow instance has been cancelled.
|
|
151
151
|
*/
|
|
152
|
-
declare const InstanceCancelledEvent:
|
|
152
|
+
declare const InstanceCancelledEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema316.SchemaModel<{
|
|
153
153
|
instanceId: {
|
|
154
|
-
type:
|
|
154
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
155
155
|
isOptional: false;
|
|
156
156
|
};
|
|
157
157
|
workflowId: {
|
|
158
|
-
type:
|
|
158
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
159
159
|
isOptional: false;
|
|
160
160
|
};
|
|
161
161
|
workflowKey: {
|
|
162
|
-
type:
|
|
162
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
163
163
|
isOptional: false;
|
|
164
164
|
};
|
|
165
165
|
status: {
|
|
166
|
-
type:
|
|
166
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
167
167
|
isOptional: false;
|
|
168
168
|
};
|
|
169
169
|
referenceId: {
|
|
170
|
-
type:
|
|
170
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
171
171
|
isOptional: true;
|
|
172
172
|
};
|
|
173
173
|
referenceType: {
|
|
174
|
-
type:
|
|
174
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
triggeredBy: {
|
|
178
|
-
type:
|
|
178
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
179
179
|
isOptional: false;
|
|
180
180
|
};
|
|
181
181
|
organizationId: {
|
|
182
|
-
type:
|
|
182
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
183
183
|
isOptional: false;
|
|
184
184
|
};
|
|
185
185
|
timestamp: {
|
|
186
|
-
type:
|
|
186
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
187
187
|
isOptional: false;
|
|
188
188
|
};
|
|
189
189
|
}>>;
|
|
190
190
|
/**
|
|
191
191
|
* InstancePausedEvent - A workflow instance has been paused.
|
|
192
192
|
*/
|
|
193
|
-
declare const InstancePausedEvent:
|
|
193
|
+
declare const InstancePausedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema316.SchemaModel<{
|
|
194
194
|
instanceId: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
196
196
|
isOptional: false;
|
|
197
197
|
};
|
|
198
198
|
workflowId: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
200
200
|
isOptional: false;
|
|
201
201
|
};
|
|
202
202
|
workflowKey: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
204
204
|
isOptional: false;
|
|
205
205
|
};
|
|
206
206
|
status: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
208
208
|
isOptional: false;
|
|
209
209
|
};
|
|
210
210
|
referenceId: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
212
212
|
isOptional: true;
|
|
213
213
|
};
|
|
214
214
|
referenceType: {
|
|
215
|
-
type:
|
|
215
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
216
216
|
isOptional: true;
|
|
217
217
|
};
|
|
218
218
|
triggeredBy: {
|
|
219
|
-
type:
|
|
219
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
organizationId: {
|
|
223
|
-
type:
|
|
223
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
224
224
|
isOptional: false;
|
|
225
225
|
};
|
|
226
226
|
timestamp: {
|
|
227
|
-
type:
|
|
227
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
228
228
|
isOptional: false;
|
|
229
229
|
};
|
|
230
230
|
}>>;
|
|
231
231
|
/**
|
|
232
232
|
* InstanceResumedEvent - A workflow instance has been resumed.
|
|
233
233
|
*/
|
|
234
|
-
declare const InstanceResumedEvent:
|
|
234
|
+
declare const InstanceResumedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema316.SchemaModel<{
|
|
235
235
|
instanceId: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
workflowId: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
241
241
|
isOptional: false;
|
|
242
242
|
};
|
|
243
243
|
workflowKey: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
245
245
|
isOptional: false;
|
|
246
246
|
};
|
|
247
247
|
status: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
249
249
|
isOptional: false;
|
|
250
250
|
};
|
|
251
251
|
referenceId: {
|
|
252
|
-
type:
|
|
252
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
253
253
|
isOptional: true;
|
|
254
254
|
};
|
|
255
255
|
referenceType: {
|
|
256
|
-
type:
|
|
256
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
257
257
|
isOptional: true;
|
|
258
258
|
};
|
|
259
259
|
triggeredBy: {
|
|
260
|
-
type:
|
|
260
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
261
261
|
isOptional: false;
|
|
262
262
|
};
|
|
263
263
|
organizationId: {
|
|
264
|
-
type:
|
|
264
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
265
265
|
isOptional: false;
|
|
266
266
|
};
|
|
267
267
|
timestamp: {
|
|
268
|
-
type:
|
|
268
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
269
269
|
isOptional: false;
|
|
270
270
|
};
|
|
271
271
|
}>>;
|
|
272
272
|
/**
|
|
273
273
|
* InstanceFailedEvent - A workflow instance has failed.
|
|
274
274
|
*/
|
|
275
|
-
declare const InstanceFailedEvent:
|
|
275
|
+
declare const InstanceFailedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema316.SchemaModel<{
|
|
276
276
|
instanceId: {
|
|
277
|
-
type:
|
|
277
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
278
278
|
isOptional: false;
|
|
279
279
|
};
|
|
280
280
|
workflowId: {
|
|
281
|
-
type:
|
|
281
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
282
282
|
isOptional: false;
|
|
283
283
|
};
|
|
284
284
|
workflowKey: {
|
|
285
|
-
type:
|
|
285
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
286
286
|
isOptional: false;
|
|
287
287
|
};
|
|
288
288
|
status: {
|
|
289
|
-
type:
|
|
289
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
290
290
|
isOptional: false;
|
|
291
291
|
};
|
|
292
292
|
referenceId: {
|
|
293
|
-
type:
|
|
293
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
294
294
|
isOptional: true;
|
|
295
295
|
};
|
|
296
296
|
referenceType: {
|
|
297
|
-
type:
|
|
297
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
298
298
|
isOptional: true;
|
|
299
299
|
};
|
|
300
300
|
triggeredBy: {
|
|
301
|
-
type:
|
|
301
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
302
302
|
isOptional: false;
|
|
303
303
|
};
|
|
304
304
|
organizationId: {
|
|
305
|
-
type:
|
|
305
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
306
306
|
isOptional: false;
|
|
307
307
|
};
|
|
308
308
|
timestamp: {
|
|
309
|
-
type:
|
|
309
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
310
310
|
isOptional: false;
|
|
311
311
|
};
|
|
312
312
|
}>>;
|
|
313
313
|
/**
|
|
314
314
|
* InstanceTimedOutEvent - A workflow instance has timed out.
|
|
315
315
|
*/
|
|
316
|
-
declare const InstanceTimedOutEvent:
|
|
316
|
+
declare const InstanceTimedOutEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema316.SchemaModel<{
|
|
317
317
|
instanceId: {
|
|
318
|
-
type:
|
|
318
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
321
|
workflowId: {
|
|
322
|
-
type:
|
|
322
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
323
323
|
isOptional: false;
|
|
324
324
|
};
|
|
325
325
|
workflowKey: {
|
|
326
|
-
type:
|
|
326
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
327
327
|
isOptional: false;
|
|
328
328
|
};
|
|
329
329
|
status: {
|
|
330
|
-
type:
|
|
330
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
331
331
|
isOptional: false;
|
|
332
332
|
};
|
|
333
333
|
referenceId: {
|
|
334
|
-
type:
|
|
334
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
335
335
|
isOptional: true;
|
|
336
336
|
};
|
|
337
337
|
referenceType: {
|
|
338
|
-
type:
|
|
338
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
339
339
|
isOptional: true;
|
|
340
340
|
};
|
|
341
341
|
triggeredBy: {
|
|
342
|
-
type:
|
|
342
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
343
343
|
isOptional: false;
|
|
344
344
|
};
|
|
345
345
|
organizationId: {
|
|
346
|
-
type:
|
|
346
|
+
type: _lssm_lib_schema316.FieldType<string, string>;
|
|
347
347
|
isOptional: false;
|
|
348
348
|
};
|
|
349
349
|
timestamp: {
|
|
350
|
-
type:
|
|
350
|
+
type: _lssm_lib_schema316.FieldType<Date, string>;
|
|
351
351
|
isOptional: false;
|
|
352
352
|
};
|
|
353
353
|
}>>;
|