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