@cerbos/orm-prisma 3.0.1 → 3.1.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 (35) hide show
  1. package/README.md +2 -2
  2. package/lib/index.js +54 -1
  3. package/lib/index.js.map +1 -1
  4. package/package.json +17 -12
  5. package/src/generated/prisma/browser.ts +59 -0
  6. package/src/generated/prisma/client.ts +79 -0
  7. package/src/generated/prisma/commonInputTypes.ts +248 -0
  8. package/src/generated/prisma/enums.ts +15 -0
  9. package/src/generated/prisma/internal/class.ts +262 -0
  10. package/src/generated/prisma/internal/prismaNamespace.ts +1333 -0
  11. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +168 -0
  12. package/src/generated/prisma/models/Category.ts +1407 -0
  13. package/src/generated/prisma/models/Label.ts +1271 -0
  14. package/src/generated/prisma/models/NestedResource.ts +1557 -0
  15. package/src/generated/prisma/models/NextLevelNestedResource.ts +1332 -0
  16. package/src/generated/prisma/models/Resource.ts +2131 -0
  17. package/src/generated/prisma/models/SubCategory.ts +1407 -0
  18. package/src/generated/prisma/models/Tag.ts +1271 -0
  19. package/src/generated/prisma/models/User.ts +1498 -0
  20. package/src/generated/prisma/models.ts +19 -0
  21. package/src/generated/prisma-v6/client.d.ts +1 -0
  22. package/src/generated/prisma-v6/default.d.ts +1 -0
  23. package/src/generated/prisma-v6/edge.d.ts +1 -0
  24. package/src/generated/prisma-v6/index.d.ts +13639 -0
  25. package/src/generated/prisma-v6/runtime/index-browser.d.ts +370 -0
  26. package/src/generated/prisma-v6/runtime/library.d.ts +3982 -0
  27. package/src/generated/prisma-v6/wasm.d.ts +1 -0
  28. package/src/index.test.ts +702 -2
  29. package/src/index.ts +79 -1
  30. package/src/test-setup.v6.ts +5 -0
  31. package/src/test-setup.v7.ts +7 -0
  32. package/lib/index.test.d.ts +0 -2
  33. package/lib/index.test.d.ts.map +0 -1
  34. package/lib/index.test.js +0 -4093
  35. package/lib/index.test.js.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 `Tag` 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 Tag
