@cerbos/orm-prisma 3.3.0 → 4.1.0

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