@robert-brightline/ims-db 0.0.1

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