17
+ *
18
+ */
19
+ export type TagModel = runtime.Types.Result.DefaultSelection<Prisma.$TagPayload>
20
+
21
+ export type AggregateTag = {
22
+ _count: TagCountAggregateOutputType | null
23
+ _min: TagMinAggregateOutputType | null
24
+ _max: TagMaxAggregateOutputType | null
25
+ }
26
+
27
+ export type TagMinAggregateOutputType = {
28
+ id: string | null
29
+ name: string | null
30
+ }
31
+
32
+ export type TagMaxAggregateOutputType = {
33
+ id: string | null
34
+ name: string | null
35
+ }
36
+
37
+ export type TagCountAggregateOutputType = {
38
+ id: number
39
+ name: number
40
+ _all: number
41
+ }
42
+
43
+
44
+ export type TagMinAggregateInputType = {
45
+ id?: true
46
+ name?: true
47
+ }
48
+
49
+ export type TagMaxAggregateInputType = {
50
+ id?: true
51
+ name?: true
52
+ }
53
+
54
+ export type TagCountAggregateInputType = {
55
+ id?: true
56
+ name?: true
57
+ _all?: true
58
+ }
59
+
60
+ export type TagAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
61
+ /**
62
+ * Filter which Tag to aggregate.
63
+ */
64
+ where?: Prisma.TagWhereInput
65
+ /**
66
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
67
+ *
68
+ * Determine the order of Tags to fetch.
69
+ */
70
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
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.TagWhereUniqueInput
77
+ /**
78
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
79
+ *
80
+ * Take `±n` Tags 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` Tags.
87
+ */
88
+ skip?: number
89
+ /**
90
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
91
+ *
92
+ * Count returned Tags
93
+ **/
94
+ _count?: true | TagCountAggregateInputType
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?: TagMinAggregateInputType
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?: TagMaxAggregateInputType
107
+ }
108
+
109
+ export type GetTagAggregateType<T extends TagAggregateArgs> = {
110
+ [P in keyof T & keyof AggregateTag]: P extends '_count' | 'count'
111
+ ? T[P] extends true
112
+ ? number
113
+ : Prisma.GetScalarType<T[P], AggregateTag[P]>
114
+ : Prisma.GetScalarType<T[P], AggregateTag[P]>
115
+ }
116
+
117
+
118
+
119
+
120
+ export type TagGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
121
+ where?: Prisma.TagWhereInput
122
+ orderBy?: Prisma.TagOrderByWithAggregationInput | Prisma.TagOrderByWithAggregationInput[]
123
+ by: Prisma.TagScalarFieldEnum[] | Prisma.TagScalarFieldEnum
124
+ having?: Prisma.TagScalarWhereWithAggregatesInput
125
+ take?: number
126
+ skip?: number
127
+ _count?: TagCountAggregateInputType | true
128
+ _min?: TagMinAggregateInputType
129
+ _max?: TagMaxAggregateInputType
130
+ }
131
+
132
+ export type TagGroupByOutputType = {
133
+ id: string
134
+ name: string
135
+ _count: TagCountAggregateOutputType | null
136
+ _min: TagMinAggregateOutputType | null
137
+ _max: TagMaxAggregateOutputType | null
138
+ }
139
+
140
+ type GetTagGroupByPayload<T extends TagGroupByArgs> = Prisma.PrismaPromise<
141
+ Array<
142
+ Prisma.PickEnumerable<TagGroupByOutputType, T['by']> &
143
+ {
144
+ [P in ((keyof T) & (keyof TagGroupByOutputType))]: P extends '_count'
145
+ ? T[P] extends boolean
146
+ ? number
147
+ : Prisma.GetScalarType<T[P], TagGroupByOutputType[P]>
148
+ : Prisma.GetScalarType<T[P], TagGroupByOutputType[P]>
149
+ }
150
+ >
151
+ >
152
+
153
+
154
+
155
+ export type TagWhereInput = {
156
+ AND?: Prisma.TagWhereInput | Prisma.TagWhereInput[]
157
+ OR?: Prisma.TagWhereInput[]
158
+ NOT?: Prisma.TagWhereInput | Prisma.TagWhereInput[]
159
+ id?: Prisma.StringFilter<"Tag"> | string
160
+ name?: Prisma.StringFilter<"Tag"> | string
161
+ resources?: Prisma.ResourceListRelationFilter
162
+ }
163
+
164
+ export type TagOrderByWithRelationInput = {
165
+ id?: Prisma.SortOrder
166
+ name?: Prisma.SortOrder
167
+ resources?: Prisma.ResourceOrderByRelationAggregateInput
168
+ }
169
+
170
+ export type TagWhereUniqueInput = Prisma.AtLeast<{
171
+ id?: string
172
+ name?: string
173
+ AND?: Prisma.TagWhereInput | Prisma.TagWhereInput[]
174
+ OR?: Prisma.TagWhereInput[]
175
+ NOT?: Prisma.TagWhereInput | Prisma.TagWhereInput[]
176
+ resources?: Prisma.ResourceListRelationFilter
177
+ }, "id" | "name">
178
+
179
+ export type TagOrderByWithAggregationInput = {
180
+ id?: Prisma.SortOrder
181
+ name?: Prisma.SortOrder
182
+ _count?: Prisma.TagCountOrderByAggregateInput
183
+ _max?: Prisma.TagMaxOrderByAggregateInput
184
+ _min?: Prisma.TagMinOrderByAggregateInput
185
+ }
186
+
187
+ export type TagScalarWhereWithAggregatesInput = {
188
+ AND?: Prisma.TagScalarWhereWithAggregatesInput | Prisma.TagScalarWhereWithAggregatesInput[]
189
+ OR?: Prisma.TagScalarWhereWithAggregatesInput[]
190
+ NOT?: Prisma.TagScalarWhereWithAggregatesInput | Prisma.TagScalarWhereWithAggregatesInput[]
191
+ id?: Prisma.StringWithAggregatesFilter<"Tag"> | string
192
+ name?: Prisma.StringWithAggregatesFilter<"Tag"> | string
193
+ }
194
+
195
+ export type TagCreateInput = {
196
+ id?: string
197
+ name: string
198
+ resources?: Prisma.ResourceCreateNestedManyWithoutTagsInput
199
+ }
200
+
201
+ export type TagUncheckedCreateInput = {
202
+ id?: string
203
+ name: string
204
+ resources?: Prisma.ResourceUncheckedCreateNestedManyWithoutTagsInput
205
+ }
206
+
207
+ export type TagUpdateInput = {
208
+ id?: Prisma.StringFieldUpdateOperationsInput | string
209
+ name?: Prisma.StringFieldUpdateOperationsInput | string
210
+ resources?: Prisma.ResourceUpdateManyWithoutTagsNestedInput
211
+ }
212
+
213
+ export type TagUncheckedUpdateInput = {
214
+ id?: Prisma.StringFieldUpdateOperationsInput | string
215
+ name?: Prisma.StringFieldUpdateOperationsInput | string
216
+ resources?: Prisma.ResourceUncheckedUpdateManyWithoutTagsNestedInput
217
+ }
218
+
219
+ export type TagCreateManyInput = {
220
+ id?: string
221
+ name: string
222
+ }
223
+
224
+ export type TagUpdateManyMutationInput = {
225
+ id?: Prisma.StringFieldUpdateOperationsInput | string
226
+ name?: Prisma.StringFieldUpdateOperationsInput | string
227
+ }
228
+
229
+ export type TagUncheckedUpdateManyInput = {
230
+ id?: Prisma.StringFieldUpdateOperationsInput | string
231
+ name?: Prisma.StringFieldUpdateOperationsInput | string
232
+ }
233
+
234
+ export type TagListRelationFilter = {
235
+ every?: Prisma.TagWhereInput
236
+ some?: Prisma.TagWhereInput
237
+ none?: Prisma.TagWhereInput
238
+ }
239
+
240
+ export type TagOrderByRelationAggregateInput = {
241
+ _count?: Prisma.SortOrder
242
+ }
243
+
244
+ export type TagCountOrderByAggregateInput = {
245
+ id?: Prisma.SortOrder
246
+ name?: Prisma.SortOrder
247
+ }
248
+
249
+ export type TagMaxOrderByAggregateInput = {
250
+ id?: Prisma.SortOrder
251
+ name?: Prisma.SortOrder
252
+ }
253
+
254
+ export type TagMinOrderByAggregateInput = {
255
+ id?: Prisma.SortOrder
256
+ name?: Prisma.SortOrder
257
+ }
258
+
259
+ export type TagCreateNestedManyWithoutResourcesInput = {
260
+ create?: Prisma.XOR<Prisma.TagCreateWithoutResourcesInput, Prisma.TagUncheckedCreateWithoutResourcesInput> | Prisma.TagCreateWithoutResourcesInput[] | Prisma.TagUncheckedCreateWithoutResourcesInput[]
261
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutResourcesInput | Prisma.TagCreateOrConnectWithoutResourcesInput[]
262
+ connect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
263
+ }
264
+
265
+ export type TagUncheckedCreateNestedManyWithoutResourcesInput = {
266
+ create?: Prisma.XOR<Prisma.TagCreateWithoutResourcesInput, Prisma.TagUncheckedCreateWithoutResourcesInput> | Prisma.TagCreateWithoutResourcesInput[] | Prisma.TagUncheckedCreateWithoutResourcesInput[]
267
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutResourcesInput | Prisma.TagCreateOrConnectWithoutResourcesInput[]
268
+ connect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
269
+ }
270
+
271
+ export type TagUpdateManyWithoutResourcesNestedInput = {
272
+ create?: Prisma.XOR<Prisma.TagCreateWithoutResourcesInput, Prisma.TagUncheckedCreateWithoutResourcesInput> | Prisma.TagCreateWithoutResourcesInput[] | Prisma.TagUncheckedCreateWithoutResourcesInput[]
273
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutResourcesInput | Prisma.TagCreateOrConnectWithoutResourcesInput[]
274
+ upsert?: Prisma.TagUpsertWithWhereUniqueWithoutResourcesInput | Prisma.TagUpsertWithWhereUniqueWithoutResourcesInput[]
275
+ set?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
276
+ disconnect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
277
+ delete?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
278
+ connect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
279
+ update?: Prisma.TagUpdateWithWhereUniqueWithoutResourcesInput | Prisma.TagUpdateWithWhereUniqueWithoutResourcesInput[]
280
+ updateMany?: Prisma.TagUpdateManyWithWhereWithoutResourcesInput | Prisma.TagUpdateManyWithWhereWithoutResourcesInput[]
281
+ deleteMany?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
282
+ }
283
+
284
+ export type TagUncheckedUpdateManyWithoutResourcesNestedInput = {
285
+ create?: Prisma.XOR<Prisma.TagCreateWithoutResourcesInput, Prisma.TagUncheckedCreateWithoutResourcesInput> | Prisma.TagCreateWithoutResourcesInput[] | Prisma.TagUncheckedCreateWithoutResourcesInput[]
286
+ connectOrCreate?: Prisma.TagCreateOrConnectWithoutResourcesInput | Prisma.TagCreateOrConnectWithoutResourcesInput[]
287
+ upsert?: Prisma.TagUpsertWithWhereUniqueWithoutResourcesInput | Prisma.TagUpsertWithWhereUniqueWithoutResourcesInput[]
288
+ set?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
289
+ disconnect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
290
+ delete?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
291
+ connect?: Prisma.TagWhereUniqueInput | Prisma.TagWhereUniqueInput[]
292
+ update?: Prisma.TagUpdateWithWhereUniqueWithoutResourcesInput | Prisma.TagUpdateWithWhereUniqueWithoutResourcesInput[]
293
+ updateMany?: Prisma.TagUpdateManyWithWhereWithoutResourcesInput | Prisma.TagUpdateManyWithWhereWithoutResourcesInput[]
294
+ deleteMany?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
295
+ }
296
+
297
+ export type TagCreateWithoutResourcesInput = {
298
+ id?: string
299
+ name: string
300
+ }
301
+
302
+ export type TagUncheckedCreateWithoutResourcesInput = {
303
+ id?: string
304
+ name: string
305
+ }
306
+
307
+ export type TagCreateOrConnectWithoutResourcesInput = {
308
+ where: Prisma.TagWhereUniqueInput
309
+ create: Prisma.XOR<Prisma.TagCreateWithoutResourcesInput, Prisma.TagUncheckedCreateWithoutResourcesInput>
310
+ }
311
+
312
+ export type TagUpsertWithWhereUniqueWithoutResourcesInput = {
313
+ where: Prisma.TagWhereUniqueInput
314
+ update: Prisma.XOR<Prisma.TagUpdateWithoutResourcesInput, Prisma.TagUncheckedUpdateWithoutResourcesInput>
315
+ create: Prisma.XOR<Prisma.TagCreateWithoutResourcesInput, Prisma.TagUncheckedCreateWithoutResourcesInput>
316
+ }
317
+
318
+ export type TagUpdateWithWhereUniqueWithoutResourcesInput = {
319
+ where: Prisma.TagWhereUniqueInput
320
+ data: Prisma.XOR<Prisma.TagUpdateWithoutResourcesInput, Prisma.TagUncheckedUpdateWithoutResourcesInput>
321
+ }
322
+
323
+ export type TagUpdateManyWithWhereWithoutResourcesInput = {
324
+ where: Prisma.TagScalarWhereInput
325
+ data: Prisma.XOR<Prisma.TagUpdateManyMutationInput, Prisma.TagUncheckedUpdateManyWithoutResourcesInput>
326
+ }
327
+
328
+ export type TagScalarWhereInput = {
329
+ AND?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
330
+ OR?: Prisma.TagScalarWhereInput[]
331
+ NOT?: Prisma.TagScalarWhereInput | Prisma.TagScalarWhereInput[]
332
+ id?: Prisma.StringFilter<"Tag"> | string
333
+ name?: Prisma.StringFilter<"Tag"> | string
334
+ }
335
+
336
+ export type TagUpdateWithoutResourcesInput = {
337
+ id?: Prisma.StringFieldUpdateOperationsInput | string
338
+ name?: Prisma.StringFieldUpdateOperationsInput | string
339
+ }
340
+
341
+ export type TagUncheckedUpdateWithoutResourcesInput = {
342
+ id?: Prisma.StringFieldUpdateOperationsInput | string
343
+ name?: Prisma.StringFieldUpdateOperationsInput | string
344
+ }
345
+
346
+ export type TagUncheckedUpdateManyWithoutResourcesInput = {
347
+ id?: Prisma.StringFieldUpdateOperationsInput | string
348
+ name?: Prisma.StringFieldUpdateOperationsInput | string
349
+ }
350
+
351
+
352
+ /**
353
+ * Count Type TagCountOutputType
354
+ */
355
+
356
+ export type TagCountOutputType = {
357
+ resources: number
358
+ }
359
+
360
+ export type TagCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
361
+ resources?: boolean | TagCountOutputTypeCountResourcesArgs
362
+ }
363
+
364
+ /**
365
+ * TagCountOutputType without action
366
+ */
367
+ export type TagCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
368
+ /**
369
+ * Select specific fields to fetch from the TagCountOutputType
370
+ */
371
+ select?: Prisma.TagCountOutputTypeSelect<ExtArgs> | null
372
+ }
373
+
374
+ /**
375
+ * TagCountOutputType without action
376
+ */
377
+ export type TagCountOutputTypeCountResourcesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
378
+ where?: Prisma.ResourceWhereInput
379
+ }
380
+
381
+
382
+ export type TagSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
383
+ id?: boolean
384
+ name?: boolean
385
+ resources?: boolean | Prisma.Tag$resourcesArgs<ExtArgs>
386
+ _count?: boolean | Prisma.TagCountOutputTypeDefaultArgs<ExtArgs>
387
+ }, ExtArgs["result"]["tag"]>
388
+
389
+ export type TagSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
390
+ id?: boolean
391
+ name?: boolean
392
+ }, ExtArgs["result"]["tag"]>
393
+
394
+ export type TagSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
395
+ id?: boolean
396
+ name?: boolean
397
+ }, ExtArgs["result"]["tag"]>
398
+
399
+ export type TagSelectScalar = {
400
+ id?: boolean
401
+ name?: boolean
402
+ }
403
+
404
+ export type TagOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name", ExtArgs["result"]["tag"]>
405
+ export type TagInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
406
+ resources?: boolean | Prisma.Tag$resourcesArgs<ExtArgs>
407
+ _count?: boolean | Prisma.TagCountOutputTypeDefaultArgs<ExtArgs>
408
+ }
409
+ export type TagIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
410
+ export type TagIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
411
+
412
+ export type $TagPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
413
+ name: "Tag"
414
+ objects: {
415
+ resources: Prisma.$ResourcePayload<ExtArgs>[]
416
+ }
417
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
418
+ id: string
419
+ name: string
420
+ }, ExtArgs["result"]["tag"]>
421
+ composites: {}
422
+ }
423
+
424
+ export type TagGetPayload<S extends boolean | null | undefined | TagDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TagPayload, S>
425
+
426
+ export type TagCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
427
+ Omit<TagFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
428
+ select?: TagCountAggregateInputType | true
429
+ }
430
+
431
+ export interface TagDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
432
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Tag'], meta: { name: 'Tag' } }
433
+ /**
434
+ * Find zero or one Tag that matches the filter.
435
+ * @param {TagFindUniqueArgs} args - Arguments to find a Tag
436
+ * @example
437
+ * // Get one Tag
438
+ * const tag = await prisma.tag.findUnique({
439
+ * where: {
440
+ * // ... provide filter here
441
+ * }
442
+ * })
443
+ */
444
+ findUnique<T extends TagFindUniqueArgs>(args: Prisma.SelectSubset<T, TagFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
445
+
446
+ /**
447
+ * Find one Tag that matches the filter or throw an error with `error.code='P2025'`
448
+ * if no matches were found.
449
+ * @param {TagFindUniqueOrThrowArgs} args - Arguments to find a Tag
450
+ * @example
451
+ * // Get one Tag
452
+ * const tag = await prisma.tag.findUniqueOrThrow({
453
+ * where: {
454
+ * // ... provide filter here
455
+ * }
456
+ * })
457
+ */
458
+ findUniqueOrThrow<T extends TagFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TagFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
459
+
460
+ /**
461
+ * Find the first Tag 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 {TagFindFirstArgs} args - Arguments to find a Tag
465
+ * @example
466
+ * // Get one Tag
467
+ * const tag = await prisma.tag.findFirst({
468
+ * where: {
469
+ * // ... provide filter here
470
+ * }
471
+ * })
472
+ */
473
+ findFirst<T extends TagFindFirstArgs>(args?: Prisma.SelectSubset<T, TagFindFirstArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
474
+
475
+ /**
476
+ * Find the first Tag 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 {TagFindFirstOrThrowArgs} args - Arguments to find a Tag
481
+ * @example
482
+ * // Get one Tag
483
+ * const tag = await prisma.tag.findFirstOrThrow({
484
+ * where: {
485
+ * // ... provide filter here
486
+ * }
487
+ * })
488
+ */
489
+ findFirstOrThrow<T extends TagFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TagFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
490
+
491
+ /**
492
+ * Find zero or more Tags 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 {TagFindManyArgs} args - Arguments to filter and select certain fields only.
496
+ * @example
497
+ * // Get all Tags
498
+ * const tags = await prisma.tag.findMany()
499
+ *
500
+ * // Get first 10 Tags
501
+ * const tags = await prisma.tag.findMany({ take: 10 })
502
+ *
503
+ * // Only select the `id`
504
+ * const tagWithIdOnly = await prisma.tag.findMany({ select: { id: true } })
505
+ *
506
+ */
507
+ findMany<T extends TagFindManyArgs>(args?: Prisma.SelectSubset<T, TagFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
508
+
509
+ /**
510
+ * Create a Tag.
511
+ * @param {TagCreateArgs} args - Arguments to create a Tag.
512
+ * @example
513
+ * // Create one Tag
514
+ * const Tag = await prisma.tag.create({
515
+ * data: {
516
+ * // ... data to create a Tag
517
+ * }
518
+ * })
519
+ *
520
+ */
521
+ create<T extends TagCreateArgs>(args: Prisma.SelectSubset<T, TagCreateArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
522
+
523
+ /**
524
+ * Create many Tags.
525
+ * @param {TagCreateManyArgs} args - Arguments to create many Tags.
526
+ * @example
527
+ * // Create many Tags
528
+ * const tag = await prisma.tag.createMany({
529
+ * data: [
530
+ * // ... provide data here
531
+ * ]
532
+ * })
533
+ *
534
+ */
535
+ createMany<T extends TagCreateManyArgs>(args?: Prisma.SelectSubset<T, TagCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
536
+
537
+ /**
538
+ * Create many Tags and returns the data saved in the database.
539
+ * @param {TagCreateManyAndReturnArgs} args - Arguments to create many Tags.
540
+ * @example
541
+ * // Create many Tags
542
+ * const tag = await prisma.tag.createManyAndReturn({
543
+ * data: [
544
+ * // ... provide data here
545
+ * ]
546
+ * })
547
+ *
548
+ * // Create many Tags and only return the `id`
549
+ * const tagWithIdOnly = await prisma.tag.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 TagCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TagCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
560
+
561
+ /**
562
+ * Delete a Tag.
563
+ * @param {TagDeleteArgs} args - Arguments to delete one Tag.
564
+ * @example
565
+ * // Delete one Tag
566
+ * const Tag = await prisma.tag.delete({
567
+ * where: {
568
+ * // ... filter to delete one Tag
569
+ * }
570
+ * })
571
+ *
572
+ */
573
+ delete<T extends TagDeleteArgs>(args: Prisma.SelectSubset<T, TagDeleteArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
574
+
575
+ /**
576
+ * Update one Tag.
577
+ * @param {TagUpdateArgs} args - Arguments to update one Tag.
578
+ * @example
579
+ * // Update one Tag
580
+ * const tag = await prisma.tag.update({
581
+ * where: {
582
+ * // ... provide filter here
583
+ * },
584
+ * data: {
585
+ * // ... provide data here
586
+ * }
587
+ * })
588
+ *
589
+ */
590
+ update<T extends TagUpdateArgs>(args: Prisma.SelectSubset<T, TagUpdateArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
591
+
592
+ /**
593
+ * Delete zero or more Tags.
594
+ * @param {TagDeleteManyArgs} args - Arguments to filter Tags to delete.
595
+ * @example
596
+ * // Delete a few Tags
597
+ * const { count } = await prisma.tag.deleteMany({
598
+ * where: {
599
+ * // ... provide filter here
600
+ * }
601
+ * })
602
+ *
603
+ */
604
+ deleteMany<T extends TagDeleteManyArgs>(args?: Prisma.SelectSubset<T, TagDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
605
+
606
+ /**
607
+ * Update zero or more Tags.
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 {TagUpdateManyArgs} args - Arguments to update one or more rows.
611
+ * @example
612
+ * // Update many Tags
613
+ * const tag = await prisma.tag.updateMany({
614
+ * where: {
615
+ * // ... provide filter here
616
+ * },
617
+ * data: {
618
+ * // ... provide data here
619
+ * }
620
+ * })
621
+ *
622
+ */
623
+ updateMany<T extends TagUpdateManyArgs>(args: Prisma.SelectSubset<T, TagUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
624
+
625
+ /**
626
+ * Update zero or more Tags and returns the data updated in the database.
627
+ * @param {TagUpdateManyAndReturnArgs} args - Arguments to update many Tags.
628
+ * @example
629
+ * // Update many Tags
630
+ * const tag = await prisma.tag.updateManyAndReturn({
631
+ * where: {
632
+ * // ... provide filter here
633
+ * },
634
+ * data: [
635
+ * // ... provide data here
636
+ * ]
637
+ * })
638
+ *
639
+ * // Update zero or more Tags and only return the `id`
640
+ * const tagWithIdOnly = await prisma.tag.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 TagUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TagUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
654
+
655
+ /**
656
+ * Create or update one Tag.
657
+ * @param {TagUpsertArgs} args - Arguments to update or create a Tag.
658
+ * @example
659
+ * // Update or create a Tag
660
+ * const tag = await prisma.tag.upsert({
661
+ * create: {
662
+ * // ... data to create a Tag
663
+ * },
664
+ * update: {
665
+ * // ... in case it already exists, update
666
+ * },
667
+ * where: {
668
+ * // ... the filter for the Tag we want to update
669
+ * }
670
+ * })
671
+ */
672
+ upsert<T extends TagUpsertArgs>(args: Prisma.SelectSubset<T, TagUpsertArgs<ExtArgs>>): Prisma.Prisma__TagClient<runtime.Types.Result.GetResult<Prisma.$TagPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
673
+
674
+
675
+ /**
676
+ * Count the number of Tags.
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 {TagCountArgs} args - Arguments to filter Tags to count.
680
+ * @example
681
+ * // Count the number of Tags
682
+ * const count = await prisma.tag.count({
683
+ * where: {
684
+ * // ... the filter for the Tags we want to count
685
+ * }
686
+ * })
687
+ **/
688
+ count<T extends TagCountArgs>(
689
+ args?: Prisma.Subset<T, TagCountArgs>,
690
+ ): Prisma.PrismaPromise<
691
+ T extends runtime.Types.Utils.Record<'select', any>
692
+ ? T['select'] extends true
693
+ ? number
694
+ : Prisma.GetScalarType<T['select'], TagCountAggregateOutputType>
695
+ : number
696
+ >
697
+
698
+ /**
699
+ * Allows you to perform aggregations operations on a Tag.
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 {TagAggregateArgs} 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 TagAggregateArgs>(args: Prisma.Subset<T, TagAggregateArgs>): Prisma.PrismaPromise<GetTagAggregateType<T>>
723
+
724
+ /**
725
+ * Group by Tag.
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 {TagGroupByArgs} 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 TagGroupByArgs,
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: TagGroupByArgs['orderBy'] }
750
+ : { orderBy?: TagGroupByArgs['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, TagGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTagGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
800
+ /**
801
+ * Fields of the Tag model
802
+ */
803
+ readonly fields: TagFieldRefs;
804
+ }
805
+
806
+ /**
807
+ * The delegate class that acts as a "Promise-like" for Tag.
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__TagClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
813
+ readonly [Symbol.toStringTag]: "PrismaPromise"
814
+ resources<T extends Prisma.Tag$resourcesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Tag$resourcesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ResourcePayload<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 Tag model
842
+ */
843
+ export interface TagFieldRefs {
844
+ readonly id: Prisma.FieldRef<"Tag", 'String'>
845
+ readonly name: Prisma.FieldRef<"Tag", 'String'>
846
+ }
847
+
848
+
849
+ // Custom InputTypes
850
+ /**
851
+ * Tag findUnique
852
+ */
853
+ export type TagFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
854
+ /**
855
+ * Select specific fields to fetch from the Tag
856
+ */
857
+ select?: Prisma.TagSelect<ExtArgs> | null
858
+ /**
859
+ * Omit specific fields from the Tag
860
+ */
861
+ omit?: Prisma.TagOmit<ExtArgs> | null
862
+ /**
863
+ * Choose, which related nodes to fetch as well
864
+ */
865
+ include?: Prisma.TagInclude<ExtArgs> | null
866
+ /**
867
+ * Filter, which Tag to fetch.
868
+ */
869
+ where: Prisma.TagWhereUniqueInput
870
+ }
871
+
872
+ /**
873
+ * Tag findUniqueOrThrow
874
+ */
875
+ export type TagFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
876
+ /**
877
+ * Select specific fields to fetch from the Tag
878
+ */
879
+ select?: Prisma.TagSelect<ExtArgs> | null
880
+ /**
881
+ * Omit specific fields from the Tag
882
+ */
883
+ omit?: Prisma.TagOmit<ExtArgs> | null
884
+ /**
885
+ * Choose, which related nodes to fetch as well
886
+ */
887
+ include?: Prisma.TagInclude<ExtArgs> | null
888
+ /**
889
+ * Filter, which Tag to fetch.
890
+ */
891
+ where: Prisma.TagWhereUniqueInput
892
+ }
893
+
894
+ /**
895
+ * Tag findFirst
896
+ */
897
+ export type TagFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
898
+ /**
899
+ * Select specific fields to fetch from the Tag
900
+ */
901
+ select?: Prisma.TagSelect<ExtArgs> | null
902
+ /**
903
+ * Omit specific fields from the Tag
904
+ */
905
+ omit?: Prisma.TagOmit<ExtArgs> | null
906
+ /**
907
+ * Choose, which related nodes to fetch as well
908
+ */
909
+ include?: Prisma.TagInclude<ExtArgs> | null
910
+ /**
911
+ * Filter, which Tag to fetch.
912
+ */
913
+ where?: Prisma.TagWhereInput
914
+ /**
915
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
916
+ *
917
+ * Determine the order of Tags to fetch.
918
+ */
919
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
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 Tags.
924
+ */
925
+ cursor?: Prisma.TagWhereUniqueInput
926
+ /**
927
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
928
+ *
929
+ * Take `±n` Tags 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` Tags.
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 Tags.
942
+ */
943
+ distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
944
+ }
945
+
946
+ /**
947
+ * Tag findFirstOrThrow
948
+ */
949
+ export type TagFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
950
+ /**
951
+ * Select specific fields to fetch from the Tag
952
+ */
953
+ select?: Prisma.TagSelect<ExtArgs> | null
954
+ /**
955
+ * Omit specific fields from the Tag
956
+ */
957
+ omit?: Prisma.TagOmit<ExtArgs> | null
958
+ /**
959
+ * Choose, which related nodes to fetch as well
960
+ */
961
+ include?: Prisma.TagInclude<ExtArgs> | null
962
+ /**
963
+ * Filter, which Tag to fetch.
964
+ */
965
+ where?: Prisma.TagWhereInput
966
+ /**
967
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
968
+ *
969
+ * Determine the order of Tags to fetch.
970
+ */
971
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
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 Tags.
976
+ */
977
+ cursor?: Prisma.TagWhereUniqueInput
978
+ /**
979
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
980
+ *
981
+ * Take `±n` Tags 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` Tags.
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 Tags.
994
+ */
995
+ distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
996
+ }
997
+
998
+ /**
999
+ * Tag findMany
1000
+ */
1001
+ export type TagFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1002
+ /**
1003
+ * Select specific fields to fetch from the Tag
1004
+ */
1005
+ select?: Prisma.TagSelect<ExtArgs> | null
1006
+ /**
1007
+ * Omit specific fields from the Tag
1008
+ */
1009
+ omit?: Prisma.TagOmit<ExtArgs> | null
1010
+ /**
1011
+ * Choose, which related nodes to fetch as well
1012
+ */
1013
+ include?: Prisma.TagInclude<ExtArgs> | null
1014
+ /**
1015
+ * Filter, which Tags to fetch.
1016
+ */
1017
+ where?: Prisma.TagWhereInput
1018
+ /**
1019
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1020
+ *
1021
+ * Determine the order of Tags to fetch.
1022
+ */
1023
+ orderBy?: Prisma.TagOrderByWithRelationInput | Prisma.TagOrderByWithRelationInput[]
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 Tags.
1028
+ */
1029
+ cursor?: Prisma.TagWhereUniqueInput
1030
+ /**
1031
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1032
+ *
1033
+ * Take `±n` Tags 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` Tags.
1040
+ */
1041
+ skip?: number
1042
+ distinct?: Prisma.TagScalarFieldEnum | Prisma.TagScalarFieldEnum[]
1043
+ }
1044
+
1045
+ /**
1046
+ * Tag create
1047
+ */
1048
+ export type TagCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1049
+ /**
1050
+ * Select specific fields to fetch from the Tag
1051
+ */
1052
+ select?: Prisma.TagSelect<ExtArgs> | null
1053
+ /**
1054
+ * Omit specific fields from the Tag
1055
+ */
1056
+ omit?: Prisma.TagOmit<ExtArgs> | null
1057
+ /**
1058
+ * Choose, which related nodes to fetch as well
1059
+ */
1060
+ include?: Prisma.TagInclude<ExtArgs> | null
1061
+ /**
1062
+ * The data needed to create a Tag.
1063
+ */
1064
+ data: Prisma.XOR<Prisma.TagCreateInput, Prisma.TagUncheckedCreateInput>
1065
+ }
1066
+
1067
+ /**
1068
+ * Tag createMany
1069
+ */
1070
+ export type TagCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1071
+ /**
1072
+ * The data used to create many Tags.
1073
+ */
1074
+ data: Prisma.TagCreateManyInput | Prisma.TagCreateManyInput[]
1075
+ }
1076
+
1077
+ /**
1078
+ * Tag createManyAndReturn
1079
+ */
1080
+ export type TagCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1081
+ /**
1082
+ * Select specific fields to fetch from the Tag
1083
+ */
1084
+ select?: Prisma.TagSelectCreateManyAndReturn<ExtArgs> | null
1085
+ /**
1086
+ * Omit specific fields from the Tag
1087
+ */
1088
+ omit?: Prisma.TagOmit<ExtArgs> | null
1089
+ /**
1090
+ * The data used to create many Tags.
1091
+ */
1092
+ data: Prisma.TagCreateManyInput | Prisma.TagCreateManyInput[]
1093
+ }
1094
+
1095
+ /**
1096
+ * Tag update
1097
+ */
1098
+ export type TagUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1099
+ /**
1100
+ * Select specific fields to fetch from the Tag
1101
+ */
1102
+ select?: Prisma.TagSelect<ExtArgs> | null
1103
+ /**
1104
+ * Omit specific fields from the Tag
1105
+ */
1106
+ omit?: Prisma.TagOmit<ExtArgs> | null
1107
+ /**
1108
+ * Choose, which related nodes to fetch as well
1109
+ */
1110
+ include?: Prisma.TagInclude<ExtArgs> | null
1111
+ /**
1112
+ * The data needed to update a Tag.
1113
+ */
1114
+ data: Prisma.XOR<Prisma.TagUpdateInput, Prisma.TagUncheckedUpdateInput>
1115
+ /**
1116
+ * Choose, which Tag to update.
1117
+ */
1118
+ where: Prisma.TagWhereUniqueInput
1119
+ }
1120
+
1121
+ /**
1122
+ * Tag updateMany
1123
+ */
1124
+ export type TagUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1125
+ /**
1126
+ * The data used to update Tags.
1127
+ */
1128
+ data: Prisma.XOR<Prisma.TagUpdateManyMutationInput, Prisma.TagUncheckedUpdateManyInput>
1129
+ /**
1130
+ * Filter which Tags to update
1131
+ */
1132
+ where?: Prisma.TagWhereInput
1133
+ /**
1134
+ * Limit how many Tags to update.
1135
+ */
1136
+ limit?: number
1137
+ }
1138
+
1139
+ /**
1140
+ * Tag updateManyAndReturn
1141
+ */
1142
+ export type TagUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1143
+ /**
1144
+ * Select specific fields to fetch from the Tag
1145
+ */
1146
+ select?: Prisma.TagSelectUpdateManyAndReturn<ExtArgs> | null
1147
+ /**
1148
+ * Omit specific fields from the Tag
1149
+ */
1150
+ omit?: Prisma.TagOmit<ExtArgs> | null
1151
+ /**
1152
+ * The data used to update Tags.
1153
+ */
1154
+ data: Prisma.XOR<Prisma.TagUpdateManyMutationInput, Prisma.TagUncheckedUpdateManyInput>
1155
+ /**
1156
+ * Filter which Tags to update
1157
+ */
1158
+ where?: Prisma.TagWhereInput
1159
+ /**
1160
+ * Limit how many Tags to update.
1161
+ */
1162
+ limit?: number
1163
+ }
1164
+
1165
+ /**
1166
+ * Tag upsert
1167
+ */
1168
+ export type TagUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1169
+ /**
1170
+ * Select specific fields to fetch from the Tag
1171
+ */
1172
+ select?: Prisma.TagSelect<ExtArgs> | null
1173
+ /**
1174
+ * Omit specific fields from the Tag
1175
+ */
1176
+ omit?: Prisma.TagOmit<ExtArgs> | null
1177
+ /**
1178
+ * Choose, which related nodes to fetch as well
1179
+ */
1180
+ include?: Prisma.TagInclude<ExtArgs> | null
1181
+ /**
1182
+ * The filter to search for the Tag to update in case it exists.
1183
+ */
1184
+ where: Prisma.TagWhereUniqueInput
1185
+ /**
1186
+ * In case the Tag found by the `where` argument doesn't exist, create a new Tag with this data.
1187
+ */
1188
+ create: Prisma.XOR<Prisma.TagCreateInput, Prisma.TagUncheckedCreateInput>
1189
+ /**
1190
+ * In case the Tag was found with the provided `where` argument, update it with this data.
1191
+ */
1192
+ update: Prisma.XOR<Prisma.TagUpdateInput, Prisma.TagUncheckedUpdateInput>
1193
+ }
1194
+
1195
+ /**
1196
+ * Tag delete
1197
+ */
1198
+ export type TagDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1199
+ /**
1200
+ * Select specific fields to fetch from the Tag
1201
+ */
1202
+ select?: Prisma.TagSelect<ExtArgs> | null
1203
+ /**
1204
+ * Omit specific fields from the Tag
1205
+ */
1206
+ omit?: Prisma.TagOmit<ExtArgs> | null
1207
+ /**
1208
+ * Choose, which related nodes to fetch as well
1209
+ */
1210
+ include?: Prisma.TagInclude<ExtArgs> | null
1211
+ /**
1212
+ * Filter which Tag to delete.
1213
+ */
1214
+ where: Prisma.TagWhereUniqueInput
1215
+ }
1216
+
1217
+ /**
1218
+ * Tag deleteMany
1219
+ */
1220
+ export type TagDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1221
+ /**
1222
+ * Filter which Tags to delete
1223
+ */
1224
+ where?: Prisma.TagWhereInput
1225
+ /**
1226
+ * Limit how many Tags to delete.
1227
+ */
1228
+ limit?: number
1229
+ }
1230
+
1231
+ /**
1232
+ * Tag.resources
1233
+ */
1234
+ export type Tag$resourcesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1235
+ /**
1236
+ * Select specific fields to fetch from the Resource
1237
+ */
1238
+ select?: Prisma.ResourceSelect<ExtArgs> | null
1239
+ /**
1240
+ * Omit specific fields from the Resource
1241
+ */
1242
+ omit?: Prisma.ResourceOmit<ExtArgs> | null
1243
+ /**
1244
+ * Choose, which related nodes to fetch as well
1245
+ */
1246
+ include?: Prisma.ResourceInclude<ExtArgs> | null
1247
+ where?: Prisma.ResourceWhereInput
1248
+ orderBy?: Prisma.ResourceOrderByWithRelationInput | Prisma.ResourceOrderByWithRelationInput[]
1249
+ cursor?: Prisma.ResourceWhereUniqueInput
1250
+ take?: number
1251
+ skip?: number
1252
+ distinct?: Prisma.ResourceScalarFieldEnum | Prisma.ResourceScalarFieldEnum[]
1253
+ }
1254
+
1255
+ /**
1256
+ * Tag without action
1257
+ */
1258
+ export type TagDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1259
+ /**
1260
+ * Select specific fields to fetch from the Tag
1261
+ */
1262
+ select?: Prisma.TagSelect<ExtArgs> | null
1263
+ /**
1264
+ * Omit specific fields from the Tag
1265
+ */
1266
+ omit?: Prisma.TagOmit<ExtArgs> | null
1267
+ /**
1268
+ * Choose, which related nodes to fetch as well
1269
+ */
1270
+ include?: Prisma.TagInclude<ExtArgs> | null
1271
+ }