@actuate-media/cms-core 0.90.1 → 0.91.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 (88) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/dist/actions.d.ts +31 -1
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +76 -21
  5. package/dist/actions.js.map +1 -1
  6. package/dist/api/route-helpers.d.ts +4 -1
  7. package/dist/api/route-helpers.d.ts.map +1 -1
  8. package/dist/api/route-helpers.js +2 -2
  9. package/dist/api/route-helpers.js.map +1 -1
  10. package/dist/api/routes/documents.d.ts.map +1 -1
  11. package/dist/api/routes/documents.js +4 -1
  12. package/dist/api/routes/documents.js.map +1 -1
  13. package/dist/api/routes/media.d.ts.map +1 -1
  14. package/dist/api/routes/media.js +10 -0
  15. package/dist/api/routes/media.js.map +1 -1
  16. package/dist/api/routes/url-resolution.d.ts.map +1 -1
  17. package/dist/api/routes/url-resolution.js +4 -1
  18. package/dist/api/routes/url-resolution.js.map +1 -1
  19. package/dist/config/index.d.ts +16 -0
  20. package/dist/config/index.d.ts.map +1 -1
  21. package/dist/config/index.js +59 -2
  22. package/dist/config/index.js.map +1 -1
  23. package/dist/config/runtime.d.ts +8 -0
  24. package/dist/config/runtime.d.ts.map +1 -1
  25. package/dist/config/runtime.js.map +1 -1
  26. package/dist/config/types.d.ts +35 -4
  27. package/dist/config/types.d.ts.map +1 -1
  28. package/dist/index.d.ts +3 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +1 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/media/usage-sync.d.ts +37 -0
  33. package/dist/media/usage-sync.d.ts.map +1 -0
  34. package/dist/media/usage-sync.js +234 -0
  35. package/dist/media/usage-sync.js.map +1 -0
  36. package/dist/realtime/comments.d.ts +1 -1
  37. package/dist/realtime/comments.js +1 -1
  38. package/dist/realtime/notifications.d.ts +1 -1
  39. package/dist/realtime/notifications.js +1 -1
  40. package/dist/realtime/persistence.d.ts +1 -1
  41. package/dist/search/index.d.ts.map +1 -1
  42. package/dist/search/index.js +58 -35
  43. package/dist/search/index.js.map +1 -1
  44. package/generated/browser.ts +229 -0
  45. package/generated/client.ts +253 -0
  46. package/generated/commonInputTypes.ts +1024 -0
  47. package/generated/enums.ts +211 -0
  48. package/generated/internal/class.ts +547 -0
  49. package/generated/internal/prismaNamespace.ts +4596 -0
  50. package/generated/internal/prismaNamespaceBrowser.ts +1188 -0
  51. package/generated/models/AiCrawlerHit.ts +1275 -0
  52. package/generated/models/ApiKey.ts +1559 -0
  53. package/generated/models/ApiRequestMetric.ts +1390 -0
  54. package/generated/models/AuditLog.ts +1215 -0
  55. package/generated/models/BackupRecord.ts +1259 -0
  56. package/generated/models/ContentIssue.ts +1496 -0
  57. package/generated/models/ContentLock.ts +1481 -0
  58. package/generated/models/ContentTemplate.ts +1425 -0
  59. package/generated/models/Document.ts +3486 -0
  60. package/generated/models/Folder.ts +1905 -0
  61. package/generated/models/FormSchemaVersion.ts +1265 -0
  62. package/generated/models/FormSubmission.ts +2105 -0
  63. package/generated/models/FormSubmissionFile.ts +1615 -0
  64. package/generated/models/FormWebhook.ts +1371 -0
  65. package/generated/models/InAppNotification.ts +1466 -0
  66. package/generated/models/Invite.ts +1393 -0
  67. package/generated/models/Media.ts +2887 -0
  68. package/generated/models/MediaUsage.ts +1488 -0
  69. package/generated/models/OAuthAccount.ts +1472 -0
  70. package/generated/models/PageTemplate.ts +1271 -0
  71. package/generated/models/PasswordResetToken.ts +1396 -0
  72. package/generated/models/Redirect.ts +1501 -0
  73. package/generated/models/Redirect404Hit.ts +1266 -0
  74. package/generated/models/RedirectSuggestion.ts +1344 -0
  75. package/generated/models/SavedSection.ts +1315 -0
  76. package/generated/models/ScriptTag.ts +1453 -0
  77. package/generated/models/SeoAuditRun.ts +1745 -0
  78. package/generated/models/SeoIssue.ts +2047 -0
  79. package/generated/models/Session.ts +1501 -0
  80. package/generated/models/Site.ts +1215 -0
  81. package/generated/models/User.ts +4558 -0
  82. package/generated/models/Version.ts +1520 -0
  83. package/generated/models/WebhookDeliveryLog.ts +1656 -0
  84. package/generated/models/WebhookEndpoint.ts +1433 -0
  85. package/generated/models/WorkflowState.ts +1523 -0
  86. package/generated/models.ts +46 -0
  87. package/package.json +5 -3
  88. package/{prisma → schema-fragments}/cms-schema.prisma +15 -2
