@actuate-media/cms-core 0.90.0 → 0.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/CHANGELOG.md +69 -0
  2. package/dist/actions.d.ts +31 -1
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +76 -21
  5. package/dist/actions.js.map +1 -1
  6. package/dist/api/route-helpers.d.ts +4 -1
  7. package/dist/api/route-helpers.d.ts.map +1 -1
  8. package/dist/api/route-helpers.js +2 -2
  9. package/dist/api/route-helpers.js.map +1 -1
  10. package/dist/api/routes/documents.d.ts.map +1 -1
  11. package/dist/api/routes/documents.js +4 -1
  12. package/dist/api/routes/documents.js.map +1 -1
  13. package/dist/api/routes/media.d.ts.map +1 -1
  14. package/dist/api/routes/media.js +10 -0
  15. package/dist/api/routes/media.js.map +1 -1
  16. package/dist/api/routes/url-resolution.d.ts.map +1 -1
  17. package/dist/api/routes/url-resolution.js +4 -1
  18. package/dist/api/routes/url-resolution.js.map +1 -1
  19. package/dist/config/index.d.ts +16 -0
  20. package/dist/config/index.d.ts.map +1 -1
  21. package/dist/config/index.js +59 -2
  22. package/dist/config/index.js.map +1 -1
  23. package/dist/config/runtime.d.ts +8 -0
  24. package/dist/config/runtime.d.ts.map +1 -1
  25. package/dist/config/runtime.js.map +1 -1
  26. package/dist/config/types.d.ts +35 -4
  27. package/dist/config/types.d.ts.map +1 -1
  28. package/dist/index.d.ts +3 -1
  29. package/dist/index.d.ts.map +1 -1
  30. package/dist/index.js +1 -0
  31. package/dist/index.js.map +1 -1
  32. package/dist/media/usage-sync.d.ts +37 -0
  33. package/dist/media/usage-sync.d.ts.map +1 -0
  34. package/dist/media/usage-sync.js +234 -0
  35. package/dist/media/usage-sync.js.map +1 -0
  36. package/dist/realtime/comments.d.ts +1 -1
  37. package/dist/realtime/comments.js +1 -1
  38. package/dist/realtime/notifications.d.ts +1 -1
  39. package/dist/realtime/notifications.js +1 -1
  40. package/dist/realtime/persistence.d.ts +1 -1
  41. package/dist/search/index.d.ts.map +1 -1
  42. package/dist/search/index.js +58 -35
  43. package/dist/search/index.js.map +1 -1
  44. package/generated/browser.ts +229 -0
  45. package/generated/client.ts +253 -0
  46. package/generated/commonInputTypes.ts +1024 -0
  47. package/generated/enums.ts +211 -0
  48. package/generated/internal/class.ts +547 -0
  49. package/generated/internal/prismaNamespace.ts +4596 -0
  50. package/generated/internal/prismaNamespaceBrowser.ts +1188 -0
  51. package/generated/models/AiCrawlerHit.ts +1275 -0
  52. package/generated/models/ApiKey.ts +1559 -0
  53. package/generated/models/ApiRequestMetric.ts +1390 -0
  54. package/generated/models/AuditLog.ts +1215 -0
  55. package/generated/models/BackupRecord.ts +1259 -0
  56. package/generated/models/ContentIssue.ts +1496 -0
  57. package/generated/models/ContentLock.ts +1481 -0
  58. package/generated/models/ContentTemplate.ts +1425 -0
  59. package/generated/models/Document.ts +3486 -0
  60. package/generated/models/Folder.ts +1905 -0
  61. package/generated/models/FormSchemaVersion.ts +1265 -0
  62. package/generated/models/FormSubmission.ts +2105 -0
  63. package/generated/models/FormSubmissionFile.ts +1615 -0
  64. package/generated/models/FormWebhook.ts +1371 -0
  65. package/generated/models/InAppNotification.ts +1466 -0
  66. package/generated/models/Invite.ts +1393 -0
  67. package/generated/models/Media.ts +2887 -0
  68. package/generated/models/MediaUsage.ts +1488 -0
  69. package/generated/models/OAuthAccount.ts +1472 -0
  70. package/generated/models/PageTemplate.ts +1271 -0
  71. package/generated/models/PasswordResetToken.ts +1396 -0
  72. package/generated/models/Redirect.ts +1501 -0
  73. package/generated/models/Redirect404Hit.ts +1266 -0
  74. package/generated/models/RedirectSuggestion.ts +1344 -0
  75. package/generated/models/SavedSection.ts +1315 -0
  76. package/generated/models/ScriptTag.ts +1453 -0
  77. package/generated/models/SeoAuditRun.ts +1745 -0
  78. package/generated/models/SeoIssue.ts +2047 -0
  79. package/generated/models/Session.ts +1501 -0
  80. package/generated/models/Site.ts +1215 -0
  81. package/generated/models/User.ts +4558 -0
  82. package/generated/models/Version.ts +1520 -0
  83. package/generated/models/WebhookDeliveryLog.ts +1656 -0
  84. package/generated/models/WebhookEndpoint.ts +1433 -0
  85. package/generated/models/WorkflowState.ts +1523 -0
  86. package/generated/models.ts +46 -0
  87. package/package.json +10 -3
  88. package/{prisma → schema-fragments}/cms-schema.prisma +15 -2
