@actuate-media/cms-core 0.2.3 → 0.3.1

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