@robert-brightline/ims-db 0.0.8 → 0.0.10

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 (49) hide show
  1. package/README.md +2 -2
  2. package/dist/generated/prisma/browser.d.ts +2 -2
  3. package/dist/generated/prisma/browser.d.ts.map +1 -1
  4. package/dist/generated/prisma/browser.js.map +1 -1
  5. package/dist/generated/prisma/client.d.ts +4 -4
  6. package/dist/generated/prisma/client.d.ts.map +1 -1
  7. package/dist/generated/prisma/client.js +2 -2
  8. package/dist/generated/prisma/client.js.map +1 -1
  9. package/dist/generated/prisma/commonInputTypes.d.ts +2 -112
  10. package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -1
  11. package/dist/generated/prisma/commonInputTypes.js.map +1 -1
  12. package/dist/generated/prisma/internal/class.d.ts +8 -8
  13. package/dist/generated/prisma/internal/class.d.ts.map +1 -1
  14. package/dist/generated/prisma/internal/class.js +2 -2
  15. package/dist/generated/prisma/internal/class.js.map +1 -1
  16. package/dist/generated/prisma/internal/prismaNamespace.d.ts +39 -45
  17. package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -1
  18. package/dist/generated/prisma/internal/prismaNamespace.js +3 -9
  19. package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -1
  20. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +3 -9
  21. package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -1
  22. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +3 -9
  23. package/dist/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -1
  24. package/dist/generated/prisma/models/Sample.d.ts +1073 -0
  25. package/dist/generated/prisma/models/Sample.d.ts.map +1 -0
  26. package/dist/generated/prisma/models/{Product.js → Sample.js} +3 -3
  27. package/dist/generated/prisma/models/Sample.js.map +1 -0
  28. package/dist/generated/prisma/models.d.ts +1 -1
  29. package/dist/generated/prisma/models.d.ts.map +1 -1
  30. package/dist/generated/prisma/models.js.map +1 -1
  31. package/dist/generated/zod/index.d.ts +38 -92
  32. package/dist/generated/zod/index.d.ts.map +1 -1
  33. package/dist/generated/zod/index.js +141 -1294
  34. package/dist/generated/zod/index.js.map +1 -1
  35. package/dist/index.d.ts +6 -9
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +13 -16
  38. package/dist/index.js.map +1 -1
  39. package/package.json +12 -4
  40. package/prisma/migrations/20260102221818_initial/migration.sql +32 -0
  41. package/prisma/migrations/migration_lock.toml +3 -0
  42. package/prisma/schema.prisma +24 -0
  43. package/dist/generated/prisma/models/Product.d.ts +0 -1649
  44. package/dist/generated/prisma/models/Product.d.ts.map +0 -1
  45. package/dist/generated/prisma/models/Product.js.map +0 -1
  46. package/dist/lib/ims-db.d.ts +0 -2
  47. package/dist/lib/ims-db.d.ts.map +0 -1
  48. package/dist/lib/ims-db.js +0 -5
  49. package/dist/lib/ims-db.js.map +0 -1
@@ -11,19 +11,13 @@ export const TransactionIsolationLevelSchema = z.enum([
11
11
  'RepeatableRead',
12
12
  'Serializable'
13
13
  ]);
