@actuate-media/cms-core 0.13.0 → 0.14.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/LICENSE +21 -21
- package/dist/__tests__/api/api-key-auth.test.d.ts +2 -0
- package/dist/__tests__/api/api-key-auth.test.d.ts.map +1 -0
- package/dist/__tests__/api/api-key-auth.test.js +217 -0
- package/dist/__tests__/api/api-key-auth.test.js.map +1 -0
- package/dist/__tests__/security/api-key-enhanced.test.d.ts +2 -0
- package/dist/__tests__/security/api-key-enhanced.test.d.ts.map +1 -0
- package/dist/__tests__/security/api-key-enhanced.test.js +110 -0
- package/dist/__tests__/security/api-key-enhanced.test.js.map +1 -0
- package/dist/api/handler-factory.d.ts.map +1 -1
- package/dist/api/handler-factory.js +19 -2
- package/dist/api/handler-factory.js.map +1 -1
- package/dist/api/handlers.d.ts.map +1 -1
- package/dist/api/handlers.js +427 -30
- package/dist/api/handlers.js.map +1 -1
- package/dist/security/api-key-enhanced.d.ts +48 -5
- package/dist/security/api-key-enhanced.d.ts.map +1 -1
- package/dist/security/api-key-enhanced.js +60 -9
- package/dist/security/api-key-enhanced.js.map +1 -1
- package/generated/browser.ts +109 -0
- package/generated/client.ts +133 -0
- package/generated/commonInputTypes.ts +709 -0
- package/generated/enums.ts +125 -0
- package/generated/internal/class.ts +376 -0
- package/generated/internal/prismaNamespace.ts +2617 -0
- package/generated/internal/prismaNamespaceBrowser.ts +611 -0
- package/generated/models/ApiKey.ts +1550 -0
- package/generated/models/AuditLog.ts +1206 -0
- package/generated/models/BackupRecord.ts +1250 -0
- package/generated/models/ContentLock.ts +1472 -0
- package/generated/models/ContentTemplate.ts +1416 -0
- package/generated/models/Document.ts +3005 -0
- package/generated/models/Folder.ts +1904 -0
- package/generated/models/FormSubmission.ts +1200 -0
- package/generated/models/InAppNotification.ts +1457 -0
- package/generated/models/Media.ts +2340 -0
- package/generated/models/MediaUsage.ts +1472 -0
- package/generated/models/OAuthAccount.ts +1463 -0
- package/generated/models/Redirect.ts +1284 -0
- package/generated/models/Session.ts +1492 -0
- package/generated/models/Site.ts +1206 -0
- package/generated/models/User.ts +3513 -0
- package/generated/models/Version.ts +1511 -0
- package/generated/models/WorkflowState.ts +1514 -0
- package/generated/models.ts +29 -0
- package/package.json +1 -1
- package/prisma/cms-schema.prisma +306 -306
- package/prisma/migrations/0001_init/migration.sql +384 -384
- package/prisma/migrations/0002_folders/migration.sql +39 -39
- package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -50
- package/prisma/migrations/0004_script_tags/migration.sql +21 -21
- package/prisma/migrations/0005_password_reset_tokens/migration.sql +20 -20
- package/prisma/migrations/0006_page_builder/migration.sql +38 -38
- package/prisma/migrations/migration_lock.toml +3 -3
- package/prisma/schema.prisma +549 -549
|
@@ -0,0 +1,1472 @@
|
|
|
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 `MediaUsage` 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"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model MediaUsage
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type MediaUsageModel = runtime.Types.Result.DefaultSelection<Prisma.$MediaUsagePayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateMediaUsage = {
|
|
22
|
+
_count: MediaUsageCountAggregateOutputType | null
|
|
23
|
+
_min: MediaUsageMinAggregateOutputType | null
|
|
24
|
+
_max: MediaUsageMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type MediaUsageMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
mediaId: string | null
|
|
30
|
+
documentId: string | null
|
|
31
|
+
fieldName: string | null
|
|
32
|
+
createdAt: Date | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type MediaUsageMaxAggregateOutputType = {
|
|
36
|
+
id: string | null
|
|
37
|
+
mediaId: string | null
|
|
38
|
+
documentId: string | null
|
|
39
|
+
fieldName: string | null
|
|
40
|
+
createdAt: Date | null
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type MediaUsageCountAggregateOutputType = {
|
|
44
|
+
id: number
|
|
45
|
+
mediaId: number
|
|
46
|
+
documentId: number
|
|
47
|
+
fieldName: number
|
|
48
|
+
createdAt: number
|
|
49
|
+
_all: number
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export type MediaUsageMinAggregateInputType = {
|
|
54
|
+
id?: true
|
|
55
|
+
mediaId?: true
|
|
56
|
+
documentId?: true
|
|
57
|
+
fieldName?: true
|
|
58
|
+
createdAt?: true
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type MediaUsageMaxAggregateInputType = {
|
|
62
|
+
id?: true
|
|
63
|
+
mediaId?: true
|
|
64
|
+
documentId?: true
|
|
65
|
+
fieldName?: true
|
|
66
|
+
createdAt?: true
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type MediaUsageCountAggregateInputType = {
|
|
70
|
+
id?: true
|
|
71
|
+
mediaId?: true
|
|
72
|
+
documentId?: true
|
|
73
|
+
fieldName?: true
|
|
74
|
+
createdAt?: true
|
|
75
|
+
_all?: true
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type MediaUsageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
79
|
+
/**
|
|
80
|
+
* Filter which MediaUsage to aggregate.
|
|
81
|
+
*/
|
|
82
|
+
where?: Prisma.MediaUsageWhereInput
|
|
83
|
+
/**
|
|
84
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
85
|
+
*
|
|
86
|
+
* Determine the order of MediaUsages to fetch.
|
|
87
|
+
*/
|
|
88
|
+
orderBy?: Prisma.MediaUsageOrderByWithRelationInput | Prisma.MediaUsageOrderByWithRelationInput[]
|
|
89
|
+
/**
|
|
90
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
91
|
+
*
|
|
92
|
+
* Sets the start position
|
|
93
|
+
*/
|
|
94
|
+
cursor?: Prisma.MediaUsageWhereUniqueInput
|
|
95
|
+
/**
|
|
96
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
97
|
+
*
|
|
98
|
+
* Take `±n` MediaUsages from the position of the cursor.
|
|
99
|
+
*/
|
|
100
|
+
take?: number
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
103
|
+
*
|
|
104
|
+
* Skip the first `n` MediaUsages.
|
|
105
|
+
*/
|
|
106
|
+
skip?: number
|
|
107
|
+
/**
|
|
108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
109
|
+
*
|
|
110
|
+
* Count returned MediaUsages
|
|
111
|
+
**/
|
|
112
|
+
_count?: true | MediaUsageCountAggregateInputType
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
115
|
+
*
|
|
116
|
+
* Select which fields to find the minimum value
|
|
117
|
+
**/
|
|
118
|
+
_min?: MediaUsageMinAggregateInputType
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
121
|
+
*
|
|
122
|
+
* Select which fields to find the maximum value
|
|
123
|
+
**/
|
|
124
|
+
_max?: MediaUsageMaxAggregateInputType
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type GetMediaUsageAggregateType<T extends MediaUsageAggregateArgs> = {
|
|
128
|
+
[P in keyof T & keyof AggregateMediaUsage]: P extends '_count' | 'count'
|
|
129
|
+
? T[P] extends true
|
|
130
|
+
? number
|
|
131
|
+
: Prisma.GetScalarType<T[P], AggregateMediaUsage[P]>
|
|
132
|
+
: Prisma.GetScalarType<T[P], AggregateMediaUsage[P]>
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
export type MediaUsageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
139
|
+
where?: Prisma.MediaUsageWhereInput
|
|
140
|
+
orderBy?: Prisma.MediaUsageOrderByWithAggregationInput | Prisma.MediaUsageOrderByWithAggregationInput[]
|
|
141
|
+
by: Prisma.MediaUsageScalarFieldEnum[] | Prisma.MediaUsageScalarFieldEnum
|
|
142
|
+
having?: Prisma.MediaUsageScalarWhereWithAggregatesInput
|
|
143
|
+
take?: number
|
|
144
|
+
skip?: number
|
|
145
|
+
_count?: MediaUsageCountAggregateInputType | true
|
|
146
|
+
_min?: MediaUsageMinAggregateInputType
|
|
147
|
+
_max?: MediaUsageMaxAggregateInputType
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type MediaUsageGroupByOutputType = {
|
|
151
|
+
id: string
|
|
152
|
+
mediaId: string
|
|
153
|
+
documentId: string
|
|
154
|
+
fieldName: string
|
|
155
|
+
createdAt: Date
|
|
156
|
+
_count: MediaUsageCountAggregateOutputType | null
|
|
157
|
+
_min: MediaUsageMinAggregateOutputType | null
|
|
158
|
+
_max: MediaUsageMaxAggregateOutputType | null
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
type GetMediaUsageGroupByPayload<T extends MediaUsageGroupByArgs> = Prisma.PrismaPromise<
|
|
162
|
+
Array<
|
|
163
|
+
Prisma.PickEnumerable<MediaUsageGroupByOutputType, T['by']> &
|
|
164
|
+
{
|
|
165
|
+
[P in ((keyof T) & (keyof MediaUsageGroupByOutputType))]: P extends '_count'
|
|
166
|
+
? T[P] extends boolean
|
|
167
|
+
? number
|
|
168
|
+
: Prisma.GetScalarType<T[P], MediaUsageGroupByOutputType[P]>
|
|
169
|
+
: Prisma.GetScalarType<T[P], MediaUsageGroupByOutputType[P]>
|
|
170
|
+
}
|
|
171
|
+
>
|
|
172
|
+
>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
export type MediaUsageWhereInput = {
|
|
177
|
+
AND?: Prisma.MediaUsageWhereInput | Prisma.MediaUsageWhereInput[]
|
|
178
|
+
OR?: Prisma.MediaUsageWhereInput[]
|
|
179
|
+
NOT?: Prisma.MediaUsageWhereInput | Prisma.MediaUsageWhereInput[]
|
|
180
|
+
id?: Prisma.StringFilter<"MediaUsage"> | string
|
|
181
|
+
mediaId?: Prisma.StringFilter<"MediaUsage"> | string
|
|
182
|
+
documentId?: Prisma.StringFilter<"MediaUsage"> | string
|
|
183
|
+
fieldName?: Prisma.StringFilter<"MediaUsage"> | string
|
|
184
|
+
createdAt?: Prisma.DateTimeFilter<"MediaUsage"> | Date | string
|
|
185
|
+
media?: Prisma.XOR<Prisma.MediaScalarRelationFilter, Prisma.MediaWhereInput>
|
|
186
|
+
document?: Prisma.XOR<Prisma.DocumentScalarRelationFilter, Prisma.DocumentWhereInput>
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export type MediaUsageOrderByWithRelationInput = {
|
|
190
|
+
id?: Prisma.SortOrder
|
|
191
|
+
mediaId?: Prisma.SortOrder
|
|
192
|
+
documentId?: Prisma.SortOrder
|
|
193
|
+
fieldName?: Prisma.SortOrder
|
|
194
|
+
createdAt?: Prisma.SortOrder
|
|
195
|
+
media?: Prisma.MediaOrderByWithRelationInput
|
|
196
|
+
document?: Prisma.DocumentOrderByWithRelationInput
|
|
197
|
+
_relevance?: Prisma.MediaUsageOrderByRelevanceInput
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type MediaUsageWhereUniqueInput = Prisma.AtLeast<{
|
|
201
|
+
id?: string
|
|
202
|
+
AND?: Prisma.MediaUsageWhereInput | Prisma.MediaUsageWhereInput[]
|
|
203
|
+
OR?: Prisma.MediaUsageWhereInput[]
|
|
204
|
+
NOT?: Prisma.MediaUsageWhereInput | Prisma.MediaUsageWhereInput[]
|
|
205
|
+
mediaId?: Prisma.StringFilter<"MediaUsage"> | string
|
|
206
|
+
documentId?: Prisma.StringFilter<"MediaUsage"> | string
|
|
207
|
+
fieldName?: Prisma.StringFilter<"MediaUsage"> | string
|
|
208
|
+
createdAt?: Prisma.DateTimeFilter<"MediaUsage"> | Date | string
|
|
209
|
+
media?: Prisma.XOR<Prisma.MediaScalarRelationFilter, Prisma.MediaWhereInput>
|
|
210
|
+
document?: Prisma.XOR<Prisma.DocumentScalarRelationFilter, Prisma.DocumentWhereInput>
|
|
211
|
+
}, "id">
|
|
212
|
+
|
|
213
|
+
export type MediaUsageOrderByWithAggregationInput = {
|
|
214
|
+
id?: Prisma.SortOrder
|
|
215
|
+
mediaId?: Prisma.SortOrder
|
|
216
|
+
documentId?: Prisma.SortOrder
|
|
217
|
+
fieldName?: Prisma.SortOrder
|
|
218
|
+
createdAt?: Prisma.SortOrder
|
|
219
|
+
_count?: Prisma.MediaUsageCountOrderByAggregateInput
|
|
220
|
+
_max?: Prisma.MediaUsageMaxOrderByAggregateInput
|
|
221
|
+
_min?: Prisma.MediaUsageMinOrderByAggregateInput
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export type MediaUsageScalarWhereWithAggregatesInput = {
|
|
225
|
+
AND?: Prisma.MediaUsageScalarWhereWithAggregatesInput | Prisma.MediaUsageScalarWhereWithAggregatesInput[]
|
|
226
|
+
OR?: Prisma.MediaUsageScalarWhereWithAggregatesInput[]
|
|
227
|
+
NOT?: Prisma.MediaUsageScalarWhereWithAggregatesInput | Prisma.MediaUsageScalarWhereWithAggregatesInput[]
|
|
228
|
+
id?: Prisma.StringWithAggregatesFilter<"MediaUsage"> | string
|
|
229
|
+
mediaId?: Prisma.StringWithAggregatesFilter<"MediaUsage"> | string
|
|
230
|
+
documentId?: Prisma.StringWithAggregatesFilter<"MediaUsage"> | string
|
|
231
|
+
fieldName?: Prisma.StringWithAggregatesFilter<"MediaUsage"> | string
|
|
232
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"MediaUsage"> | Date | string
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export type MediaUsageCreateInput = {
|
|
236
|
+
id?: string
|
|
237
|
+
fieldName: string
|
|
238
|
+
createdAt?: Date | string
|
|
239
|
+
media: Prisma.MediaCreateNestedOneWithoutMediaUsagesInput
|
|
240
|
+
document: Prisma.DocumentCreateNestedOneWithoutMediaUsagesInput
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export type MediaUsageUncheckedCreateInput = {
|
|
244
|
+
id?: string
|
|
245
|
+
mediaId: string
|
|
246
|
+
documentId: string
|
|
247
|
+
fieldName: string
|
|
248
|
+
createdAt?: Date | string
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
export type MediaUsageUpdateInput = {
|
|
252
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
253
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
254
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
255
|
+
media?: Prisma.MediaUpdateOneRequiredWithoutMediaUsagesNestedInput
|
|
256
|
+
document?: Prisma.DocumentUpdateOneRequiredWithoutMediaUsagesNestedInput
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export type MediaUsageUncheckedUpdateInput = {
|
|
260
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
261
|
+
mediaId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
262
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
263
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
264
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
export type MediaUsageCreateManyInput = {
|
|
268
|
+
id?: string
|
|
269
|
+
mediaId: string
|
|
270
|
+
documentId: string
|
|
271
|
+
fieldName: string
|
|
272
|
+
createdAt?: Date | string
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export type MediaUsageUpdateManyMutationInput = {
|
|
276
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
277
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
278
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export type MediaUsageUncheckedUpdateManyInput = {
|
|
282
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
283
|
+
mediaId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
284
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
285
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
286
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export type MediaUsageListRelationFilter = {
|
|
290
|
+
every?: Prisma.MediaUsageWhereInput
|
|
291
|
+
some?: Prisma.MediaUsageWhereInput
|
|
292
|
+
none?: Prisma.MediaUsageWhereInput
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export type MediaUsageOrderByRelationAggregateInput = {
|
|
296
|
+
_count?: Prisma.SortOrder
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export type MediaUsageOrderByRelevanceInput = {
|
|
300
|
+
fields: Prisma.MediaUsageOrderByRelevanceFieldEnum | Prisma.MediaUsageOrderByRelevanceFieldEnum[]
|
|
301
|
+
sort: Prisma.SortOrder
|
|
302
|
+
search: string
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type MediaUsageCountOrderByAggregateInput = {
|
|
306
|
+
id?: Prisma.SortOrder
|
|
307
|
+
mediaId?: Prisma.SortOrder
|
|
308
|
+
documentId?: Prisma.SortOrder
|
|
309
|
+
fieldName?: Prisma.SortOrder
|
|
310
|
+
createdAt?: Prisma.SortOrder
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export type MediaUsageMaxOrderByAggregateInput = {
|
|
314
|
+
id?: Prisma.SortOrder
|
|
315
|
+
mediaId?: Prisma.SortOrder
|
|
316
|
+
documentId?: Prisma.SortOrder
|
|
317
|
+
fieldName?: Prisma.SortOrder
|
|
318
|
+
createdAt?: Prisma.SortOrder
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export type MediaUsageMinOrderByAggregateInput = {
|
|
322
|
+
id?: Prisma.SortOrder
|
|
323
|
+
mediaId?: Prisma.SortOrder
|
|
324
|
+
documentId?: Prisma.SortOrder
|
|
325
|
+
fieldName?: Prisma.SortOrder
|
|
326
|
+
createdAt?: Prisma.SortOrder
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export type MediaUsageCreateNestedManyWithoutDocumentInput = {
|
|
330
|
+
create?: Prisma.XOR<Prisma.MediaUsageCreateWithoutDocumentInput, Prisma.MediaUsageUncheckedCreateWithoutDocumentInput> | Prisma.MediaUsageCreateWithoutDocumentInput[] | Prisma.MediaUsageUncheckedCreateWithoutDocumentInput[]
|
|
331
|
+
connectOrCreate?: Prisma.MediaUsageCreateOrConnectWithoutDocumentInput | Prisma.MediaUsageCreateOrConnectWithoutDocumentInput[]
|
|
332
|
+
createMany?: Prisma.MediaUsageCreateManyDocumentInputEnvelope
|
|
333
|
+
connect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export type MediaUsageUncheckedCreateNestedManyWithoutDocumentInput = {
|
|
337
|
+
create?: Prisma.XOR<Prisma.MediaUsageCreateWithoutDocumentInput, Prisma.MediaUsageUncheckedCreateWithoutDocumentInput> | Prisma.MediaUsageCreateWithoutDocumentInput[] | Prisma.MediaUsageUncheckedCreateWithoutDocumentInput[]
|
|
338
|
+
connectOrCreate?: Prisma.MediaUsageCreateOrConnectWithoutDocumentInput | Prisma.MediaUsageCreateOrConnectWithoutDocumentInput[]
|
|
339
|
+
createMany?: Prisma.MediaUsageCreateManyDocumentInputEnvelope
|
|
340
|
+
connect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export type MediaUsageUpdateManyWithoutDocumentNestedInput = {
|
|
344
|
+
create?: Prisma.XOR<Prisma.MediaUsageCreateWithoutDocumentInput, Prisma.MediaUsageUncheckedCreateWithoutDocumentInput> | Prisma.MediaUsageCreateWithoutDocumentInput[] | Prisma.MediaUsageUncheckedCreateWithoutDocumentInput[]
|
|
345
|
+
connectOrCreate?: Prisma.MediaUsageCreateOrConnectWithoutDocumentInput | Prisma.MediaUsageCreateOrConnectWithoutDocumentInput[]
|
|
346
|
+
upsert?: Prisma.MediaUsageUpsertWithWhereUniqueWithoutDocumentInput | Prisma.MediaUsageUpsertWithWhereUniqueWithoutDocumentInput[]
|
|
347
|
+
createMany?: Prisma.MediaUsageCreateManyDocumentInputEnvelope
|
|
348
|
+
set?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
349
|
+
disconnect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
350
|
+
delete?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
351
|
+
connect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
352
|
+
update?: Prisma.MediaUsageUpdateWithWhereUniqueWithoutDocumentInput | Prisma.MediaUsageUpdateWithWhereUniqueWithoutDocumentInput[]
|
|
353
|
+
updateMany?: Prisma.MediaUsageUpdateManyWithWhereWithoutDocumentInput | Prisma.MediaUsageUpdateManyWithWhereWithoutDocumentInput[]
|
|
354
|
+
deleteMany?: Prisma.MediaUsageScalarWhereInput | Prisma.MediaUsageScalarWhereInput[]
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export type MediaUsageUncheckedUpdateManyWithoutDocumentNestedInput = {
|
|
358
|
+
create?: Prisma.XOR<Prisma.MediaUsageCreateWithoutDocumentInput, Prisma.MediaUsageUncheckedCreateWithoutDocumentInput> | Prisma.MediaUsageCreateWithoutDocumentInput[] | Prisma.MediaUsageUncheckedCreateWithoutDocumentInput[]
|
|
359
|
+
connectOrCreate?: Prisma.MediaUsageCreateOrConnectWithoutDocumentInput | Prisma.MediaUsageCreateOrConnectWithoutDocumentInput[]
|
|
360
|
+
upsert?: Prisma.MediaUsageUpsertWithWhereUniqueWithoutDocumentInput | Prisma.MediaUsageUpsertWithWhereUniqueWithoutDocumentInput[]
|
|
361
|
+
createMany?: Prisma.MediaUsageCreateManyDocumentInputEnvelope
|
|
362
|
+
set?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
363
|
+
disconnect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
364
|
+
delete?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
365
|
+
connect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
366
|
+
update?: Prisma.MediaUsageUpdateWithWhereUniqueWithoutDocumentInput | Prisma.MediaUsageUpdateWithWhereUniqueWithoutDocumentInput[]
|
|
367
|
+
updateMany?: Prisma.MediaUsageUpdateManyWithWhereWithoutDocumentInput | Prisma.MediaUsageUpdateManyWithWhereWithoutDocumentInput[]
|
|
368
|
+
deleteMany?: Prisma.MediaUsageScalarWhereInput | Prisma.MediaUsageScalarWhereInput[]
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export type MediaUsageCreateNestedManyWithoutMediaInput = {
|
|
372
|
+
create?: Prisma.XOR<Prisma.MediaUsageCreateWithoutMediaInput, Prisma.MediaUsageUncheckedCreateWithoutMediaInput> | Prisma.MediaUsageCreateWithoutMediaInput[] | Prisma.MediaUsageUncheckedCreateWithoutMediaInput[]
|
|
373
|
+
connectOrCreate?: Prisma.MediaUsageCreateOrConnectWithoutMediaInput | Prisma.MediaUsageCreateOrConnectWithoutMediaInput[]
|
|
374
|
+
createMany?: Prisma.MediaUsageCreateManyMediaInputEnvelope
|
|
375
|
+
connect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export type MediaUsageUncheckedCreateNestedManyWithoutMediaInput = {
|
|
379
|
+
create?: Prisma.XOR<Prisma.MediaUsageCreateWithoutMediaInput, Prisma.MediaUsageUncheckedCreateWithoutMediaInput> | Prisma.MediaUsageCreateWithoutMediaInput[] | Prisma.MediaUsageUncheckedCreateWithoutMediaInput[]
|
|
380
|
+
connectOrCreate?: Prisma.MediaUsageCreateOrConnectWithoutMediaInput | Prisma.MediaUsageCreateOrConnectWithoutMediaInput[]
|
|
381
|
+
createMany?: Prisma.MediaUsageCreateManyMediaInputEnvelope
|
|
382
|
+
connect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
export type MediaUsageUpdateManyWithoutMediaNestedInput = {
|
|
386
|
+
create?: Prisma.XOR<Prisma.MediaUsageCreateWithoutMediaInput, Prisma.MediaUsageUncheckedCreateWithoutMediaInput> | Prisma.MediaUsageCreateWithoutMediaInput[] | Prisma.MediaUsageUncheckedCreateWithoutMediaInput[]
|
|
387
|
+
connectOrCreate?: Prisma.MediaUsageCreateOrConnectWithoutMediaInput | Prisma.MediaUsageCreateOrConnectWithoutMediaInput[]
|
|
388
|
+
upsert?: Prisma.MediaUsageUpsertWithWhereUniqueWithoutMediaInput | Prisma.MediaUsageUpsertWithWhereUniqueWithoutMediaInput[]
|
|
389
|
+
createMany?: Prisma.MediaUsageCreateManyMediaInputEnvelope
|
|
390
|
+
set?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
391
|
+
disconnect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
392
|
+
delete?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
393
|
+
connect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
394
|
+
update?: Prisma.MediaUsageUpdateWithWhereUniqueWithoutMediaInput | Prisma.MediaUsageUpdateWithWhereUniqueWithoutMediaInput[]
|
|
395
|
+
updateMany?: Prisma.MediaUsageUpdateManyWithWhereWithoutMediaInput | Prisma.MediaUsageUpdateManyWithWhereWithoutMediaInput[]
|
|
396
|
+
deleteMany?: Prisma.MediaUsageScalarWhereInput | Prisma.MediaUsageScalarWhereInput[]
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export type MediaUsageUncheckedUpdateManyWithoutMediaNestedInput = {
|
|
400
|
+
create?: Prisma.XOR<Prisma.MediaUsageCreateWithoutMediaInput, Prisma.MediaUsageUncheckedCreateWithoutMediaInput> | Prisma.MediaUsageCreateWithoutMediaInput[] | Prisma.MediaUsageUncheckedCreateWithoutMediaInput[]
|
|
401
|
+
connectOrCreate?: Prisma.MediaUsageCreateOrConnectWithoutMediaInput | Prisma.MediaUsageCreateOrConnectWithoutMediaInput[]
|
|
402
|
+
upsert?: Prisma.MediaUsageUpsertWithWhereUniqueWithoutMediaInput | Prisma.MediaUsageUpsertWithWhereUniqueWithoutMediaInput[]
|
|
403
|
+
createMany?: Prisma.MediaUsageCreateManyMediaInputEnvelope
|
|
404
|
+
set?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
405
|
+
disconnect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
406
|
+
delete?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
407
|
+
connect?: Prisma.MediaUsageWhereUniqueInput | Prisma.MediaUsageWhereUniqueInput[]
|
|
408
|
+
update?: Prisma.MediaUsageUpdateWithWhereUniqueWithoutMediaInput | Prisma.MediaUsageUpdateWithWhereUniqueWithoutMediaInput[]
|
|
409
|
+
updateMany?: Prisma.MediaUsageUpdateManyWithWhereWithoutMediaInput | Prisma.MediaUsageUpdateManyWithWhereWithoutMediaInput[]
|
|
410
|
+
deleteMany?: Prisma.MediaUsageScalarWhereInput | Prisma.MediaUsageScalarWhereInput[]
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export type MediaUsageCreateWithoutDocumentInput = {
|
|
414
|
+
id?: string
|
|
415
|
+
fieldName: string
|
|
416
|
+
createdAt?: Date | string
|
|
417
|
+
media: Prisma.MediaCreateNestedOneWithoutMediaUsagesInput
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export type MediaUsageUncheckedCreateWithoutDocumentInput = {
|
|
421
|
+
id?: string
|
|
422
|
+
mediaId: string
|
|
423
|
+
fieldName: string
|
|
424
|
+
createdAt?: Date | string
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export type MediaUsageCreateOrConnectWithoutDocumentInput = {
|
|
428
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
429
|
+
create: Prisma.XOR<Prisma.MediaUsageCreateWithoutDocumentInput, Prisma.MediaUsageUncheckedCreateWithoutDocumentInput>
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export type MediaUsageCreateManyDocumentInputEnvelope = {
|
|
433
|
+
data: Prisma.MediaUsageCreateManyDocumentInput | Prisma.MediaUsageCreateManyDocumentInput[]
|
|
434
|
+
skipDuplicates?: boolean
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
export type MediaUsageUpsertWithWhereUniqueWithoutDocumentInput = {
|
|
438
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
439
|
+
update: Prisma.XOR<Prisma.MediaUsageUpdateWithoutDocumentInput, Prisma.MediaUsageUncheckedUpdateWithoutDocumentInput>
|
|
440
|
+
create: Prisma.XOR<Prisma.MediaUsageCreateWithoutDocumentInput, Prisma.MediaUsageUncheckedCreateWithoutDocumentInput>
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export type MediaUsageUpdateWithWhereUniqueWithoutDocumentInput = {
|
|
444
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
445
|
+
data: Prisma.XOR<Prisma.MediaUsageUpdateWithoutDocumentInput, Prisma.MediaUsageUncheckedUpdateWithoutDocumentInput>
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
export type MediaUsageUpdateManyWithWhereWithoutDocumentInput = {
|
|
449
|
+
where: Prisma.MediaUsageScalarWhereInput
|
|
450
|
+
data: Prisma.XOR<Prisma.MediaUsageUpdateManyMutationInput, Prisma.MediaUsageUncheckedUpdateManyWithoutDocumentInput>
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export type MediaUsageScalarWhereInput = {
|
|
454
|
+
AND?: Prisma.MediaUsageScalarWhereInput | Prisma.MediaUsageScalarWhereInput[]
|
|
455
|
+
OR?: Prisma.MediaUsageScalarWhereInput[]
|
|
456
|
+
NOT?: Prisma.MediaUsageScalarWhereInput | Prisma.MediaUsageScalarWhereInput[]
|
|
457
|
+
id?: Prisma.StringFilter<"MediaUsage"> | string
|
|
458
|
+
mediaId?: Prisma.StringFilter<"MediaUsage"> | string
|
|
459
|
+
documentId?: Prisma.StringFilter<"MediaUsage"> | string
|
|
460
|
+
fieldName?: Prisma.StringFilter<"MediaUsage"> | string
|
|
461
|
+
createdAt?: Prisma.DateTimeFilter<"MediaUsage"> | Date | string
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export type MediaUsageCreateWithoutMediaInput = {
|
|
465
|
+
id?: string
|
|
466
|
+
fieldName: string
|
|
467
|
+
createdAt?: Date | string
|
|
468
|
+
document: Prisma.DocumentCreateNestedOneWithoutMediaUsagesInput
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export type MediaUsageUncheckedCreateWithoutMediaInput = {
|
|
472
|
+
id?: string
|
|
473
|
+
documentId: string
|
|
474
|
+
fieldName: string
|
|
475
|
+
createdAt?: Date | string
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export type MediaUsageCreateOrConnectWithoutMediaInput = {
|
|
479
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
480
|
+
create: Prisma.XOR<Prisma.MediaUsageCreateWithoutMediaInput, Prisma.MediaUsageUncheckedCreateWithoutMediaInput>
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export type MediaUsageCreateManyMediaInputEnvelope = {
|
|
484
|
+
data: Prisma.MediaUsageCreateManyMediaInput | Prisma.MediaUsageCreateManyMediaInput[]
|
|
485
|
+
skipDuplicates?: boolean
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export type MediaUsageUpsertWithWhereUniqueWithoutMediaInput = {
|
|
489
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
490
|
+
update: Prisma.XOR<Prisma.MediaUsageUpdateWithoutMediaInput, Prisma.MediaUsageUncheckedUpdateWithoutMediaInput>
|
|
491
|
+
create: Prisma.XOR<Prisma.MediaUsageCreateWithoutMediaInput, Prisma.MediaUsageUncheckedCreateWithoutMediaInput>
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export type MediaUsageUpdateWithWhereUniqueWithoutMediaInput = {
|
|
495
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
496
|
+
data: Prisma.XOR<Prisma.MediaUsageUpdateWithoutMediaInput, Prisma.MediaUsageUncheckedUpdateWithoutMediaInput>
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export type MediaUsageUpdateManyWithWhereWithoutMediaInput = {
|
|
500
|
+
where: Prisma.MediaUsageScalarWhereInput
|
|
501
|
+
data: Prisma.XOR<Prisma.MediaUsageUpdateManyMutationInput, Prisma.MediaUsageUncheckedUpdateManyWithoutMediaInput>
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export type MediaUsageCreateManyDocumentInput = {
|
|
505
|
+
id?: string
|
|
506
|
+
mediaId: string
|
|
507
|
+
fieldName: string
|
|
508
|
+
createdAt?: Date | string
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export type MediaUsageUpdateWithoutDocumentInput = {
|
|
512
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
513
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
514
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
515
|
+
media?: Prisma.MediaUpdateOneRequiredWithoutMediaUsagesNestedInput
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export type MediaUsageUncheckedUpdateWithoutDocumentInput = {
|
|
519
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
520
|
+
mediaId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
521
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
522
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export type MediaUsageUncheckedUpdateManyWithoutDocumentInput = {
|
|
526
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
527
|
+
mediaId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
528
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
529
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export type MediaUsageCreateManyMediaInput = {
|
|
533
|
+
id?: string
|
|
534
|
+
documentId: string
|
|
535
|
+
fieldName: string
|
|
536
|
+
createdAt?: Date | string
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export type MediaUsageUpdateWithoutMediaInput = {
|
|
540
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
541
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
542
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
543
|
+
document?: Prisma.DocumentUpdateOneRequiredWithoutMediaUsagesNestedInput
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
export type MediaUsageUncheckedUpdateWithoutMediaInput = {
|
|
547
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
548
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
549
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
550
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export type MediaUsageUncheckedUpdateManyWithoutMediaInput = {
|
|
554
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
555
|
+
documentId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
556
|
+
fieldName?: Prisma.StringFieldUpdateOperationsInput | string
|
|
557
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
export type MediaUsageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
563
|
+
id?: boolean
|
|
564
|
+
mediaId?: boolean
|
|
565
|
+
documentId?: boolean
|
|
566
|
+
fieldName?: boolean
|
|
567
|
+
createdAt?: boolean
|
|
568
|
+
media?: boolean | Prisma.MediaDefaultArgs<ExtArgs>
|
|
569
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
570
|
+
}, ExtArgs["result"]["mediaUsage"]>
|
|
571
|
+
|
|
572
|
+
export type MediaUsageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
573
|
+
id?: boolean
|
|
574
|
+
mediaId?: boolean
|
|
575
|
+
documentId?: boolean
|
|
576
|
+
fieldName?: boolean
|
|
577
|
+
createdAt?: boolean
|
|
578
|
+
media?: boolean | Prisma.MediaDefaultArgs<ExtArgs>
|
|
579
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
580
|
+
}, ExtArgs["result"]["mediaUsage"]>
|
|
581
|
+
|
|
582
|
+
export type MediaUsageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
583
|
+
id?: boolean
|
|
584
|
+
mediaId?: boolean
|
|
585
|
+
documentId?: boolean
|
|
586
|
+
fieldName?: boolean
|
|
587
|
+
createdAt?: boolean
|
|
588
|
+
media?: boolean | Prisma.MediaDefaultArgs<ExtArgs>
|
|
589
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
590
|
+
}, ExtArgs["result"]["mediaUsage"]>
|
|
591
|
+
|
|
592
|
+
export type MediaUsageSelectScalar = {
|
|
593
|
+
id?: boolean
|
|
594
|
+
mediaId?: boolean
|
|
595
|
+
documentId?: boolean
|
|
596
|
+
fieldName?: boolean
|
|
597
|
+
createdAt?: boolean
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
export type MediaUsageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "mediaId" | "documentId" | "fieldName" | "createdAt", ExtArgs["result"]["mediaUsage"]>
|
|
601
|
+
export type MediaUsageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
602
|
+
media?: boolean | Prisma.MediaDefaultArgs<ExtArgs>
|
|
603
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
604
|
+
}
|
|
605
|
+
export type MediaUsageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
606
|
+
media?: boolean | Prisma.MediaDefaultArgs<ExtArgs>
|
|
607
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
608
|
+
}
|
|
609
|
+
export type MediaUsageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
610
|
+
media?: boolean | Prisma.MediaDefaultArgs<ExtArgs>
|
|
611
|
+
document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
export type $MediaUsagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
615
|
+
name: "MediaUsage"
|
|
616
|
+
objects: {
|
|
617
|
+
media: Prisma.$MediaPayload<ExtArgs>
|
|
618
|
+
document: Prisma.$DocumentPayload<ExtArgs>
|
|
619
|
+
}
|
|
620
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
621
|
+
id: string
|
|
622
|
+
mediaId: string
|
|
623
|
+
documentId: string
|
|
624
|
+
fieldName: string
|
|
625
|
+
createdAt: Date
|
|
626
|
+
}, ExtArgs["result"]["mediaUsage"]>
|
|
627
|
+
composites: {}
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export type MediaUsageGetPayload<S extends boolean | null | undefined | MediaUsageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload, S>
|
|
631
|
+
|
|
632
|
+
export type MediaUsageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
633
|
+
Omit<MediaUsageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
634
|
+
select?: MediaUsageCountAggregateInputType | true
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
export interface MediaUsageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
638
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['MediaUsage'], meta: { name: 'MediaUsage' } }
|
|
639
|
+
/**
|
|
640
|
+
* Find zero or one MediaUsage that matches the filter.
|
|
641
|
+
* @param {MediaUsageFindUniqueArgs} args - Arguments to find a MediaUsage
|
|
642
|
+
* @example
|
|
643
|
+
* // Get one MediaUsage
|
|
644
|
+
* const mediaUsage = await prisma.mediaUsage.findUnique({
|
|
645
|
+
* where: {
|
|
646
|
+
* // ... provide filter here
|
|
647
|
+
* }
|
|
648
|
+
* })
|
|
649
|
+
*/
|
|
650
|
+
findUnique<T extends MediaUsageFindUniqueArgs>(args: Prisma.SelectSubset<T, MediaUsageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MediaUsageClient<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Find one MediaUsage that matches the filter or throw an error with `error.code='P2025'`
|
|
654
|
+
* if no matches were found.
|
|
655
|
+
* @param {MediaUsageFindUniqueOrThrowArgs} args - Arguments to find a MediaUsage
|
|
656
|
+
* @example
|
|
657
|
+
* // Get one MediaUsage
|
|
658
|
+
* const mediaUsage = await prisma.mediaUsage.findUniqueOrThrow({
|
|
659
|
+
* where: {
|
|
660
|
+
* // ... provide filter here
|
|
661
|
+
* }
|
|
662
|
+
* })
|
|
663
|
+
*/
|
|
664
|
+
findUniqueOrThrow<T extends MediaUsageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MediaUsageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MediaUsageClient<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
665
|
+
|
|
666
|
+
/**
|
|
667
|
+
* Find the first MediaUsage that matches the filter.
|
|
668
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
669
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
670
|
+
* @param {MediaUsageFindFirstArgs} args - Arguments to find a MediaUsage
|
|
671
|
+
* @example
|
|
672
|
+
* // Get one MediaUsage
|
|
673
|
+
* const mediaUsage = await prisma.mediaUsage.findFirst({
|
|
674
|
+
* where: {
|
|
675
|
+
* // ... provide filter here
|
|
676
|
+
* }
|
|
677
|
+
* })
|
|
678
|
+
*/
|
|
679
|
+
findFirst<T extends MediaUsageFindFirstArgs>(args?: Prisma.SelectSubset<T, MediaUsageFindFirstArgs<ExtArgs>>): Prisma.Prisma__MediaUsageClient<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Find the first MediaUsage that matches the filter or
|
|
683
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
684
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
685
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
686
|
+
* @param {MediaUsageFindFirstOrThrowArgs} args - Arguments to find a MediaUsage
|
|
687
|
+
* @example
|
|
688
|
+
* // Get one MediaUsage
|
|
689
|
+
* const mediaUsage = await prisma.mediaUsage.findFirstOrThrow({
|
|
690
|
+
* where: {
|
|
691
|
+
* // ... provide filter here
|
|
692
|
+
* }
|
|
693
|
+
* })
|
|
694
|
+
*/
|
|
695
|
+
findFirstOrThrow<T extends MediaUsageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MediaUsageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MediaUsageClient<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* Find zero or more MediaUsages that matches the filter.
|
|
699
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
700
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
701
|
+
* @param {MediaUsageFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
702
|
+
* @example
|
|
703
|
+
* // Get all MediaUsages
|
|
704
|
+
* const mediaUsages = await prisma.mediaUsage.findMany()
|
|
705
|
+
*
|
|
706
|
+
* // Get first 10 MediaUsages
|
|
707
|
+
* const mediaUsages = await prisma.mediaUsage.findMany({ take: 10 })
|
|
708
|
+
*
|
|
709
|
+
* // Only select the `id`
|
|
710
|
+
* const mediaUsageWithIdOnly = await prisma.mediaUsage.findMany({ select: { id: true } })
|
|
711
|
+
*
|
|
712
|
+
*/
|
|
713
|
+
findMany<T extends MediaUsageFindManyArgs>(args?: Prisma.SelectSubset<T, MediaUsageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Create a MediaUsage.
|
|
717
|
+
* @param {MediaUsageCreateArgs} args - Arguments to create a MediaUsage.
|
|
718
|
+
* @example
|
|
719
|
+
* // Create one MediaUsage
|
|
720
|
+
* const MediaUsage = await prisma.mediaUsage.create({
|
|
721
|
+
* data: {
|
|
722
|
+
* // ... data to create a MediaUsage
|
|
723
|
+
* }
|
|
724
|
+
* })
|
|
725
|
+
*
|
|
726
|
+
*/
|
|
727
|
+
create<T extends MediaUsageCreateArgs>(args: Prisma.SelectSubset<T, MediaUsageCreateArgs<ExtArgs>>): Prisma.Prisma__MediaUsageClient<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Create many MediaUsages.
|
|
731
|
+
* @param {MediaUsageCreateManyArgs} args - Arguments to create many MediaUsages.
|
|
732
|
+
* @example
|
|
733
|
+
* // Create many MediaUsages
|
|
734
|
+
* const mediaUsage = await prisma.mediaUsage.createMany({
|
|
735
|
+
* data: [
|
|
736
|
+
* // ... provide data here
|
|
737
|
+
* ]
|
|
738
|
+
* })
|
|
739
|
+
*
|
|
740
|
+
*/
|
|
741
|
+
createMany<T extends MediaUsageCreateManyArgs>(args?: Prisma.SelectSubset<T, MediaUsageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* Create many MediaUsages and returns the data saved in the database.
|
|
745
|
+
* @param {MediaUsageCreateManyAndReturnArgs} args - Arguments to create many MediaUsages.
|
|
746
|
+
* @example
|
|
747
|
+
* // Create many MediaUsages
|
|
748
|
+
* const mediaUsage = await prisma.mediaUsage.createManyAndReturn({
|
|
749
|
+
* data: [
|
|
750
|
+
* // ... provide data here
|
|
751
|
+
* ]
|
|
752
|
+
* })
|
|
753
|
+
*
|
|
754
|
+
* // Create many MediaUsages and only return the `id`
|
|
755
|
+
* const mediaUsageWithIdOnly = await prisma.mediaUsage.createManyAndReturn({
|
|
756
|
+
* select: { id: true },
|
|
757
|
+
* data: [
|
|
758
|
+
* // ... provide data here
|
|
759
|
+
* ]
|
|
760
|
+
* })
|
|
761
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
762
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
763
|
+
*
|
|
764
|
+
*/
|
|
765
|
+
createManyAndReturn<T extends MediaUsageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MediaUsageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* Delete a MediaUsage.
|
|
769
|
+
* @param {MediaUsageDeleteArgs} args - Arguments to delete one MediaUsage.
|
|
770
|
+
* @example
|
|
771
|
+
* // Delete one MediaUsage
|
|
772
|
+
* const MediaUsage = await prisma.mediaUsage.delete({
|
|
773
|
+
* where: {
|
|
774
|
+
* // ... filter to delete one MediaUsage
|
|
775
|
+
* }
|
|
776
|
+
* })
|
|
777
|
+
*
|
|
778
|
+
*/
|
|
779
|
+
delete<T extends MediaUsageDeleteArgs>(args: Prisma.SelectSubset<T, MediaUsageDeleteArgs<ExtArgs>>): Prisma.Prisma__MediaUsageClient<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Update one MediaUsage.
|
|
783
|
+
* @param {MediaUsageUpdateArgs} args - Arguments to update one MediaUsage.
|
|
784
|
+
* @example
|
|
785
|
+
* // Update one MediaUsage
|
|
786
|
+
* const mediaUsage = await prisma.mediaUsage.update({
|
|
787
|
+
* where: {
|
|
788
|
+
* // ... provide filter here
|
|
789
|
+
* },
|
|
790
|
+
* data: {
|
|
791
|
+
* // ... provide data here
|
|
792
|
+
* }
|
|
793
|
+
* })
|
|
794
|
+
*
|
|
795
|
+
*/
|
|
796
|
+
update<T extends MediaUsageUpdateArgs>(args: Prisma.SelectSubset<T, MediaUsageUpdateArgs<ExtArgs>>): Prisma.Prisma__MediaUsageClient<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Delete zero or more MediaUsages.
|
|
800
|
+
* @param {MediaUsageDeleteManyArgs} args - Arguments to filter MediaUsages to delete.
|
|
801
|
+
* @example
|
|
802
|
+
* // Delete a few MediaUsages
|
|
803
|
+
* const { count } = await prisma.mediaUsage.deleteMany({
|
|
804
|
+
* where: {
|
|
805
|
+
* // ... provide filter here
|
|
806
|
+
* }
|
|
807
|
+
* })
|
|
808
|
+
*
|
|
809
|
+
*/
|
|
810
|
+
deleteMany<T extends MediaUsageDeleteManyArgs>(args?: Prisma.SelectSubset<T, MediaUsageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Update zero or more MediaUsages.
|
|
814
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
815
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
816
|
+
* @param {MediaUsageUpdateManyArgs} args - Arguments to update one or more rows.
|
|
817
|
+
* @example
|
|
818
|
+
* // Update many MediaUsages
|
|
819
|
+
* const mediaUsage = await prisma.mediaUsage.updateMany({
|
|
820
|
+
* where: {
|
|
821
|
+
* // ... provide filter here
|
|
822
|
+
* },
|
|
823
|
+
* data: {
|
|
824
|
+
* // ... provide data here
|
|
825
|
+
* }
|
|
826
|
+
* })
|
|
827
|
+
*
|
|
828
|
+
*/
|
|
829
|
+
updateMany<T extends MediaUsageUpdateManyArgs>(args: Prisma.SelectSubset<T, MediaUsageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
830
|
+
|
|
831
|
+
/**
|
|
832
|
+
* Update zero or more MediaUsages and returns the data updated in the database.
|
|
833
|
+
* @param {MediaUsageUpdateManyAndReturnArgs} args - Arguments to update many MediaUsages.
|
|
834
|
+
* @example
|
|
835
|
+
* // Update many MediaUsages
|
|
836
|
+
* const mediaUsage = await prisma.mediaUsage.updateManyAndReturn({
|
|
837
|
+
* where: {
|
|
838
|
+
* // ... provide filter here
|
|
839
|
+
* },
|
|
840
|
+
* data: [
|
|
841
|
+
* // ... provide data here
|
|
842
|
+
* ]
|
|
843
|
+
* })
|
|
844
|
+
*
|
|
845
|
+
* // Update zero or more MediaUsages and only return the `id`
|
|
846
|
+
* const mediaUsageWithIdOnly = await prisma.mediaUsage.updateManyAndReturn({
|
|
847
|
+
* select: { id: true },
|
|
848
|
+
* where: {
|
|
849
|
+
* // ... provide filter here
|
|
850
|
+
* },
|
|
851
|
+
* data: [
|
|
852
|
+
* // ... provide data here
|
|
853
|
+
* ]
|
|
854
|
+
* })
|
|
855
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
856
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
857
|
+
*
|
|
858
|
+
*/
|
|
859
|
+
updateManyAndReturn<T extends MediaUsageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MediaUsageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Create or update one MediaUsage.
|
|
863
|
+
* @param {MediaUsageUpsertArgs} args - Arguments to update or create a MediaUsage.
|
|
864
|
+
* @example
|
|
865
|
+
* // Update or create a MediaUsage
|
|
866
|
+
* const mediaUsage = await prisma.mediaUsage.upsert({
|
|
867
|
+
* create: {
|
|
868
|
+
* // ... data to create a MediaUsage
|
|
869
|
+
* },
|
|
870
|
+
* update: {
|
|
871
|
+
* // ... in case it already exists, update
|
|
872
|
+
* },
|
|
873
|
+
* where: {
|
|
874
|
+
* // ... the filter for the MediaUsage we want to update
|
|
875
|
+
* }
|
|
876
|
+
* })
|
|
877
|
+
*/
|
|
878
|
+
upsert<T extends MediaUsageUpsertArgs>(args: Prisma.SelectSubset<T, MediaUsageUpsertArgs<ExtArgs>>): Prisma.Prisma__MediaUsageClient<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* Count the number of MediaUsages.
|
|
883
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
884
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
885
|
+
* @param {MediaUsageCountArgs} args - Arguments to filter MediaUsages to count.
|
|
886
|
+
* @example
|
|
887
|
+
* // Count the number of MediaUsages
|
|
888
|
+
* const count = await prisma.mediaUsage.count({
|
|
889
|
+
* where: {
|
|
890
|
+
* // ... the filter for the MediaUsages we want to count
|
|
891
|
+
* }
|
|
892
|
+
* })
|
|
893
|
+
**/
|
|
894
|
+
count<T extends MediaUsageCountArgs>(
|
|
895
|
+
args?: Prisma.Subset<T, MediaUsageCountArgs>,
|
|
896
|
+
): Prisma.PrismaPromise<
|
|
897
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
898
|
+
? T['select'] extends true
|
|
899
|
+
? number
|
|
900
|
+
: Prisma.GetScalarType<T['select'], MediaUsageCountAggregateOutputType>
|
|
901
|
+
: number
|
|
902
|
+
>
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* Allows you to perform aggregations operations on a MediaUsage.
|
|
906
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
907
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
908
|
+
* @param {MediaUsageAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
909
|
+
* @example
|
|
910
|
+
* // Ordered by age ascending
|
|
911
|
+
* // Where email contains prisma.io
|
|
912
|
+
* // Limited to the 10 users
|
|
913
|
+
* const aggregations = await prisma.user.aggregate({
|
|
914
|
+
* _avg: {
|
|
915
|
+
* age: true,
|
|
916
|
+
* },
|
|
917
|
+
* where: {
|
|
918
|
+
* email: {
|
|
919
|
+
* contains: "prisma.io",
|
|
920
|
+
* },
|
|
921
|
+
* },
|
|
922
|
+
* orderBy: {
|
|
923
|
+
* age: "asc",
|
|
924
|
+
* },
|
|
925
|
+
* take: 10,
|
|
926
|
+
* })
|
|
927
|
+
**/
|
|
928
|
+
aggregate<T extends MediaUsageAggregateArgs>(args: Prisma.Subset<T, MediaUsageAggregateArgs>): Prisma.PrismaPromise<GetMediaUsageAggregateType<T>>
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Group by MediaUsage.
|
|
932
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
933
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
934
|
+
* @param {MediaUsageGroupByArgs} args - Group by arguments.
|
|
935
|
+
* @example
|
|
936
|
+
* // Group by city, order by createdAt, get count
|
|
937
|
+
* const result = await prisma.user.groupBy({
|
|
938
|
+
* by: ['city', 'createdAt'],
|
|
939
|
+
* orderBy: {
|
|
940
|
+
* createdAt: true
|
|
941
|
+
* },
|
|
942
|
+
* _count: {
|
|
943
|
+
* _all: true
|
|
944
|
+
* },
|
|
945
|
+
* })
|
|
946
|
+
*
|
|
947
|
+
**/
|
|
948
|
+
groupBy<
|
|
949
|
+
T extends MediaUsageGroupByArgs,
|
|
950
|
+
HasSelectOrTake extends Prisma.Or<
|
|
951
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
952
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
953
|
+
>,
|
|
954
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
955
|
+
? { orderBy: MediaUsageGroupByArgs['orderBy'] }
|
|
956
|
+
: { orderBy?: MediaUsageGroupByArgs['orderBy'] },
|
|
957
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
958
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
959
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
960
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
961
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
962
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
963
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
964
|
+
? `Error: "by" must not be empty.`
|
|
965
|
+
: HavingValid extends Prisma.False
|
|
966
|
+
? {
|
|
967
|
+
[P in HavingFields]: P extends ByFields
|
|
968
|
+
? never
|
|
969
|
+
: P extends string
|
|
970
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
971
|
+
: [
|
|
972
|
+
Error,
|
|
973
|
+
'Field ',
|
|
974
|
+
P,
|
|
975
|
+
` in "having" needs to be provided in "by"`,
|
|
976
|
+
]
|
|
977
|
+
}[HavingFields]
|
|
978
|
+
: 'take' extends Prisma.Keys<T>
|
|
979
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
980
|
+
? ByValid extends Prisma.True
|
|
981
|
+
? {}
|
|
982
|
+
: {
|
|
983
|
+
[P in OrderFields]: P extends ByFields
|
|
984
|
+
? never
|
|
985
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
986
|
+
}[OrderFields]
|
|
987
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
988
|
+
: 'skip' extends Prisma.Keys<T>
|
|
989
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
990
|
+
? ByValid extends Prisma.True
|
|
991
|
+
? {}
|
|
992
|
+
: {
|
|
993
|
+
[P in OrderFields]: P extends ByFields
|
|
994
|
+
? never
|
|
995
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
996
|
+
}[OrderFields]
|
|
997
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
998
|
+
: ByValid extends Prisma.True
|
|
999
|
+
? {}
|
|
1000
|
+
: {
|
|
1001
|
+
[P in OrderFields]: P extends ByFields
|
|
1002
|
+
? never
|
|
1003
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1004
|
+
}[OrderFields]
|
|
1005
|
+
>(args: Prisma.SubsetIntersection<T, MediaUsageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMediaUsageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1006
|
+
/**
|
|
1007
|
+
* Fields of the MediaUsage model
|
|
1008
|
+
*/
|
|
1009
|
+
readonly fields: MediaUsageFieldRefs;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* The delegate class that acts as a "Promise-like" for MediaUsage.
|
|
1014
|
+
* Why is this prefixed with `Prisma__`?
|
|
1015
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1016
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1017
|
+
*/
|
|
1018
|
+
export interface Prisma__MediaUsageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1019
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1020
|
+
media<T extends Prisma.MediaDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.MediaDefaultArgs<ExtArgs>>): Prisma.Prisma__MediaClient<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1021
|
+
document<T extends Prisma.DocumentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentDefaultArgs<ExtArgs>>): Prisma.Prisma__DocumentClient<runtime.Types.Result.GetResult<Prisma.$DocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1022
|
+
/**
|
|
1023
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1024
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1025
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1026
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1027
|
+
*/
|
|
1028
|
+
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>
|
|
1029
|
+
/**
|
|
1030
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1031
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1032
|
+
* @returns A Promise for the completion of the callback.
|
|
1033
|
+
*/
|
|
1034
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1035
|
+
/**
|
|
1036
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1037
|
+
* resolved value cannot be modified from the callback.
|
|
1038
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1039
|
+
* @returns A Promise for the completion of the callback.
|
|
1040
|
+
*/
|
|
1041
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Fields of the MediaUsage model
|
|
1049
|
+
*/
|
|
1050
|
+
export interface MediaUsageFieldRefs {
|
|
1051
|
+
readonly id: Prisma.FieldRef<"MediaUsage", 'String'>
|
|
1052
|
+
readonly mediaId: Prisma.FieldRef<"MediaUsage", 'String'>
|
|
1053
|
+
readonly documentId: Prisma.FieldRef<"MediaUsage", 'String'>
|
|
1054
|
+
readonly fieldName: Prisma.FieldRef<"MediaUsage", 'String'>
|
|
1055
|
+
readonly createdAt: Prisma.FieldRef<"MediaUsage", 'DateTime'>
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
|
|
1059
|
+
// Custom InputTypes
|
|
1060
|
+
/**
|
|
1061
|
+
* MediaUsage findUnique
|
|
1062
|
+
*/
|
|
1063
|
+
export type MediaUsageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1064
|
+
/**
|
|
1065
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1066
|
+
*/
|
|
1067
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1068
|
+
/**
|
|
1069
|
+
* Omit specific fields from the MediaUsage
|
|
1070
|
+
*/
|
|
1071
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1072
|
+
/**
|
|
1073
|
+
* Choose, which related nodes to fetch as well
|
|
1074
|
+
*/
|
|
1075
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1076
|
+
/**
|
|
1077
|
+
* Filter, which MediaUsage to fetch.
|
|
1078
|
+
*/
|
|
1079
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* MediaUsage findUniqueOrThrow
|
|
1084
|
+
*/
|
|
1085
|
+
export type MediaUsageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1086
|
+
/**
|
|
1087
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1088
|
+
*/
|
|
1089
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1090
|
+
/**
|
|
1091
|
+
* Omit specific fields from the MediaUsage
|
|
1092
|
+
*/
|
|
1093
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1094
|
+
/**
|
|
1095
|
+
* Choose, which related nodes to fetch as well
|
|
1096
|
+
*/
|
|
1097
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1098
|
+
/**
|
|
1099
|
+
* Filter, which MediaUsage to fetch.
|
|
1100
|
+
*/
|
|
1101
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* MediaUsage findFirst
|
|
1106
|
+
*/
|
|
1107
|
+
export type MediaUsageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1108
|
+
/**
|
|
1109
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1110
|
+
*/
|
|
1111
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1112
|
+
/**
|
|
1113
|
+
* Omit specific fields from the MediaUsage
|
|
1114
|
+
*/
|
|
1115
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1116
|
+
/**
|
|
1117
|
+
* Choose, which related nodes to fetch as well
|
|
1118
|
+
*/
|
|
1119
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1120
|
+
/**
|
|
1121
|
+
* Filter, which MediaUsage to fetch.
|
|
1122
|
+
*/
|
|
1123
|
+
where?: Prisma.MediaUsageWhereInput
|
|
1124
|
+
/**
|
|
1125
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1126
|
+
*
|
|
1127
|
+
* Determine the order of MediaUsages to fetch.
|
|
1128
|
+
*/
|
|
1129
|
+
orderBy?: Prisma.MediaUsageOrderByWithRelationInput | Prisma.MediaUsageOrderByWithRelationInput[]
|
|
1130
|
+
/**
|
|
1131
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1132
|
+
*
|
|
1133
|
+
* Sets the position for searching for MediaUsages.
|
|
1134
|
+
*/
|
|
1135
|
+
cursor?: Prisma.MediaUsageWhereUniqueInput
|
|
1136
|
+
/**
|
|
1137
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1138
|
+
*
|
|
1139
|
+
* Take `±n` MediaUsages from the position of the cursor.
|
|
1140
|
+
*/
|
|
1141
|
+
take?: number
|
|
1142
|
+
/**
|
|
1143
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1144
|
+
*
|
|
1145
|
+
* Skip the first `n` MediaUsages.
|
|
1146
|
+
*/
|
|
1147
|
+
skip?: number
|
|
1148
|
+
/**
|
|
1149
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1150
|
+
*
|
|
1151
|
+
* Filter by unique combinations of MediaUsages.
|
|
1152
|
+
*/
|
|
1153
|
+
distinct?: Prisma.MediaUsageScalarFieldEnum | Prisma.MediaUsageScalarFieldEnum[]
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* MediaUsage findFirstOrThrow
|
|
1158
|
+
*/
|
|
1159
|
+
export type MediaUsageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1160
|
+
/**
|
|
1161
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1162
|
+
*/
|
|
1163
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1164
|
+
/**
|
|
1165
|
+
* Omit specific fields from the MediaUsage
|
|
1166
|
+
*/
|
|
1167
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1168
|
+
/**
|
|
1169
|
+
* Choose, which related nodes to fetch as well
|
|
1170
|
+
*/
|
|
1171
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1172
|
+
/**
|
|
1173
|
+
* Filter, which MediaUsage to fetch.
|
|
1174
|
+
*/
|
|
1175
|
+
where?: Prisma.MediaUsageWhereInput
|
|
1176
|
+
/**
|
|
1177
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1178
|
+
*
|
|
1179
|
+
* Determine the order of MediaUsages to fetch.
|
|
1180
|
+
*/
|
|
1181
|
+
orderBy?: Prisma.MediaUsageOrderByWithRelationInput | Prisma.MediaUsageOrderByWithRelationInput[]
|
|
1182
|
+
/**
|
|
1183
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1184
|
+
*
|
|
1185
|
+
* Sets the position for searching for MediaUsages.
|
|
1186
|
+
*/
|
|
1187
|
+
cursor?: Prisma.MediaUsageWhereUniqueInput
|
|
1188
|
+
/**
|
|
1189
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1190
|
+
*
|
|
1191
|
+
* Take `±n` MediaUsages from the position of the cursor.
|
|
1192
|
+
*/
|
|
1193
|
+
take?: number
|
|
1194
|
+
/**
|
|
1195
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1196
|
+
*
|
|
1197
|
+
* Skip the first `n` MediaUsages.
|
|
1198
|
+
*/
|
|
1199
|
+
skip?: number
|
|
1200
|
+
/**
|
|
1201
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1202
|
+
*
|
|
1203
|
+
* Filter by unique combinations of MediaUsages.
|
|
1204
|
+
*/
|
|
1205
|
+
distinct?: Prisma.MediaUsageScalarFieldEnum | Prisma.MediaUsageScalarFieldEnum[]
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* MediaUsage findMany
|
|
1210
|
+
*/
|
|
1211
|
+
export type MediaUsageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1212
|
+
/**
|
|
1213
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1214
|
+
*/
|
|
1215
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1216
|
+
/**
|
|
1217
|
+
* Omit specific fields from the MediaUsage
|
|
1218
|
+
*/
|
|
1219
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1220
|
+
/**
|
|
1221
|
+
* Choose, which related nodes to fetch as well
|
|
1222
|
+
*/
|
|
1223
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1224
|
+
/**
|
|
1225
|
+
* Filter, which MediaUsages to fetch.
|
|
1226
|
+
*/
|
|
1227
|
+
where?: Prisma.MediaUsageWhereInput
|
|
1228
|
+
/**
|
|
1229
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1230
|
+
*
|
|
1231
|
+
* Determine the order of MediaUsages to fetch.
|
|
1232
|
+
*/
|
|
1233
|
+
orderBy?: Prisma.MediaUsageOrderByWithRelationInput | Prisma.MediaUsageOrderByWithRelationInput[]
|
|
1234
|
+
/**
|
|
1235
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1236
|
+
*
|
|
1237
|
+
* Sets the position for listing MediaUsages.
|
|
1238
|
+
*/
|
|
1239
|
+
cursor?: Prisma.MediaUsageWhereUniqueInput
|
|
1240
|
+
/**
|
|
1241
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1242
|
+
*
|
|
1243
|
+
* Take `±n` MediaUsages from the position of the cursor.
|
|
1244
|
+
*/
|
|
1245
|
+
take?: number
|
|
1246
|
+
/**
|
|
1247
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1248
|
+
*
|
|
1249
|
+
* Skip the first `n` MediaUsages.
|
|
1250
|
+
*/
|
|
1251
|
+
skip?: number
|
|
1252
|
+
/**
|
|
1253
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1254
|
+
*
|
|
1255
|
+
* Filter by unique combinations of MediaUsages.
|
|
1256
|
+
*/
|
|
1257
|
+
distinct?: Prisma.MediaUsageScalarFieldEnum | Prisma.MediaUsageScalarFieldEnum[]
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* MediaUsage create
|
|
1262
|
+
*/
|
|
1263
|
+
export type MediaUsageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1264
|
+
/**
|
|
1265
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1266
|
+
*/
|
|
1267
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1268
|
+
/**
|
|
1269
|
+
* Omit specific fields from the MediaUsage
|
|
1270
|
+
*/
|
|
1271
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1272
|
+
/**
|
|
1273
|
+
* Choose, which related nodes to fetch as well
|
|
1274
|
+
*/
|
|
1275
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1276
|
+
/**
|
|
1277
|
+
* The data needed to create a MediaUsage.
|
|
1278
|
+
*/
|
|
1279
|
+
data: Prisma.XOR<Prisma.MediaUsageCreateInput, Prisma.MediaUsageUncheckedCreateInput>
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* MediaUsage createMany
|
|
1284
|
+
*/
|
|
1285
|
+
export type MediaUsageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1286
|
+
/**
|
|
1287
|
+
* The data used to create many MediaUsages.
|
|
1288
|
+
*/
|
|
1289
|
+
data: Prisma.MediaUsageCreateManyInput | Prisma.MediaUsageCreateManyInput[]
|
|
1290
|
+
skipDuplicates?: boolean
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* MediaUsage createManyAndReturn
|
|
1295
|
+
*/
|
|
1296
|
+
export type MediaUsageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1297
|
+
/**
|
|
1298
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1299
|
+
*/
|
|
1300
|
+
select?: Prisma.MediaUsageSelectCreateManyAndReturn<ExtArgs> | null
|
|
1301
|
+
/**
|
|
1302
|
+
* Omit specific fields from the MediaUsage
|
|
1303
|
+
*/
|
|
1304
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1305
|
+
/**
|
|
1306
|
+
* The data used to create many MediaUsages.
|
|
1307
|
+
*/
|
|
1308
|
+
data: Prisma.MediaUsageCreateManyInput | Prisma.MediaUsageCreateManyInput[]
|
|
1309
|
+
skipDuplicates?: boolean
|
|
1310
|
+
/**
|
|
1311
|
+
* Choose, which related nodes to fetch as well
|
|
1312
|
+
*/
|
|
1313
|
+
include?: Prisma.MediaUsageIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* MediaUsage update
|
|
1318
|
+
*/
|
|
1319
|
+
export type MediaUsageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1320
|
+
/**
|
|
1321
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1322
|
+
*/
|
|
1323
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1324
|
+
/**
|
|
1325
|
+
* Omit specific fields from the MediaUsage
|
|
1326
|
+
*/
|
|
1327
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1328
|
+
/**
|
|
1329
|
+
* Choose, which related nodes to fetch as well
|
|
1330
|
+
*/
|
|
1331
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1332
|
+
/**
|
|
1333
|
+
* The data needed to update a MediaUsage.
|
|
1334
|
+
*/
|
|
1335
|
+
data: Prisma.XOR<Prisma.MediaUsageUpdateInput, Prisma.MediaUsageUncheckedUpdateInput>
|
|
1336
|
+
/**
|
|
1337
|
+
* Choose, which MediaUsage to update.
|
|
1338
|
+
*/
|
|
1339
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* MediaUsage updateMany
|
|
1344
|
+
*/
|
|
1345
|
+
export type MediaUsageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1346
|
+
/**
|
|
1347
|
+
* The data used to update MediaUsages.
|
|
1348
|
+
*/
|
|
1349
|
+
data: Prisma.XOR<Prisma.MediaUsageUpdateManyMutationInput, Prisma.MediaUsageUncheckedUpdateManyInput>
|
|
1350
|
+
/**
|
|
1351
|
+
* Filter which MediaUsages to update
|
|
1352
|
+
*/
|
|
1353
|
+
where?: Prisma.MediaUsageWhereInput
|
|
1354
|
+
/**
|
|
1355
|
+
* Limit how many MediaUsages to update.
|
|
1356
|
+
*/
|
|
1357
|
+
limit?: number
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* MediaUsage updateManyAndReturn
|
|
1362
|
+
*/
|
|
1363
|
+
export type MediaUsageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1364
|
+
/**
|
|
1365
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1366
|
+
*/
|
|
1367
|
+
select?: Prisma.MediaUsageSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1368
|
+
/**
|
|
1369
|
+
* Omit specific fields from the MediaUsage
|
|
1370
|
+
*/
|
|
1371
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1372
|
+
/**
|
|
1373
|
+
* The data used to update MediaUsages.
|
|
1374
|
+
*/
|
|
1375
|
+
data: Prisma.XOR<Prisma.MediaUsageUpdateManyMutationInput, Prisma.MediaUsageUncheckedUpdateManyInput>
|
|
1376
|
+
/**
|
|
1377
|
+
* Filter which MediaUsages to update
|
|
1378
|
+
*/
|
|
1379
|
+
where?: Prisma.MediaUsageWhereInput
|
|
1380
|
+
/**
|
|
1381
|
+
* Limit how many MediaUsages to update.
|
|
1382
|
+
*/
|
|
1383
|
+
limit?: number
|
|
1384
|
+
/**
|
|
1385
|
+
* Choose, which related nodes to fetch as well
|
|
1386
|
+
*/
|
|
1387
|
+
include?: Prisma.MediaUsageIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
/**
|
|
1391
|
+
* MediaUsage upsert
|
|
1392
|
+
*/
|
|
1393
|
+
export type MediaUsageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1394
|
+
/**
|
|
1395
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1396
|
+
*/
|
|
1397
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1398
|
+
/**
|
|
1399
|
+
* Omit specific fields from the MediaUsage
|
|
1400
|
+
*/
|
|
1401
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1402
|
+
/**
|
|
1403
|
+
* Choose, which related nodes to fetch as well
|
|
1404
|
+
*/
|
|
1405
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1406
|
+
/**
|
|
1407
|
+
* The filter to search for the MediaUsage to update in case it exists.
|
|
1408
|
+
*/
|
|
1409
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
1410
|
+
/**
|
|
1411
|
+
* In case the MediaUsage found by the `where` argument doesn't exist, create a new MediaUsage with this data.
|
|
1412
|
+
*/
|
|
1413
|
+
create: Prisma.XOR<Prisma.MediaUsageCreateInput, Prisma.MediaUsageUncheckedCreateInput>
|
|
1414
|
+
/**
|
|
1415
|
+
* In case the MediaUsage was found with the provided `where` argument, update it with this data.
|
|
1416
|
+
*/
|
|
1417
|
+
update: Prisma.XOR<Prisma.MediaUsageUpdateInput, Prisma.MediaUsageUncheckedUpdateInput>
|
|
1418
|
+
}
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* MediaUsage delete
|
|
1422
|
+
*/
|
|
1423
|
+
export type MediaUsageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1424
|
+
/**
|
|
1425
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1426
|
+
*/
|
|
1427
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1428
|
+
/**
|
|
1429
|
+
* Omit specific fields from the MediaUsage
|
|
1430
|
+
*/
|
|
1431
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1432
|
+
/**
|
|
1433
|
+
* Choose, which related nodes to fetch as well
|
|
1434
|
+
*/
|
|
1435
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1436
|
+
/**
|
|
1437
|
+
* Filter which MediaUsage to delete.
|
|
1438
|
+
*/
|
|
1439
|
+
where: Prisma.MediaUsageWhereUniqueInput
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
/**
|
|
1443
|
+
* MediaUsage deleteMany
|
|
1444
|
+
*/
|
|
1445
|
+
export type MediaUsageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1446
|
+
/**
|
|
1447
|
+
* Filter which MediaUsages to delete
|
|
1448
|
+
*/
|
|
1449
|
+
where?: Prisma.MediaUsageWhereInput
|
|
1450
|
+
/**
|
|
1451
|
+
* Limit how many MediaUsages to delete.
|
|
1452
|
+
*/
|
|
1453
|
+
limit?: number
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* MediaUsage without action
|
|
1458
|
+
*/
|
|
1459
|
+
export type MediaUsageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1460
|
+
/**
|
|
1461
|
+
* Select specific fields to fetch from the MediaUsage
|
|
1462
|
+
*/
|
|
1463
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
1464
|
+
/**
|
|
1465
|
+
* Omit specific fields from the MediaUsage
|
|
1466
|
+
*/
|
|
1467
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
1468
|
+
/**
|
|
1469
|
+
* Choose, which related nodes to fetch as well
|
|
1470
|
+
*/
|
|
1471
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
1472
|
+
}
|