@prenta/core 8.0.0 → 8.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/routes/scheduling.d.ts.map +1 -1
  3. package/dist/api/routes/scheduling.js +6 -47
  4. package/dist/api/routes/scheduling.js.map +1 -1
  5. package/dist/content-health/cron.d.ts +16 -0
  6. package/dist/content-health/cron.d.ts.map +1 -1
  7. package/dist/content-health/cron.js +18 -4
  8. package/dist/content-health/cron.js.map +1 -1
  9. package/dist/db/model-types.d.ts +15 -0
  10. package/dist/db/model-types.d.ts.map +1 -1
  11. package/dist/generated/browser.d.ts +8 -0
  12. package/dist/generated/client.d.ts +8 -0
  13. package/dist/generated/internal/class.d.ts +11 -0
  14. package/dist/generated/internal/class.js +4 -4
  15. package/dist/generated/internal/prismaNamespace.d.ts +99 -1
  16. package/dist/generated/internal/prismaNamespace.js +22 -1
  17. package/dist/generated/internal/prismaNamespaceBrowser.d.ts +23 -0
  18. package/dist/generated/internal/prismaNamespaceBrowser.js +22 -1
  19. package/dist/generated/models/Job.d.ts +1243 -0
  20. package/dist/generated/models/Job.js +1 -0
  21. package/dist/generated/models.d.ts +1 -0
  22. package/dist/jobs/handlers.d.ts +4 -0
  23. package/dist/jobs/handlers.d.ts.map +1 -0
  24. package/dist/jobs/handlers.js +116 -0
  25. package/dist/jobs/handlers.js.map +1 -0
  26. package/dist/jobs/memory-store.d.ts +13 -0
  27. package/dist/jobs/memory-store.d.ts.map +1 -0
  28. package/dist/jobs/memory-store.js +55 -0
  29. package/dist/jobs/memory-store.js.map +1 -0
  30. package/dist/jobs/prisma-store.d.ts +13 -0
  31. package/dist/jobs/prisma-store.d.ts.map +1 -0
  32. package/dist/jobs/prisma-store.js +113 -0
  33. package/dist/jobs/prisma-store.js.map +1 -0
  34. package/dist/jobs/queue.d.ts +17 -0
  35. package/dist/jobs/queue.d.ts.map +1 -0
  36. package/dist/jobs/queue.js +134 -0
  37. package/dist/jobs/queue.js.map +1 -0
  38. package/dist/jobs/routes.d.ts +10 -0
  39. package/dist/jobs/routes.d.ts.map +1 -0
  40. package/dist/jobs/routes.js +61 -0
  41. package/dist/jobs/routes.js.map +1 -0
  42. package/dist/jobs/seo-scan-tick.d.ts +12 -0
  43. package/dist/jobs/seo-scan-tick.d.ts.map +1 -0
  44. package/dist/jobs/seo-scan-tick.js +41 -0
  45. package/dist/jobs/seo-scan-tick.js.map +1 -0
  46. package/dist/jobs/types.d.ts +52 -0
  47. package/dist/jobs/types.d.ts.map +1 -0
  48. package/dist/jobs/types.js +2 -0
  49. package/dist/jobs/types.js.map +1 -0
  50. package/dist/seo/audit-runner.d.ts +26 -0
  51. package/dist/seo/audit-runner.d.ts.map +1 -1
  52. package/dist/seo/audit-runner.js +264 -6
  53. package/dist/seo/audit-runner.js.map +1 -1
  54. package/package.json +1 -1
  55. package/prisma/migrations/0022_jobs/migration.sql +20 -0
  56. package/prisma/schema.prisma +22 -0
