@cerbos/orm-prisma 4.1.0 → 5.0.0

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