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