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