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