@lssm/lib.jobs 0.0.0-canary-20251206181705 → 0.0.0-canary-20251207012602
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 +138 -138
- package/dist/entities/index.d.ts +116 -116
- package/package.json +1 -1
|
@@ -1,245 +1,245 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema95 from "@lssm/lib.schema";
|
|
2
2
|
import * as _lssm_lib_contracts15 from "@lssm/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/contracts/index.d.ts
|
|
5
|
-
declare const JobModel:
|
|
5
|
+
declare const JobModel: _lssm_lib_schema95.SchemaModel<{
|
|
6
6
|
id: {
|
|
7
|
-
type:
|
|
7
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
type: {
|
|
11
|
-
type:
|
|
11
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
version: {
|
|
15
|
-
type:
|
|
15
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
payload: {
|
|
19
|
-
type:
|
|
19
|
+
type: _lssm_lib_schema95.FieldType<unknown, unknown>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
status: {
|
|
23
|
-
type:
|
|
23
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
priority: {
|
|
27
|
-
type:
|
|
27
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
attempts: {
|
|
31
|
-
type:
|
|
31
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
32
32
|
isOptional: false;
|
|
33
33
|
};
|
|
34
34
|
maxRetries: {
|
|
35
|
-
type:
|
|
35
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
createdAt: {
|
|
39
|
-
type:
|
|
39
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
updatedAt: {
|
|
43
|
-
type:
|
|
43
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
44
44
|
isOptional: false;
|
|
45
45
|
};
|
|
46
46
|
scheduledAt: {
|
|
47
|
-
type:
|
|
47
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
48
48
|
isOptional: true;
|
|
49
49
|
};
|
|
50
50
|
startedAt: {
|
|
51
|
-
type:
|
|
51
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
52
52
|
isOptional: true;
|
|
53
53
|
};
|
|
54
54
|
completedAt: {
|
|
55
|
-
type:
|
|
55
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
56
56
|
isOptional: true;
|
|
57
57
|
};
|
|
58
58
|
lastError: {
|
|
59
|
-
type:
|
|
59
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
60
60
|
isOptional: true;
|
|
61
61
|
};
|
|
62
62
|
}>;
|
|
63
|
-
declare const ScheduledJobModel:
|
|
63
|
+
declare const ScheduledJobModel: _lssm_lib_schema95.SchemaModel<{
|
|
64
64
|
id: {
|
|
65
|
-
type:
|
|
65
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
66
66
|
isOptional: false;
|
|
67
67
|
};
|
|
68
68
|
name: {
|
|
69
|
-
type:
|
|
69
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
70
70
|
isOptional: false;
|
|
71
71
|
};
|
|
72
72
|
description: {
|
|
73
|
-
type:
|
|
73
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
74
74
|
isOptional: true;
|
|
75
75
|
};
|
|
76
76
|
cronExpression: {
|
|
77
|
-
type:
|
|
77
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
78
78
|
isOptional: false;
|
|
79
79
|
};
|
|
80
80
|
timezone: {
|
|
81
|
-
type:
|
|
81
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
82
82
|
isOptional: false;
|
|
83
83
|
};
|
|
84
84
|
jobType: {
|
|
85
|
-
type:
|
|
85
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
86
86
|
isOptional: false;
|
|
87
87
|
};
|
|
88
88
|
enabled: {
|
|
89
|
-
type:
|
|
89
|
+
type: _lssm_lib_schema95.FieldType<boolean, boolean>;
|
|
90
90
|
isOptional: false;
|
|
91
91
|
};
|
|
92
92
|
lastRunAt: {
|
|
93
|
-
type:
|
|
93
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
94
94
|
isOptional: true;
|
|
95
95
|
};
|
|
96
96
|
nextRunAt: {
|
|
97
|
-
type:
|
|
97
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
98
98
|
isOptional: true;
|
|
99
99
|
};
|
|
100
100
|
createdAt: {
|
|
101
|
-
type:
|
|
101
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
102
102
|
isOptional: false;
|
|
103
103
|
};
|
|
104
104
|
}>;
|
|
105
|
-
declare const QueueStatsModel:
|
|
105
|
+
declare const QueueStatsModel: _lssm_lib_schema95.SchemaModel<{
|
|
106
106
|
pending: {
|
|
107
|
-
type:
|
|
107
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
108
108
|
isOptional: false;
|
|
109
109
|
};
|
|
110
110
|
running: {
|
|
111
|
-
type:
|
|
111
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
112
112
|
isOptional: false;
|
|
113
113
|
};
|
|
114
114
|
completed: {
|
|
115
|
-
type:
|
|
115
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
116
116
|
isOptional: false;
|
|
117
117
|
};
|
|
118
118
|
failed: {
|
|
119
|
-
type:
|
|
119
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
120
120
|
isOptional: false;
|
|
121
121
|
};
|
|
122
122
|
deadLetter: {
|
|
123
|
-
type:
|
|
123
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
124
124
|
isOptional: false;
|
|
125
125
|
};
|
|
126
126
|
}>;
|
|
127
127
|
/**
|
|
128
128
|
* Enqueue a job.
|
|
129
129
|
*/
|
|
130
|
-
declare const EnqueueJobContract: _lssm_lib_contracts15.ContractSpec<
|
|
130
|
+
declare const EnqueueJobContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema95.SchemaModel<{
|
|
131
131
|
type: {
|
|
132
|
-
type:
|
|
132
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
133
133
|
isOptional: false;
|
|
134
134
|
};
|
|
135
135
|
payload: {
|
|
136
|
-
type:
|
|
136
|
+
type: _lssm_lib_schema95.FieldType<unknown, unknown>;
|
|
137
137
|
isOptional: false;
|
|
138
138
|
};
|
|
139
139
|
delaySeconds: {
|
|
140
|
-
type:
|
|
140
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
141
141
|
isOptional: true;
|
|
142
142
|
};
|
|
143
143
|
dedupeKey: {
|
|
144
|
-
type:
|
|
144
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
145
145
|
isOptional: true;
|
|
146
146
|
};
|
|
147
147
|
maxRetries: {
|
|
148
|
-
type:
|
|
148
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
149
149
|
isOptional: true;
|
|
150
150
|
};
|
|
151
151
|
priority: {
|
|
152
|
-
type:
|
|
152
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
153
153
|
isOptional: true;
|
|
154
154
|
};
|
|
155
155
|
timeoutMs: {
|
|
156
|
-
type:
|
|
156
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
157
157
|
isOptional: true;
|
|
158
158
|
};
|
|
159
|
-
}>,
|
|
159
|
+
}>, _lssm_lib_schema95.SchemaModel<{
|
|
160
160
|
id: {
|
|
161
|
-
type:
|
|
161
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
162
162
|
isOptional: false;
|
|
163
163
|
};
|
|
164
164
|
type: {
|
|
165
|
-
type:
|
|
165
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
166
166
|
isOptional: false;
|
|
167
167
|
};
|
|
168
168
|
version: {
|
|
169
|
-
type:
|
|
169
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
170
170
|
isOptional: false;
|
|
171
171
|
};
|
|
172
172
|
payload: {
|
|
173
|
-
type:
|
|
173
|
+
type: _lssm_lib_schema95.FieldType<unknown, unknown>;
|
|
174
174
|
isOptional: false;
|
|
175
175
|
};
|
|
176
176
|
status: {
|
|
177
|
-
type:
|
|
177
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
178
178
|
isOptional: false;
|
|
179
179
|
};
|
|
180
180
|
priority: {
|
|
181
|
-
type:
|
|
181
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
182
182
|
isOptional: false;
|
|
183
183
|
};
|
|
184
184
|
attempts: {
|
|
185
|
-
type:
|
|
185
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
186
186
|
isOptional: false;
|
|
187
187
|
};
|
|
188
188
|
maxRetries: {
|
|
189
|
-
type:
|
|
189
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
190
190
|
isOptional: false;
|
|
191
191
|
};
|
|
192
192
|
createdAt: {
|
|
193
|
-
type:
|
|
193
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
194
194
|
isOptional: false;
|
|
195
195
|
};
|
|
196
196
|
updatedAt: {
|
|
197
|
-
type:
|
|
197
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
198
198
|
isOptional: false;
|
|
199
199
|
};
|
|
200
200
|
scheduledAt: {
|
|
201
|
-
type:
|
|
201
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
202
202
|
isOptional: true;
|
|
203
203
|
};
|
|
204
204
|
startedAt: {
|
|
205
|
-
type:
|
|
205
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
206
206
|
isOptional: true;
|
|
207
207
|
};
|
|
208
208
|
completedAt: {
|
|
209
|
-
type:
|
|
209
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
210
210
|
isOptional: true;
|
|
211
211
|
};
|
|
212
212
|
lastError: {
|
|
213
|
-
type:
|
|
213
|
+
type: _lssm_lib_schema95.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_schema95.SchemaModel<{
|
|
221
221
|
jobId: {
|
|
222
|
-
type:
|
|
222
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
223
223
|
isOptional: false;
|
|
224
224
|
};
|
|
225
225
|
type: {
|
|
226
|
-
type:
|
|
226
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
227
227
|
isOptional: false;
|
|
228
228
|
};
|
|
229
229
|
priority: {
|
|
230
|
-
type:
|
|
230
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
231
231
|
isOptional: false;
|
|
232
232
|
};
|
|
233
233
|
scheduledAt: {
|
|
234
|
-
type:
|
|
234
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
235
235
|
isOptional: true;
|
|
236
236
|
};
|
|
237
237
|
tenantId: {
|
|
238
|
-
type:
|
|
238
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
239
239
|
isOptional: true;
|
|
240
240
|
};
|
|
241
241
|
enqueuedAt: {
|
|
242
|
-
type:
|
|
242
|
+
type: _lssm_lib_schema95.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: _lssm_lib_contracts15.ContractSpec<
|
|
250
|
+
declare const GetJobContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema95.SchemaModel<{
|
|
251
251
|
jobId: {
|
|
252
|
-
type:
|
|
252
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
253
253
|
isOptional: false;
|
|
254
254
|
};
|
|
255
|
-
}>,
|
|
255
|
+
}>, _lssm_lib_schema95.SchemaModel<{
|
|
256
256
|
id: {
|
|
257
|
-
type:
|
|
257
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
258
258
|
isOptional: false;
|
|
259
259
|
};
|
|
260
260
|
type: {
|
|
261
|
-
type:
|
|
261
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
262
262
|
isOptional: false;
|
|
263
263
|
};
|
|
264
264
|
version: {
|
|
265
|
-
type:
|
|
265
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
266
266
|
isOptional: false;
|
|
267
267
|
};
|
|
268
268
|
payload: {
|
|
269
|
-
type:
|
|
269
|
+
type: _lssm_lib_schema95.FieldType<unknown, unknown>;
|
|
270
270
|
isOptional: false;
|
|
271
271
|
};
|
|
272
272
|
status: {
|
|
273
|
-
type:
|
|
273
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
274
274
|
isOptional: false;
|
|
275
275
|
};
|
|
276
276
|
priority: {
|
|
277
|
-
type:
|
|
277
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
278
278
|
isOptional: false;
|
|
279
279
|
};
|
|
280
280
|
attempts: {
|
|
281
|
-
type:
|
|
281
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
282
282
|
isOptional: false;
|
|
283
283
|
};
|
|
284
284
|
maxRetries: {
|
|
285
|
-
type:
|
|
285
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
286
286
|
isOptional: false;
|
|
287
287
|
};
|
|
288
288
|
createdAt: {
|
|
289
|
-
type:
|
|
289
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
290
290
|
isOptional: false;
|
|
291
291
|
};
|
|
292
292
|
updatedAt: {
|
|
293
|
-
type:
|
|
293
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
294
294
|
isOptional: false;
|
|
295
295
|
};
|
|
296
296
|
scheduledAt: {
|
|
297
|
-
type:
|
|
297
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
298
298
|
isOptional: true;
|
|
299
299
|
};
|
|
300
300
|
startedAt: {
|
|
301
|
-
type:
|
|
301
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
302
302
|
isOptional: true;
|
|
303
303
|
};
|
|
304
304
|
completedAt: {
|
|
305
|
-
type:
|
|
305
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
306
306
|
isOptional: true;
|
|
307
307
|
};
|
|
308
308
|
lastError: {
|
|
309
|
-
type:
|
|
309
|
+
type: _lssm_lib_schema95.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: _lssm_lib_contracts15.ContractSpec<
|
|
316
|
+
declare const CancelJobContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema95.SchemaModel<{
|
|
317
317
|
jobId: {
|
|
318
|
-
type:
|
|
318
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
319
319
|
isOptional: false;
|
|
320
320
|
};
|
|
321
|
-
}>,
|
|
321
|
+
}>, _lssm_lib_schema95.SchemaModel<{
|
|
322
322
|
success: {
|
|
323
|
-
type:
|
|
323
|
+
type: _lssm_lib_schema95.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_schema95.SchemaModel<{
|
|
331
331
|
jobId: {
|
|
332
|
-
type:
|
|
332
|
+
type: _lssm_lib_schema95.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: _lssm_lib_contracts15.ContractSpec<
|
|
340
|
+
declare const GetQueueStatsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema95.AnySchemaModel, _lssm_lib_schema95.SchemaModel<{
|
|
341
341
|
pending: {
|
|
342
|
-
type:
|
|
342
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
343
343
|
isOptional: false;
|
|
344
344
|
};
|
|
345
345
|
running: {
|
|
346
|
-
type:
|
|
346
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
347
347
|
isOptional: false;
|
|
348
348
|
};
|
|
349
349
|
completed: {
|
|
350
|
-
type:
|
|
350
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
351
351
|
isOptional: false;
|
|
352
352
|
};
|
|
353
353
|
failed: {
|
|
354
|
-
type:
|
|
354
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
355
355
|
isOptional: false;
|
|
356
356
|
};
|
|
357
357
|
deadLetter: {
|
|
358
|
-
type:
|
|
358
|
+
type: _lssm_lib_schema95.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: _lssm_lib_contracts15.ContractSpec<
|
|
365
|
+
declare const CreateScheduledJobContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema95.SchemaModel<{
|
|
366
366
|
name: {
|
|
367
|
-
type:
|
|
367
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
368
368
|
isOptional: false;
|
|
369
369
|
};
|
|
370
370
|
description: {
|
|
371
|
-
type:
|
|
371
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
372
372
|
isOptional: true;
|
|
373
373
|
};
|
|
374
374
|
cronExpression: {
|
|
375
|
-
type:
|
|
375
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
376
376
|
isOptional: false;
|
|
377
377
|
};
|
|
378
378
|
timezone: {
|
|
379
|
-
type:
|
|
379
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
380
380
|
isOptional: true;
|
|
381
381
|
};
|
|
382
382
|
jobType: {
|
|
383
|
-
type:
|
|
383
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
384
384
|
isOptional: false;
|
|
385
385
|
};
|
|
386
386
|
payload: {
|
|
387
|
-
type:
|
|
387
|
+
type: _lssm_lib_schema95.FieldType<unknown, unknown>;
|
|
388
388
|
isOptional: true;
|
|
389
389
|
};
|
|
390
390
|
maxRetries: {
|
|
391
|
-
type:
|
|
391
|
+
type: _lssm_lib_schema95.FieldType<number, number>;
|
|
392
392
|
isOptional: true;
|
|
393
393
|
};
|
|
394
394
|
enabled: {
|
|
395
|
-
type:
|
|
395
|
+
type: _lssm_lib_schema95.FieldType<boolean, boolean>;
|
|
396
396
|
isOptional: true;
|
|
397
397
|
};
|
|
398
|
-
}>,
|
|
398
|
+
}>, _lssm_lib_schema95.SchemaModel<{
|
|
399
399
|
id: {
|
|
400
|
-
type:
|
|
400
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
401
401
|
isOptional: false;
|
|
402
402
|
};
|
|
403
403
|
name: {
|
|
404
|
-
type:
|
|
404
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
405
405
|
isOptional: false;
|
|
406
406
|
};
|
|
407
407
|
description: {
|
|
408
|
-
type:
|
|
408
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
409
409
|
isOptional: true;
|
|
410
410
|
};
|
|
411
411
|
cronExpression: {
|
|
412
|
-
type:
|
|
412
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
413
413
|
isOptional: false;
|
|
414
414
|
};
|
|
415
415
|
timezone: {
|
|
416
|
-
type:
|
|
416
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
417
417
|
isOptional: false;
|
|
418
418
|
};
|
|
419
419
|
jobType: {
|
|
420
|
-
type:
|
|
420
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
421
421
|
isOptional: false;
|
|
422
422
|
};
|
|
423
423
|
enabled: {
|
|
424
|
-
type:
|
|
424
|
+
type: _lssm_lib_schema95.FieldType<boolean, boolean>;
|
|
425
425
|
isOptional: false;
|
|
426
426
|
};
|
|
427
427
|
lastRunAt: {
|
|
428
|
-
type:
|
|
428
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
429
429
|
isOptional: true;
|
|
430
430
|
};
|
|
431
431
|
nextRunAt: {
|
|
432
|
-
type:
|
|
432
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
433
433
|
isOptional: true;
|
|
434
434
|
};
|
|
435
435
|
createdAt: {
|
|
436
|
-
type:
|
|
436
|
+
type: _lssm_lib_schema95.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: _lssm_lib_contracts15.ContractSpec<
|
|
443
|
+
declare const ListScheduledJobsContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema95.AnySchemaModel, _lssm_lib_schema95.SchemaModel<{
|
|
444
444
|
schedules: {
|
|
445
|
-
type:
|
|
445
|
+
type: _lssm_lib_schema95.SchemaModel<{
|
|
446
446
|
id: {
|
|
447
|
-
type:
|
|
447
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
448
448
|
isOptional: false;
|
|
449
449
|
};
|
|
450
450
|
name: {
|
|
451
|
-
type:
|
|
451
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
452
452
|
isOptional: false;
|
|
453
453
|
};
|
|
454
454
|
description: {
|
|
455
|
-
type:
|
|
455
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
456
456
|
isOptional: true;
|
|
457
457
|
};
|
|
458
458
|
cronExpression: {
|
|
459
|
-
type:
|
|
459
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
460
460
|
isOptional: false;
|
|
461
461
|
};
|
|
462
462
|
timezone: {
|
|
463
|
-
type:
|
|
463
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
464
464
|
isOptional: false;
|
|
465
465
|
};
|
|
466
466
|
jobType: {
|
|
467
|
-
type:
|
|
467
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
468
468
|
isOptional: false;
|
|
469
469
|
};
|
|
470
470
|
enabled: {
|
|
471
|
-
type:
|
|
471
|
+
type: _lssm_lib_schema95.FieldType<boolean, boolean>;
|
|
472
472
|
isOptional: false;
|
|
473
473
|
};
|
|
474
474
|
lastRunAt: {
|
|
475
|
-
type:
|
|
475
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
476
476
|
isOptional: true;
|
|
477
477
|
};
|
|
478
478
|
nextRunAt: {
|
|
479
|
-
type:
|
|
479
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
480
480
|
isOptional: true;
|
|
481
481
|
};
|
|
482
482
|
createdAt: {
|
|
483
|
-
type:
|
|
483
|
+
type: _lssm_lib_schema95.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: _lssm_lib_contracts15.ContractSpec<
|
|
494
|
+
declare const ToggleScheduledJobContract: _lssm_lib_contracts15.ContractSpec<_lssm_lib_schema95.SchemaModel<{
|
|
495
495
|
name: {
|
|
496
|
-
type:
|
|
496
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
497
497
|
isOptional: false;
|
|
498
498
|
};
|
|
499
499
|
enabled: {
|
|
500
|
-
type:
|
|
500
|
+
type: _lssm_lib_schema95.FieldType<boolean, boolean>;
|
|
501
501
|
isOptional: false;
|
|
502
502
|
};
|
|
503
|
-
}>,
|
|
503
|
+
}>, _lssm_lib_schema95.SchemaModel<{
|
|
504
504
|
id: {
|
|
505
|
-
type:
|
|
505
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
506
506
|
isOptional: false;
|
|
507
507
|
};
|
|
508
508
|
name: {
|
|
509
|
-
type:
|
|
509
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
510
510
|
isOptional: false;
|
|
511
511
|
};
|
|
512
512
|
description: {
|
|
513
|
-
type:
|
|
513
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
514
514
|
isOptional: true;
|
|
515
515
|
};
|
|
516
516
|
cronExpression: {
|
|
517
|
-
type:
|
|
517
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
518
518
|
isOptional: false;
|
|
519
519
|
};
|
|
520
520
|
timezone: {
|
|
521
|
-
type:
|
|
521
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
522
522
|
isOptional: false;
|
|
523
523
|
};
|
|
524
524
|
jobType: {
|
|
525
|
-
type:
|
|
525
|
+
type: _lssm_lib_schema95.FieldType<string, string>;
|
|
526
526
|
isOptional: false;
|
|
527
527
|
};
|
|
528
528
|
enabled: {
|
|
529
|
-
type:
|
|
529
|
+
type: _lssm_lib_schema95.FieldType<boolean, boolean>;
|
|
530
530
|
isOptional: false;
|
|
531
531
|
};
|
|
532
532
|
lastRunAt: {
|
|
533
|
-
type:
|
|
533
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
534
534
|
isOptional: true;
|
|
535
535
|
};
|
|
536
536
|
nextRunAt: {
|
|
537
|
-
type:
|
|
537
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
538
538
|
isOptional: true;
|
|
539
539
|
};
|
|
540
540
|
createdAt: {
|
|
541
|
-
type:
|
|
541
|
+
type: _lssm_lib_schema95.FieldType<Date, string>;
|
|
542
542
|
isOptional: false;
|
|
543
543
|
};
|
|
544
544
|
}>, undefined>;
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _lssm_lib_schema234 from "@lssm/lib.schema";
|
|
2
2
|
import { ModuleSchemaContribution } from "@lssm/lib.schema";
|
|
3
3
|
|
|
4
4
|
//#region src/entities/index.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Job status enum.
|
|
7
7
|
*/
|
|
8
|
-
declare const JobStatusEnum:
|
|
8
|
+
declare const JobStatusEnum: _lssm_lib_schema234.EntityEnumDef;
|
|
9
9
|
/**
|
|
10
10
|
* Job entity - represents a single job execution.
|
|
11
11
|
*/
|
|
12
|
-
declare const JobEntity:
|
|
13
|
-
id:
|
|
14
|
-
type:
|
|
15
|
-
version:
|
|
16
|
-
payload:
|
|
17
|
-
status:
|
|
18
|
-
priority:
|
|
19
|
-
attempts:
|
|
20
|
-
maxRetries:
|
|
21
|
-
lastError:
|
|
22
|
-
lastErrorStack:
|
|
23
|
-
scheduledAt:
|
|
24
|
-
startedAt:
|
|
25
|
-
completedAt:
|
|
26
|
-
timeoutAt:
|
|
27
|
-
dedupeKey:
|
|
28
|
-
tenantId:
|
|
29
|
-
userId:
|
|
30
|
-
traceId:
|
|
31
|
-
metadata:
|
|
32
|
-
result:
|
|
33
|
-
createdAt:
|
|
34
|
-
updatedAt:
|
|
35
|
-
scheduledJob:
|
|
36
|
-
scheduledJobId:
|
|
37
|
-
executions:
|
|
12
|
+
declare const JobEntity: _lssm_lib_schema234.EntitySpec<{
|
|
13
|
+
id: _lssm_lib_schema234.EntityScalarField;
|
|
14
|
+
type: _lssm_lib_schema234.EntityScalarField;
|
|
15
|
+
version: _lssm_lib_schema234.EntityScalarField;
|
|
16
|
+
payload: _lssm_lib_schema234.EntityScalarField;
|
|
17
|
+
status: _lssm_lib_schema234.EntityEnumField;
|
|
18
|
+
priority: _lssm_lib_schema234.EntityScalarField;
|
|
19
|
+
attempts: _lssm_lib_schema234.EntityScalarField;
|
|
20
|
+
maxRetries: _lssm_lib_schema234.EntityScalarField;
|
|
21
|
+
lastError: _lssm_lib_schema234.EntityScalarField;
|
|
22
|
+
lastErrorStack: _lssm_lib_schema234.EntityScalarField;
|
|
23
|
+
scheduledAt: _lssm_lib_schema234.EntityScalarField;
|
|
24
|
+
startedAt: _lssm_lib_schema234.EntityScalarField;
|
|
25
|
+
completedAt: _lssm_lib_schema234.EntityScalarField;
|
|
26
|
+
timeoutAt: _lssm_lib_schema234.EntityScalarField;
|
|
27
|
+
dedupeKey: _lssm_lib_schema234.EntityScalarField;
|
|
28
|
+
tenantId: _lssm_lib_schema234.EntityScalarField;
|
|
29
|
+
userId: _lssm_lib_schema234.EntityScalarField;
|
|
30
|
+
traceId: _lssm_lib_schema234.EntityScalarField;
|
|
31
|
+
metadata: _lssm_lib_schema234.EntityScalarField;
|
|
32
|
+
result: _lssm_lib_schema234.EntityScalarField;
|
|
33
|
+
createdAt: _lssm_lib_schema234.EntityScalarField;
|
|
34
|
+
updatedAt: _lssm_lib_schema234.EntityScalarField;
|
|
35
|
+
scheduledJob: _lssm_lib_schema234.EntityRelationField;
|
|
36
|
+
scheduledJobId: _lssm_lib_schema234.EntityScalarField;
|
|
37
|
+
executions: _lssm_lib_schema234.EntityRelationField;
|
|
38
38
|
}>;
|
|
39
39
|
/**
|
|
40
40
|
* ScheduledJob entity - recurring job definitions.
|
|
41
41
|
*/
|
|
42
|
-
declare const ScheduledJobEntity:
|
|
43
|
-
id:
|
|
44
|
-
name:
|
|
45
|
-
description:
|
|
46
|
-
cronExpression:
|
|
47
|
-
timezone:
|
|
48
|
-
jobType:
|
|
49
|
-
jobVersion:
|
|
50
|
-
payload:
|
|
51
|
-
maxRetries:
|
|
52
|
-
timeoutMs:
|
|
53
|
-
enabled:
|
|
54
|
-
lastRunAt:
|
|
55
|
-
nextRunAt:
|
|
56
|
-
tenantId:
|
|
57
|
-
createdAt:
|
|
58
|
-
updatedAt:
|
|
59
|
-
jobs:
|
|
42
|
+
declare const ScheduledJobEntity: _lssm_lib_schema234.EntitySpec<{
|
|
43
|
+
id: _lssm_lib_schema234.EntityScalarField;
|
|
44
|
+
name: _lssm_lib_schema234.EntityScalarField;
|
|
45
|
+
description: _lssm_lib_schema234.EntityScalarField;
|
|
46
|
+
cronExpression: _lssm_lib_schema234.EntityScalarField;
|
|
47
|
+
timezone: _lssm_lib_schema234.EntityScalarField;
|
|
48
|
+
jobType: _lssm_lib_schema234.EntityScalarField;
|
|
49
|
+
jobVersion: _lssm_lib_schema234.EntityScalarField;
|
|
50
|
+
payload: _lssm_lib_schema234.EntityScalarField;
|
|
51
|
+
maxRetries: _lssm_lib_schema234.EntityScalarField;
|
|
52
|
+
timeoutMs: _lssm_lib_schema234.EntityScalarField;
|
|
53
|
+
enabled: _lssm_lib_schema234.EntityScalarField;
|
|
54
|
+
lastRunAt: _lssm_lib_schema234.EntityScalarField;
|
|
55
|
+
nextRunAt: _lssm_lib_schema234.EntityScalarField;
|
|
56
|
+
tenantId: _lssm_lib_schema234.EntityScalarField;
|
|
57
|
+
createdAt: _lssm_lib_schema234.EntityScalarField;
|
|
58
|
+
updatedAt: _lssm_lib_schema234.EntityScalarField;
|
|
59
|
+
jobs: _lssm_lib_schema234.EntityRelationField;
|
|
60
60
|
}>;
|
|
61
61
|
/**
|
|
62
62
|
* JobExecution entity - individual execution attempts.
|
|
63
63
|
*/
|
|
64
|
-
declare const JobExecutionEntity:
|
|
65
|
-
id:
|
|
66
|
-
jobId:
|
|
67
|
-
attemptNumber:
|
|
68
|
-
startedAt:
|
|
69
|
-
completedAt:
|
|
70
|
-
durationMs:
|
|
71
|
-
success:
|
|
72
|
-
error:
|
|
73
|
-
errorStack:
|
|
74
|
-
result:
|
|
75
|
-
workerId:
|
|
76
|
-
job:
|
|
64
|
+
declare const JobExecutionEntity: _lssm_lib_schema234.EntitySpec<{
|
|
65
|
+
id: _lssm_lib_schema234.EntityScalarField;
|
|
66
|
+
jobId: _lssm_lib_schema234.EntityScalarField;
|
|
67
|
+
attemptNumber: _lssm_lib_schema234.EntityScalarField;
|
|
68
|
+
startedAt: _lssm_lib_schema234.EntityScalarField;
|
|
69
|
+
completedAt: _lssm_lib_schema234.EntityScalarField;
|
|
70
|
+
durationMs: _lssm_lib_schema234.EntityScalarField;
|
|
71
|
+
success: _lssm_lib_schema234.EntityScalarField;
|
|
72
|
+
error: _lssm_lib_schema234.EntityScalarField;
|
|
73
|
+
errorStack: _lssm_lib_schema234.EntityScalarField;
|
|
74
|
+
result: _lssm_lib_schema234.EntityScalarField;
|
|
75
|
+
workerId: _lssm_lib_schema234.EntityScalarField;
|
|
76
|
+
job: _lssm_lib_schema234.EntityRelationField;
|
|
77
77
|
}>;
|
|
78
78
|
/**
|
|
79
79
|
* All job entities for schema composition.
|
|
80
80
|
*/
|
|
81
|
-
declare const jobEntities: (
|
|
82
|
-
id:
|
|
83
|
-
type:
|
|
84
|
-
version:
|
|
85
|
-
payload:
|
|
86
|
-
status:
|
|
87
|
-
priority:
|
|
88
|
-
attempts:
|
|
89
|
-
maxRetries:
|
|
90
|
-
lastError:
|
|
91
|
-
lastErrorStack:
|
|
92
|
-
scheduledAt:
|
|
93
|
-
startedAt:
|
|
94
|
-
completedAt:
|
|
95
|
-
timeoutAt:
|
|
96
|
-
dedupeKey:
|
|
97
|
-
tenantId:
|
|
98
|
-
userId:
|
|
99
|
-
traceId:
|
|
100
|
-
metadata:
|
|
101
|
-
result:
|
|
102
|
-
createdAt:
|
|
103
|
-
updatedAt:
|
|
104
|
-
scheduledJob:
|
|
105
|
-
scheduledJobId:
|
|
106
|
-
executions:
|
|
107
|
-
}> |
|
|
108
|
-
id:
|
|
109
|
-
name:
|
|
110
|
-
description:
|
|
111
|
-
cronExpression:
|
|
112
|
-
timezone:
|
|
113
|
-
jobType:
|
|
114
|
-
jobVersion:
|
|
115
|
-
payload:
|
|
116
|
-
maxRetries:
|
|
117
|
-
timeoutMs:
|
|
118
|
-
enabled:
|
|
119
|
-
lastRunAt:
|
|
120
|
-
nextRunAt:
|
|
121
|
-
tenantId:
|
|
122
|
-
createdAt:
|
|
123
|
-
updatedAt:
|
|
124
|
-
jobs:
|
|
125
|
-
}> |
|
|
126
|
-
id:
|
|
127
|
-
jobId:
|
|
128
|
-
attemptNumber:
|
|
129
|
-
startedAt:
|
|
130
|
-
completedAt:
|
|
131
|
-
durationMs:
|
|
132
|
-
success:
|
|
133
|
-
error:
|
|
134
|
-
errorStack:
|
|
135
|
-
result:
|
|
136
|
-
workerId:
|
|
137
|
-
job:
|
|
81
|
+
declare const jobEntities: (_lssm_lib_schema234.EntitySpec<{
|
|
82
|
+
id: _lssm_lib_schema234.EntityScalarField;
|
|
83
|
+
type: _lssm_lib_schema234.EntityScalarField;
|
|
84
|
+
version: _lssm_lib_schema234.EntityScalarField;
|
|
85
|
+
payload: _lssm_lib_schema234.EntityScalarField;
|
|
86
|
+
status: _lssm_lib_schema234.EntityEnumField;
|
|
87
|
+
priority: _lssm_lib_schema234.EntityScalarField;
|
|
88
|
+
attempts: _lssm_lib_schema234.EntityScalarField;
|
|
89
|
+
maxRetries: _lssm_lib_schema234.EntityScalarField;
|
|
90
|
+
lastError: _lssm_lib_schema234.EntityScalarField;
|
|
91
|
+
lastErrorStack: _lssm_lib_schema234.EntityScalarField;
|
|
92
|
+
scheduledAt: _lssm_lib_schema234.EntityScalarField;
|
|
93
|
+
startedAt: _lssm_lib_schema234.EntityScalarField;
|
|
94
|
+
completedAt: _lssm_lib_schema234.EntityScalarField;
|
|
95
|
+
timeoutAt: _lssm_lib_schema234.EntityScalarField;
|
|
96
|
+
dedupeKey: _lssm_lib_schema234.EntityScalarField;
|
|
97
|
+
tenantId: _lssm_lib_schema234.EntityScalarField;
|
|
98
|
+
userId: _lssm_lib_schema234.EntityScalarField;
|
|
99
|
+
traceId: _lssm_lib_schema234.EntityScalarField;
|
|
100
|
+
metadata: _lssm_lib_schema234.EntityScalarField;
|
|
101
|
+
result: _lssm_lib_schema234.EntityScalarField;
|
|
102
|
+
createdAt: _lssm_lib_schema234.EntityScalarField;
|
|
103
|
+
updatedAt: _lssm_lib_schema234.EntityScalarField;
|
|
104
|
+
scheduledJob: _lssm_lib_schema234.EntityRelationField;
|
|
105
|
+
scheduledJobId: _lssm_lib_schema234.EntityScalarField;
|
|
106
|
+
executions: _lssm_lib_schema234.EntityRelationField;
|
|
107
|
+
}> | _lssm_lib_schema234.EntitySpec<{
|
|
108
|
+
id: _lssm_lib_schema234.EntityScalarField;
|
|
109
|
+
name: _lssm_lib_schema234.EntityScalarField;
|
|
110
|
+
description: _lssm_lib_schema234.EntityScalarField;
|
|
111
|
+
cronExpression: _lssm_lib_schema234.EntityScalarField;
|
|
112
|
+
timezone: _lssm_lib_schema234.EntityScalarField;
|
|
113
|
+
jobType: _lssm_lib_schema234.EntityScalarField;
|
|
114
|
+
jobVersion: _lssm_lib_schema234.EntityScalarField;
|
|
115
|
+
payload: _lssm_lib_schema234.EntityScalarField;
|
|
116
|
+
maxRetries: _lssm_lib_schema234.EntityScalarField;
|
|
117
|
+
timeoutMs: _lssm_lib_schema234.EntityScalarField;
|
|
118
|
+
enabled: _lssm_lib_schema234.EntityScalarField;
|
|
119
|
+
lastRunAt: _lssm_lib_schema234.EntityScalarField;
|
|
120
|
+
nextRunAt: _lssm_lib_schema234.EntityScalarField;
|
|
121
|
+
tenantId: _lssm_lib_schema234.EntityScalarField;
|
|
122
|
+
createdAt: _lssm_lib_schema234.EntityScalarField;
|
|
123
|
+
updatedAt: _lssm_lib_schema234.EntityScalarField;
|
|
124
|
+
jobs: _lssm_lib_schema234.EntityRelationField;
|
|
125
|
+
}> | _lssm_lib_schema234.EntitySpec<{
|
|
126
|
+
id: _lssm_lib_schema234.EntityScalarField;
|
|
127
|
+
jobId: _lssm_lib_schema234.EntityScalarField;
|
|
128
|
+
attemptNumber: _lssm_lib_schema234.EntityScalarField;
|
|
129
|
+
startedAt: _lssm_lib_schema234.EntityScalarField;
|
|
130
|
+
completedAt: _lssm_lib_schema234.EntityScalarField;
|
|
131
|
+
durationMs: _lssm_lib_schema234.EntityScalarField;
|
|
132
|
+
success: _lssm_lib_schema234.EntityScalarField;
|
|
133
|
+
error: _lssm_lib_schema234.EntityScalarField;
|
|
134
|
+
errorStack: _lssm_lib_schema234.EntityScalarField;
|
|
135
|
+
result: _lssm_lib_schema234.EntityScalarField;
|
|
136
|
+
workerId: _lssm_lib_schema234.EntityScalarField;
|
|
137
|
+
job: _lssm_lib_schema234.EntityRelationField;
|
|
138
138
|
}>)[];
|
|
139
139
|
/**
|
|
140
140
|
* Module schema contribution for jobs.
|
package/package.json
CHANGED