@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,2105 @@
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 `FormSubmission` 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 FormSubmission
17
+ *
18
+ */
19
+ export type FormSubmissionModel = runtime.Types.Result.DefaultSelection<Prisma.$FormSubmissionPayload>
20
+
21
+ export type AggregateFormSubmission = {
22
+ _count: FormSubmissionCountAggregateOutputType | null
23
+ _avg: FormSubmissionAvgAggregateOutputType | null
24
+ _sum: FormSubmissionSumAggregateOutputType | null
25
+ _min: FormSubmissionMinAggregateOutputType | null
26
+ _max: FormSubmissionMaxAggregateOutputType | null
27
+ }
28
+
29
+ export type FormSubmissionAvgAggregateOutputType = {
30
+ entryNumber: number | null
31
+ }
32
+
33
+ export type FormSubmissionSumAggregateOutputType = {
34
+ entryNumber: number | null
35
+ }
36
+
37
+ export type FormSubmissionMinAggregateOutputType = {
38
+ id: string | null
39
+ entryNumber: number | null
40
+ formId: string | null
41
+ schemaVersionId: string | null
42
+ senderName: string | null
43
+ senderEmail: string | null
44
+ senderPhone: string | null
45
+ preview: string | null
46
+ status: string | null
47
+ unread: boolean | null
48
+ starred: boolean | null
49
+ archived: boolean | null
50
+ spamStatus: string | null
51
+ ipAddressHash: string | null
52
+ userAgent: string | null
53
+ referrer: string | null
54
+ pageUrl: string | null
55
+ utmSource: string | null
56
+ utmMedium: string | null
57
+ utmCampaign: string | null
58
+ submittedAt: Date | null
59
+ readAt: Date | null
60
+ archivedAt: Date | null
61
+ createdAt: Date | null
62
+ updatedAt: Date | null
63
+ }
64
+
65
+ export type FormSubmissionMaxAggregateOutputType = {
66
+ id: string | null
67
+ entryNumber: number | null
68
+ formId: string | null
69
+ schemaVersionId: string | null
70
+ senderName: string | null
71
+ senderEmail: string | null
72
+ senderPhone: string | null
73
+ preview: string | null
74
+ status: string | null
75
+ unread: boolean | null
76
+ starred: boolean | null
77
+ archived: boolean | null
78
+ spamStatus: string | null
79
+ ipAddressHash: string | null
80
+ userAgent: string | null
81
+ referrer: string | null
82
+ pageUrl: string | null
83
+ utmSource: string | null
84
+ utmMedium: string | null
85
+ utmCampaign: string | null
86
+ submittedAt: Date | null
87
+ readAt: Date | null
88
+ archivedAt: Date | null
89
+ createdAt: Date | null
90
+ updatedAt: Date | null
91
+ }
92
+
93
+ export type FormSubmissionCountAggregateOutputType = {
94
+ id: number
95
+ entryNumber: number
96
+ formId: number
97
+ schemaVersionId: number
98
+ data: number
99
+ normalizedData: number
100
+ attribution: number
101
+ senderName: number
102
+ senderEmail: number
103
+ senderPhone: number
104
+ preview: number
105
+ status: number
106
+ unread: number
107
+ starred: number
108
+ archived: number
109
+ spamStatus: number
110
+ ipAddressHash: number
111
+ userAgent: number
112
+ referrer: number
113
+ pageUrl: number
114
+ utmSource: number
115
+ utmMedium: number
116
+ utmCampaign: number
117
+ submittedAt: number
118
+ readAt: number
119
+ archivedAt: number
120
+ createdAt: number
121
+ updatedAt: number
122
+ _all: number
123
+ }
124
+
125
+
126
+ export type FormSubmissionAvgAggregateInputType = {
127
+ entryNumber?: true
128
+ }
129
+
130
+ export type FormSubmissionSumAggregateInputType = {
131
+ entryNumber?: true
132
+ }
133
+
134
+ export type FormSubmissionMinAggregateInputType = {
135
+ id?: true
136
+ entryNumber?: true
137
+ formId?: true
138
+ schemaVersionId?: true
139
+ senderName?: true
140
+ senderEmail?: true
141
+ senderPhone?: true
142
+ preview?: true
143
+ status?: true
144
+ unread?: true
145
+ starred?: true
146
+ archived?: true
147
+ spamStatus?: true
148
+ ipAddressHash?: true
149
+ userAgent?: true
150
+ referrer?: true
151
+ pageUrl?: true
152
+ utmSource?: true
153
+ utmMedium?: true
154
+ utmCampaign?: true
155
+ submittedAt?: true
156
+ readAt?: true
157
+ archivedAt?: true
158
+ createdAt?: true
159
+ updatedAt?: true
160
+ }
161
+
162
+ export type FormSubmissionMaxAggregateInputType = {
163
+ id?: true
164
+ entryNumber?: true
165
+ formId?: true
166
+ schemaVersionId?: true
167
+ senderName?: true
168
+ senderEmail?: true
169
+ senderPhone?: true
170
+ preview?: true
171
+ status?: true
172
+ unread?: true
173
+ starred?: true
174
+ archived?: true
175
+ spamStatus?: true
176
+ ipAddressHash?: true
177
+ userAgent?: true
178
+ referrer?: true
179
+ pageUrl?: true
180
+ utmSource?: true
181
+ utmMedium?: true
182
+ utmCampaign?: true
183
+ submittedAt?: true
184
+ readAt?: true
185
+ archivedAt?: true
186
+ createdAt?: true
187
+ updatedAt?: true
188
+ }
189
+
190
+ export type FormSubmissionCountAggregateInputType = {
191
+ id?: true
192
+ entryNumber?: true
193
+ formId?: true
194
+ schemaVersionId?: true
195
+ data?: true
196
+ normalizedData?: true
197
+ attribution?: true
198
+ senderName?: true
199
+ senderEmail?: true
200
+ senderPhone?: true
201
+ preview?: true
202
+ status?: true
203
+ unread?: true
204
+ starred?: true
205
+ archived?: true
206
+ spamStatus?: true
207
+ ipAddressHash?: true
208
+ userAgent?: true
209
+ referrer?: true
210
+ pageUrl?: true
211
+ utmSource?: true
212
+ utmMedium?: true
213
+ utmCampaign?: true
214
+ submittedAt?: true
215
+ readAt?: true
216
+ archivedAt?: true
217
+ createdAt?: true
218
+ updatedAt?: true
219
+ _all?: true
220
+ }
221
+
222
+ export type FormSubmissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
223
+ /**
224
+ * Filter which FormSubmission to aggregate.
225
+ */
226
+ where?: Prisma.FormSubmissionWhereInput
227
+ /**
228
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
229
+ *
230
+ * Determine the order of FormSubmissions to fetch.
231
+ */
232
+ orderBy?: Prisma.FormSubmissionOrderByWithRelationInput | Prisma.FormSubmissionOrderByWithRelationInput[]
233
+ /**
234
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
235
+ *
236
+ * Sets the start position
237
+ */
238
+ cursor?: Prisma.FormSubmissionWhereUniqueInput
239
+ /**
240
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
241
+ *
242
+ * Take `±n` FormSubmissions from the position of the cursor.
243
+ */
244
+ take?: number
245
+ /**
246
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
247
+ *
248
+ * Skip the first `n` FormSubmissions.
249
+ */
250
+ skip?: number
251
+ /**
252
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
253
+ *
254
+ * Count returned FormSubmissions
255
+ **/
256
+ _count?: true | FormSubmissionCountAggregateInputType
257
+ /**
258
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
259
+ *
260
+ * Select which fields to average
261
+ **/
262
+ _avg?: FormSubmissionAvgAggregateInputType
263
+ /**
264
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
265
+ *
266
+ * Select which fields to sum
267
+ **/
268
+ _sum?: FormSubmissionSumAggregateInputType
269
+ /**
270
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
271
+ *
272
+ * Select which fields to find the minimum value
273
+ **/
274
+ _min?: FormSubmissionMinAggregateInputType
275
+ /**
276
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
277
+ *
278
+ * Select which fields to find the maximum value
279
+ **/
280
+ _max?: FormSubmissionMaxAggregateInputType
281
+ }
282
+
283
+ export type GetFormSubmissionAggregateType<T extends FormSubmissionAggregateArgs> = {
284
+ [P in keyof T & keyof AggregateFormSubmission]: P extends '_count' | 'count'
285
+ ? T[P] extends true
286
+ ? number
287
+ : Prisma.GetScalarType<T[P], AggregateFormSubmission[P]>
288
+ : Prisma.GetScalarType<T[P], AggregateFormSubmission[P]>
289
+ }
290
+
291
+
292
+
293
+
294
+ export type FormSubmissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
295
+ where?: Prisma.FormSubmissionWhereInput
296
+ orderBy?: Prisma.FormSubmissionOrderByWithAggregationInput | Prisma.FormSubmissionOrderByWithAggregationInput[]
297
+ by: Prisma.FormSubmissionScalarFieldEnum[] | Prisma.FormSubmissionScalarFieldEnum
298
+ having?: Prisma.FormSubmissionScalarWhereWithAggregatesInput
299
+ take?: number
300
+ skip?: number
301
+ _count?: FormSubmissionCountAggregateInputType | true
302
+ _avg?: FormSubmissionAvgAggregateInputType
303
+ _sum?: FormSubmissionSumAggregateInputType
304
+ _min?: FormSubmissionMinAggregateInputType
305
+ _max?: FormSubmissionMaxAggregateInputType
306
+ }
307
+
308
+ export type FormSubmissionGroupByOutputType = {
309
+ id: string
310
+ entryNumber: number | null
311
+ formId: string
312
+ schemaVersionId: string | null
313
+ data: runtime.JsonValue
314
+ normalizedData: runtime.JsonValue | null
315
+ attribution: runtime.JsonValue | null
316
+ senderName: string | null
317
+ senderEmail: string | null
318
+ senderPhone: string | null
319
+ preview: string | null
320
+ status: string
321
+ unread: boolean
322
+ starred: boolean
323
+ archived: boolean
324
+ spamStatus: string
325
+ ipAddressHash: string | null
326
+ userAgent: string | null
327
+ referrer: string | null
328
+ pageUrl: string | null
329
+ utmSource: string | null
330
+ utmMedium: string | null
331
+ utmCampaign: string | null
332
+ submittedAt: Date
333
+ readAt: Date | null
334
+ archivedAt: Date | null
335
+ createdAt: Date
336
+ updatedAt: Date
337
+ _count: FormSubmissionCountAggregateOutputType | null
338
+ _avg: FormSubmissionAvgAggregateOutputType | null
339
+ _sum: FormSubmissionSumAggregateOutputType | null
340
+ _min: FormSubmissionMinAggregateOutputType | null
341
+ _max: FormSubmissionMaxAggregateOutputType | null
342
+ }
343
+
344
+ export type GetFormSubmissionGroupByPayload<T extends FormSubmissionGroupByArgs> = Prisma.PrismaPromise<
345
+ Array<
346
+ Prisma.PickEnumerable<FormSubmissionGroupByOutputType, T['by']> &
347
+ {
348
+ [P in ((keyof T) & (keyof FormSubmissionGroupByOutputType))]: P extends '_count'
349
+ ? T[P] extends boolean
350
+ ? number
351
+ : Prisma.GetScalarType<T[P], FormSubmissionGroupByOutputType[P]>
352
+ : Prisma.GetScalarType<T[P], FormSubmissionGroupByOutputType[P]>
353
+ }
354
+ >
355
+ >
356
+
357
+
358
+
359
+ export type FormSubmissionWhereInput = {
360
+ AND?: Prisma.FormSubmissionWhereInput | Prisma.FormSubmissionWhereInput[]
361
+ OR?: Prisma.FormSubmissionWhereInput[]
362
+ NOT?: Prisma.FormSubmissionWhereInput | Prisma.FormSubmissionWhereInput[]
363
+ id?: Prisma.StringFilter<"FormSubmission"> | string
364
+ entryNumber?: Prisma.IntNullableFilter<"FormSubmission"> | number | null
365
+ formId?: Prisma.StringFilter<"FormSubmission"> | string
366
+ schemaVersionId?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
367
+ data?: Prisma.JsonFilter<"FormSubmission">
368
+ normalizedData?: Prisma.JsonNullableFilter<"FormSubmission">
369
+ attribution?: Prisma.JsonNullableFilter<"FormSubmission">
370
+ senderName?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
371
+ senderEmail?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
372
+ senderPhone?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
373
+ preview?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
374
+ status?: Prisma.StringFilter<"FormSubmission"> | string
375
+ unread?: Prisma.BoolFilter<"FormSubmission"> | boolean
376
+ starred?: Prisma.BoolFilter<"FormSubmission"> | boolean
377
+ archived?: Prisma.BoolFilter<"FormSubmission"> | boolean
378
+ spamStatus?: Prisma.StringFilter<"FormSubmission"> | string
379
+ ipAddressHash?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
380
+ userAgent?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
381
+ referrer?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
382
+ pageUrl?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
383
+ utmSource?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
384
+ utmMedium?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
385
+ utmCampaign?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
386
+ submittedAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
387
+ readAt?: Prisma.DateTimeNullableFilter<"FormSubmission"> | Date | string | null
388
+ archivedAt?: Prisma.DateTimeNullableFilter<"FormSubmission"> | Date | string | null
389
+ createdAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
390
+ updatedAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
391
+ files?: Prisma.FormSubmissionFileListRelationFilter
392
+ }
393
+
394
+ export type FormSubmissionOrderByWithRelationInput = {
395
+ id?: Prisma.SortOrder
396
+ entryNumber?: Prisma.SortOrderInput | Prisma.SortOrder
397
+ formId?: Prisma.SortOrder
398
+ schemaVersionId?: Prisma.SortOrderInput | Prisma.SortOrder
399
+ data?: Prisma.SortOrder
400
+ normalizedData?: Prisma.SortOrderInput | Prisma.SortOrder
401
+ attribution?: Prisma.SortOrderInput | Prisma.SortOrder
402
+ senderName?: Prisma.SortOrderInput | Prisma.SortOrder
403
+ senderEmail?: Prisma.SortOrderInput | Prisma.SortOrder
404
+ senderPhone?: Prisma.SortOrderInput | Prisma.SortOrder
405
+ preview?: Prisma.SortOrderInput | Prisma.SortOrder
406
+ status?: Prisma.SortOrder
407
+ unread?: Prisma.SortOrder
408
+ starred?: Prisma.SortOrder
409
+ archived?: Prisma.SortOrder
410
+ spamStatus?: Prisma.SortOrder
411
+ ipAddressHash?: Prisma.SortOrderInput | Prisma.SortOrder
412
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
413
+ referrer?: Prisma.SortOrderInput | Prisma.SortOrder
414
+ pageUrl?: Prisma.SortOrderInput | Prisma.SortOrder
415
+ utmSource?: Prisma.SortOrderInput | Prisma.SortOrder
416
+ utmMedium?: Prisma.SortOrderInput | Prisma.SortOrder
417
+ utmCampaign?: Prisma.SortOrderInput | Prisma.SortOrder
418
+ submittedAt?: Prisma.SortOrder
419
+ readAt?: Prisma.SortOrderInput | Prisma.SortOrder
420
+ archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
421
+ createdAt?: Prisma.SortOrder
422
+ updatedAt?: Prisma.SortOrder
423
+ files?: Prisma.FormSubmissionFileOrderByRelationAggregateInput
424
+ _relevance?: Prisma.FormSubmissionOrderByRelevanceInput
425
+ }
426
+
427
+ export type FormSubmissionWhereUniqueInput = Prisma.AtLeast<{
428
+ id?: string
429
+ AND?: Prisma.FormSubmissionWhereInput | Prisma.FormSubmissionWhereInput[]
430
+ OR?: Prisma.FormSubmissionWhereInput[]
431
+ NOT?: Prisma.FormSubmissionWhereInput | Prisma.FormSubmissionWhereInput[]
432
+ entryNumber?: Prisma.IntNullableFilter<"FormSubmission"> | number | null
433
+ formId?: Prisma.StringFilter<"FormSubmission"> | string
434
+ schemaVersionId?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
435
+ data?: Prisma.JsonFilter<"FormSubmission">
436
+ normalizedData?: Prisma.JsonNullableFilter<"FormSubmission">
437
+ attribution?: Prisma.JsonNullableFilter<"FormSubmission">
438
+ senderName?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
439
+ senderEmail?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
440
+ senderPhone?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
441
+ preview?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
442
+ status?: Prisma.StringFilter<"FormSubmission"> | string
443
+ unread?: Prisma.BoolFilter<"FormSubmission"> | boolean
444
+ starred?: Prisma.BoolFilter<"FormSubmission"> | boolean
445
+ archived?: Prisma.BoolFilter<"FormSubmission"> | boolean
446
+ spamStatus?: Prisma.StringFilter<"FormSubmission"> | string
447
+ ipAddressHash?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
448
+ userAgent?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
449
+ referrer?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
450
+ pageUrl?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
451
+ utmSource?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
452
+ utmMedium?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
453
+ utmCampaign?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
454
+ submittedAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
455
+ readAt?: Prisma.DateTimeNullableFilter<"FormSubmission"> | Date | string | null
456
+ archivedAt?: Prisma.DateTimeNullableFilter<"FormSubmission"> | Date | string | null
457
+ createdAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
458
+ updatedAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
459
+ files?: Prisma.FormSubmissionFileListRelationFilter
460
+ }, "id">
461
+
462
+ export type FormSubmissionOrderByWithAggregationInput = {
463
+ id?: Prisma.SortOrder
464
+ entryNumber?: Prisma.SortOrderInput | Prisma.SortOrder
465
+ formId?: Prisma.SortOrder
466
+ schemaVersionId?: Prisma.SortOrderInput | Prisma.SortOrder
467
+ data?: Prisma.SortOrder
468
+ normalizedData?: Prisma.SortOrderInput | Prisma.SortOrder
469
+ attribution?: Prisma.SortOrderInput | Prisma.SortOrder
470
+ senderName?: Prisma.SortOrderInput | Prisma.SortOrder
471
+ senderEmail?: Prisma.SortOrderInput | Prisma.SortOrder
472
+ senderPhone?: Prisma.SortOrderInput | Prisma.SortOrder
473
+ preview?: Prisma.SortOrderInput | Prisma.SortOrder
474
+ status?: Prisma.SortOrder
475
+ unread?: Prisma.SortOrder
476
+ starred?: Prisma.SortOrder
477
+ archived?: Prisma.SortOrder
478
+ spamStatus?: Prisma.SortOrder
479
+ ipAddressHash?: Prisma.SortOrderInput | Prisma.SortOrder
480
+ userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
481
+ referrer?: Prisma.SortOrderInput | Prisma.SortOrder
482
+ pageUrl?: Prisma.SortOrderInput | Prisma.SortOrder
483
+ utmSource?: Prisma.SortOrderInput | Prisma.SortOrder
484
+ utmMedium?: Prisma.SortOrderInput | Prisma.SortOrder
485
+ utmCampaign?: Prisma.SortOrderInput | Prisma.SortOrder
486
+ submittedAt?: Prisma.SortOrder
487
+ readAt?: Prisma.SortOrderInput | Prisma.SortOrder
488
+ archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
489
+ createdAt?: Prisma.SortOrder
490
+ updatedAt?: Prisma.SortOrder
491
+ _count?: Prisma.FormSubmissionCountOrderByAggregateInput
492
+ _avg?: Prisma.FormSubmissionAvgOrderByAggregateInput
493
+ _max?: Prisma.FormSubmissionMaxOrderByAggregateInput
494
+ _min?: Prisma.FormSubmissionMinOrderByAggregateInput
495
+ _sum?: Prisma.FormSubmissionSumOrderByAggregateInput
496
+ }
497
+
498
+ export type FormSubmissionScalarWhereWithAggregatesInput = {
499
+ AND?: Prisma.FormSubmissionScalarWhereWithAggregatesInput | Prisma.FormSubmissionScalarWhereWithAggregatesInput[]
500
+ OR?: Prisma.FormSubmissionScalarWhereWithAggregatesInput[]
501
+ NOT?: Prisma.FormSubmissionScalarWhereWithAggregatesInput | Prisma.FormSubmissionScalarWhereWithAggregatesInput[]
502
+ id?: Prisma.StringWithAggregatesFilter<"FormSubmission"> | string
503
+ entryNumber?: Prisma.IntNullableWithAggregatesFilter<"FormSubmission"> | number | null
504
+ formId?: Prisma.StringWithAggregatesFilter<"FormSubmission"> | string
505
+ schemaVersionId?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
506
+ data?: Prisma.JsonWithAggregatesFilter<"FormSubmission">
507
+ normalizedData?: Prisma.JsonNullableWithAggregatesFilter<"FormSubmission">
508
+ attribution?: Prisma.JsonNullableWithAggregatesFilter<"FormSubmission">
509
+ senderName?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
510
+ senderEmail?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
511
+ senderPhone?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
512
+ preview?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
513
+ status?: Prisma.StringWithAggregatesFilter<"FormSubmission"> | string
514
+ unread?: Prisma.BoolWithAggregatesFilter<"FormSubmission"> | boolean
515
+ starred?: Prisma.BoolWithAggregatesFilter<"FormSubmission"> | boolean
516
+ archived?: Prisma.BoolWithAggregatesFilter<"FormSubmission"> | boolean
517
+ spamStatus?: Prisma.StringWithAggregatesFilter<"FormSubmission"> | string
518
+ ipAddressHash?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
519
+ userAgent?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
520
+ referrer?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
521
+ pageUrl?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
522
+ utmSource?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
523
+ utmMedium?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
524
+ utmCampaign?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
525
+ submittedAt?: Prisma.DateTimeWithAggregatesFilter<"FormSubmission"> | Date | string
526
+ readAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FormSubmission"> | Date | string | null
527
+ archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"FormSubmission"> | Date | string | null
528
+ createdAt?: Prisma.DateTimeWithAggregatesFilter<"FormSubmission"> | Date | string
529
+ updatedAt?: Prisma.DateTimeWithAggregatesFilter<"FormSubmission"> | Date | string
530
+ }
531
+
532
+ export type FormSubmissionCreateInput = {
533
+ id?: string
534
+ entryNumber?: number | null
535
+ formId: string
536
+ schemaVersionId?: string | null
537
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue
538
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
539
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
540
+ senderName?: string | null
541
+ senderEmail?: string | null
542
+ senderPhone?: string | null
543
+ preview?: string | null
544
+ status?: string
545
+ unread?: boolean
546
+ starred?: boolean
547
+ archived?: boolean
548
+ spamStatus?: string
549
+ ipAddressHash?: string | null
550
+ userAgent?: string | null
551
+ referrer?: string | null
552
+ pageUrl?: string | null
553
+ utmSource?: string | null
554
+ utmMedium?: string | null
555
+ utmCampaign?: string | null
556
+ submittedAt?: Date | string
557
+ readAt?: Date | string | null
558
+ archivedAt?: Date | string | null
559
+ createdAt?: Date | string
560
+ updatedAt?: Date | string
561
+ files?: Prisma.FormSubmissionFileCreateNestedManyWithoutSubmissionInput
562
+ }
563
+
564
+ export type FormSubmissionUncheckedCreateInput = {
565
+ id?: string
566
+ entryNumber?: number | null
567
+ formId: string
568
+ schemaVersionId?: string | null
569
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue
570
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
571
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
572
+ senderName?: string | null
573
+ senderEmail?: string | null
574
+ senderPhone?: string | null
575
+ preview?: string | null
576
+ status?: string
577
+ unread?: boolean
578
+ starred?: boolean
579
+ archived?: boolean
580
+ spamStatus?: string
581
+ ipAddressHash?: string | null
582
+ userAgent?: string | null
583
+ referrer?: string | null
584
+ pageUrl?: string | null
585
+ utmSource?: string | null
586
+ utmMedium?: string | null
587
+ utmCampaign?: string | null
588
+ submittedAt?: Date | string
589
+ readAt?: Date | string | null
590
+ archivedAt?: Date | string | null
591
+ createdAt?: Date | string
592
+ updatedAt?: Date | string
593
+ files?: Prisma.FormSubmissionFileUncheckedCreateNestedManyWithoutSubmissionInput
594
+ }
595
+
596
+ export type FormSubmissionUpdateInput = {
597
+ id?: Prisma.StringFieldUpdateOperationsInput | string
598
+ entryNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
599
+ formId?: Prisma.StringFieldUpdateOperationsInput | string
600
+ schemaVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
601
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
602
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
603
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
604
+ senderName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
605
+ senderEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
606
+ senderPhone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
607
+ preview?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
608
+ status?: Prisma.StringFieldUpdateOperationsInput | string
609
+ unread?: Prisma.BoolFieldUpdateOperationsInput | boolean
610
+ starred?: Prisma.BoolFieldUpdateOperationsInput | boolean
611
+ archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
612
+ spamStatus?: Prisma.StringFieldUpdateOperationsInput | string
613
+ ipAddressHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
614
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
615
+ referrer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
616
+ pageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
617
+ utmSource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
618
+ utmMedium?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
619
+ utmCampaign?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
620
+ submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
621
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
622
+ archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
623
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
624
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
625
+ files?: Prisma.FormSubmissionFileUpdateManyWithoutSubmissionNestedInput
626
+ }
627
+
628
+ export type FormSubmissionUncheckedUpdateInput = {
629
+ id?: Prisma.StringFieldUpdateOperationsInput | string
630
+ entryNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
631
+ formId?: Prisma.StringFieldUpdateOperationsInput | string
632
+ schemaVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
633
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
634
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
635
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
636
+ senderName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
637
+ senderEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
638
+ senderPhone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
639
+ preview?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
640
+ status?: Prisma.StringFieldUpdateOperationsInput | string
641
+ unread?: Prisma.BoolFieldUpdateOperationsInput | boolean
642
+ starred?: Prisma.BoolFieldUpdateOperationsInput | boolean
643
+ archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
644
+ spamStatus?: Prisma.StringFieldUpdateOperationsInput | string
645
+ ipAddressHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
646
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
647
+ referrer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
648
+ pageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
649
+ utmSource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
650
+ utmMedium?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
651
+ utmCampaign?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
652
+ submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
653
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
654
+ archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
655
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
656
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
657
+ files?: Prisma.FormSubmissionFileUncheckedUpdateManyWithoutSubmissionNestedInput
658
+ }
659
+
660
+ export type FormSubmissionCreateManyInput = {
661
+ id?: string
662
+ entryNumber?: number | null
663
+ formId: string
664
+ schemaVersionId?: string | null
665
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue
666
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
667
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
668
+ senderName?: string | null
669
+ senderEmail?: string | null
670
+ senderPhone?: string | null
671
+ preview?: string | null
672
+ status?: string
673
+ unread?: boolean
674
+ starred?: boolean
675
+ archived?: boolean
676
+ spamStatus?: string
677
+ ipAddressHash?: string | null
678
+ userAgent?: string | null
679
+ referrer?: string | null
680
+ pageUrl?: string | null
681
+ utmSource?: string | null
682
+ utmMedium?: string | null
683
+ utmCampaign?: string | null
684
+ submittedAt?: Date | string
685
+ readAt?: Date | string | null
686
+ archivedAt?: Date | string | null
687
+ createdAt?: Date | string
688
+ updatedAt?: Date | string
689
+ }
690
+
691
+ export type FormSubmissionUpdateManyMutationInput = {
692
+ id?: Prisma.StringFieldUpdateOperationsInput | string
693
+ entryNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
694
+ formId?: Prisma.StringFieldUpdateOperationsInput | string
695
+ schemaVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
696
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
697
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
698
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
699
+ senderName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
700
+ senderEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
701
+ senderPhone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
702
+ preview?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
703
+ status?: Prisma.StringFieldUpdateOperationsInput | string
704
+ unread?: Prisma.BoolFieldUpdateOperationsInput | boolean
705
+ starred?: Prisma.BoolFieldUpdateOperationsInput | boolean
706
+ archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
707
+ spamStatus?: Prisma.StringFieldUpdateOperationsInput | string
708
+ ipAddressHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
709
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
710
+ referrer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
711
+ pageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
712
+ utmSource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
713
+ utmMedium?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
714
+ utmCampaign?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
715
+ submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
716
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
717
+ archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
718
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
719
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
720
+ }
721
+
722
+ export type FormSubmissionUncheckedUpdateManyInput = {
723
+ id?: Prisma.StringFieldUpdateOperationsInput | string
724
+ entryNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
725
+ formId?: Prisma.StringFieldUpdateOperationsInput | string
726
+ schemaVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
727
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
728
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
729
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
730
+ senderName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
731
+ senderEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
732
+ senderPhone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
733
+ preview?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
734
+ status?: Prisma.StringFieldUpdateOperationsInput | string
735
+ unread?: Prisma.BoolFieldUpdateOperationsInput | boolean
736
+ starred?: Prisma.BoolFieldUpdateOperationsInput | boolean
737
+ archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
738
+ spamStatus?: Prisma.StringFieldUpdateOperationsInput | string
739
+ ipAddressHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
740
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
741
+ referrer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
742
+ pageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
743
+ utmSource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
744
+ utmMedium?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
745
+ utmCampaign?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
746
+ submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
747
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
748
+ archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
749
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
750
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
751
+ }
752
+
753
+ export type FormSubmissionOrderByRelevanceInput = {
754
+ fields: Prisma.FormSubmissionOrderByRelevanceFieldEnum | Prisma.FormSubmissionOrderByRelevanceFieldEnum[]
755
+ sort: Prisma.SortOrder
756
+ search: string
757
+ }
758
+
759
+ export type FormSubmissionCountOrderByAggregateInput = {
760
+ id?: Prisma.SortOrder
761
+ entryNumber?: Prisma.SortOrder
762
+ formId?: Prisma.SortOrder
763
+ schemaVersionId?: Prisma.SortOrder
764
+ data?: Prisma.SortOrder
765
+ normalizedData?: Prisma.SortOrder
766
+ attribution?: Prisma.SortOrder
767
+ senderName?: Prisma.SortOrder
768
+ senderEmail?: Prisma.SortOrder
769
+ senderPhone?: Prisma.SortOrder
770
+ preview?: Prisma.SortOrder
771
+ status?: Prisma.SortOrder
772
+ unread?: Prisma.SortOrder
773
+ starred?: Prisma.SortOrder
774
+ archived?: Prisma.SortOrder
775
+ spamStatus?: Prisma.SortOrder
776
+ ipAddressHash?: Prisma.SortOrder
777
+ userAgent?: Prisma.SortOrder
778
+ referrer?: Prisma.SortOrder
779
+ pageUrl?: Prisma.SortOrder
780
+ utmSource?: Prisma.SortOrder
781
+ utmMedium?: Prisma.SortOrder
782
+ utmCampaign?: Prisma.SortOrder
783
+ submittedAt?: Prisma.SortOrder
784
+ readAt?: Prisma.SortOrder
785
+ archivedAt?: Prisma.SortOrder
786
+ createdAt?: Prisma.SortOrder
787
+ updatedAt?: Prisma.SortOrder
788
+ }
789
+
790
+ export type FormSubmissionAvgOrderByAggregateInput = {
791
+ entryNumber?: Prisma.SortOrder
792
+ }
793
+
794
+ export type FormSubmissionMaxOrderByAggregateInput = {
795
+ id?: Prisma.SortOrder
796
+ entryNumber?: Prisma.SortOrder
797
+ formId?: Prisma.SortOrder
798
+ schemaVersionId?: Prisma.SortOrder
799
+ senderName?: Prisma.SortOrder
800
+ senderEmail?: Prisma.SortOrder
801
+ senderPhone?: Prisma.SortOrder
802
+ preview?: Prisma.SortOrder
803
+ status?: Prisma.SortOrder
804
+ unread?: Prisma.SortOrder
805
+ starred?: Prisma.SortOrder
806
+ archived?: Prisma.SortOrder
807
+ spamStatus?: Prisma.SortOrder
808
+ ipAddressHash?: Prisma.SortOrder
809
+ userAgent?: Prisma.SortOrder
810
+ referrer?: Prisma.SortOrder
811
+ pageUrl?: Prisma.SortOrder
812
+ utmSource?: Prisma.SortOrder
813
+ utmMedium?: Prisma.SortOrder
814
+ utmCampaign?: Prisma.SortOrder
815
+ submittedAt?: Prisma.SortOrder
816
+ readAt?: Prisma.SortOrder
817
+ archivedAt?: Prisma.SortOrder
818
+ createdAt?: Prisma.SortOrder
819
+ updatedAt?: Prisma.SortOrder
820
+ }
821
+
822
+ export type FormSubmissionMinOrderByAggregateInput = {
823
+ id?: Prisma.SortOrder
824
+ entryNumber?: Prisma.SortOrder
825
+ formId?: Prisma.SortOrder
826
+ schemaVersionId?: Prisma.SortOrder
827
+ senderName?: Prisma.SortOrder
828
+ senderEmail?: Prisma.SortOrder
829
+ senderPhone?: Prisma.SortOrder
830
+ preview?: Prisma.SortOrder
831
+ status?: Prisma.SortOrder
832
+ unread?: Prisma.SortOrder
833
+ starred?: Prisma.SortOrder
834
+ archived?: Prisma.SortOrder
835
+ spamStatus?: Prisma.SortOrder
836
+ ipAddressHash?: Prisma.SortOrder
837
+ userAgent?: Prisma.SortOrder
838
+ referrer?: Prisma.SortOrder
839
+ pageUrl?: Prisma.SortOrder
840
+ utmSource?: Prisma.SortOrder
841
+ utmMedium?: Prisma.SortOrder
842
+ utmCampaign?: Prisma.SortOrder
843
+ submittedAt?: Prisma.SortOrder
844
+ readAt?: Prisma.SortOrder
845
+ archivedAt?: Prisma.SortOrder
846
+ createdAt?: Prisma.SortOrder
847
+ updatedAt?: Prisma.SortOrder
848
+ }
849
+
850
+ export type FormSubmissionSumOrderByAggregateInput = {
851
+ entryNumber?: Prisma.SortOrder
852
+ }
853
+
854
+ export type FormSubmissionScalarRelationFilter = {
855
+ is?: Prisma.FormSubmissionWhereInput
856
+ isNot?: Prisma.FormSubmissionWhereInput
857
+ }
858
+
859
+ export type FormSubmissionCreateNestedOneWithoutFilesInput = {
860
+ create?: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFilesInput, Prisma.FormSubmissionUncheckedCreateWithoutFilesInput>
861
+ connectOrCreate?: Prisma.FormSubmissionCreateOrConnectWithoutFilesInput
862
+ connect?: Prisma.FormSubmissionWhereUniqueInput
863
+ }
864
+
865
+ export type FormSubmissionUpdateOneRequiredWithoutFilesNestedInput = {
866
+ create?: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFilesInput, Prisma.FormSubmissionUncheckedCreateWithoutFilesInput>
867
+ connectOrCreate?: Prisma.FormSubmissionCreateOrConnectWithoutFilesInput
868
+ upsert?: Prisma.FormSubmissionUpsertWithoutFilesInput
869
+ connect?: Prisma.FormSubmissionWhereUniqueInput
870
+ update?: Prisma.XOR<Prisma.XOR<Prisma.FormSubmissionUpdateToOneWithWhereWithoutFilesInput, Prisma.FormSubmissionUpdateWithoutFilesInput>, Prisma.FormSubmissionUncheckedUpdateWithoutFilesInput>
871
+ }
872
+
873
+ export type FormSubmissionCreateWithoutFilesInput = {
874
+ id?: string
875
+ entryNumber?: number | null
876
+ formId: string
877
+ schemaVersionId?: string | null
878
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue
879
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
880
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
881
+ senderName?: string | null
882
+ senderEmail?: string | null
883
+ senderPhone?: string | null
884
+ preview?: string | null
885
+ status?: string
886
+ unread?: boolean
887
+ starred?: boolean
888
+ archived?: boolean
889
+ spamStatus?: string
890
+ ipAddressHash?: string | null
891
+ userAgent?: string | null
892
+ referrer?: string | null
893
+ pageUrl?: string | null
894
+ utmSource?: string | null
895
+ utmMedium?: string | null
896
+ utmCampaign?: string | null
897
+ submittedAt?: Date | string
898
+ readAt?: Date | string | null
899
+ archivedAt?: Date | string | null
900
+ createdAt?: Date | string
901
+ updatedAt?: Date | string
902
+ }
903
+
904
+ export type FormSubmissionUncheckedCreateWithoutFilesInput = {
905
+ id?: string
906
+ entryNumber?: number | null
907
+ formId: string
908
+ schemaVersionId?: string | null
909
+ data: Prisma.JsonNullValueInput | runtime.InputJsonValue
910
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
911
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
912
+ senderName?: string | null
913
+ senderEmail?: string | null
914
+ senderPhone?: string | null
915
+ preview?: string | null
916
+ status?: string
917
+ unread?: boolean
918
+ starred?: boolean
919
+ archived?: boolean
920
+ spamStatus?: string
921
+ ipAddressHash?: string | null
922
+ userAgent?: string | null
923
+ referrer?: string | null
924
+ pageUrl?: string | null
925
+ utmSource?: string | null
926
+ utmMedium?: string | null
927
+ utmCampaign?: string | null
928
+ submittedAt?: Date | string
929
+ readAt?: Date | string | null
930
+ archivedAt?: Date | string | null
931
+ createdAt?: Date | string
932
+ updatedAt?: Date | string
933
+ }
934
+
935
+ export type FormSubmissionCreateOrConnectWithoutFilesInput = {
936
+ where: Prisma.FormSubmissionWhereUniqueInput
937
+ create: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFilesInput, Prisma.FormSubmissionUncheckedCreateWithoutFilesInput>
938
+ }
939
+
940
+ export type FormSubmissionUpsertWithoutFilesInput = {
941
+ update: Prisma.XOR<Prisma.FormSubmissionUpdateWithoutFilesInput, Prisma.FormSubmissionUncheckedUpdateWithoutFilesInput>
942
+ create: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFilesInput, Prisma.FormSubmissionUncheckedCreateWithoutFilesInput>
943
+ where?: Prisma.FormSubmissionWhereInput
944
+ }
945
+
946
+ export type FormSubmissionUpdateToOneWithWhereWithoutFilesInput = {
947
+ where?: Prisma.FormSubmissionWhereInput
948
+ data: Prisma.XOR<Prisma.FormSubmissionUpdateWithoutFilesInput, Prisma.FormSubmissionUncheckedUpdateWithoutFilesInput>
949
+ }
950
+
951
+ export type FormSubmissionUpdateWithoutFilesInput = {
952
+ id?: Prisma.StringFieldUpdateOperationsInput | string
953
+ entryNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
954
+ formId?: Prisma.StringFieldUpdateOperationsInput | string
955
+ schemaVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
956
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
957
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
958
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
959
+ senderName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
960
+ senderEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
961
+ senderPhone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
962
+ preview?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
963
+ status?: Prisma.StringFieldUpdateOperationsInput | string
964
+ unread?: Prisma.BoolFieldUpdateOperationsInput | boolean
965
+ starred?: Prisma.BoolFieldUpdateOperationsInput | boolean
966
+ archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
967
+ spamStatus?: Prisma.StringFieldUpdateOperationsInput | string
968
+ ipAddressHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
969
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
970
+ referrer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
971
+ pageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
972
+ utmSource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
973
+ utmMedium?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
974
+ utmCampaign?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
975
+ submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
976
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
977
+ archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
978
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
979
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
980
+ }
981
+
982
+ export type FormSubmissionUncheckedUpdateWithoutFilesInput = {
983
+ id?: Prisma.StringFieldUpdateOperationsInput | string
984
+ entryNumber?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
985
+ formId?: Prisma.StringFieldUpdateOperationsInput | string
986
+ schemaVersionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
987
+ data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
988
+ normalizedData?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
989
+ attribution?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
990
+ senderName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
991
+ senderEmail?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
992
+ senderPhone?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
993
+ preview?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
994
+ status?: Prisma.StringFieldUpdateOperationsInput | string
995
+ unread?: Prisma.BoolFieldUpdateOperationsInput | boolean
996
+ starred?: Prisma.BoolFieldUpdateOperationsInput | boolean
997
+ archived?: Prisma.BoolFieldUpdateOperationsInput | boolean
998
+ spamStatus?: Prisma.StringFieldUpdateOperationsInput | string
999
+ ipAddressHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1000
+ userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1001
+ referrer?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1002
+ pageUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1003
+ utmSource?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1004
+ utmMedium?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1005
+ utmCampaign?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
1006
+ submittedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1007
+ readAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1008
+ archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
1009
+ createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1010
+ updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
1011
+ }
1012
+
1013
+
1014
+ /**
1015
+ * Count Type FormSubmissionCountOutputType
1016
+ */
1017
+
1018
+ export type FormSubmissionCountOutputType = {
1019
+ files: number
1020
+ }
1021
+
1022
+ export type FormSubmissionCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1023
+ files?: boolean | FormSubmissionCountOutputTypeCountFilesArgs
1024
+ }
1025
+
1026
+ /**
1027
+ * FormSubmissionCountOutputType without action
1028
+ */
1029
+ export type FormSubmissionCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1030
+ /**
1031
+ * Select specific fields to fetch from the FormSubmissionCountOutputType
1032
+ */
1033
+ select?: Prisma.FormSubmissionCountOutputTypeSelect<ExtArgs> | null
1034
+ }
1035
+
1036
+ /**
1037
+ * FormSubmissionCountOutputType without action
1038
+ */
1039
+ export type FormSubmissionCountOutputTypeCountFilesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1040
+ where?: Prisma.FormSubmissionFileWhereInput
1041
+ }
1042
+
1043
+
1044
+ export type FormSubmissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1045
+ id?: boolean
1046
+ entryNumber?: boolean
1047
+ formId?: boolean
1048
+ schemaVersionId?: boolean
1049
+ data?: boolean
1050
+ normalizedData?: boolean
1051
+ attribution?: boolean
1052
+ senderName?: boolean
1053
+ senderEmail?: boolean
1054
+ senderPhone?: boolean
1055
+ preview?: boolean
1056
+ status?: boolean
1057
+ unread?: boolean
1058
+ starred?: boolean
1059
+ archived?: boolean
1060
+ spamStatus?: boolean
1061
+ ipAddressHash?: boolean
1062
+ userAgent?: boolean
1063
+ referrer?: boolean
1064
+ pageUrl?: boolean
1065
+ utmSource?: boolean
1066
+ utmMedium?: boolean
1067
+ utmCampaign?: boolean
1068
+ submittedAt?: boolean
1069
+ readAt?: boolean
1070
+ archivedAt?: boolean
1071
+ createdAt?: boolean
1072
+ updatedAt?: boolean
1073
+ files?: boolean | Prisma.FormSubmission$filesArgs<ExtArgs>
1074
+ _count?: boolean | Prisma.FormSubmissionCountOutputTypeDefaultArgs<ExtArgs>
1075
+ }, ExtArgs["result"]["formSubmission"]>
1076
+
1077
+ export type FormSubmissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1078
+ id?: boolean
1079
+ entryNumber?: boolean
1080
+ formId?: boolean
1081
+ schemaVersionId?: boolean
1082
+ data?: boolean
1083
+ normalizedData?: boolean
1084
+ attribution?: boolean
1085
+ senderName?: boolean
1086
+ senderEmail?: boolean
1087
+ senderPhone?: boolean
1088
+ preview?: boolean
1089
+ status?: boolean
1090
+ unread?: boolean
1091
+ starred?: boolean
1092
+ archived?: boolean
1093
+ spamStatus?: boolean
1094
+ ipAddressHash?: boolean
1095
+ userAgent?: boolean
1096
+ referrer?: boolean
1097
+ pageUrl?: boolean
1098
+ utmSource?: boolean
1099
+ utmMedium?: boolean
1100
+ utmCampaign?: boolean
1101
+ submittedAt?: boolean
1102
+ readAt?: boolean
1103
+ archivedAt?: boolean
1104
+ createdAt?: boolean
1105
+ updatedAt?: boolean
1106
+ }, ExtArgs["result"]["formSubmission"]>
1107
+
1108
+ export type FormSubmissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
1109
+ id?: boolean
1110
+ entryNumber?: boolean
1111
+ formId?: boolean
1112
+ schemaVersionId?: boolean
1113
+ data?: boolean
1114
+ normalizedData?: boolean
1115
+ attribution?: boolean
1116
+ senderName?: boolean
1117
+ senderEmail?: boolean
1118
+ senderPhone?: boolean
1119
+ preview?: boolean
1120
+ status?: boolean
1121
+ unread?: boolean
1122
+ starred?: boolean
1123
+ archived?: boolean
1124
+ spamStatus?: boolean
1125
+ ipAddressHash?: boolean
1126
+ userAgent?: boolean
1127
+ referrer?: boolean
1128
+ pageUrl?: boolean
1129
+ utmSource?: boolean
1130
+ utmMedium?: boolean
1131
+ utmCampaign?: boolean
1132
+ submittedAt?: boolean
1133
+ readAt?: boolean
1134
+ archivedAt?: boolean
1135
+ createdAt?: boolean
1136
+ updatedAt?: boolean
1137
+ }, ExtArgs["result"]["formSubmission"]>
1138
+
1139
+ export type FormSubmissionSelectScalar = {
1140
+ id?: boolean
1141
+ entryNumber?: boolean
1142
+ formId?: boolean
1143
+ schemaVersionId?: boolean
1144
+ data?: boolean
1145
+ normalizedData?: boolean
1146
+ attribution?: boolean
1147
+ senderName?: boolean
1148
+ senderEmail?: boolean
1149
+ senderPhone?: boolean
1150
+ preview?: boolean
1151
+ status?: boolean
1152
+ unread?: boolean
1153
+ starred?: boolean
1154
+ archived?: boolean
1155
+ spamStatus?: boolean
1156
+ ipAddressHash?: boolean
1157
+ userAgent?: boolean
1158
+ referrer?: boolean
1159
+ pageUrl?: boolean
1160
+ utmSource?: boolean
1161
+ utmMedium?: boolean
1162
+ utmCampaign?: boolean
1163
+ submittedAt?: boolean
1164
+ readAt?: boolean
1165
+ archivedAt?: boolean
1166
+ createdAt?: boolean
1167
+ updatedAt?: boolean
1168
+ }
1169
+
1170
+ export type FormSubmissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "entryNumber" | "formId" | "schemaVersionId" | "data" | "normalizedData" | "attribution" | "senderName" | "senderEmail" | "senderPhone" | "preview" | "status" | "unread" | "starred" | "archived" | "spamStatus" | "ipAddressHash" | "userAgent" | "referrer" | "pageUrl" | "utmSource" | "utmMedium" | "utmCampaign" | "submittedAt" | "readAt" | "archivedAt" | "createdAt" | "updatedAt", ExtArgs["result"]["formSubmission"]>
1171
+ export type FormSubmissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1172
+ files?: boolean | Prisma.FormSubmission$filesArgs<ExtArgs>
1173
+ _count?: boolean | Prisma.FormSubmissionCountOutputTypeDefaultArgs<ExtArgs>
1174
+ }
1175
+ export type FormSubmissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1176
+ export type FormSubmissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
1177
+
1178
+ export type $FormSubmissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1179
+ name: "FormSubmission"
1180
+ objects: {
1181
+ files: Prisma.$FormSubmissionFilePayload<ExtArgs>[]
1182
+ }
1183
+ scalars: runtime.Types.Extensions.GetPayloadResult<{
1184
+ id: string
1185
+ entryNumber: number | null
1186
+ formId: string
1187
+ schemaVersionId: string | null
1188
+ data: runtime.JsonValue
1189
+ normalizedData: runtime.JsonValue | null
1190
+ attribution: runtime.JsonValue | null
1191
+ senderName: string | null
1192
+ senderEmail: string | null
1193
+ senderPhone: string | null
1194
+ preview: string | null
1195
+ status: string
1196
+ unread: boolean
1197
+ starred: boolean
1198
+ archived: boolean
1199
+ spamStatus: string
1200
+ ipAddressHash: string | null
1201
+ userAgent: string | null
1202
+ referrer: string | null
1203
+ pageUrl: string | null
1204
+ utmSource: string | null
1205
+ utmMedium: string | null
1206
+ utmCampaign: string | null
1207
+ submittedAt: Date
1208
+ readAt: Date | null
1209
+ archivedAt: Date | null
1210
+ createdAt: Date
1211
+ updatedAt: Date
1212
+ }, ExtArgs["result"]["formSubmission"]>
1213
+ composites: {}
1214
+ }
1215
+
1216
+ export type FormSubmissionGetPayload<S extends boolean | null | undefined | FormSubmissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload, S>
1217
+
1218
+ export type FormSubmissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
1219
+ Omit<FormSubmissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit' | 'relationLoadStrategy'> & {
1220
+ select?: FormSubmissionCountAggregateInputType | true
1221
+ }
1222
+
1223
+ export interface FormSubmissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
1224
+ [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FormSubmission'], meta: { name: 'FormSubmission' } }
1225
+ /**
1226
+ * Find zero or one FormSubmission that matches the filter.
1227
+ * @param {FormSubmissionFindUniqueArgs} args - Arguments to find a FormSubmission
1228
+ * @example
1229
+ * // Get one FormSubmission
1230
+ * const formSubmission = await prisma.formSubmission.findUnique({
1231
+ * where: {
1232
+ * // ... provide filter here
1233
+ * }
1234
+ * })
1235
+ */
1236
+ findUnique<T extends FormSubmissionFindUniqueArgs>(args: Prisma.SelectSubset<T, FormSubmissionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FormSubmissionClient<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1237
+
1238
+ /**
1239
+ * Find one FormSubmission that matches the filter or throw an error with `error.code='P2025'`
1240
+ * if no matches were found.
1241
+ * @param {FormSubmissionFindUniqueOrThrowArgs} args - Arguments to find a FormSubmission
1242
+ * @example
1243
+ * // Get one FormSubmission
1244
+ * const formSubmission = await prisma.formSubmission.findUniqueOrThrow({
1245
+ * where: {
1246
+ * // ... provide filter here
1247
+ * }
1248
+ * })
1249
+ */
1250
+ findUniqueOrThrow<T extends FormSubmissionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FormSubmissionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FormSubmissionClient<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1251
+
1252
+ /**
1253
+ * Find the first FormSubmission that matches the filter.
1254
+ * Note, that providing `undefined` is treated as the value not being there.
1255
+ * Read more here: https://pris.ly/d/null-undefined
1256
+ * @param {FormSubmissionFindFirstArgs} args - Arguments to find a FormSubmission
1257
+ * @example
1258
+ * // Get one FormSubmission
1259
+ * const formSubmission = await prisma.formSubmission.findFirst({
1260
+ * where: {
1261
+ * // ... provide filter here
1262
+ * }
1263
+ * })
1264
+ */
1265
+ findFirst<T extends FormSubmissionFindFirstArgs>(args?: Prisma.SelectSubset<T, FormSubmissionFindFirstArgs<ExtArgs>>): Prisma.Prisma__FormSubmissionClient<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
1266
+
1267
+ /**
1268
+ * Find the first FormSubmission that matches the filter or
1269
+ * throw `PrismaKnownClientError` with `P2025` code if no matches were found.
1270
+ * Note, that providing `undefined` is treated as the value not being there.
1271
+ * Read more here: https://pris.ly/d/null-undefined
1272
+ * @param {FormSubmissionFindFirstOrThrowArgs} args - Arguments to find a FormSubmission
1273
+ * @example
1274
+ * // Get one FormSubmission
1275
+ * const formSubmission = await prisma.formSubmission.findFirstOrThrow({
1276
+ * where: {
1277
+ * // ... provide filter here
1278
+ * }
1279
+ * })
1280
+ */
1281
+ findFirstOrThrow<T extends FormSubmissionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FormSubmissionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FormSubmissionClient<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1282
+
1283
+ /**
1284
+ * Find zero or more FormSubmissions that matches the filter.
1285
+ * Note, that providing `undefined` is treated as the value not being there.
1286
+ * Read more here: https://pris.ly/d/null-undefined
1287
+ * @param {FormSubmissionFindManyArgs} args - Arguments to filter and select certain fields only.
1288
+ * @example
1289
+ * // Get all FormSubmissions
1290
+ * const formSubmissions = await prisma.formSubmission.findMany()
1291
+ *
1292
+ * // Get first 10 FormSubmissions
1293
+ * const formSubmissions = await prisma.formSubmission.findMany({ take: 10 })
1294
+ *
1295
+ * // Only select the `id`
1296
+ * const formSubmissionWithIdOnly = await prisma.formSubmission.findMany({ select: { id: true } })
1297
+ *
1298
+ */
1299
+ findMany<T extends FormSubmissionFindManyArgs>(args?: Prisma.SelectSubset<T, FormSubmissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
1300
+
1301
+ /**
1302
+ * Create a FormSubmission.
1303
+ * @param {FormSubmissionCreateArgs} args - Arguments to create a FormSubmission.
1304
+ * @example
1305
+ * // Create one FormSubmission
1306
+ * const FormSubmission = await prisma.formSubmission.create({
1307
+ * data: {
1308
+ * // ... data to create a FormSubmission
1309
+ * }
1310
+ * })
1311
+ *
1312
+ */
1313
+ create<T extends FormSubmissionCreateArgs>(args: Prisma.SelectSubset<T, FormSubmissionCreateArgs<ExtArgs>>): Prisma.Prisma__FormSubmissionClient<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1314
+
1315
+ /**
1316
+ * Create many FormSubmissions.
1317
+ * @param {FormSubmissionCreateManyArgs} args - Arguments to create many FormSubmissions.
1318
+ * @example
1319
+ * // Create many FormSubmissions
1320
+ * const formSubmission = await prisma.formSubmission.createMany({
1321
+ * data: [
1322
+ * // ... provide data here
1323
+ * ]
1324
+ * })
1325
+ *
1326
+ */
1327
+ createMany<T extends FormSubmissionCreateManyArgs>(args?: Prisma.SelectSubset<T, FormSubmissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1328
+
1329
+ /**
1330
+ * Create many FormSubmissions and returns the data saved in the database.
1331
+ * @param {FormSubmissionCreateManyAndReturnArgs} args - Arguments to create many FormSubmissions.
1332
+ * @example
1333
+ * // Create many FormSubmissions
1334
+ * const formSubmission = await prisma.formSubmission.createManyAndReturn({
1335
+ * data: [
1336
+ * // ... provide data here
1337
+ * ]
1338
+ * })
1339
+ *
1340
+ * // Create many FormSubmissions and only return the `id`
1341
+ * const formSubmissionWithIdOnly = await prisma.formSubmission.createManyAndReturn({
1342
+ * select: { id: true },
1343
+ * data: [
1344
+ * // ... provide data here
1345
+ * ]
1346
+ * })
1347
+ * Note, that providing `undefined` is treated as the value not being there.
1348
+ * Read more here: https://pris.ly/d/null-undefined
1349
+ *
1350
+ */
1351
+ createManyAndReturn<T extends FormSubmissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FormSubmissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
1352
+
1353
+ /**
1354
+ * Delete a FormSubmission.
1355
+ * @param {FormSubmissionDeleteArgs} args - Arguments to delete one FormSubmission.
1356
+ * @example
1357
+ * // Delete one FormSubmission
1358
+ * const FormSubmission = await prisma.formSubmission.delete({
1359
+ * where: {
1360
+ * // ... filter to delete one FormSubmission
1361
+ * }
1362
+ * })
1363
+ *
1364
+ */
1365
+ delete<T extends FormSubmissionDeleteArgs>(args: Prisma.SelectSubset<T, FormSubmissionDeleteArgs<ExtArgs>>): Prisma.Prisma__FormSubmissionClient<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1366
+
1367
+ /**
1368
+ * Update one FormSubmission.
1369
+ * @param {FormSubmissionUpdateArgs} args - Arguments to update one FormSubmission.
1370
+ * @example
1371
+ * // Update one FormSubmission
1372
+ * const formSubmission = await prisma.formSubmission.update({
1373
+ * where: {
1374
+ * // ... provide filter here
1375
+ * },
1376
+ * data: {
1377
+ * // ... provide data here
1378
+ * }
1379
+ * })
1380
+ *
1381
+ */
1382
+ update<T extends FormSubmissionUpdateArgs>(args: Prisma.SelectSubset<T, FormSubmissionUpdateArgs<ExtArgs>>): Prisma.Prisma__FormSubmissionClient<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1383
+
1384
+ /**
1385
+ * Delete zero or more FormSubmissions.
1386
+ * @param {FormSubmissionDeleteManyArgs} args - Arguments to filter FormSubmissions to delete.
1387
+ * @example
1388
+ * // Delete a few FormSubmissions
1389
+ * const { count } = await prisma.formSubmission.deleteMany({
1390
+ * where: {
1391
+ * // ... provide filter here
1392
+ * }
1393
+ * })
1394
+ *
1395
+ */
1396
+ deleteMany<T extends FormSubmissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, FormSubmissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1397
+
1398
+ /**
1399
+ * Update zero or more FormSubmissions.
1400
+ * Note, that providing `undefined` is treated as the value not being there.
1401
+ * Read more here: https://pris.ly/d/null-undefined
1402
+ * @param {FormSubmissionUpdateManyArgs} args - Arguments to update one or more rows.
1403
+ * @example
1404
+ * // Update many FormSubmissions
1405
+ * const formSubmission = await prisma.formSubmission.updateMany({
1406
+ * where: {
1407
+ * // ... provide filter here
1408
+ * },
1409
+ * data: {
1410
+ * // ... provide data here
1411
+ * }
1412
+ * })
1413
+ *
1414
+ */
1415
+ updateMany<T extends FormSubmissionUpdateManyArgs>(args: Prisma.SelectSubset<T, FormSubmissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
1416
+
1417
+ /**
1418
+ * Update zero or more FormSubmissions and returns the data updated in the database.
1419
+ * @param {FormSubmissionUpdateManyAndReturnArgs} args - Arguments to update many FormSubmissions.
1420
+ * @example
1421
+ * // Update many FormSubmissions
1422
+ * const formSubmission = await prisma.formSubmission.updateManyAndReturn({
1423
+ * where: {
1424
+ * // ... provide filter here
1425
+ * },
1426
+ * data: [
1427
+ * // ... provide data here
1428
+ * ]
1429
+ * })
1430
+ *
1431
+ * // Update zero or more FormSubmissions and only return the `id`
1432
+ * const formSubmissionWithIdOnly = await prisma.formSubmission.updateManyAndReturn({
1433
+ * select: { id: true },
1434
+ * where: {
1435
+ * // ... provide filter here
1436
+ * },
1437
+ * data: [
1438
+ * // ... provide data here
1439
+ * ]
1440
+ * })
1441
+ * Note, that providing `undefined` is treated as the value not being there.
1442
+ * Read more here: https://pris.ly/d/null-undefined
1443
+ *
1444
+ */
1445
+ updateManyAndReturn<T extends FormSubmissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FormSubmissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
1446
+
1447
+ /**
1448
+ * Create or update one FormSubmission.
1449
+ * @param {FormSubmissionUpsertArgs} args - Arguments to update or create a FormSubmission.
1450
+ * @example
1451
+ * // Update or create a FormSubmission
1452
+ * const formSubmission = await prisma.formSubmission.upsert({
1453
+ * create: {
1454
+ * // ... data to create a FormSubmission
1455
+ * },
1456
+ * update: {
1457
+ * // ... in case it already exists, update
1458
+ * },
1459
+ * where: {
1460
+ * // ... the filter for the FormSubmission we want to update
1461
+ * }
1462
+ * })
1463
+ */
1464
+ upsert<T extends FormSubmissionUpsertArgs>(args: Prisma.SelectSubset<T, FormSubmissionUpsertArgs<ExtArgs>>): Prisma.Prisma__FormSubmissionClient<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
1465
+
1466
+
1467
+ /**
1468
+ * Count the number of FormSubmissions.
1469
+ * Note, that providing `undefined` is treated as the value not being there.
1470
+ * Read more here: https://pris.ly/d/null-undefined
1471
+ * @param {FormSubmissionCountArgs} args - Arguments to filter FormSubmissions to count.
1472
+ * @example
1473
+ * // Count the number of FormSubmissions
1474
+ * const count = await prisma.formSubmission.count({
1475
+ * where: {
1476
+ * // ... the filter for the FormSubmissions we want to count
1477
+ * }
1478
+ * })
1479
+ **/
1480
+ count<T extends FormSubmissionCountArgs>(
1481
+ args?: Prisma.Subset<T, FormSubmissionCountArgs>,
1482
+ ): Prisma.PrismaPromise<
1483
+ T extends runtime.Types.Utils.Record<'select', any>
1484
+ ? T['select'] extends true
1485
+ ? number
1486
+ : Prisma.GetScalarType<T['select'], FormSubmissionCountAggregateOutputType>
1487
+ : number
1488
+ >
1489
+
1490
+ /**
1491
+ * Allows you to perform aggregations operations on a FormSubmission.
1492
+ * Note, that providing `undefined` is treated as the value not being there.
1493
+ * Read more here: https://pris.ly/d/null-undefined
1494
+ * @param {FormSubmissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
1495
+ * @example
1496
+ * // Ordered by age ascending
1497
+ * // Where email contains prisma.io
1498
+ * // Limited to the 10 users
1499
+ * const aggregations = await prisma.user.aggregate({
1500
+ * _avg: {
1501
+ * age: true,
1502
+ * },
1503
+ * where: {
1504
+ * email: {
1505
+ * contains: "prisma.io",
1506
+ * },
1507
+ * },
1508
+ * orderBy: {
1509
+ * age: "asc",
1510
+ * },
1511
+ * take: 10,
1512
+ * })
1513
+ **/
1514
+ aggregate<T extends FormSubmissionAggregateArgs>(args: Prisma.Subset<T, FormSubmissionAggregateArgs>): Prisma.PrismaPromise<GetFormSubmissionAggregateType<T>>
1515
+
1516
+ /**
1517
+ * Group by FormSubmission.
1518
+ * Note, that providing `undefined` is treated as the value not being there.
1519
+ * Read more here: https://pris.ly/d/null-undefined
1520
+ * @param {FormSubmissionGroupByArgs} args - Group by arguments.
1521
+ * @example
1522
+ * // Group by city, order by createdAt, get count
1523
+ * const result = await prisma.user.groupBy({
1524
+ * by: ['city', 'createdAt'],
1525
+ * orderBy: {
1526
+ * createdAt: true
1527
+ * },
1528
+ * _count: {
1529
+ * _all: true
1530
+ * },
1531
+ * })
1532
+ *
1533
+ **/
1534
+ groupBy<
1535
+ T extends FormSubmissionGroupByArgs,
1536
+ HasSelectOrTake extends Prisma.Or<
1537
+ Prisma.Extends<'skip', Prisma.Keys<T>>,
1538
+ Prisma.Extends<'take', Prisma.Keys<T>>
1539
+ >,
1540
+ OrderByArg extends Prisma.True extends HasSelectOrTake
1541
+ ? { orderBy: FormSubmissionGroupByArgs['orderBy'] }
1542
+ : { orderBy?: FormSubmissionGroupByArgs['orderBy'] },
1543
+ OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
1544
+ ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
1545
+ ByValid extends Prisma.Has<ByFields, OrderFields>,
1546
+ HavingFields extends Prisma.GetHavingFields<T['having']>,
1547
+ HavingValid extends Prisma.Has<ByFields, HavingFields>,
1548
+ ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
1549
+ InputErrors extends ByEmpty extends Prisma.True
1550
+ ? `Error: "by" must not be empty.`
1551
+ : HavingValid extends Prisma.False
1552
+ ? {
1553
+ [P in HavingFields]: P extends ByFields
1554
+ ? never
1555
+ : P extends string
1556
+ ? `Error: Field "${P}" used in "having" needs to be provided in "by".`
1557
+ : [
1558
+ Error,
1559
+ 'Field ',
1560
+ P,
1561
+ ` in "having" needs to be provided in "by"`,
1562
+ ]
1563
+ }[HavingFields]
1564
+ : 'take' extends Prisma.Keys<T>
1565
+ ? 'orderBy' extends Prisma.Keys<T>
1566
+ ? ByValid extends Prisma.True
1567
+ ? {}
1568
+ : {
1569
+ [P in OrderFields]: P extends ByFields
1570
+ ? never
1571
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1572
+ }[OrderFields]
1573
+ : 'Error: If you provide "take", you also need to provide "orderBy"'
1574
+ : 'skip' extends Prisma.Keys<T>
1575
+ ? 'orderBy' extends Prisma.Keys<T>
1576
+ ? ByValid extends Prisma.True
1577
+ ? {}
1578
+ : {
1579
+ [P in OrderFields]: P extends ByFields
1580
+ ? never
1581
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1582
+ }[OrderFields]
1583
+ : 'Error: If you provide "skip", you also need to provide "orderBy"'
1584
+ : ByValid extends Prisma.True
1585
+ ? {}
1586
+ : {
1587
+ [P in OrderFields]: P extends ByFields
1588
+ ? never
1589
+ : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
1590
+ }[OrderFields]
1591
+ >(args: Prisma.SubsetIntersection<T, FormSubmissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFormSubmissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
1592
+ /**
1593
+ * Fields of the FormSubmission model
1594
+ */
1595
+ readonly fields: FormSubmissionFieldRefs;
1596
+ }
1597
+
1598
+ /**
1599
+ * The delegate class that acts as a "Promise-like" for FormSubmission.
1600
+ * Why is this prefixed with `Prisma__`?
1601
+ * Because we want to prevent naming conflicts as mentioned in
1602
+ * https://github.com/prisma/prisma-client-js/issues/707
1603
+ */
1604
+ export interface Prisma__FormSubmissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
1605
+ readonly [Symbol.toStringTag]: "PrismaPromise"
1606
+ files<T extends Prisma.FormSubmission$filesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FormSubmission$filesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormSubmissionFilePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
1607
+ /**
1608
+ * Attaches callbacks for the resolution and/or rejection of the Promise.
1609
+ * @param onfulfilled The callback to execute when the Promise is resolved.
1610
+ * @param onrejected The callback to execute when the Promise is rejected.
1611
+ * @returns A Promise for the completion of which ever callback is executed.
1612
+ */
1613
+ 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>
1614
+ /**
1615
+ * Attaches a callback for only the rejection of the Promise.
1616
+ * @param onrejected The callback to execute when the Promise is rejected.
1617
+ * @returns A Promise for the completion of the callback.
1618
+ */
1619
+ catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
1620
+ /**
1621
+ * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
1622
+ * resolved value cannot be modified from the callback.
1623
+ * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
1624
+ * @returns A Promise for the completion of the callback.
1625
+ */
1626
+ finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
1627
+ }
1628
+
1629
+
1630
+
1631
+
1632
+ /**
1633
+ * Fields of the FormSubmission model
1634
+ */
1635
+ export interface FormSubmissionFieldRefs {
1636
+ readonly id: Prisma.FieldRef<"FormSubmission", 'String'>
1637
+ readonly entryNumber: Prisma.FieldRef<"FormSubmission", 'Int'>
1638
+ readonly formId: Prisma.FieldRef<"FormSubmission", 'String'>
1639
+ readonly schemaVersionId: Prisma.FieldRef<"FormSubmission", 'String'>
1640
+ readonly data: Prisma.FieldRef<"FormSubmission", 'Json'>
1641
+ readonly normalizedData: Prisma.FieldRef<"FormSubmission", 'Json'>
1642
+ readonly attribution: Prisma.FieldRef<"FormSubmission", 'Json'>
1643
+ readonly senderName: Prisma.FieldRef<"FormSubmission", 'String'>
1644
+ readonly senderEmail: Prisma.FieldRef<"FormSubmission", 'String'>
1645
+ readonly senderPhone: Prisma.FieldRef<"FormSubmission", 'String'>
1646
+ readonly preview: Prisma.FieldRef<"FormSubmission", 'String'>
1647
+ readonly status: Prisma.FieldRef<"FormSubmission", 'String'>
1648
+ readonly unread: Prisma.FieldRef<"FormSubmission", 'Boolean'>
1649
+ readonly starred: Prisma.FieldRef<"FormSubmission", 'Boolean'>
1650
+ readonly archived: Prisma.FieldRef<"FormSubmission", 'Boolean'>
1651
+ readonly spamStatus: Prisma.FieldRef<"FormSubmission", 'String'>
1652
+ readonly ipAddressHash: Prisma.FieldRef<"FormSubmission", 'String'>
1653
+ readonly userAgent: Prisma.FieldRef<"FormSubmission", 'String'>
1654
+ readonly referrer: Prisma.FieldRef<"FormSubmission", 'String'>
1655
+ readonly pageUrl: Prisma.FieldRef<"FormSubmission", 'String'>
1656
+ readonly utmSource: Prisma.FieldRef<"FormSubmission", 'String'>
1657
+ readonly utmMedium: Prisma.FieldRef<"FormSubmission", 'String'>
1658
+ readonly utmCampaign: Prisma.FieldRef<"FormSubmission", 'String'>
1659
+ readonly submittedAt: Prisma.FieldRef<"FormSubmission", 'DateTime'>
1660
+ readonly readAt: Prisma.FieldRef<"FormSubmission", 'DateTime'>
1661
+ readonly archivedAt: Prisma.FieldRef<"FormSubmission", 'DateTime'>
1662
+ readonly createdAt: Prisma.FieldRef<"FormSubmission", 'DateTime'>
1663
+ readonly updatedAt: Prisma.FieldRef<"FormSubmission", 'DateTime'>
1664
+ }
1665
+
1666
+
1667
+ // Custom InputTypes
1668
+ /**
1669
+ * FormSubmission findUnique
1670
+ */
1671
+ export type FormSubmissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1672
+ /**
1673
+ * Select specific fields to fetch from the FormSubmission
1674
+ */
1675
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
1676
+ /**
1677
+ * Omit specific fields from the FormSubmission
1678
+ */
1679
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
1680
+ /**
1681
+ * Choose, which related nodes to fetch as well
1682
+ */
1683
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
1684
+ /**
1685
+ * Filter, which FormSubmission to fetch.
1686
+ */
1687
+ where: Prisma.FormSubmissionWhereUniqueInput
1688
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1689
+ }
1690
+
1691
+ /**
1692
+ * FormSubmission findUniqueOrThrow
1693
+ */
1694
+ export type FormSubmissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1695
+ /**
1696
+ * Select specific fields to fetch from the FormSubmission
1697
+ */
1698
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
1699
+ /**
1700
+ * Omit specific fields from the FormSubmission
1701
+ */
1702
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
1703
+ /**
1704
+ * Choose, which related nodes to fetch as well
1705
+ */
1706
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
1707
+ /**
1708
+ * Filter, which FormSubmission to fetch.
1709
+ */
1710
+ where: Prisma.FormSubmissionWhereUniqueInput
1711
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1712
+ }
1713
+
1714
+ /**
1715
+ * FormSubmission findFirst
1716
+ */
1717
+ export type FormSubmissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1718
+ /**
1719
+ * Select specific fields to fetch from the FormSubmission
1720
+ */
1721
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
1722
+ /**
1723
+ * Omit specific fields from the FormSubmission
1724
+ */
1725
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
1726
+ /**
1727
+ * Choose, which related nodes to fetch as well
1728
+ */
1729
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
1730
+ /**
1731
+ * Filter, which FormSubmission to fetch.
1732
+ */
1733
+ where?: Prisma.FormSubmissionWhereInput
1734
+ /**
1735
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1736
+ *
1737
+ * Determine the order of FormSubmissions to fetch.
1738
+ */
1739
+ orderBy?: Prisma.FormSubmissionOrderByWithRelationInput | Prisma.FormSubmissionOrderByWithRelationInput[]
1740
+ /**
1741
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1742
+ *
1743
+ * Sets the position for searching for FormSubmissions.
1744
+ */
1745
+ cursor?: Prisma.FormSubmissionWhereUniqueInput
1746
+ /**
1747
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1748
+ *
1749
+ * Take `±n` FormSubmissions from the position of the cursor.
1750
+ */
1751
+ take?: number
1752
+ /**
1753
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1754
+ *
1755
+ * Skip the first `n` FormSubmissions.
1756
+ */
1757
+ skip?: number
1758
+ /**
1759
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1760
+ *
1761
+ * Filter by unique combinations of FormSubmissions.
1762
+ */
1763
+ distinct?: Prisma.FormSubmissionScalarFieldEnum | Prisma.FormSubmissionScalarFieldEnum[]
1764
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1765
+ }
1766
+
1767
+ /**
1768
+ * FormSubmission findFirstOrThrow
1769
+ */
1770
+ export type FormSubmissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1771
+ /**
1772
+ * Select specific fields to fetch from the FormSubmission
1773
+ */
1774
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
1775
+ /**
1776
+ * Omit specific fields from the FormSubmission
1777
+ */
1778
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
1779
+ /**
1780
+ * Choose, which related nodes to fetch as well
1781
+ */
1782
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
1783
+ /**
1784
+ * Filter, which FormSubmission to fetch.
1785
+ */
1786
+ where?: Prisma.FormSubmissionWhereInput
1787
+ /**
1788
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1789
+ *
1790
+ * Determine the order of FormSubmissions to fetch.
1791
+ */
1792
+ orderBy?: Prisma.FormSubmissionOrderByWithRelationInput | Prisma.FormSubmissionOrderByWithRelationInput[]
1793
+ /**
1794
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1795
+ *
1796
+ * Sets the position for searching for FormSubmissions.
1797
+ */
1798
+ cursor?: Prisma.FormSubmissionWhereUniqueInput
1799
+ /**
1800
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1801
+ *
1802
+ * Take `±n` FormSubmissions from the position of the cursor.
1803
+ */
1804
+ take?: number
1805
+ /**
1806
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1807
+ *
1808
+ * Skip the first `n` FormSubmissions.
1809
+ */
1810
+ skip?: number
1811
+ /**
1812
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1813
+ *
1814
+ * Filter by unique combinations of FormSubmissions.
1815
+ */
1816
+ distinct?: Prisma.FormSubmissionScalarFieldEnum | Prisma.FormSubmissionScalarFieldEnum[]
1817
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1818
+ }
1819
+
1820
+ /**
1821
+ * FormSubmission findMany
1822
+ */
1823
+ export type FormSubmissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1824
+ /**
1825
+ * Select specific fields to fetch from the FormSubmission
1826
+ */
1827
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
1828
+ /**
1829
+ * Omit specific fields from the FormSubmission
1830
+ */
1831
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
1832
+ /**
1833
+ * Choose, which related nodes to fetch as well
1834
+ */
1835
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
1836
+ /**
1837
+ * Filter, which FormSubmissions to fetch.
1838
+ */
1839
+ where?: Prisma.FormSubmissionWhereInput
1840
+ /**
1841
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
1842
+ *
1843
+ * Determine the order of FormSubmissions to fetch.
1844
+ */
1845
+ orderBy?: Prisma.FormSubmissionOrderByWithRelationInput | Prisma.FormSubmissionOrderByWithRelationInput[]
1846
+ /**
1847
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
1848
+ *
1849
+ * Sets the position for listing FormSubmissions.
1850
+ */
1851
+ cursor?: Prisma.FormSubmissionWhereUniqueInput
1852
+ /**
1853
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1854
+ *
1855
+ * Take `±n` FormSubmissions from the position of the cursor.
1856
+ */
1857
+ take?: number
1858
+ /**
1859
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
1860
+ *
1861
+ * Skip the first `n` FormSubmissions.
1862
+ */
1863
+ skip?: number
1864
+ /**
1865
+ * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
1866
+ *
1867
+ * Filter by unique combinations of FormSubmissions.
1868
+ */
1869
+ distinct?: Prisma.FormSubmissionScalarFieldEnum | Prisma.FormSubmissionScalarFieldEnum[]
1870
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1871
+ }
1872
+
1873
+ /**
1874
+ * FormSubmission create
1875
+ */
1876
+ export type FormSubmissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1877
+ /**
1878
+ * Select specific fields to fetch from the FormSubmission
1879
+ */
1880
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
1881
+ /**
1882
+ * Omit specific fields from the FormSubmission
1883
+ */
1884
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
1885
+ /**
1886
+ * Choose, which related nodes to fetch as well
1887
+ */
1888
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
1889
+ /**
1890
+ * The data needed to create a FormSubmission.
1891
+ */
1892
+ data: Prisma.XOR<Prisma.FormSubmissionCreateInput, Prisma.FormSubmissionUncheckedCreateInput>
1893
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1894
+ }
1895
+
1896
+ /**
1897
+ * FormSubmission createMany
1898
+ */
1899
+ export type FormSubmissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1900
+ /**
1901
+ * The data used to create many FormSubmissions.
1902
+ */
1903
+ data: Prisma.FormSubmissionCreateManyInput | Prisma.FormSubmissionCreateManyInput[]
1904
+ skipDuplicates?: boolean
1905
+ }
1906
+
1907
+ /**
1908
+ * FormSubmission createManyAndReturn
1909
+ */
1910
+ export type FormSubmissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1911
+ /**
1912
+ * Select specific fields to fetch from the FormSubmission
1913
+ */
1914
+ select?: Prisma.FormSubmissionSelectCreateManyAndReturn<ExtArgs> | null
1915
+ /**
1916
+ * Omit specific fields from the FormSubmission
1917
+ */
1918
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
1919
+ /**
1920
+ * The data used to create many FormSubmissions.
1921
+ */
1922
+ data: Prisma.FormSubmissionCreateManyInput | Prisma.FormSubmissionCreateManyInput[]
1923
+ skipDuplicates?: boolean
1924
+ }
1925
+
1926
+ /**
1927
+ * FormSubmission update
1928
+ */
1929
+ export type FormSubmissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1930
+ /**
1931
+ * Select specific fields to fetch from the FormSubmission
1932
+ */
1933
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
1934
+ /**
1935
+ * Omit specific fields from the FormSubmission
1936
+ */
1937
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
1938
+ /**
1939
+ * Choose, which related nodes to fetch as well
1940
+ */
1941
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
1942
+ /**
1943
+ * The data needed to update a FormSubmission.
1944
+ */
1945
+ data: Prisma.XOR<Prisma.FormSubmissionUpdateInput, Prisma.FormSubmissionUncheckedUpdateInput>
1946
+ /**
1947
+ * Choose, which FormSubmission to update.
1948
+ */
1949
+ where: Prisma.FormSubmissionWhereUniqueInput
1950
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
1951
+ }
1952
+
1953
+ /**
1954
+ * FormSubmission updateMany
1955
+ */
1956
+ export type FormSubmissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1957
+ /**
1958
+ * The data used to update FormSubmissions.
1959
+ */
1960
+ data: Prisma.XOR<Prisma.FormSubmissionUpdateManyMutationInput, Prisma.FormSubmissionUncheckedUpdateManyInput>
1961
+ /**
1962
+ * Filter which FormSubmissions to update
1963
+ */
1964
+ where?: Prisma.FormSubmissionWhereInput
1965
+ /**
1966
+ * Limit how many FormSubmissions to update.
1967
+ */
1968
+ limit?: number
1969
+ }
1970
+
1971
+ /**
1972
+ * FormSubmission updateManyAndReturn
1973
+ */
1974
+ export type FormSubmissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
1975
+ /**
1976
+ * Select specific fields to fetch from the FormSubmission
1977
+ */
1978
+ select?: Prisma.FormSubmissionSelectUpdateManyAndReturn<ExtArgs> | null
1979
+ /**
1980
+ * Omit specific fields from the FormSubmission
1981
+ */
1982
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
1983
+ /**
1984
+ * The data used to update FormSubmissions.
1985
+ */
1986
+ data: Prisma.XOR<Prisma.FormSubmissionUpdateManyMutationInput, Prisma.FormSubmissionUncheckedUpdateManyInput>
1987
+ /**
1988
+ * Filter which FormSubmissions to update
1989
+ */
1990
+ where?: Prisma.FormSubmissionWhereInput
1991
+ /**
1992
+ * Limit how many FormSubmissions to update.
1993
+ */
1994
+ limit?: number
1995
+ }
1996
+
1997
+ /**
1998
+ * FormSubmission upsert
1999
+ */
2000
+ export type FormSubmissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2001
+ /**
2002
+ * Select specific fields to fetch from the FormSubmission
2003
+ */
2004
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
2005
+ /**
2006
+ * Omit specific fields from the FormSubmission
2007
+ */
2008
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
2009
+ /**
2010
+ * Choose, which related nodes to fetch as well
2011
+ */
2012
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
2013
+ /**
2014
+ * The filter to search for the FormSubmission to update in case it exists.
2015
+ */
2016
+ where: Prisma.FormSubmissionWhereUniqueInput
2017
+ /**
2018
+ * In case the FormSubmission found by the `where` argument doesn't exist, create a new FormSubmission with this data.
2019
+ */
2020
+ create: Prisma.XOR<Prisma.FormSubmissionCreateInput, Prisma.FormSubmissionUncheckedCreateInput>
2021
+ /**
2022
+ * In case the FormSubmission was found with the provided `where` argument, update it with this data.
2023
+ */
2024
+ update: Prisma.XOR<Prisma.FormSubmissionUpdateInput, Prisma.FormSubmissionUncheckedUpdateInput>
2025
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
2026
+ }
2027
+
2028
+ /**
2029
+ * FormSubmission delete
2030
+ */
2031
+ export type FormSubmissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2032
+ /**
2033
+ * Select specific fields to fetch from the FormSubmission
2034
+ */
2035
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
2036
+ /**
2037
+ * Omit specific fields from the FormSubmission
2038
+ */
2039
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
2040
+ /**
2041
+ * Choose, which related nodes to fetch as well
2042
+ */
2043
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
2044
+ /**
2045
+ * Filter which FormSubmission to delete.
2046
+ */
2047
+ where: Prisma.FormSubmissionWhereUniqueInput
2048
+ relationLoadStrategy?: Prisma.RelationLoadStrategy
2049
+ }
2050
+
2051
+ /**
2052
+ * FormSubmission deleteMany
2053
+ */
2054
+ export type FormSubmissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2055
+ /**
2056
+ * Filter which FormSubmissions to delete
2057
+ */
2058
+ where?: Prisma.FormSubmissionWhereInput
2059
+ /**
2060
+ * Limit how many FormSubmissions to delete.
2061
+ */
2062
+ limit?: number
2063
+ }
2064
+
2065
+ /**
2066
+ * FormSubmission.files
2067
+ */
2068
+ export type FormSubmission$filesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2069
+ /**
2070
+ * Select specific fields to fetch from the FormSubmissionFile
2071
+ */
2072
+ select?: Prisma.FormSubmissionFileSelect<ExtArgs> | null
2073
+ /**
2074
+ * Omit specific fields from the FormSubmissionFile
2075
+ */
2076
+ omit?: Prisma.FormSubmissionFileOmit<ExtArgs> | null
2077
+ /**
2078
+ * Choose, which related nodes to fetch as well
2079
+ */
2080
+ include?: Prisma.FormSubmissionFileInclude<ExtArgs> | null
2081
+ where?: Prisma.FormSubmissionFileWhereInput
2082
+ orderBy?: Prisma.FormSubmissionFileOrderByWithRelationInput | Prisma.FormSubmissionFileOrderByWithRelationInput[]
2083
+ cursor?: Prisma.FormSubmissionFileWhereUniqueInput
2084
+ take?: number
2085
+ skip?: number
2086
+ distinct?: Prisma.FormSubmissionFileScalarFieldEnum | Prisma.FormSubmissionFileScalarFieldEnum[]
2087
+ }
2088
+
2089
+ /**
2090
+ * FormSubmission without action
2091
+ */
2092
+ export type FormSubmissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
2093
+ /**
2094
+ * Select specific fields to fetch from the FormSubmission
2095
+ */
2096
+ select?: Prisma.FormSubmissionSelect<ExtArgs> | null
2097
+ /**
2098
+ * Omit specific fields from the FormSubmission
2099
+ */
2100
+ omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
2101
+ /**
2102
+ * Choose, which related nodes to fetch as well
2103
+ */
2104
+ include?: Prisma.FormSubmissionInclude<ExtArgs> | null
2105
+ }