@lssm/lib.jobs 0.0.0-canary-20251217072406 → 0.0.0-canary-20251217080011
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/index.d.ts +139 -139
- package/dist/events.d.ts +98 -98
- package/package.json +7 -7
|
@@ -1,245 +1,245 @@
|
|
|
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/index.d.ts
|
|
5
|
-
declare const JobModel:
|
|
5
|
+
declare const JobModel: _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
|
type: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
version: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
payload: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
status: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
priority: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
attempts: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
maxRetries: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
createdAt: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
updatedAt: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
scheduledAt: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
startedAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
completedAt: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
lastError: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
|
-
declare const ScheduledJobModel:
|
|
63
|
+
declare const ScheduledJobModel: _lssm_lib_schema0.SchemaModel<{
|
|
64
64
|
id: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
name: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
};
|
|
72
72
|
description: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
74
74
|
isOptional: true;
|
|
75
75
|
};
|
|
76
76
|
cronExpression: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
78
78
|
isOptional: false;
|
|
79
79
|
};
|
|
80
80
|
timezone: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
jobType: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
enabled: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
lastRunAt: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
nextRunAt: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
createdAt: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
}>;
|
|
105
|
-
declare const QueueStatsModel:
|
|
105
|
+
declare const QueueStatsModel: _lssm_lib_schema0.SchemaModel<{
|
|
106
106
|
pending: {
|
|
107
|
-
type:
|
|
107
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
108
108
|
isOptional: false;
|
|
109
109
|
};
|
|
110
110
|
running: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
completed: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
failed: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
deadLetter: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
}>;
|
|
127
127
|
/**
|
|
128
128
|
* Enqueue a job.
|
|
129
129
|
*/
|
|
130
|
-
declare const EnqueueJobContract:
|
|
130
|
+
declare const EnqueueJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
131
131
|
type: {
|
|
132
|
-
type:
|
|
132
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
133
133
|
isOptional: false;
|
|
134
134
|
};
|
|
135
135
|
payload: {
|
|
136
|
-
type:
|
|
136
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
137
137
|
isOptional: false;
|
|
138
138
|
};
|
|
139
139
|
delaySeconds: {
|
|
140
|
-
type:
|
|
140
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
141
141
|
isOptional: true;
|
|
142
142
|
};
|
|
143
143
|
dedupeKey: {
|
|
144
|
-
type:
|
|
144
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
145
145
|
isOptional: true;
|
|
146
146
|
};
|
|
147
147
|
maxRetries: {
|
|
148
|
-
type:
|
|
148
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
149
149
|
isOptional: true;
|
|
150
150
|
};
|
|
151
151
|
priority: {
|
|
152
|
-
type:
|
|
152
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
153
153
|
isOptional: true;
|
|
154
154
|
};
|
|
155
155
|
timeoutMs: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
157
157
|
isOptional: true;
|
|
158
158
|
};
|
|
159
|
-
}>,
|
|
159
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
160
160
|
id: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
type: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
version: {
|
|
169
|
-
type:
|
|
169
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
payload: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
status: {
|
|
177
|
-
type:
|
|
177
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
178
178
|
isOptional: false;
|
|
179
179
|
};
|
|
180
180
|
priority: {
|
|
181
|
-
type:
|
|
181
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
attempts: {
|
|
185
|
-
type:
|
|
185
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
186
186
|
isOptional: false;
|
|
187
187
|
};
|
|
188
188
|
maxRetries: {
|
|
189
|
-
type:
|
|
189
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
190
190
|
isOptional: false;
|
|
191
191
|
};
|
|
192
192
|
createdAt: {
|
|
193
|
-
type:
|
|
193
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
194
194
|
isOptional: false;
|
|
195
195
|
};
|
|
196
196
|
updatedAt: {
|
|
197
|
-
type:
|
|
197
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
198
198
|
isOptional: false;
|
|
199
199
|
};
|
|
200
200
|
scheduledAt: {
|
|
201
|
-
type:
|
|
201
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
202
202
|
isOptional: true;
|
|
203
203
|
};
|
|
204
204
|
startedAt: {
|
|
205
|
-
type:
|
|
205
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
206
206
|
isOptional: true;
|
|
207
207
|
};
|
|
208
208
|
completedAt: {
|
|
209
|
-
type:
|
|
209
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
210
210
|
isOptional: true;
|
|
211
211
|
};
|
|
212
212
|
lastError: {
|
|
213
|
-
type:
|
|
213
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
214
214
|
isOptional: true;
|
|
215
215
|
};
|
|
216
216
|
}>, {
|
|
217
217
|
name: string;
|
|
218
218
|
version: number;
|
|
219
219
|
when: string;
|
|
220
|
-
payload:
|
|
220
|
+
payload: _lssm_lib_schema0.SchemaModel<{
|
|
221
221
|
jobId: {
|
|
222
|
-
type:
|
|
222
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
223
223
|
isOptional: false;
|
|
224
224
|
};
|
|
225
225
|
type: {
|
|
226
|
-
type:
|
|
226
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
227
227
|
isOptional: false;
|
|
228
228
|
};
|
|
229
229
|
priority: {
|
|
230
|
-
type:
|
|
230
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
231
231
|
isOptional: false;
|
|
232
232
|
};
|
|
233
233
|
scheduledAt: {
|
|
234
|
-
type:
|
|
234
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
235
235
|
isOptional: true;
|
|
236
236
|
};
|
|
237
237
|
tenantId: {
|
|
238
|
-
type:
|
|
238
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
239
239
|
isOptional: true;
|
|
240
240
|
};
|
|
241
241
|
enqueuedAt: {
|
|
242
|
-
type:
|
|
242
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
243
243
|
isOptional: false;
|
|
244
244
|
};
|
|
245
245
|
}>;
|
|
@@ -247,89 +247,89 @@ declare const EnqueueJobContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_s
|
|
|
247
247
|
/**
|
|
248
248
|
* Get job by ID.
|
|
249
249
|
*/
|
|
250
|
-
declare const GetJobContract:
|
|
250
|
+
declare const GetJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
251
251
|
jobId: {
|
|
252
|
-
type:
|
|
252
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
253
253
|
isOptional: false;
|
|
254
254
|
};
|
|
255
|
-
}>,
|
|
255
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
256
256
|
id: {
|
|
257
|
-
type:
|
|
257
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
258
258
|
isOptional: false;
|
|
259
259
|
};
|
|
260
260
|
type: {
|
|
261
|
-
type:
|
|
261
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
262
262
|
isOptional: false;
|
|
263
263
|
};
|
|
264
264
|
version: {
|
|
265
|
-
type:
|
|
265
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
266
266
|
isOptional: false;
|
|
267
267
|
};
|
|
268
268
|
payload: {
|
|
269
|
-
type:
|
|
269
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
270
270
|
isOptional: false;
|
|
271
271
|
};
|
|
272
272
|
status: {
|
|
273
|
-
type:
|
|
273
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
274
274
|
isOptional: false;
|
|
275
275
|
};
|
|
276
276
|
priority: {
|
|
277
|
-
type:
|
|
277
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
278
278
|
isOptional: false;
|
|
279
279
|
};
|
|
280
280
|
attempts: {
|
|
281
|
-
type:
|
|
281
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
282
282
|
isOptional: false;
|
|
283
283
|
};
|
|
284
284
|
maxRetries: {
|
|
285
|
-
type:
|
|
285
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
286
286
|
isOptional: false;
|
|
287
287
|
};
|
|
288
288
|
createdAt: {
|
|
289
|
-
type:
|
|
289
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
290
290
|
isOptional: false;
|
|
291
291
|
};
|
|
292
292
|
updatedAt: {
|
|
293
|
-
type:
|
|
293
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
294
294
|
isOptional: false;
|
|
295
295
|
};
|
|
296
296
|
scheduledAt: {
|
|
297
|
-
type:
|
|
297
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
298
298
|
isOptional: true;
|
|
299
299
|
};
|
|
300
300
|
startedAt: {
|
|
301
|
-
type:
|
|
301
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
302
302
|
isOptional: true;
|
|
303
303
|
};
|
|
304
304
|
completedAt: {
|
|
305
|
-
type:
|
|
305
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
306
306
|
isOptional: true;
|
|
307
307
|
};
|
|
308
308
|
lastError: {
|
|
309
|
-
type:
|
|
309
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
310
310
|
isOptional: true;
|
|
311
311
|
};
|
|
312
312
|
}>, undefined>;
|
|
313
313
|
/**
|
|
314
314
|
* Cancel a job.
|
|
315
315
|
*/
|
|
316
|
-
declare const CancelJobContract:
|
|
316
|
+
declare const CancelJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
317
317
|
jobId: {
|
|
318
|
-
type:
|
|
318
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
|
-
}>,
|
|
321
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
322
322
|
success: {
|
|
323
|
-
type:
|
|
323
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
324
324
|
isOptional: false;
|
|
325
325
|
};
|
|
326
326
|
}>, {
|
|
327
327
|
name: string;
|
|
328
328
|
version: number;
|
|
329
329
|
when: string;
|
|
330
|
-
payload:
|
|
330
|
+
payload: _lssm_lib_schema0.SchemaModel<{
|
|
331
331
|
jobId: {
|
|
332
|
-
type:
|
|
332
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
333
333
|
isOptional: false;
|
|
334
334
|
};
|
|
335
335
|
}>;
|
|
@@ -337,150 +337,150 @@ declare const CancelJobContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_sc
|
|
|
337
337
|
/**
|
|
338
338
|
* Get queue statistics.
|
|
339
339
|
*/
|
|
340
|
-
declare const GetQueueStatsContract:
|
|
340
|
+
declare const GetQueueStatsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.AnySchemaModel, _lssm_lib_schema0.SchemaModel<{
|
|
341
341
|
pending: {
|
|
342
|
-
type:
|
|
342
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
343
343
|
isOptional: false;
|
|
344
344
|
};
|
|
345
345
|
running: {
|
|
346
|
-
type:
|
|
346
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
347
347
|
isOptional: false;
|
|
348
348
|
};
|
|
349
349
|
completed: {
|
|
350
|
-
type:
|
|
350
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
351
351
|
isOptional: false;
|
|
352
352
|
};
|
|
353
353
|
failed: {
|
|
354
|
-
type:
|
|
354
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
355
355
|
isOptional: false;
|
|
356
356
|
};
|
|
357
357
|
deadLetter: {
|
|
358
|
-
type:
|
|
358
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
359
359
|
isOptional: false;
|
|
360
360
|
};
|
|
361
361
|
}>, undefined>;
|
|
362
362
|
/**
|
|
363
363
|
* Create a scheduled job.
|
|
364
364
|
*/
|
|
365
|
-
declare const CreateScheduledJobContract:
|
|
365
|
+
declare const CreateScheduledJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
366
366
|
name: {
|
|
367
|
-
type:
|
|
367
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
368
368
|
isOptional: false;
|
|
369
369
|
};
|
|
370
370
|
description: {
|
|
371
|
-
type:
|
|
371
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
372
372
|
isOptional: true;
|
|
373
373
|
};
|
|
374
374
|
cronExpression: {
|
|
375
|
-
type:
|
|
375
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
376
376
|
isOptional: false;
|
|
377
377
|
};
|
|
378
378
|
timezone: {
|
|
379
|
-
type:
|
|
379
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
380
380
|
isOptional: true;
|
|
381
381
|
};
|
|
382
382
|
jobType: {
|
|
383
|
-
type:
|
|
383
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
384
384
|
isOptional: false;
|
|
385
385
|
};
|
|
386
386
|
payload: {
|
|
387
|
-
type:
|
|
387
|
+
type: _lssm_lib_schema0.FieldType<unknown, unknown>;
|
|
388
388
|
isOptional: true;
|
|
389
389
|
};
|
|
390
390
|
maxRetries: {
|
|
391
|
-
type:
|
|
391
|
+
type: _lssm_lib_schema0.FieldType<number, number>;
|
|
392
392
|
isOptional: true;
|
|
393
393
|
};
|
|
394
394
|
enabled: {
|
|
395
|
-
type:
|
|
395
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
396
396
|
isOptional: true;
|
|
397
397
|
};
|
|
398
|
-
}>,
|
|
398
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
399
399
|
id: {
|
|
400
|
-
type:
|
|
400
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
401
401
|
isOptional: false;
|
|
402
402
|
};
|
|
403
403
|
name: {
|
|
404
|
-
type:
|
|
404
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
405
405
|
isOptional: false;
|
|
406
406
|
};
|
|
407
407
|
description: {
|
|
408
|
-
type:
|
|
408
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
409
409
|
isOptional: true;
|
|
410
410
|
};
|
|
411
411
|
cronExpression: {
|
|
412
|
-
type:
|
|
412
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
413
413
|
isOptional: false;
|
|
414
414
|
};
|
|
415
415
|
timezone: {
|
|
416
|
-
type:
|
|
416
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
417
417
|
isOptional: false;
|
|
418
418
|
};
|
|
419
419
|
jobType: {
|
|
420
|
-
type:
|
|
420
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
421
421
|
isOptional: false;
|
|
422
422
|
};
|
|
423
423
|
enabled: {
|
|
424
|
-
type:
|
|
424
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
425
425
|
isOptional: false;
|
|
426
426
|
};
|
|
427
427
|
lastRunAt: {
|
|
428
|
-
type:
|
|
428
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
429
429
|
isOptional: true;
|
|
430
430
|
};
|
|
431
431
|
nextRunAt: {
|
|
432
|
-
type:
|
|
432
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
433
433
|
isOptional: true;
|
|
434
434
|
};
|
|
435
435
|
createdAt: {
|
|
436
|
-
type:
|
|
436
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
437
437
|
isOptional: false;
|
|
438
438
|
};
|
|
439
439
|
}>, undefined>;
|
|
440
440
|
/**
|
|
441
441
|
* List scheduled jobs.
|
|
442
442
|
*/
|
|
443
|
-
declare const ListScheduledJobsContract:
|
|
443
|
+
declare const ListScheduledJobsContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.AnySchemaModel, _lssm_lib_schema0.SchemaModel<{
|
|
444
444
|
schedules: {
|
|
445
|
-
type:
|
|
445
|
+
type: _lssm_lib_schema0.SchemaModel<{
|
|
446
446
|
id: {
|
|
447
|
-
type:
|
|
447
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
448
448
|
isOptional: false;
|
|
449
449
|
};
|
|
450
450
|
name: {
|
|
451
|
-
type:
|
|
451
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
452
452
|
isOptional: false;
|
|
453
453
|
};
|
|
454
454
|
description: {
|
|
455
|
-
type:
|
|
455
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
456
456
|
isOptional: true;
|
|
457
457
|
};
|
|
458
458
|
cronExpression: {
|
|
459
|
-
type:
|
|
459
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
460
460
|
isOptional: false;
|
|
461
461
|
};
|
|
462
462
|
timezone: {
|
|
463
|
-
type:
|
|
463
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
464
464
|
isOptional: false;
|
|
465
465
|
};
|
|
466
466
|
jobType: {
|
|
467
|
-
type:
|
|
467
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
468
468
|
isOptional: false;
|
|
469
469
|
};
|
|
470
470
|
enabled: {
|
|
471
|
-
type:
|
|
471
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
472
472
|
isOptional: false;
|
|
473
473
|
};
|
|
474
474
|
lastRunAt: {
|
|
475
|
-
type:
|
|
475
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
476
476
|
isOptional: true;
|
|
477
477
|
};
|
|
478
478
|
nextRunAt: {
|
|
479
|
-
type:
|
|
479
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
480
480
|
isOptional: true;
|
|
481
481
|
};
|
|
482
482
|
createdAt: {
|
|
483
|
-
type:
|
|
483
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
484
484
|
isOptional: false;
|
|
485
485
|
};
|
|
486
486
|
}>;
|
|
@@ -491,54 +491,54 @@ declare const ListScheduledJobsContract: _lssm_lib_contracts15.ContractSpec<_lss
|
|
|
491
491
|
/**
|
|
492
492
|
* Toggle scheduled job enabled state.
|
|
493
493
|
*/
|
|
494
|
-
declare const ToggleScheduledJobContract:
|
|
494
|
+
declare const ToggleScheduledJobContract: _lssm_lib_contracts0.ContractSpec<_lssm_lib_schema0.SchemaModel<{
|
|
495
495
|
name: {
|
|
496
|
-
type:
|
|
496
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
497
497
|
isOptional: false;
|
|
498
498
|
};
|
|
499
499
|
enabled: {
|
|
500
|
-
type:
|
|
500
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
501
501
|
isOptional: false;
|
|
502
502
|
};
|
|
503
|
-
}>,
|
|
503
|
+
}>, _lssm_lib_schema0.SchemaModel<{
|
|
504
504
|
id: {
|
|
505
|
-
type:
|
|
505
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
506
506
|
isOptional: false;
|
|
507
507
|
};
|
|
508
508
|
name: {
|
|
509
|
-
type:
|
|
509
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
510
510
|
isOptional: false;
|
|
511
511
|
};
|
|
512
512
|
description: {
|
|
513
|
-
type:
|
|
513
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
514
514
|
isOptional: true;
|
|
515
515
|
};
|
|
516
516
|
cronExpression: {
|
|
517
|
-
type:
|
|
517
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
518
518
|
isOptional: false;
|
|
519
519
|
};
|
|
520
520
|
timezone: {
|
|
521
|
-
type:
|
|
521
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
522
522
|
isOptional: false;
|
|
523
523
|
};
|
|
524
524
|
jobType: {
|
|
525
|
-
type:
|
|
525
|
+
type: _lssm_lib_schema0.FieldType<string, string>;
|
|
526
526
|
isOptional: false;
|
|
527
527
|
};
|
|
528
528
|
enabled: {
|
|
529
|
-
type:
|
|
529
|
+
type: _lssm_lib_schema0.FieldType<boolean, boolean>;
|
|
530
530
|
isOptional: false;
|
|
531
531
|
};
|
|
532
532
|
lastRunAt: {
|
|
533
|
-
type:
|
|
533
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
534
534
|
isOptional: true;
|
|
535
535
|
};
|
|
536
536
|
nextRunAt: {
|
|
537
|
-
type:
|
|
537
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
538
538
|
isOptional: true;
|
|
539
539
|
};
|
|
540
540
|
createdAt: {
|
|
541
|
-
type:
|
|
541
|
+
type: _lssm_lib_schema0.FieldType<Date, string>;
|
|
542
542
|
isOptional: false;
|
|
543
543
|
};
|
|
544
544
|
}>, undefined>;
|
package/dist/events.d.ts
CHANGED
|
@@ -1,204 +1,204 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema138 from "@lssm/lib.schema";
|
|
2
|
+
import * as _lssm_lib_contracts6 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Emitted when a job is enqueued.
|
|
7
7
|
*/
|
|
8
|
-
declare const JobEnqueuedEvent:
|
|
8
|
+
declare const JobEnqueuedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
9
9
|
jobId: {
|
|
10
|
-
type:
|
|
10
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
11
11
|
isOptional: false;
|
|
12
12
|
};
|
|
13
13
|
type: {
|
|
14
|
-
type:
|
|
14
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
15
15
|
isOptional: false;
|
|
16
16
|
};
|
|
17
17
|
priority: {
|
|
18
|
-
type:
|
|
18
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
19
19
|
isOptional: false;
|
|
20
20
|
};
|
|
21
21
|
scheduledAt: {
|
|
22
|
-
type:
|
|
22
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
23
23
|
isOptional: true;
|
|
24
24
|
};
|
|
25
25
|
tenantId: {
|
|
26
|
-
type:
|
|
26
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
27
27
|
isOptional: true;
|
|
28
28
|
};
|
|
29
29
|
enqueuedAt: {
|
|
30
|
-
type:
|
|
30
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
31
31
|
isOptional: false;
|
|
32
32
|
};
|
|
33
33
|
}>>;
|
|
34
34
|
/**
|
|
35
35
|
* Emitted when a job starts processing.
|
|
36
36
|
*/
|
|
37
|
-
declare const JobStartedEvent:
|
|
37
|
+
declare const JobStartedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
38
38
|
jobId: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
type: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
attempt: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
startedAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
}>>;
|
|
55
55
|
/**
|
|
56
56
|
* Emitted when a job completes successfully.
|
|
57
57
|
*/
|
|
58
|
-
declare const JobCompletedEvent:
|
|
58
|
+
declare const JobCompletedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
59
59
|
jobId: {
|
|
60
|
-
type:
|
|
60
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
type: {
|
|
64
|
-
type:
|
|
64
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
attempt: {
|
|
68
|
-
type:
|
|
68
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
durationMs: {
|
|
72
|
-
type:
|
|
72
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
completedAt: {
|
|
76
|
-
type:
|
|
76
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
77
77
|
isOptional: false;
|
|
78
78
|
};
|
|
79
79
|
}>>;
|
|
80
80
|
/**
|
|
81
81
|
* Emitted when a job fails (single attempt).
|
|
82
82
|
*/
|
|
83
|
-
declare const JobFailedEvent:
|
|
83
|
+
declare const JobFailedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
84
84
|
jobId: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
type: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
attempt: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
94
94
|
isOptional: false;
|
|
95
95
|
};
|
|
96
96
|
error: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
98
98
|
isOptional: false;
|
|
99
99
|
};
|
|
100
100
|
willRetry: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema138.FieldType<boolean, boolean>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
failedAt: {
|
|
105
|
-
type:
|
|
105
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
106
106
|
isOptional: false;
|
|
107
107
|
};
|
|
108
108
|
}>>;
|
|
109
109
|
/**
|
|
110
110
|
* Emitted when a job is being retried.
|
|
111
111
|
*/
|
|
112
|
-
declare const JobRetryingEvent:
|
|
112
|
+
declare const JobRetryingEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
113
113
|
jobId: {
|
|
114
|
-
type:
|
|
114
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
115
115
|
isOptional: false;
|
|
116
116
|
};
|
|
117
117
|
type: {
|
|
118
|
-
type:
|
|
118
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
119
119
|
isOptional: false;
|
|
120
120
|
};
|
|
121
121
|
attempt: {
|
|
122
|
-
type:
|
|
122
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
123
123
|
isOptional: false;
|
|
124
124
|
};
|
|
125
125
|
nextAttemptAt: {
|
|
126
|
-
type:
|
|
126
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
127
127
|
isOptional: false;
|
|
128
128
|
};
|
|
129
129
|
backoffMs: {
|
|
130
|
-
type:
|
|
130
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
}>>;
|
|
134
134
|
/**
|
|
135
135
|
* Emitted when a job is moved to dead letter queue.
|
|
136
136
|
*/
|
|
137
|
-
declare const JobDeadLetteredEvent:
|
|
137
|
+
declare const JobDeadLetteredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
138
138
|
jobId: {
|
|
139
|
-
type:
|
|
139
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
140
140
|
isOptional: false;
|
|
141
141
|
};
|
|
142
142
|
type: {
|
|
143
|
-
type:
|
|
143
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
144
144
|
isOptional: false;
|
|
145
145
|
};
|
|
146
146
|
attempts: {
|
|
147
|
-
type:
|
|
147
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
148
148
|
isOptional: false;
|
|
149
149
|
};
|
|
150
150
|
lastError: {
|
|
151
|
-
type:
|
|
151
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
152
152
|
isOptional: false;
|
|
153
153
|
};
|
|
154
154
|
deadLetteredAt: {
|
|
155
|
-
type:
|
|
155
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
156
156
|
isOptional: false;
|
|
157
157
|
};
|
|
158
158
|
}>>;
|
|
159
159
|
/**
|
|
160
160
|
* Emitted when a job is cancelled.
|
|
161
161
|
*/
|
|
162
|
-
declare const JobCancelledEvent:
|
|
162
|
+
declare const JobCancelledEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
163
163
|
jobId: {
|
|
164
|
-
type:
|
|
164
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
165
165
|
isOptional: false;
|
|
166
166
|
};
|
|
167
167
|
type: {
|
|
168
|
-
type:
|
|
168
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
169
169
|
isOptional: false;
|
|
170
170
|
};
|
|
171
171
|
cancelledBy: {
|
|
172
|
-
type:
|
|
172
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
173
173
|
isOptional: true;
|
|
174
174
|
};
|
|
175
175
|
cancelledAt: {
|
|
176
|
-
type:
|
|
176
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
177
177
|
isOptional: false;
|
|
178
178
|
};
|
|
179
179
|
}>>;
|
|
180
180
|
/**
|
|
181
181
|
* Emitted when a scheduled job is triggered.
|
|
182
182
|
*/
|
|
183
|
-
declare const ScheduledJobTriggeredEvent:
|
|
183
|
+
declare const ScheduledJobTriggeredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
184
184
|
scheduleName: {
|
|
185
|
-
type:
|
|
185
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
186
186
|
isOptional: false;
|
|
187
187
|
};
|
|
188
188
|
jobId: {
|
|
189
|
-
type:
|
|
189
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
190
190
|
isOptional: false;
|
|
191
191
|
};
|
|
192
192
|
jobType: {
|
|
193
|
-
type:
|
|
193
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
194
194
|
isOptional: false;
|
|
195
195
|
};
|
|
196
196
|
triggeredAt: {
|
|
197
|
-
type:
|
|
197
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
198
198
|
isOptional: false;
|
|
199
199
|
};
|
|
200
200
|
nextRunAt: {
|
|
201
|
-
type:
|
|
201
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
202
202
|
isOptional: true;
|
|
203
203
|
};
|
|
204
204
|
}>>;
|
|
@@ -206,179 +206,179 @@ declare const ScheduledJobTriggeredEvent: _lssm_lib_contracts0.EventSpec<_lssm_l
|
|
|
206
206
|
* All job events.
|
|
207
207
|
*/
|
|
208
208
|
declare const JobEvents: {
|
|
209
|
-
JobEnqueuedEvent:
|
|
209
|
+
JobEnqueuedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
210
210
|
jobId: {
|
|
211
|
-
type:
|
|
211
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
212
212
|
isOptional: false;
|
|
213
213
|
};
|
|
214
214
|
type: {
|
|
215
|
-
type:
|
|
215
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
216
216
|
isOptional: false;
|
|
217
217
|
};
|
|
218
218
|
priority: {
|
|
219
|
-
type:
|
|
219
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
scheduledAt: {
|
|
223
|
-
type:
|
|
223
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
224
224
|
isOptional: true;
|
|
225
225
|
};
|
|
226
226
|
tenantId: {
|
|
227
|
-
type:
|
|
227
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
228
228
|
isOptional: true;
|
|
229
229
|
};
|
|
230
230
|
enqueuedAt: {
|
|
231
|
-
type:
|
|
231
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
232
232
|
isOptional: false;
|
|
233
233
|
};
|
|
234
234
|
}>>;
|
|
235
|
-
JobStartedEvent:
|
|
235
|
+
JobStartedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
236
236
|
jobId: {
|
|
237
|
-
type:
|
|
237
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
238
238
|
isOptional: false;
|
|
239
239
|
};
|
|
240
240
|
type: {
|
|
241
|
-
type:
|
|
241
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
242
242
|
isOptional: false;
|
|
243
243
|
};
|
|
244
244
|
attempt: {
|
|
245
|
-
type:
|
|
245
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
246
246
|
isOptional: false;
|
|
247
247
|
};
|
|
248
248
|
startedAt: {
|
|
249
|
-
type:
|
|
249
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
250
250
|
isOptional: false;
|
|
251
251
|
};
|
|
252
252
|
}>>;
|
|
253
|
-
JobCompletedEvent:
|
|
253
|
+
JobCompletedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
254
254
|
jobId: {
|
|
255
|
-
type:
|
|
255
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
256
256
|
isOptional: false;
|
|
257
257
|
};
|
|
258
258
|
type: {
|
|
259
|
-
type:
|
|
259
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
260
260
|
isOptional: false;
|
|
261
261
|
};
|
|
262
262
|
attempt: {
|
|
263
|
-
type:
|
|
263
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
264
264
|
isOptional: false;
|
|
265
265
|
};
|
|
266
266
|
durationMs: {
|
|
267
|
-
type:
|
|
267
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
268
268
|
isOptional: false;
|
|
269
269
|
};
|
|
270
270
|
completedAt: {
|
|
271
|
-
type:
|
|
271
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
272
272
|
isOptional: false;
|
|
273
273
|
};
|
|
274
274
|
}>>;
|
|
275
|
-
JobFailedEvent:
|
|
275
|
+
JobFailedEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
276
276
|
jobId: {
|
|
277
|
-
type:
|
|
277
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
278
278
|
isOptional: false;
|
|
279
279
|
};
|
|
280
280
|
type: {
|
|
281
|
-
type:
|
|
281
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
282
282
|
isOptional: false;
|
|
283
283
|
};
|
|
284
284
|
attempt: {
|
|
285
|
-
type:
|
|
285
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
286
286
|
isOptional: false;
|
|
287
287
|
};
|
|
288
288
|
error: {
|
|
289
|
-
type:
|
|
289
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
290
290
|
isOptional: false;
|
|
291
291
|
};
|
|
292
292
|
willRetry: {
|
|
293
|
-
type:
|
|
293
|
+
type: _lssm_lib_schema138.FieldType<boolean, boolean>;
|
|
294
294
|
isOptional: false;
|
|
295
295
|
};
|
|
296
296
|
failedAt: {
|
|
297
|
-
type:
|
|
297
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
298
298
|
isOptional: false;
|
|
299
299
|
};
|
|
300
300
|
}>>;
|
|
301
|
-
JobRetryingEvent:
|
|
301
|
+
JobRetryingEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
302
302
|
jobId: {
|
|
303
|
-
type:
|
|
303
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
304
304
|
isOptional: false;
|
|
305
305
|
};
|
|
306
306
|
type: {
|
|
307
|
-
type:
|
|
307
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
308
308
|
isOptional: false;
|
|
309
309
|
};
|
|
310
310
|
attempt: {
|
|
311
|
-
type:
|
|
311
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
312
312
|
isOptional: false;
|
|
313
313
|
};
|
|
314
314
|
nextAttemptAt: {
|
|
315
|
-
type:
|
|
315
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
316
316
|
isOptional: false;
|
|
317
317
|
};
|
|
318
318
|
backoffMs: {
|
|
319
|
-
type:
|
|
319
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
320
320
|
isOptional: false;
|
|
321
321
|
};
|
|
322
322
|
}>>;
|
|
323
|
-
JobDeadLetteredEvent:
|
|
323
|
+
JobDeadLetteredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
324
324
|
jobId: {
|
|
325
|
-
type:
|
|
325
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
326
326
|
isOptional: false;
|
|
327
327
|
};
|
|
328
328
|
type: {
|
|
329
|
-
type:
|
|
329
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
330
330
|
isOptional: false;
|
|
331
331
|
};
|
|
332
332
|
attempts: {
|
|
333
|
-
type:
|
|
333
|
+
type: _lssm_lib_schema138.FieldType<number, number>;
|
|
334
334
|
isOptional: false;
|
|
335
335
|
};
|
|
336
336
|
lastError: {
|
|
337
|
-
type:
|
|
337
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
338
338
|
isOptional: false;
|
|
339
339
|
};
|
|
340
340
|
deadLetteredAt: {
|
|
341
|
-
type:
|
|
341
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
342
342
|
isOptional: false;
|
|
343
343
|
};
|
|
344
344
|
}>>;
|
|
345
|
-
JobCancelledEvent:
|
|
345
|
+
JobCancelledEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
346
346
|
jobId: {
|
|
347
|
-
type:
|
|
347
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
348
348
|
isOptional: false;
|
|
349
349
|
};
|
|
350
350
|
type: {
|
|
351
|
-
type:
|
|
351
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
352
352
|
isOptional: false;
|
|
353
353
|
};
|
|
354
354
|
cancelledBy: {
|
|
355
|
-
type:
|
|
355
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
356
356
|
isOptional: true;
|
|
357
357
|
};
|
|
358
358
|
cancelledAt: {
|
|
359
|
-
type:
|
|
359
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
360
360
|
isOptional: false;
|
|
361
361
|
};
|
|
362
362
|
}>>;
|
|
363
|
-
ScheduledJobTriggeredEvent:
|
|
363
|
+
ScheduledJobTriggeredEvent: _lssm_lib_contracts6.EventSpec<_lssm_lib_schema138.SchemaModel<{
|
|
364
364
|
scheduleName: {
|
|
365
|
-
type:
|
|
365
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
366
366
|
isOptional: false;
|
|
367
367
|
};
|
|
368
368
|
jobId: {
|
|
369
|
-
type:
|
|
369
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
370
370
|
isOptional: false;
|
|
371
371
|
};
|
|
372
372
|
jobType: {
|
|
373
|
-
type:
|
|
373
|
+
type: _lssm_lib_schema138.FieldType<string, string>;
|
|
374
374
|
isOptional: false;
|
|
375
375
|
};
|
|
376
376
|
triggeredAt: {
|
|
377
|
-
type:
|
|
377
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
378
378
|
isOptional: false;
|
|
379
379
|
};
|
|
380
380
|
nextRunAt: {
|
|
381
|
-
type:
|
|
381
|
+
type: _lssm_lib_schema138.FieldType<Date, string>;
|
|
382
382
|
isOptional: true;
|
|
383
383
|
};
|
|
384
384
|
}>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/lib.jobs",
|
|
3
|
-
"version": "0.0.0-canary-
|
|
3
|
+
"version": "0.0.0-canary-20251217080011",
|
|
4
4
|
"description": "Background jobs and scheduler module for ContractSpec applications",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"lint:check": "eslint src"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@lssm/lib.schema": "0.0.0-canary-
|
|
22
|
-
"@lssm/lib.contracts": "0.0.0-canary-
|
|
23
|
-
"@lssm/lib.logger": "0.0.0-canary-
|
|
24
|
-
"@lssm/lib.knowledge": "0.0.0-canary-
|
|
21
|
+
"@lssm/lib.schema": "0.0.0-canary-20251217080011",
|
|
22
|
+
"@lssm/lib.contracts": "0.0.0-canary-20251217080011",
|
|
23
|
+
"@lssm/lib.logger": "0.0.0-canary-20251217080011",
|
|
24
|
+
"@lssm/lib.knowledge": "0.0.0-canary-20251217080011",
|
|
25
25
|
"@aws-sdk/client-sqs": "^3.948.0",
|
|
26
26
|
"zod": "^4.1.13",
|
|
27
27
|
"cron-parser": "^5.4.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@lssm/tool.typescript": "0.0.0-canary-
|
|
31
|
-
"@lssm/tool.tsdown": "0.0.0-canary-
|
|
30
|
+
"@lssm/tool.typescript": "0.0.0-canary-20251217080011",
|
|
31
|
+
"@lssm/tool.tsdown": "0.0.0-canary-20251217080011",
|
|
32
32
|
"typescript": "^5.9.3"
|
|
33
33
|
},
|
|
34
34
|
"exports": {
|