@robert-brightline/ims-db 0.0.1

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 (51) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +34 -0
  3. package/dist/generated/prisma/browser.d.ts +10 -0
  4. package/dist/generated/prisma/browser.d.ts.map +1 -0
  5. package/dist/generated/prisma/browser.js +17 -0
  6. package/dist/generated/prisma/browser.js.map +1 -0
  7. package/dist/generated/prisma/client.d.ts +27 -0
  8. package/dist/generated/prisma/client.d.ts.map +1 -0
  9. package/dist/generated/prisma/client.js +31 -0
  10. package/dist/generated/prisma/client.js.map +1 -0
  11. package/dist/generated/prisma/commonInputTypes.d.ts +338 -0
  12. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
  13. package/dist/generated/prisma/commonInputTypes.js +9 -0
  14. package/dist/generated/prisma/commonInputTypes.js.map +1 -0
  15. package/dist/generated/prisma/enums.d.ts +2 -0
  16. package/dist/generated/prisma/enums.d.ts.map +1 -0
  17. package/dist/generated/prisma/enums.js +10 -0
  18. package/dist/generated/prisma/enums.js.map +1 -0
  19. package/dist/generated/prisma/internal/class.d.ts +127 -0
  20. package/dist/generated/prisma/internal/class.d.ts.map +1 -0
  21. package/dist/generated/prisma/internal/class.js +39 -0
  22. package/dist/generated/prisma/internal/class.js.map +1 -0
  23. package/dist/generated/prisma/internal/prismaNamespace.d.ts +545 -0
  24. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
  25. package/dist/generated/prisma/internal/prismaNamespace.js +98 -0
  26. package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
  27. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +69 -0
  28. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
  29. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +73 -0
  30. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
  31. package/dist/generated/prisma/models/Product.d.ts +1649 -0
  32. package/dist/generated/prisma/models/Product.d.ts.map +1 -0
  33. package/dist/generated/prisma/models/Product.js +11 -0
  34. package/dist/generated/prisma/models/Product.js.map +1 -0
  35. package/dist/generated/prisma/models.d.ts +3 -0
  36. package/dist/generated/prisma/models.d.ts.map +1 -0
  37. package/dist/generated/prisma/models.js +9 -0
  38. package/dist/generated/prisma/models.js.map +1 -0
  39. package/dist/generated/zod/index.d.ts +149 -0
  40. package/dist/generated/zod/index.d.ts.map +1 -0
  41. package/dist/generated/zod/index.js +1967 -0
  42. package/dist/generated/zod/index.js.map +1 -0
  43. package/dist/index.d.ts +10 -0
  44. package/dist/index.d.ts.map +1 -0
  45. package/dist/index.js +18 -0
  46. package/dist/index.js.map +1 -0
  47. package/dist/lib/ims-db.d.ts +2 -0
  48. package/dist/lib/ims-db.d.ts.map +1 -0
  49. package/dist/lib/ims-db.js +5 -0
  50. package/dist/lib/ims-db.js.map +1 -0
  51. package/package.json +84 -0
