@cerbos/orm-prisma 4.0.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 (203) hide show
  1. package/README.md +611 -460
  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 +91 -8
  31. package/lib/index.d.ts.map +1 -1
  32. package/lib/index.js +34 -2301
  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 +31 -18
  95. package/src/adversarial.test.ts +488 -488
  96. package/src/collections.ts +738 -0
  97. package/src/comparison.ts +1157 -0
  98. package/src/corpus.ts +597 -0
  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 +20 -0
  104. package/src/generated/prisma-adversarial/client.ts +20 -0
  105. package/src/generated/prisma-adversarial/commonInputTypes.ts +116 -127
  106. package/src/generated/prisma-adversarial/internal/class.ts +44 -4
  107. package/src/generated/prisma-adversarial/internal/prismaNamespace.ts +350 -3
  108. package/src/generated/prisma-adversarial/internal/prismaNamespaceBrowser.ts +49 -2
  109. package/src/generated/prisma-adversarial/models/AdversarialBoolListElement.ts +1272 -0
  110. package/src/generated/prisma-adversarial/models/AdversarialInner.ts +1369 -0
  111. package/src/generated/prisma-adversarial/models/AdversarialNumberListElement.ts +1316 -0
  112. package/src/generated/prisma-adversarial/models/AdversarialParent.ts +1474 -0
  113. package/src/generated/prisma-adversarial/models/AdversarialResource.ts +547 -75
  114. package/src/generated/prisma-adversarial/models.ts +4 -0
  115. package/src/generated/prisma-adversarial-mysql/browser.ts +64 -0
  116. package/src/generated/{prisma → prisma-adversarial-mysql}/client.ts +23 -18
  117. package/src/generated/{prisma → prisma-adversarial-mysql}/commonInputTypes.ts +167 -92
  118. package/src/generated/prisma-adversarial-mysql/internal/class.ts +284 -0
  119. package/src/generated/prisma-adversarial-mysql/internal/prismaNamespace.ts +1518 -0
  120. package/src/generated/prisma-adversarial-mysql/internal/prismaNamespaceBrowser.ts +274 -0
  121. package/src/generated/prisma-adversarial-mysql/models/AdversarialBoolListElement.ts +1157 -0
  122. package/src/generated/prisma-adversarial-mysql/models/AdversarialCategory.ts +1286 -0
  123. package/src/generated/prisma-adversarial-mysql/models/AdversarialInner.ts +1247 -0
  124. package/src/generated/prisma-adversarial-mysql/models/AdversarialLabel.ts +1157 -0
  125. package/src/generated/prisma-adversarial-mysql/models/AdversarialNumberListElement.ts +1201 -0
  126. package/src/generated/prisma-adversarial-mysql/models/AdversarialParent.ts +1352 -0
  127. package/src/generated/prisma-adversarial-mysql/models/AdversarialResource.ts +2021 -0
  128. package/src/generated/prisma-adversarial-mysql/models/AdversarialSubCategory.ts +1286 -0
  129. package/src/generated/prisma-adversarial-mysql/models/AdversarialTag.ts +1190 -0
  130. package/src/generated/prisma-adversarial-mysql/models.ts +20 -0
  131. package/src/generated/prisma-adversarial-mysql-v6/index.d.ts +13822 -0
  132. package/src/generated/prisma-adversarial-pg/browser.ts +64 -0
  133. package/src/generated/prisma-adversarial-pg/client.ts +86 -0
  134. package/src/generated/prisma-adversarial-pg/commonInputTypes.ts +345 -0
  135. package/src/generated/prisma-adversarial-pg/enums.ts +15 -0
  136. package/src/generated/prisma-adversarial-pg/internal/class.ts +284 -0
  137. package/src/generated/prisma-adversarial-pg/internal/prismaNamespace.ts +1542 -0
  138. package/src/generated/{prisma → prisma-adversarial-pg}/internal/prismaNamespaceBrowser.ts +72 -43
  139. package/src/generated/prisma-adversarial-pg/models/AdversarialBoolListElement.ts +1275 -0
  140. package/src/generated/prisma-adversarial-pg/models/AdversarialCategory.ts +1404 -0
  141. package/src/generated/prisma-adversarial-pg/models/AdversarialInner.ts +1371 -0
  142. package/src/generated/prisma-adversarial-pg/models/AdversarialLabel.ts +1275 -0
  143. package/src/generated/prisma-adversarial-pg/models/AdversarialNumberListElement.ts +1319 -0
  144. package/src/generated/prisma-adversarial-pg/models/AdversarialParent.ts +1476 -0
  145. package/src/generated/prisma-adversarial-pg/models/AdversarialResource.ts +2139 -0
  146. package/src/generated/prisma-adversarial-pg/models/AdversarialSubCategory.ts +1404 -0
  147. package/src/generated/prisma-adversarial-pg/models/AdversarialTag.ts +1310 -0
  148. package/src/generated/prisma-adversarial-pg/models.ts +20 -0
  149. package/src/generated/prisma-adversarial-pg-v6/client.d.ts +1 -0
  150. package/src/generated/prisma-adversarial-pg-v6/default.d.ts +1 -0
  151. package/src/generated/prisma-adversarial-pg-v6/edge.d.ts +1 -0
  152. package/src/generated/prisma-adversarial-pg-v6/index.d.ts +14918 -0
  153. package/src/generated/prisma-adversarial-pg-v6/runtime/index-browser.d.ts +370 -0
  154. package/src/generated/prisma-adversarial-pg-v6/runtime/library.d.ts +3982 -0
  155. package/src/generated/prisma-adversarial-pg-v6/wasm.d.ts +1 -0
  156. package/src/generated/prisma-adversarial-v6/index.d.ts +6515 -304
  157. package/src/hierarchy.ts +405 -0
  158. package/src/index.ts +134 -3325
  159. package/src/literals.ts +363 -0
  160. package/src/mapping.ts +474 -0
  161. package/src/narrowing.ts +33 -0
  162. package/src/plan.ts +125 -0
  163. package/src/presence.ts +114 -0
  164. package/src/regex.ts +596 -0
  165. package/src/relations.ts +226 -0
  166. package/src/rewrite.ts +524 -0
  167. package/src/solve.ts +96 -0
  168. package/src/strings.ts +152 -0
  169. package/src/ternary.ts +359 -0
  170. package/src/test-setup.adversarial-url.ts +21 -0
  171. package/src/test-setup.adversarial.mysql.v6.ts +13 -0
  172. package/src/test-setup.adversarial.mysql.v7.ts +12 -0
  173. package/src/test-setup.adversarial.pg.v6.ts +13 -0
  174. package/src/test-setup.adversarial.pg.v7.ts +9 -0
  175. package/src/test-setup.adversarial.v7.ts +1 -0
  176. package/src/timestamp.ts +308 -0
  177. package/src/translate.ts +419 -0
  178. package/src/translator.test.ts +766 -0
  179. package/src/types.ts +1310 -0
  180. package/src/value.ts +16 -0
  181. package/src/generated/prisma/browser.ts +0 -59
  182. package/src/generated/prisma/internal/class.ts +0 -274
  183. package/src/generated/prisma/internal/prismaNamespace.ts +0 -1403
  184. package/src/generated/prisma/models/Category.ts +0 -1412
  185. package/src/generated/prisma/models/Label.ts +0 -1276
  186. package/src/generated/prisma/models/NestedResource.ts +0 -1562
  187. package/src/generated/prisma/models/NextLevelNestedResource.ts +0 -1337
  188. package/src/generated/prisma/models/Resource.ts +0 -2196
  189. package/src/generated/prisma/models/SubCategory.ts +0 -1412
  190. package/src/generated/prisma/models/Tag.ts +0 -1276
  191. package/src/generated/prisma/models/User.ts +0 -1503
  192. package/src/generated/prisma/models.ts +0 -19
  193. package/src/generated/prisma-v6/index.d.ts +0 -13726
  194. package/src/index.test.ts +0 -8885
  195. package/src/test-setup.v6.ts +0 -5
  196. package/src/test-setup.v7.ts +0 -7
  197. /package/src/generated/{prisma → prisma-adversarial-mysql}/enums.ts +0 -0
  198. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/client.d.ts +0 -0
  199. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/default.d.ts +0 -0
  200. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/edge.d.ts +0 -0
  201. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/runtime/index-browser.d.ts +0 -0
  202. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/runtime/library.d.ts +0 -0
  203. /package/src/generated/{prisma-v6 → prisma-adversarial-mysql-v6}/wasm.d.ts +0 -0
