@techstream/quark-create-app 1.3.0 → 1.4.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 (25) hide show
  1. package/package.json +34 -34
  2. package/src/index.js +23 -16
  3. package/templates/base-project/apps/web/src/app/api/auth/register/route.js +17 -1
  4. package/templates/base-project/apps/web/src/app/api/health/route.js +4 -1
  5. package/templates/base-project/apps/web/src/app/api/posts/[id]/route.js +5 -1
  6. package/templates/base-project/apps/worker/src/index.js +71 -28
  7. package/templates/base-project/package.json +7 -1
  8. package/templates/base-project/packages/db/scripts/seed.js +1 -1
  9. package/templates/base-project/packages/db/src/client.js +40 -24
  10. package/templates/base-project/turbo.json +16 -1
  11. package/templates/base-project/packages/db/src/generated/prisma/browser.ts +0 -53
  12. package/templates/base-project/packages/db/src/generated/prisma/client.ts +0 -82
  13. package/templates/base-project/packages/db/src/generated/prisma/commonInputTypes.ts +0 -649
  14. package/templates/base-project/packages/db/src/generated/prisma/enums.ts +0 -19
  15. package/templates/base-project/packages/db/src/generated/prisma/internal/class.ts +0 -305
  16. package/templates/base-project/packages/db/src/generated/prisma/internal/prismaNamespace.ts +0 -1428
  17. package/templates/base-project/packages/db/src/generated/prisma/internal/prismaNamespaceBrowser.ts +0 -217
  18. package/templates/base-project/packages/db/src/generated/prisma/models/Account.ts +0 -2098
  19. package/templates/base-project/packages/db/src/generated/prisma/models/AuditLog.ts +0 -1805
  20. package/templates/base-project/packages/db/src/generated/prisma/models/Job.ts +0 -1737
  21. package/templates/base-project/packages/db/src/generated/prisma/models/Post.ts +0 -1762
  22. package/templates/base-project/packages/db/src/generated/prisma/models/Session.ts +0 -1738
  23. package/templates/base-project/packages/db/src/generated/prisma/models/User.ts +0 -2298
  24. package/templates/base-project/packages/db/src/generated/prisma/models/VerificationToken.ts +0 -1450
  25. package/templates/base-project/packages/db/src/generated/prisma/models.ts +0 -18
