1559 lines
60 KiB
TypeScript
1559 lines
60 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports the `FormSubmission` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model FormSubmission
|
|
*
|
|
*/
|
|
export type FormSubmissionModel = runtime.Types.Result.DefaultSelection<Prisma.$FormSubmissionPayload>
|
|
|
|
export type AggregateFormSubmission = {
|
|
_count: FormSubmissionCountAggregateOutputType | null
|
|
_min: FormSubmissionMinAggregateOutputType | null
|
|
_max: FormSubmissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type FormSubmissionMinAggregateOutputType = {
|
|
id: string | null
|
|
formId: string | null
|
|
tenantId: string | null
|
|
sourceOrigin: string | null
|
|
ipHash: string | null
|
|
userAgent: string | null
|
|
status: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type FormSubmissionMaxAggregateOutputType = {
|
|
id: string | null
|
|
formId: string | null
|
|
tenantId: string | null
|
|
sourceOrigin: string | null
|
|
ipHash: string | null
|
|
userAgent: string | null
|
|
status: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type FormSubmissionCountAggregateOutputType = {
|
|
id: number
|
|
formId: number
|
|
tenantId: number
|
|
payload: number
|
|
sourceOrigin: number
|
|
ipHash: number
|
|
userAgent: number
|
|
status: number
|
|
result: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type FormSubmissionMinAggregateInputType = {
|
|
id?: true
|
|
formId?: true
|
|
tenantId?: true
|
|
sourceOrigin?: true
|
|
ipHash?: true
|
|
userAgent?: true
|
|
status?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type FormSubmissionMaxAggregateInputType = {
|
|
id?: true
|
|
formId?: true
|
|
tenantId?: true
|
|
sourceOrigin?: true
|
|
ipHash?: true
|
|
userAgent?: true
|
|
status?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type FormSubmissionCountAggregateInputType = {
|
|
id?: true
|
|
formId?: true
|
|
tenantId?: true
|
|
payload?: true
|
|
sourceOrigin?: true
|
|
ipHash?: true
|
|
userAgent?: true
|
|
status?: true
|
|
result?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type FormSubmissionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which FormSubmission to aggregate.
|
|
*/
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FormSubmissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormSubmissionOrderByWithRelationInput | Prisma.FormSubmissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.FormSubmissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FormSubmissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` FormSubmissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned FormSubmissions
|
|
**/
|
|
_count?: true | FormSubmissionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: FormSubmissionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: FormSubmissionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetFormSubmissionAggregateType<T extends FormSubmissionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateFormSubmission]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateFormSubmission[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateFormSubmission[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormSubmissionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
orderBy?: Prisma.FormSubmissionOrderByWithAggregationInput | Prisma.FormSubmissionOrderByWithAggregationInput[]
|
|
by: Prisma.FormSubmissionScalarFieldEnum[] | Prisma.FormSubmissionScalarFieldEnum
|
|
having?: Prisma.FormSubmissionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: FormSubmissionCountAggregateInputType | true
|
|
_min?: FormSubmissionMinAggregateInputType
|
|
_max?: FormSubmissionMaxAggregateInputType
|
|
}
|
|
|
|
export type FormSubmissionGroupByOutputType = {
|
|
id: string
|
|
formId: string
|
|
tenantId: string
|
|
payload: runtime.JsonValue
|
|
sourceOrigin: string | null
|
|
ipHash: string | null
|
|
userAgent: string | null
|
|
status: string
|
|
result: runtime.JsonValue | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: FormSubmissionCountAggregateOutputType | null
|
|
_min: FormSubmissionMinAggregateOutputType | null
|
|
_max: FormSubmissionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetFormSubmissionGroupByPayload<T extends FormSubmissionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<FormSubmissionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof FormSubmissionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], FormSubmissionGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], FormSubmissionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type FormSubmissionWhereInput = {
|
|
AND?: Prisma.FormSubmissionWhereInput | Prisma.FormSubmissionWhereInput[]
|
|
OR?: Prisma.FormSubmissionWhereInput[]
|
|
NOT?: Prisma.FormSubmissionWhereInput | Prisma.FormSubmissionWhereInput[]
|
|
id?: Prisma.StringFilter<"FormSubmission"> | string
|
|
formId?: Prisma.StringFilter<"FormSubmission"> | string
|
|
tenantId?: Prisma.StringFilter<"FormSubmission"> | string
|
|
payload?: Prisma.JsonFilter<"FormSubmission">
|
|
sourceOrigin?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
|
|
ipHash?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
|
|
userAgent?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
|
|
status?: Prisma.StringFilter<"FormSubmission"> | string
|
|
result?: Prisma.JsonNullableFilter<"FormSubmission">
|
|
createdAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
|
|
form?: Prisma.XOR<Prisma.FormScalarRelationFilter, Prisma.FormWhereInput>
|
|
}
|
|
|
|
export type FormSubmissionOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
formId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
payload?: Prisma.SortOrder
|
|
sourceOrigin?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
result?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
form?: Prisma.FormOrderByWithRelationInput
|
|
}
|
|
|
|
export type FormSubmissionWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.FormSubmissionWhereInput | Prisma.FormSubmissionWhereInput[]
|
|
OR?: Prisma.FormSubmissionWhereInput[]
|
|
NOT?: Prisma.FormSubmissionWhereInput | Prisma.FormSubmissionWhereInput[]
|
|
formId?: Prisma.StringFilter<"FormSubmission"> | string
|
|
tenantId?: Prisma.StringFilter<"FormSubmission"> | string
|
|
payload?: Prisma.JsonFilter<"FormSubmission">
|
|
sourceOrigin?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
|
|
ipHash?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
|
|
userAgent?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
|
|
status?: Prisma.StringFilter<"FormSubmission"> | string
|
|
result?: Prisma.JsonNullableFilter<"FormSubmission">
|
|
createdAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
|
|
form?: Prisma.XOR<Prisma.FormScalarRelationFilter, Prisma.FormWhereInput>
|
|
}, "id">
|
|
|
|
export type FormSubmissionOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
formId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
payload?: Prisma.SortOrder
|
|
sourceOrigin?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
result?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.FormSubmissionCountOrderByAggregateInput
|
|
_max?: Prisma.FormSubmissionMaxOrderByAggregateInput
|
|
_min?: Prisma.FormSubmissionMinOrderByAggregateInput
|
|
}
|
|
|
|
export type FormSubmissionScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.FormSubmissionScalarWhereWithAggregatesInput | Prisma.FormSubmissionScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.FormSubmissionScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.FormSubmissionScalarWhereWithAggregatesInput | Prisma.FormSubmissionScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"FormSubmission"> | string
|
|
formId?: Prisma.StringWithAggregatesFilter<"FormSubmission"> | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"FormSubmission"> | string
|
|
payload?: Prisma.JsonWithAggregatesFilter<"FormSubmission">
|
|
sourceOrigin?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
|
|
ipHash?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
|
|
userAgent?: Prisma.StringNullableWithAggregatesFilter<"FormSubmission"> | string | null
|
|
status?: Prisma.StringWithAggregatesFilter<"FormSubmission"> | string
|
|
result?: Prisma.JsonNullableWithAggregatesFilter<"FormSubmission">
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"FormSubmission"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"FormSubmission"> | Date | string
|
|
}
|
|
|
|
export type FormSubmissionCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
status?: string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
form: Prisma.FormCreateNestedOneWithoutSubmissionsInput
|
|
}
|
|
|
|
export type FormSubmissionUncheckedCreateInput = {
|
|
id?: string
|
|
formId: string
|
|
tenantId: string
|
|
payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
status?: string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type FormSubmissionUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
form?: Prisma.FormUpdateOneRequiredWithoutSubmissionsNestedInput
|
|
}
|
|
|
|
export type FormSubmissionUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
formId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type FormSubmissionCreateManyInput = {
|
|
id?: string
|
|
formId: string
|
|
tenantId: string
|
|
payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
status?: string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type FormSubmissionUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type FormSubmissionUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
formId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type FormSubmissionListRelationFilter = {
|
|
every?: Prisma.FormSubmissionWhereInput
|
|
some?: Prisma.FormSubmissionWhereInput
|
|
none?: Prisma.FormSubmissionWhereInput
|
|
}
|
|
|
|
export type FormSubmissionOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormSubmissionCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
formId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
payload?: Prisma.SortOrder
|
|
sourceOrigin?: Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
result?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormSubmissionMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
formId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
sourceOrigin?: Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormSubmissionMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
formId?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
sourceOrigin?: Prisma.SortOrder
|
|
ipHash?: Prisma.SortOrder
|
|
userAgent?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormSubmissionCreateNestedManyWithoutFormInput = {
|
|
create?: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFormInput, Prisma.FormSubmissionUncheckedCreateWithoutFormInput> | Prisma.FormSubmissionCreateWithoutFormInput[] | Prisma.FormSubmissionUncheckedCreateWithoutFormInput[]
|
|
connectOrCreate?: Prisma.FormSubmissionCreateOrConnectWithoutFormInput | Prisma.FormSubmissionCreateOrConnectWithoutFormInput[]
|
|
createMany?: Prisma.FormSubmissionCreateManyFormInputEnvelope
|
|
connect?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
}
|
|
|
|
export type FormSubmissionUncheckedCreateNestedManyWithoutFormInput = {
|
|
create?: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFormInput, Prisma.FormSubmissionUncheckedCreateWithoutFormInput> | Prisma.FormSubmissionCreateWithoutFormInput[] | Prisma.FormSubmissionUncheckedCreateWithoutFormInput[]
|
|
connectOrCreate?: Prisma.FormSubmissionCreateOrConnectWithoutFormInput | Prisma.FormSubmissionCreateOrConnectWithoutFormInput[]
|
|
createMany?: Prisma.FormSubmissionCreateManyFormInputEnvelope
|
|
connect?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
}
|
|
|
|
export type FormSubmissionUpdateManyWithoutFormNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFormInput, Prisma.FormSubmissionUncheckedCreateWithoutFormInput> | Prisma.FormSubmissionCreateWithoutFormInput[] | Prisma.FormSubmissionUncheckedCreateWithoutFormInput[]
|
|
connectOrCreate?: Prisma.FormSubmissionCreateOrConnectWithoutFormInput | Prisma.FormSubmissionCreateOrConnectWithoutFormInput[]
|
|
upsert?: Prisma.FormSubmissionUpsertWithWhereUniqueWithoutFormInput | Prisma.FormSubmissionUpsertWithWhereUniqueWithoutFormInput[]
|
|
createMany?: Prisma.FormSubmissionCreateManyFormInputEnvelope
|
|
set?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
disconnect?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
delete?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
connect?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
update?: Prisma.FormSubmissionUpdateWithWhereUniqueWithoutFormInput | Prisma.FormSubmissionUpdateWithWhereUniqueWithoutFormInput[]
|
|
updateMany?: Prisma.FormSubmissionUpdateManyWithWhereWithoutFormInput | Prisma.FormSubmissionUpdateManyWithWhereWithoutFormInput[]
|
|
deleteMany?: Prisma.FormSubmissionScalarWhereInput | Prisma.FormSubmissionScalarWhereInput[]
|
|
}
|
|
|
|
export type FormSubmissionUncheckedUpdateManyWithoutFormNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFormInput, Prisma.FormSubmissionUncheckedCreateWithoutFormInput> | Prisma.FormSubmissionCreateWithoutFormInput[] | Prisma.FormSubmissionUncheckedCreateWithoutFormInput[]
|
|
connectOrCreate?: Prisma.FormSubmissionCreateOrConnectWithoutFormInput | Prisma.FormSubmissionCreateOrConnectWithoutFormInput[]
|
|
upsert?: Prisma.FormSubmissionUpsertWithWhereUniqueWithoutFormInput | Prisma.FormSubmissionUpsertWithWhereUniqueWithoutFormInput[]
|
|
createMany?: Prisma.FormSubmissionCreateManyFormInputEnvelope
|
|
set?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
disconnect?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
delete?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
connect?: Prisma.FormSubmissionWhereUniqueInput | Prisma.FormSubmissionWhereUniqueInput[]
|
|
update?: Prisma.FormSubmissionUpdateWithWhereUniqueWithoutFormInput | Prisma.FormSubmissionUpdateWithWhereUniqueWithoutFormInput[]
|
|
updateMany?: Prisma.FormSubmissionUpdateManyWithWhereWithoutFormInput | Prisma.FormSubmissionUpdateManyWithWhereWithoutFormInput[]
|
|
deleteMany?: Prisma.FormSubmissionScalarWhereInput | Prisma.FormSubmissionScalarWhereInput[]
|
|
}
|
|
|
|
export type FormSubmissionCreateWithoutFormInput = {
|
|
id?: string
|
|
tenantId: string
|
|
payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
status?: string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type FormSubmissionUncheckedCreateWithoutFormInput = {
|
|
id?: string
|
|
tenantId: string
|
|
payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
status?: string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type FormSubmissionCreateOrConnectWithoutFormInput = {
|
|
where: Prisma.FormSubmissionWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFormInput, Prisma.FormSubmissionUncheckedCreateWithoutFormInput>
|
|
}
|
|
|
|
export type FormSubmissionCreateManyFormInputEnvelope = {
|
|
data: Prisma.FormSubmissionCreateManyFormInput | Prisma.FormSubmissionCreateManyFormInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type FormSubmissionUpsertWithWhereUniqueWithoutFormInput = {
|
|
where: Prisma.FormSubmissionWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.FormSubmissionUpdateWithoutFormInput, Prisma.FormSubmissionUncheckedUpdateWithoutFormInput>
|
|
create: Prisma.XOR<Prisma.FormSubmissionCreateWithoutFormInput, Prisma.FormSubmissionUncheckedCreateWithoutFormInput>
|
|
}
|
|
|
|
export type FormSubmissionUpdateWithWhereUniqueWithoutFormInput = {
|
|
where: Prisma.FormSubmissionWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.FormSubmissionUpdateWithoutFormInput, Prisma.FormSubmissionUncheckedUpdateWithoutFormInput>
|
|
}
|
|
|
|
export type FormSubmissionUpdateManyWithWhereWithoutFormInput = {
|
|
where: Prisma.FormSubmissionScalarWhereInput
|
|
data: Prisma.XOR<Prisma.FormSubmissionUpdateManyMutationInput, Prisma.FormSubmissionUncheckedUpdateManyWithoutFormInput>
|
|
}
|
|
|
|
export type FormSubmissionScalarWhereInput = {
|
|
AND?: Prisma.FormSubmissionScalarWhereInput | Prisma.FormSubmissionScalarWhereInput[]
|
|
OR?: Prisma.FormSubmissionScalarWhereInput[]
|
|
NOT?: Prisma.FormSubmissionScalarWhereInput | Prisma.FormSubmissionScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"FormSubmission"> | string
|
|
formId?: Prisma.StringFilter<"FormSubmission"> | string
|
|
tenantId?: Prisma.StringFilter<"FormSubmission"> | string
|
|
payload?: Prisma.JsonFilter<"FormSubmission">
|
|
sourceOrigin?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
|
|
ipHash?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
|
|
userAgent?: Prisma.StringNullableFilter<"FormSubmission"> | string | null
|
|
status?: Prisma.StringFilter<"FormSubmission"> | string
|
|
result?: Prisma.JsonNullableFilter<"FormSubmission">
|
|
createdAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"FormSubmission"> | Date | string
|
|
}
|
|
|
|
export type FormSubmissionCreateManyFormInput = {
|
|
id?: string
|
|
tenantId: string
|
|
payload: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: string | null
|
|
ipHash?: string | null
|
|
userAgent?: string | null
|
|
status?: string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type FormSubmissionUpdateWithoutFormInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type FormSubmissionUncheckedUpdateWithoutFormInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type FormSubmissionUncheckedUpdateManyWithoutFormInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
payload?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
sourceOrigin?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
ipHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
userAgent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
status?: Prisma.StringFieldUpdateOperationsInput | string
|
|
result?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
|
|
export type FormSubmissionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
formId?: boolean
|
|
tenantId?: boolean
|
|
payload?: boolean
|
|
sourceOrigin?: boolean
|
|
ipHash?: boolean
|
|
userAgent?: boolean
|
|
status?: boolean
|
|
result?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
form?: boolean | Prisma.FormDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["formSubmission"]>
|
|
|
|
export type FormSubmissionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
formId?: boolean
|
|
tenantId?: boolean
|
|
payload?: boolean
|
|
sourceOrigin?: boolean
|
|
ipHash?: boolean
|
|
userAgent?: boolean
|
|
status?: boolean
|
|
result?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
form?: boolean | Prisma.FormDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["formSubmission"]>
|
|
|
|
export type FormSubmissionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
formId?: boolean
|
|
tenantId?: boolean
|
|
payload?: boolean
|
|
sourceOrigin?: boolean
|
|
ipHash?: boolean
|
|
userAgent?: boolean
|
|
status?: boolean
|
|
result?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
form?: boolean | Prisma.FormDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["formSubmission"]>
|
|
|
|
export type FormSubmissionSelectScalar = {
|
|
id?: boolean
|
|
formId?: boolean
|
|
tenantId?: boolean
|
|
payload?: boolean
|
|
sourceOrigin?: boolean
|
|
ipHash?: boolean
|
|
userAgent?: boolean
|
|
status?: boolean
|
|
result?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type FormSubmissionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "formId" | "tenantId" | "payload" | "sourceOrigin" | "ipHash" | "userAgent" | "status" | "result" | "createdAt" | "updatedAt", ExtArgs["result"]["formSubmission"]>
|
|
export type FormSubmissionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
form?: boolean | Prisma.FormDefaultArgs<ExtArgs>
|
|
}
|
|
export type FormSubmissionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
form?: boolean | Prisma.FormDefaultArgs<ExtArgs>
|
|
}
|
|
export type FormSubmissionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
form?: boolean | Prisma.FormDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $FormSubmissionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "FormSubmission"
|
|
objects: {
|
|
form: Prisma.$FormPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
formId: string
|
|
tenantId: string
|
|
/**
|
|
* Validated payload as { values: Record<string, string|number|boolean|null> }.
|
|
*/
|
|
payload: runtime.JsonValue
|
|
/**
|
|
* Origin header recorded at submission time, for audit / forensics.
|
|
*/
|
|
sourceOrigin: string | null
|
|
/**
|
|
* SHA-256 hash of the submitter IP — no raw IP storage for PII reasons.
|
|
*/
|
|
ipHash: string | null
|
|
userAgent: string | null
|
|
/**
|
|
* "received" | "processed" | "failed" | "spam".
|
|
*/
|
|
status: string
|
|
/**
|
|
* JSON describing routing/webhook delivery outcome.
|
|
*/
|
|
result: runtime.JsonValue | null
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["formSubmission"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type FormSubmissionGetPayload<S extends boolean | null | undefined | FormSubmissionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload, S>
|
|
|
|
export type FormSubmissionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<FormSubmissionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: FormSubmissionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface FormSubmissionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FormSubmission'], meta: { name: 'FormSubmission' } }
|
|
/**
|
|
* Find zero or one FormSubmission that matches the filter.
|
|
* @param {FormSubmissionFindUniqueArgs} args - Arguments to find a FormSubmission
|
|
* @example
|
|
* // Get one FormSubmission
|
|
* const formSubmission = await prisma.formSubmission.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
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>
|
|
|
|
/**
|
|
* Find one FormSubmission that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {FormSubmissionFindUniqueOrThrowArgs} args - Arguments to find a FormSubmission
|
|
* @example
|
|
* // Get one FormSubmission
|
|
* const formSubmission = await prisma.formSubmission.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
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>
|
|
|
|
/**
|
|
* Find the first FormSubmission that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormSubmissionFindFirstArgs} args - Arguments to find a FormSubmission
|
|
* @example
|
|
* // Get one FormSubmission
|
|
* const formSubmission = await prisma.formSubmission.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
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>
|
|
|
|
/**
|
|
* Find the first FormSubmission that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormSubmissionFindFirstOrThrowArgs} args - Arguments to find a FormSubmission
|
|
* @example
|
|
* // Get one FormSubmission
|
|
* const formSubmission = await prisma.formSubmission.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
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>
|
|
|
|
/**
|
|
* Find zero or more FormSubmissions that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormSubmissionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all FormSubmissions
|
|
* const formSubmissions = await prisma.formSubmission.findMany()
|
|
*
|
|
* // Get first 10 FormSubmissions
|
|
* const formSubmissions = await prisma.formSubmission.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const formSubmissionWithIdOnly = await prisma.formSubmission.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends FormSubmissionFindManyArgs>(args?: Prisma.SelectSubset<T, FormSubmissionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a FormSubmission.
|
|
* @param {FormSubmissionCreateArgs} args - Arguments to create a FormSubmission.
|
|
* @example
|
|
* // Create one FormSubmission
|
|
* const FormSubmission = await prisma.formSubmission.create({
|
|
* data: {
|
|
* // ... data to create a FormSubmission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
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>
|
|
|
|
/**
|
|
* Create many FormSubmissions.
|
|
* @param {FormSubmissionCreateManyArgs} args - Arguments to create many FormSubmissions.
|
|
* @example
|
|
* // Create many FormSubmissions
|
|
* const formSubmission = await prisma.formSubmission.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends FormSubmissionCreateManyArgs>(args?: Prisma.SelectSubset<T, FormSubmissionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many FormSubmissions and returns the data saved in the database.
|
|
* @param {FormSubmissionCreateManyAndReturnArgs} args - Arguments to create many FormSubmissions.
|
|
* @example
|
|
* // Create many FormSubmissions
|
|
* const formSubmission = await prisma.formSubmission.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many FormSubmissions and only return the `id`
|
|
* const formSubmissionWithIdOnly = await prisma.formSubmission.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends FormSubmissionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FormSubmissionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a FormSubmission.
|
|
* @param {FormSubmissionDeleteArgs} args - Arguments to delete one FormSubmission.
|
|
* @example
|
|
* // Delete one FormSubmission
|
|
* const FormSubmission = await prisma.formSubmission.delete({
|
|
* where: {
|
|
* // ... filter to delete one FormSubmission
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
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>
|
|
|
|
/**
|
|
* Update one FormSubmission.
|
|
* @param {FormSubmissionUpdateArgs} args - Arguments to update one FormSubmission.
|
|
* @example
|
|
* // Update one FormSubmission
|
|
* const formSubmission = await prisma.formSubmission.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
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>
|
|
|
|
/**
|
|
* Delete zero or more FormSubmissions.
|
|
* @param {FormSubmissionDeleteManyArgs} args - Arguments to filter FormSubmissions to delete.
|
|
* @example
|
|
* // Delete a few FormSubmissions
|
|
* const { count } = await prisma.formSubmission.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends FormSubmissionDeleteManyArgs>(args?: Prisma.SelectSubset<T, FormSubmissionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more FormSubmissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormSubmissionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many FormSubmissions
|
|
* const formSubmission = await prisma.formSubmission.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends FormSubmissionUpdateManyArgs>(args: Prisma.SelectSubset<T, FormSubmissionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more FormSubmissions and returns the data updated in the database.
|
|
* @param {FormSubmissionUpdateManyAndReturnArgs} args - Arguments to update many FormSubmissions.
|
|
* @example
|
|
* // Update many FormSubmissions
|
|
* const formSubmission = await prisma.formSubmission.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more FormSubmissions and only return the `id`
|
|
* const formSubmissionWithIdOnly = await prisma.formSubmission.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends FormSubmissionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FormSubmissionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one FormSubmission.
|
|
* @param {FormSubmissionUpsertArgs} args - Arguments to update or create a FormSubmission.
|
|
* @example
|
|
* // Update or create a FormSubmission
|
|
* const formSubmission = await prisma.formSubmission.upsert({
|
|
* create: {
|
|
* // ... data to create a FormSubmission
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the FormSubmission we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
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>
|
|
|
|
|
|
/**
|
|
* Count the number of FormSubmissions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormSubmissionCountArgs} args - Arguments to filter FormSubmissions to count.
|
|
* @example
|
|
* // Count the number of FormSubmissions
|
|
* const count = await prisma.formSubmission.count({
|
|
* where: {
|
|
* // ... the filter for the FormSubmissions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends FormSubmissionCountArgs>(
|
|
args?: Prisma.Subset<T, FormSubmissionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], FormSubmissionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a FormSubmission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormSubmissionAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends FormSubmissionAggregateArgs>(args: Prisma.Subset<T, FormSubmissionAggregateArgs>): Prisma.PrismaPromise<GetFormSubmissionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by FormSubmission.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormSubmissionGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends FormSubmissionGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: FormSubmissionGroupByArgs['orderBy'] }
|
|
: { orderBy?: FormSubmissionGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, FormSubmissionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFormSubmissionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the FormSubmission model
|
|
*/
|
|
readonly fields: FormSubmissionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for FormSubmission.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__FormSubmissionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
form<T extends Prisma.FormDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FormDefaultArgs<ExtArgs>>): Prisma.Prisma__FormClient<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
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>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the FormSubmission model
|
|
*/
|
|
export interface FormSubmissionFieldRefs {
|
|
readonly id: Prisma.FieldRef<"FormSubmission", 'String'>
|
|
readonly formId: Prisma.FieldRef<"FormSubmission", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"FormSubmission", 'String'>
|
|
readonly payload: Prisma.FieldRef<"FormSubmission", 'Json'>
|
|
readonly sourceOrigin: Prisma.FieldRef<"FormSubmission", 'String'>
|
|
readonly ipHash: Prisma.FieldRef<"FormSubmission", 'String'>
|
|
readonly userAgent: Prisma.FieldRef<"FormSubmission", 'String'>
|
|
readonly status: Prisma.FieldRef<"FormSubmission", 'String'>
|
|
readonly result: Prisma.FieldRef<"FormSubmission", 'Json'>
|
|
readonly createdAt: Prisma.FieldRef<"FormSubmission", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"FormSubmission", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* FormSubmission findUnique
|
|
*/
|
|
export type FormSubmissionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormSubmission to fetch.
|
|
*/
|
|
where: Prisma.FormSubmissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FormSubmission findUniqueOrThrow
|
|
*/
|
|
export type FormSubmissionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormSubmission to fetch.
|
|
*/
|
|
where: Prisma.FormSubmissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FormSubmission findFirst
|
|
*/
|
|
export type FormSubmissionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormSubmission to fetch.
|
|
*/
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FormSubmissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormSubmissionOrderByWithRelationInput | Prisma.FormSubmissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for FormSubmissions.
|
|
*/
|
|
cursor?: Prisma.FormSubmissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FormSubmissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` FormSubmissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FormSubmissions.
|
|
*/
|
|
distinct?: Prisma.FormSubmissionScalarFieldEnum | Prisma.FormSubmissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FormSubmission findFirstOrThrow
|
|
*/
|
|
export type FormSubmissionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormSubmission to fetch.
|
|
*/
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FormSubmissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormSubmissionOrderByWithRelationInput | Prisma.FormSubmissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for FormSubmissions.
|
|
*/
|
|
cursor?: Prisma.FormSubmissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FormSubmissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` FormSubmissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FormSubmissions.
|
|
*/
|
|
distinct?: Prisma.FormSubmissionScalarFieldEnum | Prisma.FormSubmissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FormSubmission findMany
|
|
*/
|
|
export type FormSubmissionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormSubmissions to fetch.
|
|
*/
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FormSubmissions to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormSubmissionOrderByWithRelationInput | Prisma.FormSubmissionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing FormSubmissions.
|
|
*/
|
|
cursor?: Prisma.FormSubmissionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FormSubmissions from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` FormSubmissions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FormSubmissions.
|
|
*/
|
|
distinct?: Prisma.FormSubmissionScalarFieldEnum | Prisma.FormSubmissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FormSubmission create
|
|
*/
|
|
export type FormSubmissionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a FormSubmission.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormSubmissionCreateInput, Prisma.FormSubmissionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* FormSubmission createMany
|
|
*/
|
|
export type FormSubmissionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many FormSubmissions.
|
|
*/
|
|
data: Prisma.FormSubmissionCreateManyInput | Prisma.FormSubmissionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* FormSubmission createManyAndReturn
|
|
*/
|
|
export type FormSubmissionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many FormSubmissions.
|
|
*/
|
|
data: Prisma.FormSubmissionCreateManyInput | Prisma.FormSubmissionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* FormSubmission update
|
|
*/
|
|
export type FormSubmissionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a FormSubmission.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormSubmissionUpdateInput, Prisma.FormSubmissionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which FormSubmission to update.
|
|
*/
|
|
where: Prisma.FormSubmissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FormSubmission updateMany
|
|
*/
|
|
export type FormSubmissionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update FormSubmissions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormSubmissionUpdateManyMutationInput, Prisma.FormSubmissionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which FormSubmissions to update
|
|
*/
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
/**
|
|
* Limit how many FormSubmissions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FormSubmission updateManyAndReturn
|
|
*/
|
|
export type FormSubmissionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update FormSubmissions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormSubmissionUpdateManyMutationInput, Prisma.FormSubmissionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which FormSubmissions to update
|
|
*/
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
/**
|
|
* Limit how many FormSubmissions to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* FormSubmission upsert
|
|
*/
|
|
export type FormSubmissionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the FormSubmission to update in case it exists.
|
|
*/
|
|
where: Prisma.FormSubmissionWhereUniqueInput
|
|
/**
|
|
* In case the FormSubmission found by the `where` argument doesn't exist, create a new FormSubmission with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.FormSubmissionCreateInput, Prisma.FormSubmissionUncheckedCreateInput>
|
|
/**
|
|
* In case the FormSubmission was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.FormSubmissionUpdateInput, Prisma.FormSubmissionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* FormSubmission delete
|
|
*/
|
|
export type FormSubmissionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which FormSubmission to delete.
|
|
*/
|
|
where: Prisma.FormSubmissionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FormSubmission deleteMany
|
|
*/
|
|
export type FormSubmissionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which FormSubmissions to delete
|
|
*/
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
/**
|
|
* Limit how many FormSubmissions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FormSubmission without action
|
|
*/
|
|
export type FormSubmissionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormSubmission
|
|
*/
|
|
select?: Prisma.FormSubmissionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormSubmission
|
|
*/
|
|
omit?: Prisma.FormSubmissionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormSubmissionInclude<ExtArgs> | null
|
|
}
|