@@ -0,0 +1,2139 @@
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 `AdversarialResource` 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 AdversarialResource
17
+ *
18
+ */
19
+ export type AdversarialResourceModel = runtime.Types.Result.DefaultSelection<Prisma.$AdversarialResourcePayload>
20
+
21
+ export type AggregateAdversarialResource = {
22
+ _count: AdversarialResourceCountAggregateOutputType | null
23
+ _avg: AdversarialResourceAvgAggregateOutputType | null
24
+ _sum: AdversarialResourceSumAggregateOutputType | null
25
+ _min: AdversarialResourceMinAggregateOutputType | null
26
+ _max: AdversarialResourceMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type AdversarialResourceAvgAggregateOutputType = {
30
+ aNumber: number | null
31
+ aDouble: number | null
32
+ }
33
+
34
+ export type AdversarialResourceSumAggregateOutputType = {
35
+ aNumber: number | null
36
+ aDouble: number | null
37
+ }
38
+
39
+ export type AdversarialResourceMinAggregateOutputType = {
40
+ id: string | null
41
+ aBool: boolean | null
42
+ aString: string | null
43
+ aNumber: number | null
44
+ aDouble: number | null
45
+ aOptionalString: string | null
46
+ createdBy: string | null
47
+ scope: string | null
48
+ createdAt: Date | null
49
+ updatedAt: Date | null
50
+ }
51
+
52
+ export type AdversarialResourceMaxAggregateOutputType = {
53
+ id: string | null
54
+ aBool: boolean | null
55
+ aString: string | null
56
+ aNumber: number | null
57
+ aDouble: number | null
58
+ aOptionalString: string | null
59
+ createdBy: string | null
60
+ scope: string | null
61
+ createdAt: Date | null
62
+ updatedAt: Date | null
63
+ }
64
+
65
+ export type AdversarialResourceCountAggregateOutputType = {
66
+ id: number
67
+ aBool: number
68
+ aString: number
69
+ aNumber: number
70
+ aDouble: number
71
+ aOptionalString: number
72
+ createdBy: number
73
+ scope: number
74
+ createdAt: number
75
+ updatedAt: number
76
+ _all: number
77
+ }
78
+
79
+
80
+ export type AdversarialResourceAvgAggregateInputType = {
81
+ aNumber?: true
82
+ aDouble?: true
83
+ }
84
+
85
+ export type AdversarialResourceSumAggregateInputType = {
86
+ aNumber?: true
87
+ aDouble?: true
88
+ }
89
+
90
+ export type AdversarialResourceMinAggregateInputType = {
91
+ id?: true
92
+ aBool?: true
93
+ aString?: true
94
+ aNumber?: true
95
+ aDouble?: true
96
+ aOptionalString?: true
97
+ createdBy?: true
98
+ scope?: true
99
+ createdAt?: true
100
+ updatedAt?: true
101
+ }
102
+
103
+ export type AdversarialResourceMaxAggregateInputType = {
104
+ id?: true
105
+ aBool?: true
106
+ aString?: true
107
+ aNumber?: true
108
+ aDouble?: true
109
+ aOptionalString?: true
110
+ createdBy?: true
111
+ scope?: true
112
+ createdAt?: true
113
+ updatedAt?: true
114
+ }
115
+
116
+ export type AdversarialResourceCountAggregateInputType = {
117
+ id?: true
118
+ aBool?: true
119
+ aString?: true
120
+ aNumber?: true
121
+ aDouble?: true
122
+ aOptionalString?: true
123
+ createdBy?: true
124
+ scope?: true
125
+ createdAt?: true
126
+ updatedAt?: true
127
+ _all?: true
128
+ }
129
+
130
+ export type AdversarialResourceAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
131
+ /**
132
+ * Filter which AdversarialResource to aggregate.
133
+ */
134
+ where?: Prisma.AdversarialResourceWhereInput
135
+ /**
136
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
137
+ *
138
+ * Determine the order of AdversarialResources to fetch.
139
+ */
140
+ orderBy?: Prisma.AdversarialResourceOrderByWithRelationInput | Prisma.AdversarialResourceOrderByWithRelationInput[]
141
+ /**
142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
143
+ *
144
+ * Sets the start position
145
+ */
146
+ cursor?: Prisma.AdversarialResourceWhereUniqueInput
147
+ /**
148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
149
+ *
150
+ * Take `±n` AdversarialResources from the position of the cursor.
151
+ */
152
+ take?: number
153
+ /**
154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
155
+ *
156
+ * Skip the first `n` AdversarialResources.
157
+ */
158
+ skip?: number
159
+ /**
160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
161
+ *
162
+ * Count returned AdversarialResources
163
+ **/
164
+ _count?: true | AdversarialResourceCountAggregateInputType
165
+ /**
166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
167
+ *
168
+ * Select which fields to average
169
+ **/
170
+ _avg?: AdversarialResourceAvgAggregateInputType
171
+ /**
172
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
173
+ *
174
+ * Select which fields to sum
175
+ **/
176
+ _sum?: AdversarialResourceSumAggregateInputType
177
+ /**
178
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
179
+ *
180
+ * Select which fields to find the minimum value
181
+ **/
182
+ _min?: AdversarialResourceMinAggregateInputType
183
+ /**
184
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
185
+ *
186
+ * Select which fields to find the maximum value
187
+ **/
188
+ _max?: AdversarialResourceMaxAggregateInputType
189
+ }
190
+
191
+ export type GetAdversarialResourceAggregateType<T extends AdversarialResourceAggregateArgs> = {
192
+ [P in keyof T & keyof AggregateAdversarialResource]: P extends '_count' | 'count'
193
+ ? T[P] extends true
194
+ ? number
195
+ : Prisma.GetScalarType<T[P], AggregateAdversarialResource[P]>
196
+ : Prisma.GetScalarType<T[P], AggregateAdversarialResource[P]>
197
+ }
198
+
199
+
200
+
201
+
202
+ export type AdversarialResourceGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
203
+ where?: Prisma.AdversarialResourceWhereInput
204
+ orderBy?: Prisma.AdversarialResourceOrderByWithAggregationInput | Prisma.AdversarialResourceOrderByWithAggregationInput[]
205
+ by: Prisma.AdversarialResourceScalarFieldEnum[] | Prisma.AdversarialResourceScalarFieldEnum
206
+ having?: Prisma.AdversarialResourceScalarWhereWithAggregatesInput
207
+ take?: number
208
+ skip?: number
209
+ _count?: AdversarialResourceCountAggregateInputType | true
210
+ _avg?: AdversarialResourceAvgAggregateInputType
211
+ _sum?: AdversarialResourceSumAggregateInputType
212
+ _min?: AdversarialResourceMinAggregateInputType
213
+ _max?: AdversarialResourceMaxAggregateInputType
214
+ }
215
+
216
+ export type AdversarialResourceGroupByOutputType = {
217
+ id: string
218
+ aBool: boolean | null
219
+ aString: string | null
220
+ aNumber: number | null
221
+ aDouble: number | null
222
+ aOptionalString: string | null
223
+ createdBy: string
224
+ scope: string | null
225
+ createdAt: Date | null
226
+ updatedAt: Date | null
227
+ _count: AdversarialResourceCountAggregateOutputType | null
228
+ _avg: AdversarialResourceAvgAggregateOutputType | null
229
+ _sum: AdversarialResourceSumAggregateOutputType | null
230
+ _min: AdversarialResourceMinAggregateOutputType | null
231
+ _max: AdversarialResourceMaxAggregateOutputType | null
232
+ }
233
+
234
+ export type GetAdversarialResourceGroupByPayload<T extends AdversarialResourceGroupByArgs> = Prisma.PrismaPromise<
235
+ Array<
236
+ Prisma.PickEnumerable<AdversarialResourceGroupByOutputType, T['by']> &
237
+ {
238
+ [P in ((keyof T) & (keyof AdversarialResourceGroupByOutputType))]: P extends '_count'
239
+ ? T[P] extends boolean
240
+ ? number
241
+ : Prisma.GetScalarType<T[P], AdversarialResourceGroupByOutputType[P]>
242
+ : Prisma.GetScalarType<T[P], AdversarialResourceGroupByOutputType[P]>
243
+ }
244
+ >
245
+ >
246
+
247
+
248
+
249
+ export type AdversarialResourceWhereInput = {
250
+ AND?: Prisma.AdversarialResourceWhereInput | Prisma.AdversarialResourceWhereInput[]
251
+ OR?: Prisma.AdversarialResourceWhereInput[]
252
+ NOT?: Prisma.AdversarialResourceWhereInput | Prisma.AdversarialResourceWhereInput[]
253
+ id?: Prisma.StringFilter<"AdversarialResource"> | string
254
+ aBool?: Prisma.BoolNullableFilter<"AdversarialResource"> | boolean | null
255
+ aString?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
256
+ aNumber?: Prisma.IntNullableFilter<"AdversarialResource"> | number | null
257
+ aDouble?: Prisma.FloatNullableFilter<"AdversarialResource"> | number | null
258
+ aOptionalString?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
259
+ createdBy?: Prisma.StringFilter<"AdversarialResource"> | string
260
+ scope?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
261
+ createdAt?: Prisma.DateTimeNullableFilter<"AdversarialResource"> | Date | string | null
262
+ updatedAt?: Prisma.DateTimeNullableFilter<"AdversarialResource"> | Date | string | null
263
+ tags?: Prisma.AdversarialTagListRelationFilter
264
+ categories?: Prisma.AdversarialCategoryListRelationFilter
265
+ parent?: Prisma.XOR<Prisma.AdversarialParentNullableScalarRelationFilter, Prisma.AdversarialParentWhereInput> | null
266
+ numberList?: Prisma.AdversarialNumberListElementListRelationFilter
267
+ boolList?: Prisma.AdversarialBoolListElementListRelationFilter
268
+ }
269
+
270
+ export type AdversarialResourceOrderByWithRelationInput = {
271
+ id?: Prisma.SortOrder
272
+ aBool?: Prisma.SortOrderInput | Prisma.SortOrder
273
+ aString?: Prisma.SortOrderInput | Prisma.SortOrder
274
+ aNumber?: Prisma.SortOrderInput | Prisma.SortOrder
275
+ aDouble?: Prisma.SortOrderInput | Prisma.SortOrder
276
+ aOptionalString?: Prisma.SortOrderInput | Prisma.SortOrder
277
+ createdBy?: Prisma.SortOrder
278
+ scope?: Prisma.SortOrderInput | Prisma.SortOrder
279
+ createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
280
+ updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
281
+ tags?: Prisma.AdversarialTagOrderByRelationAggregateInput
282
+ categories?: Prisma.AdversarialCategoryOrderByRelationAggregateInput
283
+ parent?: Prisma.AdversarialParentOrderByWithRelationInput
284
+ numberList?: Prisma.AdversarialNumberListElementOrderByRelationAggregateInput
285
+ boolList?: Prisma.AdversarialBoolListElementOrderByRelationAggregateInput
286
+ }
287
+
288
+ export type AdversarialResourceWhereUniqueInput = Prisma.AtLeast<{
289
+ id?: string
290
+ AND?: Prisma.AdversarialResourceWhereInput | Prisma.AdversarialResourceWhereInput[]
291
+ OR?: Prisma.AdversarialResourceWhereInput[]
292
+ NOT?: Prisma.AdversarialResourceWhereInput | Prisma.AdversarialResourceWhereInput[]
293
+ aBool?: Prisma.BoolNullableFilter<"AdversarialResource"> | boolean | null
294
+ aString?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
295
+ aNumber?: Prisma.IntNullableFilter<"AdversarialResource"> | number | null
296
+ aDouble?: Prisma.FloatNullableFilter<"AdversarialResource"> | number | null
297
+ aOptionalString?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
298
+ createdBy?: Prisma.StringFilter<"AdversarialResource"> | string
299
+ scope?: Prisma.StringNullableFilter<"AdversarialResource"> | string | null
300
+ createdAt?: Prisma.DateTimeNullableFilter<"AdversarialResource"> | Date | string | null
301
+ updatedAt?: Prisma.DateTimeNullableFilter<"AdversarialResource"> | Date | string | null
302
+ tags?: Prisma.AdversarialTagListRelationFilter
303
+ categories?: Prisma.AdversarialCategoryListRelationFilter
304
+ parent?: Prisma.XOR<Prisma.AdversarialParentNullableScalarRelationFilter, Prisma.AdversarialParentWhereInput> | null
305
+ numberList?: Prisma.AdversarialNumberListElementListRelationFilter
306
+ boolList?: Prisma.AdversarialBoolListElementListRelationFilter
307
+ }, "id">
308
+
309
+ export type AdversarialResourceOrderByWithAggregationInput = {
310
+ id?: Prisma.SortOrder
311
+ aBool?: Prisma.SortOrderInput | Prisma.SortOrder
312
+ aString?: Prisma.SortOrderInput | Prisma.SortOrder
313
+ aNumber?: Prisma.SortOrderInput | Prisma.SortOrder
314
+ aDouble?: Prisma.SortOrderInput | Prisma.SortOrder
315
+ aOptionalString?: Prisma.SortOrderInput | Prisma.SortOrder
316
+ createdBy?: Prisma.SortOrder
317
+ scope?: Prisma.SortOrderInput | Prisma.SortOrder
318
+ createdAt?: Prisma.SortOrderInput | Prisma.SortOrder
319
+ updatedAt?: Prisma.SortOrderInput | Prisma.SortOrder
320
+ _count?: Prisma.AdversarialResourceCountOrderByAggregateInput
321
+ _avg?: Prisma.AdversarialResourceAvgOrderByAggregateInput
322
+ _max?: Prisma.AdversarialResourceMaxOrderByAggregateInput
323
+ _min?: Prisma.AdversarialResourceMinOrderByAggregateInput
324
+ _sum?: Prisma.AdversarialResourceSumOrderByAggregateInput
325
+ }
326
+
327
+ export type AdversarialResourceScalarWhereWithAggregatesInput = {
328
+ AND?: Prisma.AdversarialResourceScalarWhereWithAggregatesInput | Prisma.AdversarialResourceScalarWhereWithAggregatesInput[]
329
+ OR?: Prisma.AdversarialResourceScalarWhereWithAggregatesInput[]
330
+ NOT?: Prisma.AdversarialResourceScalarWhereWithAggregatesInput | Prisma.AdversarialResourceScalarWhereWithAggregatesInput[]
331
+ id?: Prisma.StringWithAggregatesFilter<"AdversarialResource"> | string
332
+ aBool?: Prisma.BoolNullableWithAggregatesFilter<"AdversarialResource"> | boolean | null
333
+ aString?: Prisma.StringNullableWithAggregatesFilter<"AdversarialResource"> | string | null
334
+ aNumber?: Prisma.IntNullableWithAggregatesFilter<"AdversarialResource"> | number | null
335
+ aDouble?: Prisma.FloatNullableWithAggregatesFilter<"AdversarialResource"> | number | null
336
+ aOptionalString?: Prisma.StringNullableWithAggregatesFilter<"AdversarialResource"> | string | null
337
+ createdBy?: Prisma.StringWithAggregatesFilter<"AdversarialResource"> | string
338
+ scope?: Prisma.StringNullableWithAggregatesFilter<"AdversarialResource"> | string | null
339
+ createdAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdversarialResource"> | Date | string | null
340
+ updatedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdversarialResource"> | Date | string | null
341
+ }
342
+
343
+ export type AdversarialResourceCreateInput = {
344
+ id: string
345
+ aBool?: boolean | null
346
+ aString?: string | null
347
+ aNumber?: number | null
348
+ aDouble?: number | null
349
+ aOptionalString?: string | null
350
+ createdBy: string
351
+ scope?: string | null
352
+ createdAt?: Date | string | null
353
+ updatedAt?: Date | string | null
354
+ tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
355
+ categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
356
+ parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
357
+ numberList?: Prisma.AdversarialNumberListElementCreateNestedManyWithoutResourceInput
358
+ boolList?: Prisma.AdversarialBoolListElementCreateNestedManyWithoutResourceInput
359
+ }
360
+
361
+ export type AdversarialResourceUncheckedCreateInput = {
362
+ id: string
363
+ aBool?: boolean | null
364
+ aString?: string | null
365
+ aNumber?: number | null
366
+ aDouble?: number | null
367
+ aOptionalString?: string | null
368
+ createdBy: string
369
+ scope?: string | null
370
+ createdAt?: Date | string | null
371
+ updatedAt?: Date | string | null
372
+ tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
373
+ categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
374
+ parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
375
+ numberList?: Prisma.AdversarialNumberListElementUncheckedCreateNestedManyWithoutResourceInput
376
+ boolList?: Prisma.AdversarialBoolListElementUncheckedCreateNestedManyWithoutResourceInput
377
+ }
378
+
379
+ export type AdversarialResourceUpdateInput = {
380
+ id?: Prisma.StringFieldUpdateOperationsInput | string
381
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
382
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
383
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
384
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
385
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
386
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
387
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
388
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
389
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
390
+ tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
391
+ categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
392
+ parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
393
+ numberList?: Prisma.AdversarialNumberListElementUpdateManyWithoutResourceNestedInput
394
+ boolList?: Prisma.AdversarialBoolListElementUpdateManyWithoutResourceNestedInput
395
+ }
396
+
397
+ export type AdversarialResourceUncheckedUpdateInput = {
398
+ id?: Prisma.StringFieldUpdateOperationsInput | string
399
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
400
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
401
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
402
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
403
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
404
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
405
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
406
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
407
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
408
+ tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
409
+ categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
410
+ parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
411
+ numberList?: Prisma.AdversarialNumberListElementUncheckedUpdateManyWithoutResourceNestedInput
412
+ boolList?: Prisma.AdversarialBoolListElementUncheckedUpdateManyWithoutResourceNestedInput
413
+ }
414
+
415
+ export type AdversarialResourceCreateManyInput = {
416
+ id: string
417
+ aBool?: boolean | null
418
+ aString?: string | null
419
+ aNumber?: number | null
420
+ aDouble?: number | null
421
+ aOptionalString?: string | null
422
+ createdBy: string
423
+ scope?: string | null
424
+ createdAt?: Date | string | null
425
+ updatedAt?: Date | string | null
426
+ }
427
+
428
+ export type AdversarialResourceUpdateManyMutationInput = {
429
+ id?: Prisma.StringFieldUpdateOperationsInput | string
430
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
431
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
432
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
433
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
434
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
435
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
436
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
437
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
438
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
439
+ }
440
+
441
+ export type AdversarialResourceUncheckedUpdateManyInput = {
442
+ id?: Prisma.StringFieldUpdateOperationsInput | string
443
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
444
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
445
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
446
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
447
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
448
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
449
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
450
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
451
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
452
+ }
453
+
454
+ export type AdversarialResourceCountOrderByAggregateInput = {
455
+ id?: Prisma.SortOrder
456
+ aBool?: Prisma.SortOrder
457
+ aString?: Prisma.SortOrder
458
+ aNumber?: Prisma.SortOrder
459
+ aDouble?: Prisma.SortOrder
460
+ aOptionalString?: Prisma.SortOrder
461
+ createdBy?: Prisma.SortOrder
462
+ scope?: Prisma.SortOrder
463
+ createdAt?: Prisma.SortOrder
464
+ updatedAt?: Prisma.SortOrder
465
+ }
466
+
467
+ export type AdversarialResourceAvgOrderByAggregateInput = {
468
+ aNumber?: Prisma.SortOrder
469
+ aDouble?: Prisma.SortOrder
470
+ }
471
+
472
+ export type AdversarialResourceMaxOrderByAggregateInput = {
473
+ id?: Prisma.SortOrder
474
+ aBool?: Prisma.SortOrder
475
+ aString?: Prisma.SortOrder
476
+ aNumber?: Prisma.SortOrder
477
+ aDouble?: Prisma.SortOrder
478
+ aOptionalString?: Prisma.SortOrder
479
+ createdBy?: Prisma.SortOrder
480
+ scope?: Prisma.SortOrder
481
+ createdAt?: Prisma.SortOrder
482
+ updatedAt?: Prisma.SortOrder
483
+ }
484
+
485
+ export type AdversarialResourceMinOrderByAggregateInput = {
486
+ id?: Prisma.SortOrder
487
+ aBool?: Prisma.SortOrder
488
+ aString?: Prisma.SortOrder
489
+ aNumber?: Prisma.SortOrder
490
+ aDouble?: Prisma.SortOrder
491
+ aOptionalString?: Prisma.SortOrder
492
+ createdBy?: Prisma.SortOrder
493
+ scope?: Prisma.SortOrder
494
+ createdAt?: Prisma.SortOrder
495
+ updatedAt?: Prisma.SortOrder
496
+ }
497
+
498
+ export type AdversarialResourceSumOrderByAggregateInput = {
499
+ aNumber?: Prisma.SortOrder
500
+ aDouble?: Prisma.SortOrder
501
+ }
502
+
503
+ export type AdversarialResourceScalarRelationFilter = {
504
+ is?: Prisma.AdversarialResourceWhereInput
505
+ isNot?: Prisma.AdversarialResourceWhereInput
506
+ }
507
+
508
+ export type StringFieldUpdateOperationsInput = {
509
+ set?: string
510
+ }
511
+
512
+ export type NullableBoolFieldUpdateOperationsInput = {
513
+ set?: boolean | null
514
+ }
515
+
516
+ export type NullableStringFieldUpdateOperationsInput = {
517
+ set?: string | null
518
+ }
519
+
520
+ export type NullableIntFieldUpdateOperationsInput = {
521
+ set?: number | null
522
+ increment?: number
523
+ decrement?: number
524
+ multiply?: number
525
+ divide?: number
526
+ }
527
+
528
+ export type NullableFloatFieldUpdateOperationsInput = {
529
+ set?: number | null
530
+ increment?: number
531
+ decrement?: number
532
+ multiply?: number
533
+ divide?: number
534
+ }
535
+
536
+ export type NullableDateTimeFieldUpdateOperationsInput = {
537
+ set?: Date | string | null
538
+ }
539
+
540
+ export type AdversarialResourceCreateNestedOneWithoutTagsInput = {
541
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutTagsInput, Prisma.AdversarialResourceUncheckedCreateWithoutTagsInput>
542
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutTagsInput
543
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
544
+ }
545
+
546
+ export type AdversarialResourceUpdateOneRequiredWithoutTagsNestedInput = {
547
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutTagsInput, Prisma.AdversarialResourceUncheckedCreateWithoutTagsInput>
548
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutTagsInput
549
+ upsert?: Prisma.AdversarialResourceUpsertWithoutTagsInput
550
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
551
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutTagsInput, Prisma.AdversarialResourceUpdateWithoutTagsInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutTagsInput>
552
+ }
553
+
554
+ export type AdversarialResourceCreateNestedOneWithoutCategoriesInput = {
555
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedCreateWithoutCategoriesInput>
556
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutCategoriesInput
557
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
558
+ }
559
+
560
+ export type AdversarialResourceUpdateOneRequiredWithoutCategoriesNestedInput = {
561
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedCreateWithoutCategoriesInput>
562
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutCategoriesInput
563
+ upsert?: Prisma.AdversarialResourceUpsertWithoutCategoriesInput
564
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
565
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutCategoriesInput, Prisma.AdversarialResourceUpdateWithoutCategoriesInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutCategoriesInput>
566
+ }
567
+
568
+ export type AdversarialResourceCreateNestedOneWithoutParentInput = {
569
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
570
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutParentInput
571
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
572
+ }
573
+
574
+ export type AdversarialResourceUpdateOneRequiredWithoutParentNestedInput = {
575
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
576
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutParentInput
577
+ upsert?: Prisma.AdversarialResourceUpsertWithoutParentInput
578
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
579
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutParentInput, Prisma.AdversarialResourceUpdateWithoutParentInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutParentInput>
580
+ }
581
+
582
+ export type AdversarialResourceCreateNestedOneWithoutNumberListInput = {
583
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutNumberListInput, Prisma.AdversarialResourceUncheckedCreateWithoutNumberListInput>
584
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutNumberListInput
585
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
586
+ }
587
+
588
+ export type AdversarialResourceUpdateOneRequiredWithoutNumberListNestedInput = {
589
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutNumberListInput, Prisma.AdversarialResourceUncheckedCreateWithoutNumberListInput>
590
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutNumberListInput
591
+ upsert?: Prisma.AdversarialResourceUpsertWithoutNumberListInput
592
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
593
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutNumberListInput, Prisma.AdversarialResourceUpdateWithoutNumberListInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutNumberListInput>
594
+ }
595
+
596
+ export type AdversarialResourceCreateNestedOneWithoutBoolListInput = {
597
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutBoolListInput, Prisma.AdversarialResourceUncheckedCreateWithoutBoolListInput>
598
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutBoolListInput
599
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
600
+ }
601
+
602
+ export type AdversarialResourceUpdateOneRequiredWithoutBoolListNestedInput = {
603
+ create?: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutBoolListInput, Prisma.AdversarialResourceUncheckedCreateWithoutBoolListInput>
604
+ connectOrCreate?: Prisma.AdversarialResourceCreateOrConnectWithoutBoolListInput
605
+ upsert?: Prisma.AdversarialResourceUpsertWithoutBoolListInput
606
+ connect?: Prisma.AdversarialResourceWhereUniqueInput
607
+ update?: Prisma.XOR<Prisma.XOR<Prisma.AdversarialResourceUpdateToOneWithWhereWithoutBoolListInput, Prisma.AdversarialResourceUpdateWithoutBoolListInput>, Prisma.AdversarialResourceUncheckedUpdateWithoutBoolListInput>
608
+ }
609
+
610
+ export type AdversarialResourceCreateWithoutTagsInput = {
611
+ id: string
612
+ aBool?: boolean | null
613
+ aString?: string | null
614
+ aNumber?: number | null
615
+ aDouble?: number | null
616
+ aOptionalString?: string | null
617
+ createdBy: string
618
+ scope?: string | null
619
+ createdAt?: Date | string | null
620
+ updatedAt?: Date | string | null
621
+ categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
622
+ parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
623
+ numberList?: Prisma.AdversarialNumberListElementCreateNestedManyWithoutResourceInput
624
+ boolList?: Prisma.AdversarialBoolListElementCreateNestedManyWithoutResourceInput
625
+ }
626
+
627
+ export type AdversarialResourceUncheckedCreateWithoutTagsInput = {
628
+ id: string
629
+ aBool?: boolean | null
630
+ aString?: string | null
631
+ aNumber?: number | null
632
+ aDouble?: number | null
633
+ aOptionalString?: string | null
634
+ createdBy: string
635
+ scope?: string | null
636
+ createdAt?: Date | string | null
637
+ updatedAt?: Date | string | null
638
+ categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
639
+ parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
640
+ numberList?: Prisma.AdversarialNumberListElementUncheckedCreateNestedManyWithoutResourceInput
641
+ boolList?: Prisma.AdversarialBoolListElementUncheckedCreateNestedManyWithoutResourceInput
642
+ }
643
+
644
+ export type AdversarialResourceCreateOrConnectWithoutTagsInput = {
645
+ where: Prisma.AdversarialResourceWhereUniqueInput
646
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutTagsInput, Prisma.AdversarialResourceUncheckedCreateWithoutTagsInput>
647
+ }
648
+
649
+ export type AdversarialResourceUpsertWithoutTagsInput = {
650
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutTagsInput, Prisma.AdversarialResourceUncheckedUpdateWithoutTagsInput>
651
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutTagsInput, Prisma.AdversarialResourceUncheckedCreateWithoutTagsInput>
652
+ where?: Prisma.AdversarialResourceWhereInput
653
+ }
654
+
655
+ export type AdversarialResourceUpdateToOneWithWhereWithoutTagsInput = {
656
+ where?: Prisma.AdversarialResourceWhereInput
657
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutTagsInput, Prisma.AdversarialResourceUncheckedUpdateWithoutTagsInput>
658
+ }
659
+
660
+ export type AdversarialResourceUpdateWithoutTagsInput = {
661
+ id?: Prisma.StringFieldUpdateOperationsInput | string
662
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
663
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
664
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
665
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
666
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
667
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
668
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
669
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
670
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
671
+ categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
672
+ parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
673
+ numberList?: Prisma.AdversarialNumberListElementUpdateManyWithoutResourceNestedInput
674
+ boolList?: Prisma.AdversarialBoolListElementUpdateManyWithoutResourceNestedInput
675
+ }
676
+
677
+ export type AdversarialResourceUncheckedUpdateWithoutTagsInput = {
678
+ id?: Prisma.StringFieldUpdateOperationsInput | string
679
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
680
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
681
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
682
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
683
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
684
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
685
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
686
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
687
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
688
+ categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
689
+ parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
690
+ numberList?: Prisma.AdversarialNumberListElementUncheckedUpdateManyWithoutResourceNestedInput
691
+ boolList?: Prisma.AdversarialBoolListElementUncheckedUpdateManyWithoutResourceNestedInput
692
+ }
693
+
694
+ export type AdversarialResourceCreateWithoutCategoriesInput = {
695
+ id: string
696
+ aBool?: boolean | null
697
+ aString?: string | null
698
+ aNumber?: number | null
699
+ aDouble?: number | null
700
+ aOptionalString?: string | null
701
+ createdBy: string
702
+ scope?: string | null
703
+ createdAt?: Date | string | null
704
+ updatedAt?: Date | string | null
705
+ tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
706
+ parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
707
+ numberList?: Prisma.AdversarialNumberListElementCreateNestedManyWithoutResourceInput
708
+ boolList?: Prisma.AdversarialBoolListElementCreateNestedManyWithoutResourceInput
709
+ }
710
+
711
+ export type AdversarialResourceUncheckedCreateWithoutCategoriesInput = {
712
+ id: string
713
+ aBool?: boolean | null
714
+ aString?: string | null
715
+ aNumber?: number | null
716
+ aDouble?: number | null
717
+ aOptionalString?: string | null
718
+ createdBy: string
719
+ scope?: string | null
720
+ createdAt?: Date | string | null
721
+ updatedAt?: Date | string | null
722
+ tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
723
+ parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
724
+ numberList?: Prisma.AdversarialNumberListElementUncheckedCreateNestedManyWithoutResourceInput
725
+ boolList?: Prisma.AdversarialBoolListElementUncheckedCreateNestedManyWithoutResourceInput
726
+ }
727
+
728
+ export type AdversarialResourceCreateOrConnectWithoutCategoriesInput = {
729
+ where: Prisma.AdversarialResourceWhereUniqueInput
730
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedCreateWithoutCategoriesInput>
731
+ }
732
+
733
+ export type AdversarialResourceUpsertWithoutCategoriesInput = {
734
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedUpdateWithoutCategoriesInput>
735
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedCreateWithoutCategoriesInput>
736
+ where?: Prisma.AdversarialResourceWhereInput
737
+ }
738
+
739
+ export type AdversarialResourceUpdateToOneWithWhereWithoutCategoriesInput = {
740
+ where?: Prisma.AdversarialResourceWhereInput
741
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutCategoriesInput, Prisma.AdversarialResourceUncheckedUpdateWithoutCategoriesInput>
742
+ }
743
+
744
+ export type AdversarialResourceUpdateWithoutCategoriesInput = {
745
+ id?: Prisma.StringFieldUpdateOperationsInput | string
746
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
747
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
748
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
749
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
750
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
751
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
752
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
753
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
754
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
755
+ tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
756
+ parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
757
+ numberList?: Prisma.AdversarialNumberListElementUpdateManyWithoutResourceNestedInput
758
+ boolList?: Prisma.AdversarialBoolListElementUpdateManyWithoutResourceNestedInput
759
+ }
760
+
761
+ export type AdversarialResourceUncheckedUpdateWithoutCategoriesInput = {
762
+ id?: Prisma.StringFieldUpdateOperationsInput | string
763
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
764
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
765
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
766
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
767
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
768
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
769
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
770
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
771
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
772
+ tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
773
+ parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
774
+ numberList?: Prisma.AdversarialNumberListElementUncheckedUpdateManyWithoutResourceNestedInput
775
+ boolList?: Prisma.AdversarialBoolListElementUncheckedUpdateManyWithoutResourceNestedInput
776
+ }
777
+
778
+ export type AdversarialResourceCreateWithoutParentInput = {
779
+ id: string
780
+ aBool?: boolean | null
781
+ aString?: string | null
782
+ aNumber?: number | null
783
+ aDouble?: number | null
784
+ aOptionalString?: string | null
785
+ createdBy: string
786
+ scope?: string | null
787
+ createdAt?: Date | string | null
788
+ updatedAt?: Date | string | null
789
+ tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
790
+ categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
791
+ numberList?: Prisma.AdversarialNumberListElementCreateNestedManyWithoutResourceInput
792
+ boolList?: Prisma.AdversarialBoolListElementCreateNestedManyWithoutResourceInput
793
+ }
794
+
795
+ export type AdversarialResourceUncheckedCreateWithoutParentInput = {
796
+ id: string
797
+ aBool?: boolean | null
798
+ aString?: string | null
799
+ aNumber?: number | null
800
+ aDouble?: number | null
801
+ aOptionalString?: string | null
802
+ createdBy: string
803
+ scope?: string | null
804
+ createdAt?: Date | string | null
805
+ updatedAt?: Date | string | null
806
+ tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
807
+ categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
808
+ numberList?: Prisma.AdversarialNumberListElementUncheckedCreateNestedManyWithoutResourceInput
809
+ boolList?: Prisma.AdversarialBoolListElementUncheckedCreateNestedManyWithoutResourceInput
810
+ }
811
+
812
+ export type AdversarialResourceCreateOrConnectWithoutParentInput = {
813
+ where: Prisma.AdversarialResourceWhereUniqueInput
814
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
815
+ }
816
+
817
+ export type AdversarialResourceUpsertWithoutParentInput = {
818
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutParentInput, Prisma.AdversarialResourceUncheckedUpdateWithoutParentInput>
819
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutParentInput, Prisma.AdversarialResourceUncheckedCreateWithoutParentInput>
820
+ where?: Prisma.AdversarialResourceWhereInput
821
+ }
822
+
823
+ export type AdversarialResourceUpdateToOneWithWhereWithoutParentInput = {
824
+ where?: Prisma.AdversarialResourceWhereInput
825
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutParentInput, Prisma.AdversarialResourceUncheckedUpdateWithoutParentInput>
826
+ }
827
+
828
+ export type AdversarialResourceUpdateWithoutParentInput = {
829
+ id?: Prisma.StringFieldUpdateOperationsInput | string
830
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
831
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
832
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
833
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
834
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
835
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
836
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
837
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
838
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
839
+ tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
840
+ categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
841
+ numberList?: Prisma.AdversarialNumberListElementUpdateManyWithoutResourceNestedInput
842
+ boolList?: Prisma.AdversarialBoolListElementUpdateManyWithoutResourceNestedInput
843
+ }
844
+
845
+ export type AdversarialResourceUncheckedUpdateWithoutParentInput = {
846
+ id?: Prisma.StringFieldUpdateOperationsInput | string
847
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
848
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
849
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
850
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
851
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
852
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
853
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
854
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
855
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
856
+ tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
857
+ categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
858
+ numberList?: Prisma.AdversarialNumberListElementUncheckedUpdateManyWithoutResourceNestedInput
859
+ boolList?: Prisma.AdversarialBoolListElementUncheckedUpdateManyWithoutResourceNestedInput
860
+ }
861
+
862
+ export type AdversarialResourceCreateWithoutNumberListInput = {
863
+ id: string
864
+ aBool?: boolean | null
865
+ aString?: string | null
866
+ aNumber?: number | null
867
+ aDouble?: number | null
868
+ aOptionalString?: string | null
869
+ createdBy: string
870
+ scope?: string | null
871
+ createdAt?: Date | string | null
872
+ updatedAt?: Date | string | null
873
+ tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
874
+ categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
875
+ parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
876
+ boolList?: Prisma.AdversarialBoolListElementCreateNestedManyWithoutResourceInput
877
+ }
878
+
879
+ export type AdversarialResourceUncheckedCreateWithoutNumberListInput = {
880
+ id: string
881
+ aBool?: boolean | null
882
+ aString?: string | null
883
+ aNumber?: number | null
884
+ aDouble?: number | null
885
+ aOptionalString?: string | null
886
+ createdBy: string
887
+ scope?: string | null
888
+ createdAt?: Date | string | null
889
+ updatedAt?: Date | string | null
890
+ tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
891
+ categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
892
+ parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
893
+ boolList?: Prisma.AdversarialBoolListElementUncheckedCreateNestedManyWithoutResourceInput
894
+ }
895
+
896
+ export type AdversarialResourceCreateOrConnectWithoutNumberListInput = {
897
+ where: Prisma.AdversarialResourceWhereUniqueInput
898
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutNumberListInput, Prisma.AdversarialResourceUncheckedCreateWithoutNumberListInput>
899
+ }
900
+
901
+ export type AdversarialResourceUpsertWithoutNumberListInput = {
902
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutNumberListInput, Prisma.AdversarialResourceUncheckedUpdateWithoutNumberListInput>
903
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutNumberListInput, Prisma.AdversarialResourceUncheckedCreateWithoutNumberListInput>
904
+ where?: Prisma.AdversarialResourceWhereInput
905
+ }
906
+
907
+ export type AdversarialResourceUpdateToOneWithWhereWithoutNumberListInput = {
908
+ where?: Prisma.AdversarialResourceWhereInput
909
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutNumberListInput, Prisma.AdversarialResourceUncheckedUpdateWithoutNumberListInput>
910
+ }
911
+
912
+ export type AdversarialResourceUpdateWithoutNumberListInput = {
913
+ id?: Prisma.StringFieldUpdateOperationsInput | string
914
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
915
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
916
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
917
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
918
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
919
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
920
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
921
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
922
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
923
+ tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
924
+ categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
925
+ parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
926
+ boolList?: Prisma.AdversarialBoolListElementUpdateManyWithoutResourceNestedInput
927
+ }
928
+
929
+ export type AdversarialResourceUncheckedUpdateWithoutNumberListInput = {
930
+ id?: Prisma.StringFieldUpdateOperationsInput | string
931
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
932
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
933
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
934
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
935
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
936
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
937
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
938
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
939
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
940
+ tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
941
+ categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
942
+ parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
943
+ boolList?: Prisma.AdversarialBoolListElementUncheckedUpdateManyWithoutResourceNestedInput
944
+ }
945
+
946
+ export type AdversarialResourceCreateWithoutBoolListInput = {
947
+ id: string
948
+ aBool?: boolean | null
949
+ aString?: string | null
950
+ aNumber?: number | null
951
+ aDouble?: number | null
952
+ aOptionalString?: string | null
953
+ createdBy: string
954
+ scope?: string | null
955
+ createdAt?: Date | string | null
956
+ updatedAt?: Date | string | null
957
+ tags?: Prisma.AdversarialTagCreateNestedManyWithoutResourceInput
958
+ categories?: Prisma.AdversarialCategoryCreateNestedManyWithoutResourceInput
959
+ parent?: Prisma.AdversarialParentCreateNestedOneWithoutResourceInput
960
+ numberList?: Prisma.AdversarialNumberListElementCreateNestedManyWithoutResourceInput
961
+ }
962
+
963
+ export type AdversarialResourceUncheckedCreateWithoutBoolListInput = {
964
+ id: string
965
+ aBool?: boolean | null
966
+ aString?: string | null
967
+ aNumber?: number | null
968
+ aDouble?: number | null
969
+ aOptionalString?: string | null
970
+ createdBy: string
971
+ scope?: string | null
972
+ createdAt?: Date | string | null
973
+ updatedAt?: Date | string | null
974
+ tags?: Prisma.AdversarialTagUncheckedCreateNestedManyWithoutResourceInput
975
+ categories?: Prisma.AdversarialCategoryUncheckedCreateNestedManyWithoutResourceInput
976
+ parent?: Prisma.AdversarialParentUncheckedCreateNestedOneWithoutResourceInput
977
+ numberList?: Prisma.AdversarialNumberListElementUncheckedCreateNestedManyWithoutResourceInput
978
+ }
979
+
980
+ export type AdversarialResourceCreateOrConnectWithoutBoolListInput = {
981
+ where: Prisma.AdversarialResourceWhereUniqueInput
982
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutBoolListInput, Prisma.AdversarialResourceUncheckedCreateWithoutBoolListInput>
983
+ }
984
+
985
+ export type AdversarialResourceUpsertWithoutBoolListInput = {
986
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutBoolListInput, Prisma.AdversarialResourceUncheckedUpdateWithoutBoolListInput>
987
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateWithoutBoolListInput, Prisma.AdversarialResourceUncheckedCreateWithoutBoolListInput>
988
+ where?: Prisma.AdversarialResourceWhereInput
989
+ }
990
+
991
+ export type AdversarialResourceUpdateToOneWithWhereWithoutBoolListInput = {
992
+ where?: Prisma.AdversarialResourceWhereInput
993
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateWithoutBoolListInput, Prisma.AdversarialResourceUncheckedUpdateWithoutBoolListInput>
994
+ }
995
+
996
+ export type AdversarialResourceUpdateWithoutBoolListInput = {
997
+ id?: Prisma.StringFieldUpdateOperationsInput | string
998
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
999
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1000
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1001
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
1002
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1003
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1004
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1005
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1006
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1007
+ tags?: Prisma.AdversarialTagUpdateManyWithoutResourceNestedInput
1008
+ categories?: Prisma.AdversarialCategoryUpdateManyWithoutResourceNestedInput
1009
+ parent?: Prisma.AdversarialParentUpdateOneWithoutResourceNestedInput
1010
+ numberList?: Prisma.AdversarialNumberListElementUpdateManyWithoutResourceNestedInput
1011
+ }
1012
+
1013
+ export type AdversarialResourceUncheckedUpdateWithoutBoolListInput = {
1014
+ id?: Prisma.StringFieldUpdateOperationsInput | string
1015
+ aBool?: Prisma.NullableBoolFieldUpdateOperationsInput | boolean | null
1016
+ aString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1017
+ aNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
1018
+ aDouble?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
1019
+ aOptionalString?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1020
+ createdBy?: Prisma.StringFieldUpdateOperationsInput | string
1021
+ scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1022
+ createdAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1023
+ updatedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1024
+ tags?: Prisma.AdversarialTagUncheckedUpdateManyWithoutResourceNestedInput
1025
+ categories?: Prisma.AdversarialCategoryUncheckedUpdateManyWithoutResourceNestedInput
1026
+ parent?: Prisma.AdversarialParentUncheckedUpdateOneWithoutResourceNestedInput
1027
+ numberList?: Prisma.AdversarialNumberListElementUncheckedUpdateManyWithoutResourceNestedInput
1028
+ }
1029
+
1030
+
1031
+ /**
1032
+ * Count Type AdversarialResourceCountOutputType
1033
+ */
1034
+
1035
+ export type AdversarialResourceCountOutputType = {
1036
+ tags: number
1037
+ categories: number
1038
+ numberList: number
1039
+ boolList: number
1040
+ }
1041
+
1042
+ export type AdversarialResourceCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1043
+ tags?: boolean | AdversarialResourceCountOutputTypeCountTagsArgs
1044
+ categories?: boolean | AdversarialResourceCountOutputTypeCountCategoriesArgs
1045
+ numberList?: boolean | AdversarialResourceCountOutputTypeCountNumberListArgs
1046
+ boolList?: boolean | AdversarialResourceCountOutputTypeCountBoolListArgs
1047
+ }
1048
+
1049
+ /**
1050
+ * AdversarialResourceCountOutputType without action
1051
+ */
1052
+ export type AdversarialResourceCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1053
+ /**
1054
+ * Select specific fields to fetch from the AdversarialResourceCountOutputType
1055
+ */
1056
+ select?: Prisma.AdversarialResourceCountOutputTypeSelect<ExtArgs> | null
1057
+ }
1058
+
1059
+ /**
1060
+ * AdversarialResourceCountOutputType without action
1061
+ */
1062
+ export type AdversarialResourceCountOutputTypeCountTagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1063
+ where?: Prisma.AdversarialTagWhereInput
1064
+ }
1065
+
1066
+ /**
1067
+ * AdversarialResourceCountOutputType without action
1068
+ */
1069
+ export type AdversarialResourceCountOutputTypeCountCategoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1070
+ where?: Prisma.AdversarialCategoryWhereInput
1071
+ }
1072
+
1073
+ /**
1074
+ * AdversarialResourceCountOutputType without action
1075
+ */
1076
+ export type AdversarialResourceCountOutputTypeCountNumberListArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1077
+ where?: Prisma.AdversarialNumberListElementWhereInput
1078
+ }
1079
+
1080
+ /**
1081
+ * AdversarialResourceCountOutputType without action
1082
+ */
1083
+ export type AdversarialResourceCountOutputTypeCountBoolListArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1084
+ where?: Prisma.AdversarialBoolListElementWhereInput
1085
+ }
1086
+
1087
+
1088
+ export type AdversarialResourceSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1089
+ id?: boolean
1090
+ aBool?: boolean
1091
+ aString?: boolean
1092
+ aNumber?: boolean
1093
+ aDouble?: boolean
1094
+ aOptionalString?: boolean
1095
+ createdBy?: boolean
1096
+ scope?: boolean
1097
+ createdAt?: boolean
1098
+ updatedAt?: boolean
1099
+ tags?: boolean | Prisma.AdversarialResource$tagsArgs<ExtArgs>
1100
+ categories?: boolean | Prisma.AdversarialResource$categoriesArgs<ExtArgs>
1101
+ parent?: boolean | Prisma.AdversarialResource$parentArgs<ExtArgs>
1102
+ numberList?: boolean | Prisma.AdversarialResource$numberListArgs<ExtArgs>
1103
+ boolList?: boolean | Prisma.AdversarialResource$boolListArgs<ExtArgs>
1104
+ _count?: boolean | Prisma.AdversarialResourceCountOutputTypeDefaultArgs<ExtArgs>
1105
+ }, ExtArgs["result"]["adversarialResource"]>
1106
+
1107
+ export type AdversarialResourceSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1108
+ id?: boolean
1109
+ aBool?: boolean
1110
+ aString?: boolean
1111
+ aNumber?: boolean
1112
+ aDouble?: boolean
1113
+ aOptionalString?: boolean
1114
+ createdBy?: boolean
1115
+ scope?: boolean
1116
+ createdAt?: boolean
1117
+ updatedAt?: boolean
1118
+ }, ExtArgs["result"]["adversarialResource"]>
1119
+
1120
+ export type AdversarialResourceSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1121
+ id?: boolean
1122
+ aBool?: boolean
1123
+ aString?: boolean
1124
+ aNumber?: boolean
1125
+ aDouble?: boolean
1126
+ aOptionalString?: boolean
1127
+ createdBy?: boolean
1128
+ scope?: boolean
1129
+ createdAt?: boolean
1130
+ updatedAt?: boolean
1131
+ }, ExtArgs["result"]["adversarialResource"]>
1132
+
1133
+ export type AdversarialResourceSelectScalar = {
1134
+ id?: boolean
1135
+ aBool?: boolean
1136
+ aString?: boolean
1137
+ aNumber?: boolean
1138
+ aDouble?: boolean
1139
+ aOptionalString?: boolean
1140
+ createdBy?: boolean
1141
+ scope?: boolean
1142
+ createdAt?: boolean
1143
+ updatedAt?: boolean
1144
+ }
1145
+
1146
+ export type AdversarialResourceOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "aBool" | "aString" | "aNumber" | "aDouble" | "aOptionalString" | "createdBy" | "scope" | "createdAt" | "updatedAt", ExtArgs["result"]["adversarialResource"]>
1147
+ export type AdversarialResourceInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1148
+ tags?: boolean | Prisma.AdversarialResource$tagsArgs<ExtArgs>
1149
+ categories?: boolean | Prisma.AdversarialResource$categoriesArgs<ExtArgs>
1150
+ parent?: boolean | Prisma.AdversarialResource$parentArgs<ExtArgs>
1151
+ numberList?: boolean | Prisma.AdversarialResource$numberListArgs<ExtArgs>
1152
+ boolList?: boolean | Prisma.AdversarialResource$boolListArgs<ExtArgs>
1153
+ _count?: boolean | Prisma.AdversarialResourceCountOutputTypeDefaultArgs<ExtArgs>
1154
+ }
1155
+ export type AdversarialResourceIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1156
+ export type AdversarialResourceIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1157
+
1158
+ export type $AdversarialResourcePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1159
+ name: "AdversarialResource"
1160
+ objects: {
1161
+ tags: Prisma.$AdversarialTagPayload<ExtArgs>[]
1162
+ categories: Prisma.$AdversarialCategoryPayload<ExtArgs>[]
1163
+ parent: Prisma.$AdversarialParentPayload<ExtArgs> | null
1164
+ numberList: Prisma.$AdversarialNumberListElementPayload<ExtArgs>[]
1165
+ boolList: Prisma.$AdversarialBoolListElementPayload<ExtArgs>[]
1166
+ }
1167
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1168
+ id: string
1169
+ aBool: boolean | null
1170
+ aString: string | null
1171
+ aNumber: number | null
1172
+ aDouble: number | null
1173
+ aOptionalString: string | null
1174
+ createdBy: string
1175
+ scope: string | null
1176
+ createdAt: Date | null
1177
+ updatedAt: Date | null
1178
+ }, ExtArgs["result"]["adversarialResource"]>
1179
+ composites: {}
1180
+ }
1181
+
1182
+ export type AdversarialResourceGetPayload<S extends boolean | null | undefined | AdversarialResourceDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload, S>
1183
+
1184
+ export type AdversarialResourceCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1185
+ Omit<AdversarialResourceFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
1186
+ select?: AdversarialResourceCountAggregateInputType | true
1187
+ }
1188
+
1189
+ export interface AdversarialResourceDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1190
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdversarialResource'], meta: { name: 'AdversarialResource' } }
1191
+ /**
1192
+ * Find zero or one AdversarialResource that matches the filter.
1193
+ * @param {AdversarialResourceFindUniqueArgs} args - Arguments to find a AdversarialResource
1194
+ * @example
1195
+ * // Get one AdversarialResource
1196
+ * const adversarialResource = await prisma.adversarialResource.findUnique({
1197
+ * where: {
1198
+ * // ... provide filter here
1199
+ * }
1200
+ * })
1201
+ */
1202
+ findUnique<T extends AdversarialResourceFindUniqueArgs>(args: Prisma.SelectSubset<T, AdversarialResourceFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1203
+
1204
+ /**
1205
+ * Find one AdversarialResource that matches the filter or throw an error with `error.code='P2025'`
1206
+ * if no matches were found.
1207
+ * @param {AdversarialResourceFindUniqueOrThrowArgs} args - Arguments to find a AdversarialResource
1208
+ * @example
1209
+ * // Get one AdversarialResource
1210
+ * const adversarialResource = await prisma.adversarialResource.findUniqueOrThrow({
1211
+ * where: {
1212
+ * // ... provide filter here
1213
+ * }
1214
+ * })
1215
+ */
1216
+ findUniqueOrThrow<T extends AdversarialResourceFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdversarialResourceFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1217
+
1218
+ /**
1219
+ * Find the first AdversarialResource that matches the filter.
1220
+ * Note, that providing `undefined` is treated as the value not being there.
1221
+ * Read more here: https://pris.ly/d/null-undefined
1222
+ * @param {AdversarialResourceFindFirstArgs} args - Arguments to find a AdversarialResource
1223
+ * @example
1224
+ * // Get one AdversarialResource
1225
+ * const adversarialResource = await prisma.adversarialResource.findFirst({
1226
+ * where: {
1227
+ * // ... provide filter here
1228
+ * }
1229
+ * })
1230
+ */
1231
+ findFirst<T extends AdversarialResourceFindFirstArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1232
+
1233
+ /**
1234
+ * Find the first AdversarialResource that matches the filter or
1235
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1236
+ * Note, that providing `undefined` is treated as the value not being there.
1237
+ * Read more here: https://pris.ly/d/null-undefined
1238
+ * @param {AdversarialResourceFindFirstOrThrowArgs} args - Arguments to find a AdversarialResource
1239
+ * @example
1240
+ * // Get one AdversarialResource
1241
+ * const adversarialResource = await prisma.adversarialResource.findFirstOrThrow({
1242
+ * where: {
1243
+ * // ... provide filter here
1244
+ * }
1245
+ * })
1246
+ */
1247
+ findFirstOrThrow<T extends AdversarialResourceFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1248
+
1249
+ /**
1250
+ * Find zero or more AdversarialResources that matches the filter.
1251
+ * Note, that providing `undefined` is treated as the value not being there.
1252
+ * Read more here: https://pris.ly/d/null-undefined
1253
+ * @param {AdversarialResourceFindManyArgs} args - Arguments to filter and select certain fields only.
1254
+ * @example
1255
+ * // Get all AdversarialResources
1256
+ * const adversarialResources = await prisma.adversarialResource.findMany()
1257
+ *
1258
+ * // Get first 10 AdversarialResources
1259
+ * const adversarialResources = await prisma.adversarialResource.findMany({ take: 10 })
1260
+ *
1261
+ * // Only select the `id`
1262
+ * const adversarialResourceWithIdOnly = await prisma.adversarialResource.findMany({ select: { id: true } })
1263
+ *
1264
+ */
1265
+ findMany<T extends AdversarialResourceFindManyArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1266
+
1267
+ /**
1268
+ * Create a AdversarialResource.
1269
+ * @param {AdversarialResourceCreateArgs} args - Arguments to create a AdversarialResource.
1270
+ * @example
1271
+ * // Create one AdversarialResource
1272
+ * const AdversarialResource = await prisma.adversarialResource.create({
1273
+ * data: {
1274
+ * // ... data to create a AdversarialResource
1275
+ * }
1276
+ * })
1277
+ *
1278
+ */
1279
+ create<T extends AdversarialResourceCreateArgs>(args: Prisma.SelectSubset<T, AdversarialResourceCreateArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1280
+
1281
+ /**
1282
+ * Create many AdversarialResources.
1283
+ * @param {AdversarialResourceCreateManyArgs} args - Arguments to create many AdversarialResources.
1284
+ * @example
1285
+ * // Create many AdversarialResources
1286
+ * const adversarialResource = await prisma.adversarialResource.createMany({
1287
+ * data: [
1288
+ * // ... provide data here
1289
+ * ]
1290
+ * })
1291
+ *
1292
+ */
1293
+ createMany<T extends AdversarialResourceCreateManyArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1294
+
1295
+ /**
1296
+ * Create many AdversarialResources and returns the data saved in the database.
1297
+ * @param {AdversarialResourceCreateManyAndReturnArgs} args - Arguments to create many AdversarialResources.
1298
+ * @example
1299
+ * // Create many AdversarialResources
1300
+ * const adversarialResource = await prisma.adversarialResource.createManyAndReturn({
1301
+ * data: [
1302
+ * // ... provide data here
1303
+ * ]
1304
+ * })
1305
+ *
1306
+ * // Create many AdversarialResources and only return the `id`
1307
+ * const adversarialResourceWithIdOnly = await prisma.adversarialResource.createManyAndReturn({
1308
+ * select: { id: true },
1309
+ * data: [
1310
+ * // ... provide data here
1311
+ * ]
1312
+ * })
1313
+ * Note, that providing `undefined` is treated as the value not being there.
1314
+ * Read more here: https://pris.ly/d/null-undefined
1315
+ *
1316
+ */
1317
+ createManyAndReturn<T extends AdversarialResourceCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1318
+
1319
+ /**
1320
+ * Delete a AdversarialResource.
1321
+ * @param {AdversarialResourceDeleteArgs} args - Arguments to delete one AdversarialResource.
1322
+ * @example
1323
+ * // Delete one AdversarialResource
1324
+ * const AdversarialResource = await prisma.adversarialResource.delete({
1325
+ * where: {
1326
+ * // ... filter to delete one AdversarialResource
1327
+ * }
1328
+ * })
1329
+ *
1330
+ */
1331
+ delete<T extends AdversarialResourceDeleteArgs>(args: Prisma.SelectSubset<T, AdversarialResourceDeleteArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1332
+
1333
+ /**
1334
+ * Update one AdversarialResource.
1335
+ * @param {AdversarialResourceUpdateArgs} args - Arguments to update one AdversarialResource.
1336
+ * @example
1337
+ * // Update one AdversarialResource
1338
+ * const adversarialResource = await prisma.adversarialResource.update({
1339
+ * where: {
1340
+ * // ... provide filter here
1341
+ * },
1342
+ * data: {
1343
+ * // ... provide data here
1344
+ * }
1345
+ * })
1346
+ *
1347
+ */
1348
+ update<T extends AdversarialResourceUpdateArgs>(args: Prisma.SelectSubset<T, AdversarialResourceUpdateArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1349
+
1350
+ /**
1351
+ * Delete zero or more AdversarialResources.
1352
+ * @param {AdversarialResourceDeleteManyArgs} args - Arguments to filter AdversarialResources to delete.
1353
+ * @example
1354
+ * // Delete a few AdversarialResources
1355
+ * const { count } = await prisma.adversarialResource.deleteMany({
1356
+ * where: {
1357
+ * // ... provide filter here
1358
+ * }
1359
+ * })
1360
+ *
1361
+ */
1362
+ deleteMany<T extends AdversarialResourceDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdversarialResourceDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1363
+
1364
+ /**
1365
+ * Update zero or more AdversarialResources.
1366
+ * Note, that providing `undefined` is treated as the value not being there.
1367
+ * Read more here: https://pris.ly/d/null-undefined
1368
+ * @param {AdversarialResourceUpdateManyArgs} args - Arguments to update one or more rows.
1369
+ * @example
1370
+ * // Update many AdversarialResources
1371
+ * const adversarialResource = await prisma.adversarialResource.updateMany({
1372
+ * where: {
1373
+ * // ... provide filter here
1374
+ * },
1375
+ * data: {
1376
+ * // ... provide data here
1377
+ * }
1378
+ * })
1379
+ *
1380
+ */
1381
+ updateMany<T extends AdversarialResourceUpdateManyArgs>(args: Prisma.SelectSubset<T, AdversarialResourceUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1382
+
1383
+ /**
1384
+ * Update zero or more AdversarialResources and returns the data updated in the database.
1385
+ * @param {AdversarialResourceUpdateManyAndReturnArgs} args - Arguments to update many AdversarialResources.
1386
+ * @example
1387
+ * // Update many AdversarialResources
1388
+ * const adversarialResource = await prisma.adversarialResource.updateManyAndReturn({
1389
+ * where: {
1390
+ * // ... provide filter here
1391
+ * },
1392
+ * data: [
1393
+ * // ... provide data here
1394
+ * ]
1395
+ * })
1396
+ *
1397
+ * // Update zero or more AdversarialResources and only return the `id`
1398
+ * const adversarialResourceWithIdOnly = await prisma.adversarialResource.updateManyAndReturn({
1399
+ * select: { id: true },
1400
+ * where: {
1401
+ * // ... provide filter here
1402
+ * },
1403
+ * data: [
1404
+ * // ... provide data here
1405
+ * ]
1406
+ * })
1407
+ * Note, that providing `undefined` is treated as the value not being there.
1408
+ * Read more here: https://pris.ly/d/null-undefined
1409
+ *
1410
+ */
1411
+ updateManyAndReturn<T extends AdversarialResourceUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdversarialResourceUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1412
+
1413
+ /**
1414
+ * Create or update one AdversarialResource.
1415
+ * @param {AdversarialResourceUpsertArgs} args - Arguments to update or create a AdversarialResource.
1416
+ * @example
1417
+ * // Update or create a AdversarialResource
1418
+ * const adversarialResource = await prisma.adversarialResource.upsert({
1419
+ * create: {
1420
+ * // ... data to create a AdversarialResource
1421
+ * },
1422
+ * update: {
1423
+ * // ... in case it already exists, update
1424
+ * },
1425
+ * where: {
1426
+ * // ... the filter for the AdversarialResource we want to update
1427
+ * }
1428
+ * })
1429
+ */
1430
+ upsert<T extends AdversarialResourceUpsertArgs>(args: Prisma.SelectSubset<T, AdversarialResourceUpsertArgs<ExtArgs>>): Prisma.Prisma__AdversarialResourceClient<runtime.Types.Result.GetResult<Prisma.$AdversarialResourcePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1431
+
1432
+
1433
+ /**
1434
+ * Count the number of AdversarialResources.
1435
+ * Note, that providing `undefined` is treated as the value not being there.
1436
+ * Read more here: https://pris.ly/d/null-undefined
1437
+ * @param {AdversarialResourceCountArgs} args - Arguments to filter AdversarialResources to count.
1438
+ * @example
1439
+ * // Count the number of AdversarialResources
1440
+ * const count = await prisma.adversarialResource.count({
1441
+ * where: {
1442
+ * // ... the filter for the AdversarialResources we want to count
1443
+ * }
1444
+ * })
1445
+ **/
1446
+ count<T extends AdversarialResourceCountArgs>(
1447
+ args?: Prisma.Subset<T, AdversarialResourceCountArgs>,
1448
+ ): Prisma.PrismaPromise<
1449
+ T extends runtime.Types.Utils.Record<'select', any>
1450
+ ? T['select'] extends true
1451
+ ? number
1452
+ : Prisma.GetScalarType<T['select'], AdversarialResourceCountAggregateOutputType>
1453
+ : number
1454
+ >
1455
+
1456
+ /**
1457
+ * Allows you to perform aggregations operations on a AdversarialResource.
1458
+ * Note, that providing `undefined` is treated as the value not being there.
1459
+ * Read more here: https://pris.ly/d/null-undefined
1460
+ * @param {AdversarialResourceAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1461
+ * @example
1462
+ * // Ordered by age ascending
1463
+ * // Where email contains prisma.io
1464
+ * // Limited to the 10 users
1465
+ * const aggregations = await prisma.user.aggregate({
1466
+ * _avg: {
1467
+ * age: true,
1468
+ * },
1469
+ * where: {
1470
+ * email: {
1471
+ * contains: "prisma.io",
1472
+ * },
1473
+ * },
1474
+ * orderBy: {
1475
+ * age: "asc",
1476
+ * },
1477
+ * take: 10,
1478
+ * })
1479
+ **/
1480
+ aggregate<T extends AdversarialResourceAggregateArgs>(args: Prisma.Subset<T, AdversarialResourceAggregateArgs>): Prisma.PrismaPromise<GetAdversarialResourceAggregateType<T>>
1481
+
1482
+ /**
1483
+ * Group by AdversarialResource.
1484
+ * Note, that providing `undefined` is treated as the value not being there.
1485
+ * Read more here: https://pris.ly/d/null-undefined
1486
+ * @param {AdversarialResourceGroupByArgs} args - Group by arguments.
1487
+ * @example
1488
+ * // Group by city, order by createdAt, get count
1489
+ * const result = await prisma.user.groupBy({
1490
+ * by: ['city', 'createdAt'],
1491
+ * orderBy: {
1492
+ * createdAt: true
1493
+ * },
1494
+ * _count: {
1495
+ * _all: true
1496
+ * },
1497
+ * })
1498
+ *
1499
+ **/
1500
+ groupBy<
1501
+ T extends AdversarialResourceGroupByArgs,
1502
+ HasSelectOrTake extends Prisma.Or<
1503
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1504
+ Prisma.Extends<'take', Prisma.Keys<T>>
1505
+ >,
1506
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1507
+ ? { orderBy: AdversarialResourceGroupByArgs['orderBy'] }
1508
+ : { orderBy?: AdversarialResourceGroupByArgs['orderBy'] },
1509
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1510
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1511
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1512
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1513
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1514
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1515
+ InputErrors extends ByEmpty extends Prisma.True
1516
+ ? `Error: "by" must not be empty.`
1517
+ : HavingValid extends Prisma.False
1518
+ ? {
1519
+ [P in HavingFields]: P extends ByFields
1520
+ ? never
1521
+ : P extends string
1522
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1523
+ : [
1524
+ Error,
1525
+ 'Field ',
1526
+ P,
1527
+ ` in "having" needs to be provided in "by"`,
1528
+ ]
1529
+ }[HavingFields]
1530
+ : 'take' extends Prisma.Keys<T>
1531
+ ? 'orderBy' extends Prisma.Keys<T>
1532
+ ? ByValid extends Prisma.True
1533
+ ? {}
1534
+ : {
1535
+ [P in OrderFields]: P extends ByFields
1536
+ ? never
1537
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1538
+ }[OrderFields]
1539
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1540
+ : 'skip' extends Prisma.Keys<T>
1541
+ ? 'orderBy' extends Prisma.Keys<T>
1542
+ ? ByValid extends Prisma.True
1543
+ ? {}
1544
+ : {
1545
+ [P in OrderFields]: P extends ByFields
1546
+ ? never
1547
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1548
+ }[OrderFields]
1549
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1550
+ : ByValid extends Prisma.True
1551
+ ? {}
1552
+ : {
1553
+ [P in OrderFields]: P extends ByFields
1554
+ ? never
1555
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1556
+ }[OrderFields]
1557
+ >(args: Prisma.SubsetIntersection<T, AdversarialResourceGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdversarialResourceGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1558
+ /**
1559
+ * Fields of the AdversarialResource model
1560
+ */
1561
+ readonly fields: AdversarialResourceFieldRefs;
1562
+ }
1563
+
1564
+ /**
1565
+ * The delegate class that acts as a "Promise-like" for AdversarialResource.
1566
+ * Why is this prefixed with `Prisma__`?
1567
+ * Because we want to prevent naming conflicts as mentioned in
1568
+ * https://github.com/prisma/prisma-client-js/issues/707
1569
+ */
1570
+ export interface Prisma__AdversarialResourceClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1571
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1572
+ tags<T extends Prisma.AdversarialResource$tagsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$tagsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialTagPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1573
+ categories<T extends Prisma.AdversarialResource$categoriesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$categoriesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialCategoryPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1574
+ parent<T extends Prisma.AdversarialResource$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$parentArgs<ExtArgs>>): Prisma.Prisma__AdversarialParentClient<runtime.Types.Result.GetResult<Prisma.$AdversarialParentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1575
+ numberList<T extends Prisma.AdversarialResource$numberListArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$numberListArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialNumberListElementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1576
+ boolList<T extends Prisma.AdversarialResource$boolListArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdversarialResource$boolListArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdversarialBoolListElementPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1577
+ /**
1578
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1579
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1580
+ * @param onrejected The callback to execute when the Promise is rejected.
1581
+ * @returns A Promise for the completion of which ever callback is executed.
1582
+ */
1583
+ 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>
1584
+ /**
1585
+ * Attaches a callback for only the rejection of the Promise.
1586
+ * @param onrejected The callback to execute when the Promise is rejected.
1587
+ * @returns A Promise for the completion of the callback.
1588
+ */
1589
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1590
+ /**
1591
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1592
+ * resolved value cannot be modified from the callback.
1593
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1594
+ * @returns A Promise for the completion of the callback.
1595
+ */
1596
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1597
+ }
1598
+
1599
+
1600
+
1601
+
1602
+ /**
1603
+ * Fields of the AdversarialResource model
1604
+ */
1605
+ export interface AdversarialResourceFieldRefs {
1606
+ readonly id: Prisma.FieldRef<"AdversarialResource", 'String'>
1607
+ readonly aBool: Prisma.FieldRef<"AdversarialResource", 'Boolean'>
1608
+ readonly aString: Prisma.FieldRef<"AdversarialResource", 'String'>
1609
+ readonly aNumber: Prisma.FieldRef<"AdversarialResource", 'Int'>
1610
+ readonly aDouble: Prisma.FieldRef<"AdversarialResource", 'Float'>
1611
+ readonly aOptionalString: Prisma.FieldRef<"AdversarialResource", 'String'>
1612
+ readonly createdBy: Prisma.FieldRef<"AdversarialResource", 'String'>
1613
+ readonly scope: Prisma.FieldRef<"AdversarialResource", 'String'>
1614
+ readonly createdAt: Prisma.FieldRef<"AdversarialResource", 'DateTime'>
1615
+ readonly updatedAt: Prisma.FieldRef<"AdversarialResource", 'DateTime'>
1616
+ }
1617
+
1618
+
1619
+ // Custom InputTypes
1620
+ /**
1621
+ * AdversarialResource findUnique
1622
+ */
1623
+ export type AdversarialResourceFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1624
+ /**
1625
+ * Select specific fields to fetch from the AdversarialResource
1626
+ */
1627
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1628
+ /**
1629
+ * Omit specific fields from the AdversarialResource
1630
+ */
1631
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1632
+ /**
1633
+ * Choose, which related nodes to fetch as well
1634
+ */
1635
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1636
+ /**
1637
+ * Filter, which AdversarialResource to fetch.
1638
+ */
1639
+ where: Prisma.AdversarialResourceWhereUniqueInput
1640
+ }
1641
+
1642
+ /**
1643
+ * AdversarialResource findUniqueOrThrow
1644
+ */
1645
+ export type AdversarialResourceFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1646
+ /**
1647
+ * Select specific fields to fetch from the AdversarialResource
1648
+ */
1649
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1650
+ /**
1651
+ * Omit specific fields from the AdversarialResource
1652
+ */
1653
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1654
+ /**
1655
+ * Choose, which related nodes to fetch as well
1656
+ */
1657
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1658
+ /**
1659
+ * Filter, which AdversarialResource to fetch.
1660
+ */
1661
+ where: Prisma.AdversarialResourceWhereUniqueInput
1662
+ }
1663
+
1664
+ /**
1665
+ * AdversarialResource findFirst
1666
+ */
1667
+ export type AdversarialResourceFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1668
+ /**
1669
+ * Select specific fields to fetch from the AdversarialResource
1670
+ */
1671
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1672
+ /**
1673
+ * Omit specific fields from the AdversarialResource
1674
+ */
1675
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1676
+ /**
1677
+ * Choose, which related nodes to fetch as well
1678
+ */
1679
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1680
+ /**
1681
+ * Filter, which AdversarialResource to fetch.
1682
+ */
1683
+ where?: Prisma.AdversarialResourceWhereInput
1684
+ /**
1685
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1686
+ *
1687
+ * Determine the order of AdversarialResources to fetch.
1688
+ */
1689
+ orderBy?: Prisma.AdversarialResourceOrderByWithRelationInput | Prisma.AdversarialResourceOrderByWithRelationInput[]
1690
+ /**
1691
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1692
+ *
1693
+ * Sets the position for searching for AdversarialResources.
1694
+ */
1695
+ cursor?: Prisma.AdversarialResourceWhereUniqueInput
1696
+ /**
1697
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1698
+ *
1699
+ * Take `±n` AdversarialResources from the position of the cursor.
1700
+ */
1701
+ take?: number
1702
+ /**
1703
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1704
+ *
1705
+ * Skip the first `n` AdversarialResources.
1706
+ */
1707
+ skip?: number
1708
+ /**
1709
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1710
+ *
1711
+ * Filter by unique combinations of AdversarialResources.
1712
+ */
1713
+ distinct?: Prisma.AdversarialResourceScalarFieldEnum | Prisma.AdversarialResourceScalarFieldEnum[]
1714
+ }
1715
+
1716
+ /**
1717
+ * AdversarialResource findFirstOrThrow
1718
+ */
1719
+ export type AdversarialResourceFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1720
+ /**
1721
+ * Select specific fields to fetch from the AdversarialResource
1722
+ */
1723
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1724
+ /**
1725
+ * Omit specific fields from the AdversarialResource
1726
+ */
1727
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1728
+ /**
1729
+ * Choose, which related nodes to fetch as well
1730
+ */
1731
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1732
+ /**
1733
+ * Filter, which AdversarialResource to fetch.
1734
+ */
1735
+ where?: Prisma.AdversarialResourceWhereInput
1736
+ /**
1737
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1738
+ *
1739
+ * Determine the order of AdversarialResources to fetch.
1740
+ */
1741
+ orderBy?: Prisma.AdversarialResourceOrderByWithRelationInput | Prisma.AdversarialResourceOrderByWithRelationInput[]
1742
+ /**
1743
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1744
+ *
1745
+ * Sets the position for searching for AdversarialResources.
1746
+ */
1747
+ cursor?: Prisma.AdversarialResourceWhereUniqueInput
1748
+ /**
1749
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1750
+ *
1751
+ * Take `±n` AdversarialResources from the position of the cursor.
1752
+ */
1753
+ take?: number
1754
+ /**
1755
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1756
+ *
1757
+ * Skip the first `n` AdversarialResources.
1758
+ */
1759
+ skip?: number
1760
+ /**
1761
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1762
+ *
1763
+ * Filter by unique combinations of AdversarialResources.
1764
+ */
1765
+ distinct?: Prisma.AdversarialResourceScalarFieldEnum | Prisma.AdversarialResourceScalarFieldEnum[]
1766
+ }
1767
+
1768
+ /**
1769
+ * AdversarialResource findMany
1770
+ */
1771
+ export type AdversarialResourceFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1772
+ /**
1773
+ * Select specific fields to fetch from the AdversarialResource
1774
+ */
1775
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1776
+ /**
1777
+ * Omit specific fields from the AdversarialResource
1778
+ */
1779
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1780
+ /**
1781
+ * Choose, which related nodes to fetch as well
1782
+ */
1783
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1784
+ /**
1785
+ * Filter, which AdversarialResources to fetch.
1786
+ */
1787
+ where?: Prisma.AdversarialResourceWhereInput
1788
+ /**
1789
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1790
+ *
1791
+ * Determine the order of AdversarialResources to fetch.
1792
+ */
1793
+ orderBy?: Prisma.AdversarialResourceOrderByWithRelationInput | Prisma.AdversarialResourceOrderByWithRelationInput[]
1794
+ /**
1795
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1796
+ *
1797
+ * Sets the position for listing AdversarialResources.
1798
+ */
1799
+ cursor?: Prisma.AdversarialResourceWhereUniqueInput
1800
+ /**
1801
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1802
+ *
1803
+ * Take `±n` AdversarialResources from the position of the cursor.
1804
+ */
1805
+ take?: number
1806
+ /**
1807
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1808
+ *
1809
+ * Skip the first `n` AdversarialResources.
1810
+ */
1811
+ skip?: number
1812
+ /**
1813
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1814
+ *
1815
+ * Filter by unique combinations of AdversarialResources.
1816
+ */
1817
+ distinct?: Prisma.AdversarialResourceScalarFieldEnum | Prisma.AdversarialResourceScalarFieldEnum[]
1818
+ }
1819
+
1820
+ /**
1821
+ * AdversarialResource create
1822
+ */
1823
+ export type AdversarialResourceCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1824
+ /**
1825
+ * Select specific fields to fetch from the AdversarialResource
1826
+ */
1827
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1828
+ /**
1829
+ * Omit specific fields from the AdversarialResource
1830
+ */
1831
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1832
+ /**
1833
+ * Choose, which related nodes to fetch as well
1834
+ */
1835
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1836
+ /**
1837
+ * The data needed to create a AdversarialResource.
1838
+ */
1839
+ data: Prisma.XOR<Prisma.AdversarialResourceCreateInput, Prisma.AdversarialResourceUncheckedCreateInput>
1840
+ }
1841
+
1842
+ /**
1843
+ * AdversarialResource createMany
1844
+ */
1845
+ export type AdversarialResourceCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1846
+ /**
1847
+ * The data used to create many AdversarialResources.
1848
+ */
1849
+ data: Prisma.AdversarialResourceCreateManyInput | Prisma.AdversarialResourceCreateManyInput[]
1850
+ skipDuplicates?: boolean
1851
+ }
1852
+
1853
+ /**
1854
+ * AdversarialResource createManyAndReturn
1855
+ */
1856
+ export type AdversarialResourceCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1857
+ /**
1858
+ * Select specific fields to fetch from the AdversarialResource
1859
+ */
1860
+ select?: Prisma.AdversarialResourceSelectCreateManyAndReturn<ExtArgs> | null
1861
+ /**
1862
+ * Omit specific fields from the AdversarialResource
1863
+ */
1864
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1865
+ /**
1866
+ * The data used to create many AdversarialResources.
1867
+ */
1868
+ data: Prisma.AdversarialResourceCreateManyInput | Prisma.AdversarialResourceCreateManyInput[]
1869
+ skipDuplicates?: boolean
1870
+ }
1871
+
1872
+ /**
1873
+ * AdversarialResource update
1874
+ */
1875
+ export type AdversarialResourceUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1876
+ /**
1877
+ * Select specific fields to fetch from the AdversarialResource
1878
+ */
1879
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1880
+ /**
1881
+ * Omit specific fields from the AdversarialResource
1882
+ */
1883
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1884
+ /**
1885
+ * Choose, which related nodes to fetch as well
1886
+ */
1887
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1888
+ /**
1889
+ * The data needed to update a AdversarialResource.
1890
+ */
1891
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateInput, Prisma.AdversarialResourceUncheckedUpdateInput>
1892
+ /**
1893
+ * Choose, which AdversarialResource to update.
1894
+ */
1895
+ where: Prisma.AdversarialResourceWhereUniqueInput
1896
+ }
1897
+
1898
+ /**
1899
+ * AdversarialResource updateMany
1900
+ */
1901
+ export type AdversarialResourceUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1902
+ /**
1903
+ * The data used to update AdversarialResources.
1904
+ */
1905
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateManyMutationInput, Prisma.AdversarialResourceUncheckedUpdateManyInput>
1906
+ /**
1907
+ * Filter which AdversarialResources to update
1908
+ */
1909
+ where?: Prisma.AdversarialResourceWhereInput
1910
+ /**
1911
+ * Limit how many AdversarialResources to update.
1912
+ */
1913
+ limit?: number
1914
+ }
1915
+
1916
+ /**
1917
+ * AdversarialResource updateManyAndReturn
1918
+ */
1919
+ export type AdversarialResourceUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1920
+ /**
1921
+ * Select specific fields to fetch from the AdversarialResource
1922
+ */
1923
+ select?: Prisma.AdversarialResourceSelectUpdateManyAndReturn<ExtArgs> | null
1924
+ /**
1925
+ * Omit specific fields from the AdversarialResource
1926
+ */
1927
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1928
+ /**
1929
+ * The data used to update AdversarialResources.
1930
+ */
1931
+ data: Prisma.XOR<Prisma.AdversarialResourceUpdateManyMutationInput, Prisma.AdversarialResourceUncheckedUpdateManyInput>
1932
+ /**
1933
+ * Filter which AdversarialResources to update
1934
+ */
1935
+ where?: Prisma.AdversarialResourceWhereInput
1936
+ /**
1937
+ * Limit how many AdversarialResources to update.
1938
+ */
1939
+ limit?: number
1940
+ }
1941
+
1942
+ /**
1943
+ * AdversarialResource upsert
1944
+ */
1945
+ export type AdversarialResourceUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1946
+ /**
1947
+ * Select specific fields to fetch from the AdversarialResource
1948
+ */
1949
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1950
+ /**
1951
+ * Omit specific fields from the AdversarialResource
1952
+ */
1953
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1954
+ /**
1955
+ * Choose, which related nodes to fetch as well
1956
+ */
1957
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1958
+ /**
1959
+ * The filter to search for the AdversarialResource to update in case it exists.
1960
+ */
1961
+ where: Prisma.AdversarialResourceWhereUniqueInput
1962
+ /**
1963
+ * In case the AdversarialResource found by the `where` argument doesn't exist, create a new AdversarialResource with this data.
1964
+ */
1965
+ create: Prisma.XOR<Prisma.AdversarialResourceCreateInput, Prisma.AdversarialResourceUncheckedCreateInput>
1966
+ /**
1967
+ * In case the AdversarialResource was found with the provided `where` argument, update it with this data.
1968
+ */
1969
+ update: Prisma.XOR<Prisma.AdversarialResourceUpdateInput, Prisma.AdversarialResourceUncheckedUpdateInput>
1970
+ }
1971
+
1972
+ /**
1973
+ * AdversarialResource delete
1974
+ */
1975
+ export type AdversarialResourceDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1976
+ /**
1977
+ * Select specific fields to fetch from the AdversarialResource
1978
+ */
1979
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
1980
+ /**
1981
+ * Omit specific fields from the AdversarialResource
1982
+ */
1983
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
1984
+ /**
1985
+ * Choose, which related nodes to fetch as well
1986
+ */
1987
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
1988
+ /**
1989
+ * Filter which AdversarialResource to delete.
1990
+ */
1991
+ where: Prisma.AdversarialResourceWhereUniqueInput
1992
+ }
1993
+
1994
+ /**
1995
+ * AdversarialResource deleteMany
1996
+ */
1997
+ export type AdversarialResourceDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1998
+ /**
1999
+ * Filter which AdversarialResources to delete
2000
+ */
2001
+ where?: Prisma.AdversarialResourceWhereInput
2002
+ /**
2003
+ * Limit how many AdversarialResources to delete.
2004
+ */
2005
+ limit?: number
2006
+ }
2007
+
2008
+ /**
2009
+ * AdversarialResource.tags
2010
+ */
2011
+ export type AdversarialResource$tagsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2012
+ /**
2013
+ * Select specific fields to fetch from the AdversarialTag
2014
+ */
2015
+ select?: Prisma.AdversarialTagSelect<ExtArgs> | null
2016
+ /**
2017
+ * Omit specific fields from the AdversarialTag
2018
+ */
2019
+ omit?: Prisma.AdversarialTagOmit<ExtArgs> | null
2020
+ /**
2021
+ * Choose, which related nodes to fetch as well
2022
+ */
2023
+ include?: Prisma.AdversarialTagInclude<ExtArgs> | null
2024
+ where?: Prisma.AdversarialTagWhereInput
2025
+ orderBy?: Prisma.AdversarialTagOrderByWithRelationInput | Prisma.AdversarialTagOrderByWithRelationInput[]
2026
+ cursor?: Prisma.AdversarialTagWhereUniqueInput
2027
+ take?: number
2028
+ skip?: number
2029
+ distinct?: Prisma.AdversarialTagScalarFieldEnum | Prisma.AdversarialTagScalarFieldEnum[]
2030
+ }
2031
+
2032
+ /**
2033
+ * AdversarialResource.categories
2034
+ */
2035
+ export type AdversarialResource$categoriesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2036
+ /**
2037
+ * Select specific fields to fetch from the AdversarialCategory
2038
+ */
2039
+ select?: Prisma.AdversarialCategorySelect<ExtArgs> | null
2040
+ /**
2041
+ * Omit specific fields from the AdversarialCategory
2042
+ */
2043
+ omit?: Prisma.AdversarialCategoryOmit<ExtArgs> | null
2044
+ /**
2045
+ * Choose, which related nodes to fetch as well
2046
+ */
2047
+ include?: Prisma.AdversarialCategoryInclude<ExtArgs> | null
2048
+ where?: Prisma.AdversarialCategoryWhereInput
2049
+ orderBy?: Prisma.AdversarialCategoryOrderByWithRelationInput | Prisma.AdversarialCategoryOrderByWithRelationInput[]
2050
+ cursor?: Prisma.AdversarialCategoryWhereUniqueInput
2051
+ take?: number
2052
+ skip?: number
2053
+ distinct?: Prisma.AdversarialCategoryScalarFieldEnum | Prisma.AdversarialCategoryScalarFieldEnum[]
2054
+ }
2055
+
2056
+ /**
2057
+ * AdversarialResource.parent
2058
+ */
2059
+ export type AdversarialResource$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2060
+ /**
2061
+ * Select specific fields to fetch from the AdversarialParent
2062
+ */
2063
+ select?: Prisma.AdversarialParentSelect<ExtArgs> | null
2064
+ /**
2065
+ * Omit specific fields from the AdversarialParent
2066
+ */
2067
+ omit?: Prisma.AdversarialParentOmit<ExtArgs> | null
2068
+ /**
2069
+ * Choose, which related nodes to fetch as well
2070
+ */
2071
+ include?: Prisma.AdversarialParentInclude<ExtArgs> | null
2072
+ where?: Prisma.AdversarialParentWhereInput
2073
+ }
2074
+
2075
+ /**
2076
+ * AdversarialResource.numberList
2077
+ */
2078
+ export type AdversarialResource$numberListArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2079
+ /**
2080
+ * Select specific fields to fetch from the AdversarialNumberListElement
2081
+ */
2082
+ select?: Prisma.AdversarialNumberListElementSelect<ExtArgs> | null
2083
+ /**
2084
+ * Omit specific fields from the AdversarialNumberListElement
2085
+ */
2086
+ omit?: Prisma.AdversarialNumberListElementOmit<ExtArgs> | null
2087
+ /**
2088
+ * Choose, which related nodes to fetch as well
2089
+ */
2090
+ include?: Prisma.AdversarialNumberListElementInclude<ExtArgs> | null
2091
+ where?: Prisma.AdversarialNumberListElementWhereInput
2092
+ orderBy?: Prisma.AdversarialNumberListElementOrderByWithRelationInput | Prisma.AdversarialNumberListElementOrderByWithRelationInput[]
2093
+ cursor?: Prisma.AdversarialNumberListElementWhereUniqueInput
2094
+ take?: number
2095
+ skip?: number
2096
+ distinct?: Prisma.AdversarialNumberListElementScalarFieldEnum | Prisma.AdversarialNumberListElementScalarFieldEnum[]
2097
+ }
2098
+
2099
+ /**
2100
+ * AdversarialResource.boolList
2101
+ */
2102
+ export type AdversarialResource$boolListArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2103
+ /**
2104
+ * Select specific fields to fetch from the AdversarialBoolListElement
2105
+ */
2106
+ select?: Prisma.AdversarialBoolListElementSelect<ExtArgs> | null
2107
+ /**
2108
+ * Omit specific fields from the AdversarialBoolListElement
2109
+ */
2110
+ omit?: Prisma.AdversarialBoolListElementOmit<ExtArgs> | null
2111
+ /**
2112
+ * Choose, which related nodes to fetch as well
2113
+ */
2114
+ include?: Prisma.AdversarialBoolListElementInclude<ExtArgs> | null
2115
+ where?: Prisma.AdversarialBoolListElementWhereInput
2116
+ orderBy?: Prisma.AdversarialBoolListElementOrderByWithRelationInput | Prisma.AdversarialBoolListElementOrderByWithRelationInput[]
2117
+ cursor?: Prisma.AdversarialBoolListElementWhereUniqueInput
2118
+ take?: number
2119
+ skip?: number
2120
+ distinct?: Prisma.AdversarialBoolListElementScalarFieldEnum | Prisma.AdversarialBoolListElementScalarFieldEnum[]
2121
+ }
2122
+
2123
+ /**
2124
+ * AdversarialResource without action
2125
+ */
2126
+ export type AdversarialResourceDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2127
+ /**
2128
+ * Select specific fields to fetch from the AdversarialResource
2129
+ */
2130
+ select?: Prisma.AdversarialResourceSelect<ExtArgs> | null
2131
+ /**
2132
+ * Omit specific fields from the AdversarialResource
2133
+ */
2134
+ omit?: Prisma.AdversarialResourceOmit<ExtArgs> | null
2135
+ /**
2136
+ * Choose, which related nodes to fetch as well
2137
+ */
2138
+ include?: Prisma.AdversarialResourceInclude<ExtArgs> | null
2139
+ }