@@ -0,0 +1,1967 @@
1
+ import { z } from 'zod';
2
+ /////////////////////////////////////////
3
+ // HELPER FUNCTIONS
4
+ /////////////////////////////////////////
5
+ /////////////////////////////////////////
6
+ // ENUMS
7
+ /////////////////////////////////////////
8
+ export const TransactionIsolationLevelSchema = z.enum([
9
+ 'ReadUncommitted',
10
+ 'ReadCommitted',
11
+ 'RepeatableRead',
12
+ 'Serializable'
13
+ ]);
14
+ export const ProductScalarFieldEnumSchema = z.enum([
15
+ 'id',
16
+ 'uuid',
17
+ 'createdAt',
18
+ 'updatedAt',
19
+ 'deletedAt',
20
+ 'name',
21
+ 'description',
22
+ 'upc',
23
+ 'sku',
24
+ 'categoryId',
25
+ 'documentId',
26
+ 'parentId'
27
+ ]);
28
+ export const SortOrderSchema = z.enum([
29
+ 'asc',
30
+ 'desc'
31
+ ]);
32
+ export const QueryModeSchema = z.enum([
33
+ 'default',
34
+ 'insensitive'
35
+ ]);
36
+ export const NullsOrderSchema = z.enum([
37
+ 'first',
38
+ 'last'
39
+ ]);
40
+ /////////////////////////////////////////
41
+ // MODELS
42
+ /////////////////////////////////////////
43
+ /////////////////////////////////////////
44
+ // PRODUCT SCHEMA
45
+ /////////////////////////////////////////
46
+ export const ProductSchema = z.object({
47
+ id: z.number().int(),
48
+ uuid: z.uuid(),
49
+ createdAt: z.coerce.date(),
50
+ updatedAt: z.coerce.date(),
51
+ deletedAt: z.coerce.date().nullable(),
52
+ name: z.string(),
53
+ description: z.string().nullable(),
54
+ upc: z.string().nullable(),
55
+ sku: z.string().nullable(),
56
+ categoryId: z.string().nullable(),
57
+ documentId: z.string().nullable(),
58
+ parentId: z.number().int().nullable()
59
+ });
60
+ /////////////////////////////////////////
61
+ // SELECT & INCLUDE
62
+ /////////////////////////////////////////
63
+ // PRODUCT
64
+ //------------------------------------------------------
65
+ export const ProductIncludeSchema = z.object({
66
+ product: z.union([
67
+ z.boolean(),
68
+ z.lazy(()=>ProductArgsSchema)
69
+ ]).optional(),
70
+ variants: z.union([
71
+ z.boolean(),
72
+ z.lazy(()=>ProductFindManyArgsSchema)
73
+ ]).optional(),
74
+ _count: z.union([
75
+ z.boolean(),
76
+ z.lazy(()=>ProductCountOutputTypeArgsSchema)
77
+ ]).optional()
78
+ }).strict();
79
+ export const ProductArgsSchema = z.object({
80
+ select: z.lazy(()=>ProductSelectSchema).optional(),
81
+ include: z.lazy(()=>ProductIncludeSchema).optional()
82
+ }).strict();
83
+ export const ProductCountOutputTypeArgsSchema = z.object({
84
+ select: z.lazy(()=>ProductCountOutputTypeSelectSchema).nullish()
85
+ }).strict();
86
+ export const ProductCountOutputTypeSelectSchema = z.object({
87
+ variants: z.boolean().optional()
88
+ }).strict();
89
+ export const ProductSelectSchema = z.object({
90
+ id: z.boolean().optional(),
91
+ uuid: z.boolean().optional(),
92
+ createdAt: z.boolean().optional(),
93
+ updatedAt: z.boolean().optional(),
94
+ deletedAt: z.boolean().optional(),
95
+ name: z.boolean().optional(),
96
+ description: z.boolean().optional(),
97
+ upc: z.boolean().optional(),
98
+ sku: z.boolean().optional(),
99
+ categoryId: z.boolean().optional(),
100
+ documentId: z.boolean().optional(),
101
+ parentId: z.boolean().optional(),
102
+ product: z.union([
103
+ z.boolean(),
104
+ z.lazy(()=>ProductArgsSchema)
105
+ ]).optional(),
106
+ variants: z.union([
107
+ z.boolean(),
108
+ z.lazy(()=>ProductFindManyArgsSchema)
109
+ ]).optional(),
110
+ _count: z.union([
111
+ z.boolean(),
112
+ z.lazy(()=>ProductCountOutputTypeArgsSchema)
113
+ ]).optional()
114
+ }).strict();
115
+ /////////////////////////////////////////
116
+ // INPUT TYPES
117
+ /////////////////////////////////////////
118
+ export const ProductWhereInputSchema = z.strictObject({
119
+ AND: z.union([
120
+ z.lazy(()=>ProductWhereInputSchema),
121
+ z.lazy(()=>ProductWhereInputSchema).array()
122
+ ]).optional(),
123
+ OR: z.lazy(()=>ProductWhereInputSchema).array().optional(),
124
+ NOT: z.union([
125
+ z.lazy(()=>ProductWhereInputSchema),
126
+ z.lazy(()=>ProductWhereInputSchema).array()
127
+ ]).optional(),
128
+ id: z.union([
129
+ z.lazy(()=>IntFilterSchema),
130
+ z.number()
131
+ ]).optional(),
132
+ uuid: z.union([
133
+ z.lazy(()=>StringFilterSchema),
134
+ z.string()
135
+ ]).optional(),
136
+ createdAt: z.union([
137
+ z.lazy(()=>DateTimeFilterSchema),
138
+ z.coerce.date()
139
+ ]).optional(),
140
+ updatedAt: z.union([
141
+ z.lazy(()=>DateTimeFilterSchema),
142
+ z.coerce.date()
143
+ ]).optional(),
144
+ deletedAt: z.union([
145
+ z.lazy(()=>DateTimeNullableFilterSchema),
146
+ z.coerce.date()
147
+ ]).optional().nullable(),
148
+ name: z.union([
149
+ z.lazy(()=>StringFilterSchema),
150
+ z.string()
151
+ ]).optional(),
152
+ description: z.union([
153
+ z.lazy(()=>StringNullableFilterSchema),
154
+ z.string()
155
+ ]).optional().nullable(),
156
+ upc: z.union([
157
+ z.lazy(()=>StringNullableFilterSchema),
158
+ z.string()
159
+ ]).optional().nullable(),
160
+ sku: z.union([
161
+ z.lazy(()=>StringNullableFilterSchema),
162
+ z.string()
163
+ ]).optional().nullable(),
164
+ categoryId: z.union([
165
+ z.lazy(()=>StringNullableFilterSchema),
166
+ z.string()
167
+ ]).optional().nullable(),
168
+ documentId: z.union([
169
+ z.lazy(()=>StringNullableFilterSchema),
170
+ z.string()
171
+ ]).optional().nullable(),
172
+ parentId: z.union([
173
+ z.lazy(()=>IntNullableFilterSchema),
174
+ z.number()
175
+ ]).optional().nullable(),
176
+ product: z.union([
177
+ z.lazy(()=>ProductNullableScalarRelationFilterSchema),
178
+ z.lazy(()=>ProductWhereInputSchema)
179
+ ]).optional().nullable(),
180
+ variants: z.lazy(()=>ProductListRelationFilterSchema).optional()
181
+ });
182
+ export const ProductOrderByWithRelationInputSchema = z.strictObject({
183
+ id: z.lazy(()=>SortOrderSchema).optional(),
184
+ uuid: z.lazy(()=>SortOrderSchema).optional(),
185
+ createdAt: z.lazy(()=>SortOrderSchema).optional(),
186
+ updatedAt: z.lazy(()=>SortOrderSchema).optional(),
187
+ deletedAt: z.union([
188
+ z.lazy(()=>SortOrderSchema),
189
+ z.lazy(()=>SortOrderInputSchema)
190
+ ]).optional(),
191
+ name: z.lazy(()=>SortOrderSchema).optional(),
192
+ description: z.union([
193
+ z.lazy(()=>SortOrderSchema),
194
+ z.lazy(()=>SortOrderInputSchema)
195
+ ]).optional(),
196
+ upc: z.union([
197
+ z.lazy(()=>SortOrderSchema),
198
+ z.lazy(()=>SortOrderInputSchema)
199
+ ]).optional(),
200
+ sku: z.union([
201
+ z.lazy(()=>SortOrderSchema),
202
+ z.lazy(()=>SortOrderInputSchema)
203
+ ]).optional(),
204
+ categoryId: z.union([
205
+ z.lazy(()=>SortOrderSchema),
206
+ z.lazy(()=>SortOrderInputSchema)
207
+ ]).optional(),
208
+ documentId: z.union([
209
+ z.lazy(()=>SortOrderSchema),
210
+ z.lazy(()=>SortOrderInputSchema)
211
+ ]).optional(),
212
+ parentId: z.union([
213
+ z.lazy(()=>SortOrderSchema),
214
+ z.lazy(()=>SortOrderInputSchema)
215
+ ]).optional(),
216
+ product: z.lazy(()=>ProductOrderByWithRelationInputSchema).optional(),
217
+ variants: z.lazy(()=>ProductOrderByRelationAggregateInputSchema).optional()
218
+ });
219
+ export const ProductWhereUniqueInputSchema = z.union([
220
+ z.object({
221
+ id: z.number().int(),
222
+ uuid: z.uuid(),
223
+ name: z.string(),
224
+ upc: z.string(),
225
+ sku: z.string()
226
+ }),
227
+ z.object({
228
+ id: z.number().int(),
229
+ uuid: z.uuid(),
230
+ name: z.string(),
231
+ upc: z.string()
232
+ }),
233
+ z.object({
234
+ id: z.number().int(),
235
+ uuid: z.uuid(),
236
+ name: z.string(),
237
+ sku: z.string()
238
+ }),
239
+ z.object({
240
+ id: z.number().int(),
241
+ uuid: z.uuid(),
242
+ name: z.string()
243
+ }),
244
+ z.object({
245
+ id: z.number().int(),
246
+ uuid: z.uuid(),
247
+ upc: z.string(),
248
+ sku: z.string()
249
+ }),
250
+ z.object({
251
+ id: z.number().int(),
252
+ uuid: z.uuid(),
253
+ upc: z.string()
254
+ }),
255
+ z.object({
256
+ id: z.number().int(),
257
+ uuid: z.uuid(),
258
+ sku: z.string()
259
+ }),
260
+ z.object({
261
+ id: z.number().int(),
262
+ uuid: z.uuid()
263
+ }),
264
+ z.object({
265
+ id: z.number().int(),
266
+ name: z.string(),
267
+ upc: z.string(),
268
+ sku: z.string()
269
+ }),
270
+ z.object({
271
+ id: z.number().int(),
272
+ name: z.string(),
273
+ upc: z.string()
274
+ }),
275
+ z.object({
276
+ id: z.number().int(),
277
+ name: z.string(),
278
+ sku: z.string()
279
+ }),
280
+ z.object({
281
+ id: z.number().int(),
282
+ name: z.string()
283
+ }),
284
+ z.object({
285
+ id: z.number().int(),
286
+ upc: z.string(),
287
+ sku: z.string()
288
+ }),
289
+ z.object({
290
+ id: z.number().int(),
291
+ upc: z.string()
292
+ }),
293
+ z.object({
294
+ id: z.number().int(),
295
+ sku: z.string()
296
+ }),
297
+ z.object({
298
+ id: z.number().int()
299
+ }),
300
+ z.object({
301
+ uuid: z.uuid(),
302
+ name: z.string(),
303
+ upc: z.string(),
304
+ sku: z.string()
305
+ }),
306
+ z.object({
307
+ uuid: z.uuid(),
308
+ name: z.string(),
309
+ upc: z.string()
310
+ }),
311
+ z.object({
312
+ uuid: z.uuid(),
313
+ name: z.string(),
314
+ sku: z.string()
315
+ }),
316
+ z.object({
317
+ uuid: z.uuid(),
318
+ name: z.string()
319
+ }),
320
+ z.object({
321
+ uuid: z.uuid(),
322
+ upc: z.string(),
323
+ sku: z.string()
324
+ }),
325
+ z.object({
326
+ uuid: z.uuid(),
327
+ upc: z.string()
328
+ }),
329
+ z.object({
330
+ uuid: z.uuid(),
331
+ sku: z.string()
332
+ }),
333
+ z.object({
334
+ uuid: z.uuid()
335
+ }),
336
+ z.object({
337
+ name: z.string(),
338
+ upc: z.string(),
339
+ sku: z.string()
340
+ }),
341
+ z.object({
342
+ name: z.string(),
343
+ upc: z.string()
344
+ }),
345
+ z.object({
346
+ name: z.string(),
347
+ sku: z.string()
348
+ }),
349
+ z.object({
350
+ name: z.string()
351
+ }),
352
+ z.object({
353
+ upc: z.string(),
354
+ sku: z.string()
355
+ }),
356
+ z.object({
357
+ upc: z.string()
358
+ }),
359
+ z.object({
360
+ sku: z.string()
361
+ })
362
+ ]).and(z.strictObject({
363
+ id: z.number().int().optional(),
364
+ uuid: z.uuid().optional(),
365
+ name: z.string().optional(),
366
+ upc: z.string().optional(),
367
+ sku: z.string().optional(),
368
+ AND: z.union([
369
+ z.lazy(()=>ProductWhereInputSchema),
370
+ z.lazy(()=>ProductWhereInputSchema).array()
371
+ ]).optional(),
372
+ OR: z.lazy(()=>ProductWhereInputSchema).array().optional(),
373
+ NOT: z.union([
374
+ z.lazy(()=>ProductWhereInputSchema),
375
+ z.lazy(()=>ProductWhereInputSchema).array()
376
+ ]).optional(),
377
+ createdAt: z.union([
378
+ z.lazy(()=>DateTimeFilterSchema),
379
+ z.coerce.date()
380
+ ]).optional(),
381
+ updatedAt: z.union([
382
+ z.lazy(()=>DateTimeFilterSchema),
383
+ z.coerce.date()
384
+ ]).optional(),
385
+ deletedAt: z.union([
386
+ z.lazy(()=>DateTimeNullableFilterSchema),
387
+ z.coerce.date()
388
+ ]).optional().nullable(),
389
+ description: z.union([
390
+ z.lazy(()=>StringNullableFilterSchema),
391
+ z.string()
392
+ ]).optional().nullable(),
393
+ categoryId: z.union([
394
+ z.lazy(()=>StringNullableFilterSchema),
395
+ z.string()
396
+ ]).optional().nullable(),
397
+ documentId: z.union([
398
+ z.lazy(()=>StringNullableFilterSchema),
399
+ z.string()
400
+ ]).optional().nullable(),
401
+ parentId: z.union([
402
+ z.lazy(()=>IntNullableFilterSchema),
403
+ z.number().int()
404
+ ]).optional().nullable(),
405
+ product: z.union([
406
+ z.lazy(()=>ProductNullableScalarRelationFilterSchema),
407
+ z.lazy(()=>ProductWhereInputSchema)
408
+ ]).optional().nullable(),
409
+ variants: z.lazy(()=>ProductListRelationFilterSchema).optional()
410
+ }));
411
+ export const ProductOrderByWithAggregationInputSchema = z.strictObject({
412
+ id: z.lazy(()=>SortOrderSchema).optional(),
413
+ uuid: z.lazy(()=>SortOrderSchema).optional(),
414
+ createdAt: z.lazy(()=>SortOrderSchema).optional(),
415
+ updatedAt: z.lazy(()=>SortOrderSchema).optional(),
416
+ deletedAt: z.union([
417
+ z.lazy(()=>SortOrderSchema),
418
+ z.lazy(()=>SortOrderInputSchema)
419
+ ]).optional(),
420
+ name: z.lazy(()=>SortOrderSchema).optional(),
421
+ description: z.union([
422
+ z.lazy(()=>SortOrderSchema),
423
+ z.lazy(()=>SortOrderInputSchema)
424
+ ]).optional(),
425
+ upc: z.union([
426
+ z.lazy(()=>SortOrderSchema),
427
+ z.lazy(()=>SortOrderInputSchema)
428
+ ]).optional(),
429
+ sku: z.union([
430
+ z.lazy(()=>SortOrderSchema),
431
+ z.lazy(()=>SortOrderInputSchema)
432
+ ]).optional(),
433
+ categoryId: z.union([
434
+ z.lazy(()=>SortOrderSchema),
435
+ z.lazy(()=>SortOrderInputSchema)
436
+ ]).optional(),
437
+ documentId: z.union([
438
+ z.lazy(()=>SortOrderSchema),
439
+ z.lazy(()=>SortOrderInputSchema)
440
+ ]).optional(),
441
+ parentId: z.union([
442
+ z.lazy(()=>SortOrderSchema),
443
+ z.lazy(()=>SortOrderInputSchema)
444
+ ]).optional(),
445
+ _count: z.lazy(()=>ProductCountOrderByAggregateInputSchema).optional(),
446
+ _avg: z.lazy(()=>ProductAvgOrderByAggregateInputSchema).optional(),
447
+ _max: z.lazy(()=>ProductMaxOrderByAggregateInputSchema).optional(),
448
+ _min: z.lazy(()=>ProductMinOrderByAggregateInputSchema).optional(),
449
+ _sum: z.lazy(()=>ProductSumOrderByAggregateInputSchema).optional()
450
+ });
451
+ export const ProductScalarWhereWithAggregatesInputSchema = z.strictObject({
452
+ AND: z.union([
453
+ z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema),
454
+ z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema).array()
455
+ ]).optional(),
456
+ OR: z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema).array().optional(),
457
+ NOT: z.union([
458
+ z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema),
459
+ z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema).array()
460
+ ]).optional(),
461
+ id: z.union([
462
+ z.lazy(()=>IntWithAggregatesFilterSchema),
463
+ z.number()
464
+ ]).optional(),
465
+ uuid: z.union([
466
+ z.lazy(()=>StringWithAggregatesFilterSchema),
467
+ z.string()
468
+ ]).optional(),
469
+ createdAt: z.union([
470
+ z.lazy(()=>DateTimeWithAggregatesFilterSchema),
471
+ z.coerce.date()
472
+ ]).optional(),
473
+ updatedAt: z.union([
474
+ z.lazy(()=>DateTimeWithAggregatesFilterSchema),
475
+ z.coerce.date()
476
+ ]).optional(),
477
+ deletedAt: z.union([
478
+ z.lazy(()=>DateTimeNullableWithAggregatesFilterSchema),
479
+ z.coerce.date()
480
+ ]).optional().nullable(),
481
+ name: z.union([
482
+ z.lazy(()=>StringWithAggregatesFilterSchema),
483
+ z.string()
484
+ ]).optional(),
485
+ description: z.union([
486
+ z.lazy(()=>StringNullableWithAggregatesFilterSchema),
487
+ z.string()
488
+ ]).optional().nullable(),
489
+ upc: z.union([
490
+ z.lazy(()=>StringNullableWithAggregatesFilterSchema),
491
+ z.string()
492
+ ]).optional().nullable(),
493
+ sku: z.union([
494
+ z.lazy(()=>StringNullableWithAggregatesFilterSchema),
495
+ z.string()
496
+ ]).optional().nullable(),
497
+ categoryId: z.union([
498
+ z.lazy(()=>StringNullableWithAggregatesFilterSchema),
499
+ z.string()
500
+ ]).optional().nullable(),
501
+ documentId: z.union([
502
+ z.lazy(()=>StringNullableWithAggregatesFilterSchema),
503
+ z.string()
504
+ ]).optional().nullable(),
505
+ parentId: z.union([
506
+ z.lazy(()=>IntNullableWithAggregatesFilterSchema),
507
+ z.number()
508
+ ]).optional().nullable()
509
+ });
510
+ export const ProductCreateInputSchema = z.strictObject({
511
+ uuid: z.uuid().optional(),
512
+ createdAt: z.coerce.date().optional(),
513
+ updatedAt: z.coerce.date().optional(),
514
+ deletedAt: z.coerce.date().optional().nullable(),
515
+ name: z.string(),
516
+ description: z.string().optional().nullable(),
517
+ upc: z.string().optional().nullable(),
518
+ sku: z.string().optional().nullable(),
519
+ categoryId: z.string().optional().nullable(),
520
+ documentId: z.string().optional().nullable(),
521
+ product: z.lazy(()=>ProductCreateNestedOneWithoutVariantsInputSchema).optional(),
522
+ variants: z.lazy(()=>ProductCreateNestedManyWithoutProductInputSchema).optional()
523
+ });
524
+ export const ProductUncheckedCreateInputSchema = z.strictObject({
525
+ id: z.number().int().optional(),
526
+ uuid: z.uuid().optional(),
527
+ createdAt: z.coerce.date().optional(),
528
+ updatedAt: z.coerce.date().optional(),
529
+ deletedAt: z.coerce.date().optional().nullable(),
530
+ name: z.string(),
531
+ description: z.string().optional().nullable(),
532
+ upc: z.string().optional().nullable(),
533
+ sku: z.string().optional().nullable(),
534
+ categoryId: z.string().optional().nullable(),
535
+ documentId: z.string().optional().nullable(),
536
+ parentId: z.number().int().optional().nullable(),
537
+ variants: z.lazy(()=>ProductUncheckedCreateNestedManyWithoutProductInputSchema).optional()
538
+ });
539
+ export const ProductUpdateInputSchema = z.strictObject({
540
+ uuid: z.union([
541
+ z.uuid(),
542
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
543
+ ]).optional(),
544
+ createdAt: z.union([
545
+ z.coerce.date(),
546
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
547
+ ]).optional(),
548
+ updatedAt: z.union([
549
+ z.coerce.date(),
550
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
551
+ ]).optional(),
552
+ deletedAt: z.union([
553
+ z.coerce.date(),
554
+ z.lazy(()=>NullableDateTimeFieldUpdateOperationsInputSchema)
555
+ ]).optional().nullable(),
556
+ name: z.union([
557
+ z.string(),
558
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
559
+ ]).optional(),
560
+ description: z.union([
561
+ z.string(),
562
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
563
+ ]).optional().nullable(),
564
+ upc: z.union([
565
+ z.string(),
566
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
567
+ ]).optional().nullable(),
568
+ sku: z.union([
569
+ z.string(),
570
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
571
+ ]).optional().nullable(),
572
+ categoryId: z.union([
573
+ z.string(),
574
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
575
+ ]).optional().nullable(),
576
+ documentId: z.union([
577
+ z.string(),
578
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
579
+ ]).optional().nullable(),
580
+ product: z.lazy(()=>ProductUpdateOneWithoutVariantsNestedInputSchema).optional(),
581
+ variants: z.lazy(()=>ProductUpdateManyWithoutProductNestedInputSchema).optional()
582
+ });
583
+ export const ProductUncheckedUpdateInputSchema = z.strictObject({
584
+ id: z.union([
585
+ z.number().int(),
586
+ z.lazy(()=>IntFieldUpdateOperationsInputSchema)
587
+ ]).optional(),
588
+ uuid: z.union([
589
+ z.uuid(),
590
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
591
+ ]).optional(),
592
+ createdAt: z.union([
593
+ z.coerce.date(),
594
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
595
+ ]).optional(),
596
+ updatedAt: z.union([
597
+ z.coerce.date(),
598
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
599
+ ]).optional(),
600
+ deletedAt: z.union([
601
+ z.coerce.date(),
602
+ z.lazy(()=>NullableDateTimeFieldUpdateOperationsInputSchema)
603
+ ]).optional().nullable(),
604
+ name: z.union([
605
+ z.string(),
606
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
607
+ ]).optional(),
608
+ description: z.union([
609
+ z.string(),
610
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
611
+ ]).optional().nullable(),
612
+ upc: z.union([
613
+ z.string(),
614
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
615
+ ]).optional().nullable(),
616
+ sku: z.union([
617
+ z.string(),
618
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
619
+ ]).optional().nullable(),
620
+ categoryId: z.union([
621
+ z.string(),
622
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
623
+ ]).optional().nullable(),
624
+ documentId: z.union([
625
+ z.string(),
626
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
627
+ ]).optional().nullable(),
628
+ parentId: z.union([
629
+ z.number().int(),
630
+ z.lazy(()=>NullableIntFieldUpdateOperationsInputSchema)
631
+ ]).optional().nullable(),
632
+ variants: z.lazy(()=>ProductUncheckedUpdateManyWithoutProductNestedInputSchema).optional()
633
+ });
634
+ export const ProductCreateManyInputSchema = z.strictObject({
635
+ id: z.number().int().optional(),
636
+ uuid: z.uuid().optional(),
637
+ createdAt: z.coerce.date().optional(),
638
+ updatedAt: z.coerce.date().optional(),
639
+ deletedAt: z.coerce.date().optional().nullable(),
640
+ name: z.string(),
641
+ description: z.string().optional().nullable(),
642
+ upc: z.string().optional().nullable(),
643
+ sku: z.string().optional().nullable(),
644
+ categoryId: z.string().optional().nullable(),
645
+ documentId: z.string().optional().nullable(),
646
+ parentId: z.number().int().optional().nullable()
647
+ });
648
+ export const ProductUpdateManyMutationInputSchema = z.strictObject({
649
+ uuid: z.union([
650
+ z.uuid(),
651
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
652
+ ]).optional(),
653
+ createdAt: z.union([
654
+ z.coerce.date(),
655
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
656
+ ]).optional(),
657
+ updatedAt: z.union([
658
+ z.coerce.date(),
659
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
660
+ ]).optional(),
661
+ deletedAt: z.union([
662
+ z.coerce.date(),
663
+ z.lazy(()=>NullableDateTimeFieldUpdateOperationsInputSchema)
664
+ ]).optional().nullable(),
665
+ name: z.union([
666
+ z.string(),
667
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
668
+ ]).optional(),
669
+ description: z.union([
670
+ z.string(),
671
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
672
+ ]).optional().nullable(),
673
+ upc: z.union([
674
+ z.string(),
675
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
676
+ ]).optional().nullable(),
677
+ sku: z.union([
678
+ z.string(),
679
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
680
+ ]).optional().nullable(),
681
+ categoryId: z.union([
682
+ z.string(),
683
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
684
+ ]).optional().nullable(),
685
+ documentId: z.union([
686
+ z.string(),
687
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
688
+ ]).optional().nullable()
689
+ });
690
+ export const ProductUncheckedUpdateManyInputSchema = z.strictObject({
691
+ id: z.union([
692
+ z.number().int(),
693
+ z.lazy(()=>IntFieldUpdateOperationsInputSchema)
694
+ ]).optional(),
695
+ uuid: z.union([
696
+ z.uuid(),
697
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
698
+ ]).optional(),
699
+ createdAt: z.union([
700
+ z.coerce.date(),
701
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
702
+ ]).optional(),
703
+ updatedAt: z.union([
704
+ z.coerce.date(),
705
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
706
+ ]).optional(),
707
+ deletedAt: z.union([
708
+ z.coerce.date(),
709
+ z.lazy(()=>NullableDateTimeFieldUpdateOperationsInputSchema)
710
+ ]).optional().nullable(),
711
+ name: z.union([
712
+ z.string(),
713
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
714
+ ]).optional(),
715
+ description: z.union([
716
+ z.string(),
717
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
718
+ ]).optional().nullable(),
719
+ upc: z.union([
720
+ z.string(),
721
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
722
+ ]).optional().nullable(),
723
+ sku: z.union([
724
+ z.string(),
725
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
726
+ ]).optional().nullable(),
727
+ categoryId: z.union([
728
+ z.string(),
729
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
730
+ ]).optional().nullable(),
731
+ documentId: z.union([
732
+ z.string(),
733
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
734
+ ]).optional().nullable(),
735
+ parentId: z.union([
736
+ z.number().int(),
737
+ z.lazy(()=>NullableIntFieldUpdateOperationsInputSchema)
738
+ ]).optional().nullable()
739
+ });
740
+ export const IntFilterSchema = z.strictObject({
741
+ equals: z.number().optional(),
742
+ in: z.number().array().optional(),
743
+ notIn: z.number().array().optional(),
744
+ lt: z.number().optional(),
745
+ lte: z.number().optional(),
746
+ gt: z.number().optional(),
747
+ gte: z.number().optional(),
748
+ not: z.union([
749
+ z.number(),
750
+ z.lazy(()=>NestedIntFilterSchema)
751
+ ]).optional()
752
+ });
753
+ export const StringFilterSchema = z.strictObject({
754
+ equals: z.string().optional(),
755
+ in: z.string().array().optional(),
756
+ notIn: z.string().array().optional(),
757
+ lt: z.string().optional(),
758
+ lte: z.string().optional(),
759
+ gt: z.string().optional(),
760
+ gte: z.string().optional(),
761
+ contains: z.string().optional(),
762
+ startsWith: z.string().optional(),
763
+ endsWith: z.string().optional(),
764
+ mode: z.lazy(()=>QueryModeSchema).optional(),
765
+ not: z.union([
766
+ z.string(),
767
+ z.lazy(()=>NestedStringFilterSchema)
768
+ ]).optional()
769
+ });
770
+ export const DateTimeFilterSchema = z.strictObject({
771
+ equals: z.coerce.date().optional(),
772
+ in: z.coerce.date().array().optional(),
773
+ notIn: z.coerce.date().array().optional(),
774
+ lt: z.coerce.date().optional(),
775
+ lte: z.coerce.date().optional(),
776
+ gt: z.coerce.date().optional(),
777
+ gte: z.coerce.date().optional(),
778
+ not: z.union([
779
+ z.coerce.date(),
780
+ z.lazy(()=>NestedDateTimeFilterSchema)
781
+ ]).optional()
782
+ });
783
+ export const DateTimeNullableFilterSchema = z.strictObject({
784
+ equals: z.coerce.date().optional().nullable(),
785
+ in: z.coerce.date().array().optional().nullable(),
786
+ notIn: z.coerce.date().array().optional().nullable(),
787
+ lt: z.coerce.date().optional(),
788
+ lte: z.coerce.date().optional(),
789
+ gt: z.coerce.date().optional(),
790
+ gte: z.coerce.date().optional(),
791
+ not: z.union([
792
+ z.coerce.date(),
793
+ z.lazy(()=>NestedDateTimeNullableFilterSchema)
794
+ ]).optional().nullable()
795
+ });
796
+ export const StringNullableFilterSchema = z.strictObject({
797
+ equals: z.string().optional().nullable(),
798
+ in: z.string().array().optional().nullable(),
799
+ notIn: z.string().array().optional().nullable(),
800
+ lt: z.string().optional(),
801
+ lte: z.string().optional(),
802
+ gt: z.string().optional(),
803
+ gte: z.string().optional(),
804
+ contains: z.string().optional(),
805
+ startsWith: z.string().optional(),
806
+ endsWith: z.string().optional(),
807
+ mode: z.lazy(()=>QueryModeSchema).optional(),
808
+ not: z.union([
809
+ z.string(),
810
+ z.lazy(()=>NestedStringNullableFilterSchema)
811
+ ]).optional().nullable()
812
+ });
813
+ export const IntNullableFilterSchema = z.strictObject({
814
+ equals: z.number().optional().nullable(),
815
+ in: z.number().array().optional().nullable(),
816
+ notIn: z.number().array().optional().nullable(),
817
+ lt: z.number().optional(),
818
+ lte: z.number().optional(),
819
+ gt: z.number().optional(),
820
+ gte: z.number().optional(),
821
+ not: z.union([
822
+ z.number(),
823
+ z.lazy(()=>NestedIntNullableFilterSchema)
824
+ ]).optional().nullable()
825
+ });
826
+ export const ProductNullableScalarRelationFilterSchema = z.strictObject({
827
+ is: z.lazy(()=>ProductWhereInputSchema).optional().nullable(),
828
+ isNot: z.lazy(()=>ProductWhereInputSchema).optional().nullable()
829
+ });
830
+ export const ProductListRelationFilterSchema = z.strictObject({
831
+ every: z.lazy(()=>ProductWhereInputSchema).optional(),
832
+ some: z.lazy(()=>ProductWhereInputSchema).optional(),
833
+ none: z.lazy(()=>ProductWhereInputSchema).optional()
834
+ });
835
+ export const SortOrderInputSchema = z.strictObject({
836
+ sort: z.lazy(()=>SortOrderSchema),
837
+ nulls: z.lazy(()=>NullsOrderSchema).optional()
838
+ });
839
+ export const ProductOrderByRelationAggregateInputSchema = z.strictObject({
840
+ _count: z.lazy(()=>SortOrderSchema).optional()
841
+ });
842
+ export const ProductCountOrderByAggregateInputSchema = z.strictObject({
843
+ id: z.lazy(()=>SortOrderSchema).optional(),
844
+ uuid: z.lazy(()=>SortOrderSchema).optional(),
845
+ createdAt: z.lazy(()=>SortOrderSchema).optional(),
846
+ updatedAt: z.lazy(()=>SortOrderSchema).optional(),
847
+ deletedAt: z.lazy(()=>SortOrderSchema).optional(),
848
+ name: z.lazy(()=>SortOrderSchema).optional(),
849
+ description: z.lazy(()=>SortOrderSchema).optional(),
850
+ upc: z.lazy(()=>SortOrderSchema).optional(),
851
+ sku: z.lazy(()=>SortOrderSchema).optional(),
852
+ categoryId: z.lazy(()=>SortOrderSchema).optional(),
853
+ documentId: z.lazy(()=>SortOrderSchema).optional(),
854
+ parentId: z.lazy(()=>SortOrderSchema).optional()
855
+ });
856
+ export const ProductAvgOrderByAggregateInputSchema = z.strictObject({
857
+ id: z.lazy(()=>SortOrderSchema).optional(),
858
+ parentId: z.lazy(()=>SortOrderSchema).optional()
859
+ });
860
+ export const ProductMaxOrderByAggregateInputSchema = z.strictObject({
861
+ id: z.lazy(()=>SortOrderSchema).optional(),
862
+ uuid: z.lazy(()=>SortOrderSchema).optional(),
863
+ createdAt: z.lazy(()=>SortOrderSchema).optional(),
864
+ updatedAt: z.lazy(()=>SortOrderSchema).optional(),
865
+ deletedAt: z.lazy(()=>SortOrderSchema).optional(),
866
+ name: z.lazy(()=>SortOrderSchema).optional(),
867
+ description: z.lazy(()=>SortOrderSchema).optional(),
868
+ upc: z.lazy(()=>SortOrderSchema).optional(),
869
+ sku: z.lazy(()=>SortOrderSchema).optional(),
870
+ categoryId: z.lazy(()=>SortOrderSchema).optional(),
871
+ documentId: z.lazy(()=>SortOrderSchema).optional(),
872
+ parentId: z.lazy(()=>SortOrderSchema).optional()
873
+ });
874
+ export const ProductMinOrderByAggregateInputSchema = z.strictObject({
875
+ id: z.lazy(()=>SortOrderSchema).optional(),
876
+ uuid: z.lazy(()=>SortOrderSchema).optional(),
877
+ createdAt: z.lazy(()=>SortOrderSchema).optional(),
878
+ updatedAt: z.lazy(()=>SortOrderSchema).optional(),
879
+ deletedAt: z.lazy(()=>SortOrderSchema).optional(),
880
+ name: z.lazy(()=>SortOrderSchema).optional(),
881
+ description: z.lazy(()=>SortOrderSchema).optional(),
882
+ upc: z.lazy(()=>SortOrderSchema).optional(),
883
+ sku: z.lazy(()=>SortOrderSchema).optional(),
884
+ categoryId: z.lazy(()=>SortOrderSchema).optional(),
885
+ documentId: z.lazy(()=>SortOrderSchema).optional(),
886
+ parentId: z.lazy(()=>SortOrderSchema).optional()
887
+ });
888
+ export const ProductSumOrderByAggregateInputSchema = z.strictObject({
889
+ id: z.lazy(()=>SortOrderSchema).optional(),
890
+ parentId: z.lazy(()=>SortOrderSchema).optional()
891
+ });
892
+ export const IntWithAggregatesFilterSchema = z.strictObject({
893
+ equals: z.number().optional(),
894
+ in: z.number().array().optional(),
895
+ notIn: z.number().array().optional(),
896
+ lt: z.number().optional(),
897
+ lte: z.number().optional(),
898
+ gt: z.number().optional(),
899
+ gte: z.number().optional(),
900
+ not: z.union([
901
+ z.number(),
902
+ z.lazy(()=>NestedIntWithAggregatesFilterSchema)
903
+ ]).optional(),
904
+ _count: z.lazy(()=>NestedIntFilterSchema).optional(),
905
+ _avg: z.lazy(()=>NestedFloatFilterSchema).optional(),
906
+ _sum: z.lazy(()=>NestedIntFilterSchema).optional(),
907
+ _min: z.lazy(()=>NestedIntFilterSchema).optional(),
908
+ _max: z.lazy(()=>NestedIntFilterSchema).optional()
909
+ });
910
+ export const StringWithAggregatesFilterSchema = z.strictObject({
911
+ equals: z.string().optional(),
912
+ in: z.string().array().optional(),
913
+ notIn: z.string().array().optional(),
914
+ lt: z.string().optional(),
915
+ lte: z.string().optional(),
916
+ gt: z.string().optional(),
917
+ gte: z.string().optional(),
918
+ contains: z.string().optional(),
919
+ startsWith: z.string().optional(),
920
+ endsWith: z.string().optional(),
921
+ mode: z.lazy(()=>QueryModeSchema).optional(),
922
+ not: z.union([
923
+ z.string(),
924
+ z.lazy(()=>NestedStringWithAggregatesFilterSchema)
925
+ ]).optional(),
926
+ _count: z.lazy(()=>NestedIntFilterSchema).optional(),
927
+ _min: z.lazy(()=>NestedStringFilterSchema).optional(),
928
+ _max: z.lazy(()=>NestedStringFilterSchema).optional()
929
+ });
930
+ export const DateTimeWithAggregatesFilterSchema = z.strictObject({
931
+ equals: z.coerce.date().optional(),
932
+ in: z.coerce.date().array().optional(),
933
+ notIn: z.coerce.date().array().optional(),
934
+ lt: z.coerce.date().optional(),
935
+ lte: z.coerce.date().optional(),
936
+ gt: z.coerce.date().optional(),
937
+ gte: z.coerce.date().optional(),
938
+ not: z.union([
939
+ z.coerce.date(),
940
+ z.lazy(()=>NestedDateTimeWithAggregatesFilterSchema)
941
+ ]).optional(),
942
+ _count: z.lazy(()=>NestedIntFilterSchema).optional(),
943
+ _min: z.lazy(()=>NestedDateTimeFilterSchema).optional(),
944
+ _max: z.lazy(()=>NestedDateTimeFilterSchema).optional()
945
+ });
946
+ export const DateTimeNullableWithAggregatesFilterSchema = z.strictObject({
947
+ equals: z.coerce.date().optional().nullable(),
948
+ in: z.coerce.date().array().optional().nullable(),
949
+ notIn: z.coerce.date().array().optional().nullable(),
950
+ lt: z.coerce.date().optional(),
951
+ lte: z.coerce.date().optional(),
952
+ gt: z.coerce.date().optional(),
953
+ gte: z.coerce.date().optional(),
954
+ not: z.union([
955
+ z.coerce.date(),
956
+ z.lazy(()=>NestedDateTimeNullableWithAggregatesFilterSchema)
957
+ ]).optional().nullable(),
958
+ _count: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
959
+ _min: z.lazy(()=>NestedDateTimeNullableFilterSchema).optional(),
960
+ _max: z.lazy(()=>NestedDateTimeNullableFilterSchema).optional()
961
+ });
962
+ export const StringNullableWithAggregatesFilterSchema = z.strictObject({
963
+ equals: z.string().optional().nullable(),
964
+ in: z.string().array().optional().nullable(),
965
+ notIn: z.string().array().optional().nullable(),
966
+ lt: z.string().optional(),
967
+ lte: z.string().optional(),
968
+ gt: z.string().optional(),
969
+ gte: z.string().optional(),
970
+ contains: z.string().optional(),
971
+ startsWith: z.string().optional(),
972
+ endsWith: z.string().optional(),
973
+ mode: z.lazy(()=>QueryModeSchema).optional(),
974
+ not: z.union([
975
+ z.string(),
976
+ z.lazy(()=>NestedStringNullableWithAggregatesFilterSchema)
977
+ ]).optional().nullable(),
978
+ _count: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
979
+ _min: z.lazy(()=>NestedStringNullableFilterSchema).optional(),
980
+ _max: z.lazy(()=>NestedStringNullableFilterSchema).optional()
981
+ });
982
+ export const IntNullableWithAggregatesFilterSchema = z.strictObject({
983
+ equals: z.number().optional().nullable(),
984
+ in: z.number().array().optional().nullable(),
985
+ notIn: z.number().array().optional().nullable(),
986
+ lt: z.number().optional(),
987
+ lte: z.number().optional(),
988
+ gt: z.number().optional(),
989
+ gte: z.number().optional(),
990
+ not: z.union([
991
+ z.number(),
992
+ z.lazy(()=>NestedIntNullableWithAggregatesFilterSchema)
993
+ ]).optional().nullable(),
994
+ _count: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
995
+ _avg: z.lazy(()=>NestedFloatNullableFilterSchema).optional(),
996
+ _sum: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
997
+ _min: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
998
+ _max: z.lazy(()=>NestedIntNullableFilterSchema).optional()
999
+ });
1000
+ export const ProductCreateNestedOneWithoutVariantsInputSchema = z.strictObject({
1001
+ create: z.union([
1002
+ z.lazy(()=>ProductCreateWithoutVariantsInputSchema),
1003
+ z.lazy(()=>ProductUncheckedCreateWithoutVariantsInputSchema)
1004
+ ]).optional(),
1005
+ connectOrCreate: z.lazy(()=>ProductCreateOrConnectWithoutVariantsInputSchema).optional(),
1006
+ connect: z.lazy(()=>ProductWhereUniqueInputSchema).optional()
1007
+ });
1008
+ export const ProductCreateNestedManyWithoutProductInputSchema = z.strictObject({
1009
+ create: z.union([
1010
+ z.lazy(()=>ProductCreateWithoutProductInputSchema),
1011
+ z.lazy(()=>ProductCreateWithoutProductInputSchema).array(),
1012
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema),
1013
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema).array()
1014
+ ]).optional(),
1015
+ connectOrCreate: z.union([
1016
+ z.lazy(()=>ProductCreateOrConnectWithoutProductInputSchema),
1017
+ z.lazy(()=>ProductCreateOrConnectWithoutProductInputSchema).array()
1018
+ ]).optional(),
1019
+ createMany: z.lazy(()=>ProductCreateManyProductInputEnvelopeSchema).optional(),
1020
+ connect: z.union([
1021
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1022
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1023
+ ]).optional()
1024
+ });
1025
+ export const ProductUncheckedCreateNestedManyWithoutProductInputSchema = z.strictObject({
1026
+ create: z.union([
1027
+ z.lazy(()=>ProductCreateWithoutProductInputSchema),
1028
+ z.lazy(()=>ProductCreateWithoutProductInputSchema).array(),
1029
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema),
1030
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema).array()
1031
+ ]).optional(),
1032
+ connectOrCreate: z.union([
1033
+ z.lazy(()=>ProductCreateOrConnectWithoutProductInputSchema),
1034
+ z.lazy(()=>ProductCreateOrConnectWithoutProductInputSchema).array()
1035
+ ]).optional(),
1036
+ createMany: z.lazy(()=>ProductCreateManyProductInputEnvelopeSchema).optional(),
1037
+ connect: z.union([
1038
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1039
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1040
+ ]).optional()
1041
+ });
1042
+ export const StringFieldUpdateOperationsInputSchema = z.strictObject({
1043
+ set: z.string().optional()
1044
+ });
1045
+ export const DateTimeFieldUpdateOperationsInputSchema = z.strictObject({
1046
+ set: z.coerce.date().optional()
1047
+ });
1048
+ export const NullableDateTimeFieldUpdateOperationsInputSchema = z.strictObject({
1049
+ set: z.coerce.date().optional().nullable()
1050
+ });
1051
+ export const NullableStringFieldUpdateOperationsInputSchema = z.strictObject({
1052
+ set: z.string().optional().nullable()
1053
+ });
1054
+ export const ProductUpdateOneWithoutVariantsNestedInputSchema = z.strictObject({
1055
+ create: z.union([
1056
+ z.lazy(()=>ProductCreateWithoutVariantsInputSchema),
1057
+ z.lazy(()=>ProductUncheckedCreateWithoutVariantsInputSchema)
1058
+ ]).optional(),
1059
+ connectOrCreate: z.lazy(()=>ProductCreateOrConnectWithoutVariantsInputSchema).optional(),
1060
+ upsert: z.lazy(()=>ProductUpsertWithoutVariantsInputSchema).optional(),
1061
+ disconnect: z.union([
1062
+ z.boolean(),
1063
+ z.lazy(()=>ProductWhereInputSchema)
1064
+ ]).optional(),
1065
+ delete: z.union([
1066
+ z.boolean(),
1067
+ z.lazy(()=>ProductWhereInputSchema)
1068
+ ]).optional(),
1069
+ connect: z.lazy(()=>ProductWhereUniqueInputSchema).optional(),
1070
+ update: z.union([
1071
+ z.lazy(()=>ProductUpdateToOneWithWhereWithoutVariantsInputSchema),
1072
+ z.lazy(()=>ProductUpdateWithoutVariantsInputSchema),
1073
+ z.lazy(()=>ProductUncheckedUpdateWithoutVariantsInputSchema)
1074
+ ]).optional()
1075
+ });
1076
+ export const ProductUpdateManyWithoutProductNestedInputSchema = z.strictObject({
1077
+ create: z.union([
1078
+ z.lazy(()=>ProductCreateWithoutProductInputSchema),
1079
+ z.lazy(()=>ProductCreateWithoutProductInputSchema).array(),
1080
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema),
1081
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema).array()
1082
+ ]).optional(),
1083
+ connectOrCreate: z.union([
1084
+ z.lazy(()=>ProductCreateOrConnectWithoutProductInputSchema),
1085
+ z.lazy(()=>ProductCreateOrConnectWithoutProductInputSchema).array()
1086
+ ]).optional(),
1087
+ upsert: z.union([
1088
+ z.lazy(()=>ProductUpsertWithWhereUniqueWithoutProductInputSchema),
1089
+ z.lazy(()=>ProductUpsertWithWhereUniqueWithoutProductInputSchema).array()
1090
+ ]).optional(),
1091
+ createMany: z.lazy(()=>ProductCreateManyProductInputEnvelopeSchema).optional(),
1092
+ set: z.union([
1093
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1094
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1095
+ ]).optional(),
1096
+ disconnect: z.union([
1097
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1098
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1099
+ ]).optional(),
1100
+ delete: z.union([
1101
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1102
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1103
+ ]).optional(),
1104
+ connect: z.union([
1105
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1106
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1107
+ ]).optional(),
1108
+ update: z.union([
1109
+ z.lazy(()=>ProductUpdateWithWhereUniqueWithoutProductInputSchema),
1110
+ z.lazy(()=>ProductUpdateWithWhereUniqueWithoutProductInputSchema).array()
1111
+ ]).optional(),
1112
+ updateMany: z.union([
1113
+ z.lazy(()=>ProductUpdateManyWithWhereWithoutProductInputSchema),
1114
+ z.lazy(()=>ProductUpdateManyWithWhereWithoutProductInputSchema).array()
1115
+ ]).optional(),
1116
+ deleteMany: z.union([
1117
+ z.lazy(()=>ProductScalarWhereInputSchema),
1118
+ z.lazy(()=>ProductScalarWhereInputSchema).array()
1119
+ ]).optional()
1120
+ });
1121
+ export const IntFieldUpdateOperationsInputSchema = z.strictObject({
1122
+ set: z.number().optional(),
1123
+ increment: z.number().optional(),
1124
+ decrement: z.number().optional(),
1125
+ multiply: z.number().optional(),
1126
+ divide: z.number().optional()
1127
+ });
1128
+ export const NullableIntFieldUpdateOperationsInputSchema = z.strictObject({
1129
+ set: z.number().optional().nullable(),
1130
+ increment: z.number().optional(),
1131
+ decrement: z.number().optional(),
1132
+ multiply: z.number().optional(),
1133
+ divide: z.number().optional()
1134
+ });
1135
+ export const ProductUncheckedUpdateManyWithoutProductNestedInputSchema = z.strictObject({
1136
+ create: z.union([
1137
+ z.lazy(()=>ProductCreateWithoutProductInputSchema),
1138
+ z.lazy(()=>ProductCreateWithoutProductInputSchema).array(),
1139
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema),
1140
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema).array()
1141
+ ]).optional(),
1142
+ connectOrCreate: z.union([
1143
+ z.lazy(()=>ProductCreateOrConnectWithoutProductInputSchema),
1144
+ z.lazy(()=>ProductCreateOrConnectWithoutProductInputSchema).array()
1145
+ ]).optional(),
1146
+ upsert: z.union([
1147
+ z.lazy(()=>ProductUpsertWithWhereUniqueWithoutProductInputSchema),
1148
+ z.lazy(()=>ProductUpsertWithWhereUniqueWithoutProductInputSchema).array()
1149
+ ]).optional(),
1150
+ createMany: z.lazy(()=>ProductCreateManyProductInputEnvelopeSchema).optional(),
1151
+ set: z.union([
1152
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1153
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1154
+ ]).optional(),
1155
+ disconnect: z.union([
1156
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1157
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1158
+ ]).optional(),
1159
+ delete: z.union([
1160
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1161
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1162
+ ]).optional(),
1163
+ connect: z.union([
1164
+ z.lazy(()=>ProductWhereUniqueInputSchema),
1165
+ z.lazy(()=>ProductWhereUniqueInputSchema).array()
1166
+ ]).optional(),
1167
+ update: z.union([
1168
+ z.lazy(()=>ProductUpdateWithWhereUniqueWithoutProductInputSchema),
1169
+ z.lazy(()=>ProductUpdateWithWhereUniqueWithoutProductInputSchema).array()
1170
+ ]).optional(),
1171
+ updateMany: z.union([
1172
+ z.lazy(()=>ProductUpdateManyWithWhereWithoutProductInputSchema),
1173
+ z.lazy(()=>ProductUpdateManyWithWhereWithoutProductInputSchema).array()
1174
+ ]).optional(),
1175
+ deleteMany: z.union([
1176
+ z.lazy(()=>ProductScalarWhereInputSchema),
1177
+ z.lazy(()=>ProductScalarWhereInputSchema).array()
1178
+ ]).optional()
1179
+ });
1180
+ export const NestedIntFilterSchema = z.strictObject({
1181
+ equals: z.number().optional(),
1182
+ in: z.number().array().optional(),
1183
+ notIn: z.number().array().optional(),
1184
+ lt: z.number().optional(),
1185
+ lte: z.number().optional(),
1186
+ gt: z.number().optional(),
1187
+ gte: z.number().optional(),
1188
+ not: z.union([
1189
+ z.number(),
1190
+ z.lazy(()=>NestedIntFilterSchema)
1191
+ ]).optional()
1192
+ });
1193
+ export const NestedStringFilterSchema = z.strictObject({
1194
+ equals: z.string().optional(),
1195
+ in: z.string().array().optional(),
1196
+ notIn: z.string().array().optional(),
1197
+ lt: z.string().optional(),
1198
+ lte: z.string().optional(),
1199
+ gt: z.string().optional(),
1200
+ gte: z.string().optional(),
1201
+ contains: z.string().optional(),
1202
+ startsWith: z.string().optional(),
1203
+ endsWith: z.string().optional(),
1204
+ not: z.union([
1205
+ z.string(),
1206
+ z.lazy(()=>NestedStringFilterSchema)
1207
+ ]).optional()
1208
+ });
1209
+ export const NestedDateTimeFilterSchema = z.strictObject({
1210
+ equals: z.coerce.date().optional(),
1211
+ in: z.coerce.date().array().optional(),
1212
+ notIn: z.coerce.date().array().optional(),
1213
+ lt: z.coerce.date().optional(),
1214
+ lte: z.coerce.date().optional(),
1215
+ gt: z.coerce.date().optional(),
1216
+ gte: z.coerce.date().optional(),
1217
+ not: z.union([
1218
+ z.coerce.date(),
1219
+ z.lazy(()=>NestedDateTimeFilterSchema)
1220
+ ]).optional()
1221
+ });
1222
+ export const NestedDateTimeNullableFilterSchema = z.strictObject({
1223
+ equals: z.coerce.date().optional().nullable(),
1224
+ in: z.coerce.date().array().optional().nullable(),
1225
+ notIn: z.coerce.date().array().optional().nullable(),
1226
+ lt: z.coerce.date().optional(),
1227
+ lte: z.coerce.date().optional(),
1228
+ gt: z.coerce.date().optional(),
1229
+ gte: z.coerce.date().optional(),
1230
+ not: z.union([
1231
+ z.coerce.date(),
1232
+ z.lazy(()=>NestedDateTimeNullableFilterSchema)
1233
+ ]).optional().nullable()
1234
+ });
1235
+ export const NestedStringNullableFilterSchema = z.strictObject({
1236
+ equals: z.string().optional().nullable(),
1237
+ in: z.string().array().optional().nullable(),
1238
+ notIn: z.string().array().optional().nullable(),
1239
+ lt: z.string().optional(),
1240
+ lte: z.string().optional(),
1241
+ gt: z.string().optional(),
1242
+ gte: z.string().optional(),
1243
+ contains: z.string().optional(),
1244
+ startsWith: z.string().optional(),
1245
+ endsWith: z.string().optional(),
1246
+ not: z.union([
1247
+ z.string(),
1248
+ z.lazy(()=>NestedStringNullableFilterSchema)
1249
+ ]).optional().nullable()
1250
+ });
1251
+ export const NestedIntNullableFilterSchema = z.strictObject({
1252
+ equals: z.number().optional().nullable(),
1253
+ in: z.number().array().optional().nullable(),
1254
+ notIn: z.number().array().optional().nullable(),
1255
+ lt: z.number().optional(),
1256
+ lte: z.number().optional(),
1257
+ gt: z.number().optional(),
1258
+ gte: z.number().optional(),
1259
+ not: z.union([
1260
+ z.number(),
1261
+ z.lazy(()=>NestedIntNullableFilterSchema)
1262
+ ]).optional().nullable()
1263
+ });
1264
+ export const NestedIntWithAggregatesFilterSchema = z.strictObject({
1265
+ equals: z.number().optional(),
1266
+ in: z.number().array().optional(),
1267
+ notIn: z.number().array().optional(),
1268
+ lt: z.number().optional(),
1269
+ lte: z.number().optional(),
1270
+ gt: z.number().optional(),
1271
+ gte: z.number().optional(),
1272
+ not: z.union([
1273
+ z.number(),
1274
+ z.lazy(()=>NestedIntWithAggregatesFilterSchema)
1275
+ ]).optional(),
1276
+ _count: z.lazy(()=>NestedIntFilterSchema).optional(),
1277
+ _avg: z.lazy(()=>NestedFloatFilterSchema).optional(),
1278
+ _sum: z.lazy(()=>NestedIntFilterSchema).optional(),
1279
+ _min: z.lazy(()=>NestedIntFilterSchema).optional(),
1280
+ _max: z.lazy(()=>NestedIntFilterSchema).optional()
1281
+ });
1282
+ export const NestedFloatFilterSchema = z.strictObject({
1283
+ equals: z.number().optional(),
1284
+ in: z.number().array().optional(),
1285
+ notIn: z.number().array().optional(),
1286
+ lt: z.number().optional(),
1287
+ lte: z.number().optional(),
1288
+ gt: z.number().optional(),
1289
+ gte: z.number().optional(),
1290
+ not: z.union([
1291
+ z.number(),
1292
+ z.lazy(()=>NestedFloatFilterSchema)
1293
+ ]).optional()
1294
+ });
1295
+ export const NestedStringWithAggregatesFilterSchema = z.strictObject({
1296
+ equals: z.string().optional(),
1297
+ in: z.string().array().optional(),
1298
+ notIn: z.string().array().optional(),
1299
+ lt: z.string().optional(),
1300
+ lte: z.string().optional(),
1301
+ gt: z.string().optional(),
1302
+ gte: z.string().optional(),
1303
+ contains: z.string().optional(),
1304
+ startsWith: z.string().optional(),
1305
+ endsWith: z.string().optional(),
1306
+ not: z.union([
1307
+ z.string(),
1308
+ z.lazy(()=>NestedStringWithAggregatesFilterSchema)
1309
+ ]).optional(),
1310
+ _count: z.lazy(()=>NestedIntFilterSchema).optional(),
1311
+ _min: z.lazy(()=>NestedStringFilterSchema).optional(),
1312
+ _max: z.lazy(()=>NestedStringFilterSchema).optional()
1313
+ });
1314
+ export const NestedDateTimeWithAggregatesFilterSchema = z.strictObject({
1315
+ equals: z.coerce.date().optional(),
1316
+ in: z.coerce.date().array().optional(),
1317
+ notIn: z.coerce.date().array().optional(),
1318
+ lt: z.coerce.date().optional(),
1319
+ lte: z.coerce.date().optional(),
1320
+ gt: z.coerce.date().optional(),
1321
+ gte: z.coerce.date().optional(),
1322
+ not: z.union([
1323
+ z.coerce.date(),
1324
+ z.lazy(()=>NestedDateTimeWithAggregatesFilterSchema)
1325
+ ]).optional(),
1326
+ _count: z.lazy(()=>NestedIntFilterSchema).optional(),
1327
+ _min: z.lazy(()=>NestedDateTimeFilterSchema).optional(),
1328
+ _max: z.lazy(()=>NestedDateTimeFilterSchema).optional()
1329
+ });
1330
+ export const NestedDateTimeNullableWithAggregatesFilterSchema = z.strictObject({
1331
+ equals: z.coerce.date().optional().nullable(),
1332
+ in: z.coerce.date().array().optional().nullable(),
1333
+ notIn: z.coerce.date().array().optional().nullable(),
1334
+ lt: z.coerce.date().optional(),
1335
+ lte: z.coerce.date().optional(),
1336
+ gt: z.coerce.date().optional(),
1337
+ gte: z.coerce.date().optional(),
1338
+ not: z.union([
1339
+ z.coerce.date(),
1340
+ z.lazy(()=>NestedDateTimeNullableWithAggregatesFilterSchema)
1341
+ ]).optional().nullable(),
1342
+ _count: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
1343
+ _min: z.lazy(()=>NestedDateTimeNullableFilterSchema).optional(),
1344
+ _max: z.lazy(()=>NestedDateTimeNullableFilterSchema).optional()
1345
+ });
1346
+ export const NestedStringNullableWithAggregatesFilterSchema = z.strictObject({
1347
+ equals: z.string().optional().nullable(),
1348
+ in: z.string().array().optional().nullable(),
1349
+ notIn: z.string().array().optional().nullable(),
1350
+ lt: z.string().optional(),
1351
+ lte: z.string().optional(),
1352
+ gt: z.string().optional(),
1353
+ gte: z.string().optional(),
1354
+ contains: z.string().optional(),
1355
+ startsWith: z.string().optional(),
1356
+ endsWith: z.string().optional(),
1357
+ not: z.union([
1358
+ z.string(),
1359
+ z.lazy(()=>NestedStringNullableWithAggregatesFilterSchema)
1360
+ ]).optional().nullable(),
1361
+ _count: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
1362
+ _min: z.lazy(()=>NestedStringNullableFilterSchema).optional(),
1363
+ _max: z.lazy(()=>NestedStringNullableFilterSchema).optional()
1364
+ });
1365
+ export const NestedIntNullableWithAggregatesFilterSchema = z.strictObject({
1366
+ equals: z.number().optional().nullable(),
1367
+ in: z.number().array().optional().nullable(),
1368
+ notIn: z.number().array().optional().nullable(),
1369
+ lt: z.number().optional(),
1370
+ lte: z.number().optional(),
1371
+ gt: z.number().optional(),
1372
+ gte: z.number().optional(),
1373
+ not: z.union([
1374
+ z.number(),
1375
+ z.lazy(()=>NestedIntNullableWithAggregatesFilterSchema)
1376
+ ]).optional().nullable(),
1377
+ _count: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
1378
+ _avg: z.lazy(()=>NestedFloatNullableFilterSchema).optional(),
1379
+ _sum: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
1380
+ _min: z.lazy(()=>NestedIntNullableFilterSchema).optional(),
1381
+ _max: z.lazy(()=>NestedIntNullableFilterSchema).optional()
1382
+ });
1383
+ export const NestedFloatNullableFilterSchema = z.strictObject({
1384
+ equals: z.number().optional().nullable(),
1385
+ in: z.number().array().optional().nullable(),
1386
+ notIn: z.number().array().optional().nullable(),
1387
+ lt: z.number().optional(),
1388
+ lte: z.number().optional(),
1389
+ gt: z.number().optional(),
1390
+ gte: z.number().optional(),
1391
+ not: z.union([
1392
+ z.number(),
1393
+ z.lazy(()=>NestedFloatNullableFilterSchema)
1394
+ ]).optional().nullable()
1395
+ });
1396
+ export const ProductCreateWithoutVariantsInputSchema = z.strictObject({
1397
+ uuid: z.uuid().optional(),
1398
+ createdAt: z.coerce.date().optional(),
1399
+ updatedAt: z.coerce.date().optional(),
1400
+ deletedAt: z.coerce.date().optional().nullable(),
1401
+ name: z.string(),
1402
+ description: z.string().optional().nullable(),
1403
+ upc: z.string().optional().nullable(),
1404
+ sku: z.string().optional().nullable(),
1405
+ categoryId: z.string().optional().nullable(),
1406
+ documentId: z.string().optional().nullable(),
1407
+ product: z.lazy(()=>ProductCreateNestedOneWithoutVariantsInputSchema).optional()
1408
+ });
1409
+ export const ProductUncheckedCreateWithoutVariantsInputSchema = z.strictObject({
1410
+ id: z.number().int().optional(),
1411
+ uuid: z.uuid().optional(),
1412
+ createdAt: z.coerce.date().optional(),
1413
+ updatedAt: z.coerce.date().optional(),
1414
+ deletedAt: z.coerce.date().optional().nullable(),
1415
+ name: z.string(),
1416
+ description: z.string().optional().nullable(),
1417
+ upc: z.string().optional().nullable(),
1418
+ sku: z.string().optional().nullable(),
1419
+ categoryId: z.string().optional().nullable(),
1420
+ documentId: z.string().optional().nullable(),
1421
+ parentId: z.number().int().optional().nullable()
1422
+ });
1423
+ export const ProductCreateOrConnectWithoutVariantsInputSchema = z.strictObject({
1424
+ where: z.lazy(()=>ProductWhereUniqueInputSchema),
1425
+ create: z.union([
1426
+ z.lazy(()=>ProductCreateWithoutVariantsInputSchema),
1427
+ z.lazy(()=>ProductUncheckedCreateWithoutVariantsInputSchema)
1428
+ ])
1429
+ });
1430
+ export const ProductCreateWithoutProductInputSchema = z.strictObject({
1431
+ uuid: z.uuid().optional(),
1432
+ createdAt: z.coerce.date().optional(),
1433
+ updatedAt: z.coerce.date().optional(),
1434
+ deletedAt: z.coerce.date().optional().nullable(),
1435
+ name: z.string(),
1436
+ description: z.string().optional().nullable(),
1437
+ upc: z.string().optional().nullable(),
1438
+ sku: z.string().optional().nullable(),
1439
+ categoryId: z.string().optional().nullable(),
1440
+ documentId: z.string().optional().nullable(),
1441
+ variants: z.lazy(()=>ProductCreateNestedManyWithoutProductInputSchema).optional()
1442
+ });
1443
+ export const ProductUncheckedCreateWithoutProductInputSchema = z.strictObject({
1444
+ id: z.number().int().optional(),
1445
+ uuid: z.uuid().optional(),
1446
+ createdAt: z.coerce.date().optional(),
1447
+ updatedAt: z.coerce.date().optional(),
1448
+ deletedAt: z.coerce.date().optional().nullable(),
1449
+ name: z.string(),
1450
+ description: z.string().optional().nullable(),
1451
+ upc: z.string().optional().nullable(),
1452
+ sku: z.string().optional().nullable(),
1453
+ categoryId: z.string().optional().nullable(),
1454
+ documentId: z.string().optional().nullable(),
1455
+ variants: z.lazy(()=>ProductUncheckedCreateNestedManyWithoutProductInputSchema).optional()
1456
+ });
1457
+ export const ProductCreateOrConnectWithoutProductInputSchema = z.strictObject({
1458
+ where: z.lazy(()=>ProductWhereUniqueInputSchema),
1459
+ create: z.union([
1460
+ z.lazy(()=>ProductCreateWithoutProductInputSchema),
1461
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema)
1462
+ ])
1463
+ });
1464
+ export const ProductCreateManyProductInputEnvelopeSchema = z.strictObject({
1465
+ data: z.union([
1466
+ z.lazy(()=>ProductCreateManyProductInputSchema),
1467
+ z.lazy(()=>ProductCreateManyProductInputSchema).array()
1468
+ ]),
1469
+ skipDuplicates: z.boolean().optional()
1470
+ });
1471
+ export const ProductUpsertWithoutVariantsInputSchema = z.strictObject({
1472
+ update: z.union([
1473
+ z.lazy(()=>ProductUpdateWithoutVariantsInputSchema),
1474
+ z.lazy(()=>ProductUncheckedUpdateWithoutVariantsInputSchema)
1475
+ ]),
1476
+ create: z.union([
1477
+ z.lazy(()=>ProductCreateWithoutVariantsInputSchema),
1478
+ z.lazy(()=>ProductUncheckedCreateWithoutVariantsInputSchema)
1479
+ ]),
1480
+ where: z.lazy(()=>ProductWhereInputSchema).optional()
1481
+ });
1482
+ export const ProductUpdateToOneWithWhereWithoutVariantsInputSchema = z.strictObject({
1483
+ where: z.lazy(()=>ProductWhereInputSchema).optional(),
1484
+ data: z.union([
1485
+ z.lazy(()=>ProductUpdateWithoutVariantsInputSchema),
1486
+ z.lazy(()=>ProductUncheckedUpdateWithoutVariantsInputSchema)
1487
+ ])
1488
+ });
1489
+ export const ProductUpdateWithoutVariantsInputSchema = z.strictObject({
1490
+ uuid: z.union([
1491
+ z.uuid(),
1492
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1493
+ ]).optional(),
1494
+ createdAt: z.union([
1495
+ z.coerce.date(),
1496
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1497
+ ]).optional(),
1498
+ updatedAt: z.union([
1499
+ z.coerce.date(),
1500
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1501
+ ]).optional(),
1502
+ deletedAt: z.union([
1503
+ z.coerce.date(),
1504
+ z.lazy(()=>NullableDateTimeFieldUpdateOperationsInputSchema)
1505
+ ]).optional().nullable(),
1506
+ name: z.union([
1507
+ z.string(),
1508
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1509
+ ]).optional(),
1510
+ description: z.union([
1511
+ z.string(),
1512
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1513
+ ]).optional().nullable(),
1514
+ upc: z.union([
1515
+ z.string(),
1516
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1517
+ ]).optional().nullable(),
1518
+ sku: z.union([
1519
+ z.string(),
1520
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1521
+ ]).optional().nullable(),
1522
+ categoryId: z.union([
1523
+ z.string(),
1524
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1525
+ ]).optional().nullable(),
1526
+ documentId: z.union([
1527
+ z.string(),
1528
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1529
+ ]).optional().nullable(),
1530
+ product: z.lazy(()=>ProductUpdateOneWithoutVariantsNestedInputSchema).optional()
1531
+ });
1532
+ export const ProductUncheckedUpdateWithoutVariantsInputSchema = z.strictObject({
1533
+ id: z.union([
1534
+ z.number().int(),
1535
+ z.lazy(()=>IntFieldUpdateOperationsInputSchema)
1536
+ ]).optional(),
1537
+ uuid: z.union([
1538
+ z.uuid(),
1539
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1540
+ ]).optional(),
1541
+ createdAt: z.union([
1542
+ z.coerce.date(),
1543
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1544
+ ]).optional(),
1545
+ updatedAt: z.union([
1546
+ z.coerce.date(),
1547
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1548
+ ]).optional(),
1549
+ deletedAt: z.union([
1550
+ z.coerce.date(),
1551
+ z.lazy(()=>NullableDateTimeFieldUpdateOperationsInputSchema)
1552
+ ]).optional().nullable(),
1553
+ name: z.union([
1554
+ z.string(),
1555
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1556
+ ]).optional(),
1557
+ description: z.union([
1558
+ z.string(),
1559
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1560
+ ]).optional().nullable(),
1561
+ upc: z.union([
1562
+ z.string(),
1563
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1564
+ ]).optional().nullable(),
1565
+ sku: z.union([
1566
+ z.string(),
1567
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1568
+ ]).optional().nullable(),
1569
+ categoryId: z.union([
1570
+ z.string(),
1571
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1572
+ ]).optional().nullable(),
1573
+ documentId: z.union([
1574
+ z.string(),
1575
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1576
+ ]).optional().nullable(),
1577
+ parentId: z.union([
1578
+ z.number().int(),
1579
+ z.lazy(()=>NullableIntFieldUpdateOperationsInputSchema)
1580
+ ]).optional().nullable()
1581
+ });
1582
+ export const ProductUpsertWithWhereUniqueWithoutProductInputSchema = z.strictObject({
1583
+ where: z.lazy(()=>ProductWhereUniqueInputSchema),
1584
+ update: z.union([
1585
+ z.lazy(()=>ProductUpdateWithoutProductInputSchema),
1586
+ z.lazy(()=>ProductUncheckedUpdateWithoutProductInputSchema)
1587
+ ]),
1588
+ create: z.union([
1589
+ z.lazy(()=>ProductCreateWithoutProductInputSchema),
1590
+ z.lazy(()=>ProductUncheckedCreateWithoutProductInputSchema)
1591
+ ])
1592
+ });
1593
+ export const ProductUpdateWithWhereUniqueWithoutProductInputSchema = z.strictObject({
1594
+ where: z.lazy(()=>ProductWhereUniqueInputSchema),
1595
+ data: z.union([
1596
+ z.lazy(()=>ProductUpdateWithoutProductInputSchema),
1597
+ z.lazy(()=>ProductUncheckedUpdateWithoutProductInputSchema)
1598
+ ])
1599
+ });
1600
+ export const ProductUpdateManyWithWhereWithoutProductInputSchema = z.strictObject({
1601
+ where: z.lazy(()=>ProductScalarWhereInputSchema),
1602
+ data: z.union([
1603
+ z.lazy(()=>ProductUpdateManyMutationInputSchema),
1604
+ z.lazy(()=>ProductUncheckedUpdateManyWithoutProductInputSchema)
1605
+ ])
1606
+ });
1607
+ export const ProductScalarWhereInputSchema = z.strictObject({
1608
+ AND: z.union([
1609
+ z.lazy(()=>ProductScalarWhereInputSchema),
1610
+ z.lazy(()=>ProductScalarWhereInputSchema).array()
1611
+ ]).optional(),
1612
+ OR: z.lazy(()=>ProductScalarWhereInputSchema).array().optional(),
1613
+ NOT: z.union([
1614
+ z.lazy(()=>ProductScalarWhereInputSchema),
1615
+ z.lazy(()=>ProductScalarWhereInputSchema).array()
1616
+ ]).optional(),
1617
+ id: z.union([
1618
+ z.lazy(()=>IntFilterSchema),
1619
+ z.number()
1620
+ ]).optional(),
1621
+ uuid: z.union([
1622
+ z.lazy(()=>StringFilterSchema),
1623
+ z.string()
1624
+ ]).optional(),
1625
+ createdAt: z.union([
1626
+ z.lazy(()=>DateTimeFilterSchema),
1627
+ z.coerce.date()
1628
+ ]).optional(),
1629
+ updatedAt: z.union([
1630
+ z.lazy(()=>DateTimeFilterSchema),
1631
+ z.coerce.date()
1632
+ ]).optional(),
1633
+ deletedAt: z.union([
1634
+ z.lazy(()=>DateTimeNullableFilterSchema),
1635
+ z.coerce.date()
1636
+ ]).optional().nullable(),
1637
+ name: z.union([
1638
+ z.lazy(()=>StringFilterSchema),
1639
+ z.string()
1640
+ ]).optional(),
1641
+ description: z.union([
1642
+ z.lazy(()=>StringNullableFilterSchema),
1643
+ z.string()
1644
+ ]).optional().nullable(),
1645
+ upc: z.union([
1646
+ z.lazy(()=>StringNullableFilterSchema),
1647
+ z.string()
1648
+ ]).optional().nullable(),
1649
+ sku: z.union([
1650
+ z.lazy(()=>StringNullableFilterSchema),
1651
+ z.string()
1652
+ ]).optional().nullable(),
1653
+ categoryId: z.union([
1654
+ z.lazy(()=>StringNullableFilterSchema),
1655
+ z.string()
1656
+ ]).optional().nullable(),
1657
+ documentId: z.union([
1658
+ z.lazy(()=>StringNullableFilterSchema),
1659
+ z.string()
1660
+ ]).optional().nullable(),
1661
+ parentId: z.union([
1662
+ z.lazy(()=>IntNullableFilterSchema),
1663
+ z.number()
1664
+ ]).optional().nullable()
1665
+ });
1666
+ export const ProductCreateManyProductInputSchema = z.strictObject({
1667
+ id: z.number().int().optional(),
1668
+ uuid: z.uuid().optional(),
1669
+ createdAt: z.coerce.date().optional(),
1670
+ updatedAt: z.coerce.date().optional(),
1671
+ deletedAt: z.coerce.date().optional().nullable(),
1672
+ name: z.string(),
1673
+ description: z.string().optional().nullable(),
1674
+ upc: z.string().optional().nullable(),
1675
+ sku: z.string().optional().nullable(),
1676
+ categoryId: z.string().optional().nullable(),
1677
+ documentId: z.string().optional().nullable()
1678
+ });
1679
+ export const ProductUpdateWithoutProductInputSchema = z.strictObject({
1680
+ uuid: z.union([
1681
+ z.uuid(),
1682
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1683
+ ]).optional(),
1684
+ createdAt: z.union([
1685
+ z.coerce.date(),
1686
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1687
+ ]).optional(),
1688
+ updatedAt: z.union([
1689
+ z.coerce.date(),
1690
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1691
+ ]).optional(),
1692
+ deletedAt: z.union([
1693
+ z.coerce.date(),
1694
+ z.lazy(()=>NullableDateTimeFieldUpdateOperationsInputSchema)
1695
+ ]).optional().nullable(),
1696
+ name: z.union([
1697
+ z.string(),
1698
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1699
+ ]).optional(),
1700
+ description: z.union([
1701
+ z.string(),
1702
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1703
+ ]).optional().nullable(),
1704
+ upc: z.union([
1705
+ z.string(),
1706
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1707
+ ]).optional().nullable(),
1708
+ sku: z.union([
1709
+ z.string(),
1710
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1711
+ ]).optional().nullable(),
1712
+ categoryId: z.union([
1713
+ z.string(),
1714
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1715
+ ]).optional().nullable(),
1716
+ documentId: z.union([
1717
+ z.string(),
1718
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1719
+ ]).optional().nullable(),
1720
+ variants: z.lazy(()=>ProductUpdateManyWithoutProductNestedInputSchema).optional()
1721
+ });
1722
+ export const ProductUncheckedUpdateWithoutProductInputSchema = z.strictObject({
1723
+ id: z.union([
1724
+ z.number().int(),
1725
+ z.lazy(()=>IntFieldUpdateOperationsInputSchema)
1726
+ ]).optional(),
1727
+ uuid: z.union([
1728
+ z.uuid(),
1729
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1730
+ ]).optional(),
1731
+ createdAt: z.union([
1732
+ z.coerce.date(),
1733
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1734
+ ]).optional(),
1735
+ updatedAt: z.union([
1736
+ z.coerce.date(),
1737
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1738
+ ]).optional(),
1739
+ deletedAt: z.union([
1740
+ z.coerce.date(),
1741
+ z.lazy(()=>NullableDateTimeFieldUpdateOperationsInputSchema)
1742
+ ]).optional().nullable(),
1743
+ name: z.union([
1744
+ z.string(),
1745
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1746
+ ]).optional(),
1747
+ description: z.union([
1748
+ z.string(),
1749
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1750
+ ]).optional().nullable(),
1751
+ upc: z.union([
1752
+ z.string(),
1753
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1754
+ ]).optional().nullable(),
1755
+ sku: z.union([
1756
+ z.string(),
1757
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1758
+ ]).optional().nullable(),
1759
+ categoryId: z.union([
1760
+ z.string(),
1761
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1762
+ ]).optional().nullable(),
1763
+ documentId: z.union([
1764
+ z.string(),
1765
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1766
+ ]).optional().nullable(),
1767
+ variants: z.lazy(()=>ProductUncheckedUpdateManyWithoutProductNestedInputSchema).optional()
1768
+ });
1769
+ export const ProductUncheckedUpdateManyWithoutProductInputSchema = z.strictObject({
1770
+ id: z.union([
1771
+ z.number().int(),
1772
+ z.lazy(()=>IntFieldUpdateOperationsInputSchema)
1773
+ ]).optional(),
1774
+ uuid: z.union([
1775
+ z.uuid(),
1776
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1777
+ ]).optional(),
1778
+ createdAt: z.union([
1779
+ z.coerce.date(),
1780
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1781
+ ]).optional(),
1782
+ updatedAt: z.union([
1783
+ z.coerce.date(),
1784
+ z.lazy(()=>DateTimeFieldUpdateOperationsInputSchema)
1785
+ ]).optional(),
1786
+ deletedAt: z.union([
1787
+ z.coerce.date(),
1788
+ z.lazy(()=>NullableDateTimeFieldUpdateOperationsInputSchema)
1789
+ ]).optional().nullable(),
1790
+ name: z.union([
1791
+ z.string(),
1792
+ z.lazy(()=>StringFieldUpdateOperationsInputSchema)
1793
+ ]).optional(),
1794
+ description: z.union([
1795
+ z.string(),
1796
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1797
+ ]).optional().nullable(),
1798
+ upc: z.union([
1799
+ z.string(),
1800
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1801
+ ]).optional().nullable(),
1802
+ sku: z.union([
1803
+ z.string(),
1804
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1805
+ ]).optional().nullable(),
1806
+ categoryId: z.union([
1807
+ z.string(),
1808
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1809
+ ]).optional().nullable(),
1810
+ documentId: z.union([
1811
+ z.string(),
1812
+ z.lazy(()=>NullableStringFieldUpdateOperationsInputSchema)
1813
+ ]).optional().nullable()
1814
+ });
1815
+ /////////////////////////////////////////
1816
+ // ARGS
1817
+ /////////////////////////////////////////
1818
+ export const ProductFindFirstArgsSchema = z.object({
1819
+ select: ProductSelectSchema.optional(),
1820
+ include: ProductIncludeSchema.optional(),
1821
+ where: ProductWhereInputSchema.optional(),
1822
+ orderBy: z.union([
1823
+ ProductOrderByWithRelationInputSchema.array(),
1824
+ ProductOrderByWithRelationInputSchema
1825
+ ]).optional(),
1826
+ cursor: ProductWhereUniqueInputSchema.optional(),
1827
+ take: z.number().optional(),
1828
+ skip: z.number().optional(),
1829
+ distinct: z.union([
1830
+ ProductScalarFieldEnumSchema,
1831
+ ProductScalarFieldEnumSchema.array()
1832
+ ]).optional()
1833
+ }).strict();
1834
+ export const ProductFindFirstOrThrowArgsSchema = z.object({
1835
+ select: ProductSelectSchema.optional(),
1836
+ include: ProductIncludeSchema.optional(),
1837
+ where: ProductWhereInputSchema.optional(),
1838
+ orderBy: z.union([
1839
+ ProductOrderByWithRelationInputSchema.array(),
1840
+ ProductOrderByWithRelationInputSchema
1841
+ ]).optional(),
1842
+ cursor: ProductWhereUniqueInputSchema.optional(),
1843
+ take: z.number().optional(),
1844
+ skip: z.number().optional(),
1845
+ distinct: z.union([
1846
+ ProductScalarFieldEnumSchema,
1847
+ ProductScalarFieldEnumSchema.array()
1848
+ ]).optional()
1849
+ }).strict();
1850
+ export const ProductFindManyArgsSchema = z.object({
1851
+ select: ProductSelectSchema.optional(),
1852
+ include: ProductIncludeSchema.optional(),
1853
+ where: ProductWhereInputSchema.optional(),
1854
+ orderBy: z.union([
1855
+ ProductOrderByWithRelationInputSchema.array(),
1856
+ ProductOrderByWithRelationInputSchema
1857
+ ]).optional(),
1858
+ cursor: ProductWhereUniqueInputSchema.optional(),
1859
+ take: z.number().optional(),
1860
+ skip: z.number().optional(),
1861
+ distinct: z.union([
1862
+ ProductScalarFieldEnumSchema,
1863
+ ProductScalarFieldEnumSchema.array()
1864
+ ]).optional()
1865
+ }).strict();
1866
+ export const ProductAggregateArgsSchema = z.object({
1867
+ where: ProductWhereInputSchema.optional(),
1868
+ orderBy: z.union([
1869
+ ProductOrderByWithRelationInputSchema.array(),
1870
+ ProductOrderByWithRelationInputSchema
1871
+ ]).optional(),
1872
+ cursor: ProductWhereUniqueInputSchema.optional(),
1873
+ take: z.number().optional(),
1874
+ skip: z.number().optional()
1875
+ }).strict();
1876
+ export const ProductGroupByArgsSchema = z.object({
1877
+ where: ProductWhereInputSchema.optional(),
1878
+ orderBy: z.union([
1879
+ ProductOrderByWithAggregationInputSchema.array(),
1880
+ ProductOrderByWithAggregationInputSchema
1881
+ ]).optional(),
1882
+ by: ProductScalarFieldEnumSchema.array(),
1883
+ having: ProductScalarWhereWithAggregatesInputSchema.optional(),
1884
+ take: z.number().optional(),
1885
+ skip: z.number().optional()
1886
+ }).strict();
1887
+ export const ProductFindUniqueArgsSchema = z.object({
1888
+ select: ProductSelectSchema.optional(),
1889
+ include: ProductIncludeSchema.optional(),
1890
+ where: ProductWhereUniqueInputSchema
1891
+ }).strict();
1892
+ export const ProductFindUniqueOrThrowArgsSchema = z.object({
1893
+ select: ProductSelectSchema.optional(),
1894
+ include: ProductIncludeSchema.optional(),
1895
+ where: ProductWhereUniqueInputSchema
1896
+ }).strict();
1897
+ export const ProductCreateArgsSchema = z.object({
1898
+ select: ProductSelectSchema.optional(),
1899
+ include: ProductIncludeSchema.optional(),
1900
+ data: z.union([
1901
+ ProductCreateInputSchema,
1902
+ ProductUncheckedCreateInputSchema
1903
+ ])
1904
+ }).strict();
1905
+ export const ProductUpsertArgsSchema = z.object({
1906
+ select: ProductSelectSchema.optional(),
1907
+ include: ProductIncludeSchema.optional(),
1908
+ where: ProductWhereUniqueInputSchema,
1909
+ create: z.union([
1910
+ ProductCreateInputSchema,
1911
+ ProductUncheckedCreateInputSchema
1912
+ ]),
1913
+ update: z.union([
1914
+ ProductUpdateInputSchema,
1915
+ ProductUncheckedUpdateInputSchema
1916
+ ])
1917
+ }).strict();
1918
+ export const ProductCreateManyArgsSchema = z.object({
1919
+ data: z.union([
1920
+ ProductCreateManyInputSchema,
1921
+ ProductCreateManyInputSchema.array()
1922
+ ]),
1923
+ skipDuplicates: z.boolean().optional()
1924
+ }).strict();
1925
+ export const ProductCreateManyAndReturnArgsSchema = z.object({
1926
+ data: z.union([
1927
+ ProductCreateManyInputSchema,
1928
+ ProductCreateManyInputSchema.array()
1929
+ ]),
1930
+ skipDuplicates: z.boolean().optional()
1931
+ }).strict();
1932
+ export const ProductDeleteArgsSchema = z.object({
1933
+ select: ProductSelectSchema.optional(),
1934
+ include: ProductIncludeSchema.optional(),
1935
+ where: ProductWhereUniqueInputSchema
1936
+ }).strict();
1937
+ export const ProductUpdateArgsSchema = z.object({
1938
+ select: ProductSelectSchema.optional(),
1939
+ include: ProductIncludeSchema.optional(),
1940
+ data: z.union([
1941
+ ProductUpdateInputSchema,
1942
+ ProductUncheckedUpdateInputSchema
1943
+ ]),
1944
+ where: ProductWhereUniqueInputSchema
1945
+ }).strict();
1946
+ export const ProductUpdateManyArgsSchema = z.object({
1947
+ data: z.union([
1948
+ ProductUpdateManyMutationInputSchema,
1949
+ ProductUncheckedUpdateManyInputSchema
1950
+ ]),
1951
+ where: ProductWhereInputSchema.optional(),
1952
+ limit: z.number().optional()
1953
+ }).strict();
1954
+ export const ProductUpdateManyAndReturnArgsSchema = z.object({
1955
+ data: z.union([
1956
+ ProductUpdateManyMutationInputSchema,
1957
+ ProductUncheckedUpdateManyInputSchema
1958
+ ]),
1959
+ where: ProductWhereInputSchema.optional(),
1960
+ limit: z.number().optional()
1961
+ }).strict();
1962
+ export const ProductDeleteManyArgsSchema = z.object({
1963
+ where: ProductWhereInputSchema.optional(),
1964
+ limit: z.number().optional()
1965
+ }).strict();
1966
+
1967
+ //# sourceMappingURL=index.js.map