@cerbos/orm-prisma 2.0.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +59 -2
  2. package/lib/{types/index.d.ts → index.d.ts} +3 -9
  3. package/lib/index.d.ts.map +1 -0
  4. package/lib/index.js +629 -0
  5. package/lib/index.js.map +1 -0
  6. package/package.json +47 -32
  7. package/src/generated/prisma/browser.ts +59 -0
  8. package/src/generated/prisma/client.ts +79 -0
  9. package/src/generated/prisma/commonInputTypes.ts +248 -0
  10. package/src/generated/prisma/enums.ts +15 -0
  11. package/src/generated/prisma/internal/class.ts +260 -0
  12. package/src/generated/prisma/internal/prismaNamespace.ts +1333 -0
  13. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +168 -0
  14. package/src/generated/prisma/models/Category.ts +1407 -0
  15. package/src/generated/prisma/models/Label.ts +1271 -0
  16. package/src/generated/prisma/models/NestedResource.ts +1557 -0
  17. package/src/generated/prisma/models/NextLevelNestedResource.ts +1332 -0
  18. package/src/generated/prisma/models/Resource.ts +2131 -0
  19. package/src/generated/prisma/models/SubCategory.ts +1407 -0
  20. package/src/generated/prisma/models/Tag.ts +1271 -0
  21. package/src/generated/prisma/models/User.ts +1498 -0
  22. package/src/generated/prisma/models.ts +19 -0
  23. package/src/generated/prisma-v6/client.d.ts +1 -0
  24. package/src/generated/prisma-v6/default.d.ts +1 -0
  25. package/src/generated/prisma-v6/edge.d.ts +1 -0
  26. package/src/generated/prisma-v6/index.d.ts +13639 -0
  27. package/src/generated/prisma-v6/runtime/index-browser.d.ts +370 -0
  28. package/src/generated/prisma-v6/runtime/library.d.ts +3982 -0
  29. package/src/generated/prisma-v6/wasm.d.ts +1 -0
  30. package/src/index.test.ts +4869 -0
  31. package/src/index.ts +954 -0
  32. package/src/test-setup.v6.ts +5 -0
  33. package/src/test-setup.v7.ts +7 -0
  34. package/lib/cjs/index.js +0 -517
  35. package/lib/cjs/index.js.map +0 -1
  36. package/lib/esm/index.js +0 -513
  37. package/lib/esm/index.js.map +0 -1
  38. package/lib/types/index.d.ts.map +0 -1
