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