@lssm/example.workflow-system 0.0.0-canary-20251206181705 → 0.0.0-canary-20251207013726
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/contracts/approval.d.ts +195 -195
- package/dist/contracts/instance.d.ts +345 -345
- package/dist/contracts/workflow.d.ts +342 -342
- 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/events.d.ts +294 -294
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,218 +1,218 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema0 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts0 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/approval.d.ts
|
|
5
|
-
declare const ApprovalRequestModel:
|
|
5
|
+
declare const ApprovalRequestModel: _lssm_lib_schema0.SchemaModel<{
|
|
6
6
|
id: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
workflowInstanceId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
stepExecutionId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
approverId: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
approverRole: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
24
24
|
isOptional: true;
|
|
25
25
|
};
|
|
26
26
|
title: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
description: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
32
32
|
isOptional: true;
|
|
33
33
|
};
|
|
34
34
|
status: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
decision: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
40
40
|
isOptional: true;
|
|
41
41
|
};
|
|
42
42
|
decisionComment: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
44
44
|
isOptional: true;
|
|
45
45
|
};
|
|
46
46
|
decidedAt: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
dueAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
contextSnapshot: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
sequenceOrder: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
createdAt: {
|
|
63
|
-
type:
|
|
63
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
|
-
declare const ApproveRejectInputModel:
|
|
67
|
+
declare const ApproveRejectInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
68
68
|
requestId: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
};
|
|
72
72
|
decision: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
74
74
|
isOptional: false;
|
|
75
75
|
};
|
|
76
76
|
comment: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
78
78
|
isOptional: true;
|
|
79
79
|
};
|
|
80
80
|
data: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
82
82
|
isOptional: true;
|
|
83
83
|
};
|
|
84
84
|
}>;
|
|
85
|
-
declare const DelegateInputModel:
|
|
85
|
+
declare const DelegateInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
86
86
|
requestId: {
|
|
87
|
-
type:
|
|
87
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
88
88
|
isOptional: false;
|
|
89
89
|
};
|
|
90
90
|
delegateTo: {
|
|
91
|
-
type:
|
|
91
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
92
92
|
isOptional: false;
|
|
93
93
|
};
|
|
94
94
|
reason: {
|
|
95
|
-
type:
|
|
95
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
96
96
|
isOptional: true;
|
|
97
97
|
};
|
|
98
98
|
}>;
|
|
99
|
-
declare const AddCommentInputModel:
|
|
99
|
+
declare const AddCommentInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
100
100
|
requestId: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
content: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
isInternal: {
|
|
109
|
-
type:
|
|
109
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
110
110
|
isOptional: true;
|
|
111
111
|
};
|
|
112
112
|
}>;
|
|
113
|
-
declare const ApprovalCommentModel:
|
|
113
|
+
declare const ApprovalCommentModel: _lssm_lib_schema0.SchemaModel<{
|
|
114
114
|
id: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
approvalRequestId: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
authorId: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
content: {
|
|
127
|
-
type:
|
|
127
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
128
128
|
isOptional: false;
|
|
129
129
|
};
|
|
130
130
|
isInternal: {
|
|
131
|
-
type:
|
|
131
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
132
132
|
isOptional: false;
|
|
133
133
|
};
|
|
134
134
|
createdAt: {
|
|
135
|
-
type:
|
|
135
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
136
136
|
isOptional: false;
|
|
137
137
|
};
|
|
138
138
|
}>;
|
|
139
|
-
declare const ListMyApprovalsInputModel:
|
|
139
|
+
declare const ListMyApprovalsInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
140
140
|
status: {
|
|
141
|
-
type:
|
|
141
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
142
142
|
isOptional: true;
|
|
143
143
|
};
|
|
144
144
|
limit: {
|
|
145
|
-
type:
|
|
145
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
146
146
|
isOptional: true;
|
|
147
147
|
defaultValue: number;
|
|
148
148
|
};
|
|
149
149
|
offset: {
|
|
150
|
-
type:
|
|
150
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
151
151
|
isOptional: true;
|
|
152
152
|
defaultValue: number;
|
|
153
153
|
};
|
|
154
154
|
}>;
|
|
155
|
-
declare const ListMyApprovalsOutputModel:
|
|
155
|
+
declare const ListMyApprovalsOutputModel: _lssm_lib_schema0.SchemaModel<{
|
|
156
156
|
requests: {
|
|
157
|
-
type:
|
|
157
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
158
158
|
id: {
|
|
159
|
-
type:
|
|
159
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
160
160
|
isOptional: false;
|
|
161
161
|
};
|
|
162
162
|
workflowInstanceId: {
|
|
163
|
-
type:
|
|
163
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
164
164
|
isOptional: false;
|
|
165
165
|
};
|
|
166
166
|
stepExecutionId: {
|
|
167
|
-
type:
|
|
167
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
168
168
|
isOptional: false;
|
|
169
169
|
};
|
|
170
170
|
approverId: {
|
|
171
|
-
type:
|
|
171
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
172
172
|
isOptional: false;
|
|
173
173
|
};
|
|
174
174
|
approverRole: {
|
|
175
|
-
type:
|
|
175
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
176
176
|
isOptional: true;
|
|
177
177
|
};
|
|
178
178
|
title: {
|
|
179
|
-
type:
|
|
179
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
180
180
|
isOptional: false;
|
|
181
181
|
};
|
|
182
182
|
description: {
|
|
183
|
-
type:
|
|
183
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
184
184
|
isOptional: true;
|
|
185
185
|
};
|
|
186
186
|
status: {
|
|
187
|
-
type:
|
|
187
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
188
188
|
isOptional: false;
|
|
189
189
|
};
|
|
190
190
|
decision: {
|
|
191
|
-
type:
|
|
191
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
192
192
|
isOptional: true;
|
|
193
193
|
};
|
|
194
194
|
decisionComment: {
|
|
195
|
-
type:
|
|
195
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
196
196
|
isOptional: true;
|
|
197
197
|
};
|
|
198
198
|
decidedAt: {
|
|
199
|
-
type:
|
|
199
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
200
200
|
isOptional: true;
|
|
201
201
|
};
|
|
202
202
|
dueAt: {
|
|
203
|
-
type:
|
|
203
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
204
204
|
isOptional: true;
|
|
205
205
|
};
|
|
206
206
|
contextSnapshot: {
|
|
207
|
-
type:
|
|
207
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
210
|
sequenceOrder: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
212
212
|
isOptional: false;
|
|
213
213
|
};
|
|
214
214
|
createdAt: {
|
|
215
|
-
type:
|
|
215
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
216
216
|
isOptional: false;
|
|
217
217
|
};
|
|
218
218
|
}>;
|
|
@@ -220,158 +220,158 @@ declare const ListMyApprovalsOutputModel: _lssm_lib_schema635.SchemaModel<{
|
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
total: {
|
|
223
|
-
type:
|
|
223
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
224
224
|
isOptional: false;
|
|
225
225
|
};
|
|
226
226
|
pendingCount: {
|
|
227
|
-
type:
|
|
227
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
228
228
|
isOptional: false;
|
|
229
229
|
};
|
|
230
230
|
}>;
|
|
231
231
|
/**
|
|
232
232
|
* Approve or reject an approval request.
|
|
233
233
|
*/
|
|
234
|
-
declare const SubmitDecisionContract:
|
|
234
|
+
declare const SubmitDecisionContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
235
235
|
requestId: {
|
|
236
|
-
type:
|
|
236
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
237
237
|
isOptional: false;
|
|
238
238
|
};
|
|
239
239
|
decision: {
|
|
240
|
-
type:
|
|
240
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
241
241
|
isOptional: false;
|
|
242
242
|
};
|
|
243
243
|
comment: {
|
|
244
|
-
type:
|
|
244
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
245
245
|
isOptional: true;
|
|
246
246
|
};
|
|
247
247
|
data: {
|
|
248
|
-
type:
|
|
248
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
249
249
|
isOptional: true;
|
|
250
250
|
};
|
|
251
|
-
}>,
|
|
251
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
252
252
|
id: {
|
|
253
|
-
type:
|
|
253
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
254
254
|
isOptional: false;
|
|
255
255
|
};
|
|
256
256
|
workflowInstanceId: {
|
|
257
|
-
type:
|
|
257
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
258
258
|
isOptional: false;
|
|
259
259
|
};
|
|
260
260
|
stepExecutionId: {
|
|
261
|
-
type:
|
|
261
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
262
262
|
isOptional: false;
|
|
263
263
|
};
|
|
264
264
|
approverId: {
|
|
265
|
-
type:
|
|
265
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
266
266
|
isOptional: false;
|
|
267
267
|
};
|
|
268
268
|
approverRole: {
|
|
269
|
-
type:
|
|
269
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
270
270
|
isOptional: true;
|
|
271
271
|
};
|
|
272
272
|
title: {
|
|
273
|
-
type:
|
|
273
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
274
274
|
isOptional: false;
|
|
275
275
|
};
|
|
276
276
|
description: {
|
|
277
|
-
type:
|
|
277
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
278
278
|
isOptional: true;
|
|
279
279
|
};
|
|
280
280
|
status: {
|
|
281
|
-
type:
|
|
281
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
282
282
|
isOptional: false;
|
|
283
283
|
};
|
|
284
284
|
decision: {
|
|
285
|
-
type:
|
|
285
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
286
286
|
isOptional: true;
|
|
287
287
|
};
|
|
288
288
|
decisionComment: {
|
|
289
|
-
type:
|
|
289
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
290
290
|
isOptional: true;
|
|
291
291
|
};
|
|
292
292
|
decidedAt: {
|
|
293
|
-
type:
|
|
293
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
294
294
|
isOptional: true;
|
|
295
295
|
};
|
|
296
296
|
dueAt: {
|
|
297
|
-
type:
|
|
297
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
298
298
|
isOptional: true;
|
|
299
299
|
};
|
|
300
300
|
contextSnapshot: {
|
|
301
|
-
type:
|
|
301
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
302
302
|
isOptional: true;
|
|
303
303
|
};
|
|
304
304
|
sequenceOrder: {
|
|
305
|
-
type:
|
|
305
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
306
306
|
isOptional: false;
|
|
307
307
|
};
|
|
308
308
|
createdAt: {
|
|
309
|
-
type:
|
|
309
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
310
310
|
isOptional: false;
|
|
311
311
|
};
|
|
312
312
|
}>, {
|
|
313
313
|
name: string;
|
|
314
314
|
version: number;
|
|
315
315
|
when: string;
|
|
316
|
-
payload:
|
|
316
|
+
payload: _lssm_lib_schema0.SchemaModel<{
|
|
317
317
|
id: {
|
|
318
|
-
type:
|
|
318
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
321
|
workflowInstanceId: {
|
|
322
|
-
type:
|
|
322
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
323
323
|
isOptional: false;
|
|
324
324
|
};
|
|
325
325
|
stepExecutionId: {
|
|
326
|
-
type:
|
|
326
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
327
327
|
isOptional: false;
|
|
328
328
|
};
|
|
329
329
|
approverId: {
|
|
330
|
-
type:
|
|
330
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
331
331
|
isOptional: false;
|
|
332
332
|
};
|
|
333
333
|
approverRole: {
|
|
334
|
-
type:
|
|
334
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
335
335
|
isOptional: true;
|
|
336
336
|
};
|
|
337
337
|
title: {
|
|
338
|
-
type:
|
|
338
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
339
339
|
isOptional: false;
|
|
340
340
|
};
|
|
341
341
|
description: {
|
|
342
|
-
type:
|
|
342
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
343
343
|
isOptional: true;
|
|
344
344
|
};
|
|
345
345
|
status: {
|
|
346
|
-
type:
|
|
346
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
347
347
|
isOptional: false;
|
|
348
348
|
};
|
|
349
349
|
decision: {
|
|
350
|
-
type:
|
|
350
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
351
351
|
isOptional: true;
|
|
352
352
|
};
|
|
353
353
|
decisionComment: {
|
|
354
|
-
type:
|
|
354
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
355
355
|
isOptional: true;
|
|
356
356
|
};
|
|
357
357
|
decidedAt: {
|
|
358
|
-
type:
|
|
358
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
359
359
|
isOptional: true;
|
|
360
360
|
};
|
|
361
361
|
dueAt: {
|
|
362
|
-
type:
|
|
362
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
363
363
|
isOptional: true;
|
|
364
364
|
};
|
|
365
365
|
contextSnapshot: {
|
|
366
|
-
type:
|
|
366
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
367
367
|
isOptional: true;
|
|
368
368
|
};
|
|
369
369
|
sequenceOrder: {
|
|
370
|
-
type:
|
|
370
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
371
371
|
isOptional: false;
|
|
372
372
|
};
|
|
373
373
|
createdAt: {
|
|
374
|
-
type:
|
|
374
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
375
375
|
isOptional: false;
|
|
376
376
|
};
|
|
377
377
|
}>;
|
|
@@ -379,143 +379,143 @@ declare const SubmitDecisionContract: _lssm_lib_contracts40.ContractSpec<_lssm_l
|
|
|
379
379
|
/**
|
|
380
380
|
* Delegate an approval to another user.
|
|
381
381
|
*/
|
|
382
|
-
declare const DelegateApprovalContract:
|
|
382
|
+
declare const DelegateApprovalContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
383
383
|
requestId: {
|
|
384
|
-
type:
|
|
384
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
385
385
|
isOptional: false;
|
|
386
386
|
};
|
|
387
387
|
delegateTo: {
|
|
388
|
-
type:
|
|
388
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
389
389
|
isOptional: false;
|
|
390
390
|
};
|
|
391
391
|
reason: {
|
|
392
|
-
type:
|
|
392
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
393
393
|
isOptional: true;
|
|
394
394
|
};
|
|
395
|
-
}>,
|
|
395
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
396
396
|
id: {
|
|
397
|
-
type:
|
|
397
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
398
398
|
isOptional: false;
|
|
399
399
|
};
|
|
400
400
|
workflowInstanceId: {
|
|
401
|
-
type:
|
|
401
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
402
402
|
isOptional: false;
|
|
403
403
|
};
|
|
404
404
|
stepExecutionId: {
|
|
405
|
-
type:
|
|
405
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
406
406
|
isOptional: false;
|
|
407
407
|
};
|
|
408
408
|
approverId: {
|
|
409
|
-
type:
|
|
409
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
410
410
|
isOptional: false;
|
|
411
411
|
};
|
|
412
412
|
approverRole: {
|
|
413
|
-
type:
|
|
413
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
414
414
|
isOptional: true;
|
|
415
415
|
};
|
|
416
416
|
title: {
|
|
417
|
-
type:
|
|
417
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
418
418
|
isOptional: false;
|
|
419
419
|
};
|
|
420
420
|
description: {
|
|
421
|
-
type:
|
|
421
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
422
422
|
isOptional: true;
|
|
423
423
|
};
|
|
424
424
|
status: {
|
|
425
|
-
type:
|
|
425
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
426
426
|
isOptional: false;
|
|
427
427
|
};
|
|
428
428
|
decision: {
|
|
429
|
-
type:
|
|
429
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
430
430
|
isOptional: true;
|
|
431
431
|
};
|
|
432
432
|
decisionComment: {
|
|
433
|
-
type:
|
|
433
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
434
434
|
isOptional: true;
|
|
435
435
|
};
|
|
436
436
|
decidedAt: {
|
|
437
|
-
type:
|
|
437
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
438
438
|
isOptional: true;
|
|
439
439
|
};
|
|
440
440
|
dueAt: {
|
|
441
|
-
type:
|
|
441
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
442
442
|
isOptional: true;
|
|
443
443
|
};
|
|
444
444
|
contextSnapshot: {
|
|
445
|
-
type:
|
|
445
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
446
446
|
isOptional: true;
|
|
447
447
|
};
|
|
448
448
|
sequenceOrder: {
|
|
449
|
-
type:
|
|
449
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
450
450
|
isOptional: false;
|
|
451
451
|
};
|
|
452
452
|
createdAt: {
|
|
453
|
-
type:
|
|
453
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
454
454
|
isOptional: false;
|
|
455
455
|
};
|
|
456
456
|
}>, {
|
|
457
457
|
name: string;
|
|
458
458
|
version: number;
|
|
459
459
|
when: string;
|
|
460
|
-
payload:
|
|
460
|
+
payload: _lssm_lib_schema0.SchemaModel<{
|
|
461
461
|
id: {
|
|
462
|
-
type:
|
|
462
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
463
463
|
isOptional: false;
|
|
464
464
|
};
|
|
465
465
|
workflowInstanceId: {
|
|
466
|
-
type:
|
|
466
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
467
467
|
isOptional: false;
|
|
468
468
|
};
|
|
469
469
|
stepExecutionId: {
|
|
470
|
-
type:
|
|
470
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
471
471
|
isOptional: false;
|
|
472
472
|
};
|
|
473
473
|
approverId: {
|
|
474
|
-
type:
|
|
474
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
475
475
|
isOptional: false;
|
|
476
476
|
};
|
|
477
477
|
approverRole: {
|
|
478
|
-
type:
|
|
478
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
479
479
|
isOptional: true;
|
|
480
480
|
};
|
|
481
481
|
title: {
|
|
482
|
-
type:
|
|
482
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
483
483
|
isOptional: false;
|
|
484
484
|
};
|
|
485
485
|
description: {
|
|
486
|
-
type:
|
|
486
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
487
487
|
isOptional: true;
|
|
488
488
|
};
|
|
489
489
|
status: {
|
|
490
|
-
type:
|
|
490
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
491
491
|
isOptional: false;
|
|
492
492
|
};
|
|
493
493
|
decision: {
|
|
494
|
-
type:
|
|
494
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
495
495
|
isOptional: true;
|
|
496
496
|
};
|
|
497
497
|
decisionComment: {
|
|
498
|
-
type:
|
|
498
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
499
499
|
isOptional: true;
|
|
500
500
|
};
|
|
501
501
|
decidedAt: {
|
|
502
|
-
type:
|
|
502
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
503
503
|
isOptional: true;
|
|
504
504
|
};
|
|
505
505
|
dueAt: {
|
|
506
|
-
type:
|
|
506
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
507
507
|
isOptional: true;
|
|
508
508
|
};
|
|
509
509
|
contextSnapshot: {
|
|
510
|
-
type:
|
|
510
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
511
511
|
isOptional: true;
|
|
512
512
|
};
|
|
513
513
|
sequenceOrder: {
|
|
514
|
-
type:
|
|
514
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
515
515
|
isOptional: false;
|
|
516
516
|
};
|
|
517
517
|
createdAt: {
|
|
518
|
-
type:
|
|
518
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
519
519
|
isOptional: false;
|
|
520
520
|
};
|
|
521
521
|
}>;
|
|
@@ -523,71 +523,71 @@ declare const DelegateApprovalContract: _lssm_lib_contracts40.ContractSpec<_lssm
|
|
|
523
523
|
/**
|
|
524
524
|
* Add a comment to an approval request.
|
|
525
525
|
*/
|
|
526
|
-
declare const AddApprovalCommentContract:
|
|
526
|
+
declare const AddApprovalCommentContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
527
527
|
requestId: {
|
|
528
|
-
type:
|
|
528
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
529
529
|
isOptional: false;
|
|
530
530
|
};
|
|
531
531
|
content: {
|
|
532
|
-
type:
|
|
532
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
533
533
|
isOptional: false;
|
|
534
534
|
};
|
|
535
535
|
isInternal: {
|
|
536
|
-
type:
|
|
536
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
537
537
|
isOptional: true;
|
|
538
538
|
};
|
|
539
|
-
}>,
|
|
539
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
540
540
|
id: {
|
|
541
|
-
type:
|
|
541
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
542
542
|
isOptional: false;
|
|
543
543
|
};
|
|
544
544
|
approvalRequestId: {
|
|
545
|
-
type:
|
|
545
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
546
546
|
isOptional: false;
|
|
547
547
|
};
|
|
548
548
|
authorId: {
|
|
549
|
-
type:
|
|
549
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
550
550
|
isOptional: false;
|
|
551
551
|
};
|
|
552
552
|
content: {
|
|
553
|
-
type:
|
|
553
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
554
554
|
isOptional: false;
|
|
555
555
|
};
|
|
556
556
|
isInternal: {
|
|
557
|
-
type:
|
|
557
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
558
558
|
isOptional: false;
|
|
559
559
|
};
|
|
560
560
|
createdAt: {
|
|
561
|
-
type:
|
|
561
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
562
562
|
isOptional: false;
|
|
563
563
|
};
|
|
564
564
|
}>, {
|
|
565
565
|
name: string;
|
|
566
566
|
version: number;
|
|
567
567
|
when: string;
|
|
568
|
-
payload:
|
|
568
|
+
payload: _lssm_lib_schema0.SchemaModel<{
|
|
569
569
|
id: {
|
|
570
|
-
type:
|
|
570
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
571
571
|
isOptional: false;
|
|
572
572
|
};
|
|
573
573
|
approvalRequestId: {
|
|
574
|
-
type:
|
|
574
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
575
575
|
isOptional: false;
|
|
576
576
|
};
|
|
577
577
|
authorId: {
|
|
578
|
-
type:
|
|
578
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
579
579
|
isOptional: false;
|
|
580
580
|
};
|
|
581
581
|
content: {
|
|
582
|
-
type:
|
|
582
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
583
583
|
isOptional: false;
|
|
584
584
|
};
|
|
585
585
|
isInternal: {
|
|
586
|
-
type:
|
|
586
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
587
587
|
isOptional: false;
|
|
588
588
|
};
|
|
589
589
|
createdAt: {
|
|
590
|
-
type:
|
|
590
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
591
591
|
isOptional: false;
|
|
592
592
|
};
|
|
593
593
|
}>;
|
|
@@ -595,82 +595,82 @@ declare const AddApprovalCommentContract: _lssm_lib_contracts40.ContractSpec<_ls
|
|
|
595
595
|
/**
|
|
596
596
|
* List approvals assigned to the current user.
|
|
597
597
|
*/
|
|
598
|
-
declare const ListMyApprovalsContract:
|
|
598
|
+
declare const ListMyApprovalsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
599
599
|
status: {
|
|
600
|
-
type:
|
|
600
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
601
601
|
isOptional: true;
|
|
602
602
|
};
|
|
603
603
|
limit: {
|
|
604
|
-
type:
|
|
604
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
605
605
|
isOptional: true;
|
|
606
606
|
defaultValue: number;
|
|
607
607
|
};
|
|
608
608
|
offset: {
|
|
609
|
-
type:
|
|
609
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
610
610
|
isOptional: true;
|
|
611
611
|
defaultValue: number;
|
|
612
612
|
};
|
|
613
|
-
}>,
|
|
613
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
614
614
|
requests: {
|
|
615
|
-
type:
|
|
615
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
616
616
|
id: {
|
|
617
|
-
type:
|
|
617
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
618
618
|
isOptional: false;
|
|
619
619
|
};
|
|
620
620
|
workflowInstanceId: {
|
|
621
|
-
type:
|
|
621
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
622
622
|
isOptional: false;
|
|
623
623
|
};
|
|
624
624
|
stepExecutionId: {
|
|
625
|
-
type:
|
|
625
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
626
626
|
isOptional: false;
|
|
627
627
|
};
|
|
628
628
|
approverId: {
|
|
629
|
-
type:
|
|
629
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
630
630
|
isOptional: false;
|
|
631
631
|
};
|
|
632
632
|
approverRole: {
|
|
633
|
-
type:
|
|
633
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
634
634
|
isOptional: true;
|
|
635
635
|
};
|
|
636
636
|
title: {
|
|
637
|
-
type:
|
|
637
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
638
638
|
isOptional: false;
|
|
639
639
|
};
|
|
640
640
|
description: {
|
|
641
|
-
type:
|
|
641
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
642
642
|
isOptional: true;
|
|
643
643
|
};
|
|
644
644
|
status: {
|
|
645
|
-
type:
|
|
645
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
646
646
|
isOptional: false;
|
|
647
647
|
};
|
|
648
648
|
decision: {
|
|
649
|
-
type:
|
|
649
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
650
650
|
isOptional: true;
|
|
651
651
|
};
|
|
652
652
|
decisionComment: {
|
|
653
|
-
type:
|
|
653
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
654
654
|
isOptional: true;
|
|
655
655
|
};
|
|
656
656
|
decidedAt: {
|
|
657
|
-
type:
|
|
657
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
658
658
|
isOptional: true;
|
|
659
659
|
};
|
|
660
660
|
dueAt: {
|
|
661
|
-
type:
|
|
661
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
662
662
|
isOptional: true;
|
|
663
663
|
};
|
|
664
664
|
contextSnapshot: {
|
|
665
|
-
type:
|
|
665
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
666
666
|
isOptional: true;
|
|
667
667
|
};
|
|
668
668
|
sequenceOrder: {
|
|
669
|
-
type:
|
|
669
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
670
670
|
isOptional: false;
|
|
671
671
|
};
|
|
672
672
|
createdAt: {
|
|
673
|
-
type:
|
|
673
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
674
674
|
isOptional: false;
|
|
675
675
|
};
|
|
676
676
|
}>;
|
|
@@ -678,87 +678,87 @@ declare const ListMyApprovalsContract: _lssm_lib_contracts40.ContractSpec<_lssm_
|
|
|
678
678
|
isOptional: false;
|
|
679
679
|
};
|
|
680
680
|
total: {
|
|
681
|
-
type:
|
|
681
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
682
682
|
isOptional: false;
|
|
683
683
|
};
|
|
684
684
|
pendingCount: {
|
|
685
|
-
type:
|
|
685
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
686
686
|
isOptional: false;
|
|
687
687
|
};
|
|
688
688
|
}>, undefined>;
|
|
689
689
|
/**
|
|
690
690
|
* Get a single approval request.
|
|
691
691
|
*/
|
|
692
|
-
declare const GetApprovalInputModel:
|
|
692
|
+
declare const GetApprovalInputModel: _lssm_lib_schema0.SchemaModel<{
|
|
693
693
|
requestId: {
|
|
694
|
-
type:
|
|
694
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
695
695
|
isOptional: false;
|
|
696
696
|
};
|
|
697
697
|
}>;
|
|
698
|
-
declare const GetApprovalContract:
|
|
698
|
+
declare const GetApprovalContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
699
699
|
requestId: {
|
|
700
|
-
type:
|
|
700
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
701
701
|
isOptional: false;
|
|
702
702
|
};
|
|
703
|
-
}>,
|
|
703
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
704
704
|
id: {
|
|
705
|
-
type:
|
|
705
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
706
706
|
isOptional: false;
|
|
707
707
|
};
|
|
708
708
|
workflowInstanceId: {
|
|
709
|
-
type:
|
|
709
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
710
710
|
isOptional: false;
|
|
711
711
|
};
|
|
712
712
|
stepExecutionId: {
|
|
713
|
-
type:
|
|
713
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
714
714
|
isOptional: false;
|
|
715
715
|
};
|
|
716
716
|
approverId: {
|
|
717
|
-
type:
|
|
717
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
718
718
|
isOptional: false;
|
|
719
719
|
};
|
|
720
720
|
approverRole: {
|
|
721
|
-
type:
|
|
721
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
722
722
|
isOptional: true;
|
|
723
723
|
};
|
|
724
724
|
title: {
|
|
725
|
-
type:
|
|
725
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
726
726
|
isOptional: false;
|
|
727
727
|
};
|
|
728
728
|
description: {
|
|
729
|
-
type:
|
|
729
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
730
730
|
isOptional: true;
|
|
731
731
|
};
|
|
732
732
|
status: {
|
|
733
|
-
type:
|
|
733
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string, string, string]>;
|
|
734
734
|
isOptional: false;
|
|
735
735
|
};
|
|
736
736
|
decision: {
|
|
737
|
-
type:
|
|
737
|
+
type: _lssm_lib_schema0.EnumType<[string, string, string, string, string]>;
|
|
738
738
|
isOptional: true;
|
|
739
739
|
};
|
|
740
740
|
decisionComment: {
|
|
741
|
-
type:
|
|
741
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
742
742
|
isOptional: true;
|
|
743
743
|
};
|
|
744
744
|
decidedAt: {
|
|
745
|
-
type:
|
|
745
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
746
746
|
isOptional: true;
|
|
747
747
|
};
|
|
748
748
|
dueAt: {
|
|
749
|
-
type:
|
|
749
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
750
750
|
isOptional: true;
|
|
751
751
|
};
|
|
752
752
|
contextSnapshot: {
|
|
753
|
-
type:
|
|
753
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
754
754
|
isOptional: true;
|
|
755
755
|
};
|
|
756
756
|
sequenceOrder: {
|
|
757
|
-
type:
|
|
757
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
758
758
|
isOptional: false;
|
|
759
759
|
};
|
|
760
760
|
createdAt: {
|
|
761
|
-
type:
|
|
761
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
762
762
|
isOptional: false;
|
|
763
763
|
};
|
|
764
764
|
}>, undefined>;
|