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