@@ -0,0 +1,1496 @@
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 `ContentIssue` 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 ContentIssue
17
+ * Persisted content-quality issues surfaced by the nightly
18
+ * content-health scan. The Dashboard's "Content Health" card
19
+ * aggregates these rows by `type` to produce the issue list.
20
+ *
21
+ * Upsert key is `(documentId, type)` so the scanner is
22
+ * idempotent — re-running yields the same row count, and a row
23
+ * "self-resolves" by being absent from the next scan (the
24
+ * scanner uses a `firstScanAt`-watermark + delete pattern).
25
+ */
26
+ export type ContentIssueModel = runtime.Types.Result.DefaultSelection<Prisma.$ContentIssuePayload>
27
+
28
+ export type AggregateContentIssue = {
29
+ _count: ContentIssueCountAggregateOutputType | null
30
+ _avg: ContentIssueAvgAggregateOutputType | null
31
+ _sum: ContentIssueSumAggregateOutputType | null
32
+ _min: ContentIssueMinAggregateOutputType | null
33
+ _max: ContentIssueMaxAggregateOutputType | null
34
+ }
35
+
36
+ export type ContentIssueAvgAggregateOutputType = {
37
+ count: number | null
38
+ }
39
+
40
+ export type ContentIssueSumAggregateOutputType = {
41
+ count: number | null
42
+ }
43
+
44
+ export type ContentIssueMinAggregateOutputType = {
45
+ id: string | null
46
+ documentId: string | null
47
+ type: $Enums.ContentIssueType | null
48
+ count: number | null
49
+ firstSeenAt: Date | null
50
+ lastSeenAt: Date | null
51
+ }
52
+
53
+ export type ContentIssueMaxAggregateOutputType = {
54
+ id: string | null
55
+ documentId: string | null
56
+ type: $Enums.ContentIssueType | null
57
+ count: number | null
58
+ firstSeenAt: Date | null
59
+ lastSeenAt: Date | null
60
+ }
61
+
62
+ export type ContentIssueCountAggregateOutputType = {
63
+ id: number
64
+ documentId: number
65
+ type: number
66
+ count: number
67
+ details: number
68
+ firstSeenAt: number
69
+ lastSeenAt: number
70
+ _all: number
71
+ }
72
+
73
+
74
+ export type ContentIssueAvgAggregateInputType = {
75
+ count?: true
76
+ }
77
+
78
+ export type ContentIssueSumAggregateInputType = {
79
+ count?: true
80
+ }
81
+
82
+ export type ContentIssueMinAggregateInputType = {
83
+ id?: true
84
+ documentId?: true
85
+ type?: true
86
+ count?: true
87
+ firstSeenAt?: true
88
+ lastSeenAt?: true
89
+ }
90
+
91
+ export type ContentIssueMaxAggregateInputType = {
92
+ id?: true
93
+ documentId?: true
94
+ type?: true
95
+ count?: true
96
+ firstSeenAt?: true
97
+ lastSeenAt?: true
98
+ }
99
+
100
+ export type ContentIssueCountAggregateInputType = {
101
+ id?: true
102
+ documentId?: true
103
+ type?: true
104
+ count?: true
105
+ details?: true
106
+ firstSeenAt?: true
107
+ lastSeenAt?: true
108
+ _all?: true
109
+ }
110
+
111
+ export type ContentIssueAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
112
+ /**
113
+ * Filter which ContentIssue to aggregate.
114
+ */
115
+ where?: Prisma.ContentIssueWhereInput
116
+ /**
117
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
118
+ *
119
+ * Determine the order of ContentIssues to fetch.
120
+ */
121
+ orderBy?: Prisma.ContentIssueOrderByWithRelationInput | Prisma.ContentIssueOrderByWithRelationInput[]
122
+ /**
123
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
124
+ *
125
+ * Sets the start position
126
+ */
127
+ cursor?: Prisma.ContentIssueWhereUniqueInput
128
+ /**
129
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
130
+ *
131
+ * Take `±n` ContentIssues from the position of the cursor.
132
+ */
133
+ take?: number
134
+ /**
135
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
136
+ *
137
+ * Skip the first `n` ContentIssues.
138
+ */
139
+ skip?: number
140
+ /**
141
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
142
+ *
143
+ * Count returned ContentIssues
144
+ **/
145
+ _count?: true | ContentIssueCountAggregateInputType
146
+ /**
147
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
148
+ *
149
+ * Select which fields to average
150
+ **/
151
+ _avg?: ContentIssueAvgAggregateInputType
152
+ /**
153
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
154
+ *
155
+ * Select which fields to sum
156
+ **/
157
+ _sum?: ContentIssueSumAggregateInputType
158
+ /**
159
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
160
+ *
161
+ * Select which fields to find the minimum value
162
+ **/
163
+ _min?: ContentIssueMinAggregateInputType
164
+ /**
165
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
166
+ *
167
+ * Select which fields to find the maximum value
168
+ **/
169
+ _max?: ContentIssueMaxAggregateInputType
170
+ }
171
+
172
+ export type GetContentIssueAggregateType<T extends ContentIssueAggregateArgs> = {
173
+ [P in keyof T & keyof AggregateContentIssue]: P extends '_count' | 'count'
174
+ ? T[P] extends true
175
+ ? number
176
+ : Prisma.GetScalarType<T[P], AggregateContentIssue[P]>
177
+ : Prisma.GetScalarType<T[P], AggregateContentIssue[P]>
178
+ }
179
+
180
+
181
+
182
+
183
+ export type ContentIssueGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
184
+ where?: Prisma.ContentIssueWhereInput
185
+ orderBy?: Prisma.ContentIssueOrderByWithAggregationInput | Prisma.ContentIssueOrderByWithAggregationInput[]
186
+ by: Prisma.ContentIssueScalarFieldEnum[] | Prisma.ContentIssueScalarFieldEnum
187
+ having?: Prisma.ContentIssueScalarWhereWithAggregatesInput
188
+ take?: number
189
+ skip?: number
190
+ _count?: ContentIssueCountAggregateInputType | true
191
+ _avg?: ContentIssueAvgAggregateInputType
192
+ _sum?: ContentIssueSumAggregateInputType
193
+ _min?: ContentIssueMinAggregateInputType
194
+ _max?: ContentIssueMaxAggregateInputType
195
+ }
196
+
197
+ export type ContentIssueGroupByOutputType = {
198
+ id: string
199
+ documentId: string
200
+ type: $Enums.ContentIssueType
201
+ count: number
202
+ details: runtime.JsonValue | null
203
+ firstSeenAt: Date
204
+ lastSeenAt: Date
205
+ _count: ContentIssueCountAggregateOutputType | null
206
+ _avg: ContentIssueAvgAggregateOutputType | null
207
+ _sum: ContentIssueSumAggregateOutputType | null
208
+ _min: ContentIssueMinAggregateOutputType | null
209
+ _max: ContentIssueMaxAggregateOutputType | null
210
+ }
211
+
212
+ export type GetContentIssueGroupByPayload<T extends ContentIssueGroupByArgs> = Prisma.PrismaPromise<
213
+ Array<
214
+ Prisma.PickEnumerable<ContentIssueGroupByOutputType, T['by']> &
215
+ {
216
+ [P in ((keyof T) & (keyof ContentIssueGroupByOutputType))]: P extends '_count'
217
+ ? T[P] extends boolean
218
+ ? number
219
+ : Prisma.GetScalarType<T[P], ContentIssueGroupByOutputType[P]>
220
+ : Prisma.GetScalarType<T[P], ContentIssueGroupByOutputType[P]>
221
+ }
222
+ >
223
+ >
224
+
225
+
226
+
227
+ export type ContentIssueWhereInput = {
228
+ AND?: Prisma.ContentIssueWhereInput | Prisma.ContentIssueWhereInput[]
229
+ OR?: Prisma.ContentIssueWhereInput[]
230
+ NOT?: Prisma.ContentIssueWhereInput | Prisma.ContentIssueWhereInput[]
231
+ id?: Prisma.StringFilter<"ContentIssue"> | string
232
+ documentId?: Prisma.StringFilter<"ContentIssue"> | string
233
+ type?: Prisma.EnumContentIssueTypeFilter<"ContentIssue"> | $Enums.ContentIssueType
234
+ count?: Prisma.IntFilter<"ContentIssue"> | number
235
+ details?: Prisma.JsonNullableFilter<"ContentIssue">
236
+ firstSeenAt?: Prisma.DateTimeFilter<"ContentIssue"> | Date | string
237
+ lastSeenAt?: Prisma.DateTimeFilter<"ContentIssue"> | Date | string
238
+ document?: Prisma.XOR<Prisma.DocumentScalarRelationFilter, Prisma.DocumentWhereInput>
239
+ }
240
+
241
+ export type ContentIssueOrderByWithRelationInput = {
242
+ id?: Prisma.SortOrder
243
+ documentId?: Prisma.SortOrder
244
+ type?: Prisma.SortOrder
245
+ count?: Prisma.SortOrder
246
+ details?: Prisma.SortOrderInput | Prisma.SortOrder
247
+ firstSeenAt?: Prisma.SortOrder
248
+ lastSeenAt?: Prisma.SortOrder
249
+ document?: Prisma.DocumentOrderByWithRelationInput
250
+ _relevance?: Prisma.ContentIssueOrderByRelevanceInput
251
+ }
252
+
253
+ export type ContentIssueWhereUniqueInput = Prisma.AtLeast<{
254
+ id?: string
255
+ documentId_type?: Prisma.ContentIssueDocumentIdTypeCompoundUniqueInput
256
+ AND?: Prisma.ContentIssueWhereInput | Prisma.ContentIssueWhereInput[]
257
+ OR?: Prisma.ContentIssueWhereInput[]
258
+ NOT?: Prisma.ContentIssueWhereInput | Prisma.ContentIssueWhereInput[]
259
+ documentId?: Prisma.StringFilter<"ContentIssue"> | string
260
+ type?: Prisma.EnumContentIssueTypeFilter<"ContentIssue"> | $Enums.ContentIssueType
261
+ count?: Prisma.IntFilter<"ContentIssue"> | number
262
+ details?: Prisma.JsonNullableFilter<"ContentIssue">
263
+ firstSeenAt?: Prisma.DateTimeFilter<"ContentIssue"> | Date | string
264
+ lastSeenAt?: Prisma.DateTimeFilter<"ContentIssue"> | Date | string
265
+ document?: Prisma.XOR<Prisma.DocumentScalarRelationFilter, Prisma.DocumentWhereInput>
266
+ }, "id" | "documentId_type">
267
+
268
+ export type ContentIssueOrderByWithAggregationInput = {
269
+ id?: Prisma.SortOrder
270
+ documentId?: Prisma.SortOrder
271
+ type?: Prisma.SortOrder
272
+ count?: Prisma.SortOrder
273
+ details?: Prisma.SortOrderInput | Prisma.SortOrder
274
+ firstSeenAt?: Prisma.SortOrder
275
+ lastSeenAt?: Prisma.SortOrder
276
+ _count?: Prisma.ContentIssueCountOrderByAggregateInput
277
+ _avg?: Prisma.ContentIssueAvgOrderByAggregateInput
278
+ _max?: Prisma.ContentIssueMaxOrderByAggregateInput
279
+ _min?: Prisma.ContentIssueMinOrderByAggregateInput
280
+ _sum?: Prisma.ContentIssueSumOrderByAggregateInput
281
+ }
282
+
283
+ export type ContentIssueScalarWhereWithAggregatesInput = {
284
+ AND?: Prisma.ContentIssueScalarWhereWithAggregatesInput | Prisma.ContentIssueScalarWhereWithAggregatesInput[]
285
+ OR?: Prisma.ContentIssueScalarWhereWithAggregatesInput[]
286
+ NOT?: Prisma.ContentIssueScalarWhereWithAggregatesInput | Prisma.ContentIssueScalarWhereWithAggregatesInput[]
287
+ id?: Prisma.StringWithAggregatesFilter<"ContentIssue"> | string
288
+ documentId?: Prisma.StringWithAggregatesFilter<"ContentIssue"> | string
289
+ type?: Prisma.EnumContentIssueTypeWithAggregatesFilter<"ContentIssue"> | $Enums.ContentIssueType
290
+ count?: Prisma.IntWithAggregatesFilter<"ContentIssue"> | number
291
+ details?: Prisma.JsonNullableWithAggregatesFilter<"ContentIssue">
292
+ firstSeenAt?: Prisma.DateTimeWithAggregatesFilter<"ContentIssue"> | Date | string
293
+ lastSeenAt?: Prisma.DateTimeWithAggregatesFilter<"ContentIssue"> | Date | string
294
+ }
295
+
296
+ export type ContentIssueCreateInput = {
297
+ id?: string
298
+ type: $Enums.ContentIssueType
299
+ count?: number
300
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
301
+ firstSeenAt?: Date | string
302
+ lastSeenAt?: Date | string
303
+ document: Prisma.DocumentCreateNestedOneWithoutContentIssuesInput
304
+ }
305
+
306
+ export type ContentIssueUncheckedCreateInput = {
307
+ id?: string
308
+ documentId: string
309
+ type: $Enums.ContentIssueType
310
+ count?: number
311
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
312
+ firstSeenAt?: Date | string
313
+ lastSeenAt?: Date | string
314
+ }
315
+
316
+ export type ContentIssueUpdateInput = {
317
+ id?: Prisma.StringFieldUpdateOperationsInput | string
318
+ type?: Prisma.EnumContentIssueTypeFieldUpdateOperationsInput | $Enums.ContentIssueType
319
+ count?: Prisma.IntFieldUpdateOperationsInput | number
320
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
321
+ firstSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
322
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
323
+ document?: Prisma.DocumentUpdateOneRequiredWithoutContentIssuesNestedInput
324
+ }
325
+
326
+ export type ContentIssueUncheckedUpdateInput = {
327
+ id?: Prisma.StringFieldUpdateOperationsInput | string
328
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string
329
+ type?: Prisma.EnumContentIssueTypeFieldUpdateOperationsInput | $Enums.ContentIssueType
330
+ count?: Prisma.IntFieldUpdateOperationsInput | number
331
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
332
+ firstSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
333
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
334
+ }
335
+
336
+ export type ContentIssueCreateManyInput = {
337
+ id?: string
338
+ documentId: string
339
+ type: $Enums.ContentIssueType
340
+ count?: number
341
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
342
+ firstSeenAt?: Date | string
343
+ lastSeenAt?: Date | string
344
+ }
345
+
346
+ export type ContentIssueUpdateManyMutationInput = {
347
+ id?: Prisma.StringFieldUpdateOperationsInput | string
348
+ type?: Prisma.EnumContentIssueTypeFieldUpdateOperationsInput | $Enums.ContentIssueType
349
+ count?: Prisma.IntFieldUpdateOperationsInput | number
350
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
351
+ firstSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
352
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
353
+ }
354
+
355
+ export type ContentIssueUncheckedUpdateManyInput = {
356
+ id?: Prisma.StringFieldUpdateOperationsInput | string
357
+ documentId?: Prisma.StringFieldUpdateOperationsInput | string
358
+ type?: Prisma.EnumContentIssueTypeFieldUpdateOperationsInput | $Enums.ContentIssueType
359
+ count?: Prisma.IntFieldUpdateOperationsInput | number
360
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
361
+ firstSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
362
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
363
+ }
364
+
365
+ export type ContentIssueListRelationFilter = {
366
+ every?: Prisma.ContentIssueWhereInput
367
+ some?: Prisma.ContentIssueWhereInput
368
+ none?: Prisma.ContentIssueWhereInput
369
+ }
370
+
371
+ export type ContentIssueOrderByRelationAggregateInput = {
372
+ _count?: Prisma.SortOrder
373
+ }
374
+
375
+ export type ContentIssueOrderByRelevanceInput = {
376
+ fields: Prisma.ContentIssueOrderByRelevanceFieldEnum | Prisma.ContentIssueOrderByRelevanceFieldEnum[]
377
+ sort: Prisma.SortOrder
378
+ search: string
379
+ }
380
+
381
+ export type ContentIssueDocumentIdTypeCompoundUniqueInput = {
382
+ documentId: string
383
+ type: $Enums.ContentIssueType
384
+ }
385
+
386
+ export type ContentIssueCountOrderByAggregateInput = {
387
+ id?: Prisma.SortOrder
388
+ documentId?: Prisma.SortOrder
389
+ type?: Prisma.SortOrder
390
+ count?: Prisma.SortOrder
391
+ details?: Prisma.SortOrder
392
+ firstSeenAt?: Prisma.SortOrder
393
+ lastSeenAt?: Prisma.SortOrder
394
+ }
395
+
396
+ export type ContentIssueAvgOrderByAggregateInput = {
397
+ count?: Prisma.SortOrder
398
+ }
399
+
400
+ export type ContentIssueMaxOrderByAggregateInput = {
401
+ id?: Prisma.SortOrder
402
+ documentId?: Prisma.SortOrder
403
+ type?: Prisma.SortOrder
404
+ count?: Prisma.SortOrder
405
+ firstSeenAt?: Prisma.SortOrder
406
+ lastSeenAt?: Prisma.SortOrder
407
+ }
408
+
409
+ export type ContentIssueMinOrderByAggregateInput = {
410
+ id?: Prisma.SortOrder
411
+ documentId?: Prisma.SortOrder
412
+ type?: Prisma.SortOrder
413
+ count?: Prisma.SortOrder
414
+ firstSeenAt?: Prisma.SortOrder
415
+ lastSeenAt?: Prisma.SortOrder
416
+ }
417
+
418
+ export type ContentIssueSumOrderByAggregateInput = {
419
+ count?: Prisma.SortOrder
420
+ }
421
+
422
+ export type ContentIssueCreateNestedManyWithoutDocumentInput = {
423
+ create?: Prisma.XOR<Prisma.ContentIssueCreateWithoutDocumentInput, Prisma.ContentIssueUncheckedCreateWithoutDocumentInput> | Prisma.ContentIssueCreateWithoutDocumentInput[] | Prisma.ContentIssueUncheckedCreateWithoutDocumentInput[]
424
+ connectOrCreate?: Prisma.ContentIssueCreateOrConnectWithoutDocumentInput | Prisma.ContentIssueCreateOrConnectWithoutDocumentInput[]
425
+ createMany?: Prisma.ContentIssueCreateManyDocumentInputEnvelope
426
+ connect?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
427
+ }
428
+
429
+ export type ContentIssueUncheckedCreateNestedManyWithoutDocumentInput = {
430
+ create?: Prisma.XOR<Prisma.ContentIssueCreateWithoutDocumentInput, Prisma.ContentIssueUncheckedCreateWithoutDocumentInput> | Prisma.ContentIssueCreateWithoutDocumentInput[] | Prisma.ContentIssueUncheckedCreateWithoutDocumentInput[]
431
+ connectOrCreate?: Prisma.ContentIssueCreateOrConnectWithoutDocumentInput | Prisma.ContentIssueCreateOrConnectWithoutDocumentInput[]
432
+ createMany?: Prisma.ContentIssueCreateManyDocumentInputEnvelope
433
+ connect?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
434
+ }
435
+
436
+ export type ContentIssueUpdateManyWithoutDocumentNestedInput = {
437
+ create?: Prisma.XOR<Prisma.ContentIssueCreateWithoutDocumentInput, Prisma.ContentIssueUncheckedCreateWithoutDocumentInput> | Prisma.ContentIssueCreateWithoutDocumentInput[] | Prisma.ContentIssueUncheckedCreateWithoutDocumentInput[]
438
+ connectOrCreate?: Prisma.ContentIssueCreateOrConnectWithoutDocumentInput | Prisma.ContentIssueCreateOrConnectWithoutDocumentInput[]
439
+ upsert?: Prisma.ContentIssueUpsertWithWhereUniqueWithoutDocumentInput | Prisma.ContentIssueUpsertWithWhereUniqueWithoutDocumentInput[]
440
+ createMany?: Prisma.ContentIssueCreateManyDocumentInputEnvelope
441
+ set?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
442
+ disconnect?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
443
+ delete?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
444
+ connect?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
445
+ update?: Prisma.ContentIssueUpdateWithWhereUniqueWithoutDocumentInput | Prisma.ContentIssueUpdateWithWhereUniqueWithoutDocumentInput[]
446
+ updateMany?: Prisma.ContentIssueUpdateManyWithWhereWithoutDocumentInput | Prisma.ContentIssueUpdateManyWithWhereWithoutDocumentInput[]
447
+ deleteMany?: Prisma.ContentIssueScalarWhereInput | Prisma.ContentIssueScalarWhereInput[]
448
+ }
449
+
450
+ export type ContentIssueUncheckedUpdateManyWithoutDocumentNestedInput = {
451
+ create?: Prisma.XOR<Prisma.ContentIssueCreateWithoutDocumentInput, Prisma.ContentIssueUncheckedCreateWithoutDocumentInput> | Prisma.ContentIssueCreateWithoutDocumentInput[] | Prisma.ContentIssueUncheckedCreateWithoutDocumentInput[]
452
+ connectOrCreate?: Prisma.ContentIssueCreateOrConnectWithoutDocumentInput | Prisma.ContentIssueCreateOrConnectWithoutDocumentInput[]
453
+ upsert?: Prisma.ContentIssueUpsertWithWhereUniqueWithoutDocumentInput | Prisma.ContentIssueUpsertWithWhereUniqueWithoutDocumentInput[]
454
+ createMany?: Prisma.ContentIssueCreateManyDocumentInputEnvelope
455
+ set?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
456
+ disconnect?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
457
+ delete?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
458
+ connect?: Prisma.ContentIssueWhereUniqueInput | Prisma.ContentIssueWhereUniqueInput[]
459
+ update?: Prisma.ContentIssueUpdateWithWhereUniqueWithoutDocumentInput | Prisma.ContentIssueUpdateWithWhereUniqueWithoutDocumentInput[]
460
+ updateMany?: Prisma.ContentIssueUpdateManyWithWhereWithoutDocumentInput | Prisma.ContentIssueUpdateManyWithWhereWithoutDocumentInput[]
461
+ deleteMany?: Prisma.ContentIssueScalarWhereInput | Prisma.ContentIssueScalarWhereInput[]
462
+ }
463
+
464
+ export type EnumContentIssueTypeFieldUpdateOperationsInput = {
465
+ set?: $Enums.ContentIssueType
466
+ }
467
+
468
+ export type ContentIssueCreateWithoutDocumentInput = {
469
+ id?: string
470
+ type: $Enums.ContentIssueType
471
+ count?: number
472
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
473
+ firstSeenAt?: Date | string
474
+ lastSeenAt?: Date | string
475
+ }
476
+
477
+ export type ContentIssueUncheckedCreateWithoutDocumentInput = {
478
+ id?: string
479
+ type: $Enums.ContentIssueType
480
+ count?: number
481
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
482
+ firstSeenAt?: Date | string
483
+ lastSeenAt?: Date | string
484
+ }
485
+
486
+ export type ContentIssueCreateOrConnectWithoutDocumentInput = {
487
+ where: Prisma.ContentIssueWhereUniqueInput
488
+ create: Prisma.XOR<Prisma.ContentIssueCreateWithoutDocumentInput, Prisma.ContentIssueUncheckedCreateWithoutDocumentInput>
489
+ }
490
+
491
+ export type ContentIssueCreateManyDocumentInputEnvelope = {
492
+ data: Prisma.ContentIssueCreateManyDocumentInput | Prisma.ContentIssueCreateManyDocumentInput[]
493
+ skipDuplicates?: boolean
494
+ }
495
+
496
+ export type ContentIssueUpsertWithWhereUniqueWithoutDocumentInput = {
497
+ where: Prisma.ContentIssueWhereUniqueInput
498
+ update: Prisma.XOR<Prisma.ContentIssueUpdateWithoutDocumentInput, Prisma.ContentIssueUncheckedUpdateWithoutDocumentInput>
499
+ create: Prisma.XOR<Prisma.ContentIssueCreateWithoutDocumentInput, Prisma.ContentIssueUncheckedCreateWithoutDocumentInput>
500
+ }
501
+
502
+ export type ContentIssueUpdateWithWhereUniqueWithoutDocumentInput = {
503
+ where: Prisma.ContentIssueWhereUniqueInput
504
+ data: Prisma.XOR<Prisma.ContentIssueUpdateWithoutDocumentInput, Prisma.ContentIssueUncheckedUpdateWithoutDocumentInput>
505
+ }
506
+
507
+ export type ContentIssueUpdateManyWithWhereWithoutDocumentInput = {
508
+ where: Prisma.ContentIssueScalarWhereInput
509
+ data: Prisma.XOR<Prisma.ContentIssueUpdateManyMutationInput, Prisma.ContentIssueUncheckedUpdateManyWithoutDocumentInput>
510
+ }
511
+
512
+ export type ContentIssueScalarWhereInput = {
513
+ AND?: Prisma.ContentIssueScalarWhereInput | Prisma.ContentIssueScalarWhereInput[]
514
+ OR?: Prisma.ContentIssueScalarWhereInput[]
515
+ NOT?: Prisma.ContentIssueScalarWhereInput | Prisma.ContentIssueScalarWhereInput[]
516
+ id?: Prisma.StringFilter<"ContentIssue"> | string
517
+ documentId?: Prisma.StringFilter<"ContentIssue"> | string
518
+ type?: Prisma.EnumContentIssueTypeFilter<"ContentIssue"> | $Enums.ContentIssueType
519
+ count?: Prisma.IntFilter<"ContentIssue"> | number
520
+ details?: Prisma.JsonNullableFilter<"ContentIssue">
521
+ firstSeenAt?: Prisma.DateTimeFilter<"ContentIssue"> | Date | string
522
+ lastSeenAt?: Prisma.DateTimeFilter<"ContentIssue"> | Date | string
523
+ }
524
+
525
+ export type ContentIssueCreateManyDocumentInput = {
526
+ id?: string
527
+ type: $Enums.ContentIssueType
528
+ count?: number
529
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
530
+ firstSeenAt?: Date | string
531
+ lastSeenAt?: Date | string
532
+ }
533
+
534
+ export type ContentIssueUpdateWithoutDocumentInput = {
535
+ id?: Prisma.StringFieldUpdateOperationsInput | string
536
+ type?: Prisma.EnumContentIssueTypeFieldUpdateOperationsInput | $Enums.ContentIssueType
537
+ count?: Prisma.IntFieldUpdateOperationsInput | number
538
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
539
+ firstSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
540
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
541
+ }
542
+
543
+ export type ContentIssueUncheckedUpdateWithoutDocumentInput = {
544
+ id?: Prisma.StringFieldUpdateOperationsInput | string
545
+ type?: Prisma.EnumContentIssueTypeFieldUpdateOperationsInput | $Enums.ContentIssueType
546
+ count?: Prisma.IntFieldUpdateOperationsInput | number
547
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
548
+ firstSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
549
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
550
+ }
551
+
552
+ export type ContentIssueUncheckedUpdateManyWithoutDocumentInput = {
553
+ id?: Prisma.StringFieldUpdateOperationsInput | string
554
+ type?: Prisma.EnumContentIssueTypeFieldUpdateOperationsInput | $Enums.ContentIssueType
555
+ count?: Prisma.IntFieldUpdateOperationsInput | number
556
+ details?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
557
+ firstSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
558
+ lastSeenAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
559
+ }
560
+
561
+
562
+
563
+ export type ContentIssueSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
564
+ id?: boolean
565
+ documentId?: boolean
566
+ type?: boolean
567
+ count?: boolean
568
+ details?: boolean
569
+ firstSeenAt?: boolean
570
+ lastSeenAt?: boolean
571
+ document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
572
+ }, ExtArgs["result"]["contentIssue"]>
573
+
574
+ export type ContentIssueSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
575
+ id?: boolean
576
+ documentId?: boolean
577
+ type?: boolean
578
+ count?: boolean
579
+ details?: boolean
580
+ firstSeenAt?: boolean
581
+ lastSeenAt?: boolean
582
+ document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
583
+ }, ExtArgs["result"]["contentIssue"]>
584
+
585
+ export type ContentIssueSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
586
+ id?: boolean
587
+ documentId?: boolean
588
+ type?: boolean
589
+ count?: boolean
590
+ details?: boolean
591
+ firstSeenAt?: boolean
592
+ lastSeenAt?: boolean
593
+ document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
594
+ }, ExtArgs["result"]["contentIssue"]>
595
+
596
+ export type ContentIssueSelectScalar = {
597
+ id?: boolean
598
+ documentId?: boolean
599
+ type?: boolean
600
+ count?: boolean
601
+ details?: boolean
602
+ firstSeenAt?: boolean
603
+ lastSeenAt?: boolean
604
+ }
605
+
606
+ export type ContentIssueOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "documentId" | "type" | "count" | "details" | "firstSeenAt" | "lastSeenAt", ExtArgs["result"]["contentIssue"]>
607
+ export type ContentIssueInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
608
+ document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
609
+ }
610
+ export type ContentIssueIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
611
+ document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
612
+ }
613
+ export type ContentIssueIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
614
+ document?: boolean | Prisma.DocumentDefaultArgs<ExtArgs>
615
+ }
616
+
617
+ export type $ContentIssuePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
618
+ name: "ContentIssue"
619
+ objects: {
620
+ document: Prisma.$DocumentPayload<ExtArgs>
621
+ }
622
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
623
+ id: string
624
+ documentId: string
625
+ type: $Enums.ContentIssueType
626
+ /**
627
+ * Per-issue count (e.g. 5 alt-less images = `count: 5` even
628
+ * though it's 1 row). Lets the dashboard show real numbers
629
+ * without re-scanning the document HTML on each page load.
630
+ */
631
+ count: number
632
+ /**
633
+ * Type-specific payload — the broken URL, the page's
634
+ * `updatedAt`, the offending image src, etc. JSON so each
635
+ * issue type can carry its own shape without schema churn.
636
+ */
637
+ details: runtime.JsonValue | null
638
+ firstSeenAt: Date
639
+ lastSeenAt: Date
640
+ }, ExtArgs["result"]["contentIssue"]>
641
+ composites: {}
642
+ }
643
+
644
+ export type ContentIssueGetPayload<S extends boolean | null | undefined | ContentIssueDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload, S>
645
+
646
+ export type ContentIssueCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
647
+ Omit<ContentIssueFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
648
+ select?: ContentIssueCountAggregateInputType | true
649
+ }
650
+
651
+ export interface ContentIssueDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
652
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['ContentIssue'], meta: { name: 'ContentIssue' } }
653
+ /**
654
+ * Find zero or one ContentIssue that matches the filter.
655
+ * @param {ContentIssueFindUniqueArgs} args - Arguments to find a ContentIssue
656
+ * @example
657
+ * // Get one ContentIssue
658
+ * const contentIssue = await prisma.contentIssue.findUnique({
659
+ * where: {
660
+ * // ... provide filter here
661
+ * }
662
+ * })
663
+ */
664
+ findUnique<T extends ContentIssueFindUniqueArgs>(args: Prisma.SelectSubset<T, ContentIssueFindUniqueArgs<ExtArgs>>): Prisma.Prisma__ContentIssueClient<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
665
+
666
+ /**
667
+ * Find one ContentIssue that matches the filter or throw an error with `error.code='P2025'`
668
+ * if no matches were found.
669
+ * @param {ContentIssueFindUniqueOrThrowArgs} args - Arguments to find a ContentIssue
670
+ * @example
671
+ * // Get one ContentIssue
672
+ * const contentIssue = await prisma.contentIssue.findUniqueOrThrow({
673
+ * where: {
674
+ * // ... provide filter here
675
+ * }
676
+ * })
677
+ */
678
+ findUniqueOrThrow<T extends ContentIssueFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, ContentIssueFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContentIssueClient<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
679
+
680
+ /**
681
+ * Find the first ContentIssue that matches the filter.
682
+ * Note, that providing `undefined` is treated as the value not being there.
683
+ * Read more here: https://pris.ly/d/null-undefined
684
+ * @param {ContentIssueFindFirstArgs} args - Arguments to find a ContentIssue
685
+ * @example
686
+ * // Get one ContentIssue
687
+ * const contentIssue = await prisma.contentIssue.findFirst({
688
+ * where: {
689
+ * // ... provide filter here
690
+ * }
691
+ * })
692
+ */
693
+ findFirst<T extends ContentIssueFindFirstArgs>(args?: Prisma.SelectSubset<T, ContentIssueFindFirstArgs<ExtArgs>>): Prisma.Prisma__ContentIssueClient<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
694
+
695
+ /**
696
+ * Find the first ContentIssue that matches the filter or
697
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
698
+ * Note, that providing `undefined` is treated as the value not being there.
699
+ * Read more here: https://pris.ly/d/null-undefined
700
+ * @param {ContentIssueFindFirstOrThrowArgs} args - Arguments to find a ContentIssue
701
+ * @example
702
+ * // Get one ContentIssue
703
+ * const contentIssue = await prisma.contentIssue.findFirstOrThrow({
704
+ * where: {
705
+ * // ... provide filter here
706
+ * }
707
+ * })
708
+ */
709
+ findFirstOrThrow<T extends ContentIssueFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, ContentIssueFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__ContentIssueClient<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
710
+
711
+ /**
712
+ * Find zero or more ContentIssues that matches the filter.
713
+ * Note, that providing `undefined` is treated as the value not being there.
714
+ * Read more here: https://pris.ly/d/null-undefined
715
+ * @param {ContentIssueFindManyArgs} args - Arguments to filter and select certain fields only.
716
+ * @example
717
+ * // Get all ContentIssues
718
+ * const contentIssues = await prisma.contentIssue.findMany()
719
+ *
720
+ * // Get first 10 ContentIssues
721
+ * const contentIssues = await prisma.contentIssue.findMany({ take: 10 })
722
+ *
723
+ * // Only select the `id`
724
+ * const contentIssueWithIdOnly = await prisma.contentIssue.findMany({ select: { id: true } })
725
+ *
726
+ */
727
+ findMany<T extends ContentIssueFindManyArgs>(args?: Prisma.SelectSubset<T, ContentIssueFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
728
+
729
+ /**
730
+ * Create a ContentIssue.
731
+ * @param {ContentIssueCreateArgs} args - Arguments to create a ContentIssue.
732
+ * @example
733
+ * // Create one ContentIssue
734
+ * const ContentIssue = await prisma.contentIssue.create({
735
+ * data: {
736
+ * // ... data to create a ContentIssue
737
+ * }
738
+ * })
739
+ *
740
+ */
741
+ create<T extends ContentIssueCreateArgs>(args: Prisma.SelectSubset<T, ContentIssueCreateArgs<ExtArgs>>): Prisma.Prisma__ContentIssueClient<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
742
+
743
+ /**
744
+ * Create many ContentIssues.
745
+ * @param {ContentIssueCreateManyArgs} args - Arguments to create many ContentIssues.
746
+ * @example
747
+ * // Create many ContentIssues
748
+ * const contentIssue = await prisma.contentIssue.createMany({
749
+ * data: [
750
+ * // ... provide data here
751
+ * ]
752
+ * })
753
+ *
754
+ */
755
+ createMany<T extends ContentIssueCreateManyArgs>(args?: Prisma.SelectSubset<T, ContentIssueCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
756
+
757
+ /**
758
+ * Create many ContentIssues and returns the data saved in the database.
759
+ * @param {ContentIssueCreateManyAndReturnArgs} args - Arguments to create many ContentIssues.
760
+ * @example
761
+ * // Create many ContentIssues
762
+ * const contentIssue = await prisma.contentIssue.createManyAndReturn({
763
+ * data: [
764
+ * // ... provide data here
765
+ * ]
766
+ * })
767
+ *
768
+ * // Create many ContentIssues and only return the `id`
769
+ * const contentIssueWithIdOnly = await prisma.contentIssue.createManyAndReturn({
770
+ * select: { id: true },
771
+ * data: [
772
+ * // ... provide data here
773
+ * ]
774
+ * })
775
+ * Note, that providing `undefined` is treated as the value not being there.
776
+ * Read more here: https://pris.ly/d/null-undefined
777
+ *
778
+ */
779
+ createManyAndReturn<T extends ContentIssueCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ContentIssueCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
780
+
781
+ /**
782
+ * Delete a ContentIssue.
783
+ * @param {ContentIssueDeleteArgs} args - Arguments to delete one ContentIssue.
784
+ * @example
785
+ * // Delete one ContentIssue
786
+ * const ContentIssue = await prisma.contentIssue.delete({
787
+ * where: {
788
+ * // ... filter to delete one ContentIssue
789
+ * }
790
+ * })
791
+ *
792
+ */
793
+ delete<T extends ContentIssueDeleteArgs>(args: Prisma.SelectSubset<T, ContentIssueDeleteArgs<ExtArgs>>): Prisma.Prisma__ContentIssueClient<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
794
+
795
+ /**
796
+ * Update one ContentIssue.
797
+ * @param {ContentIssueUpdateArgs} args - Arguments to update one ContentIssue.
798
+ * @example
799
+ * // Update one ContentIssue
800
+ * const contentIssue = await prisma.contentIssue.update({
801
+ * where: {
802
+ * // ... provide filter here
803
+ * },
804
+ * data: {
805
+ * // ... provide data here
806
+ * }
807
+ * })
808
+ *
809
+ */
810
+ update<T extends ContentIssueUpdateArgs>(args: Prisma.SelectSubset<T, ContentIssueUpdateArgs<ExtArgs>>): Prisma.Prisma__ContentIssueClient<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
811
+
812
+ /**
813
+ * Delete zero or more ContentIssues.
814
+ * @param {ContentIssueDeleteManyArgs} args - Arguments to filter ContentIssues to delete.
815
+ * @example
816
+ * // Delete a few ContentIssues
817
+ * const { count } = await prisma.contentIssue.deleteMany({
818
+ * where: {
819
+ * // ... provide filter here
820
+ * }
821
+ * })
822
+ *
823
+ */
824
+ deleteMany<T extends ContentIssueDeleteManyArgs>(args?: Prisma.SelectSubset<T, ContentIssueDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
825
+
826
+ /**
827
+ * Update zero or more ContentIssues.
828
+ * Note, that providing `undefined` is treated as the value not being there.
829
+ * Read more here: https://pris.ly/d/null-undefined
830
+ * @param {ContentIssueUpdateManyArgs} args - Arguments to update one or more rows.
831
+ * @example
832
+ * // Update many ContentIssues
833
+ * const contentIssue = await prisma.contentIssue.updateMany({
834
+ * where: {
835
+ * // ... provide filter here
836
+ * },
837
+ * data: {
838
+ * // ... provide data here
839
+ * }
840
+ * })
841
+ *
842
+ */
843
+ updateMany<T extends ContentIssueUpdateManyArgs>(args: Prisma.SelectSubset<T, ContentIssueUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
844
+
845
+ /**
846
+ * Update zero or more ContentIssues and returns the data updated in the database.
847
+ * @param {ContentIssueUpdateManyAndReturnArgs} args - Arguments to update many ContentIssues.
848
+ * @example
849
+ * // Update many ContentIssues
850
+ * const contentIssue = await prisma.contentIssue.updateManyAndReturn({
851
+ * where: {
852
+ * // ... provide filter here
853
+ * },
854
+ * data: [
855
+ * // ... provide data here
856
+ * ]
857
+ * })
858
+ *
859
+ * // Update zero or more ContentIssues and only return the `id`
860
+ * const contentIssueWithIdOnly = await prisma.contentIssue.updateManyAndReturn({
861
+ * select: { id: true },
862
+ * where: {
863
+ * // ... provide filter here
864
+ * },
865
+ * data: [
866
+ * // ... provide data here
867
+ * ]
868
+ * })
869
+ * Note, that providing `undefined` is treated as the value not being there.
870
+ * Read more here: https://pris.ly/d/null-undefined
871
+ *
872
+ */
873
+ updateManyAndReturn<T extends ContentIssueUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ContentIssueUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
874
+
875
+ /**
876
+ * Create or update one ContentIssue.
877
+ * @param {ContentIssueUpsertArgs} args - Arguments to update or create a ContentIssue.
878
+ * @example
879
+ * // Update or create a ContentIssue
880
+ * const contentIssue = await prisma.contentIssue.upsert({
881
+ * create: {
882
+ * // ... data to create a ContentIssue
883
+ * },
884
+ * update: {
885
+ * // ... in case it already exists, update
886
+ * },
887
+ * where: {
888
+ * // ... the filter for the ContentIssue we want to update
889
+ * }
890
+ * })
891
+ */
892
+ upsert<T extends ContentIssueUpsertArgs>(args: Prisma.SelectSubset<T, ContentIssueUpsertArgs<ExtArgs>>): Prisma.Prisma__ContentIssueClient<runtime.Types.Result.GetResult<Prisma.$ContentIssuePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
893
+
894
+
895
+ /**
896
+ * Count the number of ContentIssues.
897
+ * Note, that providing `undefined` is treated as the value not being there.
898
+ * Read more here: https://pris.ly/d/null-undefined
899
+ * @param {ContentIssueCountArgs} args - Arguments to filter ContentIssues to count.
900
+ * @example
901
+ * // Count the number of ContentIssues
902
+ * const count = await prisma.contentIssue.count({
903
+ * where: {
904
+ * // ... the filter for the ContentIssues we want to count
905
+ * }
906
+ * })
907
+ **/
908
+ count<T extends ContentIssueCountArgs>(
909
+ args?: Prisma.Subset<T, ContentIssueCountArgs>,
910
+ ): Prisma.PrismaPromise<
911
+ T extends runtime.Types.Utils.Record<'select', any>
912
+ ? T['select'] extends true
913
+ ? number
914
+ : Prisma.GetScalarType<T['select'], ContentIssueCountAggregateOutputType>
915
+ : number
916
+ >
917
+
918
+ /**
919
+ * Allows you to perform aggregations operations on a ContentIssue.
920
+ * Note, that providing `undefined` is treated as the value not being there.
921
+ * Read more here: https://pris.ly/d/null-undefined
922
+ * @param {ContentIssueAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
923
+ * @example
924
+ * // Ordered by age ascending
925
+ * // Where email contains prisma.io
926
+ * // Limited to the 10 users
927
+ * const aggregations = await prisma.user.aggregate({
928
+ * _avg: {
929
+ * age: true,
930
+ * },
931
+ * where: {
932
+ * email: {
933
+ * contains: "prisma.io",
934
+ * },
935
+ * },
936
+ * orderBy: {
937
+ * age: "asc",
938
+ * },
939
+ * take: 10,
940
+ * })
941
+ **/
942
+ aggregate<T extends ContentIssueAggregateArgs>(args: Prisma.Subset<T, ContentIssueAggregateArgs>): Prisma.PrismaPromise<GetContentIssueAggregateType<T>>
943
+
944
+ /**
945
+ * Group by ContentIssue.
946
+ * Note, that providing `undefined` is treated as the value not being there.
947
+ * Read more here: https://pris.ly/d/null-undefined
948
+ * @param {ContentIssueGroupByArgs} args - Group by arguments.
949
+ * @example
950
+ * // Group by city, order by createdAt, get count
951
+ * const result = await prisma.user.groupBy({
952
+ * by: ['city', 'createdAt'],
953
+ * orderBy: {
954
+ * createdAt: true
955
+ * },
956
+ * _count: {
957
+ * _all: true
958
+ * },
959
+ * })
960
+ *
961
+ **/
962
+ groupBy<
963
+ T extends ContentIssueGroupByArgs,
964
+ HasSelectOrTake extends Prisma.Or<
965
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
966
+ Prisma.Extends<'take', Prisma.Keys<T>>
967
+ >,
968
+ OrderByArg extends Prisma.True extends HasSelectOrTake
969
+ ? { orderBy: ContentIssueGroupByArgs['orderBy'] }
970
+ : { orderBy?: ContentIssueGroupByArgs['orderBy'] },
971
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
972
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
973
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
974
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
975
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
976
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
977
+ InputErrors extends ByEmpty extends Prisma.True
978
+ ? `Error: "by" must not be empty.`
979
+ : HavingValid extends Prisma.False
980
+ ? {
981
+ [P in HavingFields]: P extends ByFields
982
+ ? never
983
+ : P extends string
984
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
985
+ : [
986
+ Error,
987
+ 'Field ',
988
+ P,
989
+ ` in "having" needs to be provided in "by"`,
990
+ ]
991
+ }[HavingFields]
992
+ : 'take' extends Prisma.Keys<T>
993
+ ? 'orderBy' extends Prisma.Keys<T>
994
+ ? ByValid extends Prisma.True
995
+ ? {}
996
+ : {
997
+ [P in OrderFields]: P extends ByFields
998
+ ? never
999
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1000
+ }[OrderFields]
1001
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1002
+ : 'skip' extends Prisma.Keys<T>
1003
+ ? 'orderBy' extends Prisma.Keys<T>
1004
+ ? ByValid extends Prisma.True
1005
+ ? {}
1006
+ : {
1007
+ [P in OrderFields]: P extends ByFields
1008
+ ? never
1009
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1010
+ }[OrderFields]
1011
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1012
+ : ByValid extends Prisma.True
1013
+ ? {}
1014
+ : {
1015
+ [P in OrderFields]: P extends ByFields
1016
+ ? never
1017
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1018
+ }[OrderFields]
1019
+ >(args: Prisma.SubsetIntersection<T, ContentIssueGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetContentIssueGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1020
+ /**
1021
+ * Fields of the ContentIssue model
1022
+ */
1023
+ readonly fields: ContentIssueFieldRefs;
1024
+ }
1025
+
1026
+ /**
1027
+ * The delegate class that acts as a "Promise-like" for ContentIssue.
1028
+ * Why is this prefixed with `Prisma__`?
1029
+ * Because we want to prevent naming conflicts as mentioned in
1030
+ * https://github.com/prisma/prisma-client-js/issues/707
1031
+ */
1032
+ export interface Prisma__ContentIssueClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1033
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1034
+ document<T extends Prisma.DocumentDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.DocumentDefaultArgs<ExtArgs>>): Prisma.Prisma__DocumentClient<runtime.Types.Result.GetResult<Prisma.$DocumentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
1035
+ /**
1036
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1037
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1038
+ * @param onrejected The callback to execute when the Promise is rejected.
1039
+ * @returns A Promise for the completion of which ever callback is executed.
1040
+ */
1041
+ 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>
1042
+ /**
1043
+ * Attaches a callback for only the rejection of the Promise.
1044
+ * @param onrejected The callback to execute when the Promise is rejected.
1045
+ * @returns A Promise for the completion of the callback.
1046
+ */
1047
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1048
+ /**
1049
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1050
+ * resolved value cannot be modified from the callback.
1051
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1052
+ * @returns A Promise for the completion of the callback.
1053
+ */
1054
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1055
+ }
1056
+
1057
+
1058
+
1059
+
1060
+ /**
1061
+ * Fields of the ContentIssue model
1062
+ */
1063
+ export interface ContentIssueFieldRefs {
1064
+ readonly id: Prisma.FieldRef<"ContentIssue", 'String'>
1065
+ readonly documentId: Prisma.FieldRef<"ContentIssue", 'String'>
1066
+ readonly type: Prisma.FieldRef<"ContentIssue", 'ContentIssueType'>
1067
+ readonly count: Prisma.FieldRef<"ContentIssue", 'Int'>
1068
+ readonly details: Prisma.FieldRef<"ContentIssue", 'Json'>
1069
+ readonly firstSeenAt: Prisma.FieldRef<"ContentIssue", 'DateTime'>
1070
+ readonly lastSeenAt: Prisma.FieldRef<"ContentIssue", 'DateTime'>
1071
+ }
1072
+
1073
+
1074
+ // Custom InputTypes
1075
+ /**
1076
+ * ContentIssue findUnique
1077
+ */
1078
+ export type ContentIssueFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1079
+ /**
1080
+ * Select specific fields to fetch from the ContentIssue
1081
+ */
1082
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1083
+ /**
1084
+ * Omit specific fields from the ContentIssue
1085
+ */
1086
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1087
+ /**
1088
+ * Choose, which related nodes to fetch as well
1089
+ */
1090
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1091
+ /**
1092
+ * Filter, which ContentIssue to fetch.
1093
+ */
1094
+ where: Prisma.ContentIssueWhereUniqueInput
1095
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1096
+ }
1097
+
1098
+ /**
1099
+ * ContentIssue findUniqueOrThrow
1100
+ */
1101
+ export type ContentIssueFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1102
+ /**
1103
+ * Select specific fields to fetch from the ContentIssue
1104
+ */
1105
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1106
+ /**
1107
+ * Omit specific fields from the ContentIssue
1108
+ */
1109
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1110
+ /**
1111
+ * Choose, which related nodes to fetch as well
1112
+ */
1113
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1114
+ /**
1115
+ * Filter, which ContentIssue to fetch.
1116
+ */
1117
+ where: Prisma.ContentIssueWhereUniqueInput
1118
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1119
+ }
1120
+
1121
+ /**
1122
+ * ContentIssue findFirst
1123
+ */
1124
+ export type ContentIssueFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1125
+ /**
1126
+ * Select specific fields to fetch from the ContentIssue
1127
+ */
1128
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1129
+ /**
1130
+ * Omit specific fields from the ContentIssue
1131
+ */
1132
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1133
+ /**
1134
+ * Choose, which related nodes to fetch as well
1135
+ */
1136
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1137
+ /**
1138
+ * Filter, which ContentIssue to fetch.
1139
+ */
1140
+ where?: Prisma.ContentIssueWhereInput
1141
+ /**
1142
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1143
+ *
1144
+ * Determine the order of ContentIssues to fetch.
1145
+ */
1146
+ orderBy?: Prisma.ContentIssueOrderByWithRelationInput | Prisma.ContentIssueOrderByWithRelationInput[]
1147
+ /**
1148
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1149
+ *
1150
+ * Sets the position for searching for ContentIssues.
1151
+ */
1152
+ cursor?: Prisma.ContentIssueWhereUniqueInput
1153
+ /**
1154
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1155
+ *
1156
+ * Take `±n` ContentIssues from the position of the cursor.
1157
+ */
1158
+ take?: number
1159
+ /**
1160
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1161
+ *
1162
+ * Skip the first `n` ContentIssues.
1163
+ */
1164
+ skip?: number
1165
+ /**
1166
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1167
+ *
1168
+ * Filter by unique combinations of ContentIssues.
1169
+ */
1170
+ distinct?: Prisma.ContentIssueScalarFieldEnum | Prisma.ContentIssueScalarFieldEnum[]
1171
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1172
+ }
1173
+
1174
+ /**
1175
+ * ContentIssue findFirstOrThrow
1176
+ */
1177
+ export type ContentIssueFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1178
+ /**
1179
+ * Select specific fields to fetch from the ContentIssue
1180
+ */
1181
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1182
+ /**
1183
+ * Omit specific fields from the ContentIssue
1184
+ */
1185
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1186
+ /**
1187
+ * Choose, which related nodes to fetch as well
1188
+ */
1189
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1190
+ /**
1191
+ * Filter, which ContentIssue to fetch.
1192
+ */
1193
+ where?: Prisma.ContentIssueWhereInput
1194
+ /**
1195
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1196
+ *
1197
+ * Determine the order of ContentIssues to fetch.
1198
+ */
1199
+ orderBy?: Prisma.ContentIssueOrderByWithRelationInput | Prisma.ContentIssueOrderByWithRelationInput[]
1200
+ /**
1201
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1202
+ *
1203
+ * Sets the position for searching for ContentIssues.
1204
+ */
1205
+ cursor?: Prisma.ContentIssueWhereUniqueInput
1206
+ /**
1207
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1208
+ *
1209
+ * Take `±n` ContentIssues from the position of the cursor.
1210
+ */
1211
+ take?: number
1212
+ /**
1213
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1214
+ *
1215
+ * Skip the first `n` ContentIssues.
1216
+ */
1217
+ skip?: number
1218
+ /**
1219
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1220
+ *
1221
+ * Filter by unique combinations of ContentIssues.
1222
+ */
1223
+ distinct?: Prisma.ContentIssueScalarFieldEnum | Prisma.ContentIssueScalarFieldEnum[]
1224
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1225
+ }
1226
+
1227
+ /**
1228
+ * ContentIssue findMany
1229
+ */
1230
+ export type ContentIssueFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1231
+ /**
1232
+ * Select specific fields to fetch from the ContentIssue
1233
+ */
1234
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1235
+ /**
1236
+ * Omit specific fields from the ContentIssue
1237
+ */
1238
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1239
+ /**
1240
+ * Choose, which related nodes to fetch as well
1241
+ */
1242
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1243
+ /**
1244
+ * Filter, which ContentIssues to fetch.
1245
+ */
1246
+ where?: Prisma.ContentIssueWhereInput
1247
+ /**
1248
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1249
+ *
1250
+ * Determine the order of ContentIssues to fetch.
1251
+ */
1252
+ orderBy?: Prisma.ContentIssueOrderByWithRelationInput | Prisma.ContentIssueOrderByWithRelationInput[]
1253
+ /**
1254
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1255
+ *
1256
+ * Sets the position for listing ContentIssues.
1257
+ */
1258
+ cursor?: Prisma.ContentIssueWhereUniqueInput
1259
+ /**
1260
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1261
+ *
1262
+ * Take `±n` ContentIssues from the position of the cursor.
1263
+ */
1264
+ take?: number
1265
+ /**
1266
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1267
+ *
1268
+ * Skip the first `n` ContentIssues.
1269
+ */
1270
+ skip?: number
1271
+ /**
1272
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1273
+ *
1274
+ * Filter by unique combinations of ContentIssues.
1275
+ */
1276
+ distinct?: Prisma.ContentIssueScalarFieldEnum | Prisma.ContentIssueScalarFieldEnum[]
1277
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1278
+ }
1279
+
1280
+ /**
1281
+ * ContentIssue create
1282
+ */
1283
+ export type ContentIssueCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1284
+ /**
1285
+ * Select specific fields to fetch from the ContentIssue
1286
+ */
1287
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1288
+ /**
1289
+ * Omit specific fields from the ContentIssue
1290
+ */
1291
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1292
+ /**
1293
+ * Choose, which related nodes to fetch as well
1294
+ */
1295
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1296
+ /**
1297
+ * The data needed to create a ContentIssue.
1298
+ */
1299
+ data: Prisma.XOR<Prisma.ContentIssueCreateInput, Prisma.ContentIssueUncheckedCreateInput>
1300
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1301
+ }
1302
+
1303
+ /**
1304
+ * ContentIssue createMany
1305
+ */
1306
+ export type ContentIssueCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1307
+ /**
1308
+ * The data used to create many ContentIssues.
1309
+ */
1310
+ data: Prisma.ContentIssueCreateManyInput | Prisma.ContentIssueCreateManyInput[]
1311
+ skipDuplicates?: boolean
1312
+ }
1313
+
1314
+ /**
1315
+ * ContentIssue createManyAndReturn
1316
+ */
1317
+ export type ContentIssueCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1318
+ /**
1319
+ * Select specific fields to fetch from the ContentIssue
1320
+ */
1321
+ select?: Prisma.ContentIssueSelectCreateManyAndReturn<ExtArgs> | null
1322
+ /**
1323
+ * Omit specific fields from the ContentIssue
1324
+ */
1325
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1326
+ /**
1327
+ * The data used to create many ContentIssues.
1328
+ */
1329
+ data: Prisma.ContentIssueCreateManyInput | Prisma.ContentIssueCreateManyInput[]
1330
+ skipDuplicates?: boolean
1331
+ /**
1332
+ * Choose, which related nodes to fetch as well
1333
+ */
1334
+ include?: Prisma.ContentIssueIncludeCreateManyAndReturn<ExtArgs> | null
1335
+ }
1336
+
1337
+ /**
1338
+ * ContentIssue update
1339
+ */
1340
+ export type ContentIssueUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1341
+ /**
1342
+ * Select specific fields to fetch from the ContentIssue
1343
+ */
1344
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1345
+ /**
1346
+ * Omit specific fields from the ContentIssue
1347
+ */
1348
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1349
+ /**
1350
+ * Choose, which related nodes to fetch as well
1351
+ */
1352
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1353
+ /**
1354
+ * The data needed to update a ContentIssue.
1355
+ */
1356
+ data: Prisma.XOR<Prisma.ContentIssueUpdateInput, Prisma.ContentIssueUncheckedUpdateInput>
1357
+ /**
1358
+ * Choose, which ContentIssue to update.
1359
+ */
1360
+ where: Prisma.ContentIssueWhereUniqueInput
1361
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1362
+ }
1363
+
1364
+ /**
1365
+ * ContentIssue updateMany
1366
+ */
1367
+ export type ContentIssueUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1368
+ /**
1369
+ * The data used to update ContentIssues.
1370
+ */
1371
+ data: Prisma.XOR<Prisma.ContentIssueUpdateManyMutationInput, Prisma.ContentIssueUncheckedUpdateManyInput>
1372
+ /**
1373
+ * Filter which ContentIssues to update
1374
+ */
1375
+ where?: Prisma.ContentIssueWhereInput
1376
+ /**
1377
+ * Limit how many ContentIssues to update.
1378
+ */
1379
+ limit?: number
1380
+ }
1381
+
1382
+ /**
1383
+ * ContentIssue updateManyAndReturn
1384
+ */
1385
+ export type ContentIssueUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1386
+ /**
1387
+ * Select specific fields to fetch from the ContentIssue
1388
+ */
1389
+ select?: Prisma.ContentIssueSelectUpdateManyAndReturn<ExtArgs> | null
1390
+ /**
1391
+ * Omit specific fields from the ContentIssue
1392
+ */
1393
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1394
+ /**
1395
+ * The data used to update ContentIssues.
1396
+ */
1397
+ data: Prisma.XOR<Prisma.ContentIssueUpdateManyMutationInput, Prisma.ContentIssueUncheckedUpdateManyInput>
1398
+ /**
1399
+ * Filter which ContentIssues to update
1400
+ */
1401
+ where?: Prisma.ContentIssueWhereInput
1402
+ /**
1403
+ * Limit how many ContentIssues to update.
1404
+ */
1405
+ limit?: number
1406
+ /**
1407
+ * Choose, which related nodes to fetch as well
1408
+ */
1409
+ include?: Prisma.ContentIssueIncludeUpdateManyAndReturn<ExtArgs> | null
1410
+ }
1411
+
1412
+ /**
1413
+ * ContentIssue upsert
1414
+ */
1415
+ export type ContentIssueUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1416
+ /**
1417
+ * Select specific fields to fetch from the ContentIssue
1418
+ */
1419
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1420
+ /**
1421
+ * Omit specific fields from the ContentIssue
1422
+ */
1423
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1424
+ /**
1425
+ * Choose, which related nodes to fetch as well
1426
+ */
1427
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1428
+ /**
1429
+ * The filter to search for the ContentIssue to update in case it exists.
1430
+ */
1431
+ where: Prisma.ContentIssueWhereUniqueInput
1432
+ /**
1433
+ * In case the ContentIssue found by the `where` argument doesn't exist, create a new ContentIssue with this data.
1434
+ */
1435
+ create: Prisma.XOR<Prisma.ContentIssueCreateInput, Prisma.ContentIssueUncheckedCreateInput>
1436
+ /**
1437
+ * In case the ContentIssue was found with the provided `where` argument, update it with this data.
1438
+ */
1439
+ update: Prisma.XOR<Prisma.ContentIssueUpdateInput, Prisma.ContentIssueUncheckedUpdateInput>
1440
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1441
+ }
1442
+
1443
+ /**
1444
+ * ContentIssue delete
1445
+ */
1446
+ export type ContentIssueDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1447
+ /**
1448
+ * Select specific fields to fetch from the ContentIssue
1449
+ */
1450
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1451
+ /**
1452
+ * Omit specific fields from the ContentIssue
1453
+ */
1454
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1455
+ /**
1456
+ * Choose, which related nodes to fetch as well
1457
+ */
1458
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1459
+ /**
1460
+ * Filter which ContentIssue to delete.
1461
+ */
1462
+ where: Prisma.ContentIssueWhereUniqueInput
1463
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1464
+ }
1465
+
1466
+ /**
1467
+ * ContentIssue deleteMany
1468
+ */
1469
+ export type ContentIssueDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1470
+ /**
1471
+ * Filter which ContentIssues to delete
1472
+ */
1473
+ where?: Prisma.ContentIssueWhereInput
1474
+ /**
1475
+ * Limit how many ContentIssues to delete.
1476
+ */
1477
+ limit?: number
1478
+ }
1479
+
1480
+ /**
1481
+ * ContentIssue without action
1482
+ */
1483
+ export type ContentIssueDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1484
+ /**
1485
+ * Select specific fields to fetch from the ContentIssue
1486
+ */
1487
+ select?: Prisma.ContentIssueSelect<ExtArgs> | null
1488
+ /**
1489
+ * Omit specific fields from the ContentIssue
1490
+ */
1491
+ omit?: Prisma.ContentIssueOmit<ExtArgs> | null
1492
+ /**
1493
+ * Choose, which related nodes to fetch as well
1494
+ */
1495
+ include?: Prisma.ContentIssueInclude<ExtArgs> | null
1496
+ }