14
- export const ProductScalarFieldEnumSchema = z.enum([
14
+ export const SampleScalarFieldEnumSchema = z.enum([
15
15
  'id',
16
16
  'uuid',
17
17
  'createdAt',
18
18
  'updatedAt',
19
19
  'deletedAt',
20
- 'name',
21
- 'description',
22
- 'upc',
23
- 'sku',
24
- 'categoryId',
25
- 'imagesId',
26
- 'parentId'
20
+ 'name'
27
21
  ]);
28
22
  export const SortOrderSchema = z.enum([
29
23
  'asc',
@@ -41,89 +35,41 @@ export const NullsOrderSchema = z.enum([
41
35
  // MODELS
42
36
  /////////////////////////////////////////
43
37
  /////////////////////////////////////////
44
- // PRODUCT SCHEMA
38
+ // SAMPLE SCHEMA
45
39
  /////////////////////////////////////////
46
- export const ProductSchema = z.object({
40
+ export const SampleSchema = z.object({
47
41
  id: z.number().int(),
48
42
  uuid: z.uuid(),
49
43
  createdAt: z.coerce.date(),
50
44
  updatedAt: z.coerce.date(),
51
45
  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()
46
+ name: z.string()
59
47
  });
60
48
  /////////////////////////////////////////
61
49
  // SELECT & INCLUDE
62
50
  /////////////////////////////////////////
63
- // PRODUCT
51
+ // SAMPLE
64
52
  //------------------------------------------------------
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({
53
+ export const SampleSelectSchema = z.object({
90
54
  id: z.boolean().optional(),
91
55
  uuid: z.boolean().optional(),
92
56
  createdAt: z.boolean().optional(),
93
57
  updatedAt: z.boolean().optional(),
94
58
  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()
59
+ name: z.boolean().optional()
114
60
  }).strict();
115
61
  /////////////////////////////////////////
116
62
  // INPUT TYPES
117
63
  /////////////////////////////////////////
118
- export const ProductWhereInputSchema = z.strictObject({
64
+ export const SampleWhereInputSchema = z.strictObject({
119
65
  AND: z.union([
120
- z.lazy(()=>ProductWhereInputSchema),
121
- z.lazy(()=>ProductWhereInputSchema).array()
66
+ z.lazy(()=>SampleWhereInputSchema),
67
+ z.lazy(()=>SampleWhereInputSchema).array()
122
68
  ]).optional(),
123
- OR: z.lazy(()=>ProductWhereInputSchema).array().optional(),
69
+ OR: z.lazy(()=>SampleWhereInputSchema).array().optional(),
124
70
  NOT: z.union([
125
- z.lazy(()=>ProductWhereInputSchema),
126
- z.lazy(()=>ProductWhereInputSchema).array()
71
+ z.lazy(()=>SampleWhereInputSchema),
72
+ z.lazy(()=>SampleWhereInputSchema).array()
127
73
  ]).optional(),
128
74
  id: z.union([
129
75
  z.lazy(()=>IntFilterSchema),
@@ -148,38 +94,9 @@ export const ProductWhereInputSchema = z.strictObject({
148
94
  name: z.union([
149
95
  z.lazy(()=>StringFilterSchema),
150
96
  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()
97
+ ]).optional()
181
98
  });
182
- export const ProductOrderByWithRelationInputSchema = z.strictObject({
99
+ export const SampleOrderByWithRelationInputSchema = z.strictObject({
183
100
  id: z.lazy(()=>SortOrderSchema).optional(),
184
101
  uuid: z.lazy(()=>SortOrderSchema).optional(),
185
102
  createdAt: z.lazy(()=>SortOrderSchema).optional(),
@@ -188,185 +105,47 @@ export const ProductOrderByWithRelationInputSchema = z.strictObject({
188
105
  z.lazy(()=>SortOrderSchema),
189
106
  z.lazy(()=>SortOrderInputSchema)
190
107
  ]).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()
108
+ name: z.lazy(()=>SortOrderSchema).optional()
212
109
  });
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
- }),
110
+ export const SampleWhereUniqueInputSchema = z.union([
233
111
  z.object({
234
112
  id: z.number().int(),
235
113
  uuid: z.uuid(),
236
114
  name: z.string()
237
115
  }),
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
116
  z.object({
255
117
  id: z.number().int(),
256
118
  uuid: z.uuid()
257
119
  }),
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
120
  z.object({
275
121
  id: z.number().int(),
276
122
  name: z.string()
277
123
  }),
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
124
  z.object({
292
125
  id: z.number().int()
293
126
  }),
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
127
  z.object({
311
128
  uuid: z.uuid(),
312
129
  name: z.string()
313
130
  }),
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
131
  z.object({
328
132
  uuid: z.uuid()
329
133
  }),
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
134
  z.object({
344
135
  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
136
  })
356
137
  ]).and(z.strictObject({
357
138
  id: z.number().int().optional(),
358
139
  uuid: z.uuid().optional(),
359
140
  name: z.string().optional(),
360
- upc: z.string().optional(),
361
- sku: z.string().optional(),
362
141
  AND: z.union([
363
- z.lazy(()=>ProductWhereInputSchema),
364
- z.lazy(()=>ProductWhereInputSchema).array()
142
+ z.lazy(()=>SampleWhereInputSchema),
143
+ z.lazy(()=>SampleWhereInputSchema).array()
365
144
  ]).optional(),
366
- OR: z.lazy(()=>ProductWhereInputSchema).array().optional(),
145
+ OR: z.lazy(()=>SampleWhereInputSchema).array().optional(),
367
146
  NOT: z.union([
368
- z.lazy(()=>ProductWhereInputSchema),
369
- z.lazy(()=>ProductWhereInputSchema).array()
147
+ z.lazy(()=>SampleWhereInputSchema),
148
+ z.lazy(()=>SampleWhereInputSchema).array()
370
149
  ]).optional(),
371
150
  createdAt: z.union([
372
151
  z.lazy(()=>DateTimeFilterSchema),
@@ -379,30 +158,9 @@ export const ProductWhereUniqueInputSchema = z.union([
379
158
  deletedAt: z.union([
380
159
  z.lazy(()=>DateTimeNullableFilterSchema),
381
160
  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()
161
+ ]).optional().nullable()
404
162
  }));
405
- export const ProductOrderByWithAggregationInputSchema = z.strictObject({
163
+ export const SampleOrderByWithAggregationInputSchema = z.strictObject({
406
164
  id: z.lazy(()=>SortOrderSchema).optional(),
407
165
  uuid: z.lazy(()=>SortOrderSchema).optional(),
408
166
  createdAt: z.lazy(()=>SortOrderSchema).optional(),
@@ -412,39 +170,21 @@ export const ProductOrderByWithAggregationInputSchema = z.strictObject({
412
170
  z.lazy(()=>SortOrderInputSchema)
413
171
  ]).optional(),
414
172
  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()
173
+ _count: z.lazy(()=>SampleCountOrderByAggregateInputSchema).optional(),
174
+ _avg: z.lazy(()=>SampleAvgOrderByAggregateInputSchema).optional(),
175
+ _max: z.lazy(()=>SampleMaxOrderByAggregateInputSchema).optional(),
176
+ _min: z.lazy(()=>SampleMinOrderByAggregateInputSchema).optional(),
177
+ _sum: z.lazy(()=>SampleSumOrderByAggregateInputSchema).optional()
438
178
  });
439
- export const ProductScalarWhereWithAggregatesInputSchema = z.strictObject({
179
+ export const SampleScalarWhereWithAggregatesInputSchema = z.strictObject({
440
180
  AND: z.union([
441
- z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema),
442
- z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema).array()
181
+ z.lazy(()=>SampleScalarWhereWithAggregatesInputSchema),
182
+ z.lazy(()=>SampleScalarWhereWithAggregatesInputSchema).array()
443
183
  ]).optional(),
444
- OR: z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema).array().optional(),
184
+ OR: z.lazy(()=>SampleScalarWhereWithAggregatesInputSchema).array().optional(),
445
185
  NOT: z.union([
446
- z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema),
447
- z.lazy(()=>ProductScalarWhereWithAggregatesInputSchema).array()
186
+ z.lazy(()=>SampleScalarWhereWithAggregatesInputSchema),
187
+ z.lazy(()=>SampleScalarWhereWithAggregatesInputSchema).array()
448
188
  ]).optional(),
449
189
  id: z.union([
450
190
  z.lazy(()=>IntWithAggregatesFilterSchema),
@@ -469,62 +209,24 @@ export const ProductScalarWhereWithAggregatesInputSchema = z.strictObject({
469
209
  name: z.union([
470
210
  z.lazy(()=>StringWithAggregatesFilterSchema),
471
211
  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()
212
+ ]).optional()
497
213
  });
498
- export const ProductCreateInputSchema = z.strictObject({
214
+ export const SampleCreateInputSchema = z.strictObject({
499
215
  uuid: z.uuid().optional(),
500
216
  createdAt: z.coerce.date().optional(),
501
217
  updatedAt: z.coerce.date().optional(),
502
218
  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()
219
+ name: z.string()
511
220
  });
512
- export const ProductUncheckedCreateInputSchema = z.strictObject({
221
+ export const SampleUncheckedCreateInputSchema = z.strictObject({
513
222
  id: z.number().int().optional(),
514
223
  uuid: z.uuid().optional(),
515
224
  createdAt: z.coerce.date().optional(),
516
225
  updatedAt: z.coerce.date().optional(),
517
226
  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()
227
+ name: z.string()
526
228
  });
527
- export const ProductUpdateInputSchema = z.strictObject({
229
+ export const SampleUpdateInputSchema = z.strictObject({
528
230
  uuid: z.union([
529
231
  z.uuid(),
530
232
  z.lazy(()=>StringFieldUpdateOperationsInputSchema)
@@ -544,31 +246,9 @@ export const ProductUpdateInputSchema = z.strictObject({
544
246
  name: z.union([
545
247
  z.string(),
546
248
  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()
249
+ ]).optional()
570
250
  });
571
- export const ProductUncheckedUpdateInputSchema = z.strictObject({
251
+ export const SampleUncheckedUpdateInputSchema = z.strictObject({
572
252
  id: z.union([
573
253
  z.number().int(),
574
254
  z.lazy(()=>IntFieldUpdateOperationsInputSchema)
@@ -592,48 +272,17 @@ export const ProductUncheckedUpdateInputSchema = z.strictObject({
592
272
  name: z.union([
593
273
  z.string(),
594
274
  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()
275
+ ]).optional()
621
276
  });
622
- export const ProductCreateManyInputSchema = z.strictObject({
277
+ export const SampleCreateManyInputSchema = z.strictObject({
623
278
  id: z.number().int().optional(),
624
279
  uuid: z.uuid().optional(),
625
280
  createdAt: z.coerce.date().optional(),
626
281
  updatedAt: z.coerce.date().optional(),
627
282
  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()
283
+ name: z.string()
635
284
  });
636
- export const ProductUpdateManyMutationInputSchema = z.strictObject({
285
+ export const SampleUpdateManyMutationInputSchema = z.strictObject({
637
286
  uuid: z.union([
638
287
  z.uuid(),
639
288
  z.lazy(()=>StringFieldUpdateOperationsInputSchema)
@@ -653,29 +302,9 @@ export const ProductUpdateManyMutationInputSchema = z.strictObject({
653
302
  name: z.union([
654
303
  z.string(),
655
304
  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()
305
+ ]).optional()
677
306
  });
678
- export const ProductUncheckedUpdateManyInputSchema = z.strictObject({
307
+ export const SampleUncheckedUpdateManyInputSchema = z.strictObject({
679
308
  id: z.union([
680
309
  z.number().int(),
681
310
  z.lazy(()=>IntFieldUpdateOperationsInputSchema)
@@ -699,31 +328,7 @@ export const ProductUncheckedUpdateManyInputSchema = z.strictObject({
699
328
  name: z.union([
700
329
  z.string(),
701
330
  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()
331
+ ]).optional()
727
332
  });
728
333
  export const IntFilterSchema = z.strictObject({
729
334
  equals: z.number().optional(),
@@ -781,101 +386,39 @@ export const DateTimeNullableFilterSchema = z.strictObject({
781
386
  z.lazy(()=>NestedDateTimeNullableFilterSchema)
782
387
  ]).optional().nullable()
783
388
  });
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
389
  export const SortOrderInputSchema = z.strictObject({
824
390
  sort: z.lazy(()=>SortOrderSchema),
825
391
  nulls: z.lazy(()=>NullsOrderSchema).optional()
826
392
  });
827
- export const ProductOrderByRelationAggregateInputSchema = z.strictObject({
828
- _count: z.lazy(()=>SortOrderSchema).optional()
829
- });
830
- export const ProductCountOrderByAggregateInputSchema = z.strictObject({
393
+ export const SampleCountOrderByAggregateInputSchema = z.strictObject({
831
394
  id: z.lazy(()=>SortOrderSchema).optional(),
832
395
  uuid: z.lazy(()=>SortOrderSchema).optional(),
833
396
  createdAt: z.lazy(()=>SortOrderSchema).optional(),
834
397
  updatedAt: z.lazy(()=>SortOrderSchema).optional(),
835
398
  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()
399
+ name: z.lazy(()=>SortOrderSchema).optional()
843
400
  });
844
- export const ProductAvgOrderByAggregateInputSchema = z.strictObject({
845
- id: z.lazy(()=>SortOrderSchema).optional(),
846
- parentId: z.lazy(()=>SortOrderSchema).optional()
401
+ export const SampleAvgOrderByAggregateInputSchema = z.strictObject({
402
+ id: z.lazy(()=>SortOrderSchema).optional()
847
403
  });
848
- export const ProductMaxOrderByAggregateInputSchema = z.strictObject({
404
+ export const SampleMaxOrderByAggregateInputSchema = z.strictObject({
849
405
  id: z.lazy(()=>SortOrderSchema).optional(),
850
406
  uuid: z.lazy(()=>SortOrderSchema).optional(),
851
407
  createdAt: z.lazy(()=>SortOrderSchema).optional(),
852
408
  updatedAt: z.lazy(()=>SortOrderSchema).optional(),
853
409
  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()
410
+ name: z.lazy(()=>SortOrderSchema).optional()
861
411
  });
862
- export const ProductMinOrderByAggregateInputSchema = z.strictObject({
412
+ export const SampleMinOrderByAggregateInputSchema = z.strictObject({
863
413
  id: z.lazy(()=>SortOrderSchema).optional(),
864
414
  uuid: z.lazy(()=>SortOrderSchema).optional(),
865
415
  createdAt: z.lazy(()=>SortOrderSchema).optional(),
866
416
  updatedAt: z.lazy(()=>SortOrderSchema).optional(),
867
417
  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()
418
+ name: z.lazy(()=>SortOrderSchema).optional()
875
419
  });
876
- export const ProductSumOrderByAggregateInputSchema = z.strictObject({
877
- id: z.lazy(()=>SortOrderSchema).optional(),
878
- parentId: z.lazy(()=>SortOrderSchema).optional()
420
+ export const SampleSumOrderByAggregateInputSchema = z.strictObject({
421
+ id: z.lazy(()=>SortOrderSchema).optional()
879
422
  });
880
423
  export const IntWithAggregatesFilterSchema = z.strictObject({
881
424
  equals: z.number().optional(),
@@ -947,88 +490,8 @@ export const DateTimeNullableWithAggregatesFilterSchema = z.strictObject({
947
490
  _min: z.lazy(()=>NestedDateTimeNullableFilterSchema).optional(),
948
491
  _max: z.lazy(()=>NestedDateTimeNullableFilterSchema).optional()
949
492
  });
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()
493
+ export const StringFieldUpdateOperationsInputSchema = z.strictObject({
494
+ set: z.string().optional()
1032
495
  });
1033
496
  export const DateTimeFieldUpdateOperationsInputSchema = z.strictObject({
1034
497
  set: z.coerce.date().optional()
@@ -1036,76 +499,6 @@ export const DateTimeFieldUpdateOperationsInputSchema = z.strictObject({
1036
499
  export const NullableDateTimeFieldUpdateOperationsInputSchema = z.strictObject({
1037
500
  set: z.coerce.date().optional().nullable()
1038
501
  });
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
502
  export const IntFieldUpdateOperationsInputSchema = z.strictObject({
1110
503
  set: z.number().optional(),
1111
504
  increment: z.number().optional(),
@@ -1113,58 +506,6 @@ export const IntFieldUpdateOperationsInputSchema = z.strictObject({
1113
506
  multiply: z.number().optional(),
1114
507
  divide: z.number().optional()
1115
508
  });
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
509
  export const NestedIntFilterSchema = z.strictObject({
1169
510
  equals: z.number().optional(),
1170
511
  in: z.number().array().optional(),
@@ -1220,35 +561,6 @@ export const NestedDateTimeNullableFilterSchema = z.strictObject({
1220
561
  z.lazy(()=>NestedDateTimeNullableFilterSchema)
1221
562
  ]).optional().nullable()
1222
563
  });
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
564
  export const NestedIntWithAggregatesFilterSchema = z.strictObject({
1253
565
  equals: z.number().optional(),
1254
566
  in: z.number().array().optional(),
@@ -1331,44 +643,7 @@ export const NestedDateTimeNullableWithAggregatesFilterSchema = z.strictObject({
1331
643
  _min: z.lazy(()=>NestedDateTimeNullableFilterSchema).optional(),
1332
644
  _max: z.lazy(()=>NestedDateTimeNullableFilterSchema).optional()
1333
645
  });
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({
646
+ export const NestedIntNullableFilterSchema = z.strictObject({
1372
647
  equals: z.number().optional().nullable(),
1373
648
  in: z.number().array().optional().nullable(),
1374
649
  notIn: z.number().array().optional().nullable(),
@@ -1378,577 +653,149 @@ export const NestedFloatNullableFilterSchema = z.strictObject({
1378
653
  gte: z.number().optional(),
1379
654
  not: z.union([
1380
655
  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)
656
+ z.lazy(()=>NestedIntNullableFilterSchema)
1801
657
  ]).optional().nullable()
1802
658
  });
1803
659
  /////////////////////////////////////////
1804
660
  // ARGS
1805
661
  /////////////////////////////////////////
1806
- export const ProductFindFirstArgsSchema = z.object({
1807
- select: ProductSelectSchema.optional(),
1808
- include: ProductIncludeSchema.optional(),
1809
- where: ProductWhereInputSchema.optional(),
662
+ export const SampleFindFirstArgsSchema = z.object({
663
+ select: SampleSelectSchema.optional(),
664
+ where: SampleWhereInputSchema.optional(),
1810
665
  orderBy: z.union([
1811
- ProductOrderByWithRelationInputSchema.array(),
1812
- ProductOrderByWithRelationInputSchema
666
+ SampleOrderByWithRelationInputSchema.array(),
667
+ SampleOrderByWithRelationInputSchema
1813
668
  ]).optional(),
1814
- cursor: ProductWhereUniqueInputSchema.optional(),
669
+ cursor: SampleWhereUniqueInputSchema.optional(),
1815
670
  take: z.number().optional(),
1816
671
  skip: z.number().optional(),
1817
672
  distinct: z.union([
1818
- ProductScalarFieldEnumSchema,
1819
- ProductScalarFieldEnumSchema.array()
673
+ SampleScalarFieldEnumSchema,
674
+ SampleScalarFieldEnumSchema.array()
1820
675
  ]).optional()
1821
676
  }).strict();
1822
- export const ProductFindFirstOrThrowArgsSchema = z.object({
1823
- select: ProductSelectSchema.optional(),
1824
- include: ProductIncludeSchema.optional(),
1825
- where: ProductWhereInputSchema.optional(),
677
+ export const SampleFindFirstOrThrowArgsSchema = z.object({
678
+ select: SampleSelectSchema.optional(),
679
+ where: SampleWhereInputSchema.optional(),
1826
680
  orderBy: z.union([
1827
- ProductOrderByWithRelationInputSchema.array(),
1828
- ProductOrderByWithRelationInputSchema
681
+ SampleOrderByWithRelationInputSchema.array(),
682
+ SampleOrderByWithRelationInputSchema
1829
683
  ]).optional(),
1830
- cursor: ProductWhereUniqueInputSchema.optional(),
684
+ cursor: SampleWhereUniqueInputSchema.optional(),
1831
685
  take: z.number().optional(),
1832
686
  skip: z.number().optional(),
1833
687
  distinct: z.union([
1834
- ProductScalarFieldEnumSchema,
1835
- ProductScalarFieldEnumSchema.array()
688
+ SampleScalarFieldEnumSchema,
689
+ SampleScalarFieldEnumSchema.array()
1836
690
  ]).optional()
1837
691
  }).strict();
1838
- export const ProductFindManyArgsSchema = z.object({
1839
- select: ProductSelectSchema.optional(),
1840
- include: ProductIncludeSchema.optional(),
1841
- where: ProductWhereInputSchema.optional(),
692
+ export const SampleFindManyArgsSchema = z.object({
693
+ select: SampleSelectSchema.optional(),
694
+ where: SampleWhereInputSchema.optional(),
1842
695
  orderBy: z.union([
1843
- ProductOrderByWithRelationInputSchema.array(),
1844
- ProductOrderByWithRelationInputSchema
696
+ SampleOrderByWithRelationInputSchema.array(),
697
+ SampleOrderByWithRelationInputSchema
1845
698
  ]).optional(),
1846
- cursor: ProductWhereUniqueInputSchema.optional(),
699
+ cursor: SampleWhereUniqueInputSchema.optional(),
1847
700
  take: z.number().optional(),
1848
701
  skip: z.number().optional(),
1849
702
  distinct: z.union([
1850
- ProductScalarFieldEnumSchema,
1851
- ProductScalarFieldEnumSchema.array()
703
+ SampleScalarFieldEnumSchema,
704
+ SampleScalarFieldEnumSchema.array()
1852
705
  ]).optional()
1853
706
  }).strict();
1854
- export const ProductAggregateArgsSchema = z.object({
1855
- where: ProductWhereInputSchema.optional(),
707
+ export const SampleAggregateArgsSchema = z.object({
708
+ where: SampleWhereInputSchema.optional(),
1856
709
  orderBy: z.union([
1857
- ProductOrderByWithRelationInputSchema.array(),
1858
- ProductOrderByWithRelationInputSchema
710
+ SampleOrderByWithRelationInputSchema.array(),
711
+ SampleOrderByWithRelationInputSchema
1859
712
  ]).optional(),
1860
- cursor: ProductWhereUniqueInputSchema.optional(),
713
+ cursor: SampleWhereUniqueInputSchema.optional(),
1861
714
  take: z.number().optional(),
1862
715
  skip: z.number().optional()
1863
716
  }).strict();
1864
- export const ProductGroupByArgsSchema = z.object({
1865
- where: ProductWhereInputSchema.optional(),
717
+ export const SampleGroupByArgsSchema = z.object({
718
+ where: SampleWhereInputSchema.optional(),
1866
719
  orderBy: z.union([
1867
- ProductOrderByWithAggregationInputSchema.array(),
1868
- ProductOrderByWithAggregationInputSchema
720
+ SampleOrderByWithAggregationInputSchema.array(),
721
+ SampleOrderByWithAggregationInputSchema
1869
722
  ]).optional(),
1870
- by: ProductScalarFieldEnumSchema.array(),
1871
- having: ProductScalarWhereWithAggregatesInputSchema.optional(),
723
+ by: SampleScalarFieldEnumSchema.array(),
724
+ having: SampleScalarWhereWithAggregatesInputSchema.optional(),
1872
725
  take: z.number().optional(),
1873
726
  skip: z.number().optional()
1874
727
  }).strict();
1875
- export const ProductFindUniqueArgsSchema = z.object({
1876
- select: ProductSelectSchema.optional(),
1877
- include: ProductIncludeSchema.optional(),
1878
- where: ProductWhereUniqueInputSchema
728
+ export const SampleFindUniqueArgsSchema = z.object({
729
+ select: SampleSelectSchema.optional(),
730
+ where: SampleWhereUniqueInputSchema
1879
731
  }).strict();
1880
- export const ProductFindUniqueOrThrowArgsSchema = z.object({
1881
- select: ProductSelectSchema.optional(),
1882
- include: ProductIncludeSchema.optional(),
1883
- where: ProductWhereUniqueInputSchema
732
+ export const SampleFindUniqueOrThrowArgsSchema = z.object({
733
+ select: SampleSelectSchema.optional(),
734
+ where: SampleWhereUniqueInputSchema
1884
735
  }).strict();
1885
- export const ProductCreateArgsSchema = z.object({
1886
- select: ProductSelectSchema.optional(),
1887
- include: ProductIncludeSchema.optional(),
736
+ export const SampleCreateArgsSchema = z.object({
737
+ select: SampleSelectSchema.optional(),
1888
738
  data: z.union([
1889
- ProductCreateInputSchema,
1890
- ProductUncheckedCreateInputSchema
739
+ SampleCreateInputSchema,
740
+ SampleUncheckedCreateInputSchema
1891
741
  ])
1892
742
  }).strict();
1893
- export const ProductUpsertArgsSchema = z.object({
1894
- select: ProductSelectSchema.optional(),
1895
- include: ProductIncludeSchema.optional(),
1896
- where: ProductWhereUniqueInputSchema,
743
+ export const SampleUpsertArgsSchema = z.object({
744
+ select: SampleSelectSchema.optional(),
745
+ where: SampleWhereUniqueInputSchema,
1897
746
  create: z.union([
1898
- ProductCreateInputSchema,
1899
- ProductUncheckedCreateInputSchema
747
+ SampleCreateInputSchema,
748
+ SampleUncheckedCreateInputSchema
1900
749
  ]),
1901
750
  update: z.union([
1902
- ProductUpdateInputSchema,
1903
- ProductUncheckedUpdateInputSchema
751
+ SampleUpdateInputSchema,
752
+ SampleUncheckedUpdateInputSchema
1904
753
  ])
1905
754
  }).strict();
1906
- export const ProductCreateManyArgsSchema = z.object({
755
+ export const SampleCreateManyArgsSchema = z.object({
1907
756
  data: z.union([
1908
- ProductCreateManyInputSchema,
1909
- ProductCreateManyInputSchema.array()
757
+ SampleCreateManyInputSchema,
758
+ SampleCreateManyInputSchema.array()
1910
759
  ]),
1911
760
  skipDuplicates: z.boolean().optional()
1912
761
  }).strict();
1913
- export const ProductCreateManyAndReturnArgsSchema = z.object({
762
+ export const SampleCreateManyAndReturnArgsSchema = z.object({
1914
763
  data: z.union([
1915
- ProductCreateManyInputSchema,
1916
- ProductCreateManyInputSchema.array()
764
+ SampleCreateManyInputSchema,
765
+ SampleCreateManyInputSchema.array()
1917
766
  ]),
1918
767
  skipDuplicates: z.boolean().optional()
1919
768
  }).strict();
1920
- export const ProductDeleteArgsSchema = z.object({
1921
- select: ProductSelectSchema.optional(),
1922
- include: ProductIncludeSchema.optional(),
1923
- where: ProductWhereUniqueInputSchema
769
+ export const SampleDeleteArgsSchema = z.object({
770
+ select: SampleSelectSchema.optional(),
771
+ where: SampleWhereUniqueInputSchema
1924
772
  }).strict();
1925
- export const ProductUpdateArgsSchema = z.object({
1926
- select: ProductSelectSchema.optional(),
1927
- include: ProductIncludeSchema.optional(),
773
+ export const SampleUpdateArgsSchema = z.object({
774
+ select: SampleSelectSchema.optional(),
1928
775
  data: z.union([
1929
- ProductUpdateInputSchema,
1930
- ProductUncheckedUpdateInputSchema
776
+ SampleUpdateInputSchema,
777
+ SampleUncheckedUpdateInputSchema
1931
778
  ]),
1932
- where: ProductWhereUniqueInputSchema
779
+ where: SampleWhereUniqueInputSchema
1933
780
  }).strict();
1934
- export const ProductUpdateManyArgsSchema = z.object({
781
+ export const SampleUpdateManyArgsSchema = z.object({
1935
782
  data: z.union([
1936
- ProductUpdateManyMutationInputSchema,
1937
- ProductUncheckedUpdateManyInputSchema
783
+ SampleUpdateManyMutationInputSchema,
784
+ SampleUncheckedUpdateManyInputSchema
1938
785
  ]),
1939
- where: ProductWhereInputSchema.optional(),
786
+ where: SampleWhereInputSchema.optional(),
1940
787
  limit: z.number().optional()
1941
788
  }).strict();
1942
- export const ProductUpdateManyAndReturnArgsSchema = z.object({
789
+ export const SampleUpdateManyAndReturnArgsSchema = z.object({
1943
790
  data: z.union([
1944
- ProductUpdateManyMutationInputSchema,
1945
- ProductUncheckedUpdateManyInputSchema
791
+ SampleUpdateManyMutationInputSchema,
792
+ SampleUncheckedUpdateManyInputSchema
1946
793
  ]),
1947
- where: ProductWhereInputSchema.optional(),
794
+ where: SampleWhereInputSchema.optional(),
1948
795
  limit: z.number().optional()
1949
796
  }).strict();
1950
- export const ProductDeleteManyArgsSchema = z.object({
1951
- where: ProductWhereInputSchema.optional(),
797
+ export const SampleDeleteManyArgsSchema = z.object({
798
+ where: SampleWhereInputSchema.optional(),
1952
799
  limit: z.number().optional()
1953
800
  }).strict();
1954
801