@@ -1,1737 +0,0 @@
1
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
- /* eslint-disable */
3
- // biome-ignore-all lint: generated file
4
- // @ts-nocheck
5
- /*
6
- * This file exports the `Job` model and its related types.
7
- *
8
- * 🟢 You can import this file directly.
9
- */
10
- import type * as runtime from "@prisma/client/runtime/client";
11
- import type * as $Enums from "../enums.ts";
12
- import type * as Prisma from "../internal/prismaNamespace.ts";
13
-
14
- /**
15
- * Model Job
16
- *
17
- */
18
- export type JobModel =
19
- runtime.Types.Result.DefaultSelection<Prisma.$JobPayload>;
20
-
21
- export type AggregateJob = {
22
- _count: JobCountAggregateOutputType | null;
23
- _avg: JobAvgAggregateOutputType | null;
24
- _sum: JobSumAggregateOutputType | null;
25
- _min: JobMinAggregateOutputType | null;
26
- _max: JobMaxAggregateOutputType | null;
27
- };
28
-
29
- export type JobAvgAggregateOutputType = {
30
- attempts: number | null;
31
- maxRetries: number | null;
32
- };
33
-
34
- export type JobSumAggregateOutputType = {
35
- attempts: number | null;
36
- maxRetries: number | null;
37
- };
38
-
39
- export type JobMinAggregateOutputType = {
40
- id: string | null;
41
- queue: string | null;
42
- name: string | null;
43
- status: $Enums.JobStatus | null;
44
- error: string | null;
45
- attempts: number | null;
46
- maxRetries: number | null;
47
- runAt: Date | null;
48
- startedAt: Date | null;
49
- completedAt: Date | null;
50
- createdAt: Date | null;
51
- updatedAt: Date | null;
52
- };
53
-
54
- export type JobMaxAggregateOutputType = {
55
- id: string | null;
56
- queue: string | null;
57
- name: string | null;
58
- status: $Enums.JobStatus | null;
59
- error: string | null;
60
- attempts: number | null;
61
- maxRetries: number | null;
62
- runAt: Date | null;
63
- startedAt: Date | null;
64
- completedAt: Date | null;
65
- createdAt: Date | null;
66
- updatedAt: Date | null;
67
- };
68
-
69
- export type JobCountAggregateOutputType = {
70
- id: number;
71
- queue: number;
72
- name: number;
73
- data: number;
74
- status: number;
75
- error: number;
76
- attempts: number;
77
- maxRetries: number;
78
- runAt: number;
79
- startedAt: number;
80
- completedAt: number;
81
- createdAt: number;
82
- updatedAt: number;
83
- _all: number;
84
- };
85
-
86
- export type JobAvgAggregateInputType = {
87
- attempts?: true;
88
- maxRetries?: true;
89
- };
90
-
91
- export type JobSumAggregateInputType = {
92
- attempts?: true;
93
- maxRetries?: true;
94
- };
95
-
96
- export type JobMinAggregateInputType = {
97
- id?: true;
98
- queue?: true;
99
- name?: true;
100
- status?: true;
101
- error?: true;
102
- attempts?: true;
103
- maxRetries?: true;
104
- runAt?: true;
105
- startedAt?: true;
106
- completedAt?: true;
107
- createdAt?: true;
108
- updatedAt?: true;
109
- };
110
-
111
- export type JobMaxAggregateInputType = {
112
- id?: true;
113
- queue?: true;
114
- name?: true;
115
- status?: true;
116
- error?: true;
117
- attempts?: true;
118
- maxRetries?: true;
119
- runAt?: true;
120
- startedAt?: true;
121
- completedAt?: true;
122
- createdAt?: true;
123
- updatedAt?: true;
124
- };
125
-
126
- export type JobCountAggregateInputType = {
127
- id?: true;
128
- queue?: true;
129
- name?: true;
130
- data?: true;
131
- status?: true;
132
- error?: true;
133
- attempts?: true;
134
- maxRetries?: true;
135
- runAt?: true;
136
- startedAt?: true;
137
- completedAt?: true;
138
- createdAt?: true;
139
- updatedAt?: true;
140
- _all?: true;
141
- };
142
-
143
- export type JobAggregateArgs<
144
- ExtArgs extends
145
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
146
- > = {
147
- /**
148
- * Filter which Job to aggregate.
149
- */
150
- where?: Prisma.JobWhereInput;
151
- /**
152
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
153
- *
154
- * Determine the order of Jobs to fetch.
155
- */
156
- orderBy?:
157
- | Prisma.JobOrderByWithRelationInput
158
- | Prisma.JobOrderByWithRelationInput[];
159
- /**
160
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
161
- *
162
- * Sets the start position
163
- */
164
- cursor?: Prisma.JobWhereUniqueInput;
165
- /**
166
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
167
- *
168
- * Take `±n` Jobs from the position of the cursor.
169
- */
170
- take?: number;
171
- /**
172
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
173
- *
174
- * Skip the first `n` Jobs.
175
- */
176
- skip?: number;
177
- /**
178
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
- *
180
- * Count returned Jobs
181
- **/
182
- _count?: true | JobCountAggregateInputType;
183
- /**
184
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
- *
186
- * Select which fields to average
187
- **/
188
- _avg?: JobAvgAggregateInputType;
189
- /**
190
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
191
- *
192
- * Select which fields to sum
193
- **/
194
- _sum?: JobSumAggregateInputType;
195
- /**
196
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
197
- *
198
- * Select which fields to find the minimum value
199
- **/
200
- _min?: JobMinAggregateInputType;
201
- /**
202
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
203
- *
204
- * Select which fields to find the maximum value
205
- **/
206
- _max?: JobMaxAggregateInputType;
207
- };
208
-
209
- export type GetJobAggregateType<T extends JobAggregateArgs> = {
210
- [P in keyof T & keyof AggregateJob]: P extends "_count" | "count"
211
- ? T[P] extends true
212
- ? number
213
- : Prisma.GetScalarType<T[P], AggregateJob[P]>
214
- : Prisma.GetScalarType<T[P], AggregateJob[P]>;
215
- };
216
-
217
- export type JobGroupByArgs<
218
- ExtArgs extends
219
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
220
- > = {
221
- where?: Prisma.JobWhereInput;
222
- orderBy?:
223
- | Prisma.JobOrderByWithAggregationInput
224
- | Prisma.JobOrderByWithAggregationInput[];
225
- by: Prisma.JobScalarFieldEnum[] | Prisma.JobScalarFieldEnum;
226
- having?: Prisma.JobScalarWhereWithAggregatesInput;
227
- take?: number;
228
- skip?: number;
229
- _count?: JobCountAggregateInputType | true;
230
- _avg?: JobAvgAggregateInputType;
231
- _sum?: JobSumAggregateInputType;
232
- _min?: JobMinAggregateInputType;
233
- _max?: JobMaxAggregateInputType;
234
- };
235
-
236
- export type JobGroupByOutputType = {
237
- id: string;
238
- queue: string;
239
- name: string;
240
- data: runtime.JsonValue | null;
241
- status: $Enums.JobStatus;
242
- error: string | null;
243
- attempts: number;
244
- maxRetries: number;
245
- runAt: Date;
246
- startedAt: Date | null;
247
- completedAt: Date | null;
248
- createdAt: Date;
249
- updatedAt: Date;
250
- _count: JobCountAggregateOutputType | null;
251
- _avg: JobAvgAggregateOutputType | null;
252
- _sum: JobSumAggregateOutputType | null;
253
- _min: JobMinAggregateOutputType | null;
254
- _max: JobMaxAggregateOutputType | null;
255
- };
256
-
257
- type GetJobGroupByPayload<T extends JobGroupByArgs> = Prisma.PrismaPromise<
258
- Array<
259
- Prisma.PickEnumerable<JobGroupByOutputType, T["by"]> & {
260
- [P in keyof T & keyof JobGroupByOutputType]: P extends "_count"
261
- ? T[P] extends boolean
262
- ? number
263
- : Prisma.GetScalarType<T[P], JobGroupByOutputType[P]>
264
- : Prisma.GetScalarType<T[P], JobGroupByOutputType[P]>;
265
- }
266
- >
267
- >;
268
-
269
- export type JobWhereInput = {
270
- AND?: Prisma.JobWhereInput | Prisma.JobWhereInput[];
271
- OR?: Prisma.JobWhereInput[];
272
- NOT?: Prisma.JobWhereInput | Prisma.JobWhereInput[];
273
- id?: Prisma.StringFilter<"Job"> | string;
274
- queue?: Prisma.StringFilter<"Job"> | string;
275
- name?: Prisma.StringFilter<"Job"> | string;
276
- data?: Prisma.JsonNullableFilter<"Job">;
277
- status?: Prisma.EnumJobStatusFilter<"Job"> | $Enums.JobStatus;
278
- error?: Prisma.StringNullableFilter<"Job"> | string | null;
279
- attempts?: Prisma.IntFilter<"Job"> | number;
280
- maxRetries?: Prisma.IntFilter<"Job"> | number;
281
- runAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
282
- startedAt?: Prisma.DateTimeNullableFilter<"Job"> | Date | string | null;
283
- completedAt?: Prisma.DateTimeNullableFilter<"Job"> | Date | string | null;
284
- createdAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
285
- updatedAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
286
- };
287
-
288
- export type JobOrderByWithRelationInput = {
289
- id?: Prisma.SortOrder;
290
- queue?: Prisma.SortOrder;
291
- name?: Prisma.SortOrder;
292
- data?: Prisma.SortOrderInput | Prisma.SortOrder;
293
- status?: Prisma.SortOrder;
294
- error?: Prisma.SortOrderInput | Prisma.SortOrder;
295
- attempts?: Prisma.SortOrder;
296
- maxRetries?: Prisma.SortOrder;
297
- runAt?: Prisma.SortOrder;
298
- startedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
299
- completedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
300
- createdAt?: Prisma.SortOrder;
301
- updatedAt?: Prisma.SortOrder;
302
- };
303
-
304
- export type JobWhereUniqueInput = Prisma.AtLeast<
305
- {
306
- id?: string;
307
- AND?: Prisma.JobWhereInput | Prisma.JobWhereInput[];
308
- OR?: Prisma.JobWhereInput[];
309
- NOT?: Prisma.JobWhereInput | Prisma.JobWhereInput[];
310
- queue?: Prisma.StringFilter<"Job"> | string;
311
- name?: Prisma.StringFilter<"Job"> | string;
312
- data?: Prisma.JsonNullableFilter<"Job">;
313
- status?: Prisma.EnumJobStatusFilter<"Job"> | $Enums.JobStatus;
314
- error?: Prisma.StringNullableFilter<"Job"> | string | null;
315
- attempts?: Prisma.IntFilter<"Job"> | number;
316
- maxRetries?: Prisma.IntFilter<"Job"> | number;
317
- runAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
318
- startedAt?: Prisma.DateTimeNullableFilter<"Job"> | Date | string | null;
319
- completedAt?: Prisma.DateTimeNullableFilter<"Job"> | Date | string | null;
320
- createdAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
321
- updatedAt?: Prisma.DateTimeFilter<"Job"> | Date | string;
322
- },
323
- "id"
324
- >;
325
-
326
- export type JobOrderByWithAggregationInput = {
327
- id?: Prisma.SortOrder;
328
- queue?: Prisma.SortOrder;
329
- name?: Prisma.SortOrder;
330
- data?: Prisma.SortOrderInput | Prisma.SortOrder;
331
- status?: Prisma.SortOrder;
332
- error?: Prisma.SortOrderInput | Prisma.SortOrder;
333
- attempts?: Prisma.SortOrder;
334
- maxRetries?: Prisma.SortOrder;
335
- runAt?: Prisma.SortOrder;
336
- startedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
337
- completedAt?: Prisma.SortOrderInput | Prisma.SortOrder;
338
- createdAt?: Prisma.SortOrder;
339
- updatedAt?: Prisma.SortOrder;
340
- _count?: Prisma.JobCountOrderByAggregateInput;
341
- _avg?: Prisma.JobAvgOrderByAggregateInput;
342
- _max?: Prisma.JobMaxOrderByAggregateInput;
343
- _min?: Prisma.JobMinOrderByAggregateInput;
344
- _sum?: Prisma.JobSumOrderByAggregateInput;
345
- };
346
-
347
- export type JobScalarWhereWithAggregatesInput = {
348
- AND?:
349
- | Prisma.JobScalarWhereWithAggregatesInput
350
- | Prisma.JobScalarWhereWithAggregatesInput[];
351
- OR?: Prisma.JobScalarWhereWithAggregatesInput[];
352
- NOT?:
353
- | Prisma.JobScalarWhereWithAggregatesInput
354
- | Prisma.JobScalarWhereWithAggregatesInput[];
355
- id?: Prisma.StringWithAggregatesFilter<"Job"> | string;
356
- queue?: Prisma.StringWithAggregatesFilter<"Job"> | string;
357
- name?: Prisma.StringWithAggregatesFilter<"Job"> | string;
358
- data?: Prisma.JsonNullableWithAggregatesFilter<"Job">;
359
- status?: Prisma.EnumJobStatusWithAggregatesFilter<"Job"> | $Enums.JobStatus;
360
- error?: Prisma.StringNullableWithAggregatesFilter<"Job"> | string | null;
361
- attempts?: Prisma.IntWithAggregatesFilter<"Job"> | number;
362
- maxRetries?: Prisma.IntWithAggregatesFilter<"Job"> | number;
363
- runAt?: Prisma.DateTimeWithAggregatesFilter<"Job"> | Date | string;
364
- startedAt?:
365
- | Prisma.DateTimeNullableWithAggregatesFilter<"Job">
366
- | Date
367
- | string
368
- | null;
369
- completedAt?:
370
- | Prisma.DateTimeNullableWithAggregatesFilter<"Job">
371
- | Date
372
- | string
373
- | null;
374
- createdAt?: Prisma.DateTimeWithAggregatesFilter<"Job"> | Date | string;
375
- updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Job"> | Date | string;
376
- };
377
-
378
- export type JobCreateInput = {
379
- id?: string;
380
- queue: string;
381
- name: string;
382
- data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
383
- status?: $Enums.JobStatus;
384
- error?: string | null;
385
- attempts?: number;
386
- maxRetries?: number;
387
- runAt?: Date | string;
388
- startedAt?: Date | string | null;
389
- completedAt?: Date | string | null;
390
- createdAt?: Date | string;
391
- updatedAt?: Date | string;
392
- };
393
-
394
- export type JobUncheckedCreateInput = {
395
- id?: string;
396
- queue: string;
397
- name: string;
398
- data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
399
- status?: $Enums.JobStatus;
400
- error?: string | null;
401
- attempts?: number;
402
- maxRetries?: number;
403
- runAt?: Date | string;
404
- startedAt?: Date | string | null;
405
- completedAt?: Date | string | null;
406
- createdAt?: Date | string;
407
- updatedAt?: Date | string;
408
- };
409
-
410
- export type JobUpdateInput = {
411
- id?: Prisma.StringFieldUpdateOperationsInput | string;
412
- queue?: Prisma.StringFieldUpdateOperationsInput | string;
413
- name?: Prisma.StringFieldUpdateOperationsInput | string;
414
- data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
415
- status?: Prisma.EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus;
416
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
417
- attempts?: Prisma.IntFieldUpdateOperationsInput | number;
418
- maxRetries?: Prisma.IntFieldUpdateOperationsInput | number;
419
- runAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
420
- startedAt?:
421
- | Prisma.NullableDateTimeFieldUpdateOperationsInput
422
- | Date
423
- | string
424
- | null;
425
- completedAt?:
426
- | Prisma.NullableDateTimeFieldUpdateOperationsInput
427
- | Date
428
- | string
429
- | null;
430
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
431
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
432
- };
433
-
434
- export type JobUncheckedUpdateInput = {
435
- id?: Prisma.StringFieldUpdateOperationsInput | string;
436
- queue?: Prisma.StringFieldUpdateOperationsInput | string;
437
- name?: Prisma.StringFieldUpdateOperationsInput | string;
438
- data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
439
- status?: Prisma.EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus;
440
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
441
- attempts?: Prisma.IntFieldUpdateOperationsInput | number;
442
- maxRetries?: Prisma.IntFieldUpdateOperationsInput | number;
443
- runAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
444
- startedAt?:
445
- | Prisma.NullableDateTimeFieldUpdateOperationsInput
446
- | Date
447
- | string
448
- | null;
449
- completedAt?:
450
- | Prisma.NullableDateTimeFieldUpdateOperationsInput
451
- | Date
452
- | string
453
- | null;
454
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
455
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
456
- };
457
-
458
- export type JobCreateManyInput = {
459
- id?: string;
460
- queue: string;
461
- name: string;
462
- data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
463
- status?: $Enums.JobStatus;
464
- error?: string | null;
465
- attempts?: number;
466
- maxRetries?: number;
467
- runAt?: Date | string;
468
- startedAt?: Date | string | null;
469
- completedAt?: Date | string | null;
470
- createdAt?: Date | string;
471
- updatedAt?: Date | string;
472
- };
473
-
474
- export type JobUpdateManyMutationInput = {
475
- id?: Prisma.StringFieldUpdateOperationsInput | string;
476
- queue?: Prisma.StringFieldUpdateOperationsInput | string;
477
- name?: Prisma.StringFieldUpdateOperationsInput | string;
478
- data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
479
- status?: Prisma.EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus;
480
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
481
- attempts?: Prisma.IntFieldUpdateOperationsInput | number;
482
- maxRetries?: Prisma.IntFieldUpdateOperationsInput | number;
483
- runAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
484
- startedAt?:
485
- | Prisma.NullableDateTimeFieldUpdateOperationsInput
486
- | Date
487
- | string
488
- | null;
489
- completedAt?:
490
- | Prisma.NullableDateTimeFieldUpdateOperationsInput
491
- | Date
492
- | string
493
- | null;
494
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
495
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
496
- };
497
-
498
- export type JobUncheckedUpdateManyInput = {
499
- id?: Prisma.StringFieldUpdateOperationsInput | string;
500
- queue?: Prisma.StringFieldUpdateOperationsInput | string;
501
- name?: Prisma.StringFieldUpdateOperationsInput | string;
502
- data?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue;
503
- status?: Prisma.EnumJobStatusFieldUpdateOperationsInput | $Enums.JobStatus;
504
- error?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
505
- attempts?: Prisma.IntFieldUpdateOperationsInput | number;
506
- maxRetries?: Prisma.IntFieldUpdateOperationsInput | number;
507
- runAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
508
- startedAt?:
509
- | Prisma.NullableDateTimeFieldUpdateOperationsInput
510
- | Date
511
- | string
512
- | null;
513
- completedAt?:
514
- | Prisma.NullableDateTimeFieldUpdateOperationsInput
515
- | Date
516
- | string
517
- | null;
518
- createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
519
- updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
520
- };
521
-
522
- export type JobCountOrderByAggregateInput = {
523
- id?: Prisma.SortOrder;
524
- queue?: Prisma.SortOrder;
525
- name?: Prisma.SortOrder;
526
- data?: Prisma.SortOrder;
527
- status?: Prisma.SortOrder;
528
- error?: Prisma.SortOrder;
529
- attempts?: Prisma.SortOrder;
530
- maxRetries?: Prisma.SortOrder;
531
- runAt?: Prisma.SortOrder;
532
- startedAt?: Prisma.SortOrder;
533
- completedAt?: Prisma.SortOrder;
534
- createdAt?: Prisma.SortOrder;
535
- updatedAt?: Prisma.SortOrder;
536
- };
537
-
538
- export type JobAvgOrderByAggregateInput = {
539
- attempts?: Prisma.SortOrder;
540
- maxRetries?: Prisma.SortOrder;
541
- };
542
-
543
- export type JobMaxOrderByAggregateInput = {
544
- id?: Prisma.SortOrder;
545
- queue?: Prisma.SortOrder;
546
- name?: Prisma.SortOrder;
547
- status?: Prisma.SortOrder;
548
- error?: Prisma.SortOrder;
549
- attempts?: Prisma.SortOrder;
550
- maxRetries?: Prisma.SortOrder;
551
- runAt?: Prisma.SortOrder;
552
- startedAt?: Prisma.SortOrder;
553
- completedAt?: Prisma.SortOrder;
554
- createdAt?: Prisma.SortOrder;
555
- updatedAt?: Prisma.SortOrder;
556
- };
557
-
558
- export type JobMinOrderByAggregateInput = {
559
- id?: Prisma.SortOrder;
560
- queue?: Prisma.SortOrder;
561
- name?: Prisma.SortOrder;
562
- status?: Prisma.SortOrder;
563
- error?: Prisma.SortOrder;
564
- attempts?: Prisma.SortOrder;
565
- maxRetries?: Prisma.SortOrder;
566
- runAt?: Prisma.SortOrder;
567
- startedAt?: Prisma.SortOrder;
568
- completedAt?: Prisma.SortOrder;
569
- createdAt?: Prisma.SortOrder;
570
- updatedAt?: Prisma.SortOrder;
571
- };
572
-
573
- export type JobSumOrderByAggregateInput = {
574
- attempts?: Prisma.SortOrder;
575
- maxRetries?: Prisma.SortOrder;
576
- };
577
-
578
- export type EnumJobStatusFieldUpdateOperationsInput = {
579
- set?: $Enums.JobStatus;
580
- };
581
-
582
- export type IntFieldUpdateOperationsInput = {
583
- set?: number;
584
- increment?: number;
585
- decrement?: number;
586
- multiply?: number;
587
- divide?: number;
588
- };
589
-
590
- export type JobSelect<
591
- ExtArgs extends
592
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
593
- > = runtime.Types.Extensions.GetSelect<
594
- {
595
- id?: boolean;
596
- queue?: boolean;
597
- name?: boolean;
598
- data?: boolean;
599
- status?: boolean;
600
- error?: boolean;
601
- attempts?: boolean;
602
- maxRetries?: boolean;
603
- runAt?: boolean;
604
- startedAt?: boolean;
605
- completedAt?: boolean;
606
- createdAt?: boolean;
607
- updatedAt?: boolean;
608
- },
609
- ExtArgs["result"]["job"]
610
- >;
611
-
612
- export type JobSelectCreateManyAndReturn<
613
- ExtArgs extends
614
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
615
- > = runtime.Types.Extensions.GetSelect<
616
- {
617
- id?: boolean;
618
- queue?: boolean;
619
- name?: boolean;
620
- data?: boolean;
621
- status?: boolean;
622
- error?: boolean;
623
- attempts?: boolean;
624
- maxRetries?: boolean;
625
- runAt?: boolean;
626
- startedAt?: boolean;
627
- completedAt?: boolean;
628
- createdAt?: boolean;
629
- updatedAt?: boolean;
630
- },
631
- ExtArgs["result"]["job"]
632
- >;
633
-
634
- export type JobSelectUpdateManyAndReturn<
635
- ExtArgs extends
636
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
637
- > = runtime.Types.Extensions.GetSelect<
638
- {
639
- id?: boolean;
640
- queue?: boolean;
641
- name?: boolean;
642
- data?: boolean;
643
- status?: boolean;
644
- error?: boolean;
645
- attempts?: boolean;
646
- maxRetries?: boolean;
647
- runAt?: boolean;
648
- startedAt?: boolean;
649
- completedAt?: boolean;
650
- createdAt?: boolean;
651
- updatedAt?: boolean;
652
- },
653
- ExtArgs["result"]["job"]
654
- >;
655
-
656
- export type JobSelectScalar = {
657
- id?: boolean;
658
- queue?: boolean;
659
- name?: boolean;
660
- data?: boolean;
661
- status?: boolean;
662
- error?: boolean;
663
- attempts?: boolean;
664
- maxRetries?: boolean;
665
- runAt?: boolean;
666
- startedAt?: boolean;
667
- completedAt?: boolean;
668
- createdAt?: boolean;
669
- updatedAt?: boolean;
670
- };
671
-
672
- export type JobOmit<
673
- ExtArgs extends
674
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
675
- > = runtime.Types.Extensions.GetOmit<
676
- | "id"
677
- | "queue"
678
- | "name"
679
- | "data"
680
- | "status"
681
- | "error"
682
- | "attempts"
683
- | "maxRetries"
684
- | "runAt"
685
- | "startedAt"
686
- | "completedAt"
687
- | "createdAt"
688
- | "updatedAt",
689
- ExtArgs["result"]["job"]
690
- >;
691
-
692
- export type $JobPayload<
693
- ExtArgs extends
694
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
695
- > = {
696
- name: "Job";
697
- objects: {};
698
- scalars: runtime.Types.Extensions.GetPayloadResult<
699
- {
700
- id: string;
701
- queue: string;
702
- name: string;
703
- data: runtime.JsonValue | null;
704
- status: $Enums.JobStatus;
705
- error: string | null;
706
- attempts: number;
707
- maxRetries: number;
708
- runAt: Date;
709
- startedAt: Date | null;
710
- completedAt: Date | null;
711
- createdAt: Date;
712
- updatedAt: Date;
713
- },
714
- ExtArgs["result"]["job"]
715
- >;
716
- composites: {};
717
- };
718
-
719
- export type JobGetPayload<
720
- S extends boolean | null | undefined | JobDefaultArgs,
721
- > = runtime.Types.Result.GetResult<Prisma.$JobPayload, S>;
722
-
723
- export type JobCountArgs<
724
- ExtArgs extends
725
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
726
- > = Omit<JobFindManyArgs, "select" | "include" | "distinct" | "omit"> & {
727
- select?: JobCountAggregateInputType | true;
728
- };
729
-
730
- export interface JobDelegate<
731
- ExtArgs extends
732
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
733
- GlobalOmitOptions = {},
734
- > {
735
- [K: symbol]: {
736
- types: Prisma.TypeMap<ExtArgs>["model"]["Job"];
737
- meta: { name: "Job" };
738
- };
739
- /**
740
- * Find zero or one Job that matches the filter.
741
- * @param {JobFindUniqueArgs} args - Arguments to find a Job
742
- * @example
743
- * // Get one Job
744
- * const job = await prisma.job.findUnique({
745
- * where: {
746
- * // ... provide filter here
747
- * }
748
- * })
749
- */
750
- findUnique<T extends JobFindUniqueArgs>(
751
- args: Prisma.SelectSubset<T, JobFindUniqueArgs<ExtArgs>>,
752
- ): Prisma.Prisma__JobClient<
753
- runtime.Types.Result.GetResult<
754
- Prisma.$JobPayload<ExtArgs>,
755
- T,
756
- "findUnique",
757
- GlobalOmitOptions
758
- > | null,
759
- null,
760
- ExtArgs,
761
- GlobalOmitOptions
762
- >;
763
-
764
- /**
765
- * Find one Job that matches the filter or throw an error with `error.code='P2025'`
766
- * if no matches were found.
767
- * @param {JobFindUniqueOrThrowArgs} args - Arguments to find a Job
768
- * @example
769
- * // Get one Job
770
- * const job = await prisma.job.findUniqueOrThrow({
771
- * where: {
772
- * // ... provide filter here
773
- * }
774
- * })
775
- */
776
- findUniqueOrThrow<T extends JobFindUniqueOrThrowArgs>(
777
- args: Prisma.SelectSubset<T, JobFindUniqueOrThrowArgs<ExtArgs>>,
778
- ): Prisma.Prisma__JobClient<
779
- runtime.Types.Result.GetResult<
780
- Prisma.$JobPayload<ExtArgs>,
781
- T,
782
- "findUniqueOrThrow",
783
- GlobalOmitOptions
784
- >,
785
- never,
786
- ExtArgs,
787
- GlobalOmitOptions
788
- >;
789
-
790
- /**
791
- * Find the first Job that matches the filter.
792
- * Note, that providing `undefined` is treated as the value not being there.
793
- * Read more here: https://pris.ly/d/null-undefined
794
- * @param {JobFindFirstArgs} args - Arguments to find a Job
795
- * @example
796
- * // Get one Job
797
- * const job = await prisma.job.findFirst({
798
- * where: {
799
- * // ... provide filter here
800
- * }
801
- * })
802
- */
803
- findFirst<T extends JobFindFirstArgs>(
804
- args?: Prisma.SelectSubset<T, JobFindFirstArgs<ExtArgs>>,
805
- ): Prisma.Prisma__JobClient<
806
- runtime.Types.Result.GetResult<
807
- Prisma.$JobPayload<ExtArgs>,
808
- T,
809
- "findFirst",
810
- GlobalOmitOptions
811
- > | null,
812
- null,
813
- ExtArgs,
814
- GlobalOmitOptions
815
- >;
816
-
817
- /**
818
- * Find the first Job that matches the filter or
819
- * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
820
- * Note, that providing `undefined` is treated as the value not being there.
821
- * Read more here: https://pris.ly/d/null-undefined
822
- * @param {JobFindFirstOrThrowArgs} args - Arguments to find a Job
823
- * @example
824
- * // Get one Job
825
- * const job = await prisma.job.findFirstOrThrow({
826
- * where: {
827
- * // ... provide filter here
828
- * }
829
- * })
830
- */
831
- findFirstOrThrow<T extends JobFindFirstOrThrowArgs>(
832
- args?: Prisma.SelectSubset<T, JobFindFirstOrThrowArgs<ExtArgs>>,
833
- ): Prisma.Prisma__JobClient<
834
- runtime.Types.Result.GetResult<
835
- Prisma.$JobPayload<ExtArgs>,
836
- T,
837
- "findFirstOrThrow",
838
- GlobalOmitOptions
839
- >,
840
- never,
841
- ExtArgs,
842
- GlobalOmitOptions
843
- >;
844
-
845
- /**
846
- * Find zero or more Jobs that matches the filter.
847
- * Note, that providing `undefined` is treated as the value not being there.
848
- * Read more here: https://pris.ly/d/null-undefined
849
- * @param {JobFindManyArgs} args - Arguments to filter and select certain fields only.
850
- * @example
851
- * // Get all Jobs
852
- * const jobs = await prisma.job.findMany()
853
- *
854
- * // Get first 10 Jobs
855
- * const jobs = await prisma.job.findMany({ take: 10 })
856
- *
857
- * // Only select the `id`
858
- * const jobWithIdOnly = await prisma.job.findMany({ select: { id: true } })
859
- *
860
- */
861
- findMany<T extends JobFindManyArgs>(
862
- args?: Prisma.SelectSubset<T, JobFindManyArgs<ExtArgs>>,
863
- ): Prisma.PrismaPromise<
864
- runtime.Types.Result.GetResult<
865
- Prisma.$JobPayload<ExtArgs>,
866
- T,
867
- "findMany",
868
- GlobalOmitOptions
869
- >
870
- >;
871
-
872
- /**
873
- * Create a Job.
874
- * @param {JobCreateArgs} args - Arguments to create a Job.
875
- * @example
876
- * // Create one Job
877
- * const Job = await prisma.job.create({
878
- * data: {
879
- * // ... data to create a Job
880
- * }
881
- * })
882
- *
883
- */
884
- create<T extends JobCreateArgs>(
885
- args: Prisma.SelectSubset<T, JobCreateArgs<ExtArgs>>,
886
- ): Prisma.Prisma__JobClient<
887
- runtime.Types.Result.GetResult<
888
- Prisma.$JobPayload<ExtArgs>,
889
- T,
890
- "create",
891
- GlobalOmitOptions
892
- >,
893
- never,
894
- ExtArgs,
895
- GlobalOmitOptions
896
- >;
897
-
898
- /**
899
- * Create many Jobs.
900
- * @param {JobCreateManyArgs} args - Arguments to create many Jobs.
901
- * @example
902
- * // Create many Jobs
903
- * const job = await prisma.job.createMany({
904
- * data: [
905
- * // ... provide data here
906
- * ]
907
- * })
908
- *
909
- */
910
- createMany<T extends JobCreateManyArgs>(
911
- args?: Prisma.SelectSubset<T, JobCreateManyArgs<ExtArgs>>,
912
- ): Prisma.PrismaPromise<Prisma.BatchPayload>;
913
-
914
- /**
915
- * Create many Jobs and returns the data saved in the database.
916
- * @param {JobCreateManyAndReturnArgs} args - Arguments to create many Jobs.
917
- * @example
918
- * // Create many Jobs
919
- * const job = await prisma.job.createManyAndReturn({
920
- * data: [
921
- * // ... provide data here
922
- * ]
923
- * })
924
- *
925
- * // Create many Jobs and only return the `id`
926
- * const jobWithIdOnly = await prisma.job.createManyAndReturn({
927
- * select: { id: true },
928
- * data: [
929
- * // ... provide data here
930
- * ]
931
- * })
932
- * Note, that providing `undefined` is treated as the value not being there.
933
- * Read more here: https://pris.ly/d/null-undefined
934
- *
935
- */
936
- createManyAndReturn<T extends JobCreateManyAndReturnArgs>(
937
- args?: Prisma.SelectSubset<T, JobCreateManyAndReturnArgs<ExtArgs>>,
938
- ): Prisma.PrismaPromise<
939
- runtime.Types.Result.GetResult<
940
- Prisma.$JobPayload<ExtArgs>,
941
- T,
942
- "createManyAndReturn",
943
- GlobalOmitOptions
944
- >
945
- >;
946
-
947
- /**
948
- * Delete a Job.
949
- * @param {JobDeleteArgs} args - Arguments to delete one Job.
950
- * @example
951
- * // Delete one Job
952
- * const Job = await prisma.job.delete({
953
- * where: {
954
- * // ... filter to delete one Job
955
- * }
956
- * })
957
- *
958
- */
959
- delete<T extends JobDeleteArgs>(
960
- args: Prisma.SelectSubset<T, JobDeleteArgs<ExtArgs>>,
961
- ): Prisma.Prisma__JobClient<
962
- runtime.Types.Result.GetResult<
963
- Prisma.$JobPayload<ExtArgs>,
964
- T,
965
- "delete",
966
- GlobalOmitOptions
967
- >,
968
- never,
969
- ExtArgs,
970
- GlobalOmitOptions
971
- >;
972
-
973
- /**
974
- * Update one Job.
975
- * @param {JobUpdateArgs} args - Arguments to update one Job.
976
- * @example
977
- * // Update one Job
978
- * const job = await prisma.job.update({
979
- * where: {
980
- * // ... provide filter here
981
- * },
982
- * data: {
983
- * // ... provide data here
984
- * }
985
- * })
986
- *
987
- */
988
- update<T extends JobUpdateArgs>(
989
- args: Prisma.SelectSubset<T, JobUpdateArgs<ExtArgs>>,
990
- ): Prisma.Prisma__JobClient<
991
- runtime.Types.Result.GetResult<
992
- Prisma.$JobPayload<ExtArgs>,
993
- T,
994
- "update",
995
- GlobalOmitOptions
996
- >,
997
- never,
998
- ExtArgs,
999
- GlobalOmitOptions
1000
- >;
1001
-
1002
- /**
1003
- * Delete zero or more Jobs.
1004
- * @param {JobDeleteManyArgs} args - Arguments to filter Jobs to delete.
1005
- * @example
1006
- * // Delete a few Jobs
1007
- * const { count } = await prisma.job.deleteMany({
1008
- * where: {
1009
- * // ... provide filter here
1010
- * }
1011
- * })
1012
- *
1013
- */
1014
- deleteMany<T extends JobDeleteManyArgs>(
1015
- args?: Prisma.SelectSubset<T, JobDeleteManyArgs<ExtArgs>>,
1016
- ): Prisma.PrismaPromise<Prisma.BatchPayload>;
1017
-
1018
- /**
1019
- * Update zero or more Jobs.
1020
- * Note, that providing `undefined` is treated as the value not being there.
1021
- * Read more here: https://pris.ly/d/null-undefined
1022
- * @param {JobUpdateManyArgs} args - Arguments to update one or more rows.
1023
- * @example
1024
- * // Update many Jobs
1025
- * const job = await prisma.job.updateMany({
1026
- * where: {
1027
- * // ... provide filter here
1028
- * },
1029
- * data: {
1030
- * // ... provide data here
1031
- * }
1032
- * })
1033
- *
1034
- */
1035
- updateMany<T extends JobUpdateManyArgs>(
1036
- args: Prisma.SelectSubset<T, JobUpdateManyArgs<ExtArgs>>,
1037
- ): Prisma.PrismaPromise<Prisma.BatchPayload>;
1038
-
1039
- /**
1040
- * Update zero or more Jobs and returns the data updated in the database.
1041
- * @param {JobUpdateManyAndReturnArgs} args - Arguments to update many Jobs.
1042
- * @example
1043
- * // Update many Jobs
1044
- * const job = await prisma.job.updateManyAndReturn({
1045
- * where: {
1046
- * // ... provide filter here
1047
- * },
1048
- * data: [
1049
- * // ... provide data here
1050
- * ]
1051
- * })
1052
- *
1053
- * // Update zero or more Jobs and only return the `id`
1054
- * const jobWithIdOnly = await prisma.job.updateManyAndReturn({
1055
- * select: { id: true },
1056
- * where: {
1057
- * // ... provide filter here
1058
- * },
1059
- * data: [
1060
- * // ... provide data here
1061
- * ]
1062
- * })
1063
- * Note, that providing `undefined` is treated as the value not being there.
1064
- * Read more here: https://pris.ly/d/null-undefined
1065
- *
1066
- */
1067
- updateManyAndReturn<T extends JobUpdateManyAndReturnArgs>(
1068
- args: Prisma.SelectSubset<T, JobUpdateManyAndReturnArgs<ExtArgs>>,
1069
- ): Prisma.PrismaPromise<
1070
- runtime.Types.Result.GetResult<
1071
- Prisma.$JobPayload<ExtArgs>,
1072
- T,
1073
- "updateManyAndReturn",
1074
- GlobalOmitOptions
1075
- >
1076
- >;
1077
-
1078
- /**
1079
- * Create or update one Job.
1080
- * @param {JobUpsertArgs} args - Arguments to update or create a Job.
1081
- * @example
1082
- * // Update or create a Job
1083
- * const job = await prisma.job.upsert({
1084
- * create: {
1085
- * // ... data to create a Job
1086
- * },
1087
- * update: {
1088
- * // ... in case it already exists, update
1089
- * },
1090
- * where: {
1091
- * // ... the filter for the Job we want to update
1092
- * }
1093
- * })
1094
- */
1095
- upsert<T extends JobUpsertArgs>(
1096
- args: Prisma.SelectSubset<T, JobUpsertArgs<ExtArgs>>,
1097
- ): Prisma.Prisma__JobClient<
1098
- runtime.Types.Result.GetResult<
1099
- Prisma.$JobPayload<ExtArgs>,
1100
- T,
1101
- "upsert",
1102
- GlobalOmitOptions
1103
- >,
1104
- never,
1105
- ExtArgs,
1106
- GlobalOmitOptions
1107
- >;
1108
-
1109
- /**
1110
- * Count the number of Jobs.
1111
- * Note, that providing `undefined` is treated as the value not being there.
1112
- * Read more here: https://pris.ly/d/null-undefined
1113
- * @param {JobCountArgs} args - Arguments to filter Jobs to count.
1114
- * @example
1115
- * // Count the number of Jobs
1116
- * const count = await prisma.job.count({
1117
- * where: {
1118
- * // ... the filter for the Jobs we want to count
1119
- * }
1120
- * })
1121
- **/
1122
- count<T extends JobCountArgs>(
1123
- args?: Prisma.Subset<T, JobCountArgs>,
1124
- ): Prisma.PrismaPromise<
1125
- T extends runtime.Types.Utils.Record<"select", any>
1126
- ? T["select"] extends true
1127
- ? number
1128
- : Prisma.GetScalarType<T["select"], JobCountAggregateOutputType>
1129
- : number
1130
- >;
1131
-
1132
- /**
1133
- * Allows you to perform aggregations operations on a Job.
1134
- * Note, that providing `undefined` is treated as the value not being there.
1135
- * Read more here: https://pris.ly/d/null-undefined
1136
- * @param {JobAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1137
- * @example
1138
- * // Ordered by age ascending
1139
- * // Where email contains prisma.io
1140
- * // Limited to the 10 users
1141
- * const aggregations = await prisma.user.aggregate({
1142
- * _avg: {
1143
- * age: true,
1144
- * },
1145
- * where: {
1146
- * email: {
1147
- * contains: "prisma.io",
1148
- * },
1149
- * },
1150
- * orderBy: {
1151
- * age: "asc",
1152
- * },
1153
- * take: 10,
1154
- * })
1155
- **/
1156
- aggregate<T extends JobAggregateArgs>(
1157
- args: Prisma.Subset<T, JobAggregateArgs>,
1158
- ): Prisma.PrismaPromise<GetJobAggregateType<T>>;
1159
-
1160
- /**
1161
- * Group by Job.
1162
- * Note, that providing `undefined` is treated as the value not being there.
1163
- * Read more here: https://pris.ly/d/null-undefined
1164
- * @param {JobGroupByArgs} args - Group by arguments.
1165
- * @example
1166
- * // Group by city, order by createdAt, get count
1167
- * const result = await prisma.user.groupBy({
1168
- * by: ['city', 'createdAt'],
1169
- * orderBy: {
1170
- * createdAt: true
1171
- * },
1172
- * _count: {
1173
- * _all: true
1174
- * },
1175
- * })
1176
- *
1177
- **/
1178
- groupBy<
1179
- T extends JobGroupByArgs,
1180
- HasSelectOrTake extends Prisma.Or<
1181
- Prisma.Extends<"skip", Prisma.Keys<T>>,
1182
- Prisma.Extends<"take", Prisma.Keys<T>>
1183
- >,
1184
- OrderByArg extends Prisma.True extends HasSelectOrTake
1185
- ? { orderBy: JobGroupByArgs["orderBy"] }
1186
- : { orderBy?: JobGroupByArgs["orderBy"] },
1187
- OrderFields extends Prisma.ExcludeUnderscoreKeys<
1188
- Prisma.Keys<Prisma.MaybeTupleToUnion<T["orderBy"]>>
1189
- >,
1190
- ByFields extends Prisma.MaybeTupleToUnion<T["by"]>,
1191
- ByValid extends Prisma.Has<ByFields, OrderFields>,
1192
- HavingFields extends Prisma.GetHavingFields<T["having"]>,
1193
- HavingValid extends Prisma.Has<ByFields, HavingFields>,
1194
- ByEmpty extends T["by"] extends never[] ? Prisma.True : Prisma.False,
1195
- InputErrors extends ByEmpty extends Prisma.True
1196
- ? `Error: "by" must not be empty.`
1197
- : HavingValid extends Prisma.False
1198
- ? {
1199
- [P in HavingFields]: P extends ByFields
1200
- ? never
1201
- : P extends string
1202
- ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1203
- : [
1204
- Error,
1205
- "Field ",
1206
- P,
1207
- ` in "having" needs to be provided in "by"`,
1208
- ];
1209
- }[HavingFields]
1210
- : "take" extends Prisma.Keys<T>
1211
- ? "orderBy" extends Prisma.Keys<T>
1212
- ? ByValid extends Prisma.True
1213
- ? {}
1214
- : {
1215
- [P in OrderFields]: P extends ByFields
1216
- ? never
1217
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1218
- }[OrderFields]
1219
- : 'Error: If you provide "take", you also need to provide "orderBy"'
1220
- : "skip" extends Prisma.Keys<T>
1221
- ? "orderBy" extends Prisma.Keys<T>
1222
- ? ByValid extends Prisma.True
1223
- ? {}
1224
- : {
1225
- [P in OrderFields]: P extends ByFields
1226
- ? never
1227
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1228
- }[OrderFields]
1229
- : 'Error: If you provide "skip", you also need to provide "orderBy"'
1230
- : ByValid extends Prisma.True
1231
- ? {}
1232
- : {
1233
- [P in OrderFields]: P extends ByFields
1234
- ? never
1235
- : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
1236
- }[OrderFields],
1237
- >(
1238
- args: Prisma.SubsetIntersection<T, JobGroupByArgs, OrderByArg> &
1239
- InputErrors,
1240
- ): {} extends InputErrors
1241
- ? GetJobGroupByPayload<T>
1242
- : Prisma.PrismaPromise<InputErrors>;
1243
- /**
1244
- * Fields of the Job model
1245
- */
1246
- readonly fields: JobFieldRefs;
1247
- }
1248
-
1249
- /**
1250
- * The delegate class that acts as a "Promise-like" for Job.
1251
- * Why is this prefixed with `Prisma__`?
1252
- * Because we want to prevent naming conflicts as mentioned in
1253
- * https://github.com/prisma/prisma-client-js/issues/707
1254
- */
1255
- export interface Prisma__JobClient<
1256
- T,
1257
- Null = never,
1258
- ExtArgs extends
1259
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1260
- GlobalOmitOptions = {},
1261
- > extends Prisma.PrismaPromise<T> {
1262
- readonly [Symbol.toStringTag]: "PrismaPromise";
1263
- /**
1264
- * Attaches callbacks for the resolution and/or rejection of the Promise.
1265
- * @param onfulfilled The callback to execute when the Promise is resolved.
1266
- * @param onrejected The callback to execute when the Promise is rejected.
1267
- * @returns A Promise for the completion of which ever callback is executed.
1268
- */
1269
- then<TResult1 = T, TResult2 = never>(
1270
- onfulfilled?:
1271
- | ((value: T) => TResult1 | PromiseLike<TResult1>)
1272
- | undefined
1273
- | null,
1274
- onrejected?:
1275
- | ((reason: any) => TResult2 | PromiseLike<TResult2>)
1276
- | undefined
1277
- | null,
1278
- ): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
1279
- /**
1280
- * Attaches a callback for only the rejection of the Promise.
1281
- * @param onrejected The callback to execute when the Promise is rejected.
1282
- * @returns A Promise for the completion of the callback.
1283
- */
1284
- catch<TResult = never>(
1285
- onrejected?:
1286
- | ((reason: any) => TResult | PromiseLike<TResult>)
1287
- | undefined
1288
- | null,
1289
- ): runtime.Types.Utils.JsPromise<T | TResult>;
1290
- /**
1291
- * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1292
- * resolved value cannot be modified from the callback.
1293
- * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1294
- * @returns A Promise for the completion of the callback.
1295
- */
1296
- finally(
1297
- onfinally?: (() => void) | undefined | null,
1298
- ): runtime.Types.Utils.JsPromise<T>;
1299
- }
1300
-
1301
- /**
1302
- * Fields of the Job model
1303
- */
1304
- export interface JobFieldRefs {
1305
- readonly id: Prisma.FieldRef<"Job", "String">;
1306
- readonly queue: Prisma.FieldRef<"Job", "String">;
1307
- readonly name: Prisma.FieldRef<"Job", "String">;
1308
- readonly data: Prisma.FieldRef<"Job", "Json">;
1309
- readonly status: Prisma.FieldRef<"Job", "JobStatus">;
1310
- readonly error: Prisma.FieldRef<"Job", "String">;
1311
- readonly attempts: Prisma.FieldRef<"Job", "Int">;
1312
- readonly maxRetries: Prisma.FieldRef<"Job", "Int">;
1313
- readonly runAt: Prisma.FieldRef<"Job", "DateTime">;
1314
- readonly startedAt: Prisma.FieldRef<"Job", "DateTime">;
1315
- readonly completedAt: Prisma.FieldRef<"Job", "DateTime">;
1316
- readonly createdAt: Prisma.FieldRef<"Job", "DateTime">;
1317
- readonly updatedAt: Prisma.FieldRef<"Job", "DateTime">;
1318
- }
1319
-
1320
- // Custom InputTypes
1321
- /**
1322
- * Job findUnique
1323
- */
1324
- export type JobFindUniqueArgs<
1325
- ExtArgs extends
1326
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1327
- > = {
1328
- /**
1329
- * Select specific fields to fetch from the Job
1330
- */
1331
- select?: Prisma.JobSelect<ExtArgs> | null;
1332
- /**
1333
- * Omit specific fields from the Job
1334
- */
1335
- omit?: Prisma.JobOmit<ExtArgs> | null;
1336
- /**
1337
- * Filter, which Job to fetch.
1338
- */
1339
- where: Prisma.JobWhereUniqueInput;
1340
- };
1341
-
1342
- /**
1343
- * Job findUniqueOrThrow
1344
- */
1345
- export type JobFindUniqueOrThrowArgs<
1346
- ExtArgs extends
1347
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1348
- > = {
1349
- /**
1350
- * Select specific fields to fetch from the Job
1351
- */
1352
- select?: Prisma.JobSelect<ExtArgs> | null;
1353
- /**
1354
- * Omit specific fields from the Job
1355
- */
1356
- omit?: Prisma.JobOmit<ExtArgs> | null;
1357
- /**
1358
- * Filter, which Job to fetch.
1359
- */
1360
- where: Prisma.JobWhereUniqueInput;
1361
- };
1362
-
1363
- /**
1364
- * Job findFirst
1365
- */
1366
- export type JobFindFirstArgs<
1367
- ExtArgs extends
1368
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1369
- > = {
1370
- /**
1371
- * Select specific fields to fetch from the Job
1372
- */
1373
- select?: Prisma.JobSelect<ExtArgs> | null;
1374
- /**
1375
- * Omit specific fields from the Job
1376
- */
1377
- omit?: Prisma.JobOmit<ExtArgs> | null;
1378
- /**
1379
- * Filter, which Job to fetch.
1380
- */
1381
- where?: Prisma.JobWhereInput;
1382
- /**
1383
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1384
- *
1385
- * Determine the order of Jobs to fetch.
1386
- */
1387
- orderBy?:
1388
- | Prisma.JobOrderByWithRelationInput
1389
- | Prisma.JobOrderByWithRelationInput[];
1390
- /**
1391
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1392
- *
1393
- * Sets the position for searching for Jobs.
1394
- */
1395
- cursor?: Prisma.JobWhereUniqueInput;
1396
- /**
1397
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1398
- *
1399
- * Take `±n` Jobs from the position of the cursor.
1400
- */
1401
- take?: number;
1402
- /**
1403
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1404
- *
1405
- * Skip the first `n` Jobs.
1406
- */
1407
- skip?: number;
1408
- /**
1409
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1410
- *
1411
- * Filter by unique combinations of Jobs.
1412
- */
1413
- distinct?: Prisma.JobScalarFieldEnum | Prisma.JobScalarFieldEnum[];
1414
- };
1415
-
1416
- /**
1417
- * Job findFirstOrThrow
1418
- */
1419
- export type JobFindFirstOrThrowArgs<
1420
- ExtArgs extends
1421
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1422
- > = {
1423
- /**
1424
- * Select specific fields to fetch from the Job
1425
- */
1426
- select?: Prisma.JobSelect<ExtArgs> | null;
1427
- /**
1428
- * Omit specific fields from the Job
1429
- */
1430
- omit?: Prisma.JobOmit<ExtArgs> | null;
1431
- /**
1432
- * Filter, which Job to fetch.
1433
- */
1434
- where?: Prisma.JobWhereInput;
1435
- /**
1436
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1437
- *
1438
- * Determine the order of Jobs to fetch.
1439
- */
1440
- orderBy?:
1441
- | Prisma.JobOrderByWithRelationInput
1442
- | Prisma.JobOrderByWithRelationInput[];
1443
- /**
1444
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1445
- *
1446
- * Sets the position for searching for Jobs.
1447
- */
1448
- cursor?: Prisma.JobWhereUniqueInput;
1449
- /**
1450
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1451
- *
1452
- * Take `±n` Jobs from the position of the cursor.
1453
- */
1454
- take?: number;
1455
- /**
1456
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1457
- *
1458
- * Skip the first `n` Jobs.
1459
- */
1460
- skip?: number;
1461
- /**
1462
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1463
- *
1464
- * Filter by unique combinations of Jobs.
1465
- */
1466
- distinct?: Prisma.JobScalarFieldEnum | Prisma.JobScalarFieldEnum[];
1467
- };
1468
-
1469
- /**
1470
- * Job findMany
1471
- */
1472
- export type JobFindManyArgs<
1473
- ExtArgs extends
1474
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1475
- > = {
1476
- /**
1477
- * Select specific fields to fetch from the Job
1478
- */
1479
- select?: Prisma.JobSelect<ExtArgs> | null;
1480
- /**
1481
- * Omit specific fields from the Job
1482
- */
1483
- omit?: Prisma.JobOmit<ExtArgs> | null;
1484
- /**
1485
- * Filter, which Jobs to fetch.
1486
- */
1487
- where?: Prisma.JobWhereInput;
1488
- /**
1489
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1490
- *
1491
- * Determine the order of Jobs to fetch.
1492
- */
1493
- orderBy?:
1494
- | Prisma.JobOrderByWithRelationInput
1495
- | Prisma.JobOrderByWithRelationInput[];
1496
- /**
1497
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1498
- *
1499
- * Sets the position for listing Jobs.
1500
- */
1501
- cursor?: Prisma.JobWhereUniqueInput;
1502
- /**
1503
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1504
- *
1505
- * Take `±n` Jobs from the position of the cursor.
1506
- */
1507
- take?: number;
1508
- /**
1509
- * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1510
- *
1511
- * Skip the first `n` Jobs.
1512
- */
1513
- skip?: number;
1514
- distinct?: Prisma.JobScalarFieldEnum | Prisma.JobScalarFieldEnum[];
1515
- };
1516
-
1517
- /**
1518
- * Job create
1519
- */
1520
- export type JobCreateArgs<
1521
- ExtArgs extends
1522
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1523
- > = {
1524
- /**
1525
- * Select specific fields to fetch from the Job
1526
- */
1527
- select?: Prisma.JobSelect<ExtArgs> | null;
1528
- /**
1529
- * Omit specific fields from the Job
1530
- */
1531
- omit?: Prisma.JobOmit<ExtArgs> | null;
1532
- /**
1533
- * The data needed to create a Job.
1534
- */
1535
- data: Prisma.XOR<Prisma.JobCreateInput, Prisma.JobUncheckedCreateInput>;
1536
- };
1537
-
1538
- /**
1539
- * Job createMany
1540
- */
1541
- export type JobCreateManyArgs<
1542
- ExtArgs extends
1543
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1544
- > = {
1545
- /**
1546
- * The data used to create many Jobs.
1547
- */
1548
- data: Prisma.JobCreateManyInput | Prisma.JobCreateManyInput[];
1549
- skipDuplicates?: boolean;
1550
- };
1551
-
1552
- /**
1553
- * Job createManyAndReturn
1554
- */
1555
- export type JobCreateManyAndReturnArgs<
1556
- ExtArgs extends
1557
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1558
- > = {
1559
- /**
1560
- * Select specific fields to fetch from the Job
1561
- */
1562
- select?: Prisma.JobSelectCreateManyAndReturn<ExtArgs> | null;
1563
- /**
1564
- * Omit specific fields from the Job
1565
- */
1566
- omit?: Prisma.JobOmit<ExtArgs> | null;
1567
- /**
1568
- * The data used to create many Jobs.
1569
- */
1570
- data: Prisma.JobCreateManyInput | Prisma.JobCreateManyInput[];
1571
- skipDuplicates?: boolean;
1572
- };
1573
-
1574
- /**
1575
- * Job update
1576
- */
1577
- export type JobUpdateArgs<
1578
- ExtArgs extends
1579
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1580
- > = {
1581
- /**
1582
- * Select specific fields to fetch from the Job
1583
- */
1584
- select?: Prisma.JobSelect<ExtArgs> | null;
1585
- /**
1586
- * Omit specific fields from the Job
1587
- */
1588
- omit?: Prisma.JobOmit<ExtArgs> | null;
1589
- /**
1590
- * The data needed to update a Job.
1591
- */
1592
- data: Prisma.XOR<Prisma.JobUpdateInput, Prisma.JobUncheckedUpdateInput>;
1593
- /**
1594
- * Choose, which Job to update.
1595
- */
1596
- where: Prisma.JobWhereUniqueInput;
1597
- };
1598
-
1599
- /**
1600
- * Job updateMany
1601
- */
1602
- export type JobUpdateManyArgs<
1603
- ExtArgs extends
1604
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1605
- > = {
1606
- /**
1607
- * The data used to update Jobs.
1608
- */
1609
- data: Prisma.XOR<
1610
- Prisma.JobUpdateManyMutationInput,
1611
- Prisma.JobUncheckedUpdateManyInput
1612
- >;
1613
- /**
1614
- * Filter which Jobs to update
1615
- */
1616
- where?: Prisma.JobWhereInput;
1617
- /**
1618
- * Limit how many Jobs to update.
1619
- */
1620
- limit?: number;
1621
- };
1622
-
1623
- /**
1624
- * Job updateManyAndReturn
1625
- */
1626
- export type JobUpdateManyAndReturnArgs<
1627
- ExtArgs extends
1628
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1629
- > = {
1630
- /**
1631
- * Select specific fields to fetch from the Job
1632
- */
1633
- select?: Prisma.JobSelectUpdateManyAndReturn<ExtArgs> | null;
1634
- /**
1635
- * Omit specific fields from the Job
1636
- */
1637
- omit?: Prisma.JobOmit<ExtArgs> | null;
1638
- /**
1639
- * The data used to update Jobs.
1640
- */
1641
- data: Prisma.XOR<
1642
- Prisma.JobUpdateManyMutationInput,
1643
- Prisma.JobUncheckedUpdateManyInput
1644
- >;
1645
- /**
1646
- * Filter which Jobs to update
1647
- */
1648
- where?: Prisma.JobWhereInput;
1649
- /**
1650
- * Limit how many Jobs to update.
1651
- */
1652
- limit?: number;
1653
- };
1654
-
1655
- /**
1656
- * Job upsert
1657
- */
1658
- export type JobUpsertArgs<
1659
- ExtArgs extends
1660
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1661
- > = {
1662
- /**
1663
- * Select specific fields to fetch from the Job
1664
- */
1665
- select?: Prisma.JobSelect<ExtArgs> | null;
1666
- /**
1667
- * Omit specific fields from the Job
1668
- */
1669
- omit?: Prisma.JobOmit<ExtArgs> | null;
1670
- /**
1671
- * The filter to search for the Job to update in case it exists.
1672
- */
1673
- where: Prisma.JobWhereUniqueInput;
1674
- /**
1675
- * In case the Job found by the `where` argument doesn't exist, create a new Job with this data.
1676
- */
1677
- create: Prisma.XOR<Prisma.JobCreateInput, Prisma.JobUncheckedCreateInput>;
1678
- /**
1679
- * In case the Job was found with the provided `where` argument, update it with this data.
1680
- */
1681
- update: Prisma.XOR<Prisma.JobUpdateInput, Prisma.JobUncheckedUpdateInput>;
1682
- };
1683
-
1684
- /**
1685
- * Job delete
1686
- */
1687
- export type JobDeleteArgs<
1688
- ExtArgs extends
1689
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1690
- > = {
1691
- /**
1692
- * Select specific fields to fetch from the Job
1693
- */
1694
- select?: Prisma.JobSelect<ExtArgs> | null;
1695
- /**
1696
- * Omit specific fields from the Job
1697
- */
1698
- omit?: Prisma.JobOmit<ExtArgs> | null;
1699
- /**
1700
- * Filter which Job to delete.
1701
- */
1702
- where: Prisma.JobWhereUniqueInput;
1703
- };
1704
-
1705
- /**
1706
- * Job deleteMany
1707
- */
1708
- export type JobDeleteManyArgs<
1709
- ExtArgs extends
1710
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1711
- > = {
1712
- /**
1713
- * Filter which Jobs to delete
1714
- */
1715
- where?: Prisma.JobWhereInput;
1716
- /**
1717
- * Limit how many Jobs to delete.
1718
- */
1719
- limit?: number;
1720
- };
1721
-
1722
- /**
1723
- * Job without action
1724
- */
1725
- export type JobDefaultArgs<
1726
- ExtArgs extends
1727
- runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
1728
- > = {
1729
- /**
1730
- * Select specific fields to fetch from the Job
1731
- */
1732
- select?: Prisma.JobSelect<ExtArgs> | null;
1733
- /**
1734
- * Omit specific fields from the Job
1735
- */
1736
- omit?: Prisma.JobOmit<ExtArgs> | null;
1737
- };