@@ -0,0 +1,1243 @@
1
+ import type * as runtime from "@prisma/client/runtime/client";
2
+ import type * as Prisma from "../internal/prismaNamespace.js";
3
+ /**
4
+ * Model Job
5
+ * Background work for SEO audit, content health, and batch AI.
6
+ * `status` is queued | running | succeeded | dead. A dead row is the
7
+ * dead-letter: it is not claimed again. Ids are minted by the queue so a
8
+ * stub database that ignores `create` still returns a job id.
9
+ */
10
+ export type JobModel = runtime.Types.Result.DefaultSelection<Prisma.$JobPayload>;
11
+ export type AggregateJob = {
12
+ _count: JobCountAggregateOutputType | null;
13
+ _avg: JobAvgAggregateOutputType | null;
14
+ _sum: JobSumAggregateOutputType | null;
15
+ _min: JobMinAggregateOutputType | null;
16
+ _max: JobMaxAggregateOutputType | null;
17
+ };
18
+ export type JobAvgAggregateOutputType = {
19
+ attempts: number | null;
20
+ maxAttempts: number | null;
21
+ };
22
+ export type JobSumAggregateOutputType = {
23
+ attempts: number | null;
24
+ maxAttempts: number | null;
25
+ };
26
+ export type JobMinAggregateOutputType = {
27
+ id: string | null;
28
+ type: string | null;
29
+ status: string | null;
30
+ attempts: number | null;
31
+ maxAttempts: number | null;
32
+ runAt: Date | null;
33
+ lockedAt: Date | null;
34
+ lastError: string | null;
35
+ createdAt: Date | null;
36
+ updatedAt: Date | null;
37
+ };
38
+ export type JobMaxAggregateOutputType = {
39
+ id: string | null;
40
+ type: string | null;
41
+ status: string | null;
42
+ attempts: number | null;
43
+ maxAttempts: number | null;
44
+ runAt: Date | null;
45
+ lockedAt: Date | null;
46
+ lastError: string | null;
47
+ createdAt: Date | null;
48
+ updatedAt: Date | null;
49
+ };
50
+ export type JobCountAggregateOutputType = {
51
+ id: number;
52
+ type: number;
53
+ payload: number;
54
+ status: number;
55
+ attempts: number;
56
+ maxAttempts: number;
57
+ runAt: number;
58
+ lockedAt: number;
59
+ lastError: number;
60
+ progress: number;
61
+ createdAt: number;
62
+ updatedAt: number;
63
+ _all: number;
64
+ };
65
+ export type JobAvgAggregateInputType = {
66
+ attempts?: true;
67
+ maxAttempts?: true;
68
+ };
69
+ export type JobSumAggregateInputType = {
70
+ attempts?: true;
71
+ maxAttempts?: true;
72
+ };
73
+ export type JobMinAggregateInputType = {
74
+ id?: true;
75
+ type?: true;
76
+ status?: true;
77
+ attempts?: true;
78
+ maxAttempts?: true;
79
+ runAt?: true;
80
+ lockedAt?: true;
81
+ lastError?: true;
82
+ createdAt?: true;
83
+ updatedAt?: true;
84
+ };
85
+ export type JobMaxAggregateInputType = {
86
+ id?: true;
87
+ type?: true;
88
+ status?: true;
89
+ attempts?: true;
90
+ maxAttempts?: true;
91
+ runAt?: true;
92
+ lockedAt?: true;
93
+ lastError?: true;
94
+ createdAt?: true;
95
+ updatedAt?: true;
96
+ };
97
+ export type JobCountAggregateInputType = {
98
+ id?: true;
99
+ type?: true;
100
+ payload?: true;
101
+ status?: true;
102
+ attempts?: true;
103
+ maxAttempts?: true;
104
+ runAt?: true;
105
+ lockedAt?: true;
106
+ lastError?: true;
107
+ progress?: true;
108
+ createdAt?: true;
109
+ updatedAt?: true;
110
+ _all?: true;
111
+ };
112
+ export type JobAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
113
+ /**
114
+ * Filter which Job to aggregate.
115
+ */
116
+ where?: Prisma.JobWhereInput;
117
+ /**
118
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
119
+ *
120
+ * Determine the order of Jobs to fetch.
121
+ */
122
+ orderBy?: Prisma.JobOrderByWithRelationInput | Prisma.JobOrderByWithRelationInput[];
123
+ /**
124
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
125
+ *
126
+ * Sets the start position
127
+ */
128
+ cursor?: Prisma.JobWhereUniqueInput;
129
+ /**
130
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
131
+ *
132
+ * Take `±n` Jobs from the position of the cursor.
133
+ */
134
+ take?: number;
135
+ /**
136
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
137
+ *
138
+ * Skip the first `n` Jobs.
139
+ */
140
+ skip?: number;
141
+ /**
142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
143
+ *
144
+ * Count returned Jobs
145
+ **/
146
+ _count?: true | JobCountAggregateInputType;
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
149
+ *
150
+ * Select which fields to average
151
+ **/
152
+ _avg?: JobAvgAggregateInputType;
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
155
+ *
156
+ * Select which fields to sum
157
+ **/
158
+ _sum?: JobSumAggregateInputType;
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
161
+ *
162
+ * Select which fields to find the minimum value
163
+ **/
164
+ _min?: JobMinAggregateInputType;
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
167
+ *
168
+ * Select which fields to find the maximum value
169
+ **/
170
+ _max?: JobMaxAggregateInputType;
171
+ };
172
+ export type GetJobAggregateType<T extends JobAggregateArgs> = {
173
+ [P in keyof T & keyof AggregateJob]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateJob[P]> : Prisma.GetScalarType<T[P], AggregateJob[P]>;
174
+ };
175
+ export type JobGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
176
+ where?: Prisma.JobWhereInput;
177
+ orderBy?: Prisma.JobOrderByWithAggregationInput | Prisma.JobOrderByWithAggregationInput[];
178
+ by: Prisma.JobScalarFieldEnum[] | Prisma.JobScalarFieldEnum;
179
+ having?: Prisma.JobScalarWhereWithAggregatesInput;
180
+ take?: number;
181
+ skip?: number;
182
+ _count?: JobCountAggregateInputType | true;
183
+ _avg?: JobAvgAggregateInputType;
184
+ _sum?: JobSumAggregateInputType;
185
+ _min?: JobMinAggregateInputType;
186
+ _max?: JobMaxAggregateInputType;
187
+ };
188
+ export type JobGroupByOutputType = {
189
+ id: string;
190
+ type: string;
191
+ payload: runtime.JsonValue;
192
+ status: string;
193
+ attempts: number;
194
+ maxAttempts: number;
195
+ runAt: Date;
196
+ lockedAt: Date | null;
197
+ lastError: string | null;
198
+ progress: runtime.JsonValue;
199
+ createdAt: Date;
200
+ updatedAt: Date;
201
+ _count: JobCountAggregateOutputType | null;
202
+ _avg: JobAvgAggregateOutputType | null;
203
+ _sum: JobSumAggregateOutputType | null;
204
+ _min: JobMinAggregateOutputType | null;
205
+ _max: JobMaxAggregateOutputType | null;
206
+ };
207
+ export type GetJobGroupByPayload<T extends JobGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<JobGroupByOutputType, T['by']> & {
208
+ [P in ((keyof T) & (keyof JobGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], JobGroupByOutputType[P]> : Prisma.GetScalarType<T[P], JobGroupByOutputType[P]>;
209
+ }>>;
210
+ export type JobWhereInput = {
211
+ AND?: Prisma.JobWhereInput | Prisma.JobWhereInput[];
212
+ OR?: Prisma.JobWhereInput[];
213
+ NOT?: Prisma.JobWhereInput | Prisma.JobWhereInput[];
214
+ id?: Prisma.StringFilter<"Job"> | string;
215
+ type?: Prisma.StringFilter<"Job"> | string;
216
+ payload?: Prisma.JsonFilter<"Job">;
217
+ status?: Prisma.StringFilter<"Job"> | string;
218
+ attempts?: Prisma.IntFilter<"Job"> | number;
219
+ maxAttempts?: Prisma.IntFilter<"Job"> | number;
220
+ runAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
221
+ lockedAt?: Prisma.DateTimeNullableFilter<"Job"> | Date | string | null;
222
+ lastError?: Prisma.StringNullableFilter<"Job"> | string | null;
223
+ progress?: Prisma.JsonFilter<"Job">;
224
+ createdAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
225
+ updatedAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
226
+ };
227
+ export type JobOrderByWithRelationInput = {
228
+ id?: Prisma.SortOrder;
229
+ type?: Prisma.SortOrder;
230
+ payload?: Prisma.SortOrder;
231
+ status?: Prisma.SortOrder;
232
+ attempts?: Prisma.SortOrder;
233
+ maxAttempts?: Prisma.SortOrder;
234
+ runAt?: Prisma.SortOrder;
235
+ lockedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
236
+ lastError?: Prisma.SortOrderInput | Prisma.SortOrder;
237
+ progress?: Prisma.SortOrder;
238
+ createdAt?: Prisma.SortOrder;
239
+ updatedAt?: Prisma.SortOrder;
240
+ _relevance?: Prisma.JobOrderByRelevanceInput;
241
+ };
242
+ export type JobWhereUniqueInput = Prisma.AtLeast<{
243
+ id?: string;
244
+ AND?: Prisma.JobWhereInput | Prisma.JobWhereInput[];
245
+ OR?: Prisma.JobWhereInput[];
246
+ NOT?: Prisma.JobWhereInput | Prisma.JobWhereInput[];
247
+ type?: Prisma.StringFilter<"Job"> | string;
248
+ payload?: Prisma.JsonFilter<"Job">;
249
+ status?: Prisma.StringFilter<"Job"> | string;
250
+ attempts?: Prisma.IntFilter<"Job"> | number;
251
+ maxAttempts?: Prisma.IntFilter<"Job"> | number;
252
+ runAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
253
+ lockedAt?: Prisma.DateTimeNullableFilter<"Job"> | Date | string | null;
254
+ lastError?: Prisma.StringNullableFilter<"Job"> | string | null;
255
+ progress?: Prisma.JsonFilter<"Job">;
256
+ createdAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
257
+ updatedAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
258
+ }, "id">;
259
+ export type JobOrderByWithAggregationInput = {
260
+ id?: Prisma.SortOrder;
261
+ type?: Prisma.SortOrder;
262
+ payload?: Prisma.SortOrder;
263
+ status?: Prisma.SortOrder;
264
+ attempts?: Prisma.SortOrder;
265
+ maxAttempts?: Prisma.SortOrder;
266
+ runAt?: Prisma.SortOrder;
267
+ lockedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
268
+ lastError?: Prisma.SortOrderInput | Prisma.SortOrder;
269
+ progress?: Prisma.SortOrder;
270
+ createdAt?: Prisma.SortOrder;
271
+ updatedAt?: Prisma.SortOrder;
272
+ _count?: Prisma.JobCountOrderByAggregateInput;
273
+ _avg?: Prisma.JobAvgOrderByAggregateInput;
274
+ _max?: Prisma.JobMaxOrderByAggregateInput;
275
+ _min?: Prisma.JobMinOrderByAggregateInput;
276
+ _sum?: Prisma.JobSumOrderByAggregateInput;
277
+ };
278
+ export type JobScalarWhereWithAggregatesInput = {
279
+ AND?: Prisma.JobScalarWhereWithAggregatesInput | Prisma.JobScalarWhereWithAggregatesInput[];
280
+ OR?: Prisma.JobScalarWhereWithAggregatesInput[];
281
+ NOT?: Prisma.JobScalarWhereWithAggregatesInput | Prisma.JobScalarWhereWithAggregatesInput[];
282
+ id?: Prisma.StringWithAggregatesFilter<"Job"> | string;
283
+ type?: Prisma.StringWithAggregatesFilter<"Job"> | string;
284
+ payload?: Prisma.JsonWithAggregatesFilter<"Job">;
285
+ status?: Prisma.StringWithAggregatesFilter<"Job"> | string;
286
+ attempts?: Prisma.IntWithAggregatesFilter<"Job"> | number;
287
+ maxAttempts?: Prisma.IntWithAggregatesFilter<"Job"> | number;
288
+ runAt?: Prisma.DateTimeWithAggregatesFilter<"Job"> | Date | string;
289
+ lockedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Job"> | Date | string | null;
290
+ lastError?: Prisma.StringNullableWithAggregatesFilter<"Job"> | string | null;
291
+ progress?: Prisma.JsonWithAggregatesFilter<"Job">;
292
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Job"> | Date | string;
293
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Job"> | Date | string;
294
+ };
295
+ export type JobCreateInput = {
296
+ id: string;
297
+ type: string;
298
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
299
+ status: string;
300
+ attempts?: number;
301
+ maxAttempts?: number;
302
+ runAt: Date | string;
303
+ lockedAt?: Date | string | null;
304
+ lastError?: string | null;
305
+ progress: Prisma.JsonNullValueInput | runtime.InputJsonValue;
306
+ createdAt?: Date | string;
307
+ updatedAt?: Date | string;
308
+ };
309
+ export type JobUncheckedCreateInput = {
310
+ id: string;
311
+ type: string;
312
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
313
+ status: string;
314
+ attempts?: number;
315
+ maxAttempts?: number;
316
+ runAt: Date | string;
317
+ lockedAt?: Date | string | null;
318
+ lastError?: string | null;
319
+ progress: Prisma.JsonNullValueInput | runtime.InputJsonValue;
320
+ createdAt?: Date | string;
321
+ updatedAt?: Date | string;
322
+ };
323
+ export type JobUpdateInput = {
324
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
325
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
326
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
327
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
328
+ attempts?: Prisma.IntFieldUpdateOperationsInput | number;
329
+ maxAttempts?: Prisma.IntFieldUpdateOperationsInput | number;
330
+ runAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
331
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
332
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
333
+ progress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
334
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
335
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
336
+ };
337
+ export type JobUncheckedUpdateInput = {
338
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
339
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
340
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
341
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
342
+ attempts?: Prisma.IntFieldUpdateOperationsInput | number;
343
+ maxAttempts?: Prisma.IntFieldUpdateOperationsInput | number;
344
+ runAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
345
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
346
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
347
+ progress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
348
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
349
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
350
+ };
351
+ export type JobCreateManyInput = {
352
+ id: string;
353
+ type: string;
354
+ payload: Prisma.JsonNullValueInput | runtime.InputJsonValue;
355
+ status: string;
356
+ attempts?: number;
357
+ maxAttempts?: number;
358
+ runAt: Date | string;
359
+ lockedAt?: Date | string | null;
360
+ lastError?: string | null;
361
+ progress: Prisma.JsonNullValueInput | runtime.InputJsonValue;
362
+ createdAt?: Date | string;
363
+ updatedAt?: Date | string;
364
+ };
365
+ export type JobUpdateManyMutationInput = {
366
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
367
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
368
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
369
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
370
+ attempts?: Prisma.IntFieldUpdateOperationsInput | number;
371
+ maxAttempts?: Prisma.IntFieldUpdateOperationsInput | number;
372
+ runAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
373
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
374
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
375
+ progress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
376
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
377
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
378
+ };
379
+ export type JobUncheckedUpdateManyInput = {
380
+ id?: Prisma.StringFieldUpdateOperationsInput | string;
381
+ type?: Prisma.StringFieldUpdateOperationsInput | string;
382
+ payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
383
+ status?: Prisma.StringFieldUpdateOperationsInput | string;
384
+ attempts?: Prisma.IntFieldUpdateOperationsInput | number;
385
+ maxAttempts?: Prisma.IntFieldUpdateOperationsInput | number;
386
+ runAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
387
+ lockedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null;
388
+ lastError?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
389
+ progress?: Prisma.JsonNullValueInput | runtime.InputJsonValue;
390
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
391
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
392
+ };
393
+ export type JobOrderByRelevanceInput = {
394
+ fields: Prisma.JobOrderByRelevanceFieldEnum | Prisma.JobOrderByRelevanceFieldEnum[];
395
+ sort: Prisma.SortOrder;
396
+ search: string;
397
+ };
398
+ export type JobCountOrderByAggregateInput = {
399
+ id?: Prisma.SortOrder;
400
+ type?: Prisma.SortOrder;
401
+ payload?: Prisma.SortOrder;
402
+ status?: Prisma.SortOrder;
403
+ attempts?: Prisma.SortOrder;
404
+ maxAttempts?: Prisma.SortOrder;
405
+ runAt?: Prisma.SortOrder;
406
+ lockedAt?: Prisma.SortOrder;
407
+ lastError?: Prisma.SortOrder;
408
+ progress?: Prisma.SortOrder;
409
+ createdAt?: Prisma.SortOrder;
410
+ updatedAt?: Prisma.SortOrder;
411
+ };
412
+ export type JobAvgOrderByAggregateInput = {
413
+ attempts?: Prisma.SortOrder;
414
+ maxAttempts?: Prisma.SortOrder;
415
+ };
416
+ export type JobMaxOrderByAggregateInput = {
417
+ id?: Prisma.SortOrder;
418
+ type?: Prisma.SortOrder;
419
+ status?: Prisma.SortOrder;
420
+ attempts?: Prisma.SortOrder;
421
+ maxAttempts?: Prisma.SortOrder;
422
+ runAt?: Prisma.SortOrder;
423
+ lockedAt?: Prisma.SortOrder;
424
+ lastError?: Prisma.SortOrder;
425
+ createdAt?: Prisma.SortOrder;
426
+ updatedAt?: Prisma.SortOrder;
427
+ };
428
+ export type JobMinOrderByAggregateInput = {
429
+ id?: Prisma.SortOrder;
430
+ type?: Prisma.SortOrder;
431
+ status?: Prisma.SortOrder;
432
+ attempts?: Prisma.SortOrder;
433
+ maxAttempts?: Prisma.SortOrder;
434
+ runAt?: Prisma.SortOrder;
435
+ lockedAt?: Prisma.SortOrder;
436
+ lastError?: Prisma.SortOrder;
437
+ createdAt?: Prisma.SortOrder;
438
+ updatedAt?: Prisma.SortOrder;
439
+ };
440
+ export type JobSumOrderByAggregateInput = {
441
+ attempts?: Prisma.SortOrder;
442
+ maxAttempts?: Prisma.SortOrder;
443
+ };
444
+ export type JobSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
445
+ id?: boolean;
446
+ type?: boolean;
447
+ payload?: boolean;
448
+ status?: boolean;
449
+ attempts?: boolean;
450
+ maxAttempts?: boolean;
451
+ runAt?: boolean;
452
+ lockedAt?: boolean;
453
+ lastError?: boolean;
454
+ progress?: boolean;
455
+ createdAt?: boolean;
456
+ updatedAt?: boolean;
457
+ }, ExtArgs["result"]["job"]>;
458
+ export type JobSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
459
+ id?: boolean;
460
+ type?: boolean;
461
+ payload?: boolean;
462
+ status?: boolean;
463
+ attempts?: boolean;
464
+ maxAttempts?: boolean;
465
+ runAt?: boolean;
466
+ lockedAt?: boolean;
467
+ lastError?: boolean;
468
+ progress?: boolean;
469
+ createdAt?: boolean;
470
+ updatedAt?: boolean;
471
+ }, ExtArgs["result"]["job"]>;
472
+ export type JobSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
473
+ id?: boolean;
474
+ type?: boolean;
475
+ payload?: boolean;
476
+ status?: boolean;
477
+ attempts?: boolean;
478
+ maxAttempts?: boolean;
479
+ runAt?: boolean;
480
+ lockedAt?: boolean;
481
+ lastError?: boolean;
482
+ progress?: boolean;
483
+ createdAt?: boolean;
484
+ updatedAt?: boolean;
485
+ }, ExtArgs["result"]["job"]>;
486
+ export type JobSelectScalar = {
487
+ id?: boolean;
488
+ type?: boolean;
489
+ payload?: boolean;
490
+ status?: boolean;
491
+ attempts?: boolean;
492
+ maxAttempts?: boolean;
493
+ runAt?: boolean;
494
+ lockedAt?: boolean;
495
+ lastError?: boolean;
496
+ progress?: boolean;
497
+ createdAt?: boolean;
498
+ updatedAt?: boolean;
499
+ };
500
+ export type JobOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "type" | "payload" | "status" | "attempts" | "maxAttempts" | "runAt" | "lockedAt" | "lastError" | "progress" | "createdAt" | "updatedAt", ExtArgs["result"]["job"]>;
501
+ export type $JobPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
502
+ name: "Job";
503
+ objects: {};
504
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
505
+ id: string;
506
+ type: string;
507
+ payload: runtime.JsonValue;
508
+ status: string;
509
+ attempts: number;
510
+ maxAttempts: number;
511
+ runAt: Date;
512
+ lockedAt: Date | null;
513
+ lastError: string | null;
514
+ progress: runtime.JsonValue;
515
+ createdAt: Date;
516
+ updatedAt: Date;
517
+ }, ExtArgs["result"]["job"]>;
518
+ composites: {};
519
+ };
520
+ export type JobGetPayload<S extends boolean | null | undefined | JobDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$JobPayload, S>;
521
+ export type JobCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<JobFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
522
+ select?: JobCountAggregateInputType | true;
523
+ };
524
+ export interface JobDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
525
+ [K: symbol]: {
526
+ types: Prisma.TypeMap<ExtArgs>['model']['Job'];
527
+ meta: {
528
+ name: 'Job';
529
+ };
530
+ };
531
+ /**
532
+ * Find zero or one Job that matches the filter.
533
+ * @param {JobFindUniqueArgs} args - Arguments to find a Job
534
+ * @example
535
+ * // Get one Job
536
+ * const job = await prisma.job.findUnique({
537
+ * where: {
538
+ * // ... provide filter here
539
+ * }
540
+ * })
541
+ */
542
+ findUnique<T extends JobFindUniqueArgs>(args: Prisma.SelectSubset<T, JobFindUniqueArgs<ExtArgs>>): Prisma.Prisma__JobClient<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
543
+ /**
544
+ * Find one Job that matches the filter or throw an error with `error.code='P2025'`
545
+ * if no matches were found.
546
+ * @param {JobFindUniqueOrThrowArgs} args - Arguments to find a Job
547
+ * @example
548
+ * // Get one Job
549
+ * const job = await prisma.job.findUniqueOrThrow({
550
+ * where: {
551
+ * // ... provide filter here
552
+ * }
553
+ * })
554
+ */
555
+ findUniqueOrThrow<T extends JobFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, JobFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__JobClient<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
556
+ /**
557
+ * Find the first Job that matches the filter.
558
+ * Note, that providing `undefined` is treated as the value not being there.
559
+ * Read more here: https://pris.ly/d/null-undefined
560
+ * @param {JobFindFirstArgs} args - Arguments to find a Job
561
+ * @example
562
+ * // Get one Job
563
+ * const job = await prisma.job.findFirst({
564
+ * where: {
565
+ * // ... provide filter here
566
+ * }
567
+ * })
568
+ */
569
+ findFirst<T extends JobFindFirstArgs>(args?: Prisma.SelectSubset<T, JobFindFirstArgs<ExtArgs>>): Prisma.Prisma__JobClient<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
570
+ /**
571
+ * Find the first Job that matches the filter or
572
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
573
+ * Note, that providing `undefined` is treated as the value not being there.
574
+ * Read more here: https://pris.ly/d/null-undefined
575
+ * @param {JobFindFirstOrThrowArgs} args - Arguments to find a Job
576
+ * @example
577
+ * // Get one Job
578
+ * const job = await prisma.job.findFirstOrThrow({
579
+ * where: {
580
+ * // ... provide filter here
581
+ * }
582
+ * })
583
+ */
584
+ findFirstOrThrow<T extends JobFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, JobFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__JobClient<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
585
+ /**
586
+ * Find zero or more Jobs that matches the filter.
587
+ * Note, that providing `undefined` is treated as the value not being there.
588
+ * Read more here: https://pris.ly/d/null-undefined
589
+ * @param {JobFindManyArgs} args - Arguments to filter and select certain fields only.
590
+ * @example
591
+ * // Get all Jobs
592
+ * const jobs = await prisma.job.findMany()
593
+ *
594
+ * // Get first 10 Jobs
595
+ * const jobs = await prisma.job.findMany({ take: 10 })
596
+ *
597
+ * // Only select the `id`
598
+ * const jobWithIdOnly = await prisma.job.findMany({ select: { id: true } })
599
+ *
600
+ */
601
+ findMany<T extends JobFindManyArgs>(args?: Prisma.SelectSubset<T, JobFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
602
+ /**
603
+ * Create a Job.
604
+ * @param {JobCreateArgs} args - Arguments to create a Job.
605
+ * @example
606
+ * // Create one Job
607
+ * const Job = await prisma.job.create({
608
+ * data: {
609
+ * // ... data to create a Job
610
+ * }
611
+ * })
612
+ *
613
+ */
614
+ create<T extends JobCreateArgs>(args: Prisma.SelectSubset<T, JobCreateArgs<ExtArgs>>): Prisma.Prisma__JobClient<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
615
+ /**
616
+ * Create many Jobs.
617
+ * @param {JobCreateManyArgs} args - Arguments to create many Jobs.
618
+ * @example
619
+ * // Create many Jobs
620
+ * const job = await prisma.job.createMany({
621
+ * data: [
622
+ * // ... provide data here
623
+ * ]
624
+ * })
625
+ *
626
+ */
627
+ createMany<T extends JobCreateManyArgs>(args?: Prisma.SelectSubset<T, JobCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
628
+ /**
629
+ * Create many Jobs and returns the data saved in the database.
630
+ * @param {JobCreateManyAndReturnArgs} args - Arguments to create many Jobs.
631
+ * @example
632
+ * // Create many Jobs
633
+ * const job = await prisma.job.createManyAndReturn({
634
+ * data: [
635
+ * // ... provide data here
636
+ * ]
637
+ * })
638
+ *
639
+ * // Create many Jobs and only return the `id`
640
+ * const jobWithIdOnly = await prisma.job.createManyAndReturn({
641
+ * select: { id: true },
642
+ * data: [
643
+ * // ... provide data here
644
+ * ]
645
+ * })
646
+ * Note, that providing `undefined` is treated as the value not being there.
647
+ * Read more here: https://pris.ly/d/null-undefined
648
+ *
649
+ */
650
+ createManyAndReturn<T extends JobCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, JobCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
651
+ /**
652
+ * Delete a Job.
653
+ * @param {JobDeleteArgs} args - Arguments to delete one Job.
654
+ * @example
655
+ * // Delete one Job
656
+ * const Job = await prisma.job.delete({
657
+ * where: {
658
+ * // ... filter to delete one Job
659
+ * }
660
+ * })
661
+ *
662
+ */
663
+ delete<T extends JobDeleteArgs>(args: Prisma.SelectSubset<T, JobDeleteArgs<ExtArgs>>): Prisma.Prisma__JobClient<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
664
+ /**
665
+ * Update one Job.
666
+ * @param {JobUpdateArgs} args - Arguments to update one Job.
667
+ * @example
668
+ * // Update one Job
669
+ * const job = await prisma.job.update({
670
+ * where: {
671
+ * // ... provide filter here
672
+ * },
673
+ * data: {
674
+ * // ... provide data here
675
+ * }
676
+ * })
677
+ *
678
+ */
679
+ update<T extends JobUpdateArgs>(args: Prisma.SelectSubset<T, JobUpdateArgs<ExtArgs>>): Prisma.Prisma__JobClient<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
680
+ /**
681
+ * Delete zero or more Jobs.
682
+ * @param {JobDeleteManyArgs} args - Arguments to filter Jobs to delete.
683
+ * @example
684
+ * // Delete a few Jobs
685
+ * const { count } = await prisma.job.deleteMany({
686
+ * where: {
687
+ * // ... provide filter here
688
+ * }
689
+ * })
690
+ *
691
+ */
692
+ deleteMany<T extends JobDeleteManyArgs>(args?: Prisma.SelectSubset<T, JobDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
693
+ /**
694
+ * Update zero or more Jobs.
695
+ * Note, that providing `undefined` is treated as the value not being there.
696
+ * Read more here: https://pris.ly/d/null-undefined
697
+ * @param {JobUpdateManyArgs} args - Arguments to update one or more rows.
698
+ * @example
699
+ * // Update many Jobs
700
+ * const job = await prisma.job.updateMany({
701
+ * where: {
702
+ * // ... provide filter here
703
+ * },
704
+ * data: {
705
+ * // ... provide data here
706
+ * }
707
+ * })
708
+ *
709
+ */
710
+ updateMany<T extends JobUpdateManyArgs>(args: Prisma.SelectSubset<T, JobUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
711
+ /**
712
+ * Update zero or more Jobs and returns the data updated in the database.
713
+ * @param {JobUpdateManyAndReturnArgs} args - Arguments to update many Jobs.
714
+ * @example
715
+ * // Update many Jobs
716
+ * const job = await prisma.job.updateManyAndReturn({
717
+ * where: {
718
+ * // ... provide filter here
719
+ * },
720
+ * data: [
721
+ * // ... provide data here
722
+ * ]
723
+ * })
724
+ *
725
+ * // Update zero or more Jobs and only return the `id`
726
+ * const jobWithIdOnly = await prisma.job.updateManyAndReturn({
727
+ * select: { id: true },
728
+ * where: {
729
+ * // ... provide filter here
730
+ * },
731
+ * data: [
732
+ * // ... provide data here
733
+ * ]
734
+ * })
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ *
738
+ */
739
+ updateManyAndReturn<T extends JobUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, JobUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
740
+ /**
741
+ * Create or update one Job.
742
+ * @param {JobUpsertArgs} args - Arguments to update or create a Job.
743
+ * @example
744
+ * // Update or create a Job
745
+ * const job = await prisma.job.upsert({
746
+ * create: {
747
+ * // ... data to create a Job
748
+ * },
749
+ * update: {
750
+ * // ... in case it already exists, update
751
+ * },
752
+ * where: {
753
+ * // ... the filter for the Job we want to update
754
+ * }
755
+ * })
756
+ */
757
+ upsert<T extends JobUpsertArgs>(args: Prisma.SelectSubset<T, JobUpsertArgs<ExtArgs>>): Prisma.Prisma__JobClient<runtime.Types.Result.GetResult<Prisma.$JobPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
758
+ /**
759
+ * Count the number of Jobs.
760
+ * Note, that providing `undefined` is treated as the value not being there.
761
+ * Read more here: https://pris.ly/d/null-undefined
762
+ * @param {JobCountArgs} args - Arguments to filter Jobs to count.
763
+ * @example
764
+ * // Count the number of Jobs
765
+ * const count = await prisma.job.count({
766
+ * where: {
767
+ * // ... the filter for the Jobs we want to count
768
+ * }
769
+ * })
770
+ **/
771
+ count<T extends JobCountArgs>(args?: Prisma.Subset<T, JobCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], JobCountAggregateOutputType> : number>;
772
+ /**
773
+ * Allows you to perform aggregations operations on a Job.
774
+ * Note, that providing `undefined` is treated as the value not being there.
775
+ * Read more here: https://pris.ly/d/null-undefined
776
+ * @param {JobAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
777
+ * @example
778
+ * // Ordered by age ascending
779
+ * // Where email contains prisma.io
780
+ * // Limited to the 10 users
781
+ * const aggregations = await prisma.user.aggregate({
782
+ * _avg: {
783
+ * age: true,
784
+ * },
785
+ * where: {
786
+ * email: {
787
+ * contains: "prisma.io",
788
+ * },
789
+ * },
790
+ * orderBy: {
791
+ * age: "asc",
792
+ * },
793
+ * take: 10,
794
+ * })
795
+ **/
796
+ aggregate<T extends JobAggregateArgs>(args: Prisma.Subset<T, JobAggregateArgs>): Prisma.PrismaPromise<GetJobAggregateType<T>>;
797
+ /**
798
+ * Group by Job.
799
+ * Note, that providing `undefined` is treated as the value not being there.
800
+ * Read more here: https://pris.ly/d/null-undefined
801
+ * @param {JobGroupByArgs} args - Group by arguments.
802
+ * @example
803
+ * // Group by city, order by createdAt, get count
804
+ * const result = await prisma.user.groupBy({
805
+ * by: ['city', 'createdAt'],
806
+ * orderBy: {
807
+ * createdAt: true
808
+ * },
809
+ * _count: {
810
+ * _all: true
811
+ * },
812
+ * })
813
+ *
814
+ **/
815
+ groupBy<T extends JobGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
816
+ orderBy: JobGroupByArgs['orderBy'];
817
+ } : {
818
+ orderBy?: JobGroupByArgs['orderBy'];
819
+ }, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
820
+ [P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
821
+ Error,
822
+ 'Field ',
823
+ P,
824
+ ` in "having" needs to be provided in "by"`
825
+ ];
826
+ }[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
827
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
828
+ }[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
829
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
830
+ }[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
831
+ [P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
832
+ }[OrderFields]>(args: Prisma.SubsetIntersection<T, JobGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetJobGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
833
+ /**
834
+ * Fields of the Job model
835
+ */
836
+ readonly fields: JobFieldRefs;
837
+ }
838
+ /**
839
+ * The delegate class that acts as a "Promise-like" for Job.
840
+ * Why is this prefixed with `Prisma__`?
841
+ * Because we want to prevent naming conflicts as mentioned in
842
+ * https://github.com/prisma/prisma-client-js/issues/707
843
+ */
844
+ export interface Prisma__JobClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
845
+ readonly [Symbol.toStringTag]: "PrismaPromise";
846
+ /**
847
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
848
+ * @param onfulfilled The callback to execute when the Promise is resolved.
849
+ * @param onrejected The callback to execute when the Promise is rejected.
850
+ * @returns A Promise for the completion of which ever callback is executed.
851
+ */
852
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
853
+ /**
854
+ * Attaches a callback for only the rejection of the Promise.
855
+ * @param onrejected The callback to execute when the Promise is rejected.
856
+ * @returns A Promise for the completion of the callback.
857
+ */
858
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
859
+ /**
860
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
861
+ * resolved value cannot be modified from the callback.
862
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
863
+ * @returns A Promise for the completion of the callback.
864
+ */
865
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
866
+ }
867
+ /**
868
+ * Fields of the Job model
869
+ */
870
+ export interface JobFieldRefs {
871
+ readonly id: Prisma.FieldRef<"Job", 'String'>;
872
+ readonly type: Prisma.FieldRef<"Job", 'String'>;
873
+ readonly payload: Prisma.FieldRef<"Job", 'Json'>;
874
+ readonly status: Prisma.FieldRef<"Job", 'String'>;
875
+ readonly attempts: Prisma.FieldRef<"Job", 'Int'>;
876
+ readonly maxAttempts: Prisma.FieldRef<"Job", 'Int'>;
877
+ readonly runAt: Prisma.FieldRef<"Job", 'DateTime'>;
878
+ readonly lockedAt: Prisma.FieldRef<"Job", 'DateTime'>;
879
+ readonly lastError: Prisma.FieldRef<"Job", 'String'>;
880
+ readonly progress: Prisma.FieldRef<"Job", 'Json'>;
881
+ readonly createdAt: Prisma.FieldRef<"Job", 'DateTime'>;
882
+ readonly updatedAt: Prisma.FieldRef<"Job", 'DateTime'>;
883
+ }
884
+ /**
885
+ * Job findUnique
886
+ */
887
+ export type JobFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
888
+ /**
889
+ * Select specific fields to fetch from the Job
890
+ */
891
+ select?: Prisma.JobSelect<ExtArgs> | null;
892
+ /**
893
+ * Omit specific fields from the Job
894
+ */
895
+ omit?: Prisma.JobOmit<ExtArgs> | null;
896
+ /**
897
+ * Filter, which Job to fetch.
898
+ */
899
+ where: Prisma.JobWhereUniqueInput;
900
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
901
+ };
902
+ /**
903
+ * Job findUniqueOrThrow
904
+ */
905
+ export type JobFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
906
+ /**
907
+ * Select specific fields to fetch from the Job
908
+ */
909
+ select?: Prisma.JobSelect<ExtArgs> | null;
910
+ /**
911
+ * Omit specific fields from the Job
912
+ */
913
+ omit?: Prisma.JobOmit<ExtArgs> | null;
914
+ /**
915
+ * Filter, which Job to fetch.
916
+ */
917
+ where: Prisma.JobWhereUniqueInput;
918
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
919
+ };
920
+ /**
921
+ * Job findFirst
922
+ */
923
+ export type JobFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
924
+ /**
925
+ * Select specific fields to fetch from the Job
926
+ */
927
+ select?: Prisma.JobSelect<ExtArgs> | null;
928
+ /**
929
+ * Omit specific fields from the Job
930
+ */
931
+ omit?: Prisma.JobOmit<ExtArgs> | null;
932
+ /**
933
+ * Filter, which Job to fetch.
934
+ */
935
+ where?: Prisma.JobWhereInput;
936
+ /**
937
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
938
+ *
939
+ * Determine the order of Jobs to fetch.
940
+ */
941
+ orderBy?: Prisma.JobOrderByWithRelationInput | Prisma.JobOrderByWithRelationInput[];
942
+ /**
943
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
944
+ *
945
+ * Sets the position for searching for Jobs.
946
+ */
947
+ cursor?: Prisma.JobWhereUniqueInput;
948
+ /**
949
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
950
+ *
951
+ * Take `±n` Jobs from the position of the cursor.
952
+ */
953
+ take?: number;
954
+ /**
955
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
956
+ *
957
+ * Skip the first `n` Jobs.
958
+ */
959
+ skip?: number;
960
+ /**
961
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
962
+ *
963
+ * Filter by unique combinations of Jobs.
964
+ */
965
+ distinct?: Prisma.JobScalarFieldEnum | Prisma.JobScalarFieldEnum[];
966
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
967
+ };
968
+ /**
969
+ * Job findFirstOrThrow
970
+ */
971
+ export type JobFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
972
+ /**
973
+ * Select specific fields to fetch from the Job
974
+ */
975
+ select?: Prisma.JobSelect<ExtArgs> | null;
976
+ /**
977
+ * Omit specific fields from the Job
978
+ */
979
+ omit?: Prisma.JobOmit<ExtArgs> | null;
980
+ /**
981
+ * Filter, which Job to fetch.
982
+ */
983
+ where?: Prisma.JobWhereInput;
984
+ /**
985
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
986
+ *
987
+ * Determine the order of Jobs to fetch.
988
+ */
989
+ orderBy?: Prisma.JobOrderByWithRelationInput | Prisma.JobOrderByWithRelationInput[];
990
+ /**
991
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
992
+ *
993
+ * Sets the position for searching for Jobs.
994
+ */
995
+ cursor?: Prisma.JobWhereUniqueInput;
996
+ /**
997
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
998
+ *
999
+ * Take `±n` Jobs from the position of the cursor.
1000
+ */
1001
+ take?: number;
1002
+ /**
1003
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1004
+ *
1005
+ * Skip the first `n` Jobs.
1006
+ */
1007
+ skip?: number;
1008
+ /**
1009
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1010
+ *
1011
+ * Filter by unique combinations of Jobs.
1012
+ */
1013
+ distinct?: Prisma.JobScalarFieldEnum | Prisma.JobScalarFieldEnum[];
1014
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1015
+ };
1016
+ /**
1017
+ * Job findMany
1018
+ */
1019
+ export type JobFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1020
+ /**
1021
+ * Select specific fields to fetch from the Job
1022
+ */
1023
+ select?: Prisma.JobSelect<ExtArgs> | null;
1024
+ /**
1025
+ * Omit specific fields from the Job
1026
+ */
1027
+ omit?: Prisma.JobOmit<ExtArgs> | null;
1028
+ /**
1029
+ * Filter, which Jobs to fetch.
1030
+ */
1031
+ where?: Prisma.JobWhereInput;
1032
+ /**
1033
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1034
+ *
1035
+ * Determine the order of Jobs to fetch.
1036
+ */
1037
+ orderBy?: Prisma.JobOrderByWithRelationInput | Prisma.JobOrderByWithRelationInput[];
1038
+ /**
1039
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1040
+ *
1041
+ * Sets the position for listing Jobs.
1042
+ */
1043
+ cursor?: Prisma.JobWhereUniqueInput;
1044
+ /**
1045
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1046
+ *
1047
+ * Take `±n` Jobs from the position of the cursor.
1048
+ */
1049
+ take?: number;
1050
+ /**
1051
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1052
+ *
1053
+ * Skip the first `n` Jobs.
1054
+ */
1055
+ skip?: number;
1056
+ /**
1057
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1058
+ *
1059
+ * Filter by unique combinations of Jobs.
1060
+ */
1061
+ distinct?: Prisma.JobScalarFieldEnum | Prisma.JobScalarFieldEnum[];
1062
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1063
+ };
1064
+ /**
1065
+ * Job create
1066
+ */
1067
+ export type JobCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1068
+ /**
1069
+ * Select specific fields to fetch from the Job
1070
+ */
1071
+ select?: Prisma.JobSelect<ExtArgs> | null;
1072
+ /**
1073
+ * Omit specific fields from the Job
1074
+ */
1075
+ omit?: Prisma.JobOmit<ExtArgs> | null;
1076
+ /**
1077
+ * The data needed to create a Job.
1078
+ */
1079
+ data: Prisma.XOR<Prisma.JobCreateInput, Prisma.JobUncheckedCreateInput>;
1080
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1081
+ };
1082
+ /**
1083
+ * Job createMany
1084
+ */
1085
+ export type JobCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1086
+ /**
1087
+ * The data used to create many Jobs.
1088
+ */
1089
+ data: Prisma.JobCreateManyInput | Prisma.JobCreateManyInput[];
1090
+ skipDuplicates?: boolean;
1091
+ };
1092
+ /**
1093
+ * Job createManyAndReturn
1094
+ */
1095
+ export type JobCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1096
+ /**
1097
+ * Select specific fields to fetch from the Job
1098
+ */
1099
+ select?: Prisma.JobSelectCreateManyAndReturn<ExtArgs> | null;
1100
+ /**
1101
+ * Omit specific fields from the Job
1102
+ */
1103
+ omit?: Prisma.JobOmit<ExtArgs> | null;
1104
+ /**
1105
+ * The data used to create many Jobs.
1106
+ */
1107
+ data: Prisma.JobCreateManyInput | Prisma.JobCreateManyInput[];
1108
+ skipDuplicates?: boolean;
1109
+ };
1110
+ /**
1111
+ * Job update
1112
+ */
1113
+ export type JobUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1114
+ /**
1115
+ * Select specific fields to fetch from the Job
1116
+ */
1117
+ select?: Prisma.JobSelect<ExtArgs> | null;
1118
+ /**
1119
+ * Omit specific fields from the Job
1120
+ */
1121
+ omit?: Prisma.JobOmit<ExtArgs> | null;
1122
+ /**
1123
+ * The data needed to update a Job.
1124
+ */
1125
+ data: Prisma.XOR<Prisma.JobUpdateInput, Prisma.JobUncheckedUpdateInput>;
1126
+ /**
1127
+ * Choose, which Job to update.
1128
+ */
1129
+ where: Prisma.JobWhereUniqueInput;
1130
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1131
+ };
1132
+ /**
1133
+ * Job updateMany
1134
+ */
1135
+ export type JobUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1136
+ /**
1137
+ * The data used to update Jobs.
1138
+ */
1139
+ data: Prisma.XOR<Prisma.JobUpdateManyMutationInput, Prisma.JobUncheckedUpdateManyInput>;
1140
+ /**
1141
+ * Filter which Jobs to update
1142
+ */
1143
+ where?: Prisma.JobWhereInput;
1144
+ /**
1145
+ * Limit how many Jobs to update.
1146
+ */
1147
+ limit?: number;
1148
+ };
1149
+ /**
1150
+ * Job updateManyAndReturn
1151
+ */
1152
+ export type JobUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1153
+ /**
1154
+ * Select specific fields to fetch from the Job
1155
+ */
1156
+ select?: Prisma.JobSelectUpdateManyAndReturn<ExtArgs> | null;
1157
+ /**
1158
+ * Omit specific fields from the Job
1159
+ */
1160
+ omit?: Prisma.JobOmit<ExtArgs> | null;
1161
+ /**
1162
+ * The data used to update Jobs.
1163
+ */
1164
+ data: Prisma.XOR<Prisma.JobUpdateManyMutationInput, Prisma.JobUncheckedUpdateManyInput>;
1165
+ /**
1166
+ * Filter which Jobs to update
1167
+ */
1168
+ where?: Prisma.JobWhereInput;
1169
+ /**
1170
+ * Limit how many Jobs to update.
1171
+ */
1172
+ limit?: number;
1173
+ };
1174
+ /**
1175
+ * Job upsert
1176
+ */
1177
+ export type JobUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1178
+ /**
1179
+ * Select specific fields to fetch from the Job
1180
+ */
1181
+ select?: Prisma.JobSelect<ExtArgs> | null;
1182
+ /**
1183
+ * Omit specific fields from the Job
1184
+ */
1185
+ omit?: Prisma.JobOmit<ExtArgs> | null;
1186
+ /**
1187
+ * The filter to search for the Job to update in case it exists.
1188
+ */
1189
+ where: Prisma.JobWhereUniqueInput;
1190
+ /**
1191
+ * In case the Job found by the `where` argument doesn't exist, create a new Job with this data.
1192
+ */
1193
+ create: Prisma.XOR<Prisma.JobCreateInput, Prisma.JobUncheckedCreateInput>;
1194
+ /**
1195
+ * In case the Job was found with the provided `where` argument, update it with this data.
1196
+ */
1197
+ update: Prisma.XOR<Prisma.JobUpdateInput, Prisma.JobUncheckedUpdateInput>;
1198
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1199
+ };
1200
+ /**
1201
+ * Job delete
1202
+ */
1203
+ export type JobDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1204
+ /**
1205
+ * Select specific fields to fetch from the Job
1206
+ */
1207
+ select?: Prisma.JobSelect<ExtArgs> | null;
1208
+ /**
1209
+ * Omit specific fields from the Job
1210
+ */
1211
+ omit?: Prisma.JobOmit<ExtArgs> | null;
1212
+ /**
1213
+ * Filter which Job to delete.
1214
+ */
1215
+ where: Prisma.JobWhereUniqueInput;
1216
+ relationLoadStrategy?: Prisma.RelationLoadStrategy;
1217
+ };
1218
+ /**
1219
+ * Job deleteMany
1220
+ */
1221
+ export type JobDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1222
+ /**
1223
+ * Filter which Jobs to delete
1224
+ */
1225
+ where?: Prisma.JobWhereInput;
1226
+ /**
1227
+ * Limit how many Jobs to delete.
1228
+ */
1229
+ limit?: number;
1230
+ };
1231
+ /**
1232
+ * Job without action
1233
+ */
1234
+ export type JobDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1235
+ /**
1236
+ * Select specific fields to fetch from the Job
1237
+ */
1238
+ select?: Prisma.JobSelect<ExtArgs> | null;
1239
+ /**
1240
+ * Omit specific fields from the Job
1241
+ */
1242
+ omit?: Prisma.JobOmit<ExtArgs> | null;
1243
+ };