@@ -0,0 +1,1271 @@
1
+
2
+ /* !!! This is code generated by Prisma. Do not edit directly. !!! */
3
+ /* eslint-disable */
4
+ // biome-ignore-all lint: generated file
5
+ // @ts-nocheck
6
+ /*
7
+ * This file exports the `Label` model and its related types.
8
+ *
9
+ * 🟢 You can import this file directly.
10
+ */
11
+ import type * as runtime from "@prisma/client/runtime/client"
12
+ import type * as $Enums from "../enums.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
14
+
15
+ /**
16
+ * Model Label
17
+ *
18
+ */
19
+ export type LabelModel = runtime.Types.Result.DefaultSelection<Prisma.$LabelPayload>
20
+
21
+ export type AggregateLabel = {
22
+ _count: LabelCountAggregateOutputType | null
23
+ _min: LabelMinAggregateOutputType | null
24
+ _max: LabelMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type LabelMinAggregateOutputType = {
28
+ id: string | null
29
+ name: string | null
30
+ }
31
+
32
+ export type LabelMaxAggregateOutputType = {
33
+ id: string | null
34
+ name: string | null
35
+ }
36
+
37
+ export type LabelCountAggregateOutputType = {
38
+ id: number
39
+ name: number
40
+ _all: number
41
+ }
42
+
43
+
44
+ export type LabelMinAggregateInputType = {
45
+ id?: true
46
+ name?: true
47
+ }
48
+
49
+ export type LabelMaxAggregateInputType = {
50
+ id?: true
51
+ name?: true
52
+ }
53
+
54
+ export type LabelCountAggregateInputType = {
55
+ id?: true
56
+ name?: true
57
+ _all?: true
58
+ }
59
+
60
+ export type LabelAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
61
+ /**
62
+ * Filter which Label to aggregate.
63
+ */
64
+ where?: Prisma.LabelWhereInput
65
+ /**
66
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
67
+ *
68
+ * Determine the order of Labels to fetch.
69
+ */
70
+ orderBy?: Prisma.LabelOrderByWithRelationInput | Prisma.LabelOrderByWithRelationInput[]
71
+ /**
72
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
73
+ *
74
+ * Sets the start position
75
+ */
76
+ cursor?: Prisma.LabelWhereUniqueInput
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
79
+ *
80
+ * Take `±n` Labels from the position of the cursor.
81
+ */
82
+ take?: number
83
+ /**
84
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
85
+ *
86
+ * Skip the first `n` Labels.
87
+ */
88
+ skip?: number
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
91
+ *
92
+ * Count returned Labels
93
+ **/
94
+ _count?: true | LabelCountAggregateInputType
95
+ /**
96
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
97
+ *
98
+ * Select which fields to find the minimum value
99
+ **/
100
+ _min?: LabelMinAggregateInputType
101
+ /**
102
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
103
+ *
104
+ * Select which fields to find the maximum value
105
+ **/
106
+ _max?: LabelMaxAggregateInputType
107
+ }
108
+
109
+ export type GetLabelAggregateType<T extends LabelAggregateArgs> = {
110
+ [P in keyof T & keyof AggregateLabel]: P extends '_count' | 'count'
111
+ ? T[P] extends true
112
+ ? number
113
+ : Prisma.GetScalarType<T[P], AggregateLabel[P]>
114
+ : Prisma.GetScalarType<T[P], AggregateLabel[P]>
115
+ }
116
+
117
+
118
+
119
+
120
+ export type LabelGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ where?: Prisma.LabelWhereInput
122
+ orderBy?: Prisma.LabelOrderByWithAggregationInput | Prisma.LabelOrderByWithAggregationInput[]
123
+ by: Prisma.LabelScalarFieldEnum[] | Prisma.LabelScalarFieldEnum
124
+ having?: Prisma.LabelScalarWhereWithAggregatesInput
125
+ take?: number
126
+ skip?: number
127
+ _count?: LabelCountAggregateInputType | true
128
+ _min?: LabelMinAggregateInputType
129
+ _max?: LabelMaxAggregateInputType
130
+ }
131
+
132
+ export type LabelGroupByOutputType = {
133
+ id: string
134
+ name: string
135
+ _count: LabelCountAggregateOutputType | null
136
+ _min: LabelMinAggregateOutputType | null
137
+ _max: LabelMaxAggregateOutputType | null
138
+ }
139
+
140
+ type GetLabelGroupByPayload<T extends LabelGroupByArgs> = Prisma.PrismaPromise<
141
+ Array<
142
+ Prisma.PickEnumerable<LabelGroupByOutputType, T['by']> &
143
+ {
144
+ [P in ((keyof T) & (keyof LabelGroupByOutputType))]: P extends '_count'
145
+ ? T[P] extends boolean
146
+ ? number
147
+ : Prisma.GetScalarType<T[P], LabelGroupByOutputType[P]>
148
+ : Prisma.GetScalarType<T[P], LabelGroupByOutputType[P]>
149
+ }
150
+ >
151
+ >
152
+
153
+
154
+
155
+ export type LabelWhereInput = {
156
+ AND?: Prisma.LabelWhereInput | Prisma.LabelWhereInput[]
157
+ OR?: Prisma.LabelWhereInput[]
158
+ NOT?: Prisma.LabelWhereInput | Prisma.LabelWhereInput[]
159
+ id?: Prisma.StringFilter<"Label"> | string
160
+ name?: Prisma.StringFilter<"Label"> | string
161
+ subCategories?: Prisma.SubCategoryListRelationFilter
162
+ }
163
+
164
+ export type LabelOrderByWithRelationInput = {
165
+ id?: Prisma.SortOrder
166
+ name?: Prisma.SortOrder
167
+ subCategories?: Prisma.SubCategoryOrderByRelationAggregateInput
168
+ }
169
+
170
+ export type LabelWhereUniqueInput = Prisma.AtLeast<{
171
+ id?: string
172
+ name?: string
173
+ AND?: Prisma.LabelWhereInput | Prisma.LabelWhereInput[]
174
+ OR?: Prisma.LabelWhereInput[]
175
+ NOT?: Prisma.LabelWhereInput | Prisma.LabelWhereInput[]
176
+ subCategories?: Prisma.SubCategoryListRelationFilter
177
+ }, "id" | "name">
178
+
179
+ export type LabelOrderByWithAggregationInput = {
180
+ id?: Prisma.SortOrder
181
+ name?: Prisma.SortOrder
182
+ _count?: Prisma.LabelCountOrderByAggregateInput
183
+ _max?: Prisma.LabelMaxOrderByAggregateInput
184
+ _min?: Prisma.LabelMinOrderByAggregateInput
185
+ }
186
+
187
+ export type LabelScalarWhereWithAggregatesInput = {
188
+ AND?: Prisma.LabelScalarWhereWithAggregatesInput | Prisma.LabelScalarWhereWithAggregatesInput[]
189
+ OR?: Prisma.LabelScalarWhereWithAggregatesInput[]
190
+ NOT?: Prisma.LabelScalarWhereWithAggregatesInput | Prisma.LabelScalarWhereWithAggregatesInput[]
191
+ id?: Prisma.StringWithAggregatesFilter<"Label"> | string
192
+ name?: Prisma.StringWithAggregatesFilter<"Label"> | string
193
+ }
194
+
195
+ export type LabelCreateInput = {
196
+ id?: string
197
+ name: string
198
+ subCategories?: Prisma.SubCategoryCreateNestedManyWithoutLabelsInput
199
+ }
200
+
201
+ export type LabelUncheckedCreateInput = {
202
+ id?: string
203
+ name: string
204
+ subCategories?: Prisma.SubCategoryUncheckedCreateNestedManyWithoutLabelsInput
205
+ }
206
+
207
+ export type LabelUpdateInput = {
208
+ id?: Prisma.StringFieldUpdateOperationsInput | string
209
+ name?: Prisma.StringFieldUpdateOperationsInput | string
210
+ subCategories?: Prisma.SubCategoryUpdateManyWithoutLabelsNestedInput
211
+ }
212
+
213
+ export type LabelUncheckedUpdateInput = {
214
+ id?: Prisma.StringFieldUpdateOperationsInput | string
215
+ name?: Prisma.StringFieldUpdateOperationsInput | string
216
+ subCategories?: Prisma.SubCategoryUncheckedUpdateManyWithoutLabelsNestedInput
217
+ }
218
+
219
+ export type LabelCreateManyInput = {
220
+ id?: string
221
+ name: string
222
+ }
223
+
224
+ export type LabelUpdateManyMutationInput = {
225
+ id?: Prisma.StringFieldUpdateOperationsInput | string
226
+ name?: Prisma.StringFieldUpdateOperationsInput | string
227
+ }
228
+
229
+ export type LabelUncheckedUpdateManyInput = {
230
+ id?: Prisma.StringFieldUpdateOperationsInput | string
231
+ name?: Prisma.StringFieldUpdateOperationsInput | string
232
+ }
233
+
234
+ export type LabelListRelationFilter = {
235
+ every?: Prisma.LabelWhereInput
236
+ some?: Prisma.LabelWhereInput
237
+ none?: Prisma.LabelWhereInput
238
+ }
239
+
240
+ export type LabelOrderByRelationAggregateInput = {
241
+ _count?: Prisma.SortOrder
242
+ }
243
+
244
+ export type LabelCountOrderByAggregateInput = {
245
+ id?: Prisma.SortOrder
246
+ name?: Prisma.SortOrder
247
+ }
248
+
249
+ export type LabelMaxOrderByAggregateInput = {
250
+ id?: Prisma.SortOrder
251
+ name?: Prisma.SortOrder
252
+ }
253
+
254
+ export type LabelMinOrderByAggregateInput = {
255
+ id?: Prisma.SortOrder
256
+ name?: Prisma.SortOrder
257
+ }
258
+
259
+ export type LabelCreateNestedManyWithoutSubCategoriesInput = {
260
+ create?: Prisma.XOR<Prisma.LabelCreateWithoutSubCategoriesInput, Prisma.LabelUncheckedCreateWithoutSubCategoriesInput> | Prisma.LabelCreateWithoutSubCategoriesInput[] | Prisma.LabelUncheckedCreateWithoutSubCategoriesInput[]
261
+ connectOrCreate?: Prisma.LabelCreateOrConnectWithoutSubCategoriesInput | Prisma.LabelCreateOrConnectWithoutSubCategoriesInput[]
262
+ connect?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
263
+ }
264
+
265
+ export type LabelUncheckedCreateNestedManyWithoutSubCategoriesInput = {
266
+ create?: Prisma.XOR<Prisma.LabelCreateWithoutSubCategoriesInput, Prisma.LabelUncheckedCreateWithoutSubCategoriesInput> | Prisma.LabelCreateWithoutSubCategoriesInput[] | Prisma.LabelUncheckedCreateWithoutSubCategoriesInput[]
267
+ connectOrCreate?: Prisma.LabelCreateOrConnectWithoutSubCategoriesInput | Prisma.LabelCreateOrConnectWithoutSubCategoriesInput[]
268
+ connect?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
269
+ }
270
+
271
+ export type LabelUpdateManyWithoutSubCategoriesNestedInput = {
272
+ create?: Prisma.XOR<Prisma.LabelCreateWithoutSubCategoriesInput, Prisma.LabelUncheckedCreateWithoutSubCategoriesInput> | Prisma.LabelCreateWithoutSubCategoriesInput[] | Prisma.LabelUncheckedCreateWithoutSubCategoriesInput[]
273
+ connectOrCreate?: Prisma.LabelCreateOrConnectWithoutSubCategoriesInput | Prisma.LabelCreateOrConnectWithoutSubCategoriesInput[]
274
+ upsert?: Prisma.LabelUpsertWithWhereUniqueWithoutSubCategoriesInput | Prisma.LabelUpsertWithWhereUniqueWithoutSubCategoriesInput[]
275
+ set?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
276
+ disconnect?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
277
+ delete?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
278
+ connect?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
279
+ update?: Prisma.LabelUpdateWithWhereUniqueWithoutSubCategoriesInput | Prisma.LabelUpdateWithWhereUniqueWithoutSubCategoriesInput[]
280
+ updateMany?: Prisma.LabelUpdateManyWithWhereWithoutSubCategoriesInput | Prisma.LabelUpdateManyWithWhereWithoutSubCategoriesInput[]
281
+ deleteMany?: Prisma.LabelScalarWhereInput | Prisma.LabelScalarWhereInput[]
282
+ }
283
+
284
+ export type LabelUncheckedUpdateManyWithoutSubCategoriesNestedInput = {
285
+ create?: Prisma.XOR<Prisma.LabelCreateWithoutSubCategoriesInput, Prisma.LabelUncheckedCreateWithoutSubCategoriesInput> | Prisma.LabelCreateWithoutSubCategoriesInput[] | Prisma.LabelUncheckedCreateWithoutSubCategoriesInput[]
286
+ connectOrCreate?: Prisma.LabelCreateOrConnectWithoutSubCategoriesInput | Prisma.LabelCreateOrConnectWithoutSubCategoriesInput[]
287
+ upsert?: Prisma.LabelUpsertWithWhereUniqueWithoutSubCategoriesInput | Prisma.LabelUpsertWithWhereUniqueWithoutSubCategoriesInput[]
288
+ set?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
289
+ disconnect?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
290
+ delete?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
291
+ connect?: Prisma.LabelWhereUniqueInput | Prisma.LabelWhereUniqueInput[]
292
+ update?: Prisma.LabelUpdateWithWhereUniqueWithoutSubCategoriesInput | Prisma.LabelUpdateWithWhereUniqueWithoutSubCategoriesInput[]
293
+ updateMany?: Prisma.LabelUpdateManyWithWhereWithoutSubCategoriesInput | Prisma.LabelUpdateManyWithWhereWithoutSubCategoriesInput[]
294
+ deleteMany?: Prisma.LabelScalarWhereInput | Prisma.LabelScalarWhereInput[]
295
+ }
296
+
297
+ export type LabelCreateWithoutSubCategoriesInput = {
298
+ id?: string
299
+ name: string
300
+ }
301
+
302
+ export type LabelUncheckedCreateWithoutSubCategoriesInput = {
303
+ id?: string
304
+ name: string
305
+ }
306
+
307
+ export type LabelCreateOrConnectWithoutSubCategoriesInput = {
308
+ where: Prisma.LabelWhereUniqueInput
309
+ create: Prisma.XOR<Prisma.LabelCreateWithoutSubCategoriesInput, Prisma.LabelUncheckedCreateWithoutSubCategoriesInput>
310
+ }
311
+
312
+ export type LabelUpsertWithWhereUniqueWithoutSubCategoriesInput = {
313
+ where: Prisma.LabelWhereUniqueInput
314
+ update: Prisma.XOR<Prisma.LabelUpdateWithoutSubCategoriesInput, Prisma.LabelUncheckedUpdateWithoutSubCategoriesInput>
315
+ create: Prisma.XOR<Prisma.LabelCreateWithoutSubCategoriesInput, Prisma.LabelUncheckedCreateWithoutSubCategoriesInput>
316
+ }
317
+
318
+ export type LabelUpdateWithWhereUniqueWithoutSubCategoriesInput = {
319
+ where: Prisma.LabelWhereUniqueInput
320
+ data: Prisma.XOR<Prisma.LabelUpdateWithoutSubCategoriesInput, Prisma.LabelUncheckedUpdateWithoutSubCategoriesInput>
321
+ }
322
+
323
+ export type LabelUpdateManyWithWhereWithoutSubCategoriesInput = {
324
+ where: Prisma.LabelScalarWhereInput
325
+ data: Prisma.XOR<Prisma.LabelUpdateManyMutationInput, Prisma.LabelUncheckedUpdateManyWithoutSubCategoriesInput>
326
+ }
327
+
328
+ export type LabelScalarWhereInput = {
329
+ AND?: Prisma.LabelScalarWhereInput | Prisma.LabelScalarWhereInput[]
330
+ OR?: Prisma.LabelScalarWhereInput[]
331
+ NOT?: Prisma.LabelScalarWhereInput | Prisma.LabelScalarWhereInput[]
332
+ id?: Prisma.StringFilter<"Label"> | string
333
+ name?: Prisma.StringFilter<"Label"> | string
334
+ }
335
+
336
+ export type LabelUpdateWithoutSubCategoriesInput = {
337
+ id?: Prisma.StringFieldUpdateOperationsInput | string
338
+ name?: Prisma.StringFieldUpdateOperationsInput | string
339
+ }
340
+
341
+ export type LabelUncheckedUpdateWithoutSubCategoriesInput = {
342
+ id?: Prisma.StringFieldUpdateOperationsInput | string
343
+ name?: Prisma.StringFieldUpdateOperationsInput | string
344
+ }
345
+
346
+ export type LabelUncheckedUpdateManyWithoutSubCategoriesInput = {
347
+ id?: Prisma.StringFieldUpdateOperationsInput | string
348
+ name?: Prisma.StringFieldUpdateOperationsInput | string
349
+ }
350
+
351
+
352
+ /**
353
+ * Count Type LabelCountOutputType
354
+ */
355
+
356
+ export type LabelCountOutputType = {
357
+ subCategories: number
358
+ }
359
+
360
+ export type LabelCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
361
+ subCategories?: boolean | LabelCountOutputTypeCountSubCategoriesArgs
362
+ }
363
+
364
+ /**
365
+ * LabelCountOutputType without action
366
+ */
367
+ export type LabelCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
368
+ /**
369
+ * Select specific fields to fetch from the LabelCountOutputType
370
+ */
371
+ select?: Prisma.LabelCountOutputTypeSelect<ExtArgs> | null
372
+ }
373
+
374
+ /**
375
+ * LabelCountOutputType without action
376
+ */
377
+ export type LabelCountOutputTypeCountSubCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
378
+ where?: Prisma.SubCategoryWhereInput
379
+ }
380
+
381
+
382
+ export type LabelSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
383
+ id?: boolean
384
+ name?: boolean
385
+ subCategories?: boolean | Prisma.Label$subCategoriesArgs<ExtArgs>
386
+ _count?: boolean | Prisma.LabelCountOutputTypeDefaultArgs<ExtArgs>
387
+ }, ExtArgs["result"]["label"]>
388
+
389
+ export type LabelSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
390
+ id?: boolean
391
+ name?: boolean
392
+ }, ExtArgs["result"]["label"]>
393
+
394
+ export type LabelSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
395
+ id?: boolean
396
+ name?: boolean
397
+ }, ExtArgs["result"]["label"]>
398
+
399
+ export type LabelSelectScalar = {
400
+ id?: boolean
401
+ name?: boolean
402
+ }
403
+
404
+ export type LabelOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name", ExtArgs["result"]["label"]>
405
+ export type LabelInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
406
+ subCategories?: boolean | Prisma.Label$subCategoriesArgs<ExtArgs>
407
+ _count?: boolean | Prisma.LabelCountOutputTypeDefaultArgs<ExtArgs>
408
+ }
409
+ export type LabelIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
410
+ export type LabelIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
411
+
412
+ export type $LabelPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
413
+ name: "Label"
414
+ objects: {
415
+ subCategories: Prisma.$SubCategoryPayload<ExtArgs>[]
416
+ }
417
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
418
+ id: string
419
+ name: string
420
+ }, ExtArgs["result"]["label"]>
421
+ composites: {}
422
+ }
423
+
424
+ export type LabelGetPayload<S extends boolean | null | undefined | LabelDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$LabelPayload, S>
425
+
426
+ export type LabelCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
427
+ Omit<LabelFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
428
+ select?: LabelCountAggregateInputType | true
429
+ }
430
+
431
+ export interface LabelDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
432
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Label'], meta: { name: 'Label' } }
433
+ /**
434
+ * Find zero or one Label that matches the filter.
435
+ * @param {LabelFindUniqueArgs} args - Arguments to find a Label
436
+ * @example
437
+ * // Get one Label
438
+ * const label = await prisma.label.findUnique({
439
+ * where: {
440
+ * // ... provide filter here
441
+ * }
442
+ * })
443
+ */
444
+ findUnique<T extends LabelFindUniqueArgs>(args: Prisma.SelectSubset<T, LabelFindUniqueArgs<ExtArgs>>): Prisma.Prisma__LabelClient<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
445
+
446
+ /**
447
+ * Find one Label that matches the filter or throw an error with `error.code='P2025'`
448
+ * if no matches were found.
449
+ * @param {LabelFindUniqueOrThrowArgs} args - Arguments to find a Label
450
+ * @example
451
+ * // Get one Label
452
+ * const label = await prisma.label.findUniqueOrThrow({
453
+ * where: {
454
+ * // ... provide filter here
455
+ * }
456
+ * })
457
+ */
458
+ findUniqueOrThrow<T extends LabelFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, LabelFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__LabelClient<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
459
+
460
+ /**
461
+ * Find the first Label that matches the filter.
462
+ * Note, that providing `undefined` is treated as the value not being there.
463
+ * Read more here: https://pris.ly/d/null-undefined
464
+ * @param {LabelFindFirstArgs} args - Arguments to find a Label
465
+ * @example
466
+ * // Get one Label
467
+ * const label = await prisma.label.findFirst({
468
+ * where: {
469
+ * // ... provide filter here
470
+ * }
471
+ * })
472
+ */
473
+ findFirst<T extends LabelFindFirstArgs>(args?: Prisma.SelectSubset<T, LabelFindFirstArgs<ExtArgs>>): Prisma.Prisma__LabelClient<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
474
+
475
+ /**
476
+ * Find the first Label that matches the filter or
477
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
478
+ * Note, that providing `undefined` is treated as the value not being there.
479
+ * Read more here: https://pris.ly/d/null-undefined
480
+ * @param {LabelFindFirstOrThrowArgs} args - Arguments to find a Label
481
+ * @example
482
+ * // Get one Label
483
+ * const label = await prisma.label.findFirstOrThrow({
484
+ * where: {
485
+ * // ... provide filter here
486
+ * }
487
+ * })
488
+ */
489
+ findFirstOrThrow<T extends LabelFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, LabelFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__LabelClient<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
490
+
491
+ /**
492
+ * Find zero or more Labels that matches the filter.
493
+ * Note, that providing `undefined` is treated as the value not being there.
494
+ * Read more here: https://pris.ly/d/null-undefined
495
+ * @param {LabelFindManyArgs} args - Arguments to filter and select certain fields only.
496
+ * @example
497
+ * // Get all Labels
498
+ * const labels = await prisma.label.findMany()
499
+ *
500
+ * // Get first 10 Labels
501
+ * const labels = await prisma.label.findMany({ take: 10 })
502
+ *
503
+ * // Only select the `id`
504
+ * const labelWithIdOnly = await prisma.label.findMany({ select: { id: true } })
505
+ *
506
+ */
507
+ findMany<T extends LabelFindManyArgs>(args?: Prisma.SelectSubset<T, LabelFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
508
+
509
+ /**
510
+ * Create a Label.
511
+ * @param {LabelCreateArgs} args - Arguments to create a Label.
512
+ * @example
513
+ * // Create one Label
514
+ * const Label = await prisma.label.create({
515
+ * data: {
516
+ * // ... data to create a Label
517
+ * }
518
+ * })
519
+ *
520
+ */
521
+ create<T extends LabelCreateArgs>(args: Prisma.SelectSubset<T, LabelCreateArgs<ExtArgs>>): Prisma.Prisma__LabelClient<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
522
+
523
+ /**
524
+ * Create many Labels.
525
+ * @param {LabelCreateManyArgs} args - Arguments to create many Labels.
526
+ * @example
527
+ * // Create many Labels
528
+ * const label = await prisma.label.createMany({
529
+ * data: [
530
+ * // ... provide data here
531
+ * ]
532
+ * })
533
+ *
534
+ */
535
+ createMany<T extends LabelCreateManyArgs>(args?: Prisma.SelectSubset<T, LabelCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
536
+
537
+ /**
538
+ * Create many Labels and returns the data saved in the database.
539
+ * @param {LabelCreateManyAndReturnArgs} args - Arguments to create many Labels.
540
+ * @example
541
+ * // Create many Labels
542
+ * const label = await prisma.label.createManyAndReturn({
543
+ * data: [
544
+ * // ... provide data here
545
+ * ]
546
+ * })
547
+ *
548
+ * // Create many Labels and only return the `id`
549
+ * const labelWithIdOnly = await prisma.label.createManyAndReturn({
550
+ * select: { id: true },
551
+ * data: [
552
+ * // ... provide data here
553
+ * ]
554
+ * })
555
+ * Note, that providing `undefined` is treated as the value not being there.
556
+ * Read more here: https://pris.ly/d/null-undefined
557
+ *
558
+ */
559
+ createManyAndReturn<T extends LabelCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, LabelCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
560
+
561
+ /**
562
+ * Delete a Label.
563
+ * @param {LabelDeleteArgs} args - Arguments to delete one Label.
564
+ * @example
565
+ * // Delete one Label
566
+ * const Label = await prisma.label.delete({
567
+ * where: {
568
+ * // ... filter to delete one Label
569
+ * }
570
+ * })
571
+ *
572
+ */
573
+ delete<T extends LabelDeleteArgs>(args: Prisma.SelectSubset<T, LabelDeleteArgs<ExtArgs>>): Prisma.Prisma__LabelClient<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
574
+
575
+ /**
576
+ * Update one Label.
577
+ * @param {LabelUpdateArgs} args - Arguments to update one Label.
578
+ * @example
579
+ * // Update one Label
580
+ * const label = await prisma.label.update({
581
+ * where: {
582
+ * // ... provide filter here
583
+ * },
584
+ * data: {
585
+ * // ... provide data here
586
+ * }
587
+ * })
588
+ *
589
+ */
590
+ update<T extends LabelUpdateArgs>(args: Prisma.SelectSubset<T, LabelUpdateArgs<ExtArgs>>): Prisma.Prisma__LabelClient<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
591
+
592
+ /**
593
+ * Delete zero or more Labels.
594
+ * @param {LabelDeleteManyArgs} args - Arguments to filter Labels to delete.
595
+ * @example
596
+ * // Delete a few Labels
597
+ * const { count } = await prisma.label.deleteMany({
598
+ * where: {
599
+ * // ... provide filter here
600
+ * }
601
+ * })
602
+ *
603
+ */
604
+ deleteMany<T extends LabelDeleteManyArgs>(args?: Prisma.SelectSubset<T, LabelDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
605
+
606
+ /**
607
+ * Update zero or more Labels.
608
+ * Note, that providing `undefined` is treated as the value not being there.
609
+ * Read more here: https://pris.ly/d/null-undefined
610
+ * @param {LabelUpdateManyArgs} args - Arguments to update one or more rows.
611
+ * @example
612
+ * // Update many Labels
613
+ * const label = await prisma.label.updateMany({
614
+ * where: {
615
+ * // ... provide filter here
616
+ * },
617
+ * data: {
618
+ * // ... provide data here
619
+ * }
620
+ * })
621
+ *
622
+ */
623
+ updateMany<T extends LabelUpdateManyArgs>(args: Prisma.SelectSubset<T, LabelUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
624
+
625
+ /**
626
+ * Update zero or more Labels and returns the data updated in the database.
627
+ * @param {LabelUpdateManyAndReturnArgs} args - Arguments to update many Labels.
628
+ * @example
629
+ * // Update many Labels
630
+ * const label = await prisma.label.updateManyAndReturn({
631
+ * where: {
632
+ * // ... provide filter here
633
+ * },
634
+ * data: [
635
+ * // ... provide data here
636
+ * ]
637
+ * })
638
+ *
639
+ * // Update zero or more Labels and only return the `id`
640
+ * const labelWithIdOnly = await prisma.label.updateManyAndReturn({
641
+ * select: { id: true },
642
+ * where: {
643
+ * // ... provide filter here
644
+ * },
645
+ * data: [
646
+ * // ... provide data here
647
+ * ]
648
+ * })
649
+ * Note, that providing `undefined` is treated as the value not being there.
650
+ * Read more here: https://pris.ly/d/null-undefined
651
+ *
652
+ */
653
+ updateManyAndReturn<T extends LabelUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, LabelUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
654
+
655
+ /**
656
+ * Create or update one Label.
657
+ * @param {LabelUpsertArgs} args - Arguments to update or create a Label.
658
+ * @example
659
+ * // Update or create a Label
660
+ * const label = await prisma.label.upsert({
661
+ * create: {
662
+ * // ... data to create a Label
663
+ * },
664
+ * update: {
665
+ * // ... in case it already exists, update
666
+ * },
667
+ * where: {
668
+ * // ... the filter for the Label we want to update
669
+ * }
670
+ * })
671
+ */
672
+ upsert<T extends LabelUpsertArgs>(args: Prisma.SelectSubset<T, LabelUpsertArgs<ExtArgs>>): Prisma.Prisma__LabelClient<runtime.Types.Result.GetResult<Prisma.$LabelPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
673
+
674
+
675
+ /**
676
+ * Count the number of Labels.
677
+ * Note, that providing `undefined` is treated as the value not being there.
678
+ * Read more here: https://pris.ly/d/null-undefined
679
+ * @param {LabelCountArgs} args - Arguments to filter Labels to count.
680
+ * @example
681
+ * // Count the number of Labels
682
+ * const count = await prisma.label.count({
683
+ * where: {
684
+ * // ... the filter for the Labels we want to count
685
+ * }
686
+ * })
687
+ **/
688
+ count<T extends LabelCountArgs>(
689
+ args?: Prisma.Subset<T, LabelCountArgs>,
690
+ ): Prisma.PrismaPromise<
691
+ T extends runtime.Types.Utils.Record<'select', any>
692
+ ? T['select'] extends true
693
+ ? number
694
+ : Prisma.GetScalarType<T['select'], LabelCountAggregateOutputType>
695
+ : number
696
+ >
697
+
698
+ /**
699
+ * Allows you to perform aggregations operations on a Label.
700
+ * Note, that providing `undefined` is treated as the value not being there.
701
+ * Read more here: https://pris.ly/d/null-undefined
702
+ * @param {LabelAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
703
+ * @example
704
+ * // Ordered by age ascending
705
+ * // Where email contains prisma.io
706
+ * // Limited to the 10 users
707
+ * const aggregations = await prisma.user.aggregate({
708
+ * _avg: {
709
+ * age: true,
710
+ * },
711
+ * where: {
712
+ * email: {
713
+ * contains: "prisma.io",
714
+ * },
715
+ * },
716
+ * orderBy: {
717
+ * age: "asc",
718
+ * },
719
+ * take: 10,
720
+ * })
721
+ **/
722
+ aggregate<T extends LabelAggregateArgs>(args: Prisma.Subset<T, LabelAggregateArgs>): Prisma.PrismaPromise<GetLabelAggregateType<T>>
723
+
724
+ /**
725
+ * Group by Label.
726
+ * Note, that providing `undefined` is treated as the value not being there.
727
+ * Read more here: https://pris.ly/d/null-undefined
728
+ * @param {LabelGroupByArgs} args - Group by arguments.
729
+ * @example
730
+ * // Group by city, order by createdAt, get count
731
+ * const result = await prisma.user.groupBy({
732
+ * by: ['city', 'createdAt'],
733
+ * orderBy: {
734
+ * createdAt: true
735
+ * },
736
+ * _count: {
737
+ * _all: true
738
+ * },
739
+ * })
740
+ *
741
+ **/
742
+ groupBy<
743
+ T extends LabelGroupByArgs,
744
+ HasSelectOrTake extends Prisma.Or<
745
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
746
+ Prisma.Extends<'take', Prisma.Keys<T>>
747
+ >,
748
+ OrderByArg extends Prisma.True extends HasSelectOrTake
749
+ ? { orderBy: LabelGroupByArgs['orderBy'] }
750
+ : { orderBy?: LabelGroupByArgs['orderBy'] },
751
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
752
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
753
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
754
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
755
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
756
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
757
+ InputErrors extends ByEmpty extends Prisma.True
758
+ ? `Error: "by" must not be empty.`
759
+ : HavingValid extends Prisma.False
760
+ ? {
761
+ [P in HavingFields]: P extends ByFields
762
+ ? never
763
+ : P extends string
764
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
765
+ : [
766
+ Error,
767
+ 'Field ',
768
+ P,
769
+ ` in "having" needs to be provided in "by"`,
770
+ ]
771
+ }[HavingFields]
772
+ : 'take' extends Prisma.Keys<T>
773
+ ? 'orderBy' extends Prisma.Keys<T>
774
+ ? ByValid extends Prisma.True
775
+ ? {}
776
+ : {
777
+ [P in OrderFields]: P extends ByFields
778
+ ? never
779
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
780
+ }[OrderFields]
781
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
782
+ : 'skip' extends Prisma.Keys<T>
783
+ ? 'orderBy' extends Prisma.Keys<T>
784
+ ? ByValid extends Prisma.True
785
+ ? {}
786
+ : {
787
+ [P in OrderFields]: P extends ByFields
788
+ ? never
789
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
790
+ }[OrderFields]
791
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
792
+ : ByValid extends Prisma.True
793
+ ? {}
794
+ : {
795
+ [P in OrderFields]: P extends ByFields
796
+ ? never
797
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
798
+ }[OrderFields]
799
+ >(args: Prisma.SubsetIntersection<T, LabelGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetLabelGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
800
+ /**
801
+ * Fields of the Label model
802
+ */
803
+ readonly fields: LabelFieldRefs;
804
+ }
805
+
806
+ /**
807
+ * The delegate class that acts as a "Promise-like" for Label.
808
+ * Why is this prefixed with `Prisma__`?
809
+ * Because we want to prevent naming conflicts as mentioned in
810
+ * https://github.com/prisma/prisma-client-js/issues/707
811
+ */
812
+ export interface Prisma__LabelClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
813
+ readonly [Symbol.toStringTag]: "PrismaPromise"
814
+ subCategories<T extends Prisma.Label$subCategoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Label$subCategoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SubCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
815
+ /**
816
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
817
+ * @param onfulfilled The callback to execute when the Promise is resolved.
818
+ * @param onrejected The callback to execute when the Promise is rejected.
819
+ * @returns A Promise for the completion of which ever callback is executed.
820
+ */
821
+ 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>
822
+ /**
823
+ * Attaches a callback for only the rejection of the Promise.
824
+ * @param onrejected The callback to execute when the Promise is rejected.
825
+ * @returns A Promise for the completion of the callback.
826
+ */
827
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
828
+ /**
829
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
830
+ * resolved value cannot be modified from the callback.
831
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
832
+ * @returns A Promise for the completion of the callback.
833
+ */
834
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
835
+ }
836
+
837
+
838
+
839
+
840
+ /**
841
+ * Fields of the Label model
842
+ */
843
+ export interface LabelFieldRefs {
844
+ readonly id: Prisma.FieldRef<"Label", 'String'>
845
+ readonly name: Prisma.FieldRef<"Label", 'String'>
846
+ }
847
+
848
+
849
+ // Custom InputTypes
850
+ /**
851
+ * Label findUnique
852
+ */
853
+ export type LabelFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
854
+ /**
855
+ * Select specific fields to fetch from the Label
856
+ */
857
+ select?: Prisma.LabelSelect<ExtArgs> | null
858
+ /**
859
+ * Omit specific fields from the Label
860
+ */
861
+ omit?: Prisma.LabelOmit<ExtArgs> | null
862
+ /**
863
+ * Choose, which related nodes to fetch as well
864
+ */
865
+ include?: Prisma.LabelInclude<ExtArgs> | null
866
+ /**
867
+ * Filter, which Label to fetch.
868
+ */
869
+ where: Prisma.LabelWhereUniqueInput
870
+ }
871
+
872
+ /**
873
+ * Label findUniqueOrThrow
874
+ */
875
+ export type LabelFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
876
+ /**
877
+ * Select specific fields to fetch from the Label
878
+ */
879
+ select?: Prisma.LabelSelect<ExtArgs> | null
880
+ /**
881
+ * Omit specific fields from the Label
882
+ */
883
+ omit?: Prisma.LabelOmit<ExtArgs> | null
884
+ /**
885
+ * Choose, which related nodes to fetch as well
886
+ */
887
+ include?: Prisma.LabelInclude<ExtArgs> | null
888
+ /**
889
+ * Filter, which Label to fetch.
890
+ */
891
+ where: Prisma.LabelWhereUniqueInput
892
+ }
893
+
894
+ /**
895
+ * Label findFirst
896
+ */
897
+ export type LabelFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
898
+ /**
899
+ * Select specific fields to fetch from the Label
900
+ */
901
+ select?: Prisma.LabelSelect<ExtArgs> | null
902
+ /**
903
+ * Omit specific fields from the Label
904
+ */
905
+ omit?: Prisma.LabelOmit<ExtArgs> | null
906
+ /**
907
+ * Choose, which related nodes to fetch as well
908
+ */
909
+ include?: Prisma.LabelInclude<ExtArgs> | null
910
+ /**
911
+ * Filter, which Label to fetch.
912
+ */
913
+ where?: Prisma.LabelWhereInput
914
+ /**
915
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
916
+ *
917
+ * Determine the order of Labels to fetch.
918
+ */
919
+ orderBy?: Prisma.LabelOrderByWithRelationInput | Prisma.LabelOrderByWithRelationInput[]
920
+ /**
921
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
922
+ *
923
+ * Sets the position for searching for Labels.
924
+ */
925
+ cursor?: Prisma.LabelWhereUniqueInput
926
+ /**
927
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
928
+ *
929
+ * Take `±n` Labels from the position of the cursor.
930
+ */
931
+ take?: number
932
+ /**
933
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
934
+ *
935
+ * Skip the first `n` Labels.
936
+ */
937
+ skip?: number
938
+ /**
939
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
940
+ *
941
+ * Filter by unique combinations of Labels.
942
+ */
943
+ distinct?: Prisma.LabelScalarFieldEnum | Prisma.LabelScalarFieldEnum[]
944
+ }
945
+
946
+ /**
947
+ * Label findFirstOrThrow
948
+ */
949
+ export type LabelFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
950
+ /**
951
+ * Select specific fields to fetch from the Label
952
+ */
953
+ select?: Prisma.LabelSelect<ExtArgs> | null
954
+ /**
955
+ * Omit specific fields from the Label
956
+ */
957
+ omit?: Prisma.LabelOmit<ExtArgs> | null
958
+ /**
959
+ * Choose, which related nodes to fetch as well
960
+ */
961
+ include?: Prisma.LabelInclude<ExtArgs> | null
962
+ /**
963
+ * Filter, which Label to fetch.
964
+ */
965
+ where?: Prisma.LabelWhereInput
966
+ /**
967
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
968
+ *
969
+ * Determine the order of Labels to fetch.
970
+ */
971
+ orderBy?: Prisma.LabelOrderByWithRelationInput | Prisma.LabelOrderByWithRelationInput[]
972
+ /**
973
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
974
+ *
975
+ * Sets the position for searching for Labels.
976
+ */
977
+ cursor?: Prisma.LabelWhereUniqueInput
978
+ /**
979
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
980
+ *
981
+ * Take `±n` Labels from the position of the cursor.
982
+ */
983
+ take?: number
984
+ /**
985
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
986
+ *
987
+ * Skip the first `n` Labels.
988
+ */
989
+ skip?: number
990
+ /**
991
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
992
+ *
993
+ * Filter by unique combinations of Labels.
994
+ */
995
+ distinct?: Prisma.LabelScalarFieldEnum | Prisma.LabelScalarFieldEnum[]
996
+ }
997
+
998
+ /**
999
+ * Label findMany
1000
+ */
1001
+ export type LabelFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1002
+ /**
1003
+ * Select specific fields to fetch from the Label
1004
+ */
1005
+ select?: Prisma.LabelSelect<ExtArgs> | null
1006
+ /**
1007
+ * Omit specific fields from the Label
1008
+ */
1009
+ omit?: Prisma.LabelOmit<ExtArgs> | null
1010
+ /**
1011
+ * Choose, which related nodes to fetch as well
1012
+ */
1013
+ include?: Prisma.LabelInclude<ExtArgs> | null
1014
+ /**
1015
+ * Filter, which Labels to fetch.
1016
+ */
1017
+ where?: Prisma.LabelWhereInput
1018
+ /**
1019
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1020
+ *
1021
+ * Determine the order of Labels to fetch.
1022
+ */
1023
+ orderBy?: Prisma.LabelOrderByWithRelationInput | Prisma.LabelOrderByWithRelationInput[]
1024
+ /**
1025
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1026
+ *
1027
+ * Sets the position for listing Labels.
1028
+ */
1029
+ cursor?: Prisma.LabelWhereUniqueInput
1030
+ /**
1031
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1032
+ *
1033
+ * Take `±n` Labels from the position of the cursor.
1034
+ */
1035
+ take?: number
1036
+ /**
1037
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1038
+ *
1039
+ * Skip the first `n` Labels.
1040
+ */
1041
+ skip?: number
1042
+ distinct?: Prisma.LabelScalarFieldEnum | Prisma.LabelScalarFieldEnum[]
1043
+ }
1044
+
1045
+ /**
1046
+ * Label create
1047
+ */
1048
+ export type LabelCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1049
+ /**
1050
+ * Select specific fields to fetch from the Label
1051
+ */
1052
+ select?: Prisma.LabelSelect<ExtArgs> | null
1053
+ /**
1054
+ * Omit specific fields from the Label
1055
+ */
1056
+ omit?: Prisma.LabelOmit<ExtArgs> | null
1057
+ /**
1058
+ * Choose, which related nodes to fetch as well
1059
+ */
1060
+ include?: Prisma.LabelInclude<ExtArgs> | null
1061
+ /**
1062
+ * The data needed to create a Label.
1063
+ */
1064
+ data: Prisma.XOR<Prisma.LabelCreateInput, Prisma.LabelUncheckedCreateInput>
1065
+ }
1066
+
1067
+ /**
1068
+ * Label createMany
1069
+ */
1070
+ export type LabelCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * The data used to create many Labels.
1073
+ */
1074
+ data: Prisma.LabelCreateManyInput | Prisma.LabelCreateManyInput[]
1075
+ }
1076
+
1077
+ /**
1078
+ * Label createManyAndReturn
1079
+ */
1080
+ export type LabelCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1081
+ /**
1082
+ * Select specific fields to fetch from the Label
1083
+ */
1084
+ select?: Prisma.LabelSelectCreateManyAndReturn<ExtArgs> | null
1085
+ /**
1086
+ * Omit specific fields from the Label
1087
+ */
1088
+ omit?: Prisma.LabelOmit<ExtArgs> | null
1089
+ /**
1090
+ * The data used to create many Labels.
1091
+ */
1092
+ data: Prisma.LabelCreateManyInput | Prisma.LabelCreateManyInput[]
1093
+ }
1094
+
1095
+ /**
1096
+ * Label update
1097
+ */
1098
+ export type LabelUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1099
+ /**
1100
+ * Select specific fields to fetch from the Label
1101
+ */
1102
+ select?: Prisma.LabelSelect<ExtArgs> | null
1103
+ /**
1104
+ * Omit specific fields from the Label
1105
+ */
1106
+ omit?: Prisma.LabelOmit<ExtArgs> | null
1107
+ /**
1108
+ * Choose, which related nodes to fetch as well
1109
+ */
1110
+ include?: Prisma.LabelInclude<ExtArgs> | null
1111
+ /**
1112
+ * The data needed to update a Label.
1113
+ */
1114
+ data: Prisma.XOR<Prisma.LabelUpdateInput, Prisma.LabelUncheckedUpdateInput>
1115
+ /**
1116
+ * Choose, which Label to update.
1117
+ */
1118
+ where: Prisma.LabelWhereUniqueInput
1119
+ }
1120
+
1121
+ /**
1122
+ * Label updateMany
1123
+ */
1124
+ export type LabelUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1125
+ /**
1126
+ * The data used to update Labels.
1127
+ */
1128
+ data: Prisma.XOR<Prisma.LabelUpdateManyMutationInput, Prisma.LabelUncheckedUpdateManyInput>
1129
+ /**
1130
+ * Filter which Labels to update
1131
+ */
1132
+ where?: Prisma.LabelWhereInput
1133
+ /**
1134
+ * Limit how many Labels to update.
1135
+ */
1136
+ limit?: number
1137
+ }
1138
+
1139
+ /**
1140
+ * Label updateManyAndReturn
1141
+ */
1142
+ export type LabelUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1143
+ /**
1144
+ * Select specific fields to fetch from the Label
1145
+ */
1146
+ select?: Prisma.LabelSelectUpdateManyAndReturn<ExtArgs> | null
1147
+ /**
1148
+ * Omit specific fields from the Label
1149
+ */
1150
+ omit?: Prisma.LabelOmit<ExtArgs> | null
1151
+ /**
1152
+ * The data used to update Labels.
1153
+ */
1154
+ data: Prisma.XOR<Prisma.LabelUpdateManyMutationInput, Prisma.LabelUncheckedUpdateManyInput>
1155
+ /**
1156
+ * Filter which Labels to update
1157
+ */
1158
+ where?: Prisma.LabelWhereInput
1159
+ /**
1160
+ * Limit how many Labels to update.
1161
+ */
1162
+ limit?: number
1163
+ }
1164
+
1165
+ /**
1166
+ * Label upsert
1167
+ */
1168
+ export type LabelUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1169
+ /**
1170
+ * Select specific fields to fetch from the Label
1171
+ */
1172
+ select?: Prisma.LabelSelect<ExtArgs> | null
1173
+ /**
1174
+ * Omit specific fields from the Label
1175
+ */
1176
+ omit?: Prisma.LabelOmit<ExtArgs> | null
1177
+ /**
1178
+ * Choose, which related nodes to fetch as well
1179
+ */
1180
+ include?: Prisma.LabelInclude<ExtArgs> | null
1181
+ /**
1182
+ * The filter to search for the Label to update in case it exists.
1183
+ */
1184
+ where: Prisma.LabelWhereUniqueInput
1185
+ /**
1186
+ * In case the Label found by the `where` argument doesn't exist, create a new Label with this data.
1187
+ */
1188
+ create: Prisma.XOR<Prisma.LabelCreateInput, Prisma.LabelUncheckedCreateInput>
1189
+ /**
1190
+ * In case the Label was found with the provided `where` argument, update it with this data.
1191
+ */
1192
+ update: Prisma.XOR<Prisma.LabelUpdateInput, Prisma.LabelUncheckedUpdateInput>
1193
+ }
1194
+
1195
+ /**
1196
+ * Label delete
1197
+ */
1198
+ export type LabelDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1199
+ /**
1200
+ * Select specific fields to fetch from the Label
1201
+ */
1202
+ select?: Prisma.LabelSelect<ExtArgs> | null
1203
+ /**
1204
+ * Omit specific fields from the Label
1205
+ */
1206
+ omit?: Prisma.LabelOmit<ExtArgs> | null
1207
+ /**
1208
+ * Choose, which related nodes to fetch as well
1209
+ */
1210
+ include?: Prisma.LabelInclude<ExtArgs> | null
1211
+ /**
1212
+ * Filter which Label to delete.
1213
+ */
1214
+ where: Prisma.LabelWhereUniqueInput
1215
+ }
1216
+
1217
+ /**
1218
+ * Label deleteMany
1219
+ */
1220
+ export type LabelDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1221
+ /**
1222
+ * Filter which Labels to delete
1223
+ */
1224
+ where?: Prisma.LabelWhereInput
1225
+ /**
1226
+ * Limit how many Labels to delete.
1227
+ */
1228
+ limit?: number
1229
+ }
1230
+
1231
+ /**
1232
+ * Label.subCategories
1233
+ */
1234
+ export type Label$subCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1235
+ /**
1236
+ * Select specific fields to fetch from the SubCategory
1237
+ */
1238
+ select?: Prisma.SubCategorySelect<ExtArgs> | null
1239
+ /**
1240
+ * Omit specific fields from the SubCategory
1241
+ */
1242
+ omit?: Prisma.SubCategoryOmit<ExtArgs> | null
1243
+ /**
1244
+ * Choose, which related nodes to fetch as well
1245
+ */
1246
+ include?: Prisma.SubCategoryInclude<ExtArgs> | null
1247
+ where?: Prisma.SubCategoryWhereInput
1248
+ orderBy?: Prisma.SubCategoryOrderByWithRelationInput | Prisma.SubCategoryOrderByWithRelationInput[]
1249
+ cursor?: Prisma.SubCategoryWhereUniqueInput
1250
+ take?: number
1251
+ skip?: number
1252
+ distinct?: Prisma.SubCategoryScalarFieldEnum | Prisma.SubCategoryScalarFieldEnum[]
1253
+ }
1254
+
1255
+ /**
1256
+ * Label without action
1257
+ */
1258
+ export type LabelDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1259
+ /**
1260
+ * Select specific fields to fetch from the Label
1261
+ */
1262
+ select?: Prisma.LabelSelect<ExtArgs> | null
1263
+ /**
1264
+ * Omit specific fields from the Label
1265
+ */
1266
+ omit?: Prisma.LabelOmit<ExtArgs> | null
1267
+ /**
1268
+ * Choose, which related nodes to fetch as well
1269
+ */
1270
+ include?: Prisma.LabelInclude<ExtArgs> | null
1271
+ }