@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,1315 @@
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 `SavedSection` 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 SavedSection
17
+ *
18
+ */
19
+ export type SavedSectionModel = runtime.Types.Result.DefaultSelection<Prisma.$SavedSectionPayload>
20
+
21
+ export type AggregateSavedSection = {
22
+ _count: SavedSectionCountAggregateOutputType | null
23
+ _avg: SavedSectionAvgAggregateOutputType | null
24
+ _sum: SavedSectionSumAggregateOutputType | null
25
+ _min: SavedSectionMinAggregateOutputType | null
26
+ _max: SavedSectionMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type SavedSectionAvgAggregateOutputType = {
30
+ usageCount: number | null
31
+ }
32
+
33
+ export type SavedSectionSumAggregateOutputType = {
34
+ usageCount: number | null
35
+ }
36
+
37
+ export type SavedSectionMinAggregateOutputType = {
38
+ id: string | null
39
+ name: string | null
40
+ description: string | null
41
+ category: string | null
42
+ thumbnail: string | null
43
+ usageCount: number | null
44
+ createdAt: Date | null
45
+ updatedAt: Date | null
46
+ }
47
+
48
+ export type SavedSectionMaxAggregateOutputType = {
49
+ id: string | null
50
+ name: string | null
51
+ description: string | null
52
+ category: string | null
53
+ thumbnail: string | null
54
+ usageCount: number | null
55
+ createdAt: Date | null
56
+ updatedAt: Date | null
57
+ }
58
+
59
+ export type SavedSectionCountAggregateOutputType = {
60
+ id: number
61
+ name: number
62
+ description: number
63
+ category: number
64
+ tree: number
65
+ thumbnail: number
66
+ usageCount: number
67
+ createdAt: number
68
+ updatedAt: number
69
+ _all: number
70
+ }
71
+
72
+
73
+ export type SavedSectionAvgAggregateInputType = {
74
+ usageCount?: true
75
+ }
76
+
77
+ export type SavedSectionSumAggregateInputType = {
78
+ usageCount?: true
79
+ }
80
+
81
+ export type SavedSectionMinAggregateInputType = {
82
+ id?: true
83
+ name?: true
84
+ description?: true
85
+ category?: true
86
+ thumbnail?: true
87
+ usageCount?: true
88
+ createdAt?: true
89
+ updatedAt?: true
90
+ }
91
+
92
+ export type SavedSectionMaxAggregateInputType = {
93
+ id?: true
94
+ name?: true
95
+ description?: true
96
+ category?: true
97
+ thumbnail?: true
98
+ usageCount?: true
99
+ createdAt?: true
100
+ updatedAt?: true
101
+ }
102
+
103
+ export type SavedSectionCountAggregateInputType = {
104
+ id?: true
105
+ name?: true
106
+ description?: true
107
+ category?: true
108
+ tree?: true
109
+ thumbnail?: true
110
+ usageCount?: true
111
+ createdAt?: true
112
+ updatedAt?: true
113
+ _all?: true
114
+ }
115
+
116
+ export type SavedSectionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
117
+ /**
118
+ * Filter which SavedSection to aggregate.
119
+ */
120
+ where?: Prisma.SavedSectionWhereInput
121
+ /**
122
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
123
+ *
124
+ * Determine the order of SavedSections to fetch.
125
+ */
126
+ orderBy?: Prisma.SavedSectionOrderByWithRelationInput | Prisma.SavedSectionOrderByWithRelationInput[]
127
+ /**
128
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
129
+ *
130
+ * Sets the start position
131
+ */
132
+ cursor?: Prisma.SavedSectionWhereUniqueInput
133
+ /**
134
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
135
+ *
136
+ * Take `±n` SavedSections from the position of the cursor.
137
+ */
138
+ take?: number
139
+ /**
140
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
141
+ *
142
+ * Skip the first `n` SavedSections.
143
+ */
144
+ skip?: number
145
+ /**
146
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
147
+ *
148
+ * Count returned SavedSections
149
+ **/
150
+ _count?: true | SavedSectionCountAggregateInputType
151
+ /**
152
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
153
+ *
154
+ * Select which fields to average
155
+ **/
156
+ _avg?: SavedSectionAvgAggregateInputType
157
+ /**
158
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
159
+ *
160
+ * Select which fields to sum
161
+ **/
162
+ _sum?: SavedSectionSumAggregateInputType
163
+ /**
164
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
165
+ *
166
+ * Select which fields to find the minimum value
167
+ **/
168
+ _min?: SavedSectionMinAggregateInputType
169
+ /**
170
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
171
+ *
172
+ * Select which fields to find the maximum value
173
+ **/
174
+ _max?: SavedSectionMaxAggregateInputType
175
+ }
176
+
177
+ export type GetSavedSectionAggregateType<T extends SavedSectionAggregateArgs> = {
178
+ [P in keyof T & keyof AggregateSavedSection]: P extends '_count' | 'count'
179
+ ? T[P] extends true
180
+ ? number
181
+ : Prisma.GetScalarType<T[P], AggregateSavedSection[P]>
182
+ : Prisma.GetScalarType<T[P], AggregateSavedSection[P]>
183
+ }
184
+
185
+
186
+
187
+
188
+ export type SavedSectionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
189
+ where?: Prisma.SavedSectionWhereInput
190
+ orderBy?: Prisma.SavedSectionOrderByWithAggregationInput | Prisma.SavedSectionOrderByWithAggregationInput[]
191
+ by: Prisma.SavedSectionScalarFieldEnum[] | Prisma.SavedSectionScalarFieldEnum
192
+ having?: Prisma.SavedSectionScalarWhereWithAggregatesInput
193
+ take?: number
194
+ skip?: number
195
+ _count?: SavedSectionCountAggregateInputType | true
196
+ _avg?: SavedSectionAvgAggregateInputType
197
+ _sum?: SavedSectionSumAggregateInputType
198
+ _min?: SavedSectionMinAggregateInputType
199
+ _max?: SavedSectionMaxAggregateInputType
200
+ }
201
+
202
+ export type SavedSectionGroupByOutputType = {
203
+ id: string
204
+ name: string
205
+ description: string | null
206
+ category: string
207
+ tree: runtime.JsonValue
208
+ thumbnail: string | null
209
+ usageCount: number
210
+ createdAt: Date
211
+ updatedAt: Date
212
+ _count: SavedSectionCountAggregateOutputType | null
213
+ _avg: SavedSectionAvgAggregateOutputType | null
214
+ _sum: SavedSectionSumAggregateOutputType | null
215
+ _min: SavedSectionMinAggregateOutputType | null
216
+ _max: SavedSectionMaxAggregateOutputType | null
217
+ }
218
+
219
+ export type GetSavedSectionGroupByPayload<T extends SavedSectionGroupByArgs> = Prisma.PrismaPromise<
220
+ Array<
221
+ Prisma.PickEnumerable<SavedSectionGroupByOutputType, T['by']> &
222
+ {
223
+ [P in ((keyof T) & (keyof SavedSectionGroupByOutputType))]: P extends '_count'
224
+ ? T[P] extends boolean
225
+ ? number
226
+ : Prisma.GetScalarType<T[P], SavedSectionGroupByOutputType[P]>
227
+ : Prisma.GetScalarType<T[P], SavedSectionGroupByOutputType[P]>
228
+ }
229
+ >
230
+ >
231
+
232
+
233
+
234
+ export type SavedSectionWhereInput = {
235
+ AND?: Prisma.SavedSectionWhereInput | Prisma.SavedSectionWhereInput[]
236
+ OR?: Prisma.SavedSectionWhereInput[]
237
+ NOT?: Prisma.SavedSectionWhereInput | Prisma.SavedSectionWhereInput[]
238
+ id?: Prisma.StringFilter<"SavedSection"> | string
239
+ name?: Prisma.StringFilter<"SavedSection"> | string
240
+ description?: Prisma.StringNullableFilter<"SavedSection"> | string | null
241
+ category?: Prisma.StringFilter<"SavedSection"> | string
242
+ tree?: Prisma.JsonFilter<"SavedSection">
243
+ thumbnail?: Prisma.StringNullableFilter<"SavedSection"> | string | null
244
+ usageCount?: Prisma.IntFilter<"SavedSection"> | number
245
+ createdAt?: Prisma.DateTimeFilter<"SavedSection"> | Date | string
246
+ updatedAt?: Prisma.DateTimeFilter<"SavedSection"> | Date | string
247
+ }
248
+
249
+ export type SavedSectionOrderByWithRelationInput = {
250
+ id?: Prisma.SortOrder
251
+ name?: Prisma.SortOrder
252
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
253
+ category?: Prisma.SortOrder
254
+ tree?: Prisma.SortOrder
255
+ thumbnail?: Prisma.SortOrderInput | Prisma.SortOrder
256
+ usageCount?: Prisma.SortOrder
257
+ createdAt?: Prisma.SortOrder
258
+ updatedAt?: Prisma.SortOrder
259
+ _relevance?: Prisma.SavedSectionOrderByRelevanceInput
260
+ }
261
+
262
+ export type SavedSectionWhereUniqueInput = Prisma.AtLeast<{
263
+ id?: string
264
+ AND?: Prisma.SavedSectionWhereInput | Prisma.SavedSectionWhereInput[]
265
+ OR?: Prisma.SavedSectionWhereInput[]
266
+ NOT?: Prisma.SavedSectionWhereInput | Prisma.SavedSectionWhereInput[]
267
+ name?: Prisma.StringFilter<"SavedSection"> | string
268
+ description?: Prisma.StringNullableFilter<"SavedSection"> | string | null
269
+ category?: Prisma.StringFilter<"SavedSection"> | string
270
+ tree?: Prisma.JsonFilter<"SavedSection">
271
+ thumbnail?: Prisma.StringNullableFilter<"SavedSection"> | string | null
272
+ usageCount?: Prisma.IntFilter<"SavedSection"> | number
273
+ createdAt?: Prisma.DateTimeFilter<"SavedSection"> | Date | string
274
+ updatedAt?: Prisma.DateTimeFilter<"SavedSection"> | Date | string
275
+ }, "id">
276
+
277
+ export type SavedSectionOrderByWithAggregationInput = {
278
+ id?: Prisma.SortOrder
279
+ name?: Prisma.SortOrder
280
+ description?: Prisma.SortOrderInput | Prisma.SortOrder
281
+ category?: Prisma.SortOrder
282
+ tree?: Prisma.SortOrder
283
+ thumbnail?: Prisma.SortOrderInput | Prisma.SortOrder
284
+ usageCount?: Prisma.SortOrder
285
+ createdAt?: Prisma.SortOrder
286
+ updatedAt?: Prisma.SortOrder
287
+ _count?: Prisma.SavedSectionCountOrderByAggregateInput
288
+ _avg?: Prisma.SavedSectionAvgOrderByAggregateInput
289
+ _max?: Prisma.SavedSectionMaxOrderByAggregateInput
290
+ _min?: Prisma.SavedSectionMinOrderByAggregateInput
291
+ _sum?: Prisma.SavedSectionSumOrderByAggregateInput
292
+ }
293
+
294
+ export type SavedSectionScalarWhereWithAggregatesInput = {
295
+ AND?: Prisma.SavedSectionScalarWhereWithAggregatesInput | Prisma.SavedSectionScalarWhereWithAggregatesInput[]
296
+ OR?: Prisma.SavedSectionScalarWhereWithAggregatesInput[]
297
+ NOT?: Prisma.SavedSectionScalarWhereWithAggregatesInput | Prisma.SavedSectionScalarWhereWithAggregatesInput[]
298
+ id?: Prisma.StringWithAggregatesFilter<"SavedSection"> | string
299
+ name?: Prisma.StringWithAggregatesFilter<"SavedSection"> | string
300
+ description?: Prisma.StringNullableWithAggregatesFilter<"SavedSection"> | string | null
301
+ category?: Prisma.StringWithAggregatesFilter<"SavedSection"> | string
302
+ tree?: Prisma.JsonWithAggregatesFilter<"SavedSection">
303
+ thumbnail?: Prisma.StringNullableWithAggregatesFilter<"SavedSection"> | string | null
304
+ usageCount?: Prisma.IntWithAggregatesFilter<"SavedSection"> | number
305
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"SavedSection"> | Date | string
306
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"SavedSection"> | Date | string
307
+ }
308
+
309
+ export type SavedSectionCreateInput = {
310
+ id?: string
311
+ name: string
312
+ description?: string | null
313
+ category?: string
314
+ tree: Prisma.JsonNullValueInput | runtime.InputJsonValue
315
+ thumbnail?: string | null
316
+ usageCount?: number
317
+ createdAt?: Date | string
318
+ updatedAt?: Date | string
319
+ }
320
+
321
+ export type SavedSectionUncheckedCreateInput = {
322
+ id?: string
323
+ name: string
324
+ description?: string | null
325
+ category?: string
326
+ tree: Prisma.JsonNullValueInput | runtime.InputJsonValue
327
+ thumbnail?: string | null
328
+ usageCount?: number
329
+ createdAt?: Date | string
330
+ updatedAt?: Date | string
331
+ }
332
+
333
+ export type SavedSectionUpdateInput = {
334
+ id?: Prisma.StringFieldUpdateOperationsInput | string
335
+ name?: Prisma.StringFieldUpdateOperationsInput | string
336
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
337
+ category?: Prisma.StringFieldUpdateOperationsInput | string
338
+ tree?: Prisma.JsonNullValueInput | runtime.InputJsonValue
339
+ thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
340
+ usageCount?: Prisma.IntFieldUpdateOperationsInput | number
341
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
342
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
343
+ }
344
+
345
+ export type SavedSectionUncheckedUpdateInput = {
346
+ id?: Prisma.StringFieldUpdateOperationsInput | string
347
+ name?: Prisma.StringFieldUpdateOperationsInput | string
348
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
349
+ category?: Prisma.StringFieldUpdateOperationsInput | string
350
+ tree?: Prisma.JsonNullValueInput | runtime.InputJsonValue
351
+ thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
352
+ usageCount?: Prisma.IntFieldUpdateOperationsInput | number
353
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
354
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
355
+ }
356
+
357
+ export type SavedSectionCreateManyInput = {
358
+ id?: string
359
+ name: string
360
+ description?: string | null
361
+ category?: string
362
+ tree: Prisma.JsonNullValueInput | runtime.InputJsonValue
363
+ thumbnail?: string | null
364
+ usageCount?: number
365
+ createdAt?: Date | string
366
+ updatedAt?: Date | string
367
+ }
368
+
369
+ export type SavedSectionUpdateManyMutationInput = {
370
+ id?: Prisma.StringFieldUpdateOperationsInput | string
371
+ name?: Prisma.StringFieldUpdateOperationsInput | string
372
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
373
+ category?: Prisma.StringFieldUpdateOperationsInput | string
374
+ tree?: Prisma.JsonNullValueInput | runtime.InputJsonValue
375
+ thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
376
+ usageCount?: Prisma.IntFieldUpdateOperationsInput | number
377
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
378
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
379
+ }
380
+
381
+ export type SavedSectionUncheckedUpdateManyInput = {
382
+ id?: Prisma.StringFieldUpdateOperationsInput | string
383
+ name?: Prisma.StringFieldUpdateOperationsInput | string
384
+ description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
385
+ category?: Prisma.StringFieldUpdateOperationsInput | string
386
+ tree?: Prisma.JsonNullValueInput | runtime.InputJsonValue
387
+ thumbnail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
388
+ usageCount?: Prisma.IntFieldUpdateOperationsInput | number
389
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
390
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
391
+ }
392
+
393
+ export type SavedSectionOrderByRelevanceInput = {
394
+ fields: Prisma.SavedSectionOrderByRelevanceFieldEnum | Prisma.SavedSectionOrderByRelevanceFieldEnum[]
395
+ sort: Prisma.SortOrder
396
+ search: string
397
+ }
398
+
399
+ export type SavedSectionCountOrderByAggregateInput = {
400
+ id?: Prisma.SortOrder
401
+ name?: Prisma.SortOrder
402
+ description?: Prisma.SortOrder
403
+ category?: Prisma.SortOrder
404
+ tree?: Prisma.SortOrder
405
+ thumbnail?: Prisma.SortOrder
406
+ usageCount?: Prisma.SortOrder
407
+ createdAt?: Prisma.SortOrder
408
+ updatedAt?: Prisma.SortOrder
409
+ }
410
+
411
+ export type SavedSectionAvgOrderByAggregateInput = {
412
+ usageCount?: Prisma.SortOrder
413
+ }
414
+
415
+ export type SavedSectionMaxOrderByAggregateInput = {
416
+ id?: Prisma.SortOrder
417
+ name?: Prisma.SortOrder
418
+ description?: Prisma.SortOrder
419
+ category?: Prisma.SortOrder
420
+ thumbnail?: Prisma.SortOrder
421
+ usageCount?: Prisma.SortOrder
422
+ createdAt?: Prisma.SortOrder
423
+ updatedAt?: Prisma.SortOrder
424
+ }
425
+
426
+ export type SavedSectionMinOrderByAggregateInput = {
427
+ id?: Prisma.SortOrder
428
+ name?: Prisma.SortOrder
429
+ description?: Prisma.SortOrder
430
+ category?: Prisma.SortOrder
431
+ thumbnail?: Prisma.SortOrder
432
+ usageCount?: Prisma.SortOrder
433
+ createdAt?: Prisma.SortOrder
434
+ updatedAt?: Prisma.SortOrder
435
+ }
436
+
437
+ export type SavedSectionSumOrderByAggregateInput = {
438
+ usageCount?: Prisma.SortOrder
439
+ }
440
+
441
+
442
+
443
+ export type SavedSectionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
444
+ id?: boolean
445
+ name?: boolean
446
+ description?: boolean
447
+ category?: boolean
448
+ tree?: boolean
449
+ thumbnail?: boolean
450
+ usageCount?: boolean
451
+ createdAt?: boolean
452
+ updatedAt?: boolean
453
+ }, ExtArgs["result"]["savedSection"]>
454
+
455
+ export type SavedSectionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
456
+ id?: boolean
457
+ name?: boolean
458
+ description?: boolean
459
+ category?: boolean
460
+ tree?: boolean
461
+ thumbnail?: boolean
462
+ usageCount?: boolean
463
+ createdAt?: boolean
464
+ updatedAt?: boolean
465
+ }, ExtArgs["result"]["savedSection"]>
466
+
467
+ export type SavedSectionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
468
+ id?: boolean
469
+ name?: boolean
470
+ description?: boolean
471
+ category?: boolean
472
+ tree?: boolean
473
+ thumbnail?: boolean
474
+ usageCount?: boolean
475
+ createdAt?: boolean
476
+ updatedAt?: boolean
477
+ }, ExtArgs["result"]["savedSection"]>
478
+
479
+ export type SavedSectionSelectScalar = {
480
+ id?: boolean
481
+ name?: boolean
482
+ description?: boolean
483
+ category?: boolean
484
+ tree?: boolean
485
+ thumbnail?: boolean
486
+ usageCount?: boolean
487
+ createdAt?: boolean
488
+ updatedAt?: boolean
489
+ }
490
+
491
+ export type SavedSectionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "category" | "tree" | "thumbnail" | "usageCount" | "createdAt" | "updatedAt", ExtArgs["result"]["savedSection"]>
492
+
493
+ export type $SavedSectionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
494
+ name: "SavedSection"
495
+ objects: {}
496
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
497
+ id: string
498
+ name: string
499
+ description: string | null
500
+ category: string
501
+ tree: runtime.JsonValue
502
+ thumbnail: string | null
503
+ usageCount: number
504
+ createdAt: Date
505
+ updatedAt: Date
506
+ }, ExtArgs["result"]["savedSection"]>
507
+ composites: {}
508
+ }
509
+
510
+ export type SavedSectionGetPayload<S extends boolean | null | undefined | SavedSectionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload, S>
511
+
512
+ export type SavedSectionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
513
+ Omit<SavedSectionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
514
+ select?: SavedSectionCountAggregateInputType | true
515
+ }
516
+
517
+ export interface SavedSectionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
518
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['SavedSection'], meta: { name: 'SavedSection' } }
519
+ /**
520
+ * Find zero or one SavedSection that matches the filter.
521
+ * @param {SavedSectionFindUniqueArgs} args - Arguments to find a SavedSection
522
+ * @example
523
+ * // Get one SavedSection
524
+ * const savedSection = await prisma.savedSection.findUnique({
525
+ * where: {
526
+ * // ... provide filter here
527
+ * }
528
+ * })
529
+ */
530
+ findUnique<T extends SavedSectionFindUniqueArgs>(args: Prisma.SelectSubset<T, SavedSectionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__SavedSectionClient<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
531
+
532
+ /**
533
+ * Find one SavedSection that matches the filter or throw an error with `error.code='P2025'`
534
+ * if no matches were found.
535
+ * @param {SavedSectionFindUniqueOrThrowArgs} args - Arguments to find a SavedSection
536
+ * @example
537
+ * // Get one SavedSection
538
+ * const savedSection = await prisma.savedSection.findUniqueOrThrow({
539
+ * where: {
540
+ * // ... provide filter here
541
+ * }
542
+ * })
543
+ */
544
+ findUniqueOrThrow<T extends SavedSectionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, SavedSectionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__SavedSectionClient<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
545
+
546
+ /**
547
+ * Find the first SavedSection that matches the filter.
548
+ * Note, that providing `undefined` is treated as the value not being there.
549
+ * Read more here: https://pris.ly/d/null-undefined
550
+ * @param {SavedSectionFindFirstArgs} args - Arguments to find a SavedSection
551
+ * @example
552
+ * // Get one SavedSection
553
+ * const savedSection = await prisma.savedSection.findFirst({
554
+ * where: {
555
+ * // ... provide filter here
556
+ * }
557
+ * })
558
+ */
559
+ findFirst<T extends SavedSectionFindFirstArgs>(args?: Prisma.SelectSubset<T, SavedSectionFindFirstArgs<ExtArgs>>): Prisma.Prisma__SavedSectionClient<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
560
+
561
+ /**
562
+ * Find the first SavedSection that matches the filter or
563
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
564
+ * Note, that providing `undefined` is treated as the value not being there.
565
+ * Read more here: https://pris.ly/d/null-undefined
566
+ * @param {SavedSectionFindFirstOrThrowArgs} args - Arguments to find a SavedSection
567
+ * @example
568
+ * // Get one SavedSection
569
+ * const savedSection = await prisma.savedSection.findFirstOrThrow({
570
+ * where: {
571
+ * // ... provide filter here
572
+ * }
573
+ * })
574
+ */
575
+ findFirstOrThrow<T extends SavedSectionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, SavedSectionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__SavedSectionClient<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
576
+
577
+ /**
578
+ * Find zero or more SavedSections that matches the filter.
579
+ * Note, that providing `undefined` is treated as the value not being there.
580
+ * Read more here: https://pris.ly/d/null-undefined
581
+ * @param {SavedSectionFindManyArgs} args - Arguments to filter and select certain fields only.
582
+ * @example
583
+ * // Get all SavedSections
584
+ * const savedSections = await prisma.savedSection.findMany()
585
+ *
586
+ * // Get first 10 SavedSections
587
+ * const savedSections = await prisma.savedSection.findMany({ take: 10 })
588
+ *
589
+ * // Only select the `id`
590
+ * const savedSectionWithIdOnly = await prisma.savedSection.findMany({ select: { id: true } })
591
+ *
592
+ */
593
+ findMany<T extends SavedSectionFindManyArgs>(args?: Prisma.SelectSubset<T, SavedSectionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
594
+
595
+ /**
596
+ * Create a SavedSection.
597
+ * @param {SavedSectionCreateArgs} args - Arguments to create a SavedSection.
598
+ * @example
599
+ * // Create one SavedSection
600
+ * const SavedSection = await prisma.savedSection.create({
601
+ * data: {
602
+ * // ... data to create a SavedSection
603
+ * }
604
+ * })
605
+ *
606
+ */
607
+ create<T extends SavedSectionCreateArgs>(args: Prisma.SelectSubset<T, SavedSectionCreateArgs<ExtArgs>>): Prisma.Prisma__SavedSectionClient<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
608
+
609
+ /**
610
+ * Create many SavedSections.
611
+ * @param {SavedSectionCreateManyArgs} args - Arguments to create many SavedSections.
612
+ * @example
613
+ * // Create many SavedSections
614
+ * const savedSection = await prisma.savedSection.createMany({
615
+ * data: [
616
+ * // ... provide data here
617
+ * ]
618
+ * })
619
+ *
620
+ */
621
+ createMany<T extends SavedSectionCreateManyArgs>(args?: Prisma.SelectSubset<T, SavedSectionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
622
+
623
+ /**
624
+ * Create many SavedSections and returns the data saved in the database.
625
+ * @param {SavedSectionCreateManyAndReturnArgs} args - Arguments to create many SavedSections.
626
+ * @example
627
+ * // Create many SavedSections
628
+ * const savedSection = await prisma.savedSection.createManyAndReturn({
629
+ * data: [
630
+ * // ... provide data here
631
+ * ]
632
+ * })
633
+ *
634
+ * // Create many SavedSections and only return the `id`
635
+ * const savedSectionWithIdOnly = await prisma.savedSection.createManyAndReturn({
636
+ * select: { id: true },
637
+ * data: [
638
+ * // ... provide data here
639
+ * ]
640
+ * })
641
+ * Note, that providing `undefined` is treated as the value not being there.
642
+ * Read more here: https://pris.ly/d/null-undefined
643
+ *
644
+ */
645
+ createManyAndReturn<T extends SavedSectionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, SavedSectionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
646
+
647
+ /**
648
+ * Delete a SavedSection.
649
+ * @param {SavedSectionDeleteArgs} args - Arguments to delete one SavedSection.
650
+ * @example
651
+ * // Delete one SavedSection
652
+ * const SavedSection = await prisma.savedSection.delete({
653
+ * where: {
654
+ * // ... filter to delete one SavedSection
655
+ * }
656
+ * })
657
+ *
658
+ */
659
+ delete<T extends SavedSectionDeleteArgs>(args: Prisma.SelectSubset<T, SavedSectionDeleteArgs<ExtArgs>>): Prisma.Prisma__SavedSectionClient<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
660
+
661
+ /**
662
+ * Update one SavedSection.
663
+ * @param {SavedSectionUpdateArgs} args - Arguments to update one SavedSection.
664
+ * @example
665
+ * // Update one SavedSection
666
+ * const savedSection = await prisma.savedSection.update({
667
+ * where: {
668
+ * // ... provide filter here
669
+ * },
670
+ * data: {
671
+ * // ... provide data here
672
+ * }
673
+ * })
674
+ *
675
+ */
676
+ update<T extends SavedSectionUpdateArgs>(args: Prisma.SelectSubset<T, SavedSectionUpdateArgs<ExtArgs>>): Prisma.Prisma__SavedSectionClient<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
677
+
678
+ /**
679
+ * Delete zero or more SavedSections.
680
+ * @param {SavedSectionDeleteManyArgs} args - Arguments to filter SavedSections to delete.
681
+ * @example
682
+ * // Delete a few SavedSections
683
+ * const { count } = await prisma.savedSection.deleteMany({
684
+ * where: {
685
+ * // ... provide filter here
686
+ * }
687
+ * })
688
+ *
689
+ */
690
+ deleteMany<T extends SavedSectionDeleteManyArgs>(args?: Prisma.SelectSubset<T, SavedSectionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
691
+
692
+ /**
693
+ * Update zero or more SavedSections.
694
+ * Note, that providing `undefined` is treated as the value not being there.
695
+ * Read more here: https://pris.ly/d/null-undefined
696
+ * @param {SavedSectionUpdateManyArgs} args - Arguments to update one or more rows.
697
+ * @example
698
+ * // Update many SavedSections
699
+ * const savedSection = await prisma.savedSection.updateMany({
700
+ * where: {
701
+ * // ... provide filter here
702
+ * },
703
+ * data: {
704
+ * // ... provide data here
705
+ * }
706
+ * })
707
+ *
708
+ */
709
+ updateMany<T extends SavedSectionUpdateManyArgs>(args: Prisma.SelectSubset<T, SavedSectionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
710
+
711
+ /**
712
+ * Update zero or more SavedSections and returns the data updated in the database.
713
+ * @param {SavedSectionUpdateManyAndReturnArgs} args - Arguments to update many SavedSections.
714
+ * @example
715
+ * // Update many SavedSections
716
+ * const savedSection = await prisma.savedSection.updateManyAndReturn({
717
+ * where: {
718
+ * // ... provide filter here
719
+ * },
720
+ * data: [
721
+ * // ... provide data here
722
+ * ]
723
+ * })
724
+ *
725
+ * // Update zero or more SavedSections and only return the `id`
726
+ * const savedSectionWithIdOnly = await prisma.savedSection.updateManyAndReturn({
727
+ * select: { id: true },
728
+ * where: {
729
+ * // ... provide filter here
730
+ * },
731
+ * data: [
732
+ * // ... provide data here
733
+ * ]
734
+ * })
735
+ * Note, that providing `undefined` is treated as the value not being there.
736
+ * Read more here: https://pris.ly/d/null-undefined
737
+ *
738
+ */
739
+ updateManyAndReturn<T extends SavedSectionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, SavedSectionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
740
+
741
+ /**
742
+ * Create or update one SavedSection.
743
+ * @param {SavedSectionUpsertArgs} args - Arguments to update or create a SavedSection.
744
+ * @example
745
+ * // Update or create a SavedSection
746
+ * const savedSection = await prisma.savedSection.upsert({
747
+ * create: {
748
+ * // ... data to create a SavedSection
749
+ * },
750
+ * update: {
751
+ * // ... in case it already exists, update
752
+ * },
753
+ * where: {
754
+ * // ... the filter for the SavedSection we want to update
755
+ * }
756
+ * })
757
+ */
758
+ upsert<T extends SavedSectionUpsertArgs>(args: Prisma.SelectSubset<T, SavedSectionUpsertArgs<ExtArgs>>): Prisma.Prisma__SavedSectionClient<runtime.Types.Result.GetResult<Prisma.$SavedSectionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
759
+
760
+
761
+ /**
762
+ * Count the number of SavedSections.
763
+ * Note, that providing `undefined` is treated as the value not being there.
764
+ * Read more here: https://pris.ly/d/null-undefined
765
+ * @param {SavedSectionCountArgs} args - Arguments to filter SavedSections to count.
766
+ * @example
767
+ * // Count the number of SavedSections
768
+ * const count = await prisma.savedSection.count({
769
+ * where: {
770
+ * // ... the filter for the SavedSections we want to count
771
+ * }
772
+ * })
773
+ **/
774
+ count<T extends SavedSectionCountArgs>(
775
+ args?: Prisma.Subset<T, SavedSectionCountArgs>,
776
+ ): Prisma.PrismaPromise<
777
+ T extends runtime.Types.Utils.Record<'select', any>
778
+ ? T['select'] extends true
779
+ ? number
780
+ : Prisma.GetScalarType<T['select'], SavedSectionCountAggregateOutputType>
781
+ : number
782
+ >
783
+
784
+ /**
785
+ * Allows you to perform aggregations operations on a SavedSection.
786
+ * Note, that providing `undefined` is treated as the value not being there.
787
+ * Read more here: https://pris.ly/d/null-undefined
788
+ * @param {SavedSectionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
789
+ * @example
790
+ * // Ordered by age ascending
791
+ * // Where email contains prisma.io
792
+ * // Limited to the 10 users
793
+ * const aggregations = await prisma.user.aggregate({
794
+ * _avg: {
795
+ * age: true,
796
+ * },
797
+ * where: {
798
+ * email: {
799
+ * contains: "prisma.io",
800
+ * },
801
+ * },
802
+ * orderBy: {
803
+ * age: "asc",
804
+ * },
805
+ * take: 10,
806
+ * })
807
+ **/
808
+ aggregate<T extends SavedSectionAggregateArgs>(args: Prisma.Subset<T, SavedSectionAggregateArgs>): Prisma.PrismaPromise<GetSavedSectionAggregateType<T>>
809
+
810
+ /**
811
+ * Group by SavedSection.
812
+ * Note, that providing `undefined` is treated as the value not being there.
813
+ * Read more here: https://pris.ly/d/null-undefined
814
+ * @param {SavedSectionGroupByArgs} args - Group by arguments.
815
+ * @example
816
+ * // Group by city, order by createdAt, get count
817
+ * const result = await prisma.user.groupBy({
818
+ * by: ['city', 'createdAt'],
819
+ * orderBy: {
820
+ * createdAt: true
821
+ * },
822
+ * _count: {
823
+ * _all: true
824
+ * },
825
+ * })
826
+ *
827
+ **/
828
+ groupBy<
829
+ T extends SavedSectionGroupByArgs,
830
+ HasSelectOrTake extends Prisma.Or<
831
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
832
+ Prisma.Extends<'take', Prisma.Keys<T>>
833
+ >,
834
+ OrderByArg extends Prisma.True extends HasSelectOrTake
835
+ ? { orderBy: SavedSectionGroupByArgs['orderBy'] }
836
+ : { orderBy?: SavedSectionGroupByArgs['orderBy'] },
837
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
838
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
839
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
840
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
841
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
842
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
843
+ InputErrors extends ByEmpty extends Prisma.True
844
+ ? `Error: "by" must not be empty.`
845
+ : HavingValid extends Prisma.False
846
+ ? {
847
+ [P in HavingFields]: P extends ByFields
848
+ ? never
849
+ : P extends string
850
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
851
+ : [
852
+ Error,
853
+ 'Field ',
854
+ P,
855
+ ` in "having" needs to be provided in "by"`,
856
+ ]
857
+ }[HavingFields]
858
+ : 'take' extends Prisma.Keys<T>
859
+ ? 'orderBy' extends Prisma.Keys<T>
860
+ ? ByValid extends Prisma.True
861
+ ? {}
862
+ : {
863
+ [P in OrderFields]: P extends ByFields
864
+ ? never
865
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
866
+ }[OrderFields]
867
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
868
+ : 'skip' extends Prisma.Keys<T>
869
+ ? 'orderBy' extends Prisma.Keys<T>
870
+ ? ByValid extends Prisma.True
871
+ ? {}
872
+ : {
873
+ [P in OrderFields]: P extends ByFields
874
+ ? never
875
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
876
+ }[OrderFields]
877
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
878
+ : ByValid extends Prisma.True
879
+ ? {}
880
+ : {
881
+ [P in OrderFields]: P extends ByFields
882
+ ? never
883
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
884
+ }[OrderFields]
885
+ >(args: Prisma.SubsetIntersection<T, SavedSectionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSavedSectionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
886
+ /**
887
+ * Fields of the SavedSection model
888
+ */
889
+ readonly fields: SavedSectionFieldRefs;
890
+ }
891
+
892
+ /**
893
+ * The delegate class that acts as a "Promise-like" for SavedSection.
894
+ * Why is this prefixed with `Prisma__`?
895
+ * Because we want to prevent naming conflicts as mentioned in
896
+ * https://github.com/prisma/prisma-client-js/issues/707
897
+ */
898
+ export interface Prisma__SavedSectionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
899
+ readonly [Symbol.toStringTag]: "PrismaPromise"
900
+ /**
901
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
902
+ * @param onfulfilled The callback to execute when the Promise is resolved.
903
+ * @param onrejected The callback to execute when the Promise is rejected.
904
+ * @returns A Promise for the completion of which ever callback is executed.
905
+ */
906
+ 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>
907
+ /**
908
+ * Attaches a callback for only the rejection of the Promise.
909
+ * @param onrejected The callback to execute when the Promise is rejected.
910
+ * @returns A Promise for the completion of the callback.
911
+ */
912
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
913
+ /**
914
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
915
+ * resolved value cannot be modified from the callback.
916
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
917
+ * @returns A Promise for the completion of the callback.
918
+ */
919
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
920
+ }
921
+
922
+
923
+
924
+
925
+ /**
926
+ * Fields of the SavedSection model
927
+ */
928
+ export interface SavedSectionFieldRefs {
929
+ readonly id: Prisma.FieldRef<"SavedSection", 'String'>
930
+ readonly name: Prisma.FieldRef<"SavedSection", 'String'>
931
+ readonly description: Prisma.FieldRef<"SavedSection", 'String'>
932
+ readonly category: Prisma.FieldRef<"SavedSection", 'String'>
933
+ readonly tree: Prisma.FieldRef<"SavedSection", 'Json'>
934
+ readonly thumbnail: Prisma.FieldRef<"SavedSection", 'String'>
935
+ readonly usageCount: Prisma.FieldRef<"SavedSection", 'Int'>
936
+ readonly createdAt: Prisma.FieldRef<"SavedSection", 'DateTime'>
937
+ readonly updatedAt: Prisma.FieldRef<"SavedSection", 'DateTime'>
938
+ }
939
+
940
+
941
+ // Custom InputTypes
942
+ /**
943
+ * SavedSection findUnique
944
+ */
945
+ export type SavedSectionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
946
+ /**
947
+ * Select specific fields to fetch from the SavedSection
948
+ */
949
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
950
+ /**
951
+ * Omit specific fields from the SavedSection
952
+ */
953
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
954
+ /**
955
+ * Filter, which SavedSection to fetch.
956
+ */
957
+ where: Prisma.SavedSectionWhereUniqueInput
958
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
959
+ }
960
+
961
+ /**
962
+ * SavedSection findUniqueOrThrow
963
+ */
964
+ export type SavedSectionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
965
+ /**
966
+ * Select specific fields to fetch from the SavedSection
967
+ */
968
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
969
+ /**
970
+ * Omit specific fields from the SavedSection
971
+ */
972
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
973
+ /**
974
+ * Filter, which SavedSection to fetch.
975
+ */
976
+ where: Prisma.SavedSectionWhereUniqueInput
977
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
978
+ }
979
+
980
+ /**
981
+ * SavedSection findFirst
982
+ */
983
+ export type SavedSectionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
984
+ /**
985
+ * Select specific fields to fetch from the SavedSection
986
+ */
987
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
988
+ /**
989
+ * Omit specific fields from the SavedSection
990
+ */
991
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
992
+ /**
993
+ * Filter, which SavedSection to fetch.
994
+ */
995
+ where?: Prisma.SavedSectionWhereInput
996
+ /**
997
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
998
+ *
999
+ * Determine the order of SavedSections to fetch.
1000
+ */
1001
+ orderBy?: Prisma.SavedSectionOrderByWithRelationInput | Prisma.SavedSectionOrderByWithRelationInput[]
1002
+ /**
1003
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1004
+ *
1005
+ * Sets the position for searching for SavedSections.
1006
+ */
1007
+ cursor?: Prisma.SavedSectionWhereUniqueInput
1008
+ /**
1009
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1010
+ *
1011
+ * Take `±n` SavedSections from the position of the cursor.
1012
+ */
1013
+ take?: number
1014
+ /**
1015
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1016
+ *
1017
+ * Skip the first `n` SavedSections.
1018
+ */
1019
+ skip?: number
1020
+ /**
1021
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1022
+ *
1023
+ * Filter by unique combinations of SavedSections.
1024
+ */
1025
+ distinct?: Prisma.SavedSectionScalarFieldEnum | Prisma.SavedSectionScalarFieldEnum[]
1026
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1027
+ }
1028
+
1029
+ /**
1030
+ * SavedSection findFirstOrThrow
1031
+ */
1032
+ export type SavedSectionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1033
+ /**
1034
+ * Select specific fields to fetch from the SavedSection
1035
+ */
1036
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
1037
+ /**
1038
+ * Omit specific fields from the SavedSection
1039
+ */
1040
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
1041
+ /**
1042
+ * Filter, which SavedSection to fetch.
1043
+ */
1044
+ where?: Prisma.SavedSectionWhereInput
1045
+ /**
1046
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1047
+ *
1048
+ * Determine the order of SavedSections to fetch.
1049
+ */
1050
+ orderBy?: Prisma.SavedSectionOrderByWithRelationInput | Prisma.SavedSectionOrderByWithRelationInput[]
1051
+ /**
1052
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1053
+ *
1054
+ * Sets the position for searching for SavedSections.
1055
+ */
1056
+ cursor?: Prisma.SavedSectionWhereUniqueInput
1057
+ /**
1058
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1059
+ *
1060
+ * Take `±n` SavedSections from the position of the cursor.
1061
+ */
1062
+ take?: number
1063
+ /**
1064
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1065
+ *
1066
+ * Skip the first `n` SavedSections.
1067
+ */
1068
+ skip?: number
1069
+ /**
1070
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1071
+ *
1072
+ * Filter by unique combinations of SavedSections.
1073
+ */
1074
+ distinct?: Prisma.SavedSectionScalarFieldEnum | Prisma.SavedSectionScalarFieldEnum[]
1075
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1076
+ }
1077
+
1078
+ /**
1079
+ * SavedSection findMany
1080
+ */
1081
+ export type SavedSectionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1082
+ /**
1083
+ * Select specific fields to fetch from the SavedSection
1084
+ */
1085
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
1086
+ /**
1087
+ * Omit specific fields from the SavedSection
1088
+ */
1089
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
1090
+ /**
1091
+ * Filter, which SavedSections to fetch.
1092
+ */
1093
+ where?: Prisma.SavedSectionWhereInput
1094
+ /**
1095
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1096
+ *
1097
+ * Determine the order of SavedSections to fetch.
1098
+ */
1099
+ orderBy?: Prisma.SavedSectionOrderByWithRelationInput | Prisma.SavedSectionOrderByWithRelationInput[]
1100
+ /**
1101
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1102
+ *
1103
+ * Sets the position for listing SavedSections.
1104
+ */
1105
+ cursor?: Prisma.SavedSectionWhereUniqueInput
1106
+ /**
1107
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1108
+ *
1109
+ * Take `±n` SavedSections from the position of the cursor.
1110
+ */
1111
+ take?: number
1112
+ /**
1113
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1114
+ *
1115
+ * Skip the first `n` SavedSections.
1116
+ */
1117
+ skip?: number
1118
+ /**
1119
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1120
+ *
1121
+ * Filter by unique combinations of SavedSections.
1122
+ */
1123
+ distinct?: Prisma.SavedSectionScalarFieldEnum | Prisma.SavedSectionScalarFieldEnum[]
1124
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1125
+ }
1126
+
1127
+ /**
1128
+ * SavedSection create
1129
+ */
1130
+ export type SavedSectionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1131
+ /**
1132
+ * Select specific fields to fetch from the SavedSection
1133
+ */
1134
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
1135
+ /**
1136
+ * Omit specific fields from the SavedSection
1137
+ */
1138
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
1139
+ /**
1140
+ * The data needed to create a SavedSection.
1141
+ */
1142
+ data: Prisma.XOR<Prisma.SavedSectionCreateInput, Prisma.SavedSectionUncheckedCreateInput>
1143
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1144
+ }
1145
+
1146
+ /**
1147
+ * SavedSection createMany
1148
+ */
1149
+ export type SavedSectionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1150
+ /**
1151
+ * The data used to create many SavedSections.
1152
+ */
1153
+ data: Prisma.SavedSectionCreateManyInput | Prisma.SavedSectionCreateManyInput[]
1154
+ skipDuplicates?: boolean
1155
+ }
1156
+
1157
+ /**
1158
+ * SavedSection createManyAndReturn
1159
+ */
1160
+ export type SavedSectionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1161
+ /**
1162
+ * Select specific fields to fetch from the SavedSection
1163
+ */
1164
+ select?: Prisma.SavedSectionSelectCreateManyAndReturn<ExtArgs> | null
1165
+ /**
1166
+ * Omit specific fields from the SavedSection
1167
+ */
1168
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
1169
+ /**
1170
+ * The data used to create many SavedSections.
1171
+ */
1172
+ data: Prisma.SavedSectionCreateManyInput | Prisma.SavedSectionCreateManyInput[]
1173
+ skipDuplicates?: boolean
1174
+ }
1175
+
1176
+ /**
1177
+ * SavedSection update
1178
+ */
1179
+ export type SavedSectionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1180
+ /**
1181
+ * Select specific fields to fetch from the SavedSection
1182
+ */
1183
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
1184
+ /**
1185
+ * Omit specific fields from the SavedSection
1186
+ */
1187
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
1188
+ /**
1189
+ * The data needed to update a SavedSection.
1190
+ */
1191
+ data: Prisma.XOR<Prisma.SavedSectionUpdateInput, Prisma.SavedSectionUncheckedUpdateInput>
1192
+ /**
1193
+ * Choose, which SavedSection to update.
1194
+ */
1195
+ where: Prisma.SavedSectionWhereUniqueInput
1196
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1197
+ }
1198
+
1199
+ /**
1200
+ * SavedSection updateMany
1201
+ */
1202
+ export type SavedSectionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1203
+ /**
1204
+ * The data used to update SavedSections.
1205
+ */
1206
+ data: Prisma.XOR<Prisma.SavedSectionUpdateManyMutationInput, Prisma.SavedSectionUncheckedUpdateManyInput>
1207
+ /**
1208
+ * Filter which SavedSections to update
1209
+ */
1210
+ where?: Prisma.SavedSectionWhereInput
1211
+ /**
1212
+ * Limit how many SavedSections to update.
1213
+ */
1214
+ limit?: number
1215
+ }
1216
+
1217
+ /**
1218
+ * SavedSection updateManyAndReturn
1219
+ */
1220
+ export type SavedSectionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1221
+ /**
1222
+ * Select specific fields to fetch from the SavedSection
1223
+ */
1224
+ select?: Prisma.SavedSectionSelectUpdateManyAndReturn<ExtArgs> | null
1225
+ /**
1226
+ * Omit specific fields from the SavedSection
1227
+ */
1228
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
1229
+ /**
1230
+ * The data used to update SavedSections.
1231
+ */
1232
+ data: Prisma.XOR<Prisma.SavedSectionUpdateManyMutationInput, Prisma.SavedSectionUncheckedUpdateManyInput>
1233
+ /**
1234
+ * Filter which SavedSections to update
1235
+ */
1236
+ where?: Prisma.SavedSectionWhereInput
1237
+ /**
1238
+ * Limit how many SavedSections to update.
1239
+ */
1240
+ limit?: number
1241
+ }
1242
+
1243
+ /**
1244
+ * SavedSection upsert
1245
+ */
1246
+ export type SavedSectionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1247
+ /**
1248
+ * Select specific fields to fetch from the SavedSection
1249
+ */
1250
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
1251
+ /**
1252
+ * Omit specific fields from the SavedSection
1253
+ */
1254
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
1255
+ /**
1256
+ * The filter to search for the SavedSection to update in case it exists.
1257
+ */
1258
+ where: Prisma.SavedSectionWhereUniqueInput
1259
+ /**
1260
+ * In case the SavedSection found by the `where` argument doesn't exist, create a new SavedSection with this data.
1261
+ */
1262
+ create: Prisma.XOR<Prisma.SavedSectionCreateInput, Prisma.SavedSectionUncheckedCreateInput>
1263
+ /**
1264
+ * In case the SavedSection was found with the provided `where` argument, update it with this data.
1265
+ */
1266
+ update: Prisma.XOR<Prisma.SavedSectionUpdateInput, Prisma.SavedSectionUncheckedUpdateInput>
1267
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1268
+ }
1269
+
1270
+ /**
1271
+ * SavedSection delete
1272
+ */
1273
+ export type SavedSectionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1274
+ /**
1275
+ * Select specific fields to fetch from the SavedSection
1276
+ */
1277
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
1278
+ /**
1279
+ * Omit specific fields from the SavedSection
1280
+ */
1281
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
1282
+ /**
1283
+ * Filter which SavedSection to delete.
1284
+ */
1285
+ where: Prisma.SavedSectionWhereUniqueInput
1286
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1287
+ }
1288
+
1289
+ /**
1290
+ * SavedSection deleteMany
1291
+ */
1292
+ export type SavedSectionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1293
+ /**
1294
+ * Filter which SavedSections to delete
1295
+ */
1296
+ where?: Prisma.SavedSectionWhereInput
1297
+ /**
1298
+ * Limit how many SavedSections to delete.
1299
+ */
1300
+ limit?: number
1301
+ }
1302
+
1303
+ /**
1304
+ * SavedSection without action
1305
+ */
1306
+ export type SavedSectionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1307
+ /**
1308
+ * Select specific fields to fetch from the SavedSection
1309
+ */
1310
+ select?: Prisma.SavedSectionSelect<ExtArgs> | null
1311
+ /**
1312
+ * Omit specific fields from the SavedSection
1313
+ */
1314
+ omit?: Prisma.SavedSectionOmit<ExtArgs> | null
1315
+ }