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