@actuate-media/cms-core 0.90.1 → 0.91.0

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