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