@actuate-media/cms-core 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/LICENSE +21 -21
  2. package/dist/__tests__/api/api-key-auth.test.d.ts +2 -0
  3. package/dist/__tests__/api/api-key-auth.test.d.ts.map +1 -0
  4. package/dist/__tests__/api/api-key-auth.test.js +254 -0
  5. package/dist/__tests__/api/api-key-auth.test.js.map +1 -0
  6. package/dist/__tests__/api/public-seo.test.d.ts +2 -0
  7. package/dist/__tests__/api/public-seo.test.d.ts.map +1 -0
  8. package/dist/__tests__/api/public-seo.test.js +341 -0
  9. package/dist/__tests__/api/public-seo.test.js.map +1 -0
  10. package/dist/__tests__/security/api-key-enhanced.test.d.ts +2 -0
  11. package/dist/__tests__/security/api-key-enhanced.test.d.ts.map +1 -0
  12. package/dist/__tests__/security/api-key-enhanced.test.js +110 -0
  13. package/dist/__tests__/security/api-key-enhanced.test.js.map +1 -0
  14. package/dist/__tests__/seo/page-meta.test.d.ts +2 -0
  15. package/dist/__tests__/seo/page-meta.test.d.ts.map +1 -0
  16. package/dist/__tests__/seo/page-meta.test.js +204 -0
  17. package/dist/__tests__/seo/page-meta.test.js.map +1 -0
  18. package/dist/api/handler-factory.d.ts.map +1 -1
  19. package/dist/api/handler-factory.js +20 -2
  20. package/dist/api/handler-factory.js.map +1 -1
  21. package/dist/api/handlers.d.ts.map +1 -1
  22. package/dist/api/handlers.js +764 -31
  23. package/dist/api/handlers.js.map +1 -1
  24. package/dist/config/types.d.ts +75 -0
  25. package/dist/config/types.d.ts.map +1 -1
  26. package/dist/security/api-key-enhanced.d.ts +48 -5
  27. package/dist/security/api-key-enhanced.d.ts.map +1 -1
  28. package/dist/security/api-key-enhanced.js +60 -9
  29. package/dist/security/api-key-enhanced.js.map +1 -1
  30. package/dist/seo/index.d.ts +2 -0
  31. package/dist/seo/index.d.ts.map +1 -1
  32. package/dist/seo/index.js +1 -0
  33. package/dist/seo/index.js.map +1 -1
  34. package/dist/seo/page-meta.d.ts +79 -0
  35. package/dist/seo/page-meta.d.ts.map +1 -0
  36. package/dist/seo/page-meta.js +209 -0
  37. package/dist/seo/page-meta.js.map +1 -0
  38. package/generated/browser.ts +109 -0
  39. package/generated/client.ts +133 -0
  40. package/generated/commonInputTypes.ts +709 -0
  41. package/generated/enums.ts +125 -0
  42. package/generated/internal/class.ts +376 -0
  43. package/generated/internal/prismaNamespace.ts +2617 -0
  44. package/generated/internal/prismaNamespaceBrowser.ts +611 -0
  45. package/generated/models/ApiKey.ts +1550 -0
  46. package/generated/models/AuditLog.ts +1206 -0
  47. package/generated/models/BackupRecord.ts +1250 -0
  48. package/generated/models/ContentLock.ts +1472 -0
  49. package/generated/models/ContentTemplate.ts +1416 -0
  50. package/generated/models/Document.ts +3005 -0
  51. package/generated/models/Folder.ts +1904 -0
  52. package/generated/models/FormSubmission.ts +1200 -0
  53. package/generated/models/InAppNotification.ts +1457 -0
  54. package/generated/models/Media.ts +2340 -0
  55. package/generated/models/MediaUsage.ts +1472 -0
  56. package/generated/models/OAuthAccount.ts +1463 -0
  57. package/generated/models/Redirect.ts +1284 -0
  58. package/generated/models/Session.ts +1492 -0
  59. package/generated/models/Site.ts +1206 -0
  60. package/generated/models/User.ts +3513 -0
  61. package/generated/models/Version.ts +1511 -0
  62. package/generated/models/WorkflowState.ts +1514 -0
  63. package/generated/models.ts +29 -0
  64. package/package.json +1 -1
  65. package/prisma/cms-schema.prisma +306 -306
  66. package/prisma/migrations/0001_init/migration.sql +384 -384
  67. package/prisma/migrations/0002_folders/migration.sql +39 -39
  68. package/prisma/migrations/0003_search_and_webhooks/migration.sql +50 -50
  69. package/prisma/migrations/0004_script_tags/migration.sql +21 -21
  70. package/prisma/migrations/0005_password_reset_tokens/migration.sql +20 -20
  71. package/prisma/migrations/0006_page_builder/migration.sql +38 -38
  72. package/prisma/migrations/migration_lock.toml +3 -3
  73. package/prisma/schema.prisma +549 -549
