@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,2340 @@
|
|
|
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 `Media` 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 Media
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type MediaModel = runtime.Types.Result.DefaultSelection<Prisma.$MediaPayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateMedia = {
|
|
22
|
+
_count: MediaCountAggregateOutputType | null
|
|
23
|
+
_avg: MediaAvgAggregateOutputType | null
|
|
24
|
+
_sum: MediaSumAggregateOutputType | null
|
|
25
|
+
_min: MediaMinAggregateOutputType | null
|
|
26
|
+
_max: MediaMaxAggregateOutputType | null
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type MediaAvgAggregateOutputType = {
|
|
30
|
+
fileSize: number | null
|
|
31
|
+
width: number | null
|
|
32
|
+
height: number | null
|
|
33
|
+
focalPointX: number | null
|
|
34
|
+
focalPointY: number | null
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type MediaSumAggregateOutputType = {
|
|
38
|
+
fileSize: number | null
|
|
39
|
+
width: number | null
|
|
40
|
+
height: number | null
|
|
41
|
+
focalPointX: number | null
|
|
42
|
+
focalPointY: number | null
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type MediaMinAggregateOutputType = {
|
|
46
|
+
id: string | null
|
|
47
|
+
filename: string | null
|
|
48
|
+
storageKey: string | null
|
|
49
|
+
mimeType: string | null
|
|
50
|
+
fileSize: number | null
|
|
51
|
+
width: number | null
|
|
52
|
+
height: number | null
|
|
53
|
+
altText: string | null
|
|
54
|
+
title: string | null
|
|
55
|
+
uploadedById: string | null
|
|
56
|
+
focalPointX: number | null
|
|
57
|
+
focalPointY: number | null
|
|
58
|
+
blurHash: string | null
|
|
59
|
+
aiAltText: string | null
|
|
60
|
+
aiDescription: string | null
|
|
61
|
+
folderId: string | null
|
|
62
|
+
createdAt: Date | null
|
|
63
|
+
updatedAt: Date | null
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type MediaMaxAggregateOutputType = {
|
|
67
|
+
id: string | null
|
|
68
|
+
filename: string | null
|
|
69
|
+
storageKey: string | null
|
|
70
|
+
mimeType: string | null
|
|
71
|
+
fileSize: number | null
|
|
72
|
+
width: number | null
|
|
73
|
+
height: number | null
|
|
74
|
+
altText: string | null
|
|
75
|
+
title: string | null
|
|
76
|
+
uploadedById: string | null
|
|
77
|
+
focalPointX: number | null
|
|
78
|
+
focalPointY: number | null
|
|
79
|
+
blurHash: string | null
|
|
80
|
+
aiAltText: string | null
|
|
81
|
+
aiDescription: string | null
|
|
82
|
+
folderId: string | null
|
|
83
|
+
createdAt: Date | null
|
|
84
|
+
updatedAt: Date | null
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type MediaCountAggregateOutputType = {
|
|
88
|
+
id: number
|
|
89
|
+
filename: number
|
|
90
|
+
storageKey: number
|
|
91
|
+
mimeType: number
|
|
92
|
+
fileSize: number
|
|
93
|
+
width: number
|
|
94
|
+
height: number
|
|
95
|
+
altText: number
|
|
96
|
+
title: number
|
|
97
|
+
uploadedById: number
|
|
98
|
+
focalPointX: number
|
|
99
|
+
focalPointY: number
|
|
100
|
+
blurHash: number
|
|
101
|
+
aiAltText: number
|
|
102
|
+
aiTags: number
|
|
103
|
+
aiDescription: number
|
|
104
|
+
folderId: number
|
|
105
|
+
createdAt: number
|
|
106
|
+
updatedAt: number
|
|
107
|
+
_all: number
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
export type MediaAvgAggregateInputType = {
|
|
112
|
+
fileSize?: true
|
|
113
|
+
width?: true
|
|
114
|
+
height?: true
|
|
115
|
+
focalPointX?: true
|
|
116
|
+
focalPointY?: true
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type MediaSumAggregateInputType = {
|
|
120
|
+
fileSize?: true
|
|
121
|
+
width?: true
|
|
122
|
+
height?: true
|
|
123
|
+
focalPointX?: true
|
|
124
|
+
focalPointY?: true
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type MediaMinAggregateInputType = {
|
|
128
|
+
id?: true
|
|
129
|
+
filename?: true
|
|
130
|
+
storageKey?: true
|
|
131
|
+
mimeType?: true
|
|
132
|
+
fileSize?: true
|
|
133
|
+
width?: true
|
|
134
|
+
height?: true
|
|
135
|
+
altText?: true
|
|
136
|
+
title?: true
|
|
137
|
+
uploadedById?: true
|
|
138
|
+
focalPointX?: true
|
|
139
|
+
focalPointY?: true
|
|
140
|
+
blurHash?: true
|
|
141
|
+
aiAltText?: true
|
|
142
|
+
aiDescription?: true
|
|
143
|
+
folderId?: true
|
|
144
|
+
createdAt?: true
|
|
145
|
+
updatedAt?: true
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export type MediaMaxAggregateInputType = {
|
|
149
|
+
id?: true
|
|
150
|
+
filename?: true
|
|
151
|
+
storageKey?: true
|
|
152
|
+
mimeType?: true
|
|
153
|
+
fileSize?: true
|
|
154
|
+
width?: true
|
|
155
|
+
height?: true
|
|
156
|
+
altText?: true
|
|
157
|
+
title?: true
|
|
158
|
+
uploadedById?: true
|
|
159
|
+
focalPointX?: true
|
|
160
|
+
focalPointY?: true
|
|
161
|
+
blurHash?: true
|
|
162
|
+
aiAltText?: true
|
|
163
|
+
aiDescription?: true
|
|
164
|
+
folderId?: true
|
|
165
|
+
createdAt?: true
|
|
166
|
+
updatedAt?: true
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type MediaCountAggregateInputType = {
|
|
170
|
+
id?: true
|
|
171
|
+
filename?: true
|
|
172
|
+
storageKey?: true
|
|
173
|
+
mimeType?: true
|
|
174
|
+
fileSize?: true
|
|
175
|
+
width?: true
|
|
176
|
+
height?: true
|
|
177
|
+
altText?: true
|
|
178
|
+
title?: true
|
|
179
|
+
uploadedById?: true
|
|
180
|
+
focalPointX?: true
|
|
181
|
+
focalPointY?: true
|
|
182
|
+
blurHash?: true
|
|
183
|
+
aiAltText?: true
|
|
184
|
+
aiTags?: true
|
|
185
|
+
aiDescription?: true
|
|
186
|
+
folderId?: true
|
|
187
|
+
createdAt?: true
|
|
188
|
+
updatedAt?: true
|
|
189
|
+
_all?: true
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type MediaAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
193
|
+
/**
|
|
194
|
+
* Filter which Media to aggregate.
|
|
195
|
+
*/
|
|
196
|
+
where?: Prisma.MediaWhereInput
|
|
197
|
+
/**
|
|
198
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
199
|
+
*
|
|
200
|
+
* Determine the order of Media to fetch.
|
|
201
|
+
*/
|
|
202
|
+
orderBy?: Prisma.MediaOrderByWithRelationInput | Prisma.MediaOrderByWithRelationInput[]
|
|
203
|
+
/**
|
|
204
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
205
|
+
*
|
|
206
|
+
* Sets the start position
|
|
207
|
+
*/
|
|
208
|
+
cursor?: Prisma.MediaWhereUniqueInput
|
|
209
|
+
/**
|
|
210
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
211
|
+
*
|
|
212
|
+
* Take `±n` Media from the position of the cursor.
|
|
213
|
+
*/
|
|
214
|
+
take?: number
|
|
215
|
+
/**
|
|
216
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
217
|
+
*
|
|
218
|
+
* Skip the first `n` Media.
|
|
219
|
+
*/
|
|
220
|
+
skip?: number
|
|
221
|
+
/**
|
|
222
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
223
|
+
*
|
|
224
|
+
* Count returned Media
|
|
225
|
+
**/
|
|
226
|
+
_count?: true | MediaCountAggregateInputType
|
|
227
|
+
/**
|
|
228
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
229
|
+
*
|
|
230
|
+
* Select which fields to average
|
|
231
|
+
**/
|
|
232
|
+
_avg?: MediaAvgAggregateInputType
|
|
233
|
+
/**
|
|
234
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
235
|
+
*
|
|
236
|
+
* Select which fields to sum
|
|
237
|
+
**/
|
|
238
|
+
_sum?: MediaSumAggregateInputType
|
|
239
|
+
/**
|
|
240
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
241
|
+
*
|
|
242
|
+
* Select which fields to find the minimum value
|
|
243
|
+
**/
|
|
244
|
+
_min?: MediaMinAggregateInputType
|
|
245
|
+
/**
|
|
246
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
247
|
+
*
|
|
248
|
+
* Select which fields to find the maximum value
|
|
249
|
+
**/
|
|
250
|
+
_max?: MediaMaxAggregateInputType
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export type GetMediaAggregateType<T extends MediaAggregateArgs> = {
|
|
254
|
+
[P in keyof T & keyof AggregateMedia]: P extends '_count' | 'count'
|
|
255
|
+
? T[P] extends true
|
|
256
|
+
? number
|
|
257
|
+
: Prisma.GetScalarType<T[P], AggregateMedia[P]>
|
|
258
|
+
: Prisma.GetScalarType<T[P], AggregateMedia[P]>
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
export type MediaGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
265
|
+
where?: Prisma.MediaWhereInput
|
|
266
|
+
orderBy?: Prisma.MediaOrderByWithAggregationInput | Prisma.MediaOrderByWithAggregationInput[]
|
|
267
|
+
by: Prisma.MediaScalarFieldEnum[] | Prisma.MediaScalarFieldEnum
|
|
268
|
+
having?: Prisma.MediaScalarWhereWithAggregatesInput
|
|
269
|
+
take?: number
|
|
270
|
+
skip?: number
|
|
271
|
+
_count?: MediaCountAggregateInputType | true
|
|
272
|
+
_avg?: MediaAvgAggregateInputType
|
|
273
|
+
_sum?: MediaSumAggregateInputType
|
|
274
|
+
_min?: MediaMinAggregateInputType
|
|
275
|
+
_max?: MediaMaxAggregateInputType
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
export type MediaGroupByOutputType = {
|
|
279
|
+
id: string
|
|
280
|
+
filename: string
|
|
281
|
+
storageKey: string
|
|
282
|
+
mimeType: string
|
|
283
|
+
fileSize: number
|
|
284
|
+
width: number | null
|
|
285
|
+
height: number | null
|
|
286
|
+
altText: string | null
|
|
287
|
+
title: string | null
|
|
288
|
+
uploadedById: string
|
|
289
|
+
focalPointX: number | null
|
|
290
|
+
focalPointY: number | null
|
|
291
|
+
blurHash: string | null
|
|
292
|
+
aiAltText: string | null
|
|
293
|
+
aiTags: runtime.JsonValue | null
|
|
294
|
+
aiDescription: string | null
|
|
295
|
+
folderId: string | null
|
|
296
|
+
createdAt: Date
|
|
297
|
+
updatedAt: Date
|
|
298
|
+
_count: MediaCountAggregateOutputType | null
|
|
299
|
+
_avg: MediaAvgAggregateOutputType | null
|
|
300
|
+
_sum: MediaSumAggregateOutputType | null
|
|
301
|
+
_min: MediaMinAggregateOutputType | null
|
|
302
|
+
_max: MediaMaxAggregateOutputType | null
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
type GetMediaGroupByPayload<T extends MediaGroupByArgs> = Prisma.PrismaPromise<
|
|
306
|
+
Array<
|
|
307
|
+
Prisma.PickEnumerable<MediaGroupByOutputType, T['by']> &
|
|
308
|
+
{
|
|
309
|
+
[P in ((keyof T) & (keyof MediaGroupByOutputType))]: P extends '_count'
|
|
310
|
+
? T[P] extends boolean
|
|
311
|
+
? number
|
|
312
|
+
: Prisma.GetScalarType<T[P], MediaGroupByOutputType[P]>
|
|
313
|
+
: Prisma.GetScalarType<T[P], MediaGroupByOutputType[P]>
|
|
314
|
+
}
|
|
315
|
+
>
|
|
316
|
+
>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
export type MediaWhereInput = {
|
|
321
|
+
AND?: Prisma.MediaWhereInput | Prisma.MediaWhereInput[]
|
|
322
|
+
OR?: Prisma.MediaWhereInput[]
|
|
323
|
+
NOT?: Prisma.MediaWhereInput | Prisma.MediaWhereInput[]
|
|
324
|
+
id?: Prisma.StringFilter<"Media"> | string
|
|
325
|
+
filename?: Prisma.StringFilter<"Media"> | string
|
|
326
|
+
storageKey?: Prisma.StringFilter<"Media"> | string
|
|
327
|
+
mimeType?: Prisma.StringFilter<"Media"> | string
|
|
328
|
+
fileSize?: Prisma.IntFilter<"Media"> | number
|
|
329
|
+
width?: Prisma.IntNullableFilter<"Media"> | number | null
|
|
330
|
+
height?: Prisma.IntNullableFilter<"Media"> | number | null
|
|
331
|
+
altText?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
332
|
+
title?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
333
|
+
uploadedById?: Prisma.StringFilter<"Media"> | string
|
|
334
|
+
focalPointX?: Prisma.FloatNullableFilter<"Media"> | number | null
|
|
335
|
+
focalPointY?: Prisma.FloatNullableFilter<"Media"> | number | null
|
|
336
|
+
blurHash?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
337
|
+
aiAltText?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
338
|
+
aiTags?: Prisma.JsonNullableFilter<"Media">
|
|
339
|
+
aiDescription?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
340
|
+
folderId?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
341
|
+
createdAt?: Prisma.DateTimeFilter<"Media"> | Date | string
|
|
342
|
+
updatedAt?: Prisma.DateTimeFilter<"Media"> | Date | string
|
|
343
|
+
uploadedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
344
|
+
folder?: Prisma.XOR<Prisma.FolderNullableScalarRelationFilter, Prisma.FolderWhereInput> | null
|
|
345
|
+
mediaUsages?: Prisma.MediaUsageListRelationFilter
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
export type MediaOrderByWithRelationInput = {
|
|
349
|
+
id?: Prisma.SortOrder
|
|
350
|
+
filename?: Prisma.SortOrder
|
|
351
|
+
storageKey?: Prisma.SortOrder
|
|
352
|
+
mimeType?: Prisma.SortOrder
|
|
353
|
+
fileSize?: Prisma.SortOrder
|
|
354
|
+
width?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
355
|
+
height?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
356
|
+
altText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
357
|
+
title?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
358
|
+
uploadedById?: Prisma.SortOrder
|
|
359
|
+
focalPointX?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
360
|
+
focalPointY?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
361
|
+
blurHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
362
|
+
aiAltText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
363
|
+
aiTags?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
364
|
+
aiDescription?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
365
|
+
folderId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
366
|
+
createdAt?: Prisma.SortOrder
|
|
367
|
+
updatedAt?: Prisma.SortOrder
|
|
368
|
+
uploadedBy?: Prisma.UserOrderByWithRelationInput
|
|
369
|
+
folder?: Prisma.FolderOrderByWithRelationInput
|
|
370
|
+
mediaUsages?: Prisma.MediaUsageOrderByRelationAggregateInput
|
|
371
|
+
_relevance?: Prisma.MediaOrderByRelevanceInput
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export type MediaWhereUniqueInput = Prisma.AtLeast<{
|
|
375
|
+
id?: string
|
|
376
|
+
storageKey?: string
|
|
377
|
+
AND?: Prisma.MediaWhereInput | Prisma.MediaWhereInput[]
|
|
378
|
+
OR?: Prisma.MediaWhereInput[]
|
|
379
|
+
NOT?: Prisma.MediaWhereInput | Prisma.MediaWhereInput[]
|
|
380
|
+
filename?: Prisma.StringFilter<"Media"> | string
|
|
381
|
+
mimeType?: Prisma.StringFilter<"Media"> | string
|
|
382
|
+
fileSize?: Prisma.IntFilter<"Media"> | number
|
|
383
|
+
width?: Prisma.IntNullableFilter<"Media"> | number | null
|
|
384
|
+
height?: Prisma.IntNullableFilter<"Media"> | number | null
|
|
385
|
+
altText?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
386
|
+
title?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
387
|
+
uploadedById?: Prisma.StringFilter<"Media"> | string
|
|
388
|
+
focalPointX?: Prisma.FloatNullableFilter<"Media"> | number | null
|
|
389
|
+
focalPointY?: Prisma.FloatNullableFilter<"Media"> | number | null
|
|
390
|
+
blurHash?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
391
|
+
aiAltText?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
392
|
+
aiTags?: Prisma.JsonNullableFilter<"Media">
|
|
393
|
+
aiDescription?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
394
|
+
folderId?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
395
|
+
createdAt?: Prisma.DateTimeFilter<"Media"> | Date | string
|
|
396
|
+
updatedAt?: Prisma.DateTimeFilter<"Media"> | Date | string
|
|
397
|
+
uploadedBy?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
398
|
+
folder?: Prisma.XOR<Prisma.FolderNullableScalarRelationFilter, Prisma.FolderWhereInput> | null
|
|
399
|
+
mediaUsages?: Prisma.MediaUsageListRelationFilter
|
|
400
|
+
}, "id" | "storageKey">
|
|
401
|
+
|
|
402
|
+
export type MediaOrderByWithAggregationInput = {
|
|
403
|
+
id?: Prisma.SortOrder
|
|
404
|
+
filename?: Prisma.SortOrder
|
|
405
|
+
storageKey?: Prisma.SortOrder
|
|
406
|
+
mimeType?: Prisma.SortOrder
|
|
407
|
+
fileSize?: Prisma.SortOrder
|
|
408
|
+
width?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
409
|
+
height?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
410
|
+
altText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
411
|
+
title?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
412
|
+
uploadedById?: Prisma.SortOrder
|
|
413
|
+
focalPointX?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
414
|
+
focalPointY?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
415
|
+
blurHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
416
|
+
aiAltText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
417
|
+
aiTags?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
418
|
+
aiDescription?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
419
|
+
folderId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
420
|
+
createdAt?: Prisma.SortOrder
|
|
421
|
+
updatedAt?: Prisma.SortOrder
|
|
422
|
+
_count?: Prisma.MediaCountOrderByAggregateInput
|
|
423
|
+
_avg?: Prisma.MediaAvgOrderByAggregateInput
|
|
424
|
+
_max?: Prisma.MediaMaxOrderByAggregateInput
|
|
425
|
+
_min?: Prisma.MediaMinOrderByAggregateInput
|
|
426
|
+
_sum?: Prisma.MediaSumOrderByAggregateInput
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export type MediaScalarWhereWithAggregatesInput = {
|
|
430
|
+
AND?: Prisma.MediaScalarWhereWithAggregatesInput | Prisma.MediaScalarWhereWithAggregatesInput[]
|
|
431
|
+
OR?: Prisma.MediaScalarWhereWithAggregatesInput[]
|
|
432
|
+
NOT?: Prisma.MediaScalarWhereWithAggregatesInput | Prisma.MediaScalarWhereWithAggregatesInput[]
|
|
433
|
+
id?: Prisma.StringWithAggregatesFilter<"Media"> | string
|
|
434
|
+
filename?: Prisma.StringWithAggregatesFilter<"Media"> | string
|
|
435
|
+
storageKey?: Prisma.StringWithAggregatesFilter<"Media"> | string
|
|
436
|
+
mimeType?: Prisma.StringWithAggregatesFilter<"Media"> | string
|
|
437
|
+
fileSize?: Prisma.IntWithAggregatesFilter<"Media"> | number
|
|
438
|
+
width?: Prisma.IntNullableWithAggregatesFilter<"Media"> | number | null
|
|
439
|
+
height?: Prisma.IntNullableWithAggregatesFilter<"Media"> | number | null
|
|
440
|
+
altText?: Prisma.StringNullableWithAggregatesFilter<"Media"> | string | null
|
|
441
|
+
title?: Prisma.StringNullableWithAggregatesFilter<"Media"> | string | null
|
|
442
|
+
uploadedById?: Prisma.StringWithAggregatesFilter<"Media"> | string
|
|
443
|
+
focalPointX?: Prisma.FloatNullableWithAggregatesFilter<"Media"> | number | null
|
|
444
|
+
focalPointY?: Prisma.FloatNullableWithAggregatesFilter<"Media"> | number | null
|
|
445
|
+
blurHash?: Prisma.StringNullableWithAggregatesFilter<"Media"> | string | null
|
|
446
|
+
aiAltText?: Prisma.StringNullableWithAggregatesFilter<"Media"> | string | null
|
|
447
|
+
aiTags?: Prisma.JsonNullableWithAggregatesFilter<"Media">
|
|
448
|
+
aiDescription?: Prisma.StringNullableWithAggregatesFilter<"Media"> | string | null
|
|
449
|
+
folderId?: Prisma.StringNullableWithAggregatesFilter<"Media"> | string | null
|
|
450
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Media"> | Date | string
|
|
451
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Media"> | Date | string
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export type MediaCreateInput = {
|
|
455
|
+
id?: string
|
|
456
|
+
filename: string
|
|
457
|
+
storageKey: string
|
|
458
|
+
mimeType: string
|
|
459
|
+
fileSize: number
|
|
460
|
+
width?: number | null
|
|
461
|
+
height?: number | null
|
|
462
|
+
altText?: string | null
|
|
463
|
+
title?: string | null
|
|
464
|
+
focalPointX?: number | null
|
|
465
|
+
focalPointY?: number | null
|
|
466
|
+
blurHash?: string | null
|
|
467
|
+
aiAltText?: string | null
|
|
468
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
469
|
+
aiDescription?: string | null
|
|
470
|
+
createdAt?: Date | string
|
|
471
|
+
updatedAt?: Date | string
|
|
472
|
+
uploadedBy: Prisma.UserCreateNestedOneWithoutMediaInput
|
|
473
|
+
folder?: Prisma.FolderCreateNestedOneWithoutMediaInput
|
|
474
|
+
mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutMediaInput
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export type MediaUncheckedCreateInput = {
|
|
478
|
+
id?: string
|
|
479
|
+
filename: string
|
|
480
|
+
storageKey: string
|
|
481
|
+
mimeType: string
|
|
482
|
+
fileSize: number
|
|
483
|
+
width?: number | null
|
|
484
|
+
height?: number | null
|
|
485
|
+
altText?: string | null
|
|
486
|
+
title?: string | null
|
|
487
|
+
uploadedById: string
|
|
488
|
+
focalPointX?: number | null
|
|
489
|
+
focalPointY?: number | null
|
|
490
|
+
blurHash?: string | null
|
|
491
|
+
aiAltText?: string | null
|
|
492
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
493
|
+
aiDescription?: string | null
|
|
494
|
+
folderId?: string | null
|
|
495
|
+
createdAt?: Date | string
|
|
496
|
+
updatedAt?: Date | string
|
|
497
|
+
mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutMediaInput
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export type MediaUpdateInput = {
|
|
501
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
502
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
503
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
504
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
505
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
506
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
507
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
508
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
509
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
510
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
511
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
512
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
513
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
514
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
515
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
516
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
517
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
518
|
+
uploadedBy?: Prisma.UserUpdateOneRequiredWithoutMediaNestedInput
|
|
519
|
+
folder?: Prisma.FolderUpdateOneWithoutMediaNestedInput
|
|
520
|
+
mediaUsages?: Prisma.MediaUsageUpdateManyWithoutMediaNestedInput
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
export type MediaUncheckedUpdateInput = {
|
|
524
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
525
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
526
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
527
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
528
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
529
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
530
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
531
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
532
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
533
|
+
uploadedById?: Prisma.StringFieldUpdateOperationsInput | string
|
|
534
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
535
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
536
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
537
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
538
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
539
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
540
|
+
folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
541
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
542
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
543
|
+
mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutMediaNestedInput
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
export type MediaCreateManyInput = {
|
|
547
|
+
id?: string
|
|
548
|
+
filename: string
|
|
549
|
+
storageKey: string
|
|
550
|
+
mimeType: string
|
|
551
|
+
fileSize: number
|
|
552
|
+
width?: number | null
|
|
553
|
+
height?: number | null
|
|
554
|
+
altText?: string | null
|
|
555
|
+
title?: string | null
|
|
556
|
+
uploadedById: string
|
|
557
|
+
focalPointX?: number | null
|
|
558
|
+
focalPointY?: number | null
|
|
559
|
+
blurHash?: string | null
|
|
560
|
+
aiAltText?: string | null
|
|
561
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
562
|
+
aiDescription?: string | null
|
|
563
|
+
folderId?: string | null
|
|
564
|
+
createdAt?: Date | string
|
|
565
|
+
updatedAt?: Date | string
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export type MediaUpdateManyMutationInput = {
|
|
569
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
570
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
571
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
572
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
573
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
574
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
575
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
576
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
577
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
578
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
579
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
580
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
581
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
582
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
583
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
584
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
585
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
export type MediaUncheckedUpdateManyInput = {
|
|
589
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
590
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
591
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
592
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
593
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
594
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
595
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
596
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
597
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
598
|
+
uploadedById?: Prisma.StringFieldUpdateOperationsInput | string
|
|
599
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
600
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
601
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
602
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
603
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
604
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
605
|
+
folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
606
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
607
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export type MediaListRelationFilter = {
|
|
611
|
+
every?: Prisma.MediaWhereInput
|
|
612
|
+
some?: Prisma.MediaWhereInput
|
|
613
|
+
none?: Prisma.MediaWhereInput
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export type MediaOrderByRelationAggregateInput = {
|
|
617
|
+
_count?: Prisma.SortOrder
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export type MediaOrderByRelevanceInput = {
|
|
621
|
+
fields: Prisma.MediaOrderByRelevanceFieldEnum | Prisma.MediaOrderByRelevanceFieldEnum[]
|
|
622
|
+
sort: Prisma.SortOrder
|
|
623
|
+
search: string
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export type MediaCountOrderByAggregateInput = {
|
|
627
|
+
id?: Prisma.SortOrder
|
|
628
|
+
filename?: Prisma.SortOrder
|
|
629
|
+
storageKey?: Prisma.SortOrder
|
|
630
|
+
mimeType?: Prisma.SortOrder
|
|
631
|
+
fileSize?: Prisma.SortOrder
|
|
632
|
+
width?: Prisma.SortOrder
|
|
633
|
+
height?: Prisma.SortOrder
|
|
634
|
+
altText?: Prisma.SortOrder
|
|
635
|
+
title?: Prisma.SortOrder
|
|
636
|
+
uploadedById?: Prisma.SortOrder
|
|
637
|
+
focalPointX?: Prisma.SortOrder
|
|
638
|
+
focalPointY?: Prisma.SortOrder
|
|
639
|
+
blurHash?: Prisma.SortOrder
|
|
640
|
+
aiAltText?: Prisma.SortOrder
|
|
641
|
+
aiTags?: Prisma.SortOrder
|
|
642
|
+
aiDescription?: Prisma.SortOrder
|
|
643
|
+
folderId?: Prisma.SortOrder
|
|
644
|
+
createdAt?: Prisma.SortOrder
|
|
645
|
+
updatedAt?: Prisma.SortOrder
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export type MediaAvgOrderByAggregateInput = {
|
|
649
|
+
fileSize?: Prisma.SortOrder
|
|
650
|
+
width?: Prisma.SortOrder
|
|
651
|
+
height?: Prisma.SortOrder
|
|
652
|
+
focalPointX?: Prisma.SortOrder
|
|
653
|
+
focalPointY?: Prisma.SortOrder
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
export type MediaMaxOrderByAggregateInput = {
|
|
657
|
+
id?: Prisma.SortOrder
|
|
658
|
+
filename?: Prisma.SortOrder
|
|
659
|
+
storageKey?: Prisma.SortOrder
|
|
660
|
+
mimeType?: Prisma.SortOrder
|
|
661
|
+
fileSize?: Prisma.SortOrder
|
|
662
|
+
width?: Prisma.SortOrder
|
|
663
|
+
height?: Prisma.SortOrder
|
|
664
|
+
altText?: Prisma.SortOrder
|
|
665
|
+
title?: Prisma.SortOrder
|
|
666
|
+
uploadedById?: Prisma.SortOrder
|
|
667
|
+
focalPointX?: Prisma.SortOrder
|
|
668
|
+
focalPointY?: Prisma.SortOrder
|
|
669
|
+
blurHash?: Prisma.SortOrder
|
|
670
|
+
aiAltText?: Prisma.SortOrder
|
|
671
|
+
aiDescription?: Prisma.SortOrder
|
|
672
|
+
folderId?: Prisma.SortOrder
|
|
673
|
+
createdAt?: Prisma.SortOrder
|
|
674
|
+
updatedAt?: Prisma.SortOrder
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export type MediaMinOrderByAggregateInput = {
|
|
678
|
+
id?: Prisma.SortOrder
|
|
679
|
+
filename?: Prisma.SortOrder
|
|
680
|
+
storageKey?: Prisma.SortOrder
|
|
681
|
+
mimeType?: Prisma.SortOrder
|
|
682
|
+
fileSize?: Prisma.SortOrder
|
|
683
|
+
width?: Prisma.SortOrder
|
|
684
|
+
height?: Prisma.SortOrder
|
|
685
|
+
altText?: Prisma.SortOrder
|
|
686
|
+
title?: Prisma.SortOrder
|
|
687
|
+
uploadedById?: Prisma.SortOrder
|
|
688
|
+
focalPointX?: Prisma.SortOrder
|
|
689
|
+
focalPointY?: Prisma.SortOrder
|
|
690
|
+
blurHash?: Prisma.SortOrder
|
|
691
|
+
aiAltText?: Prisma.SortOrder
|
|
692
|
+
aiDescription?: Prisma.SortOrder
|
|
693
|
+
folderId?: Prisma.SortOrder
|
|
694
|
+
createdAt?: Prisma.SortOrder
|
|
695
|
+
updatedAt?: Prisma.SortOrder
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
export type MediaSumOrderByAggregateInput = {
|
|
699
|
+
fileSize?: Prisma.SortOrder
|
|
700
|
+
width?: Prisma.SortOrder
|
|
701
|
+
height?: Prisma.SortOrder
|
|
702
|
+
focalPointX?: Prisma.SortOrder
|
|
703
|
+
focalPointY?: Prisma.SortOrder
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
export type MediaScalarRelationFilter = {
|
|
707
|
+
is?: Prisma.MediaWhereInput
|
|
708
|
+
isNot?: Prisma.MediaWhereInput
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export type MediaCreateNestedManyWithoutUploadedByInput = {
|
|
712
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutUploadedByInput, Prisma.MediaUncheckedCreateWithoutUploadedByInput> | Prisma.MediaCreateWithoutUploadedByInput[] | Prisma.MediaUncheckedCreateWithoutUploadedByInput[]
|
|
713
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutUploadedByInput | Prisma.MediaCreateOrConnectWithoutUploadedByInput[]
|
|
714
|
+
createMany?: Prisma.MediaCreateManyUploadedByInputEnvelope
|
|
715
|
+
connect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
export type MediaUncheckedCreateNestedManyWithoutUploadedByInput = {
|
|
719
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutUploadedByInput, Prisma.MediaUncheckedCreateWithoutUploadedByInput> | Prisma.MediaCreateWithoutUploadedByInput[] | Prisma.MediaUncheckedCreateWithoutUploadedByInput[]
|
|
720
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutUploadedByInput | Prisma.MediaCreateOrConnectWithoutUploadedByInput[]
|
|
721
|
+
createMany?: Prisma.MediaCreateManyUploadedByInputEnvelope
|
|
722
|
+
connect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
export type MediaUpdateManyWithoutUploadedByNestedInput = {
|
|
726
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutUploadedByInput, Prisma.MediaUncheckedCreateWithoutUploadedByInput> | Prisma.MediaCreateWithoutUploadedByInput[] | Prisma.MediaUncheckedCreateWithoutUploadedByInput[]
|
|
727
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutUploadedByInput | Prisma.MediaCreateOrConnectWithoutUploadedByInput[]
|
|
728
|
+
upsert?: Prisma.MediaUpsertWithWhereUniqueWithoutUploadedByInput | Prisma.MediaUpsertWithWhereUniqueWithoutUploadedByInput[]
|
|
729
|
+
createMany?: Prisma.MediaCreateManyUploadedByInputEnvelope
|
|
730
|
+
set?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
731
|
+
disconnect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
732
|
+
delete?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
733
|
+
connect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
734
|
+
update?: Prisma.MediaUpdateWithWhereUniqueWithoutUploadedByInput | Prisma.MediaUpdateWithWhereUniqueWithoutUploadedByInput[]
|
|
735
|
+
updateMany?: Prisma.MediaUpdateManyWithWhereWithoutUploadedByInput | Prisma.MediaUpdateManyWithWhereWithoutUploadedByInput[]
|
|
736
|
+
deleteMany?: Prisma.MediaScalarWhereInput | Prisma.MediaScalarWhereInput[]
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
export type MediaUncheckedUpdateManyWithoutUploadedByNestedInput = {
|
|
740
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutUploadedByInput, Prisma.MediaUncheckedCreateWithoutUploadedByInput> | Prisma.MediaCreateWithoutUploadedByInput[] | Prisma.MediaUncheckedCreateWithoutUploadedByInput[]
|
|
741
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutUploadedByInput | Prisma.MediaCreateOrConnectWithoutUploadedByInput[]
|
|
742
|
+
upsert?: Prisma.MediaUpsertWithWhereUniqueWithoutUploadedByInput | Prisma.MediaUpsertWithWhereUniqueWithoutUploadedByInput[]
|
|
743
|
+
createMany?: Prisma.MediaCreateManyUploadedByInputEnvelope
|
|
744
|
+
set?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
745
|
+
disconnect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
746
|
+
delete?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
747
|
+
connect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
748
|
+
update?: Prisma.MediaUpdateWithWhereUniqueWithoutUploadedByInput | Prisma.MediaUpdateWithWhereUniqueWithoutUploadedByInput[]
|
|
749
|
+
updateMany?: Prisma.MediaUpdateManyWithWhereWithoutUploadedByInput | Prisma.MediaUpdateManyWithWhereWithoutUploadedByInput[]
|
|
750
|
+
deleteMany?: Prisma.MediaScalarWhereInput | Prisma.MediaScalarWhereInput[]
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
export type MediaCreateNestedManyWithoutFolderInput = {
|
|
754
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutFolderInput, Prisma.MediaUncheckedCreateWithoutFolderInput> | Prisma.MediaCreateWithoutFolderInput[] | Prisma.MediaUncheckedCreateWithoutFolderInput[]
|
|
755
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutFolderInput | Prisma.MediaCreateOrConnectWithoutFolderInput[]
|
|
756
|
+
createMany?: Prisma.MediaCreateManyFolderInputEnvelope
|
|
757
|
+
connect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
export type MediaUncheckedCreateNestedManyWithoutFolderInput = {
|
|
761
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutFolderInput, Prisma.MediaUncheckedCreateWithoutFolderInput> | Prisma.MediaCreateWithoutFolderInput[] | Prisma.MediaUncheckedCreateWithoutFolderInput[]
|
|
762
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutFolderInput | Prisma.MediaCreateOrConnectWithoutFolderInput[]
|
|
763
|
+
createMany?: Prisma.MediaCreateManyFolderInputEnvelope
|
|
764
|
+
connect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
export type MediaUpdateManyWithoutFolderNestedInput = {
|
|
768
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutFolderInput, Prisma.MediaUncheckedCreateWithoutFolderInput> | Prisma.MediaCreateWithoutFolderInput[] | Prisma.MediaUncheckedCreateWithoutFolderInput[]
|
|
769
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutFolderInput | Prisma.MediaCreateOrConnectWithoutFolderInput[]
|
|
770
|
+
upsert?: Prisma.MediaUpsertWithWhereUniqueWithoutFolderInput | Prisma.MediaUpsertWithWhereUniqueWithoutFolderInput[]
|
|
771
|
+
createMany?: Prisma.MediaCreateManyFolderInputEnvelope
|
|
772
|
+
set?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
773
|
+
disconnect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
774
|
+
delete?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
775
|
+
connect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
776
|
+
update?: Prisma.MediaUpdateWithWhereUniqueWithoutFolderInput | Prisma.MediaUpdateWithWhereUniqueWithoutFolderInput[]
|
|
777
|
+
updateMany?: Prisma.MediaUpdateManyWithWhereWithoutFolderInput | Prisma.MediaUpdateManyWithWhereWithoutFolderInput[]
|
|
778
|
+
deleteMany?: Prisma.MediaScalarWhereInput | Prisma.MediaScalarWhereInput[]
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
export type MediaUncheckedUpdateManyWithoutFolderNestedInput = {
|
|
782
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutFolderInput, Prisma.MediaUncheckedCreateWithoutFolderInput> | Prisma.MediaCreateWithoutFolderInput[] | Prisma.MediaUncheckedCreateWithoutFolderInput[]
|
|
783
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutFolderInput | Prisma.MediaCreateOrConnectWithoutFolderInput[]
|
|
784
|
+
upsert?: Prisma.MediaUpsertWithWhereUniqueWithoutFolderInput | Prisma.MediaUpsertWithWhereUniqueWithoutFolderInput[]
|
|
785
|
+
createMany?: Prisma.MediaCreateManyFolderInputEnvelope
|
|
786
|
+
set?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
787
|
+
disconnect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
788
|
+
delete?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
789
|
+
connect?: Prisma.MediaWhereUniqueInput | Prisma.MediaWhereUniqueInput[]
|
|
790
|
+
update?: Prisma.MediaUpdateWithWhereUniqueWithoutFolderInput | Prisma.MediaUpdateWithWhereUniqueWithoutFolderInput[]
|
|
791
|
+
updateMany?: Prisma.MediaUpdateManyWithWhereWithoutFolderInput | Prisma.MediaUpdateManyWithWhereWithoutFolderInput[]
|
|
792
|
+
deleteMany?: Prisma.MediaScalarWhereInput | Prisma.MediaScalarWhereInput[]
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
export type NullableIntFieldUpdateOperationsInput = {
|
|
796
|
+
set?: number | null
|
|
797
|
+
increment?: number
|
|
798
|
+
decrement?: number
|
|
799
|
+
multiply?: number
|
|
800
|
+
divide?: number
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export type NullableFloatFieldUpdateOperationsInput = {
|
|
804
|
+
set?: number | null
|
|
805
|
+
increment?: number
|
|
806
|
+
decrement?: number
|
|
807
|
+
multiply?: number
|
|
808
|
+
divide?: number
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export type MediaCreateNestedOneWithoutMediaUsagesInput = {
|
|
812
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutMediaUsagesInput, Prisma.MediaUncheckedCreateWithoutMediaUsagesInput>
|
|
813
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutMediaUsagesInput
|
|
814
|
+
connect?: Prisma.MediaWhereUniqueInput
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export type MediaUpdateOneRequiredWithoutMediaUsagesNestedInput = {
|
|
818
|
+
create?: Prisma.XOR<Prisma.MediaCreateWithoutMediaUsagesInput, Prisma.MediaUncheckedCreateWithoutMediaUsagesInput>
|
|
819
|
+
connectOrCreate?: Prisma.MediaCreateOrConnectWithoutMediaUsagesInput
|
|
820
|
+
upsert?: Prisma.MediaUpsertWithoutMediaUsagesInput
|
|
821
|
+
connect?: Prisma.MediaWhereUniqueInput
|
|
822
|
+
update?: Prisma.XOR<Prisma.XOR<Prisma.MediaUpdateToOneWithWhereWithoutMediaUsagesInput, Prisma.MediaUpdateWithoutMediaUsagesInput>, Prisma.MediaUncheckedUpdateWithoutMediaUsagesInput>
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
export type MediaCreateWithoutUploadedByInput = {
|
|
826
|
+
id?: string
|
|
827
|
+
filename: string
|
|
828
|
+
storageKey: string
|
|
829
|
+
mimeType: string
|
|
830
|
+
fileSize: number
|
|
831
|
+
width?: number | null
|
|
832
|
+
height?: number | null
|
|
833
|
+
altText?: string | null
|
|
834
|
+
title?: string | null
|
|
835
|
+
focalPointX?: number | null
|
|
836
|
+
focalPointY?: number | null
|
|
837
|
+
blurHash?: string | null
|
|
838
|
+
aiAltText?: string | null
|
|
839
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
840
|
+
aiDescription?: string | null
|
|
841
|
+
createdAt?: Date | string
|
|
842
|
+
updatedAt?: Date | string
|
|
843
|
+
folder?: Prisma.FolderCreateNestedOneWithoutMediaInput
|
|
844
|
+
mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutMediaInput
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
export type MediaUncheckedCreateWithoutUploadedByInput = {
|
|
848
|
+
id?: string
|
|
849
|
+
filename: string
|
|
850
|
+
storageKey: string
|
|
851
|
+
mimeType: string
|
|
852
|
+
fileSize: number
|
|
853
|
+
width?: number | null
|
|
854
|
+
height?: number | null
|
|
855
|
+
altText?: string | null
|
|
856
|
+
title?: string | null
|
|
857
|
+
focalPointX?: number | null
|
|
858
|
+
focalPointY?: number | null
|
|
859
|
+
blurHash?: string | null
|
|
860
|
+
aiAltText?: string | null
|
|
861
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
862
|
+
aiDescription?: string | null
|
|
863
|
+
folderId?: string | null
|
|
864
|
+
createdAt?: Date | string
|
|
865
|
+
updatedAt?: Date | string
|
|
866
|
+
mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutMediaInput
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export type MediaCreateOrConnectWithoutUploadedByInput = {
|
|
870
|
+
where: Prisma.MediaWhereUniqueInput
|
|
871
|
+
create: Prisma.XOR<Prisma.MediaCreateWithoutUploadedByInput, Prisma.MediaUncheckedCreateWithoutUploadedByInput>
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
export type MediaCreateManyUploadedByInputEnvelope = {
|
|
875
|
+
data: Prisma.MediaCreateManyUploadedByInput | Prisma.MediaCreateManyUploadedByInput[]
|
|
876
|
+
skipDuplicates?: boolean
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
export type MediaUpsertWithWhereUniqueWithoutUploadedByInput = {
|
|
880
|
+
where: Prisma.MediaWhereUniqueInput
|
|
881
|
+
update: Prisma.XOR<Prisma.MediaUpdateWithoutUploadedByInput, Prisma.MediaUncheckedUpdateWithoutUploadedByInput>
|
|
882
|
+
create: Prisma.XOR<Prisma.MediaCreateWithoutUploadedByInput, Prisma.MediaUncheckedCreateWithoutUploadedByInput>
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export type MediaUpdateWithWhereUniqueWithoutUploadedByInput = {
|
|
886
|
+
where: Prisma.MediaWhereUniqueInput
|
|
887
|
+
data: Prisma.XOR<Prisma.MediaUpdateWithoutUploadedByInput, Prisma.MediaUncheckedUpdateWithoutUploadedByInput>
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
export type MediaUpdateManyWithWhereWithoutUploadedByInput = {
|
|
891
|
+
where: Prisma.MediaScalarWhereInput
|
|
892
|
+
data: Prisma.XOR<Prisma.MediaUpdateManyMutationInput, Prisma.MediaUncheckedUpdateManyWithoutUploadedByInput>
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
export type MediaScalarWhereInput = {
|
|
896
|
+
AND?: Prisma.MediaScalarWhereInput | Prisma.MediaScalarWhereInput[]
|
|
897
|
+
OR?: Prisma.MediaScalarWhereInput[]
|
|
898
|
+
NOT?: Prisma.MediaScalarWhereInput | Prisma.MediaScalarWhereInput[]
|
|
899
|
+
id?: Prisma.StringFilter<"Media"> | string
|
|
900
|
+
filename?: Prisma.StringFilter<"Media"> | string
|
|
901
|
+
storageKey?: Prisma.StringFilter<"Media"> | string
|
|
902
|
+
mimeType?: Prisma.StringFilter<"Media"> | string
|
|
903
|
+
fileSize?: Prisma.IntFilter<"Media"> | number
|
|
904
|
+
width?: Prisma.IntNullableFilter<"Media"> | number | null
|
|
905
|
+
height?: Prisma.IntNullableFilter<"Media"> | number | null
|
|
906
|
+
altText?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
907
|
+
title?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
908
|
+
uploadedById?: Prisma.StringFilter<"Media"> | string
|
|
909
|
+
focalPointX?: Prisma.FloatNullableFilter<"Media"> | number | null
|
|
910
|
+
focalPointY?: Prisma.FloatNullableFilter<"Media"> | number | null
|
|
911
|
+
blurHash?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
912
|
+
aiAltText?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
913
|
+
aiTags?: Prisma.JsonNullableFilter<"Media">
|
|
914
|
+
aiDescription?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
915
|
+
folderId?: Prisma.StringNullableFilter<"Media"> | string | null
|
|
916
|
+
createdAt?: Prisma.DateTimeFilter<"Media"> | Date | string
|
|
917
|
+
updatedAt?: Prisma.DateTimeFilter<"Media"> | Date | string
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
export type MediaCreateWithoutFolderInput = {
|
|
921
|
+
id?: string
|
|
922
|
+
filename: string
|
|
923
|
+
storageKey: string
|
|
924
|
+
mimeType: string
|
|
925
|
+
fileSize: number
|
|
926
|
+
width?: number | null
|
|
927
|
+
height?: number | null
|
|
928
|
+
altText?: string | null
|
|
929
|
+
title?: string | null
|
|
930
|
+
focalPointX?: number | null
|
|
931
|
+
focalPointY?: number | null
|
|
932
|
+
blurHash?: string | null
|
|
933
|
+
aiAltText?: string | null
|
|
934
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
935
|
+
aiDescription?: string | null
|
|
936
|
+
createdAt?: Date | string
|
|
937
|
+
updatedAt?: Date | string
|
|
938
|
+
uploadedBy: Prisma.UserCreateNestedOneWithoutMediaInput
|
|
939
|
+
mediaUsages?: Prisma.MediaUsageCreateNestedManyWithoutMediaInput
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
export type MediaUncheckedCreateWithoutFolderInput = {
|
|
943
|
+
id?: string
|
|
944
|
+
filename: string
|
|
945
|
+
storageKey: string
|
|
946
|
+
mimeType: string
|
|
947
|
+
fileSize: number
|
|
948
|
+
width?: number | null
|
|
949
|
+
height?: number | null
|
|
950
|
+
altText?: string | null
|
|
951
|
+
title?: string | null
|
|
952
|
+
uploadedById: string
|
|
953
|
+
focalPointX?: number | null
|
|
954
|
+
focalPointY?: number | null
|
|
955
|
+
blurHash?: string | null
|
|
956
|
+
aiAltText?: string | null
|
|
957
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
958
|
+
aiDescription?: string | null
|
|
959
|
+
createdAt?: Date | string
|
|
960
|
+
updatedAt?: Date | string
|
|
961
|
+
mediaUsages?: Prisma.MediaUsageUncheckedCreateNestedManyWithoutMediaInput
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
export type MediaCreateOrConnectWithoutFolderInput = {
|
|
965
|
+
where: Prisma.MediaWhereUniqueInput
|
|
966
|
+
create: Prisma.XOR<Prisma.MediaCreateWithoutFolderInput, Prisma.MediaUncheckedCreateWithoutFolderInput>
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
export type MediaCreateManyFolderInputEnvelope = {
|
|
970
|
+
data: Prisma.MediaCreateManyFolderInput | Prisma.MediaCreateManyFolderInput[]
|
|
971
|
+
skipDuplicates?: boolean
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
export type MediaUpsertWithWhereUniqueWithoutFolderInput = {
|
|
975
|
+
where: Prisma.MediaWhereUniqueInput
|
|
976
|
+
update: Prisma.XOR<Prisma.MediaUpdateWithoutFolderInput, Prisma.MediaUncheckedUpdateWithoutFolderInput>
|
|
977
|
+
create: Prisma.XOR<Prisma.MediaCreateWithoutFolderInput, Prisma.MediaUncheckedCreateWithoutFolderInput>
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
export type MediaUpdateWithWhereUniqueWithoutFolderInput = {
|
|
981
|
+
where: Prisma.MediaWhereUniqueInput
|
|
982
|
+
data: Prisma.XOR<Prisma.MediaUpdateWithoutFolderInput, Prisma.MediaUncheckedUpdateWithoutFolderInput>
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export type MediaUpdateManyWithWhereWithoutFolderInput = {
|
|
986
|
+
where: Prisma.MediaScalarWhereInput
|
|
987
|
+
data: Prisma.XOR<Prisma.MediaUpdateManyMutationInput, Prisma.MediaUncheckedUpdateManyWithoutFolderInput>
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
export type MediaCreateWithoutMediaUsagesInput = {
|
|
991
|
+
id?: string
|
|
992
|
+
filename: string
|
|
993
|
+
storageKey: string
|
|
994
|
+
mimeType: string
|
|
995
|
+
fileSize: number
|
|
996
|
+
width?: number | null
|
|
997
|
+
height?: number | null
|
|
998
|
+
altText?: string | null
|
|
999
|
+
title?: string | null
|
|
1000
|
+
focalPointX?: number | null
|
|
1001
|
+
focalPointY?: number | null
|
|
1002
|
+
blurHash?: string | null
|
|
1003
|
+
aiAltText?: string | null
|
|
1004
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1005
|
+
aiDescription?: string | null
|
|
1006
|
+
createdAt?: Date | string
|
|
1007
|
+
updatedAt?: Date | string
|
|
1008
|
+
uploadedBy: Prisma.UserCreateNestedOneWithoutMediaInput
|
|
1009
|
+
folder?: Prisma.FolderCreateNestedOneWithoutMediaInput
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
export type MediaUncheckedCreateWithoutMediaUsagesInput = {
|
|
1013
|
+
id?: string
|
|
1014
|
+
filename: string
|
|
1015
|
+
storageKey: string
|
|
1016
|
+
mimeType: string
|
|
1017
|
+
fileSize: number
|
|
1018
|
+
width?: number | null
|
|
1019
|
+
height?: number | null
|
|
1020
|
+
altText?: string | null
|
|
1021
|
+
title?: string | null
|
|
1022
|
+
uploadedById: string
|
|
1023
|
+
focalPointX?: number | null
|
|
1024
|
+
focalPointY?: number | null
|
|
1025
|
+
blurHash?: string | null
|
|
1026
|
+
aiAltText?: string | null
|
|
1027
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1028
|
+
aiDescription?: string | null
|
|
1029
|
+
folderId?: string | null
|
|
1030
|
+
createdAt?: Date | string
|
|
1031
|
+
updatedAt?: Date | string
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
export type MediaCreateOrConnectWithoutMediaUsagesInput = {
|
|
1035
|
+
where: Prisma.MediaWhereUniqueInput
|
|
1036
|
+
create: Prisma.XOR<Prisma.MediaCreateWithoutMediaUsagesInput, Prisma.MediaUncheckedCreateWithoutMediaUsagesInput>
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
export type MediaUpsertWithoutMediaUsagesInput = {
|
|
1040
|
+
update: Prisma.XOR<Prisma.MediaUpdateWithoutMediaUsagesInput, Prisma.MediaUncheckedUpdateWithoutMediaUsagesInput>
|
|
1041
|
+
create: Prisma.XOR<Prisma.MediaCreateWithoutMediaUsagesInput, Prisma.MediaUncheckedCreateWithoutMediaUsagesInput>
|
|
1042
|
+
where?: Prisma.MediaWhereInput
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
export type MediaUpdateToOneWithWhereWithoutMediaUsagesInput = {
|
|
1046
|
+
where?: Prisma.MediaWhereInput
|
|
1047
|
+
data: Prisma.XOR<Prisma.MediaUpdateWithoutMediaUsagesInput, Prisma.MediaUncheckedUpdateWithoutMediaUsagesInput>
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
export type MediaUpdateWithoutMediaUsagesInput = {
|
|
1051
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1052
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1053
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1054
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1055
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1056
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1057
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1058
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1059
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1060
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1061
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1062
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1063
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1064
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1065
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1066
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1067
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1068
|
+
uploadedBy?: Prisma.UserUpdateOneRequiredWithoutMediaNestedInput
|
|
1069
|
+
folder?: Prisma.FolderUpdateOneWithoutMediaNestedInput
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
export type MediaUncheckedUpdateWithoutMediaUsagesInput = {
|
|
1073
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1074
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1075
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1076
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1077
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1078
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1079
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1080
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1081
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1082
|
+
uploadedById?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1083
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1084
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1085
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1086
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1087
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1088
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1089
|
+
folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1090
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1091
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
export type MediaCreateManyUploadedByInput = {
|
|
1095
|
+
id?: string
|
|
1096
|
+
filename: string
|
|
1097
|
+
storageKey: string
|
|
1098
|
+
mimeType: string
|
|
1099
|
+
fileSize: number
|
|
1100
|
+
width?: number | null
|
|
1101
|
+
height?: number | null
|
|
1102
|
+
altText?: string | null
|
|
1103
|
+
title?: string | null
|
|
1104
|
+
focalPointX?: number | null
|
|
1105
|
+
focalPointY?: number | null
|
|
1106
|
+
blurHash?: string | null
|
|
1107
|
+
aiAltText?: string | null
|
|
1108
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1109
|
+
aiDescription?: string | null
|
|
1110
|
+
folderId?: string | null
|
|
1111
|
+
createdAt?: Date | string
|
|
1112
|
+
updatedAt?: Date | string
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
export type MediaUpdateWithoutUploadedByInput = {
|
|
1116
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1117
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1118
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1119
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1120
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1121
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1122
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1123
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1124
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1125
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1126
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1127
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1128
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1129
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1130
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1131
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1132
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1133
|
+
folder?: Prisma.FolderUpdateOneWithoutMediaNestedInput
|
|
1134
|
+
mediaUsages?: Prisma.MediaUsageUpdateManyWithoutMediaNestedInput
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
export type MediaUncheckedUpdateWithoutUploadedByInput = {
|
|
1138
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1139
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1140
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1141
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1142
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1143
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1144
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1145
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1146
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1147
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1148
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1149
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1150
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1151
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1152
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1153
|
+
folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1154
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1155
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1156
|
+
mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutMediaNestedInput
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
export type MediaUncheckedUpdateManyWithoutUploadedByInput = {
|
|
1160
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1161
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1162
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1163
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1164
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1165
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1166
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1167
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1168
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1169
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1170
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1171
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1172
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1173
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1174
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1175
|
+
folderId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1176
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1177
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export type MediaCreateManyFolderInput = {
|
|
1181
|
+
id?: string
|
|
1182
|
+
filename: string
|
|
1183
|
+
storageKey: string
|
|
1184
|
+
mimeType: string
|
|
1185
|
+
fileSize: number
|
|
1186
|
+
width?: number | null
|
|
1187
|
+
height?: number | null
|
|
1188
|
+
altText?: string | null
|
|
1189
|
+
title?: string | null
|
|
1190
|
+
uploadedById: string
|
|
1191
|
+
focalPointX?: number | null
|
|
1192
|
+
focalPointY?: number | null
|
|
1193
|
+
blurHash?: string | null
|
|
1194
|
+
aiAltText?: string | null
|
|
1195
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1196
|
+
aiDescription?: string | null
|
|
1197
|
+
createdAt?: Date | string
|
|
1198
|
+
updatedAt?: Date | string
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
export type MediaUpdateWithoutFolderInput = {
|
|
1202
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1203
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1204
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1205
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1206
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1207
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1208
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1209
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1210
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1211
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1212
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1213
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1214
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1215
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1216
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1217
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1218
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1219
|
+
uploadedBy?: Prisma.UserUpdateOneRequiredWithoutMediaNestedInput
|
|
1220
|
+
mediaUsages?: Prisma.MediaUsageUpdateManyWithoutMediaNestedInput
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
export type MediaUncheckedUpdateWithoutFolderInput = {
|
|
1224
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1225
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1226
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1227
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1228
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1229
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1230
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1231
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1232
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1233
|
+
uploadedById?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1234
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1235
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1236
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1237
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1238
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1239
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1240
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1241
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1242
|
+
mediaUsages?: Prisma.MediaUsageUncheckedUpdateManyWithoutMediaNestedInput
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
export type MediaUncheckedUpdateManyWithoutFolderInput = {
|
|
1246
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1247
|
+
filename?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1248
|
+
storageKey?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1249
|
+
mimeType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1250
|
+
fileSize?: Prisma.IntFieldUpdateOperationsInput | number
|
|
1251
|
+
width?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1252
|
+
height?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
|
|
1253
|
+
altText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1254
|
+
title?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1255
|
+
uploadedById?: Prisma.StringFieldUpdateOperationsInput | string
|
|
1256
|
+
focalPointX?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1257
|
+
focalPointY?: Prisma.NullableFloatFieldUpdateOperationsInput | number | null
|
|
1258
|
+
blurHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1259
|
+
aiAltText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1260
|
+
aiTags?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
1261
|
+
aiDescription?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
1262
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1263
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
/**
|
|
1268
|
+
* Count Type MediaCountOutputType
|
|
1269
|
+
*/
|
|
1270
|
+
|
|
1271
|
+
export type MediaCountOutputType = {
|
|
1272
|
+
mediaUsages: number
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
export type MediaCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1276
|
+
mediaUsages?: boolean | MediaCountOutputTypeCountMediaUsagesArgs
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* MediaCountOutputType without action
|
|
1281
|
+
*/
|
|
1282
|
+
export type MediaCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1283
|
+
/**
|
|
1284
|
+
* Select specific fields to fetch from the MediaCountOutputType
|
|
1285
|
+
*/
|
|
1286
|
+
select?: Prisma.MediaCountOutputTypeSelect<ExtArgs> | null
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* MediaCountOutputType without action
|
|
1291
|
+
*/
|
|
1292
|
+
export type MediaCountOutputTypeCountMediaUsagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1293
|
+
where?: Prisma.MediaUsageWhereInput
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
export type MediaSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1298
|
+
id?: boolean
|
|
1299
|
+
filename?: boolean
|
|
1300
|
+
storageKey?: boolean
|
|
1301
|
+
mimeType?: boolean
|
|
1302
|
+
fileSize?: boolean
|
|
1303
|
+
width?: boolean
|
|
1304
|
+
height?: boolean
|
|
1305
|
+
altText?: boolean
|
|
1306
|
+
title?: boolean
|
|
1307
|
+
uploadedById?: boolean
|
|
1308
|
+
focalPointX?: boolean
|
|
1309
|
+
focalPointY?: boolean
|
|
1310
|
+
blurHash?: boolean
|
|
1311
|
+
aiAltText?: boolean
|
|
1312
|
+
aiTags?: boolean
|
|
1313
|
+
aiDescription?: boolean
|
|
1314
|
+
folderId?: boolean
|
|
1315
|
+
createdAt?: boolean
|
|
1316
|
+
updatedAt?: boolean
|
|
1317
|
+
uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1318
|
+
folder?: boolean | Prisma.Media$folderArgs<ExtArgs>
|
|
1319
|
+
mediaUsages?: boolean | Prisma.Media$mediaUsagesArgs<ExtArgs>
|
|
1320
|
+
_count?: boolean | Prisma.MediaCountOutputTypeDefaultArgs<ExtArgs>
|
|
1321
|
+
}, ExtArgs["result"]["media"]>
|
|
1322
|
+
|
|
1323
|
+
export type MediaSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1324
|
+
id?: boolean
|
|
1325
|
+
filename?: boolean
|
|
1326
|
+
storageKey?: boolean
|
|
1327
|
+
mimeType?: boolean
|
|
1328
|
+
fileSize?: boolean
|
|
1329
|
+
width?: boolean
|
|
1330
|
+
height?: boolean
|
|
1331
|
+
altText?: boolean
|
|
1332
|
+
title?: boolean
|
|
1333
|
+
uploadedById?: boolean
|
|
1334
|
+
focalPointX?: boolean
|
|
1335
|
+
focalPointY?: boolean
|
|
1336
|
+
blurHash?: boolean
|
|
1337
|
+
aiAltText?: boolean
|
|
1338
|
+
aiTags?: boolean
|
|
1339
|
+
aiDescription?: boolean
|
|
1340
|
+
folderId?: boolean
|
|
1341
|
+
createdAt?: boolean
|
|
1342
|
+
updatedAt?: boolean
|
|
1343
|
+
uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1344
|
+
folder?: boolean | Prisma.Media$folderArgs<ExtArgs>
|
|
1345
|
+
}, ExtArgs["result"]["media"]>
|
|
1346
|
+
|
|
1347
|
+
export type MediaSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
1348
|
+
id?: boolean
|
|
1349
|
+
filename?: boolean
|
|
1350
|
+
storageKey?: boolean
|
|
1351
|
+
mimeType?: boolean
|
|
1352
|
+
fileSize?: boolean
|
|
1353
|
+
width?: boolean
|
|
1354
|
+
height?: boolean
|
|
1355
|
+
altText?: boolean
|
|
1356
|
+
title?: boolean
|
|
1357
|
+
uploadedById?: boolean
|
|
1358
|
+
focalPointX?: boolean
|
|
1359
|
+
focalPointY?: boolean
|
|
1360
|
+
blurHash?: boolean
|
|
1361
|
+
aiAltText?: boolean
|
|
1362
|
+
aiTags?: boolean
|
|
1363
|
+
aiDescription?: boolean
|
|
1364
|
+
folderId?: boolean
|
|
1365
|
+
createdAt?: boolean
|
|
1366
|
+
updatedAt?: boolean
|
|
1367
|
+
uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1368
|
+
folder?: boolean | Prisma.Media$folderArgs<ExtArgs>
|
|
1369
|
+
}, ExtArgs["result"]["media"]>
|
|
1370
|
+
|
|
1371
|
+
export type MediaSelectScalar = {
|
|
1372
|
+
id?: boolean
|
|
1373
|
+
filename?: boolean
|
|
1374
|
+
storageKey?: boolean
|
|
1375
|
+
mimeType?: boolean
|
|
1376
|
+
fileSize?: boolean
|
|
1377
|
+
width?: boolean
|
|
1378
|
+
height?: boolean
|
|
1379
|
+
altText?: boolean
|
|
1380
|
+
title?: boolean
|
|
1381
|
+
uploadedById?: boolean
|
|
1382
|
+
focalPointX?: boolean
|
|
1383
|
+
focalPointY?: boolean
|
|
1384
|
+
blurHash?: boolean
|
|
1385
|
+
aiAltText?: boolean
|
|
1386
|
+
aiTags?: boolean
|
|
1387
|
+
aiDescription?: boolean
|
|
1388
|
+
folderId?: boolean
|
|
1389
|
+
createdAt?: boolean
|
|
1390
|
+
updatedAt?: boolean
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
export type MediaOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "filename" | "storageKey" | "mimeType" | "fileSize" | "width" | "height" | "altText" | "title" | "uploadedById" | "focalPointX" | "focalPointY" | "blurHash" | "aiAltText" | "aiTags" | "aiDescription" | "folderId" | "createdAt" | "updatedAt", ExtArgs["result"]["media"]>
|
|
1394
|
+
export type MediaInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1395
|
+
uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1396
|
+
folder?: boolean | Prisma.Media$folderArgs<ExtArgs>
|
|
1397
|
+
mediaUsages?: boolean | Prisma.Media$mediaUsagesArgs<ExtArgs>
|
|
1398
|
+
_count?: boolean | Prisma.MediaCountOutputTypeDefaultArgs<ExtArgs>
|
|
1399
|
+
}
|
|
1400
|
+
export type MediaIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1401
|
+
uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1402
|
+
folder?: boolean | Prisma.Media$folderArgs<ExtArgs>
|
|
1403
|
+
}
|
|
1404
|
+
export type MediaIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1405
|
+
uploadedBy?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
1406
|
+
folder?: boolean | Prisma.Media$folderArgs<ExtArgs>
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
export type $MediaPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1410
|
+
name: "Media"
|
|
1411
|
+
objects: {
|
|
1412
|
+
uploadedBy: Prisma.$UserPayload<ExtArgs>
|
|
1413
|
+
folder: Prisma.$FolderPayload<ExtArgs> | null
|
|
1414
|
+
mediaUsages: Prisma.$MediaUsagePayload<ExtArgs>[]
|
|
1415
|
+
}
|
|
1416
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
1417
|
+
id: string
|
|
1418
|
+
filename: string
|
|
1419
|
+
storageKey: string
|
|
1420
|
+
mimeType: string
|
|
1421
|
+
fileSize: number
|
|
1422
|
+
width: number | null
|
|
1423
|
+
height: number | null
|
|
1424
|
+
altText: string | null
|
|
1425
|
+
title: string | null
|
|
1426
|
+
uploadedById: string
|
|
1427
|
+
focalPointX: number | null
|
|
1428
|
+
focalPointY: number | null
|
|
1429
|
+
blurHash: string | null
|
|
1430
|
+
aiAltText: string | null
|
|
1431
|
+
aiTags: runtime.JsonValue | null
|
|
1432
|
+
aiDescription: string | null
|
|
1433
|
+
folderId: string | null
|
|
1434
|
+
createdAt: Date
|
|
1435
|
+
updatedAt: Date
|
|
1436
|
+
}, ExtArgs["result"]["media"]>
|
|
1437
|
+
composites: {}
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
export type MediaGetPayload<S extends boolean | null | undefined | MediaDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$MediaPayload, S>
|
|
1441
|
+
|
|
1442
|
+
export type MediaCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
1443
|
+
Omit<MediaFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
1444
|
+
select?: MediaCountAggregateInputType | true
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
export interface MediaDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
1448
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Media'], meta: { name: 'Media' } }
|
|
1449
|
+
/**
|
|
1450
|
+
* Find zero or one Media that matches the filter.
|
|
1451
|
+
* @param {MediaFindUniqueArgs} args - Arguments to find a Media
|
|
1452
|
+
* @example
|
|
1453
|
+
* // Get one Media
|
|
1454
|
+
* const media = await prisma.media.findUnique({
|
|
1455
|
+
* where: {
|
|
1456
|
+
* // ... provide filter here
|
|
1457
|
+
* }
|
|
1458
|
+
* })
|
|
1459
|
+
*/
|
|
1460
|
+
findUnique<T extends MediaFindUniqueArgs>(args: Prisma.SelectSubset<T, MediaFindUniqueArgs<ExtArgs>>): Prisma.Prisma__MediaClient<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1461
|
+
|
|
1462
|
+
/**
|
|
1463
|
+
* Find one Media that matches the filter or throw an error with `error.code='P2025'`
|
|
1464
|
+
* if no matches were found.
|
|
1465
|
+
* @param {MediaFindUniqueOrThrowArgs} args - Arguments to find a Media
|
|
1466
|
+
* @example
|
|
1467
|
+
* // Get one Media
|
|
1468
|
+
* const media = await prisma.media.findUniqueOrThrow({
|
|
1469
|
+
* where: {
|
|
1470
|
+
* // ... provide filter here
|
|
1471
|
+
* }
|
|
1472
|
+
* })
|
|
1473
|
+
*/
|
|
1474
|
+
findUniqueOrThrow<T extends MediaFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, MediaFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__MediaClient<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1475
|
+
|
|
1476
|
+
/**
|
|
1477
|
+
* Find the first Media that matches the filter.
|
|
1478
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1479
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1480
|
+
* @param {MediaFindFirstArgs} args - Arguments to find a Media
|
|
1481
|
+
* @example
|
|
1482
|
+
* // Get one Media
|
|
1483
|
+
* const media = await prisma.media.findFirst({
|
|
1484
|
+
* where: {
|
|
1485
|
+
* // ... provide filter here
|
|
1486
|
+
* }
|
|
1487
|
+
* })
|
|
1488
|
+
*/
|
|
1489
|
+
findFirst<T extends MediaFindFirstArgs>(args?: Prisma.SelectSubset<T, MediaFindFirstArgs<ExtArgs>>): Prisma.Prisma__MediaClient<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1490
|
+
|
|
1491
|
+
/**
|
|
1492
|
+
* Find the first Media that matches the filter or
|
|
1493
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
1494
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1495
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1496
|
+
* @param {MediaFindFirstOrThrowArgs} args - Arguments to find a Media
|
|
1497
|
+
* @example
|
|
1498
|
+
* // Get one Media
|
|
1499
|
+
* const media = await prisma.media.findFirstOrThrow({
|
|
1500
|
+
* where: {
|
|
1501
|
+
* // ... provide filter here
|
|
1502
|
+
* }
|
|
1503
|
+
* })
|
|
1504
|
+
*/
|
|
1505
|
+
findFirstOrThrow<T extends MediaFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, MediaFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__MediaClient<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* Find zero or more Media that matches the filter.
|
|
1509
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1510
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1511
|
+
* @param {MediaFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
1512
|
+
* @example
|
|
1513
|
+
* // Get all Media
|
|
1514
|
+
* const media = await prisma.media.findMany()
|
|
1515
|
+
*
|
|
1516
|
+
* // Get first 10 Media
|
|
1517
|
+
* const media = await prisma.media.findMany({ take: 10 })
|
|
1518
|
+
*
|
|
1519
|
+
* // Only select the `id`
|
|
1520
|
+
* const mediaWithIdOnly = await prisma.media.findMany({ select: { id: true } })
|
|
1521
|
+
*
|
|
1522
|
+
*/
|
|
1523
|
+
findMany<T extends MediaFindManyArgs>(args?: Prisma.SelectSubset<T, MediaFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* Create a Media.
|
|
1527
|
+
* @param {MediaCreateArgs} args - Arguments to create a Media.
|
|
1528
|
+
* @example
|
|
1529
|
+
* // Create one Media
|
|
1530
|
+
* const Media = await prisma.media.create({
|
|
1531
|
+
* data: {
|
|
1532
|
+
* // ... data to create a Media
|
|
1533
|
+
* }
|
|
1534
|
+
* })
|
|
1535
|
+
*
|
|
1536
|
+
*/
|
|
1537
|
+
create<T extends MediaCreateArgs>(args: Prisma.SelectSubset<T, MediaCreateArgs<ExtArgs>>): Prisma.Prisma__MediaClient<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* Create many Media.
|
|
1541
|
+
* @param {MediaCreateManyArgs} args - Arguments to create many Media.
|
|
1542
|
+
* @example
|
|
1543
|
+
* // Create many Media
|
|
1544
|
+
* const media = await prisma.media.createMany({
|
|
1545
|
+
* data: [
|
|
1546
|
+
* // ... provide data here
|
|
1547
|
+
* ]
|
|
1548
|
+
* })
|
|
1549
|
+
*
|
|
1550
|
+
*/
|
|
1551
|
+
createMany<T extends MediaCreateManyArgs>(args?: Prisma.SelectSubset<T, MediaCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1552
|
+
|
|
1553
|
+
/**
|
|
1554
|
+
* Create many Media and returns the data saved in the database.
|
|
1555
|
+
* @param {MediaCreateManyAndReturnArgs} args - Arguments to create many Media.
|
|
1556
|
+
* @example
|
|
1557
|
+
* // Create many Media
|
|
1558
|
+
* const media = await prisma.media.createManyAndReturn({
|
|
1559
|
+
* data: [
|
|
1560
|
+
* // ... provide data here
|
|
1561
|
+
* ]
|
|
1562
|
+
* })
|
|
1563
|
+
*
|
|
1564
|
+
* // Create many Media and only return the `id`
|
|
1565
|
+
* const mediaWithIdOnly = await prisma.media.createManyAndReturn({
|
|
1566
|
+
* select: { id: true },
|
|
1567
|
+
* data: [
|
|
1568
|
+
* // ... provide data here
|
|
1569
|
+
* ]
|
|
1570
|
+
* })
|
|
1571
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1572
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1573
|
+
*
|
|
1574
|
+
*/
|
|
1575
|
+
createManyAndReturn<T extends MediaCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MediaCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Delete a Media.
|
|
1579
|
+
* @param {MediaDeleteArgs} args - Arguments to delete one Media.
|
|
1580
|
+
* @example
|
|
1581
|
+
* // Delete one Media
|
|
1582
|
+
* const Media = await prisma.media.delete({
|
|
1583
|
+
* where: {
|
|
1584
|
+
* // ... filter to delete one Media
|
|
1585
|
+
* }
|
|
1586
|
+
* })
|
|
1587
|
+
*
|
|
1588
|
+
*/
|
|
1589
|
+
delete<T extends MediaDeleteArgs>(args: Prisma.SelectSubset<T, MediaDeleteArgs<ExtArgs>>): Prisma.Prisma__MediaClient<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* Update one Media.
|
|
1593
|
+
* @param {MediaUpdateArgs} args - Arguments to update one Media.
|
|
1594
|
+
* @example
|
|
1595
|
+
* // Update one Media
|
|
1596
|
+
* const media = await prisma.media.update({
|
|
1597
|
+
* where: {
|
|
1598
|
+
* // ... provide filter here
|
|
1599
|
+
* },
|
|
1600
|
+
* data: {
|
|
1601
|
+
* // ... provide data here
|
|
1602
|
+
* }
|
|
1603
|
+
* })
|
|
1604
|
+
*
|
|
1605
|
+
*/
|
|
1606
|
+
update<T extends MediaUpdateArgs>(args: Prisma.SelectSubset<T, MediaUpdateArgs<ExtArgs>>): Prisma.Prisma__MediaClient<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* Delete zero or more Media.
|
|
1610
|
+
* @param {MediaDeleteManyArgs} args - Arguments to filter Media to delete.
|
|
1611
|
+
* @example
|
|
1612
|
+
* // Delete a few Media
|
|
1613
|
+
* const { count } = await prisma.media.deleteMany({
|
|
1614
|
+
* where: {
|
|
1615
|
+
* // ... provide filter here
|
|
1616
|
+
* }
|
|
1617
|
+
* })
|
|
1618
|
+
*
|
|
1619
|
+
*/
|
|
1620
|
+
deleteMany<T extends MediaDeleteManyArgs>(args?: Prisma.SelectSubset<T, MediaDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1621
|
+
|
|
1622
|
+
/**
|
|
1623
|
+
* Update zero or more Media.
|
|
1624
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1625
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1626
|
+
* @param {MediaUpdateManyArgs} args - Arguments to update one or more rows.
|
|
1627
|
+
* @example
|
|
1628
|
+
* // Update many Media
|
|
1629
|
+
* const media = await prisma.media.updateMany({
|
|
1630
|
+
* where: {
|
|
1631
|
+
* // ... provide filter here
|
|
1632
|
+
* },
|
|
1633
|
+
* data: {
|
|
1634
|
+
* // ... provide data here
|
|
1635
|
+
* }
|
|
1636
|
+
* })
|
|
1637
|
+
*
|
|
1638
|
+
*/
|
|
1639
|
+
updateMany<T extends MediaUpdateManyArgs>(args: Prisma.SelectSubset<T, MediaUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
1640
|
+
|
|
1641
|
+
/**
|
|
1642
|
+
* Update zero or more Media and returns the data updated in the database.
|
|
1643
|
+
* @param {MediaUpdateManyAndReturnArgs} args - Arguments to update many Media.
|
|
1644
|
+
* @example
|
|
1645
|
+
* // Update many Media
|
|
1646
|
+
* const media = await prisma.media.updateManyAndReturn({
|
|
1647
|
+
* where: {
|
|
1648
|
+
* // ... provide filter here
|
|
1649
|
+
* },
|
|
1650
|
+
* data: [
|
|
1651
|
+
* // ... provide data here
|
|
1652
|
+
* ]
|
|
1653
|
+
* })
|
|
1654
|
+
*
|
|
1655
|
+
* // Update zero or more Media and only return the `id`
|
|
1656
|
+
* const mediaWithIdOnly = await prisma.media.updateManyAndReturn({
|
|
1657
|
+
* select: { id: true },
|
|
1658
|
+
* where: {
|
|
1659
|
+
* // ... provide filter here
|
|
1660
|
+
* },
|
|
1661
|
+
* data: [
|
|
1662
|
+
* // ... provide data here
|
|
1663
|
+
* ]
|
|
1664
|
+
* })
|
|
1665
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1666
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1667
|
+
*
|
|
1668
|
+
*/
|
|
1669
|
+
updateManyAndReturn<T extends MediaUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MediaUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* Create or update one Media.
|
|
1673
|
+
* @param {MediaUpsertArgs} args - Arguments to update or create a Media.
|
|
1674
|
+
* @example
|
|
1675
|
+
* // Update or create a Media
|
|
1676
|
+
* const media = await prisma.media.upsert({
|
|
1677
|
+
* create: {
|
|
1678
|
+
* // ... data to create a Media
|
|
1679
|
+
* },
|
|
1680
|
+
* update: {
|
|
1681
|
+
* // ... in case it already exists, update
|
|
1682
|
+
* },
|
|
1683
|
+
* where: {
|
|
1684
|
+
* // ... the filter for the Media we want to update
|
|
1685
|
+
* }
|
|
1686
|
+
* })
|
|
1687
|
+
*/
|
|
1688
|
+
upsert<T extends MediaUpsertArgs>(args: Prisma.SelectSubset<T, MediaUpsertArgs<ExtArgs>>): Prisma.Prisma__MediaClient<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
1689
|
+
|
|
1690
|
+
|
|
1691
|
+
/**
|
|
1692
|
+
* Count the number of Media.
|
|
1693
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1694
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1695
|
+
* @param {MediaCountArgs} args - Arguments to filter Media to count.
|
|
1696
|
+
* @example
|
|
1697
|
+
* // Count the number of Media
|
|
1698
|
+
* const count = await prisma.media.count({
|
|
1699
|
+
* where: {
|
|
1700
|
+
* // ... the filter for the Media we want to count
|
|
1701
|
+
* }
|
|
1702
|
+
* })
|
|
1703
|
+
**/
|
|
1704
|
+
count<T extends MediaCountArgs>(
|
|
1705
|
+
args?: Prisma.Subset<T, MediaCountArgs>,
|
|
1706
|
+
): Prisma.PrismaPromise<
|
|
1707
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
1708
|
+
? T['select'] extends true
|
|
1709
|
+
? number
|
|
1710
|
+
: Prisma.GetScalarType<T['select'], MediaCountAggregateOutputType>
|
|
1711
|
+
: number
|
|
1712
|
+
>
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* Allows you to perform aggregations operations on a Media.
|
|
1716
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1717
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1718
|
+
* @param {MediaAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
1719
|
+
* @example
|
|
1720
|
+
* // Ordered by age ascending
|
|
1721
|
+
* // Where email contains prisma.io
|
|
1722
|
+
* // Limited to the 10 users
|
|
1723
|
+
* const aggregations = await prisma.user.aggregate({
|
|
1724
|
+
* _avg: {
|
|
1725
|
+
* age: true,
|
|
1726
|
+
* },
|
|
1727
|
+
* where: {
|
|
1728
|
+
* email: {
|
|
1729
|
+
* contains: "prisma.io",
|
|
1730
|
+
* },
|
|
1731
|
+
* },
|
|
1732
|
+
* orderBy: {
|
|
1733
|
+
* age: "asc",
|
|
1734
|
+
* },
|
|
1735
|
+
* take: 10,
|
|
1736
|
+
* })
|
|
1737
|
+
**/
|
|
1738
|
+
aggregate<T extends MediaAggregateArgs>(args: Prisma.Subset<T, MediaAggregateArgs>): Prisma.PrismaPromise<GetMediaAggregateType<T>>
|
|
1739
|
+
|
|
1740
|
+
/**
|
|
1741
|
+
* Group by Media.
|
|
1742
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
1743
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
1744
|
+
* @param {MediaGroupByArgs} args - Group by arguments.
|
|
1745
|
+
* @example
|
|
1746
|
+
* // Group by city, order by createdAt, get count
|
|
1747
|
+
* const result = await prisma.user.groupBy({
|
|
1748
|
+
* by: ['city', 'createdAt'],
|
|
1749
|
+
* orderBy: {
|
|
1750
|
+
* createdAt: true
|
|
1751
|
+
* },
|
|
1752
|
+
* _count: {
|
|
1753
|
+
* _all: true
|
|
1754
|
+
* },
|
|
1755
|
+
* })
|
|
1756
|
+
*
|
|
1757
|
+
**/
|
|
1758
|
+
groupBy<
|
|
1759
|
+
T extends MediaGroupByArgs,
|
|
1760
|
+
HasSelectOrTake extends Prisma.Or<
|
|
1761
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
1762
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
1763
|
+
>,
|
|
1764
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
1765
|
+
? { orderBy: MediaGroupByArgs['orderBy'] }
|
|
1766
|
+
: { orderBy?: MediaGroupByArgs['orderBy'] },
|
|
1767
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
1768
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
1769
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
1770
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
1771
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
1772
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
1773
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
1774
|
+
? `Error: "by" must not be empty.`
|
|
1775
|
+
: HavingValid extends Prisma.False
|
|
1776
|
+
? {
|
|
1777
|
+
[P in HavingFields]: P extends ByFields
|
|
1778
|
+
? never
|
|
1779
|
+
: P extends string
|
|
1780
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
1781
|
+
: [
|
|
1782
|
+
Error,
|
|
1783
|
+
'Field ',
|
|
1784
|
+
P,
|
|
1785
|
+
` in "having" needs to be provided in "by"`,
|
|
1786
|
+
]
|
|
1787
|
+
}[HavingFields]
|
|
1788
|
+
: 'take' extends Prisma.Keys<T>
|
|
1789
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1790
|
+
? ByValid extends Prisma.True
|
|
1791
|
+
? {}
|
|
1792
|
+
: {
|
|
1793
|
+
[P in OrderFields]: P extends ByFields
|
|
1794
|
+
? never
|
|
1795
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1796
|
+
}[OrderFields]
|
|
1797
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
1798
|
+
: 'skip' extends Prisma.Keys<T>
|
|
1799
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
1800
|
+
? ByValid extends Prisma.True
|
|
1801
|
+
? {}
|
|
1802
|
+
: {
|
|
1803
|
+
[P in OrderFields]: P extends ByFields
|
|
1804
|
+
? never
|
|
1805
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1806
|
+
}[OrderFields]
|
|
1807
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
1808
|
+
: ByValid extends Prisma.True
|
|
1809
|
+
? {}
|
|
1810
|
+
: {
|
|
1811
|
+
[P in OrderFields]: P extends ByFields
|
|
1812
|
+
? never
|
|
1813
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
1814
|
+
}[OrderFields]
|
|
1815
|
+
>(args: Prisma.SubsetIntersection<T, MediaGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetMediaGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
1816
|
+
/**
|
|
1817
|
+
* Fields of the Media model
|
|
1818
|
+
*/
|
|
1819
|
+
readonly fields: MediaFieldRefs;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
/**
|
|
1823
|
+
* The delegate class that acts as a "Promise-like" for Media.
|
|
1824
|
+
* Why is this prefixed with `Prisma__`?
|
|
1825
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1826
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1827
|
+
*/
|
|
1828
|
+
export interface Prisma__MediaClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1829
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1830
|
+
uploadedBy<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1831
|
+
folder<T extends Prisma.Media$folderArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Media$folderArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
1832
|
+
mediaUsages<T extends Prisma.Media$mediaUsagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Media$mediaUsagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaUsagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
1833
|
+
/**
|
|
1834
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1835
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1836
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1837
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1838
|
+
*/
|
|
1839
|
+
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>
|
|
1840
|
+
/**
|
|
1841
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1842
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1843
|
+
* @returns A Promise for the completion of the callback.
|
|
1844
|
+
*/
|
|
1845
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1846
|
+
/**
|
|
1847
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1848
|
+
* resolved value cannot be modified from the callback.
|
|
1849
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1850
|
+
* @returns A Promise for the completion of the callback.
|
|
1851
|
+
*/
|
|
1852
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Fields of the Media model
|
|
1860
|
+
*/
|
|
1861
|
+
export interface MediaFieldRefs {
|
|
1862
|
+
readonly id: Prisma.FieldRef<"Media", 'String'>
|
|
1863
|
+
readonly filename: Prisma.FieldRef<"Media", 'String'>
|
|
1864
|
+
readonly storageKey: Prisma.FieldRef<"Media", 'String'>
|
|
1865
|
+
readonly mimeType: Prisma.FieldRef<"Media", 'String'>
|
|
1866
|
+
readonly fileSize: Prisma.FieldRef<"Media", 'Int'>
|
|
1867
|
+
readonly width: Prisma.FieldRef<"Media", 'Int'>
|
|
1868
|
+
readonly height: Prisma.FieldRef<"Media", 'Int'>
|
|
1869
|
+
readonly altText: Prisma.FieldRef<"Media", 'String'>
|
|
1870
|
+
readonly title: Prisma.FieldRef<"Media", 'String'>
|
|
1871
|
+
readonly uploadedById: Prisma.FieldRef<"Media", 'String'>
|
|
1872
|
+
readonly focalPointX: Prisma.FieldRef<"Media", 'Float'>
|
|
1873
|
+
readonly focalPointY: Prisma.FieldRef<"Media", 'Float'>
|
|
1874
|
+
readonly blurHash: Prisma.FieldRef<"Media", 'String'>
|
|
1875
|
+
readonly aiAltText: Prisma.FieldRef<"Media", 'String'>
|
|
1876
|
+
readonly aiTags: Prisma.FieldRef<"Media", 'Json'>
|
|
1877
|
+
readonly aiDescription: Prisma.FieldRef<"Media", 'String'>
|
|
1878
|
+
readonly folderId: Prisma.FieldRef<"Media", 'String'>
|
|
1879
|
+
readonly createdAt: Prisma.FieldRef<"Media", 'DateTime'>
|
|
1880
|
+
readonly updatedAt: Prisma.FieldRef<"Media", 'DateTime'>
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
// Custom InputTypes
|
|
1885
|
+
/**
|
|
1886
|
+
* Media findUnique
|
|
1887
|
+
*/
|
|
1888
|
+
export type MediaFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1889
|
+
/**
|
|
1890
|
+
* Select specific fields to fetch from the Media
|
|
1891
|
+
*/
|
|
1892
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
1893
|
+
/**
|
|
1894
|
+
* Omit specific fields from the Media
|
|
1895
|
+
*/
|
|
1896
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
1897
|
+
/**
|
|
1898
|
+
* Choose, which related nodes to fetch as well
|
|
1899
|
+
*/
|
|
1900
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
1901
|
+
/**
|
|
1902
|
+
* Filter, which Media to fetch.
|
|
1903
|
+
*/
|
|
1904
|
+
where: Prisma.MediaWhereUniqueInput
|
|
1905
|
+
}
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* Media findUniqueOrThrow
|
|
1909
|
+
*/
|
|
1910
|
+
export type MediaFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1911
|
+
/**
|
|
1912
|
+
* Select specific fields to fetch from the Media
|
|
1913
|
+
*/
|
|
1914
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
1915
|
+
/**
|
|
1916
|
+
* Omit specific fields from the Media
|
|
1917
|
+
*/
|
|
1918
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
1919
|
+
/**
|
|
1920
|
+
* Choose, which related nodes to fetch as well
|
|
1921
|
+
*/
|
|
1922
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
1923
|
+
/**
|
|
1924
|
+
* Filter, which Media to fetch.
|
|
1925
|
+
*/
|
|
1926
|
+
where: Prisma.MediaWhereUniqueInput
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
/**
|
|
1930
|
+
* Media findFirst
|
|
1931
|
+
*/
|
|
1932
|
+
export type MediaFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1933
|
+
/**
|
|
1934
|
+
* Select specific fields to fetch from the Media
|
|
1935
|
+
*/
|
|
1936
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
1937
|
+
/**
|
|
1938
|
+
* Omit specific fields from the Media
|
|
1939
|
+
*/
|
|
1940
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
1941
|
+
/**
|
|
1942
|
+
* Choose, which related nodes to fetch as well
|
|
1943
|
+
*/
|
|
1944
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
1945
|
+
/**
|
|
1946
|
+
* Filter, which Media to fetch.
|
|
1947
|
+
*/
|
|
1948
|
+
where?: Prisma.MediaWhereInput
|
|
1949
|
+
/**
|
|
1950
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1951
|
+
*
|
|
1952
|
+
* Determine the order of Media to fetch.
|
|
1953
|
+
*/
|
|
1954
|
+
orderBy?: Prisma.MediaOrderByWithRelationInput | Prisma.MediaOrderByWithRelationInput[]
|
|
1955
|
+
/**
|
|
1956
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1957
|
+
*
|
|
1958
|
+
* Sets the position for searching for Media.
|
|
1959
|
+
*/
|
|
1960
|
+
cursor?: Prisma.MediaWhereUniqueInput
|
|
1961
|
+
/**
|
|
1962
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1963
|
+
*
|
|
1964
|
+
* Take `±n` Media from the position of the cursor.
|
|
1965
|
+
*/
|
|
1966
|
+
take?: number
|
|
1967
|
+
/**
|
|
1968
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1969
|
+
*
|
|
1970
|
+
* Skip the first `n` Media.
|
|
1971
|
+
*/
|
|
1972
|
+
skip?: number
|
|
1973
|
+
/**
|
|
1974
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1975
|
+
*
|
|
1976
|
+
* Filter by unique combinations of Media.
|
|
1977
|
+
*/
|
|
1978
|
+
distinct?: Prisma.MediaScalarFieldEnum | Prisma.MediaScalarFieldEnum[]
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* Media findFirstOrThrow
|
|
1983
|
+
*/
|
|
1984
|
+
export type MediaFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1985
|
+
/**
|
|
1986
|
+
* Select specific fields to fetch from the Media
|
|
1987
|
+
*/
|
|
1988
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
1989
|
+
/**
|
|
1990
|
+
* Omit specific fields from the Media
|
|
1991
|
+
*/
|
|
1992
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
1993
|
+
/**
|
|
1994
|
+
* Choose, which related nodes to fetch as well
|
|
1995
|
+
*/
|
|
1996
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
1997
|
+
/**
|
|
1998
|
+
* Filter, which Media to fetch.
|
|
1999
|
+
*/
|
|
2000
|
+
where?: Prisma.MediaWhereInput
|
|
2001
|
+
/**
|
|
2002
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2003
|
+
*
|
|
2004
|
+
* Determine the order of Media to fetch.
|
|
2005
|
+
*/
|
|
2006
|
+
orderBy?: Prisma.MediaOrderByWithRelationInput | Prisma.MediaOrderByWithRelationInput[]
|
|
2007
|
+
/**
|
|
2008
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2009
|
+
*
|
|
2010
|
+
* Sets the position for searching for Media.
|
|
2011
|
+
*/
|
|
2012
|
+
cursor?: Prisma.MediaWhereUniqueInput
|
|
2013
|
+
/**
|
|
2014
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2015
|
+
*
|
|
2016
|
+
* Take `±n` Media from the position of the cursor.
|
|
2017
|
+
*/
|
|
2018
|
+
take?: number
|
|
2019
|
+
/**
|
|
2020
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2021
|
+
*
|
|
2022
|
+
* Skip the first `n` Media.
|
|
2023
|
+
*/
|
|
2024
|
+
skip?: number
|
|
2025
|
+
/**
|
|
2026
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2027
|
+
*
|
|
2028
|
+
* Filter by unique combinations of Media.
|
|
2029
|
+
*/
|
|
2030
|
+
distinct?: Prisma.MediaScalarFieldEnum | Prisma.MediaScalarFieldEnum[]
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
/**
|
|
2034
|
+
* Media findMany
|
|
2035
|
+
*/
|
|
2036
|
+
export type MediaFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2037
|
+
/**
|
|
2038
|
+
* Select specific fields to fetch from the Media
|
|
2039
|
+
*/
|
|
2040
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
2041
|
+
/**
|
|
2042
|
+
* Omit specific fields from the Media
|
|
2043
|
+
*/
|
|
2044
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
2045
|
+
/**
|
|
2046
|
+
* Choose, which related nodes to fetch as well
|
|
2047
|
+
*/
|
|
2048
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
2049
|
+
/**
|
|
2050
|
+
* Filter, which Media to fetch.
|
|
2051
|
+
*/
|
|
2052
|
+
where?: Prisma.MediaWhereInput
|
|
2053
|
+
/**
|
|
2054
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
2055
|
+
*
|
|
2056
|
+
* Determine the order of Media to fetch.
|
|
2057
|
+
*/
|
|
2058
|
+
orderBy?: Prisma.MediaOrderByWithRelationInput | Prisma.MediaOrderByWithRelationInput[]
|
|
2059
|
+
/**
|
|
2060
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
2061
|
+
*
|
|
2062
|
+
* Sets the position for listing Media.
|
|
2063
|
+
*/
|
|
2064
|
+
cursor?: Prisma.MediaWhereUniqueInput
|
|
2065
|
+
/**
|
|
2066
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2067
|
+
*
|
|
2068
|
+
* Take `±n` Media from the position of the cursor.
|
|
2069
|
+
*/
|
|
2070
|
+
take?: number
|
|
2071
|
+
/**
|
|
2072
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
2073
|
+
*
|
|
2074
|
+
* Skip the first `n` Media.
|
|
2075
|
+
*/
|
|
2076
|
+
skip?: number
|
|
2077
|
+
/**
|
|
2078
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
2079
|
+
*
|
|
2080
|
+
* Filter by unique combinations of Media.
|
|
2081
|
+
*/
|
|
2082
|
+
distinct?: Prisma.MediaScalarFieldEnum | Prisma.MediaScalarFieldEnum[]
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
/**
|
|
2086
|
+
* Media create
|
|
2087
|
+
*/
|
|
2088
|
+
export type MediaCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2089
|
+
/**
|
|
2090
|
+
* Select specific fields to fetch from the Media
|
|
2091
|
+
*/
|
|
2092
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
2093
|
+
/**
|
|
2094
|
+
* Omit specific fields from the Media
|
|
2095
|
+
*/
|
|
2096
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
2097
|
+
/**
|
|
2098
|
+
* Choose, which related nodes to fetch as well
|
|
2099
|
+
*/
|
|
2100
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
2101
|
+
/**
|
|
2102
|
+
* The data needed to create a Media.
|
|
2103
|
+
*/
|
|
2104
|
+
data: Prisma.XOR<Prisma.MediaCreateInput, Prisma.MediaUncheckedCreateInput>
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/**
|
|
2108
|
+
* Media createMany
|
|
2109
|
+
*/
|
|
2110
|
+
export type MediaCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2111
|
+
/**
|
|
2112
|
+
* The data used to create many Media.
|
|
2113
|
+
*/
|
|
2114
|
+
data: Prisma.MediaCreateManyInput | Prisma.MediaCreateManyInput[]
|
|
2115
|
+
skipDuplicates?: boolean
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
/**
|
|
2119
|
+
* Media createManyAndReturn
|
|
2120
|
+
*/
|
|
2121
|
+
export type MediaCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2122
|
+
/**
|
|
2123
|
+
* Select specific fields to fetch from the Media
|
|
2124
|
+
*/
|
|
2125
|
+
select?: Prisma.MediaSelectCreateManyAndReturn<ExtArgs> | null
|
|
2126
|
+
/**
|
|
2127
|
+
* Omit specific fields from the Media
|
|
2128
|
+
*/
|
|
2129
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
2130
|
+
/**
|
|
2131
|
+
* The data used to create many Media.
|
|
2132
|
+
*/
|
|
2133
|
+
data: Prisma.MediaCreateManyInput | Prisma.MediaCreateManyInput[]
|
|
2134
|
+
skipDuplicates?: boolean
|
|
2135
|
+
/**
|
|
2136
|
+
* Choose, which related nodes to fetch as well
|
|
2137
|
+
*/
|
|
2138
|
+
include?: Prisma.MediaIncludeCreateManyAndReturn<ExtArgs> | null
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* Media update
|
|
2143
|
+
*/
|
|
2144
|
+
export type MediaUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2145
|
+
/**
|
|
2146
|
+
* Select specific fields to fetch from the Media
|
|
2147
|
+
*/
|
|
2148
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
2149
|
+
/**
|
|
2150
|
+
* Omit specific fields from the Media
|
|
2151
|
+
*/
|
|
2152
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
2153
|
+
/**
|
|
2154
|
+
* Choose, which related nodes to fetch as well
|
|
2155
|
+
*/
|
|
2156
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
2157
|
+
/**
|
|
2158
|
+
* The data needed to update a Media.
|
|
2159
|
+
*/
|
|
2160
|
+
data: Prisma.XOR<Prisma.MediaUpdateInput, Prisma.MediaUncheckedUpdateInput>
|
|
2161
|
+
/**
|
|
2162
|
+
* Choose, which Media to update.
|
|
2163
|
+
*/
|
|
2164
|
+
where: Prisma.MediaWhereUniqueInput
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
/**
|
|
2168
|
+
* Media updateMany
|
|
2169
|
+
*/
|
|
2170
|
+
export type MediaUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2171
|
+
/**
|
|
2172
|
+
* The data used to update Media.
|
|
2173
|
+
*/
|
|
2174
|
+
data: Prisma.XOR<Prisma.MediaUpdateManyMutationInput, Prisma.MediaUncheckedUpdateManyInput>
|
|
2175
|
+
/**
|
|
2176
|
+
* Filter which Media to update
|
|
2177
|
+
*/
|
|
2178
|
+
where?: Prisma.MediaWhereInput
|
|
2179
|
+
/**
|
|
2180
|
+
* Limit how many Media to update.
|
|
2181
|
+
*/
|
|
2182
|
+
limit?: number
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
/**
|
|
2186
|
+
* Media updateManyAndReturn
|
|
2187
|
+
*/
|
|
2188
|
+
export type MediaUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2189
|
+
/**
|
|
2190
|
+
* Select specific fields to fetch from the Media
|
|
2191
|
+
*/
|
|
2192
|
+
select?: Prisma.MediaSelectUpdateManyAndReturn<ExtArgs> | null
|
|
2193
|
+
/**
|
|
2194
|
+
* Omit specific fields from the Media
|
|
2195
|
+
*/
|
|
2196
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
2197
|
+
/**
|
|
2198
|
+
* The data used to update Media.
|
|
2199
|
+
*/
|
|
2200
|
+
data: Prisma.XOR<Prisma.MediaUpdateManyMutationInput, Prisma.MediaUncheckedUpdateManyInput>
|
|
2201
|
+
/**
|
|
2202
|
+
* Filter which Media to update
|
|
2203
|
+
*/
|
|
2204
|
+
where?: Prisma.MediaWhereInput
|
|
2205
|
+
/**
|
|
2206
|
+
* Limit how many Media to update.
|
|
2207
|
+
*/
|
|
2208
|
+
limit?: number
|
|
2209
|
+
/**
|
|
2210
|
+
* Choose, which related nodes to fetch as well
|
|
2211
|
+
*/
|
|
2212
|
+
include?: Prisma.MediaIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
/**
|
|
2216
|
+
* Media upsert
|
|
2217
|
+
*/
|
|
2218
|
+
export type MediaUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2219
|
+
/**
|
|
2220
|
+
* Select specific fields to fetch from the Media
|
|
2221
|
+
*/
|
|
2222
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
2223
|
+
/**
|
|
2224
|
+
* Omit specific fields from the Media
|
|
2225
|
+
*/
|
|
2226
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
2227
|
+
/**
|
|
2228
|
+
* Choose, which related nodes to fetch as well
|
|
2229
|
+
*/
|
|
2230
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
2231
|
+
/**
|
|
2232
|
+
* The filter to search for the Media to update in case it exists.
|
|
2233
|
+
*/
|
|
2234
|
+
where: Prisma.MediaWhereUniqueInput
|
|
2235
|
+
/**
|
|
2236
|
+
* In case the Media found by the `where` argument doesn't exist, create a new Media with this data.
|
|
2237
|
+
*/
|
|
2238
|
+
create: Prisma.XOR<Prisma.MediaCreateInput, Prisma.MediaUncheckedCreateInput>
|
|
2239
|
+
/**
|
|
2240
|
+
* In case the Media was found with the provided `where` argument, update it with this data.
|
|
2241
|
+
*/
|
|
2242
|
+
update: Prisma.XOR<Prisma.MediaUpdateInput, Prisma.MediaUncheckedUpdateInput>
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
/**
|
|
2246
|
+
* Media delete
|
|
2247
|
+
*/
|
|
2248
|
+
export type MediaDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2249
|
+
/**
|
|
2250
|
+
* Select specific fields to fetch from the Media
|
|
2251
|
+
*/
|
|
2252
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
2253
|
+
/**
|
|
2254
|
+
* Omit specific fields from the Media
|
|
2255
|
+
*/
|
|
2256
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
2257
|
+
/**
|
|
2258
|
+
* Choose, which related nodes to fetch as well
|
|
2259
|
+
*/
|
|
2260
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
2261
|
+
/**
|
|
2262
|
+
* Filter which Media to delete.
|
|
2263
|
+
*/
|
|
2264
|
+
where: Prisma.MediaWhereUniqueInput
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2267
|
+
/**
|
|
2268
|
+
* Media deleteMany
|
|
2269
|
+
*/
|
|
2270
|
+
export type MediaDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2271
|
+
/**
|
|
2272
|
+
* Filter which Media to delete
|
|
2273
|
+
*/
|
|
2274
|
+
where?: Prisma.MediaWhereInput
|
|
2275
|
+
/**
|
|
2276
|
+
* Limit how many Media to delete.
|
|
2277
|
+
*/
|
|
2278
|
+
limit?: number
|
|
2279
|
+
}
|
|
2280
|
+
|
|
2281
|
+
/**
|
|
2282
|
+
* Media.folder
|
|
2283
|
+
*/
|
|
2284
|
+
export type Media$folderArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2285
|
+
/**
|
|
2286
|
+
* Select specific fields to fetch from the Folder
|
|
2287
|
+
*/
|
|
2288
|
+
select?: Prisma.FolderSelect<ExtArgs> | null
|
|
2289
|
+
/**
|
|
2290
|
+
* Omit specific fields from the Folder
|
|
2291
|
+
*/
|
|
2292
|
+
omit?: Prisma.FolderOmit<ExtArgs> | null
|
|
2293
|
+
/**
|
|
2294
|
+
* Choose, which related nodes to fetch as well
|
|
2295
|
+
*/
|
|
2296
|
+
include?: Prisma.FolderInclude<ExtArgs> | null
|
|
2297
|
+
where?: Prisma.FolderWhereInput
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* Media.mediaUsages
|
|
2302
|
+
*/
|
|
2303
|
+
export type Media$mediaUsagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2304
|
+
/**
|
|
2305
|
+
* Select specific fields to fetch from the MediaUsage
|
|
2306
|
+
*/
|
|
2307
|
+
select?: Prisma.MediaUsageSelect<ExtArgs> | null
|
|
2308
|
+
/**
|
|
2309
|
+
* Omit specific fields from the MediaUsage
|
|
2310
|
+
*/
|
|
2311
|
+
omit?: Prisma.MediaUsageOmit<ExtArgs> | null
|
|
2312
|
+
/**
|
|
2313
|
+
* Choose, which related nodes to fetch as well
|
|
2314
|
+
*/
|
|
2315
|
+
include?: Prisma.MediaUsageInclude<ExtArgs> | null
|
|
2316
|
+
where?: Prisma.MediaUsageWhereInput
|
|
2317
|
+
orderBy?: Prisma.MediaUsageOrderByWithRelationInput | Prisma.MediaUsageOrderByWithRelationInput[]
|
|
2318
|
+
cursor?: Prisma.MediaUsageWhereUniqueInput
|
|
2319
|
+
take?: number
|
|
2320
|
+
skip?: number
|
|
2321
|
+
distinct?: Prisma.MediaUsageScalarFieldEnum | Prisma.MediaUsageScalarFieldEnum[]
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* Media without action
|
|
2326
|
+
*/
|
|
2327
|
+
export type MediaDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
2328
|
+
/**
|
|
2329
|
+
* Select specific fields to fetch from the Media
|
|
2330
|
+
*/
|
|
2331
|
+
select?: Prisma.MediaSelect<ExtArgs> | null
|
|
2332
|
+
/**
|
|
2333
|
+
* Omit specific fields from the Media
|
|
2334
|
+
*/
|
|
2335
|
+
omit?: Prisma.MediaOmit<ExtArgs> | null
|
|
2336
|
+
/**
|
|
2337
|
+
* Choose, which related nodes to fetch as well
|
|
2338
|
+
*/
|
|
2339
|
+
include?: Prisma.MediaInclude<ExtArgs> | null
|
|
2340
|
+
}
|