@robert-brightline/ims-db 0.0.9 → 0.0.13

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