@@ -0,0 +1,1905 @@
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.js"
13
+ import type * as Prisma from "../internal/prismaNamespace.js"
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
+ export 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 FolderUpdateOneWithoutChildrenNestedInput = {
462
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutChildrenInput, Prisma.FolderUncheckedCreateWithoutChildrenInput>
463
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutChildrenInput
464
+ upsert?: Prisma.FolderUpsertWithoutChildrenInput
465
+ disconnect?: Prisma.FolderWhereInput | boolean
466
+ delete?: Prisma.FolderWhereInput | boolean
467
+ connect?: Prisma.FolderWhereUniqueInput
468
+ update?: Prisma.XOR<Prisma.XOR<Prisma.FolderUpdateToOneWithWhereWithoutChildrenInput, Prisma.FolderUpdateWithoutChildrenInput>, Prisma.FolderUncheckedUpdateWithoutChildrenInput>
469
+ }
470
+
471
+ export type FolderUpdateManyWithoutParentNestedInput = {
472
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput> | Prisma.FolderCreateWithoutParentInput[] | Prisma.FolderUncheckedCreateWithoutParentInput[]
473
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutParentInput | Prisma.FolderCreateOrConnectWithoutParentInput[]
474
+ upsert?: Prisma.FolderUpsertWithWhereUniqueWithoutParentInput | Prisma.FolderUpsertWithWhereUniqueWithoutParentInput[]
475
+ createMany?: Prisma.FolderCreateManyParentInputEnvelope
476
+ set?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
477
+ disconnect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
478
+ delete?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
479
+ connect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
480
+ update?: Prisma.FolderUpdateWithWhereUniqueWithoutParentInput | Prisma.FolderUpdateWithWhereUniqueWithoutParentInput[]
481
+ updateMany?: Prisma.FolderUpdateManyWithWhereWithoutParentInput | Prisma.FolderUpdateManyWithWhereWithoutParentInput[]
482
+ deleteMany?: Prisma.FolderScalarWhereInput | Prisma.FolderScalarWhereInput[]
483
+ }
484
+
485
+ export type FolderUncheckedUpdateManyWithoutParentNestedInput = {
486
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput> | Prisma.FolderCreateWithoutParentInput[] | Prisma.FolderUncheckedCreateWithoutParentInput[]
487
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutParentInput | Prisma.FolderCreateOrConnectWithoutParentInput[]
488
+ upsert?: Prisma.FolderUpsertWithWhereUniqueWithoutParentInput | Prisma.FolderUpsertWithWhereUniqueWithoutParentInput[]
489
+ createMany?: Prisma.FolderCreateManyParentInputEnvelope
490
+ set?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
491
+ disconnect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
492
+ delete?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
493
+ connect?: Prisma.FolderWhereUniqueInput | Prisma.FolderWhereUniqueInput[]
494
+ update?: Prisma.FolderUpdateWithWhereUniqueWithoutParentInput | Prisma.FolderUpdateWithWhereUniqueWithoutParentInput[]
495
+ updateMany?: Prisma.FolderUpdateManyWithWhereWithoutParentInput | Prisma.FolderUpdateManyWithWhereWithoutParentInput[]
496
+ deleteMany?: Prisma.FolderScalarWhereInput | Prisma.FolderScalarWhereInput[]
497
+ }
498
+
499
+ export type FolderCreateNestedOneWithoutDocumentsInput = {
500
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutDocumentsInput, Prisma.FolderUncheckedCreateWithoutDocumentsInput>
501
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutDocumentsInput
502
+ connect?: Prisma.FolderWhereUniqueInput
503
+ }
504
+
505
+ export type FolderUpdateOneWithoutDocumentsNestedInput = {
506
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutDocumentsInput, Prisma.FolderUncheckedCreateWithoutDocumentsInput>
507
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutDocumentsInput
508
+ upsert?: Prisma.FolderUpsertWithoutDocumentsInput
509
+ disconnect?: Prisma.FolderWhereInput | boolean
510
+ delete?: Prisma.FolderWhereInput | boolean
511
+ connect?: Prisma.FolderWhereUniqueInput
512
+ update?: Prisma.XOR<Prisma.XOR<Prisma.FolderUpdateToOneWithWhereWithoutDocumentsInput, Prisma.FolderUpdateWithoutDocumentsInput>, Prisma.FolderUncheckedUpdateWithoutDocumentsInput>
513
+ }
514
+
515
+ export type FolderCreateNestedOneWithoutMediaInput = {
516
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutMediaInput, Prisma.FolderUncheckedCreateWithoutMediaInput>
517
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutMediaInput
518
+ connect?: Prisma.FolderWhereUniqueInput
519
+ }
520
+
521
+ export type FolderUpdateOneWithoutMediaNestedInput = {
522
+ create?: Prisma.XOR<Prisma.FolderCreateWithoutMediaInput, Prisma.FolderUncheckedCreateWithoutMediaInput>
523
+ connectOrCreate?: Prisma.FolderCreateOrConnectWithoutMediaInput
524
+ upsert?: Prisma.FolderUpsertWithoutMediaInput
525
+ disconnect?: Prisma.FolderWhereInput | boolean
526
+ delete?: Prisma.FolderWhereInput | boolean
527
+ connect?: Prisma.FolderWhereUniqueInput
528
+ update?: Prisma.XOR<Prisma.XOR<Prisma.FolderUpdateToOneWithWhereWithoutMediaInput, Prisma.FolderUpdateWithoutMediaInput>, Prisma.FolderUncheckedUpdateWithoutMediaInput>
529
+ }
530
+
531
+ export type FolderCreateWithoutChildrenInput = {
532
+ id?: string
533
+ name: string
534
+ scope: string
535
+ position?: number
536
+ createdAt?: Date | string
537
+ updatedAt?: Date | string
538
+ parent?: Prisma.FolderCreateNestedOneWithoutChildrenInput
539
+ documents?: Prisma.DocumentCreateNestedManyWithoutFolderInput
540
+ media?: Prisma.MediaCreateNestedManyWithoutFolderInput
541
+ }
542
+
543
+ export type FolderUncheckedCreateWithoutChildrenInput = {
544
+ id?: string
545
+ name: string
546
+ scope: string
547
+ parentId?: string | null
548
+ position?: number
549
+ createdAt?: Date | string
550
+ updatedAt?: Date | string
551
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutFolderInput
552
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutFolderInput
553
+ }
554
+
555
+ export type FolderCreateOrConnectWithoutChildrenInput = {
556
+ where: Prisma.FolderWhereUniqueInput
557
+ create: Prisma.XOR<Prisma.FolderCreateWithoutChildrenInput, Prisma.FolderUncheckedCreateWithoutChildrenInput>
558
+ }
559
+
560
+ export type FolderCreateWithoutParentInput = {
561
+ id?: string
562
+ name: string
563
+ scope: string
564
+ position?: number
565
+ createdAt?: Date | string
566
+ updatedAt?: Date | string
567
+ children?: Prisma.FolderCreateNestedManyWithoutParentInput
568
+ documents?: Prisma.DocumentCreateNestedManyWithoutFolderInput
569
+ media?: Prisma.MediaCreateNestedManyWithoutFolderInput
570
+ }
571
+
572
+ export type FolderUncheckedCreateWithoutParentInput = {
573
+ id?: string
574
+ name: string
575
+ scope: string
576
+ position?: number
577
+ createdAt?: Date | string
578
+ updatedAt?: Date | string
579
+ children?: Prisma.FolderUncheckedCreateNestedManyWithoutParentInput
580
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutFolderInput
581
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutFolderInput
582
+ }
583
+
584
+ export type FolderCreateOrConnectWithoutParentInput = {
585
+ where: Prisma.FolderWhereUniqueInput
586
+ create: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput>
587
+ }
588
+
589
+ export type FolderCreateManyParentInputEnvelope = {
590
+ data: Prisma.FolderCreateManyParentInput | Prisma.FolderCreateManyParentInput[]
591
+ skipDuplicates?: boolean
592
+ }
593
+
594
+ export type FolderUpsertWithoutChildrenInput = {
595
+ update: Prisma.XOR<Prisma.FolderUpdateWithoutChildrenInput, Prisma.FolderUncheckedUpdateWithoutChildrenInput>
596
+ create: Prisma.XOR<Prisma.FolderCreateWithoutChildrenInput, Prisma.FolderUncheckedCreateWithoutChildrenInput>
597
+ where?: Prisma.FolderWhereInput
598
+ }
599
+
600
+ export type FolderUpdateToOneWithWhereWithoutChildrenInput = {
601
+ where?: Prisma.FolderWhereInput
602
+ data: Prisma.XOR<Prisma.FolderUpdateWithoutChildrenInput, Prisma.FolderUncheckedUpdateWithoutChildrenInput>
603
+ }
604
+
605
+ export type FolderUpdateWithoutChildrenInput = {
606
+ id?: Prisma.StringFieldUpdateOperationsInput | string
607
+ name?: Prisma.StringFieldUpdateOperationsInput | string
608
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
609
+ position?: Prisma.IntFieldUpdateOperationsInput | number
610
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
611
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
612
+ parent?: Prisma.FolderUpdateOneWithoutChildrenNestedInput
613
+ documents?: Prisma.DocumentUpdateManyWithoutFolderNestedInput
614
+ media?: Prisma.MediaUpdateManyWithoutFolderNestedInput
615
+ }
616
+
617
+ export type FolderUncheckedUpdateWithoutChildrenInput = {
618
+ id?: Prisma.StringFieldUpdateOperationsInput | string
619
+ name?: Prisma.StringFieldUpdateOperationsInput | string
620
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
621
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
622
+ position?: Prisma.IntFieldUpdateOperationsInput | number
623
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
624
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
625
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutFolderNestedInput
626
+ media?: Prisma.MediaUncheckedUpdateManyWithoutFolderNestedInput
627
+ }
628
+
629
+ export type FolderUpsertWithWhereUniqueWithoutParentInput = {
630
+ where: Prisma.FolderWhereUniqueInput
631
+ update: Prisma.XOR<Prisma.FolderUpdateWithoutParentInput, Prisma.FolderUncheckedUpdateWithoutParentInput>
632
+ create: Prisma.XOR<Prisma.FolderCreateWithoutParentInput, Prisma.FolderUncheckedCreateWithoutParentInput>
633
+ }
634
+
635
+ export type FolderUpdateWithWhereUniqueWithoutParentInput = {
636
+ where: Prisma.FolderWhereUniqueInput
637
+ data: Prisma.XOR<Prisma.FolderUpdateWithoutParentInput, Prisma.FolderUncheckedUpdateWithoutParentInput>
638
+ }
639
+
640
+ export type FolderUpdateManyWithWhereWithoutParentInput = {
641
+ where: Prisma.FolderScalarWhereInput
642
+ data: Prisma.XOR<Prisma.FolderUpdateManyMutationInput, Prisma.FolderUncheckedUpdateManyWithoutParentInput>
643
+ }
644
+
645
+ export type FolderScalarWhereInput = {
646
+ AND?: Prisma.FolderScalarWhereInput | Prisma.FolderScalarWhereInput[]
647
+ OR?: Prisma.FolderScalarWhereInput[]
648
+ NOT?: Prisma.FolderScalarWhereInput | Prisma.FolderScalarWhereInput[]
649
+ id?: Prisma.StringFilter<"Folder"> | string
650
+ name?: Prisma.StringFilter<"Folder"> | string
651
+ scope?: Prisma.StringFilter<"Folder"> | string
652
+ parentId?: Prisma.StringNullableFilter<"Folder"> | string | null
653
+ position?: Prisma.IntFilter<"Folder"> | number
654
+ createdAt?: Prisma.DateTimeFilter<"Folder"> | Date | string
655
+ updatedAt?: Prisma.DateTimeFilter<"Folder"> | Date | string
656
+ }
657
+
658
+ export type FolderCreateWithoutDocumentsInput = {
659
+ id?: string
660
+ name: string
661
+ scope: string
662
+ position?: number
663
+ createdAt?: Date | string
664
+ updatedAt?: Date | string
665
+ parent?: Prisma.FolderCreateNestedOneWithoutChildrenInput
666
+ children?: Prisma.FolderCreateNestedManyWithoutParentInput
667
+ media?: Prisma.MediaCreateNestedManyWithoutFolderInput
668
+ }
669
+
670
+ export type FolderUncheckedCreateWithoutDocumentsInput = {
671
+ id?: string
672
+ name: string
673
+ scope: string
674
+ parentId?: string | null
675
+ position?: number
676
+ createdAt?: Date | string
677
+ updatedAt?: Date | string
678
+ children?: Prisma.FolderUncheckedCreateNestedManyWithoutParentInput
679
+ media?: Prisma.MediaUncheckedCreateNestedManyWithoutFolderInput
680
+ }
681
+
682
+ export type FolderCreateOrConnectWithoutDocumentsInput = {
683
+ where: Prisma.FolderWhereUniqueInput
684
+ create: Prisma.XOR<Prisma.FolderCreateWithoutDocumentsInput, Prisma.FolderUncheckedCreateWithoutDocumentsInput>
685
+ }
686
+
687
+ export type FolderUpsertWithoutDocumentsInput = {
688
+ update: Prisma.XOR<Prisma.FolderUpdateWithoutDocumentsInput, Prisma.FolderUncheckedUpdateWithoutDocumentsInput>
689
+ create: Prisma.XOR<Prisma.FolderCreateWithoutDocumentsInput, Prisma.FolderUncheckedCreateWithoutDocumentsInput>
690
+ where?: Prisma.FolderWhereInput
691
+ }
692
+
693
+ export type FolderUpdateToOneWithWhereWithoutDocumentsInput = {
694
+ where?: Prisma.FolderWhereInput
695
+ data: Prisma.XOR<Prisma.FolderUpdateWithoutDocumentsInput, Prisma.FolderUncheckedUpdateWithoutDocumentsInput>
696
+ }
697
+
698
+ export type FolderUpdateWithoutDocumentsInput = {
699
+ id?: Prisma.StringFieldUpdateOperationsInput | string
700
+ name?: Prisma.StringFieldUpdateOperationsInput | string
701
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
702
+ position?: Prisma.IntFieldUpdateOperationsInput | number
703
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
704
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
705
+ parent?: Prisma.FolderUpdateOneWithoutChildrenNestedInput
706
+ children?: Prisma.FolderUpdateManyWithoutParentNestedInput
707
+ media?: Prisma.MediaUpdateManyWithoutFolderNestedInput
708
+ }
709
+
710
+ export type FolderUncheckedUpdateWithoutDocumentsInput = {
711
+ id?: Prisma.StringFieldUpdateOperationsInput | string
712
+ name?: Prisma.StringFieldUpdateOperationsInput | string
713
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
714
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
715
+ position?: Prisma.IntFieldUpdateOperationsInput | number
716
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
717
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
718
+ children?: Prisma.FolderUncheckedUpdateManyWithoutParentNestedInput
719
+ media?: Prisma.MediaUncheckedUpdateManyWithoutFolderNestedInput
720
+ }
721
+
722
+ export type FolderCreateWithoutMediaInput = {
723
+ id?: string
724
+ name: string
725
+ scope: string
726
+ position?: number
727
+ createdAt?: Date | string
728
+ updatedAt?: Date | string
729
+ parent?: Prisma.FolderCreateNestedOneWithoutChildrenInput
730
+ children?: Prisma.FolderCreateNestedManyWithoutParentInput
731
+ documents?: Prisma.DocumentCreateNestedManyWithoutFolderInput
732
+ }
733
+
734
+ export type FolderUncheckedCreateWithoutMediaInput = {
735
+ id?: string
736
+ name: string
737
+ scope: string
738
+ parentId?: string | null
739
+ position?: number
740
+ createdAt?: Date | string
741
+ updatedAt?: Date | string
742
+ children?: Prisma.FolderUncheckedCreateNestedManyWithoutParentInput
743
+ documents?: Prisma.DocumentUncheckedCreateNestedManyWithoutFolderInput
744
+ }
745
+
746
+ export type FolderCreateOrConnectWithoutMediaInput = {
747
+ where: Prisma.FolderWhereUniqueInput
748
+ create: Prisma.XOR<Prisma.FolderCreateWithoutMediaInput, Prisma.FolderUncheckedCreateWithoutMediaInput>
749
+ }
750
+
751
+ export type FolderUpsertWithoutMediaInput = {
752
+ update: Prisma.XOR<Prisma.FolderUpdateWithoutMediaInput, Prisma.FolderUncheckedUpdateWithoutMediaInput>
753
+ create: Prisma.XOR<Prisma.FolderCreateWithoutMediaInput, Prisma.FolderUncheckedCreateWithoutMediaInput>
754
+ where?: Prisma.FolderWhereInput
755
+ }
756
+
757
+ export type FolderUpdateToOneWithWhereWithoutMediaInput = {
758
+ where?: Prisma.FolderWhereInput
759
+ data: Prisma.XOR<Prisma.FolderUpdateWithoutMediaInput, Prisma.FolderUncheckedUpdateWithoutMediaInput>
760
+ }
761
+
762
+ export type FolderUpdateWithoutMediaInput = {
763
+ id?: Prisma.StringFieldUpdateOperationsInput | string
764
+ name?: Prisma.StringFieldUpdateOperationsInput | string
765
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
766
+ position?: Prisma.IntFieldUpdateOperationsInput | number
767
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
768
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
769
+ parent?: Prisma.FolderUpdateOneWithoutChildrenNestedInput
770
+ children?: Prisma.FolderUpdateManyWithoutParentNestedInput
771
+ documents?: Prisma.DocumentUpdateManyWithoutFolderNestedInput
772
+ }
773
+
774
+ export type FolderUncheckedUpdateWithoutMediaInput = {
775
+ id?: Prisma.StringFieldUpdateOperationsInput | string
776
+ name?: Prisma.StringFieldUpdateOperationsInput | string
777
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
778
+ parentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
779
+ position?: Prisma.IntFieldUpdateOperationsInput | number
780
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
781
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
782
+ children?: Prisma.FolderUncheckedUpdateManyWithoutParentNestedInput
783
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutFolderNestedInput
784
+ }
785
+
786
+ export type FolderCreateManyParentInput = {
787
+ id?: string
788
+ name: string
789
+ scope: string
790
+ position?: number
791
+ createdAt?: Date | string
792
+ updatedAt?: Date | string
793
+ }
794
+
795
+ export type FolderUpdateWithoutParentInput = {
796
+ id?: Prisma.StringFieldUpdateOperationsInput | string
797
+ name?: Prisma.StringFieldUpdateOperationsInput | string
798
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
799
+ position?: Prisma.IntFieldUpdateOperationsInput | number
800
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
801
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
802
+ children?: Prisma.FolderUpdateManyWithoutParentNestedInput
803
+ documents?: Prisma.DocumentUpdateManyWithoutFolderNestedInput
804
+ media?: Prisma.MediaUpdateManyWithoutFolderNestedInput
805
+ }
806
+
807
+ export type FolderUncheckedUpdateWithoutParentInput = {
808
+ id?: Prisma.StringFieldUpdateOperationsInput | string
809
+ name?: Prisma.StringFieldUpdateOperationsInput | string
810
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
811
+ position?: Prisma.IntFieldUpdateOperationsInput | number
812
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
813
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
814
+ children?: Prisma.FolderUncheckedUpdateManyWithoutParentNestedInput
815
+ documents?: Prisma.DocumentUncheckedUpdateManyWithoutFolderNestedInput
816
+ media?: Prisma.MediaUncheckedUpdateManyWithoutFolderNestedInput
817
+ }
818
+
819
+ export type FolderUncheckedUpdateManyWithoutParentInput = {
820
+ id?: Prisma.StringFieldUpdateOperationsInput | string
821
+ name?: Prisma.StringFieldUpdateOperationsInput | string
822
+ scope?: Prisma.StringFieldUpdateOperationsInput | string
823
+ position?: Prisma.IntFieldUpdateOperationsInput | number
824
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
825
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
826
+ }
827
+
828
+
829
+ /**
830
+ * Count Type FolderCountOutputType
831
+ */
832
+
833
+ export type FolderCountOutputType = {
834
+ children: number
835
+ documents: number
836
+ media: number
837
+ }
838
+
839
+ export type FolderCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
840
+ children?: boolean | FolderCountOutputTypeCountChildrenArgs
841
+ documents?: boolean | FolderCountOutputTypeCountDocumentsArgs
842
+ media?: boolean | FolderCountOutputTypeCountMediaArgs
843
+ }
844
+
845
+ /**
846
+ * FolderCountOutputType without action
847
+ */
848
+ export type FolderCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
849
+ /**
850
+ * Select specific fields to fetch from the FolderCountOutputType
851
+ */
852
+ select?: Prisma.FolderCountOutputTypeSelect<ExtArgs> | null
853
+ }
854
+
855
+ /**
856
+ * FolderCountOutputType without action
857
+ */
858
+ export type FolderCountOutputTypeCountChildrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
859
+ where?: Prisma.FolderWhereInput
860
+ }
861
+
862
+ /**
863
+ * FolderCountOutputType without action
864
+ */
865
+ export type FolderCountOutputTypeCountDocumentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
866
+ where?: Prisma.DocumentWhereInput
867
+ }
868
+
869
+ /**
870
+ * FolderCountOutputType without action
871
+ */
872
+ export type FolderCountOutputTypeCountMediaArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
873
+ where?: Prisma.MediaWhereInput
874
+ }
875
+
876
+
877
+ export type FolderSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
878
+ id?: boolean
879
+ name?: boolean
880
+ scope?: boolean
881
+ parentId?: boolean
882
+ position?: boolean
883
+ createdAt?: boolean
884
+ updatedAt?: boolean
885
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
886
+ children?: boolean | Prisma.Folder$childrenArgs<ExtArgs>
887
+ documents?: boolean | Prisma.Folder$documentsArgs<ExtArgs>
888
+ media?: boolean | Prisma.Folder$mediaArgs<ExtArgs>
889
+ _count?: boolean | Prisma.FolderCountOutputTypeDefaultArgs<ExtArgs>
890
+ }, ExtArgs["result"]["folder"]>
891
+
892
+ export type FolderSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
893
+ id?: boolean
894
+ name?: boolean
895
+ scope?: boolean
896
+ parentId?: boolean
897
+ position?: boolean
898
+ createdAt?: boolean
899
+ updatedAt?: boolean
900
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
901
+ }, ExtArgs["result"]["folder"]>
902
+
903
+ export type FolderSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
904
+ id?: boolean
905
+ name?: boolean
906
+ scope?: boolean
907
+ parentId?: boolean
908
+ position?: boolean
909
+ createdAt?: boolean
910
+ updatedAt?: boolean
911
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
912
+ }, ExtArgs["result"]["folder"]>
913
+
914
+ export type FolderSelectScalar = {
915
+ id?: boolean
916
+ name?: boolean
917
+ scope?: boolean
918
+ parentId?: boolean
919
+ position?: boolean
920
+ createdAt?: boolean
921
+ updatedAt?: boolean
922
+ }
923
+
924
+ 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"]>
925
+ export type FolderInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
926
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
927
+ children?: boolean | Prisma.Folder$childrenArgs<ExtArgs>
928
+ documents?: boolean | Prisma.Folder$documentsArgs<ExtArgs>
929
+ media?: boolean | Prisma.Folder$mediaArgs<ExtArgs>
930
+ _count?: boolean | Prisma.FolderCountOutputTypeDefaultArgs<ExtArgs>
931
+ }
932
+ export type FolderIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
933
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
934
+ }
935
+ export type FolderIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
936
+ parent?: boolean | Prisma.Folder$parentArgs<ExtArgs>
937
+ }
938
+
939
+ export type $FolderPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
940
+ name: "Folder"
941
+ objects: {
942
+ parent: Prisma.$FolderPayload<ExtArgs> | null
943
+ children: Prisma.$FolderPayload<ExtArgs>[]
944
+ documents: Prisma.$DocumentPayload<ExtArgs>[]
945
+ media: Prisma.$MediaPayload<ExtArgs>[]
946
+ }
947
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
948
+ id: string
949
+ name: string
950
+ scope: string
951
+ parentId: string | null
952
+ position: number
953
+ createdAt: Date
954
+ updatedAt: Date
955
+ }, ExtArgs["result"]["folder"]>
956
+ composites: {}
957
+ }
958
+
959
+ export type FolderGetPayload<S extends boolean | null | undefined | FolderDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FolderPayload, S>
960
+
961
+ export type FolderCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
962
+ Omit<FolderFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
963
+ select?: FolderCountAggregateInputType | true
964
+ }
965
+
966
+ export interface FolderDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
967
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Folder'], meta: { name: 'Folder' } }
968
+ /**
969
+ * Find zero or one Folder that matches the filter.
970
+ * @param {FolderFindUniqueArgs} args - Arguments to find a Folder
971
+ * @example
972
+ * // Get one Folder
973
+ * const folder = await prisma.folder.findUnique({
974
+ * where: {
975
+ * // ... provide filter here
976
+ * }
977
+ * })
978
+ */
979
+ 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>
980
+
981
+ /**
982
+ * Find one Folder that matches the filter or throw an error with `error.code='P2025'`
983
+ * if no matches were found.
984
+ * @param {FolderFindUniqueOrThrowArgs} args - Arguments to find a Folder
985
+ * @example
986
+ * // Get one Folder
987
+ * const folder = await prisma.folder.findUniqueOrThrow({
988
+ * where: {
989
+ * // ... provide filter here
990
+ * }
991
+ * })
992
+ */
993
+ 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>
994
+
995
+ /**
996
+ * Find the first Folder that matches the filter.
997
+ * Note, that providing `undefined` is treated as the value not being there.
998
+ * Read more here: https://pris.ly/d/null-undefined
999
+ * @param {FolderFindFirstArgs} args - Arguments to find a Folder
1000
+ * @example
1001
+ * // Get one Folder
1002
+ * const folder = await prisma.folder.findFirst({
1003
+ * where: {
1004
+ * // ... provide filter here
1005
+ * }
1006
+ * })
1007
+ */
1008
+ 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>
1009
+
1010
+ /**
1011
+ * Find the first Folder that matches the filter or
1012
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1013
+ * Note, that providing `undefined` is treated as the value not being there.
1014
+ * Read more here: https://pris.ly/d/null-undefined
1015
+ * @param {FolderFindFirstOrThrowArgs} args - Arguments to find a Folder
1016
+ * @example
1017
+ * // Get one Folder
1018
+ * const folder = await prisma.folder.findFirstOrThrow({
1019
+ * where: {
1020
+ * // ... provide filter here
1021
+ * }
1022
+ * })
1023
+ */
1024
+ 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>
1025
+
1026
+ /**
1027
+ * Find zero or more Folders that matches the filter.
1028
+ * Note, that providing `undefined` is treated as the value not being there.
1029
+ * Read more here: https://pris.ly/d/null-undefined
1030
+ * @param {FolderFindManyArgs} args - Arguments to filter and select certain fields only.
1031
+ * @example
1032
+ * // Get all Folders
1033
+ * const folders = await prisma.folder.findMany()
1034
+ *
1035
+ * // Get first 10 Folders
1036
+ * const folders = await prisma.folder.findMany({ take: 10 })
1037
+ *
1038
+ * // Only select the `id`
1039
+ * const folderWithIdOnly = await prisma.folder.findMany({ select: { id: true } })
1040
+ *
1041
+ */
1042
+ findMany<T extends FolderFindManyArgs>(args?: Prisma.SelectSubset<T, FolderFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1043
+
1044
+ /**
1045
+ * Create a Folder.
1046
+ * @param {FolderCreateArgs} args - Arguments to create a Folder.
1047
+ * @example
1048
+ * // Create one Folder
1049
+ * const Folder = await prisma.folder.create({
1050
+ * data: {
1051
+ * // ... data to create a Folder
1052
+ * }
1053
+ * })
1054
+ *
1055
+ */
1056
+ 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>
1057
+
1058
+ /**
1059
+ * Create many Folders.
1060
+ * @param {FolderCreateManyArgs} args - Arguments to create many Folders.
1061
+ * @example
1062
+ * // Create many Folders
1063
+ * const folder = await prisma.folder.createMany({
1064
+ * data: [
1065
+ * // ... provide data here
1066
+ * ]
1067
+ * })
1068
+ *
1069
+ */
1070
+ createMany<T extends FolderCreateManyArgs>(args?: Prisma.SelectSubset<T, FolderCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1071
+
1072
+ /**
1073
+ * Create many Folders and returns the data saved in the database.
1074
+ * @param {FolderCreateManyAndReturnArgs} args - Arguments to create many Folders.
1075
+ * @example
1076
+ * // Create many Folders
1077
+ * const folder = await prisma.folder.createManyAndReturn({
1078
+ * data: [
1079
+ * // ... provide data here
1080
+ * ]
1081
+ * })
1082
+ *
1083
+ * // Create many Folders and only return the `id`
1084
+ * const folderWithIdOnly = await prisma.folder.createManyAndReturn({
1085
+ * select: { id: true },
1086
+ * data: [
1087
+ * // ... provide data here
1088
+ * ]
1089
+ * })
1090
+ * Note, that providing `undefined` is treated as the value not being there.
1091
+ * Read more here: https://pris.ly/d/null-undefined
1092
+ *
1093
+ */
1094
+ createManyAndReturn<T extends FolderCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FolderCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1095
+
1096
+ /**
1097
+ * Delete a Folder.
1098
+ * @param {FolderDeleteArgs} args - Arguments to delete one Folder.
1099
+ * @example
1100
+ * // Delete one Folder
1101
+ * const Folder = await prisma.folder.delete({
1102
+ * where: {
1103
+ * // ... filter to delete one Folder
1104
+ * }
1105
+ * })
1106
+ *
1107
+ */
1108
+ 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>
1109
+
1110
+ /**
1111
+ * Update one Folder.
1112
+ * @param {FolderUpdateArgs} args - Arguments to update one Folder.
1113
+ * @example
1114
+ * // Update one Folder
1115
+ * const folder = await prisma.folder.update({
1116
+ * where: {
1117
+ * // ... provide filter here
1118
+ * },
1119
+ * data: {
1120
+ * // ... provide data here
1121
+ * }
1122
+ * })
1123
+ *
1124
+ */
1125
+ 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>
1126
+
1127
+ /**
1128
+ * Delete zero or more Folders.
1129
+ * @param {FolderDeleteManyArgs} args - Arguments to filter Folders to delete.
1130
+ * @example
1131
+ * // Delete a few Folders
1132
+ * const { count } = await prisma.folder.deleteMany({
1133
+ * where: {
1134
+ * // ... provide filter here
1135
+ * }
1136
+ * })
1137
+ *
1138
+ */
1139
+ deleteMany<T extends FolderDeleteManyArgs>(args?: Prisma.SelectSubset<T, FolderDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1140
+
1141
+ /**
1142
+ * Update zero or more Folders.
1143
+ * Note, that providing `undefined` is treated as the value not being there.
1144
+ * Read more here: https://pris.ly/d/null-undefined
1145
+ * @param {FolderUpdateManyArgs} args - Arguments to update one or more rows.
1146
+ * @example
1147
+ * // Update many Folders
1148
+ * const folder = await prisma.folder.updateMany({
1149
+ * where: {
1150
+ * // ... provide filter here
1151
+ * },
1152
+ * data: {
1153
+ * // ... provide data here
1154
+ * }
1155
+ * })
1156
+ *
1157
+ */
1158
+ updateMany<T extends FolderUpdateManyArgs>(args: Prisma.SelectSubset<T, FolderUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1159
+
1160
+ /**
1161
+ * Update zero or more Folders and returns the data updated in the database.
1162
+ * @param {FolderUpdateManyAndReturnArgs} args - Arguments to update many Folders.
1163
+ * @example
1164
+ * // Update many Folders
1165
+ * const folder = await prisma.folder.updateManyAndReturn({
1166
+ * where: {
1167
+ * // ... provide filter here
1168
+ * },
1169
+ * data: [
1170
+ * // ... provide data here
1171
+ * ]
1172
+ * })
1173
+ *
1174
+ * // Update zero or more Folders and only return the `id`
1175
+ * const folderWithIdOnly = await prisma.folder.updateManyAndReturn({
1176
+ * select: { id: true },
1177
+ * where: {
1178
+ * // ... provide filter here
1179
+ * },
1180
+ * data: [
1181
+ * // ... provide data here
1182
+ * ]
1183
+ * })
1184
+ * Note, that providing `undefined` is treated as the value not being there.
1185
+ * Read more here: https://pris.ly/d/null-undefined
1186
+ *
1187
+ */
1188
+ updateManyAndReturn<T extends FolderUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FolderUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FolderPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1189
+
1190
+ /**
1191
+ * Create or update one Folder.
1192
+ * @param {FolderUpsertArgs} args - Arguments to update or create a Folder.
1193
+ * @example
1194
+ * // Update or create a Folder
1195
+ * const folder = await prisma.folder.upsert({
1196
+ * create: {
1197
+ * // ... data to create a Folder
1198
+ * },
1199
+ * update: {
1200
+ * // ... in case it already exists, update
1201
+ * },
1202
+ * where: {
1203
+ * // ... the filter for the Folder we want to update
1204
+ * }
1205
+ * })
1206
+ */
1207
+ 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>
1208
+
1209
+
1210
+ /**
1211
+ * Count the number of Folders.
1212
+ * Note, that providing `undefined` is treated as the value not being there.
1213
+ * Read more here: https://pris.ly/d/null-undefined
1214
+ * @param {FolderCountArgs} args - Arguments to filter Folders to count.
1215
+ * @example
1216
+ * // Count the number of Folders
1217
+ * const count = await prisma.folder.count({
1218
+ * where: {
1219
+ * // ... the filter for the Folders we want to count
1220
+ * }
1221
+ * })
1222
+ **/
1223
+ count<T extends FolderCountArgs>(
1224
+ args?: Prisma.Subset<T, FolderCountArgs>,
1225
+ ): Prisma.PrismaPromise<
1226
+ T extends runtime.Types.Utils.Record<'select', any>
1227
+ ? T['select'] extends true
1228
+ ? number
1229
+ : Prisma.GetScalarType<T['select'], FolderCountAggregateOutputType>
1230
+ : number
1231
+ >
1232
+
1233
+ /**
1234
+ * Allows you to perform aggregations operations on a Folder.
1235
+ * Note, that providing `undefined` is treated as the value not being there.
1236
+ * Read more here: https://pris.ly/d/null-undefined
1237
+ * @param {FolderAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1238
+ * @example
1239
+ * // Ordered by age ascending
1240
+ * // Where email contains prisma.io
1241
+ * // Limited to the 10 users
1242
+ * const aggregations = await prisma.user.aggregate({
1243
+ * _avg: {
1244
+ * age: true,
1245
+ * },
1246
+ * where: {
1247
+ * email: {
1248
+ * contains: "prisma.io",
1249
+ * },
1250
+ * },
1251
+ * orderBy: {
1252
+ * age: "asc",
1253
+ * },
1254
+ * take: 10,
1255
+ * })
1256
+ **/
1257
+ aggregate<T extends FolderAggregateArgs>(args: Prisma.Subset<T, FolderAggregateArgs>): Prisma.PrismaPromise<GetFolderAggregateType<T>>
1258
+
1259
+ /**
1260
+ * Group by Folder.
1261
+ * Note, that providing `undefined` is treated as the value not being there.
1262
+ * Read more here: https://pris.ly/d/null-undefined
1263
+ * @param {FolderGroupByArgs} args - Group by arguments.
1264
+ * @example
1265
+ * // Group by city, order by createdAt, get count
1266
+ * const result = await prisma.user.groupBy({
1267
+ * by: ['city', 'createdAt'],
1268
+ * orderBy: {
1269
+ * createdAt: true
1270
+ * },
1271
+ * _count: {
1272
+ * _all: true
1273
+ * },
1274
+ * })
1275
+ *
1276
+ **/
1277
+ groupBy<
1278
+ T extends FolderGroupByArgs,
1279
+ HasSelectOrTake extends Prisma.Or<
1280
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1281
+ Prisma.Extends<'take', Prisma.Keys<T>>
1282
+ >,
1283
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1284
+ ? { orderBy: FolderGroupByArgs['orderBy'] }
1285
+ : { orderBy?: FolderGroupByArgs['orderBy'] },
1286
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1287
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1288
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1289
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1290
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1291
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1292
+ InputErrors extends ByEmpty extends Prisma.True
1293
+ ? `Error: "by" must not be empty.`
1294
+ : HavingValid extends Prisma.False
1295
+ ? {
1296
+ [P in HavingFields]: P extends ByFields
1297
+ ? never
1298
+ : P extends string
1299
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1300
+ : [
1301
+ Error,
1302
+ 'Field ',
1303
+ P,
1304
+ ` in "having" needs to be provided in "by"`,
1305
+ ]
1306
+ }[HavingFields]
1307
+ : 'take' extends Prisma.Keys<T>
1308
+ ? 'orderBy' extends Prisma.Keys<T>
1309
+ ? ByValid extends Prisma.True
1310
+ ? {}
1311
+ : {
1312
+ [P in OrderFields]: P extends ByFields
1313
+ ? never
1314
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1315
+ }[OrderFields]
1316
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1317
+ : 'skip' extends Prisma.Keys<T>
1318
+ ? 'orderBy' extends Prisma.Keys<T>
1319
+ ? ByValid extends Prisma.True
1320
+ ? {}
1321
+ : {
1322
+ [P in OrderFields]: P extends ByFields
1323
+ ? never
1324
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1325
+ }[OrderFields]
1326
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
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
+ >(args: Prisma.SubsetIntersection<T, FolderGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFolderGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1335
+ /**
1336
+ * Fields of the Folder model
1337
+ */
1338
+ readonly fields: FolderFieldRefs;
1339
+ }
1340
+
1341
+ /**
1342
+ * The delegate class that acts as a "Promise-like" for Folder.
1343
+ * Why is this prefixed with `Prisma__`?
1344
+ * Because we want to prevent naming conflicts as mentioned in
1345
+ * https://github.com/prisma/prisma-client-js/issues/707
1346
+ */
1347
+ export interface Prisma__FolderClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1348
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1349
+ 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>
1350
+ 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>
1351
+ 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>
1352
+ 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>
1353
+ /**
1354
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1355
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1356
+ * @param onrejected The callback to execute when the Promise is rejected.
1357
+ * @returns A Promise for the completion of which ever callback is executed.
1358
+ */
1359
+ 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>
1360
+ /**
1361
+ * Attaches a callback for only the rejection of the Promise.
1362
+ * @param onrejected The callback to execute when the Promise is rejected.
1363
+ * @returns A Promise for the completion of the callback.
1364
+ */
1365
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1366
+ /**
1367
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1368
+ * resolved value cannot be modified from the callback.
1369
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1370
+ * @returns A Promise for the completion of the callback.
1371
+ */
1372
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1373
+ }
1374
+
1375
+
1376
+
1377
+
1378
+ /**
1379
+ * Fields of the Folder model
1380
+ */
1381
+ export interface FolderFieldRefs {
1382
+ readonly id: Prisma.FieldRef<"Folder", 'String'>
1383
+ readonly name: Prisma.FieldRef<"Folder", 'String'>
1384
+ readonly scope: Prisma.FieldRef<"Folder", 'String'>
1385
+ readonly parentId: Prisma.FieldRef<"Folder", 'String'>
1386
+ readonly position: Prisma.FieldRef<"Folder", 'Int'>
1387
+ readonly createdAt: Prisma.FieldRef<"Folder", 'DateTime'>
1388
+ readonly updatedAt: Prisma.FieldRef<"Folder", 'DateTime'>
1389
+ }
1390
+
1391
+
1392
+ // Custom InputTypes
1393
+ /**
1394
+ * Folder findUnique
1395
+ */
1396
+ export type FolderFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1397
+ /**
1398
+ * Select specific fields to fetch from the Folder
1399
+ */
1400
+ select?: Prisma.FolderSelect<ExtArgs> | null
1401
+ /**
1402
+ * Omit specific fields from the Folder
1403
+ */
1404
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1405
+ /**
1406
+ * Choose, which related nodes to fetch as well
1407
+ */
1408
+ include?: Prisma.FolderInclude<ExtArgs> | null
1409
+ /**
1410
+ * Filter, which Folder to fetch.
1411
+ */
1412
+ where: Prisma.FolderWhereUniqueInput
1413
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1414
+ }
1415
+
1416
+ /**
1417
+ * Folder findUniqueOrThrow
1418
+ */
1419
+ export type FolderFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1420
+ /**
1421
+ * Select specific fields to fetch from the Folder
1422
+ */
1423
+ select?: Prisma.FolderSelect<ExtArgs> | null
1424
+ /**
1425
+ * Omit specific fields from the Folder
1426
+ */
1427
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1428
+ /**
1429
+ * Choose, which related nodes to fetch as well
1430
+ */
1431
+ include?: Prisma.FolderInclude<ExtArgs> | null
1432
+ /**
1433
+ * Filter, which Folder to fetch.
1434
+ */
1435
+ where: Prisma.FolderWhereUniqueInput
1436
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1437
+ }
1438
+
1439
+ /**
1440
+ * Folder findFirst
1441
+ */
1442
+ export type FolderFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1443
+ /**
1444
+ * Select specific fields to fetch from the Folder
1445
+ */
1446
+ select?: Prisma.FolderSelect<ExtArgs> | null
1447
+ /**
1448
+ * Omit specific fields from the Folder
1449
+ */
1450
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1451
+ /**
1452
+ * Choose, which related nodes to fetch as well
1453
+ */
1454
+ include?: Prisma.FolderInclude<ExtArgs> | null
1455
+ /**
1456
+ * Filter, which Folder to fetch.
1457
+ */
1458
+ where?: Prisma.FolderWhereInput
1459
+ /**
1460
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1461
+ *
1462
+ * Determine the order of Folders to fetch.
1463
+ */
1464
+ orderBy?: Prisma.FolderOrderByWithRelationInput | Prisma.FolderOrderByWithRelationInput[]
1465
+ /**
1466
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1467
+ *
1468
+ * Sets the position for searching for Folders.
1469
+ */
1470
+ cursor?: Prisma.FolderWhereUniqueInput
1471
+ /**
1472
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1473
+ *
1474
+ * Take `±n` Folders from the position of the cursor.
1475
+ */
1476
+ take?: number
1477
+ /**
1478
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1479
+ *
1480
+ * Skip the first `n` Folders.
1481
+ */
1482
+ skip?: number
1483
+ /**
1484
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1485
+ *
1486
+ * Filter by unique combinations of Folders.
1487
+ */
1488
+ distinct?: Prisma.FolderScalarFieldEnum | Prisma.FolderScalarFieldEnum[]
1489
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1490
+ }
1491
+
1492
+ /**
1493
+ * Folder findFirstOrThrow
1494
+ */
1495
+ export type FolderFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1496
+ /**
1497
+ * Select specific fields to fetch from the Folder
1498
+ */
1499
+ select?: Prisma.FolderSelect<ExtArgs> | null
1500
+ /**
1501
+ * Omit specific fields from the Folder
1502
+ */
1503
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1504
+ /**
1505
+ * Choose, which related nodes to fetch as well
1506
+ */
1507
+ include?: Prisma.FolderInclude<ExtArgs> | null
1508
+ /**
1509
+ * Filter, which Folder to fetch.
1510
+ */
1511
+ where?: Prisma.FolderWhereInput
1512
+ /**
1513
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1514
+ *
1515
+ * Determine the order of Folders to fetch.
1516
+ */
1517
+ orderBy?: Prisma.FolderOrderByWithRelationInput | Prisma.FolderOrderByWithRelationInput[]
1518
+ /**
1519
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1520
+ *
1521
+ * Sets the position for searching for Folders.
1522
+ */
1523
+ cursor?: Prisma.FolderWhereUniqueInput
1524
+ /**
1525
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1526
+ *
1527
+ * Take `±n` Folders from the position of the cursor.
1528
+ */
1529
+ take?: number
1530
+ /**
1531
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1532
+ *
1533
+ * Skip the first `n` Folders.
1534
+ */
1535
+ skip?: number
1536
+ /**
1537
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1538
+ *
1539
+ * Filter by unique combinations of Folders.
1540
+ */
1541
+ distinct?: Prisma.FolderScalarFieldEnum | Prisma.FolderScalarFieldEnum[]
1542
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1543
+ }
1544
+
1545
+ /**
1546
+ * Folder findMany
1547
+ */
1548
+ export type FolderFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1549
+ /**
1550
+ * Select specific fields to fetch from the Folder
1551
+ */
1552
+ select?: Prisma.FolderSelect<ExtArgs> | null
1553
+ /**
1554
+ * Omit specific fields from the Folder
1555
+ */
1556
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1557
+ /**
1558
+ * Choose, which related nodes to fetch as well
1559
+ */
1560
+ include?: Prisma.FolderInclude<ExtArgs> | null
1561
+ /**
1562
+ * Filter, which Folders to fetch.
1563
+ */
1564
+ where?: Prisma.FolderWhereInput
1565
+ /**
1566
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1567
+ *
1568
+ * Determine the order of Folders to fetch.
1569
+ */
1570
+ orderBy?: Prisma.FolderOrderByWithRelationInput | Prisma.FolderOrderByWithRelationInput[]
1571
+ /**
1572
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1573
+ *
1574
+ * Sets the position for listing Folders.
1575
+ */
1576
+ cursor?: Prisma.FolderWhereUniqueInput
1577
+ /**
1578
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1579
+ *
1580
+ * Take `±n` Folders from the position of the cursor.
1581
+ */
1582
+ take?: number
1583
+ /**
1584
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1585
+ *
1586
+ * Skip the first `n` Folders.
1587
+ */
1588
+ skip?: number
1589
+ /**
1590
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1591
+ *
1592
+ * Filter by unique combinations of Folders.
1593
+ */
1594
+ distinct?: Prisma.FolderScalarFieldEnum | Prisma.FolderScalarFieldEnum[]
1595
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1596
+ }
1597
+
1598
+ /**
1599
+ * Folder create
1600
+ */
1601
+ export type FolderCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1602
+ /**
1603
+ * Select specific fields to fetch from the Folder
1604
+ */
1605
+ select?: Prisma.FolderSelect<ExtArgs> | null
1606
+ /**
1607
+ * Omit specific fields from the Folder
1608
+ */
1609
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1610
+ /**
1611
+ * Choose, which related nodes to fetch as well
1612
+ */
1613
+ include?: Prisma.FolderInclude<ExtArgs> | null
1614
+ /**
1615
+ * The data needed to create a Folder.
1616
+ */
1617
+ data: Prisma.XOR<Prisma.FolderCreateInput, Prisma.FolderUncheckedCreateInput>
1618
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1619
+ }
1620
+
1621
+ /**
1622
+ * Folder createMany
1623
+ */
1624
+ export type FolderCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1625
+ /**
1626
+ * The data used to create many Folders.
1627
+ */
1628
+ data: Prisma.FolderCreateManyInput | Prisma.FolderCreateManyInput[]
1629
+ skipDuplicates?: boolean
1630
+ }
1631
+
1632
+ /**
1633
+ * Folder createManyAndReturn
1634
+ */
1635
+ export type FolderCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1636
+ /**
1637
+ * Select specific fields to fetch from the Folder
1638
+ */
1639
+ select?: Prisma.FolderSelectCreateManyAndReturn<ExtArgs> | null
1640
+ /**
1641
+ * Omit specific fields from the Folder
1642
+ */
1643
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1644
+ /**
1645
+ * The data used to create many Folders.
1646
+ */
1647
+ data: Prisma.FolderCreateManyInput | Prisma.FolderCreateManyInput[]
1648
+ skipDuplicates?: boolean
1649
+ /**
1650
+ * Choose, which related nodes to fetch as well
1651
+ */
1652
+ include?: Prisma.FolderIncludeCreateManyAndReturn<ExtArgs> | null
1653
+ }
1654
+
1655
+ /**
1656
+ * Folder update
1657
+ */
1658
+ export type FolderUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1659
+ /**
1660
+ * Select specific fields to fetch from the Folder
1661
+ */
1662
+ select?: Prisma.FolderSelect<ExtArgs> | null
1663
+ /**
1664
+ * Omit specific fields from the Folder
1665
+ */
1666
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1667
+ /**
1668
+ * Choose, which related nodes to fetch as well
1669
+ */
1670
+ include?: Prisma.FolderInclude<ExtArgs> | null
1671
+ /**
1672
+ * The data needed to update a Folder.
1673
+ */
1674
+ data: Prisma.XOR<Prisma.FolderUpdateInput, Prisma.FolderUncheckedUpdateInput>
1675
+ /**
1676
+ * Choose, which Folder to update.
1677
+ */
1678
+ where: Prisma.FolderWhereUniqueInput
1679
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1680
+ }
1681
+
1682
+ /**
1683
+ * Folder updateMany
1684
+ */
1685
+ export type FolderUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1686
+ /**
1687
+ * The data used to update Folders.
1688
+ */
1689
+ data: Prisma.XOR<Prisma.FolderUpdateManyMutationInput, Prisma.FolderUncheckedUpdateManyInput>
1690
+ /**
1691
+ * Filter which Folders to update
1692
+ */
1693
+ where?: Prisma.FolderWhereInput
1694
+ /**
1695
+ * Limit how many Folders to update.
1696
+ */
1697
+ limit?: number
1698
+ }
1699
+
1700
+ /**
1701
+ * Folder updateManyAndReturn
1702
+ */
1703
+ export type FolderUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1704
+ /**
1705
+ * Select specific fields to fetch from the Folder
1706
+ */
1707
+ select?: Prisma.FolderSelectUpdateManyAndReturn<ExtArgs> | null
1708
+ /**
1709
+ * Omit specific fields from the Folder
1710
+ */
1711
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1712
+ /**
1713
+ * The data used to update Folders.
1714
+ */
1715
+ data: Prisma.XOR<Prisma.FolderUpdateManyMutationInput, Prisma.FolderUncheckedUpdateManyInput>
1716
+ /**
1717
+ * Filter which Folders to update
1718
+ */
1719
+ where?: Prisma.FolderWhereInput
1720
+ /**
1721
+ * Limit how many Folders to update.
1722
+ */
1723
+ limit?: number
1724
+ /**
1725
+ * Choose, which related nodes to fetch as well
1726
+ */
1727
+ include?: Prisma.FolderIncludeUpdateManyAndReturn<ExtArgs> | null
1728
+ }
1729
+
1730
+ /**
1731
+ * Folder upsert
1732
+ */
1733
+ export type FolderUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1734
+ /**
1735
+ * Select specific fields to fetch from the Folder
1736
+ */
1737
+ select?: Prisma.FolderSelect<ExtArgs> | null
1738
+ /**
1739
+ * Omit specific fields from the Folder
1740
+ */
1741
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1742
+ /**
1743
+ * Choose, which related nodes to fetch as well
1744
+ */
1745
+ include?: Prisma.FolderInclude<ExtArgs> | null
1746
+ /**
1747
+ * The filter to search for the Folder to update in case it exists.
1748
+ */
1749
+ where: Prisma.FolderWhereUniqueInput
1750
+ /**
1751
+ * In case the Folder found by the `where` argument doesn't exist, create a new Folder with this data.
1752
+ */
1753
+ create: Prisma.XOR<Prisma.FolderCreateInput, Prisma.FolderUncheckedCreateInput>
1754
+ /**
1755
+ * In case the Folder was found with the provided `where` argument, update it with this data.
1756
+ */
1757
+ update: Prisma.XOR<Prisma.FolderUpdateInput, Prisma.FolderUncheckedUpdateInput>
1758
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
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
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1782
+ }
1783
+
1784
+ /**
1785
+ * Folder deleteMany
1786
+ */
1787
+ export type FolderDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1788
+ /**
1789
+ * Filter which Folders to delete
1790
+ */
1791
+ where?: Prisma.FolderWhereInput
1792
+ /**
1793
+ * Limit how many Folders to delete.
1794
+ */
1795
+ limit?: number
1796
+ }
1797
+
1798
+ /**
1799
+ * Folder.parent
1800
+ */
1801
+ export type Folder$parentArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1802
+ /**
1803
+ * Select specific fields to fetch from the Folder
1804
+ */
1805
+ select?: Prisma.FolderSelect<ExtArgs> | null
1806
+ /**
1807
+ * Omit specific fields from the Folder
1808
+ */
1809
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1810
+ /**
1811
+ * Choose, which related nodes to fetch as well
1812
+ */
1813
+ include?: Prisma.FolderInclude<ExtArgs> | null
1814
+ where?: Prisma.FolderWhereInput
1815
+ }
1816
+
1817
+ /**
1818
+ * Folder.children
1819
+ */
1820
+ export type Folder$childrenArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1821
+ /**
1822
+ * Select specific fields to fetch from the Folder
1823
+ */
1824
+ select?: Prisma.FolderSelect<ExtArgs> | null
1825
+ /**
1826
+ * Omit specific fields from the Folder
1827
+ */
1828
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1829
+ /**
1830
+ * Choose, which related nodes to fetch as well
1831
+ */
1832
+ include?: Prisma.FolderInclude<ExtArgs> | null
1833
+ where?: Prisma.FolderWhereInput
1834
+ orderBy?: Prisma.FolderOrderByWithRelationInput | Prisma.FolderOrderByWithRelationInput[]
1835
+ cursor?: Prisma.FolderWhereUniqueInput
1836
+ take?: number
1837
+ skip?: number
1838
+ distinct?: Prisma.FolderScalarFieldEnum | Prisma.FolderScalarFieldEnum[]
1839
+ }
1840
+
1841
+ /**
1842
+ * Folder.documents
1843
+ */
1844
+ export type Folder$documentsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1845
+ /**
1846
+ * Select specific fields to fetch from the Document
1847
+ */
1848
+ select?: Prisma.DocumentSelect<ExtArgs> | null
1849
+ /**
1850
+ * Omit specific fields from the Document
1851
+ */
1852
+ omit?: Prisma.DocumentOmit<ExtArgs> | null
1853
+ /**
1854
+ * Choose, which related nodes to fetch as well
1855
+ */
1856
+ include?: Prisma.DocumentInclude<ExtArgs> | null
1857
+ where?: Prisma.DocumentWhereInput
1858
+ orderBy?: Prisma.DocumentOrderByWithRelationInput | Prisma.DocumentOrderByWithRelationInput[]
1859
+ cursor?: Prisma.DocumentWhereUniqueInput
1860
+ take?: number
1861
+ skip?: number
1862
+ distinct?: Prisma.DocumentScalarFieldEnum | Prisma.DocumentScalarFieldEnum[]
1863
+ }
1864
+
1865
+ /**
1866
+ * Folder.media
1867
+ */
1868
+ export type Folder$mediaArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1869
+ /**
1870
+ * Select specific fields to fetch from the Media
1871
+ */
1872
+ select?: Prisma.MediaSelect<ExtArgs> | null
1873
+ /**
1874
+ * Omit specific fields from the Media
1875
+ */
1876
+ omit?: Prisma.MediaOmit<ExtArgs> | null
1877
+ /**
1878
+ * Choose, which related nodes to fetch as well
1879
+ */
1880
+ include?: Prisma.MediaInclude<ExtArgs> | null
1881
+ where?: Prisma.MediaWhereInput
1882
+ orderBy?: Prisma.MediaOrderByWithRelationInput | Prisma.MediaOrderByWithRelationInput[]
1883
+ cursor?: Prisma.MediaWhereUniqueInput
1884
+ take?: number
1885
+ skip?: number
1886
+ distinct?: Prisma.MediaScalarFieldEnum | Prisma.MediaScalarFieldEnum[]
1887
+ }
1888
+
1889
+ /**
1890
+ * Folder without action
1891
+ */
1892
+ export type FolderDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1893
+ /**
1894
+ * Select specific fields to fetch from the Folder
1895
+ */
1896
+ select?: Prisma.FolderSelect<ExtArgs> | null
1897
+ /**
1898
+ * Omit specific fields from the Folder
1899
+ */
1900
+ omit?: Prisma.FolderOmit<ExtArgs> | null
1901
+ /**
1902
+ * Choose, which related nodes to fetch as well
1903
+ */
1904
+ include?: Prisma.FolderInclude<ExtArgs> | null
1905
+ }