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