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