@@ -0,0 +1,1904 @@
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 `Folder` 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 Folder
17
+ *
18
+ */
19
+ export type FolderModel = runtime.Types.Result.DefaultSelection<Prisma.$FolderPayload>
20
+
21
+ export type AggregateFolder = {
22
+ _count: FolderCountAggregateOutputType | null
23
+ _avg: FolderAvgAggregateOutputType | null
24
+ _sum: FolderSumAggregateOutputType | null
25
+ _min: FolderMinAggregateOutputType | null
26
+ _max: FolderMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type FolderAvgAggregateOutputType = {
30
+ position: number | null
31
+ }
32
+
33
+ export type FolderSumAggregateOutputType = {
34
+ position: number | null
35
+ }
36
+
37
+ export type FolderMinAggregateOutputType = {
38
+ id: string | null
39
+ name: string | null
40
+ scope: string | null
41
+ parentId: string | null
42
+ position: number | null
43
+ createdAt: Date | null
44
+ updatedAt: Date | null
45
+ }
46
+
47
+ export type FolderMaxAggregateOutputType = {
48
+ id: string | null
49
+ name: string | null
50
+ scope: string | null
51
+ parentId: string | null
52
+ position: number | null
53
+ createdAt: Date | null
54
+ updatedAt: Date | null
55
+ }
56
+
57
+ export type FolderCountAggregateOutputType = {
58
+ id: number
59
+ name: number
60
+ scope: number
61
+ parentId: number
62
+ position: number
63
+ createdAt: number
64
+ updatedAt: number
65
+ _all: number
66
+ }
67
+
68
+
69
+ export type FolderAvgAggregateInputType = {
70
+ position?: true
71
+ }
72
+
73
+ export type FolderSumAggregateInputType = {
74
+ position?: true
75
+ }
76
+
77
+ export type FolderMinAggregateInputType = {
78
+ id?: true
79
+ name?: true
80
+ scope?: true
81
+ parentId?: true
82
+ position?: true
83
+ createdAt?: true
84
+ updatedAt?: true
85
+ }
86
+
87
+ export type FolderMaxAggregateInputType = {
88
+ id?: true
89
+ name?: true
90
+ scope?: true
91
+ parentId?: true
92
+ position?: true
93
+ createdAt?: true
94
+ updatedAt?: true
95
+ }
96
+
97
+ export type FolderCountAggregateInputType = {
98
+ id?: true
99
+ name?: true
100
+ scope?: true
101
+ parentId?: true
102
+ position?: true
103
+ createdAt?: true
104
+ updatedAt?: true
105
+ _all?: true
106
+ }
107
+
108
+ export type FolderAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
109
+ /**
110
+ * Filter which Folder to aggregate.
111
+ */
112
+ where?: Prisma.FolderWhereInput
113
+ /**
114
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
115
+ *
116
+ * Determine the order of Folders to fetch.
117
+ */
118
+ orderBy?: Prisma.FolderOrderByWithRelationInput | Prisma.FolderOrderByWithRelationInput[]
119
+ /**
120
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
121
+ *
122
+ * Sets the start position
123
+ */
124
+ cursor?: Prisma.FolderWhereUniqueInput
125
+ /**
126
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
127
+ *
128
+ * Take `±n` Folders from the position of the cursor.
129
+ */
130
+ take?: number
131
+ /**
132
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
133
+ *
134
+ * Skip the first `n` Folders.
135
+ */
136
+ skip?: number
137
+ /**
138
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
139
+ *
140
+ * Count returned Folders
141
+ **/
142
+ _count?: true | FolderCountAggregateInputType
143
+ /**
144
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
145
+ *
146
+ * Select which fields to average
147
+ **/
148
+ _avg?: FolderAvgAggregateInputType
149
+ /**
150
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
151
+ *
152
+ * Select which fields to sum
153
+ **/
154
+ _sum?: FolderSumAggregateInputType
155
+ /**
156
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
157
+ *
158
+ * Select which fields to find the minimum value
159
+ **/
160
+ _min?: FolderMinAggregateInputType
161
+ /**
162
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
163
+ *
164
+ * Select which fields to find the maximum value
165
+ **/
166
+ _max?: FolderMaxAggregateInputType
167
+ }
168
+
169
+ export type GetFolderAggregateType<T extends FolderAggregateArgs> = {
170
+ [P in keyof T & keyof AggregateFolder]: P extends '_count' | 'count'
171
+ ? T[P] extends true
172
+ ? number
173
+ : Prisma.GetScalarType<T[P], AggregateFolder[P]>
174
+ : Prisma.GetScalarType<T[P], AggregateFolder[P]>
175
+ }
176
+
177
+
178
+
179
+
180
+ export type FolderGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
181
+ where?: Prisma.FolderWhereInput
182
+ orderBy?: Prisma.FolderOrderByWithAggregationInput | Prisma.FolderOrderByWithAggregationInput[]
183
+ by: Prisma.FolderScalarFieldEnum[] | Prisma.FolderScalarFieldEnum
184
+ having?: Prisma.FolderScalarWhereWithAggregatesInput
185
+ take?: number
186
+ skip?: number
187
+ _count?: FolderCountAggregateInputType | true
188
+ _avg?: FolderAvgAggregateInputType
189
+ _sum?: FolderSumAggregateInputType
190
+ _min?: FolderMinAggregateInputType
191
+ _max?: FolderMaxAggregateInputType
192
+ }
193
+
194
+ export type FolderGroupByOutputType = {
195
+ id: string
196
+ name: string
197
+ scope: string
198
+ parentId: string | null
199
+ position: number
200
+ createdAt: Date
201
+ updatedAt: Date
202
+ _count: FolderCountAggregateOutputType | null
203
+ _avg: FolderAvgAggregateOutputType | null
204
+ _sum: FolderSumAggregateOutputType | null
205
+ _min: FolderMinAggregateOutputType | null
206
+ _max: FolderMaxAggregateOutputType | null
207
+ }
208
+
209
+ type GetFolderGroupByPayload<T extends FolderGroupByArgs> = Prisma.PrismaPromise<
210
+ Array<
211
+ Prisma.PickEnumerable<FolderGroupByOutputType, T['by']> &
212
+ {
213
+ [P in ((keyof T) & (keyof FolderGroupByOutputType))]: P extends '_count'
214
+ ? T[P] extends boolean
215
+ ? number
216
+ : Prisma.GetScalarType<T[P], FolderGroupByOutputType[P]>
217
+ : Prisma.GetScalarType<T[P], FolderGroupByOutputType[P]>
218
+ }
219
+ >
220
+ >
221
+
222
+
223
+
224
+ export type FolderWhereInput = {
225
+ AND?: Prisma.FolderWhereInput | Prisma.FolderWhereInput[]
226
+ OR?: Prisma.FolderWhereInput[]
227
+ NOT?: Prisma.FolderWhereInput | Prisma.FolderWhereInput[]
228
+ id?: Prisma.StringFilter<"Folder"> | string
229
+ name?: Prisma.StringFilter<"Folder"> | string
230
+ scope?: Prisma.StringFilter<"Folder"> | string
231
+ parentId?: Prisma.StringNullableFilter<"Folder"> | string | null
232
+ position?: Prisma.IntFilter<"Folder"> | number
233
+ createdAt?: Prisma.DateTimeFilter<"Folder"> | Date | string
234
+ updatedAt?: Prisma.DateTimeFilter<"Folder"> | Date | string
235
+ parent?: Prisma.XOR<Prisma.FolderNullableScalarRelationFilter, Prisma.FolderWhereInput> | null
236
+ children?: Prisma.FolderListRelationFilter
237
+ documents?: Prisma.DocumentListRelationFilter
238
+ media?: Prisma.MediaListRelationFilter
239
+ }
240
+
241
+ export type FolderOrderByWithRelationInput = {
242
+ id?: Prisma.SortOrder
243
+ name?: Prisma.SortOrder
244
+ scope?: Prisma.SortOrder
245
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
246
+ position?: Prisma.SortOrder
247
+ createdAt?: Prisma.SortOrder
248
+ updatedAt?: Prisma.SortOrder
249
+ parent?: Prisma.FolderOrderByWithRelationInput
250
+ children?: Prisma.FolderOrderByRelationAggregateInput
251
+ documents?: Prisma.DocumentOrderByRelationAggregateInput
252
+ media?: Prisma.MediaOrderByRelationAggregateInput
253
+ _relevance?: Prisma.FolderOrderByRelevanceInput
254
+ }
255
+
256
+ export type FolderWhereUniqueInput = Prisma.AtLeast<{
257
+ id?: string
258
+ AND?: Prisma.FolderWhereInput | Prisma.FolderWhereInput[]
259
+ OR?: Prisma.FolderWhereInput[]
260
+ NOT?: Prisma.FolderWhereInput | Prisma.FolderWhereInput[]
261
+ name?: Prisma.StringFilter<"Folder"> | string
262
+ scope?: Prisma.StringFilter<"Folder"> | string
263
+ parentId?: Prisma.StringNullableFilter<"Folder"> | string | null
264
+ position?: Prisma.IntFilter<"Folder"> | number
265
+ createdAt?: Prisma.DateTimeFilter<"Folder"> | Date | string
266
+ updatedAt?: Prisma.DateTimeFilter<"Folder"> | Date | string
267
+ parent?: Prisma.XOR<Prisma.FolderNullableScalarRelationFilter, Prisma.FolderWhereInput> | null
268
+ children?: Prisma.FolderListRelationFilter
269
+ documents?: Prisma.DocumentListRelationFilter
270
+ media?: Prisma.MediaListRelationFilter
271
+ }, "id">
272
+
273
+ export type FolderOrderByWithAggregationInput = {
274
+ id?: Prisma.SortOrder
275
+ name?: Prisma.SortOrder
276
+ scope?: Prisma.SortOrder
277
+ parentId?: Prisma.SortOrderInput | Prisma.SortOrder
278
+ position?: Prisma.SortOrder
279
+ createdAt?: Prisma.SortOrder
280
+ updatedAt?: Prisma.SortOrder
281
+ _count?: Prisma.FolderCountOrderByAggregateInput
282
+ _avg?: Prisma.FolderAvgOrderByAggregateInput
283
+ _max?: Prisma.FolderMaxOrderByAggregateInput
284
+ _min?: Prisma.FolderMinOrderByAggregateInput
285
+ _sum?: Prisma.FolderSumOrderByAggregateInput
286
+ }
287
+
288
+ export type FolderScalarWhereWithAggregatesInput = {
289
+ AND?: Prisma.FolderScalarWhereWithAggregatesInput | Prisma.FolderScalarWhereWithAggregatesInput[]
290
+ OR?: Prisma.FolderScalarWhereWithAggregatesInput[]
291
+ NOT?: Prisma.FolderScalarWhereWithAggregatesInput | Prisma.FolderScalarWhereWithAggregatesInput[]
292
+ id?: Prisma.StringWithAggregatesFilter<"Folder"> | string
293
+ name?: Prisma.StringWithAggregatesFilter<"Folder"> | string
294
+ scope?: Prisma.StringWithAggregatesFilter<"Folder"> | string
295
+ parentId?: Prisma.StringNullableWithAggregatesFilter<"Folder"> | string | null
296
+ position?: Prisma.IntWithAggregatesFilter<"Folder"> | number
297
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"Folder"> | Date | string
298
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Folder"> | Date | string
299
+ }
300
+
301
+ export type FolderCreateInput = {
302
+ id?: string
303
+ name: string
304
+ scope: string
305
+ position?: number
306
+ createdAt?: Date | string
307
+ updatedAt?: Date | string
308
+ parent?: Prisma.FolderCreateNestedOneWithoutChildrenInput
309
+ children?: Prisma.FolderCreateNestedManyWithoutParentInput
310
+ documents?: Prisma.DocumentCreateNestedManyWithoutFolderInput
311
+ media?: Prisma.MediaCreateNestedManyWithoutFolderInput
312
+ }
313
+
314
+ export type FolderUncheckedCreateInput = {
315
+ id?: string
316
+ name: string
317
+ scope: string
318
+ parentId?: string | null
319
+ position?: number
320
+ createdAt?: Date | string
321
+ updatedAt?: Date | string
322
+ children?: Prisma.FolderUncheckedCreateNestedManyWithoutParentInput
323
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutFolderInput
324
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutFolderInput
325
+ }
326
+
327
+ export type FolderUpdateInput = {
328
+ id?: Prisma.StringFieldUpdateOperationsInput | string
329
+ name?: Prisma.StringFieldUpdateOperationsInput | string
330
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
331
+ position?: Prisma.IntFieldUpdateOperationsInput | number
332
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
333
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
334
+ parent?: Prisma.FolderUpdateOneWithoutChildrenNestedInput
335
+ children?: Prisma.FolderUpdateManyWithoutParentNestedInput
336
+ documents?: Prisma.DocumentUpdateManyWithoutFolderNestedInput
337
+ media?: Prisma.MediaUpdateManyWithoutFolderNestedInput
338
+ }
339
+
340
+ export type FolderUncheckedUpdateInput = {
341
+ id?: Prisma.StringFieldUpdateOperationsInput | string
342
+ name?: Prisma.StringFieldUpdateOperationsInput | string
343
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
344
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
345
+ position?: Prisma.IntFieldUpdateOperationsInput | number
346
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
347
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
348
+ children?: Prisma.FolderUncheckedUpdateManyWithoutParentNestedInput
349
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutFolderNestedInput
350
+ media?: Prisma.MediaUncheckedUpdateManyWithoutFolderNestedInput
351
+ }
352
+
353
+ export type FolderCreateManyInput = {
354
+ id?: string
355
+ name: string
356
+ scope: string
357
+ parentId?: string | null
358
+ position?: number
359
+ createdAt?: Date | string
360
+ updatedAt?: Date | string
361
+ }
362
+
363
+ export type FolderUpdateManyMutationInput = {
364
+ id?: Prisma.StringFieldUpdateOperationsInput | string
365
+ name?: Prisma.StringFieldUpdateOperationsInput | string
366
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
367
+ position?: Prisma.IntFieldUpdateOperationsInput | number
368
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
369
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
370
+ }
371
+
372
+ export type FolderUncheckedUpdateManyInput = {
373
+ id?: Prisma.StringFieldUpdateOperationsInput | string
374
+ name?: Prisma.StringFieldUpdateOperationsInput | string
375
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
376
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
377
+ position?: Prisma.IntFieldUpdateOperationsInput | number
378
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
379
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
380
+ }
381
+
382
+ export type FolderNullableScalarRelationFilter = {
383
+ is?: Prisma.FolderWhereInput | null
384
+ isNot?: Prisma.FolderWhereInput | null
385
+ }
386
+
387
+ export type FolderListRelationFilter = {
388
+ every?: Prisma.FolderWhereInput
389
+ some?: Prisma.FolderWhereInput
390
+ none?: Prisma.FolderWhereInput
391
+ }
392
+
393
+ export type FolderOrderByRelationAggregateInput = {
394
+ _count?: Prisma.SortOrder
395
+ }
396
+
397
+ export type FolderOrderByRelevanceInput = {
398
+ fields: Prisma.FolderOrderByRelevanceFieldEnum | Prisma.FolderOrderByRelevanceFieldEnum[]
399
+ sort: Prisma.SortOrder
400
+ search: string
401
+ }
402
+
403
+ export type FolderCountOrderByAggregateInput = {
404
+ id?: Prisma.SortOrder
405
+ name?: Prisma.SortOrder
406
+ scope?: Prisma.SortOrder
407
+ parentId?: Prisma.SortOrder
408
+ position?: Prisma.SortOrder
409
+ createdAt?: Prisma.SortOrder
410
+ updatedAt?: Prisma.SortOrder
411
+ }
412
+
413
+ export type FolderAvgOrderByAggregateInput = {
414
+ position?: Prisma.SortOrder
415
+ }
416
+
417
+ export type FolderMaxOrderByAggregateInput = {
418
+ id?: Prisma.SortOrder
419
+ name?: Prisma.SortOrder
420
+ scope?: Prisma.SortOrder
421
+ parentId?: Prisma.SortOrder
422
+ position?: Prisma.SortOrder
423
+ createdAt?: Prisma.SortOrder
424
+ updatedAt?: Prisma.SortOrder
425
+ }
426
+
427
+ export type FolderMinOrderByAggregateInput = {
428
+ id?: Prisma.SortOrder
429
+ name?: Prisma.SortOrder
430
+ scope?: Prisma.SortOrder
431
+ parentId?: Prisma.SortOrder
432
+ position?: Prisma.SortOrder
433
+ createdAt?: Prisma.SortOrder
434
+ updatedAt?: Prisma.SortOrder
435
+ }
436
+
437
+ export type FolderSumOrderByAggregateInput = {
438
+ position?: Prisma.SortOrder
439
+ }
440
+
441
+ export type FolderCreateNestedOneWithoutChildrenInput = {
442
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutChildrenInput, Prisma.FolderUncheckedCreateWithoutChildrenInput>
443
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutChildrenInput
444
+ connect?: Prisma.FolderWhereUniqueInput
445
+ }
446
+
447
+ export type FolderCreateNestedManyWithoutParentInput = {
448
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput> | Prisma.FolderCreateWithoutParentInput[] | Prisma.FolderUncheckedCreateWithoutParentInput[]
449
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutParentInput | Prisma.FolderCreateOrConnectWithoutParentInput[]
450
+ createMany?: Prisma.FolderCreateManyParentInputEnvelope
451
+ connect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
452
+ }
453
+
454
+ export type FolderUncheckedCreateNestedManyWithoutParentInput = {
455
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput> | Prisma.FolderCreateWithoutParentInput[] | Prisma.FolderUncheckedCreateWithoutParentInput[]
456
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutParentInput | Prisma.FolderCreateOrConnectWithoutParentInput[]
457
+ createMany?: Prisma.FolderCreateManyParentInputEnvelope
458
+ connect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
459
+ }
460
+
461
+ export type IntFieldUpdateOperationsInput = {
462
+ set?: number
463
+ increment?: number
464
+ decrement?: number
465
+ multiply?: number
466
+ divide?: number
467
+ }
468
+
469
+ export type FolderUpdateOneWithoutChildrenNestedInput = {
470
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutChildrenInput, Prisma.FolderUncheckedCreateWithoutChildrenInput>
471
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutChildrenInput
472
+ upsert?: Prisma.FolderUpsertWithoutChildrenInput
473
+ disconnect?: Prisma.FolderWhereInput | boolean
474
+ delete?: Prisma.FolderWhereInput | boolean
475
+ connect?: Prisma.FolderWhereUniqueInput
476
+ update?: Prisma.XOR<Prisma.XOR<Prisma.FolderUpdateToOneWithWhereWithoutChildrenInput, Prisma.FolderUpdateWithoutChildrenInput>, Prisma.FolderUncheckedUpdateWithoutChildrenInput>
477
+ }
478
+
479
+ export type FolderUpdateManyWithoutParentNestedInput = {
480
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput> | Prisma.FolderCreateWithoutParentInput[] | Prisma.FolderUncheckedCreateWithoutParentInput[]
481
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutParentInput | Prisma.FolderCreateOrConnectWithoutParentInput[]
482
+ upsert?: Prisma.FolderUpsertWithWhereUniqueWithoutParentInput | Prisma.FolderUpsertWithWhereUniqueWithoutParentInput[]
483
+ createMany?: Prisma.FolderCreateManyParentInputEnvelope
484
+ set?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
485
+ disconnect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
486
+ delete?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
487
+ connect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
488
+ update?: Prisma.FolderUpdateWithWhereUniqueWithoutParentInput | Prisma.FolderUpdateWithWhereUniqueWithoutParentInput[]
489
+ updateMany?: Prisma.FolderUpdateManyWithWhereWithoutParentInput | Prisma.FolderUpdateManyWithWhereWithoutParentInput[]
490
+ deleteMany?: Prisma.FolderScalarWhereInput | Prisma.FolderScalarWhereInput[]
491
+ }
492
+
493
+ export type FolderUncheckedUpdateManyWithoutParentNestedInput = {
494
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput> | Prisma.FolderCreateWithoutParentInput[] | Prisma.FolderUncheckedCreateWithoutParentInput[]
495
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutParentInput | Prisma.FolderCreateOrConnectWithoutParentInput[]
496
+ upsert?: Prisma.FolderUpsertWithWhereUniqueWithoutParentInput | Prisma.FolderUpsertWithWhereUniqueWithoutParentInput[]
497
+ createMany?: Prisma.FolderCreateManyParentInputEnvelope
498
+ set?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
499
+ disconnect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
500
+ delete?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
501
+ connect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
502
+ update?: Prisma.FolderUpdateWithWhereUniqueWithoutParentInput | Prisma.FolderUpdateWithWhereUniqueWithoutParentInput[]
503
+ updateMany?: Prisma.FolderUpdateManyWithWhereWithoutParentInput | Prisma.FolderUpdateManyWithWhereWithoutParentInput[]
504
+ deleteMany?: Prisma.FolderScalarWhereInput | Prisma.FolderScalarWhereInput[]
505
+ }
506
+
507
+ export type FolderCreateNestedOneWithoutDocumentsInput = {
508
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutDocumentsInput, Prisma.FolderUncheckedCreateWithoutDocumentsInput>
509
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutDocumentsInput
510
+ connect?: Prisma.FolderWhereUniqueInput
511
+ }
512
+
513
+ export type FolderUpdateOneWithoutDocumentsNestedInput = {
514
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutDocumentsInput, Prisma.FolderUncheckedCreateWithoutDocumentsInput>
515
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutDocumentsInput
516
+ upsert?: Prisma.FolderUpsertWithoutDocumentsInput
517
+ disconnect?: Prisma.FolderWhereInput | boolean
518
+ delete?: Prisma.FolderWhereInput | boolean
519
+ connect?: Prisma.FolderWhereUniqueInput
520
+ update?: Prisma.XOR<Prisma.XOR<Prisma.FolderUpdateToOneWithWhereWithoutDocumentsInput, Prisma.FolderUpdateWithoutDocumentsInput>, Prisma.FolderUncheckedUpdateWithoutDocumentsInput>
521
+ }
522
+
523
+ export type FolderCreateNestedOneWithoutMediaInput = {
524
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutMediaInput, Prisma.FolderUncheckedCreateWithoutMediaInput>
525
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutMediaInput
526
+ connect?: Prisma.FolderWhereUniqueInput
527
+ }
528
+
529
+ export type FolderUpdateOneWithoutMediaNestedInput = {
530
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutMediaInput, Prisma.FolderUncheckedCreateWithoutMediaInput>
531
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutMediaInput
532
+ upsert?: Prisma.FolderUpsertWithoutMediaInput
533
+ disconnect?: Prisma.FolderWhereInput | boolean
534
+ delete?: Prisma.FolderWhereInput | boolean
535
+ connect?: Prisma.FolderWhereUniqueInput
536
+ update?: Prisma.XOR<Prisma.XOR<Prisma.FolderUpdateToOneWithWhereWithoutMediaInput, Prisma.FolderUpdateWithoutMediaInput>, Prisma.FolderUncheckedUpdateWithoutMediaInput>
537
+ }
538
+
539
+ export type FolderCreateWithoutChildrenInput = {
540
+ id?: string
541
+ name: string
542
+ scope: string
543
+ position?: number
544
+ createdAt?: Date | string
545
+ updatedAt?: Date | string
546
+ parent?: Prisma.FolderCreateNestedOneWithoutChildrenInput
547
+ documents?: Prisma.DocumentCreateNestedManyWithoutFolderInput
548
+ media?: Prisma.MediaCreateNestedManyWithoutFolderInput
549
+ }
550
+
551
+ export type FolderUncheckedCreateWithoutChildrenInput = {
552
+ id?: string
553
+ name: string
554
+ scope: string
555
+ parentId?: string | null
556
+ position?: number
557
+ createdAt?: Date | string
558
+ updatedAt?: Date | string
559
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutFolderInput
560
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutFolderInput
561
+ }
562
+
563
+ export type FolderCreateOrConnectWithoutChildrenInput = {
564
+ where: Prisma.FolderWhereUniqueInput
565
+ create: Prisma.XOR<Prisma.FolderCreateWithoutChildrenInput, Prisma.FolderUncheckedCreateWithoutChildrenInput>
566
+ }
567
+
568
+ export type FolderCreateWithoutParentInput = {
569
+ id?: string
570
+ name: string
571
+ scope: string
572
+ position?: number
573
+ createdAt?: Date | string
574
+ updatedAt?: Date | string
575
+ children?: Prisma.FolderCreateNestedManyWithoutParentInput
576
+ documents?: Prisma.DocumentCreateNestedManyWithoutFolderInput
577
+ media?: Prisma.MediaCreateNestedManyWithoutFolderInput
578
+ }
579
+
580
+ export type FolderUncheckedCreateWithoutParentInput = {
581
+ id?: string
582
+ name: string
583
+ scope: string
584
+ position?: number
585
+ createdAt?: Date | string
586
+ updatedAt?: Date | string
587
+ children?: Prisma.FolderUncheckedCreateNestedManyWithoutParentInput
588
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutFolderInput
589
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutFolderInput
590
+ }
591
+
592
+ export type FolderCreateOrConnectWithoutParentInput = {
593
+ where: Prisma.FolderWhereUniqueInput
594
+ create: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput>
595
+ }
596
+
597
+ export type FolderCreateManyParentInputEnvelope = {
598
+ data: Prisma.FolderCreateManyParentInput | Prisma.FolderCreateManyParentInput[]
599
+ skipDuplicates?: boolean
600
+ }
601
+
602
+ export type FolderUpsertWithoutChildrenInput = {
603
+ update: Prisma.XOR<Prisma.FolderUpdateWithoutChildrenInput, Prisma.FolderUncheckedUpdateWithoutChildrenInput>
604
+ create: Prisma.XOR<Prisma.FolderCreateWithoutChildrenInput, Prisma.FolderUncheckedCreateWithoutChildrenInput>
605
+ where?: Prisma.FolderWhereInput
606
+ }
607
+
608
+ export type FolderUpdateToOneWithWhereWithoutChildrenInput = {
609
+ where?: Prisma.FolderWhereInput
610
+ data: Prisma.XOR<Prisma.FolderUpdateWithoutChildrenInput, Prisma.FolderUncheckedUpdateWithoutChildrenInput>
611
+ }
612
+
613
+ export type FolderUpdateWithoutChildrenInput = {
614
+ id?: Prisma.StringFieldUpdateOperationsInput | string
615
+ name?: Prisma.StringFieldUpdateOperationsInput | string
616
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
617
+ position?: Prisma.IntFieldUpdateOperationsInput | number
618
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
619
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
620
+ parent?: Prisma.FolderUpdateOneWithoutChildrenNestedInput
621
+ documents?: Prisma.DocumentUpdateManyWithoutFolderNestedInput
622
+ media?: Prisma.MediaUpdateManyWithoutFolderNestedInput
623
+ }
624
+
625
+ export type FolderUncheckedUpdateWithoutChildrenInput = {
626
+ id?: Prisma.StringFieldUpdateOperationsInput | string
627
+ name?: Prisma.StringFieldUpdateOperationsInput | string
628
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
629
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
630
+ position?: Prisma.IntFieldUpdateOperationsInput | number
631
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
632
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
633
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutFolderNestedInput
634
+ media?: Prisma.MediaUncheckedUpdateManyWithoutFolderNestedInput
635
+ }
636
+
637
+ export type FolderUpsertWithWhereUniqueWithoutParentInput = {
638
+ where: Prisma.FolderWhereUniqueInput
639
+ update: Prisma.XOR<Prisma.FolderUpdateWithoutParentInput, Prisma.FolderUncheckedUpdateWithoutParentInput>
640
+ create: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput>
641
+ }
642
+
643
+ export type FolderUpdateWithWhereUniqueWithoutParentInput = {
644
+ where: Prisma.FolderWhereUniqueInput
645
+ data: Prisma.XOR<Prisma.FolderUpdateWithoutParentInput, Prisma.FolderUncheckedUpdateWithoutParentInput>
646
+ }
647
+
648
+ export type FolderUpdateManyWithWhereWithoutParentInput = {
649
+ where: Prisma.FolderScalarWhereInput
650
+ data: Prisma.XOR<Prisma.FolderUpdateManyMutationInput, Prisma.FolderUncheckedUpdateManyWithoutParentInput>
651
+ }
652
+
653
+ export type FolderScalarWhereInput = {
654
+ AND?: Prisma.FolderScalarWhereInput | Prisma.FolderScalarWhereInput[]
655
+ OR?: Prisma.FolderScalarWhereInput[]
656
+ NOT?: Prisma.FolderScalarWhereInput | Prisma.FolderScalarWhereInput[]
657
+ id?: Prisma.StringFilter<"Folder"> | string
658
+ name?: Prisma.StringFilter<"Folder"> | string
659
+ scope?: Prisma.StringFilter<"Folder"> | string
660
+ parentId?: Prisma.StringNullableFilter<"Folder"> | string | null
661
+ position?: Prisma.IntFilter<"Folder"> | number
662
+ createdAt?: Prisma.DateTimeFilter<"Folder"> | Date | string
663
+ updatedAt?: Prisma.DateTimeFilter<"Folder"> | Date | string
664
+ }
665
+
666
+ export type FolderCreateWithoutDocumentsInput = {
667
+ id?: string
668
+ name: string
669
+ scope: string
670
+ position?: number
671
+ createdAt?: Date | string
672
+ updatedAt?: Date | string
673
+ parent?: Prisma.FolderCreateNestedOneWithoutChildrenInput
674
+ children?: Prisma.FolderCreateNestedManyWithoutParentInput
675
+ media?: Prisma.MediaCreateNestedManyWithoutFolderInput
676
+ }
677
+
678
+ export type FolderUncheckedCreateWithoutDocumentsInput = {
679
+ id?: string
680
+ name: string
681
+ scope: string
682
+ parentId?: string | null
683
+ position?: number
684
+ createdAt?: Date | string
685
+ updatedAt?: Date | string
686
+ children?: Prisma.FolderUncheckedCreateNestedManyWithoutParentInput
687
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutFolderInput
688
+ }
689
+
690
+ export type FolderCreateOrConnectWithoutDocumentsInput = {
691
+ where: Prisma.FolderWhereUniqueInput
692
+ create: Prisma.XOR<Prisma.FolderCreateWithoutDocumentsInput, Prisma.FolderUncheckedCreateWithoutDocumentsInput>
693
+ }
694
+
695
+ export type FolderUpsertWithoutDocumentsInput = {
696
+ update: Prisma.XOR<Prisma.FolderUpdateWithoutDocumentsInput, Prisma.FolderUncheckedUpdateWithoutDocumentsInput>
697
+ create: Prisma.XOR<Prisma.FolderCreateWithoutDocumentsInput, Prisma.FolderUncheckedCreateWithoutDocumentsInput>
698
+ where?: Prisma.FolderWhereInput
699
+ }
700
+
701
+ export type FolderUpdateToOneWithWhereWithoutDocumentsInput = {
702
+ where?: Prisma.FolderWhereInput
703
+ data: Prisma.XOR<Prisma.FolderUpdateWithoutDocumentsInput, Prisma.FolderUncheckedUpdateWithoutDocumentsInput>
704
+ }
705
+
706
+ export type FolderUpdateWithoutDocumentsInput = {
707
+ id?: Prisma.StringFieldUpdateOperationsInput | string
708
+ name?: Prisma.StringFieldUpdateOperationsInput | string
709
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
710
+ position?: Prisma.IntFieldUpdateOperationsInput | number
711
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
712
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
713
+ parent?: Prisma.FolderUpdateOneWithoutChildrenNestedInput
714
+ children?: Prisma.FolderUpdateManyWithoutParentNestedInput
715
+ media?: Prisma.MediaUpdateManyWithoutFolderNestedInput
716
+ }
717
+
718
+ export type FolderUncheckedUpdateWithoutDocumentsInput = {
719
+ id?: Prisma.StringFieldUpdateOperationsInput | string
720
+ name?: Prisma.StringFieldUpdateOperationsInput | string
721
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
722
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
723
+ position?: Prisma.IntFieldUpdateOperationsInput | number
724
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
725
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
726
+ children?: Prisma.FolderUncheckedUpdateManyWithoutParentNestedInput
727
+ media?: Prisma.MediaUncheckedUpdateManyWithoutFolderNestedInput
728
+ }
729
+
730
+ export type FolderCreateWithoutMediaInput = {
731
+ id?: string
732
+ name: string
733
+ scope: string
734
+ position?: number
735
+ createdAt?: Date | string
736
+ updatedAt?: Date | string
737
+ parent?: Prisma.FolderCreateNestedOneWithoutChildrenInput
738
+ children?: Prisma.FolderCreateNestedManyWithoutParentInput
739
+ documents?: Prisma.DocumentCreateNestedManyWithoutFolderInput
740
+ }
741
+
742
+ export type FolderUncheckedCreateWithoutMediaInput = {
743
+ id?: string
744
+ name: string
745
+ scope: string
746
+ parentId?: string | null
747
+ position?: number
748
+ createdAt?: Date | string
749
+ updatedAt?: Date | string
750
+ children?: Prisma.FolderUncheckedCreateNestedManyWithoutParentInput
751
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutFolderInput
752
+ }
753
+
754
+ export type FolderCreateOrConnectWithoutMediaInput = {
755
+ where: Prisma.FolderWhereUniqueInput
756
+ create: Prisma.XOR<Prisma.FolderCreateWithoutMediaInput, Prisma.FolderUncheckedCreateWithoutMediaInput>
757
+ }
758
+
759
+ export type FolderUpsertWithoutMediaInput = {
760
+ update: Prisma.XOR<Prisma.FolderUpdateWithoutMediaInput, Prisma.FolderUncheckedUpdateWithoutMediaInput>
761
+ create: Prisma.XOR<Prisma.FolderCreateWithoutMediaInput, Prisma.FolderUncheckedCreateWithoutMediaInput>
762
+ where?: Prisma.FolderWhereInput
763
+ }
764
+
765
+ export type FolderUpdateToOneWithWhereWithoutMediaInput = {
766
+ where?: Prisma.FolderWhereInput
767
+ data: Prisma.XOR<Prisma.FolderUpdateWithoutMediaInput, Prisma.FolderUncheckedUpdateWithoutMediaInput>
768
+ }
769
+
770
+ export type FolderUpdateWithoutMediaInput = {
771
+ id?: Prisma.StringFieldUpdateOperationsInput | string
772
+ name?: Prisma.StringFieldUpdateOperationsInput | string
773
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
774
+ position?: Prisma.IntFieldUpdateOperationsInput | number
775
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
776
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
777
+ parent?: Prisma.FolderUpdateOneWithoutChildrenNestedInput
778
+ children?: Prisma.FolderUpdateManyWithoutParentNestedInput
779
+ documents?: Prisma.DocumentUpdateManyWithoutFolderNestedInput
780
+ }
781
+
782
+ export type FolderUncheckedUpdateWithoutMediaInput = {
783
+ id?: Prisma.StringFieldUpdateOperationsInput | string
784
+ name?: Prisma.StringFieldUpdateOperationsInput | string
785
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
786
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
787
+ position?: Prisma.IntFieldUpdateOperationsInput | number
788
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
789
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
790
+ children?: Prisma.FolderUncheckedUpdateManyWithoutParentNestedInput
791
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutFolderNestedInput
792
+ }
793
+
794
+ export type FolderCreateManyParentInput = {
795
+ id?: string
796
+ name: string
797
+ scope: string
798
+ position?: number
799
+ createdAt?: Date | string
800
+ updatedAt?: Date | string
801
+ }
802
+
803
+ export type FolderUpdateWithoutParentInput = {
804
+ id?: Prisma.StringFieldUpdateOperationsInput | string
805
+ name?: Prisma.StringFieldUpdateOperationsInput | string
806
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
807
+ position?: Prisma.IntFieldUpdateOperationsInput | number
808
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
809
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
810
+ children?: Prisma.FolderUpdateManyWithoutParentNestedInput
811
+ documents?: Prisma.DocumentUpdateManyWithoutFolderNestedInput
812
+ media?: Prisma.MediaUpdateManyWithoutFolderNestedInput
813
+ }
814
+
815
+ export type FolderUncheckedUpdateWithoutParentInput = {
816
+ id?: Prisma.StringFieldUpdateOperationsInput | string
817
+ name?: Prisma.StringFieldUpdateOperationsInput | string
818
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
819
+ position?: Prisma.IntFieldUpdateOperationsInput | number
820
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
821
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
822
+ children?: Prisma.FolderUncheckedUpdateManyWithoutParentNestedInput
823
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutFolderNestedInput
824
+ media?: Prisma.MediaUncheckedUpdateManyWithoutFolderNestedInput
825
+ }
826
+
827
+ export type FolderUncheckedUpdateManyWithoutParentInput = {
828
+ id?: Prisma.StringFieldUpdateOperationsInput | string
829
+ name?: Prisma.StringFieldUpdateOperationsInput | string
830
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
831
+ position?: Prisma.IntFieldUpdateOperationsInput | number
832
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
833
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
834
+ }
835
+
836
+
837
+ /**
838
+ * Count Type FolderCountOutputType
839
+ */
840
+
841
+ export type FolderCountOutputType = {
842
+ children: number
843
+ documents: number
844
+ media: number
845
+ }
846
+
847
+ export type FolderCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
848
+ children?: boolean | FolderCountOutputTypeCountChildrenArgs
849
+ documents?: boolean | FolderCountOutputTypeCountDocumentsArgs
850
+ media?: boolean | FolderCountOutputTypeCountMediaArgs
851
+ }
852
+
853
+ /**
854
+ * FolderCountOutputType without action
855
+ */
856
+ export type FolderCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
857
+ /**
858
+ * Select specific fields to fetch from the FolderCountOutputType
859
+ */
860
+ select?: Prisma.FolderCountOutputTypeSelect<ExtArgs> | null
861
+ }
862
+
863
+ /**
864
+ * FolderCountOutputType without action
865
+ */
866
+ export type FolderCountOutputTypeCountChildrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
867
+ where?: Prisma.FolderWhereInput
868
+ }
869
+
870
+ /**
871
+ * FolderCountOutputType without action
872
+ */
873
+ export type FolderCountOutputTypeCountDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
874
+ where?: Prisma.DocumentWhereInput
875
+ }
876
+
877
+ /**
878
+ * FolderCountOutputType without action
879
+ */
880
+ export type FolderCountOutputTypeCountMediaArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
881
+ where?: Prisma.MediaWhereInput
882
+ }
883
+
884
+
885
+ export type FolderSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
886
+ id?: boolean
887
+ name?: boolean
888
+ scope?: boolean
889
+ parentId?: boolean
890
+ position?: boolean
891
+ createdAt?: boolean
892
+ updatedAt?: boolean
893
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
894
+ children?: boolean | Prisma.Folder$childrenArgs<ExtArgs>
895
+ documents?: boolean | Prisma.Folder$documentsArgs<ExtArgs>
896
+ media?: boolean | Prisma.Folder$mediaArgs<ExtArgs>
897
+ _count?: boolean | Prisma.FolderCountOutputTypeDefaultArgs<ExtArgs>
898
+ }, ExtArgs["result"]["folder"]>
899
+
900
+ export type FolderSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
901
+ id?: boolean
902
+ name?: boolean
903
+ scope?: boolean
904
+ parentId?: boolean
905
+ position?: boolean
906
+ createdAt?: boolean
907
+ updatedAt?: boolean
908
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
909
+ }, ExtArgs["result"]["folder"]>
910
+
911
+ export type FolderSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
912
+ id?: boolean
913
+ name?: boolean
914
+ scope?: boolean
915
+ parentId?: boolean
916
+ position?: boolean
917
+ createdAt?: boolean
918
+ updatedAt?: boolean
919
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
920
+ }, ExtArgs["result"]["folder"]>
921
+
922
+ export type FolderSelectScalar = {
923
+ id?: boolean
924
+ name?: boolean
925
+ scope?: boolean
926
+ parentId?: boolean
927
+ position?: boolean
928
+ createdAt?: boolean
929
+ updatedAt?: boolean
930
+ }
931
+
932
+ export type FolderOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "scope" | "parentId" | "position" | "createdAt" | "updatedAt", ExtArgs["result"]["folder"]>
933
+ export type FolderInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
934
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
935
+ children?: boolean | Prisma.Folder$childrenArgs<ExtArgs>
936
+ documents?: boolean | Prisma.Folder$documentsArgs<ExtArgs>
937
+ media?: boolean | Prisma.Folder$mediaArgs<ExtArgs>
938
+ _count?: boolean | Prisma.FolderCountOutputTypeDefaultArgs<ExtArgs>
939
+ }
940
+ export type FolderIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
941
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
942
+ }
943
+ export type FolderIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
944
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
945
+ }
946
+
947
+ export type $FolderPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
948
+ name: "Folder"
949
+ objects: {
950
+ parent: Prisma.$FolderPayload<ExtArgs> | null
951
+ children: Prisma.$FolderPayload<ExtArgs>[]
952
+ documents: Prisma.$DocumentPayload<ExtArgs>[]
953
+ media: Prisma.$MediaPayload<ExtArgs>[]
954
+ }
955
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
956
+ id: string
957
+ name: string
958
+ scope: string
959
+ parentId: string | null
960
+ position: number
961
+ createdAt: Date
962
+ updatedAt: Date
963
+ }, ExtArgs["result"]["folder"]>
964
+ composites: {}
965
+ }
966
+
967
+ export type FolderGetPayload<S extends boolean | null | undefined | FolderDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FolderPayload, S>
968
+
969
+ export type FolderCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
970
+ Omit<FolderFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
971
+ select?: FolderCountAggregateInputType | true
972
+ }
973
+
974
+ export interface FolderDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
975
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Folder'], meta: { name: 'Folder' } }
976
+ /**
977
+ * Find zero or one Folder that matches the filter.
978
+ * @param {FolderFindUniqueArgs} args - Arguments to find a Folder
979
+ * @example
980
+ * // Get one Folder
981
+ * const folder = await prisma.folder.findUnique({
982
+ * where: {
983
+ * // ... provide filter here
984
+ * }
985
+ * })
986
+ */
987
+ findUnique<T extends FolderFindUniqueArgs>(args: Prisma.SelectSubset<T, FolderFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
988
+
989
+ /**
990
+ * Find one Folder that matches the filter or throw an error with `error.code='P2025'`
991
+ * if no matches were found.
992
+ * @param {FolderFindUniqueOrThrowArgs} args - Arguments to find a Folder
993
+ * @example
994
+ * // Get one Folder
995
+ * const folder = await prisma.folder.findUniqueOrThrow({
996
+ * where: {
997
+ * // ... provide filter here
998
+ * }
999
+ * })
1000
+ */
1001
+ findUniqueOrThrow<T extends FolderFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FolderFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1002
+
1003
+ /**
1004
+ * Find the first Folder that matches the filter.
1005
+ * Note, that providing `undefined` is treated as the value not being there.
1006
+ * Read more here: https://pris.ly/d/null-undefined
1007
+ * @param {FolderFindFirstArgs} args - Arguments to find a Folder
1008
+ * @example
1009
+ * // Get one Folder
1010
+ * const folder = await prisma.folder.findFirst({
1011
+ * where: {
1012
+ * // ... provide filter here
1013
+ * }
1014
+ * })
1015
+ */
1016
+ findFirst<T extends FolderFindFirstArgs>(args?: Prisma.SelectSubset<T, FolderFindFirstArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1017
+
1018
+ /**
1019
+ * Find the first Folder that matches the filter or
1020
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1021
+ * Note, that providing `undefined` is treated as the value not being there.
1022
+ * Read more here: https://pris.ly/d/null-undefined
1023
+ * @param {FolderFindFirstOrThrowArgs} args - Arguments to find a Folder
1024
+ * @example
1025
+ * // Get one Folder
1026
+ * const folder = await prisma.folder.findFirstOrThrow({
1027
+ * where: {
1028
+ * // ... provide filter here
1029
+ * }
1030
+ * })
1031
+ */
1032
+ findFirstOrThrow<T extends FolderFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FolderFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1033
+
1034
+ /**
1035
+ * Find zero or more Folders that matches the filter.
1036
+ * Note, that providing `undefined` is treated as the value not being there.
1037
+ * Read more here: https://pris.ly/d/null-undefined
1038
+ * @param {FolderFindManyArgs} args - Arguments to filter and select certain fields only.
1039
+ * @example
1040
+ * // Get all Folders
1041
+ * const folders = await prisma.folder.findMany()
1042
+ *
1043
+ * // Get first 10 Folders
1044
+ * const folders = await prisma.folder.findMany({ take: 10 })
1045
+ *
1046
+ * // Only select the `id`
1047
+ * const folderWithIdOnly = await prisma.folder.findMany({ select: { id: true } })
1048
+ *
1049
+ */
1050
+ findMany<T extends FolderFindManyArgs>(args?: Prisma.SelectSubset<T, FolderFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1051
+
1052
+ /**
1053
+ * Create a Folder.
1054
+ * @param {FolderCreateArgs} args - Arguments to create a Folder.
1055
+ * @example
1056
+ * // Create one Folder
1057
+ * const Folder = await prisma.folder.create({
1058
+ * data: {
1059
+ * // ... data to create a Folder
1060
+ * }
1061
+ * })
1062
+ *
1063
+ */
1064
+ create<T extends FolderCreateArgs>(args: Prisma.SelectSubset<T, FolderCreateArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1065
+
1066
+ /**
1067
+ * Create many Folders.
1068
+ * @param {FolderCreateManyArgs} args - Arguments to create many Folders.
1069
+ * @example
1070
+ * // Create many Folders
1071
+ * const folder = await prisma.folder.createMany({
1072
+ * data: [
1073
+ * // ... provide data here
1074
+ * ]
1075
+ * })
1076
+ *
1077
+ */
1078
+ createMany<T extends FolderCreateManyArgs>(args?: Prisma.SelectSubset<T, FolderCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1079
+
1080
+ /**
1081
+ * Create many Folders and returns the data saved in the database.
1082
+ * @param {FolderCreateManyAndReturnArgs} args - Arguments to create many Folders.
1083
+ * @example
1084
+ * // Create many Folders
1085
+ * const folder = await prisma.folder.createManyAndReturn({
1086
+ * data: [
1087
+ * // ... provide data here
1088
+ * ]
1089
+ * })
1090
+ *
1091
+ * // Create many Folders and only return the `id`
1092
+ * const folderWithIdOnly = await prisma.folder.createManyAndReturn({
1093
+ * select: { id: true },
1094
+ * data: [
1095
+ * // ... provide data here
1096
+ * ]
1097
+ * })
1098
+ * Note, that providing `undefined` is treated as the value not being there.
1099
+ * Read more here: https://pris.ly/d/null-undefined
1100
+ *
1101
+ */
1102
+ createManyAndReturn<T extends FolderCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FolderCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1103
+
1104
+ /**
1105
+ * Delete a Folder.
1106
+ * @param {FolderDeleteArgs} args - Arguments to delete one Folder.
1107
+ * @example
1108
+ * // Delete one Folder
1109
+ * const Folder = await prisma.folder.delete({
1110
+ * where: {
1111
+ * // ... filter to delete one Folder
1112
+ * }
1113
+ * })
1114
+ *
1115
+ */
1116
+ delete<T extends FolderDeleteArgs>(args: Prisma.SelectSubset<T, FolderDeleteArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1117
+
1118
+ /**
1119
+ * Update one Folder.
1120
+ * @param {FolderUpdateArgs} args - Arguments to update one Folder.
1121
+ * @example
1122
+ * // Update one Folder
1123
+ * const folder = await prisma.folder.update({
1124
+ * where: {
1125
+ * // ... provide filter here
1126
+ * },
1127
+ * data: {
1128
+ * // ... provide data here
1129
+ * }
1130
+ * })
1131
+ *
1132
+ */
1133
+ update<T extends FolderUpdateArgs>(args: Prisma.SelectSubset<T, FolderUpdateArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1134
+
1135
+ /**
1136
+ * Delete zero or more Folders.
1137
+ * @param {FolderDeleteManyArgs} args - Arguments to filter Folders to delete.
1138
+ * @example
1139
+ * // Delete a few Folders
1140
+ * const { count } = await prisma.folder.deleteMany({
1141
+ * where: {
1142
+ * // ... provide filter here
1143
+ * }
1144
+ * })
1145
+ *
1146
+ */
1147
+ deleteMany<T extends FolderDeleteManyArgs>(args?: Prisma.SelectSubset<T, FolderDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1148
+
1149
+ /**
1150
+ * Update zero or more Folders.
1151
+ * Note, that providing `undefined` is treated as the value not being there.
1152
+ * Read more here: https://pris.ly/d/null-undefined
1153
+ * @param {FolderUpdateManyArgs} args - Arguments to update one or more rows.
1154
+ * @example
1155
+ * // Update many Folders
1156
+ * const folder = await prisma.folder.updateMany({
1157
+ * where: {
1158
+ * // ... provide filter here
1159
+ * },
1160
+ * data: {
1161
+ * // ... provide data here
1162
+ * }
1163
+ * })
1164
+ *
1165
+ */
1166
+ updateMany<T extends FolderUpdateManyArgs>(args: Prisma.SelectSubset<T, FolderUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1167
+
1168
+ /**
1169
+ * Update zero or more Folders and returns the data updated in the database.
1170
+ * @param {FolderUpdateManyAndReturnArgs} args - Arguments to update many Folders.
1171
+ * @example
1172
+ * // Update many Folders
1173
+ * const folder = await prisma.folder.updateManyAndReturn({
1174
+ * where: {
1175
+ * // ... provide filter here
1176
+ * },
1177
+ * data: [
1178
+ * // ... provide data here
1179
+ * ]
1180
+ * })
1181
+ *
1182
+ * // Update zero or more Folders and only return the `id`
1183
+ * const folderWithIdOnly = await prisma.folder.updateManyAndReturn({
1184
+ * select: { id: true },
1185
+ * where: {
1186
+ * // ... provide filter here
1187
+ * },
1188
+ * data: [
1189
+ * // ... provide data here
1190
+ * ]
1191
+ * })
1192
+ * Note, that providing `undefined` is treated as the value not being there.
1193
+ * Read more here: https://pris.ly/d/null-undefined
1194
+ *
1195
+ */
1196
+ updateManyAndReturn<T extends FolderUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FolderUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1197
+
1198
+ /**
1199
+ * Create or update one Folder.
1200
+ * @param {FolderUpsertArgs} args - Arguments to update or create a Folder.
1201
+ * @example
1202
+ * // Update or create a Folder
1203
+ * const folder = await prisma.folder.upsert({
1204
+ * create: {
1205
+ * // ... data to create a Folder
1206
+ * },
1207
+ * update: {
1208
+ * // ... in case it already exists, update
1209
+ * },
1210
+ * where: {
1211
+ * // ... the filter for the Folder we want to update
1212
+ * }
1213
+ * })
1214
+ */
1215
+ upsert<T extends FolderUpsertArgs>(args: Prisma.SelectSubset<T, FolderUpsertArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1216
+
1217
+
1218
+ /**
1219
+ * Count the number of Folders.
1220
+ * Note, that providing `undefined` is treated as the value not being there.
1221
+ * Read more here: https://pris.ly/d/null-undefined
1222
+ * @param {FolderCountArgs} args - Arguments to filter Folders to count.
1223
+ * @example
1224
+ * // Count the number of Folders
1225
+ * const count = await prisma.folder.count({
1226
+ * where: {
1227
+ * // ... the filter for the Folders we want to count
1228
+ * }
1229
+ * })
1230
+ **/
1231
+ count<T extends FolderCountArgs>(
1232
+ args?: Prisma.Subset<T, FolderCountArgs>,
1233
+ ): Prisma.PrismaPromise<
1234
+ T extends runtime.Types.Utils.Record<'select', any>
1235
+ ? T['select'] extends true
1236
+ ? number
1237
+ : Prisma.GetScalarType<T['select'], FolderCountAggregateOutputType>
1238
+ : number
1239
+ >
1240
+
1241
+ /**
1242
+ * Allows you to perform aggregations operations on a Folder.
1243
+ * Note, that providing `undefined` is treated as the value not being there.
1244
+ * Read more here: https://pris.ly/d/null-undefined
1245
+ * @param {FolderAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1246
+ * @example
1247
+ * // Ordered by age ascending
1248
+ * // Where email contains prisma.io
1249
+ * // Limited to the 10 users
1250
+ * const aggregations = await prisma.user.aggregate({
1251
+ * _avg: {
1252
+ * age: true,
1253
+ * },
1254
+ * where: {
1255
+ * email: {
1256
+ * contains: "prisma.io",
1257
+ * },
1258
+ * },
1259
+ * orderBy: {
1260
+ * age: "asc",
1261
+ * },
1262
+ * take: 10,
1263
+ * })
1264
+ **/
1265
+ aggregate<T extends FolderAggregateArgs>(args: Prisma.Subset<T, FolderAggregateArgs>): Prisma.PrismaPromise<GetFolderAggregateType<T>>
1266
+
1267
+ /**
1268
+ * Group by Folder.
1269
+ * Note, that providing `undefined` is treated as the value not being there.
1270
+ * Read more here: https://pris.ly/d/null-undefined
1271
+ * @param {FolderGroupByArgs} args - Group by arguments.
1272
+ * @example
1273
+ * // Group by city, order by createdAt, get count
1274
+ * const result = await prisma.user.groupBy({
1275
+ * by: ['city', 'createdAt'],
1276
+ * orderBy: {
1277
+ * createdAt: true
1278
+ * },
1279
+ * _count: {
1280
+ * _all: true
1281
+ * },
1282
+ * })
1283
+ *
1284
+ **/
1285
+ groupBy<
1286
+ T extends FolderGroupByArgs,
1287
+ HasSelectOrTake extends Prisma.Or<
1288
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1289
+ Prisma.Extends<'take', Prisma.Keys<T>>
1290
+ >,
1291
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1292
+ ? { orderBy: FolderGroupByArgs['orderBy'] }
1293
+ : { orderBy?: FolderGroupByArgs['orderBy'] },
1294
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1295
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1296
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1297
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1298
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1299
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1300
+ InputErrors extends ByEmpty extends Prisma.True
1301
+ ? `Error: "by" must not be empty.`
1302
+ : HavingValid extends Prisma.False
1303
+ ? {
1304
+ [P in HavingFields]: P extends ByFields
1305
+ ? never
1306
+ : P extends string
1307
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1308
+ : [
1309
+ Error,
1310
+ 'Field ',
1311
+ P,
1312
+ ` in "having" needs to be provided in "by"`,
1313
+ ]
1314
+ }[HavingFields]
1315
+ : 'take' extends Prisma.Keys<T>
1316
+ ? 'orderBy' extends Prisma.Keys<T>
1317
+ ? ByValid extends Prisma.True
1318
+ ? {}
1319
+ : {
1320
+ [P in OrderFields]: P extends ByFields
1321
+ ? never
1322
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1323
+ }[OrderFields]
1324
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1325
+ : 'skip' extends Prisma.Keys<T>
1326
+ ? 'orderBy' extends Prisma.Keys<T>
1327
+ ? ByValid extends Prisma.True
1328
+ ? {}
1329
+ : {
1330
+ [P in OrderFields]: P extends ByFields
1331
+ ? never
1332
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1333
+ }[OrderFields]
1334
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1335
+ : ByValid extends Prisma.True
1336
+ ? {}
1337
+ : {
1338
+ [P in OrderFields]: P extends ByFields
1339
+ ? never
1340
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1341
+ }[OrderFields]
1342
+ >(args: Prisma.SubsetIntersection<T, FolderGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFolderGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1343
+ /**
1344
+ * Fields of the Folder model
1345
+ */
1346
+ readonly fields: FolderFieldRefs;
1347
+ }
1348
+
1349
+ /**
1350
+ * The delegate class that acts as a "Promise-like" for Folder.
1351
+ * Why is this prefixed with `Prisma__`?
1352
+ * Because we want to prevent naming conflicts as mentioned in
1353
+ * https://github.com/prisma/prisma-client-js/issues/707
1354
+ */
1355
+ export interface Prisma__FolderClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1356
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1357
+ parent<T extends Prisma.Folder$parentArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Folder$parentArgs<ExtArgs>>): Prisma.Prisma__FolderClient<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1358
+ children<T extends Prisma.Folder$childrenArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Folder$childrenArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1359
+ documents<T extends Prisma.Folder$documentsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Folder$documentsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$DocumentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1360
+ media<T extends Prisma.Folder$mediaArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Folder$mediaArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MediaPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1361
+ /**
1362
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1363
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1364
+ * @param onrejected The callback to execute when the Promise is rejected.
1365
+ * @returns A Promise for the completion of which ever callback is executed.
1366
+ */
1367
+ 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>
1368
+ /**
1369
+ * Attaches a callback for only the rejection of the Promise.
1370
+ * @param onrejected The callback to execute when the Promise is rejected.
1371
+ * @returns A Promise for the completion of the callback.
1372
+ */
1373
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1374
+ /**
1375
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1376
+ * resolved value cannot be modified from the callback.
1377
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1378
+ * @returns A Promise for the completion of the callback.
1379
+ */
1380
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1381
+ }
1382
+
1383
+
1384
+
1385
+
1386
+ /**
1387
+ * Fields of the Folder model
1388
+ */
1389
+ export interface FolderFieldRefs {
1390
+ readonly id: Prisma.FieldRef<"Folder", 'String'>
1391
+ readonly name: Prisma.FieldRef<"Folder", 'String'>
1392
+ readonly scope: Prisma.FieldRef<"Folder", 'String'>
1393
+ readonly parentId: Prisma.FieldRef<"Folder", 'String'>
1394
+ readonly position: Prisma.FieldRef<"Folder", 'Int'>
1395
+ readonly createdAt: Prisma.FieldRef<"Folder", 'DateTime'>
1396
+ readonly updatedAt: Prisma.FieldRef<"Folder", 'DateTime'>
1397
+ }
1398
+
1399
+
1400
+ // Custom InputTypes
1401
+ /**
1402
+ * Folder findUnique
1403
+ */
1404
+ export type FolderFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1405
+ /**
1406
+ * Select specific fields to fetch from the Folder
1407
+ */
1408
+ select?: Prisma.FolderSelect<ExtArgs> | null
1409
+ /**
1410
+ * Omit specific fields from the Folder
1411
+ */
1412
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1413
+ /**
1414
+ * Choose, which related nodes to fetch as well
1415
+ */
1416
+ include?: Prisma.FolderInclude<ExtArgs> | null
1417
+ /**
1418
+ * Filter, which Folder to fetch.
1419
+ */
1420
+ where: Prisma.FolderWhereUniqueInput
1421
+ }
1422
+
1423
+ /**
1424
+ * Folder findUniqueOrThrow
1425
+ */
1426
+ export type FolderFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1427
+ /**
1428
+ * Select specific fields to fetch from the Folder
1429
+ */
1430
+ select?: Prisma.FolderSelect<ExtArgs> | null
1431
+ /**
1432
+ * Omit specific fields from the Folder
1433
+ */
1434
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1435
+ /**
1436
+ * Choose, which related nodes to fetch as well
1437
+ */
1438
+ include?: Prisma.FolderInclude<ExtArgs> | null
1439
+ /**
1440
+ * Filter, which Folder to fetch.
1441
+ */
1442
+ where: Prisma.FolderWhereUniqueInput
1443
+ }
1444
+
1445
+ /**
1446
+ * Folder findFirst
1447
+ */
1448
+ export type FolderFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1449
+ /**
1450
+ * Select specific fields to fetch from the Folder
1451
+ */
1452
+ select?: Prisma.FolderSelect<ExtArgs> | null
1453
+ /**
1454
+ * Omit specific fields from the Folder
1455
+ */
1456
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1457
+ /**
1458
+ * Choose, which related nodes to fetch as well
1459
+ */
1460
+ include?: Prisma.FolderInclude<ExtArgs> | null
1461
+ /**
1462
+ * Filter, which Folder to fetch.
1463
+ */
1464
+ where?: Prisma.FolderWhereInput
1465
+ /**
1466
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1467
+ *
1468
+ * Determine the order of Folders to fetch.
1469
+ */
1470
+ orderBy?: Prisma.FolderOrderByWithRelationInput | Prisma.FolderOrderByWithRelationInput[]
1471
+ /**
1472
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1473
+ *
1474
+ * Sets the position for searching for Folders.
1475
+ */
1476
+ cursor?: Prisma.FolderWhereUniqueInput
1477
+ /**
1478
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1479
+ *
1480
+ * Take `±n` Folders from the position of the cursor.
1481
+ */
1482
+ take?: number
1483
+ /**
1484
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1485
+ *
1486
+ * Skip the first `n` Folders.
1487
+ */
1488
+ skip?: number
1489
+ /**
1490
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1491
+ *
1492
+ * Filter by unique combinations of Folders.
1493
+ */
1494
+ distinct?: Prisma.FolderScalarFieldEnum | Prisma.FolderScalarFieldEnum[]
1495
+ }
1496
+
1497
+ /**
1498
+ * Folder findFirstOrThrow
1499
+ */
1500
+ export type FolderFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1501
+ /**
1502
+ * Select specific fields to fetch from the Folder
1503
+ */
1504
+ select?: Prisma.FolderSelect<ExtArgs> | null
1505
+ /**
1506
+ * Omit specific fields from the Folder
1507
+ */
1508
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1509
+ /**
1510
+ * Choose, which related nodes to fetch as well
1511
+ */
1512
+ include?: Prisma.FolderInclude<ExtArgs> | null
1513
+ /**
1514
+ * Filter, which Folder to fetch.
1515
+ */
1516
+ where?: Prisma.FolderWhereInput
1517
+ /**
1518
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1519
+ *
1520
+ * Determine the order of Folders to fetch.
1521
+ */
1522
+ orderBy?: Prisma.FolderOrderByWithRelationInput | Prisma.FolderOrderByWithRelationInput[]
1523
+ /**
1524
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1525
+ *
1526
+ * Sets the position for searching for Folders.
1527
+ */
1528
+ cursor?: Prisma.FolderWhereUniqueInput
1529
+ /**
1530
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1531
+ *
1532
+ * Take `±n` Folders from the position of the cursor.
1533
+ */
1534
+ take?: number
1535
+ /**
1536
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1537
+ *
1538
+ * Skip the first `n` Folders.
1539
+ */
1540
+ skip?: number
1541
+ /**
1542
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1543
+ *
1544
+ * Filter by unique combinations of Folders.
1545
+ */
1546
+ distinct?: Prisma.FolderScalarFieldEnum | Prisma.FolderScalarFieldEnum[]
1547
+ }
1548
+
1549
+ /**
1550
+ * Folder findMany
1551
+ */
1552
+ export type FolderFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1553
+ /**
1554
+ * Select specific fields to fetch from the Folder
1555
+ */
1556
+ select?: Prisma.FolderSelect<ExtArgs> | null
1557
+ /**
1558
+ * Omit specific fields from the Folder
1559
+ */
1560
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1561
+ /**
1562
+ * Choose, which related nodes to fetch as well
1563
+ */
1564
+ include?: Prisma.FolderInclude<ExtArgs> | null
1565
+ /**
1566
+ * Filter, which Folders to fetch.
1567
+ */
1568
+ where?: Prisma.FolderWhereInput
1569
+ /**
1570
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1571
+ *
1572
+ * Determine the order of Folders to fetch.
1573
+ */
1574
+ orderBy?: Prisma.FolderOrderByWithRelationInput | Prisma.FolderOrderByWithRelationInput[]
1575
+ /**
1576
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1577
+ *
1578
+ * Sets the position for listing Folders.
1579
+ */
1580
+ cursor?: Prisma.FolderWhereUniqueInput
1581
+ /**
1582
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1583
+ *
1584
+ * Take `±n` Folders from the position of the cursor.
1585
+ */
1586
+ take?: number
1587
+ /**
1588
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1589
+ *
1590
+ * Skip the first `n` Folders.
1591
+ */
1592
+ skip?: number
1593
+ /**
1594
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1595
+ *
1596
+ * Filter by unique combinations of Folders.
1597
+ */
1598
+ distinct?: Prisma.FolderScalarFieldEnum | Prisma.FolderScalarFieldEnum[]
1599
+ }
1600
+
1601
+ /**
1602
+ * Folder create
1603
+ */
1604
+ export type FolderCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1605
+ /**
1606
+ * Select specific fields to fetch from the Folder
1607
+ */
1608
+ select?: Prisma.FolderSelect<ExtArgs> | null
1609
+ /**
1610
+ * Omit specific fields from the Folder
1611
+ */
1612
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1613
+ /**
1614
+ * Choose, which related nodes to fetch as well
1615
+ */
1616
+ include?: Prisma.FolderInclude<ExtArgs> | null
1617
+ /**
1618
+ * The data needed to create a Folder.
1619
+ */
1620
+ data: Prisma.XOR<Prisma.FolderCreateInput, Prisma.FolderUncheckedCreateInput>
1621
+ }
1622
+
1623
+ /**
1624
+ * Folder createMany
1625
+ */
1626
+ export type FolderCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1627
+ /**
1628
+ * The data used to create many Folders.
1629
+ */
1630
+ data: Prisma.FolderCreateManyInput | Prisma.FolderCreateManyInput[]
1631
+ skipDuplicates?: boolean
1632
+ }
1633
+
1634
+ /**
1635
+ * Folder createManyAndReturn
1636
+ */
1637
+ export type FolderCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1638
+ /**
1639
+ * Select specific fields to fetch from the Folder
1640
+ */
1641
+ select?: Prisma.FolderSelectCreateManyAndReturn<ExtArgs> | null
1642
+ /**
1643
+ * Omit specific fields from the Folder
1644
+ */
1645
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1646
+ /**
1647
+ * The data used to create many Folders.
1648
+ */
1649
+ data: Prisma.FolderCreateManyInput | Prisma.FolderCreateManyInput[]
1650
+ skipDuplicates?: boolean
1651
+ /**
1652
+ * Choose, which related nodes to fetch as well
1653
+ */
1654
+ include?: Prisma.FolderIncludeCreateManyAndReturn<ExtArgs> | null
1655
+ }
1656
+
1657
+ /**
1658
+ * Folder update
1659
+ */
1660
+ export type FolderUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1661
+ /**
1662
+ * Select specific fields to fetch from the Folder
1663
+ */
1664
+ select?: Prisma.FolderSelect<ExtArgs> | null
1665
+ /**
1666
+ * Omit specific fields from the Folder
1667
+ */
1668
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1669
+ /**
1670
+ * Choose, which related nodes to fetch as well
1671
+ */
1672
+ include?: Prisma.FolderInclude<ExtArgs> | null
1673
+ /**
1674
+ * The data needed to update a Folder.
1675
+ */
1676
+ data: Prisma.XOR<Prisma.FolderUpdateInput, Prisma.FolderUncheckedUpdateInput>
1677
+ /**
1678
+ * Choose, which Folder to update.
1679
+ */
1680
+ where: Prisma.FolderWhereUniqueInput
1681
+ }
1682
+
1683
+ /**
1684
+ * Folder updateMany
1685
+ */
1686
+ export type FolderUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1687
+ /**
1688
+ * The data used to update Folders.
1689
+ */
1690
+ data: Prisma.XOR<Prisma.FolderUpdateManyMutationInput, Prisma.FolderUncheckedUpdateManyInput>
1691
+ /**
1692
+ * Filter which Folders to update
1693
+ */
1694
+ where?: Prisma.FolderWhereInput
1695
+ /**
1696
+ * Limit how many Folders to update.
1697
+ */
1698
+ limit?: number
1699
+ }
1700
+
1701
+ /**
1702
+ * Folder updateManyAndReturn
1703
+ */
1704
+ export type FolderUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1705
+ /**
1706
+ * Select specific fields to fetch from the Folder
1707
+ */
1708
+ select?: Prisma.FolderSelectUpdateManyAndReturn<ExtArgs> | null
1709
+ /**
1710
+ * Omit specific fields from the Folder
1711
+ */
1712
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1713
+ /**
1714
+ * The data used to update Folders.
1715
+ */
1716
+ data: Prisma.XOR<Prisma.FolderUpdateManyMutationInput, Prisma.FolderUncheckedUpdateManyInput>
1717
+ /**
1718
+ * Filter which Folders to update
1719
+ */
1720
+ where?: Prisma.FolderWhereInput
1721
+ /**
1722
+ * Limit how many Folders to update.
1723
+ */
1724
+ limit?: number
1725
+ /**
1726
+ * Choose, which related nodes to fetch as well
1727
+ */
1728
+ include?: Prisma.FolderIncludeUpdateManyAndReturn<ExtArgs> | null
1729
+ }
1730
+
1731
+ /**
1732
+ * Folder upsert
1733
+ */
1734
+ export type FolderUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1735
+ /**
1736
+ * Select specific fields to fetch from the Folder
1737
+ */
1738
+ select?: Prisma.FolderSelect<ExtArgs> | null
1739
+ /**
1740
+ * Omit specific fields from the Folder
1741
+ */
1742
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1743
+ /**
1744
+ * Choose, which related nodes to fetch as well
1745
+ */
1746
+ include?: Prisma.FolderInclude<ExtArgs> | null
1747
+ /**
1748
+ * The filter to search for the Folder to update in case it exists.
1749
+ */
1750
+ where: Prisma.FolderWhereUniqueInput
1751
+ /**
1752
+ * In case the Folder found by the `where` argument doesn't exist, create a new Folder with this data.
1753
+ */
1754
+ create: Prisma.XOR<Prisma.FolderCreateInput, Prisma.FolderUncheckedCreateInput>
1755
+ /**
1756
+ * In case the Folder was found with the provided `where` argument, update it with this data.
1757
+ */
1758
+ update: Prisma.XOR<Prisma.FolderUpdateInput, Prisma.FolderUncheckedUpdateInput>
1759
+ }
1760
+
1761
+ /**
1762
+ * Folder delete
1763
+ */
1764
+ export type FolderDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1765
+ /**
1766
+ * Select specific fields to fetch from the Folder
1767
+ */
1768
+ select?: Prisma.FolderSelect<ExtArgs> | null
1769
+ /**
1770
+ * Omit specific fields from the Folder
1771
+ */
1772
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1773
+ /**
1774
+ * Choose, which related nodes to fetch as well
1775
+ */
1776
+ include?: Prisma.FolderInclude<ExtArgs> | null
1777
+ /**
1778
+ * Filter which Folder to delete.
1779
+ */
1780
+ where: Prisma.FolderWhereUniqueInput
1781
+ }
1782
+
1783
+ /**
1784
+ * Folder deleteMany
1785
+ */
1786
+ export type FolderDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1787
+ /**
1788
+ * Filter which Folders to delete
1789
+ */
1790
+ where?: Prisma.FolderWhereInput
1791
+ /**
1792
+ * Limit how many Folders to delete.
1793
+ */
1794
+ limit?: number
1795
+ }
1796
+
1797
+ /**
1798
+ * Folder.parent
1799
+ */
1800
+ export type Folder$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1801
+ /**
1802
+ * Select specific fields to fetch from the Folder
1803
+ */
1804
+ select?: Prisma.FolderSelect<ExtArgs> | null
1805
+ /**
1806
+ * Omit specific fields from the Folder
1807
+ */
1808
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1809
+ /**
1810
+ * Choose, which related nodes to fetch as well
1811
+ */
1812
+ include?: Prisma.FolderInclude<ExtArgs> | null
1813
+ where?: Prisma.FolderWhereInput
1814
+ }
1815
+
1816
+ /**
1817
+ * Folder.children
1818
+ */
1819
+ export type Folder$childrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1820
+ /**
1821
+ * Select specific fields to fetch from the Folder
1822
+ */
1823
+ select?: Prisma.FolderSelect<ExtArgs> | null
1824
+ /**
1825
+ * Omit specific fields from the Folder
1826
+ */
1827
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1828
+ /**
1829
+ * Choose, which related nodes to fetch as well
1830
+ */
1831
+ include?: Prisma.FolderInclude<ExtArgs> | null
1832
+ where?: Prisma.FolderWhereInput
1833
+ orderBy?: Prisma.FolderOrderByWithRelationInput | Prisma.FolderOrderByWithRelationInput[]
1834
+ cursor?: Prisma.FolderWhereUniqueInput
1835
+ take?: number
1836
+ skip?: number
1837
+ distinct?: Prisma.FolderScalarFieldEnum | Prisma.FolderScalarFieldEnum[]
1838
+ }
1839
+
1840
+ /**
1841
+ * Folder.documents
1842
+ */
1843
+ export type Folder$documentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1844
+ /**
1845
+ * Select specific fields to fetch from the Document
1846
+ */
1847
+ select?: Prisma.DocumentSelect<ExtArgs> | null
1848
+ /**
1849
+ * Omit specific fields from the Document
1850
+ */
1851
+ omit?: Prisma.DocumentOmit<ExtArgs> | null
1852
+ /**
1853
+ * Choose, which related nodes to fetch as well
1854
+ */
1855
+ include?: Prisma.DocumentInclude<ExtArgs> | null
1856
+ where?: Prisma.DocumentWhereInput
1857
+ orderBy?: Prisma.DocumentOrderByWithRelationInput | Prisma.DocumentOrderByWithRelationInput[]
1858
+ cursor?: Prisma.DocumentWhereUniqueInput
1859
+ take?: number
1860
+ skip?: number
1861
+ distinct?: Prisma.DocumentScalarFieldEnum | Prisma.DocumentScalarFieldEnum[]
1862
+ }
1863
+
1864
+ /**
1865
+ * Folder.media
1866
+ */
1867
+ export type Folder$mediaArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1868
+ /**
1869
+ * Select specific fields to fetch from the Media
1870
+ */
1871
+ select?: Prisma.MediaSelect<ExtArgs> | null
1872
+ /**
1873
+ * Omit specific fields from the Media
1874
+ */
1875
+ omit?: Prisma.MediaOmit<ExtArgs> | null
1876
+ /**
1877
+ * Choose, which related nodes to fetch as well
1878
+ */
1879
+ include?: Prisma.MediaInclude<ExtArgs> | null
1880
+ where?: Prisma.MediaWhereInput
1881
+ orderBy?: Prisma.MediaOrderByWithRelationInput | Prisma.MediaOrderByWithRelationInput[]
1882
+ cursor?: Prisma.MediaWhereUniqueInput
1883
+ take?: number
1884
+ skip?: number
1885
+ distinct?: Prisma.MediaScalarFieldEnum | Prisma.MediaScalarFieldEnum[]
1886
+ }
1887
+
1888
+ /**
1889
+ * Folder without action
1890
+ */
1891
+ export type FolderDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1892
+ /**
1893
+ * Select specific fields to fetch from the Folder
1894
+ */
1895
+ select?: Prisma.FolderSelect<ExtArgs> | null
1896
+ /**
1897
+ * Omit specific fields from the Folder
1898
+ */
1899
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1900
+ /**
1901
+ * Choose, which related nodes to fetch as well
1902
+ */
1903
+ include?: Prisma.FolderInclude<ExtArgs> | null
1904
+ }