1915 lines
70 KiB
TypeScript
1915 lines
70 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 `Form` 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 Form
|
|
*
|
|
*/
|
|
export type FormModel = runtime.Types.Result.DefaultSelection<Prisma.$FormPayload>
|
|
|
|
export type AggregateForm = {
|
|
_count: FormCountAggregateOutputType | null
|
|
_min: FormMinAggregateOutputType | null
|
|
_max: FormMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type FormMinAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
key: string | null
|
|
name: string | null
|
|
targetType: string | null
|
|
targetEntityId: string | null
|
|
webhookUrl: string | null
|
|
isEnabled: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type FormMaxAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
key: string | null
|
|
name: string | null
|
|
targetType: string | null
|
|
targetEntityId: string | null
|
|
webhookUrl: string | null
|
|
isEnabled: boolean | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
}
|
|
|
|
export type FormCountAggregateOutputType = {
|
|
id: number
|
|
tenantId: number
|
|
key: number
|
|
name: number
|
|
definition: number
|
|
theme: number
|
|
targetType: number
|
|
targetEntityId: number
|
|
fieldMapping: number
|
|
allowedOrigins: number
|
|
notifyEmails: number
|
|
webhookUrl: number
|
|
config: number
|
|
isEnabled: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type FormMinAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
key?: true
|
|
name?: true
|
|
targetType?: true
|
|
targetEntityId?: true
|
|
webhookUrl?: true
|
|
isEnabled?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type FormMaxAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
key?: true
|
|
name?: true
|
|
targetType?: true
|
|
targetEntityId?: true
|
|
webhookUrl?: true
|
|
isEnabled?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
}
|
|
|
|
export type FormCountAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
key?: true
|
|
name?: true
|
|
definition?: true
|
|
theme?: true
|
|
targetType?: true
|
|
targetEntityId?: true
|
|
fieldMapping?: true
|
|
allowedOrigins?: true
|
|
notifyEmails?: true
|
|
webhookUrl?: true
|
|
config?: true
|
|
isEnabled?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type FormAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Form to aggregate.
|
|
*/
|
|
where?: Prisma.FormWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Forms to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormOrderByWithRelationInput | Prisma.FormOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.FormWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Forms 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` Forms.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Forms
|
|
**/
|
|
_count?: true | FormCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: FormMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: FormMaxAggregateInputType
|
|
}
|
|
|
|
export type GetFormAggregateType<T extends FormAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateForm]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateForm[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateForm[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FormWhereInput
|
|
orderBy?: Prisma.FormOrderByWithAggregationInput | Prisma.FormOrderByWithAggregationInput[]
|
|
by: Prisma.FormScalarFieldEnum[] | Prisma.FormScalarFieldEnum
|
|
having?: Prisma.FormScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: FormCountAggregateInputType | true
|
|
_min?: FormMinAggregateInputType
|
|
_max?: FormMaxAggregateInputType
|
|
}
|
|
|
|
export type FormGroupByOutputType = {
|
|
id: string
|
|
tenantId: string
|
|
key: string
|
|
name: string
|
|
definition: runtime.JsonValue
|
|
theme: runtime.JsonValue
|
|
targetType: string
|
|
targetEntityId: string | null
|
|
fieldMapping: runtime.JsonValue
|
|
allowedOrigins: string[]
|
|
notifyEmails: string[]
|
|
webhookUrl: string | null
|
|
config: runtime.JsonValue
|
|
isEnabled: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
_count: FormCountAggregateOutputType | null
|
|
_min: FormMinAggregateOutputType | null
|
|
_max: FormMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetFormGroupByPayload<T extends FormGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<FormGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof FormGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], FormGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], FormGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type FormWhereInput = {
|
|
AND?: Prisma.FormWhereInput | Prisma.FormWhereInput[]
|
|
OR?: Prisma.FormWhereInput[]
|
|
NOT?: Prisma.FormWhereInput | Prisma.FormWhereInput[]
|
|
id?: Prisma.StringFilter<"Form"> | string
|
|
tenantId?: Prisma.StringFilter<"Form"> | string
|
|
key?: Prisma.StringFilter<"Form"> | string
|
|
name?: Prisma.StringFilter<"Form"> | string
|
|
definition?: Prisma.JsonFilter<"Form">
|
|
theme?: Prisma.JsonFilter<"Form">
|
|
targetType?: Prisma.StringFilter<"Form"> | string
|
|
targetEntityId?: Prisma.StringNullableFilter<"Form"> | string | null
|
|
fieldMapping?: Prisma.JsonFilter<"Form">
|
|
allowedOrigins?: Prisma.StringNullableListFilter<"Form">
|
|
notifyEmails?: Prisma.StringNullableListFilter<"Form">
|
|
webhookUrl?: Prisma.StringNullableFilter<"Form"> | string | null
|
|
config?: Prisma.JsonFilter<"Form">
|
|
isEnabled?: Prisma.BoolFilter<"Form"> | boolean
|
|
createdAt?: Prisma.DateTimeFilter<"Form"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Form"> | Date | string
|
|
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
|
|
submissions?: Prisma.FormSubmissionListRelationFilter
|
|
}
|
|
|
|
export type FormOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
definition?: Prisma.SortOrder
|
|
theme?: Prisma.SortOrder
|
|
targetType?: Prisma.SortOrder
|
|
targetEntityId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
fieldMapping?: Prisma.SortOrder
|
|
allowedOrigins?: Prisma.SortOrder
|
|
notifyEmails?: Prisma.SortOrder
|
|
webhookUrl?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
config?: Prisma.SortOrder
|
|
isEnabled?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenant?: Prisma.TenantOrderByWithRelationInput
|
|
submissions?: Prisma.FormSubmissionOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type FormWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
key?: string
|
|
AND?: Prisma.FormWhereInput | Prisma.FormWhereInput[]
|
|
OR?: Prisma.FormWhereInput[]
|
|
NOT?: Prisma.FormWhereInput | Prisma.FormWhereInput[]
|
|
tenantId?: Prisma.StringFilter<"Form"> | string
|
|
name?: Prisma.StringFilter<"Form"> | string
|
|
definition?: Prisma.JsonFilter<"Form">
|
|
theme?: Prisma.JsonFilter<"Form">
|
|
targetType?: Prisma.StringFilter<"Form"> | string
|
|
targetEntityId?: Prisma.StringNullableFilter<"Form"> | string | null
|
|
fieldMapping?: Prisma.JsonFilter<"Form">
|
|
allowedOrigins?: Prisma.StringNullableListFilter<"Form">
|
|
notifyEmails?: Prisma.StringNullableListFilter<"Form">
|
|
webhookUrl?: Prisma.StringNullableFilter<"Form"> | string | null
|
|
config?: Prisma.JsonFilter<"Form">
|
|
isEnabled?: Prisma.BoolFilter<"Form"> | boolean
|
|
createdAt?: Prisma.DateTimeFilter<"Form"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Form"> | Date | string
|
|
tenant?: Prisma.XOR<Prisma.TenantScalarRelationFilter, Prisma.TenantWhereInput>
|
|
submissions?: Prisma.FormSubmissionListRelationFilter
|
|
}, "id" | "key">
|
|
|
|
export type FormOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
definition?: Prisma.SortOrder
|
|
theme?: Prisma.SortOrder
|
|
targetType?: Prisma.SortOrder
|
|
targetEntityId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
fieldMapping?: Prisma.SortOrder
|
|
allowedOrigins?: Prisma.SortOrder
|
|
notifyEmails?: Prisma.SortOrder
|
|
webhookUrl?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
config?: Prisma.SortOrder
|
|
isEnabled?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
_count?: Prisma.FormCountOrderByAggregateInput
|
|
_max?: Prisma.FormMaxOrderByAggregateInput
|
|
_min?: Prisma.FormMinOrderByAggregateInput
|
|
}
|
|
|
|
export type FormScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.FormScalarWhereWithAggregatesInput | Prisma.FormScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.FormScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.FormScalarWhereWithAggregatesInput | Prisma.FormScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"Form"> | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"Form"> | string
|
|
key?: Prisma.StringWithAggregatesFilter<"Form"> | string
|
|
name?: Prisma.StringWithAggregatesFilter<"Form"> | string
|
|
definition?: Prisma.JsonWithAggregatesFilter<"Form">
|
|
theme?: Prisma.JsonWithAggregatesFilter<"Form">
|
|
targetType?: Prisma.StringWithAggregatesFilter<"Form"> | string
|
|
targetEntityId?: Prisma.StringNullableWithAggregatesFilter<"Form"> | string | null
|
|
fieldMapping?: Prisma.JsonWithAggregatesFilter<"Form">
|
|
allowedOrigins?: Prisma.StringNullableListFilter<"Form">
|
|
notifyEmails?: Prisma.StringNullableListFilter<"Form">
|
|
webhookUrl?: Prisma.StringNullableWithAggregatesFilter<"Form"> | string | null
|
|
config?: Prisma.JsonWithAggregatesFilter<"Form">
|
|
isEnabled?: Prisma.BoolWithAggregatesFilter<"Form"> | boolean
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Form"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Form"> | Date | string
|
|
}
|
|
|
|
export type FormCreateInput = {
|
|
id?: string
|
|
key?: string
|
|
name: string
|
|
definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: string
|
|
targetEntityId?: string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormCreateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormCreatenotifyEmailsInput | string[]
|
|
webhookUrl?: string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenant: Prisma.TenantCreateNestedOneWithoutFormsInput
|
|
submissions?: Prisma.FormSubmissionCreateNestedManyWithoutFormInput
|
|
}
|
|
|
|
export type FormUncheckedCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
key?: string
|
|
name: string
|
|
definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: string
|
|
targetEntityId?: string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormCreateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormCreatenotifyEmailsInput | string[]
|
|
webhookUrl?: string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
submissions?: Prisma.FormSubmissionUncheckedCreateNestedManyWithoutFormInput
|
|
}
|
|
|
|
export type FormUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
targetEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormUpdateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormUpdatenotifyEmailsInput | string[]
|
|
webhookUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenant?: Prisma.TenantUpdateOneRequiredWithoutFormsNestedInput
|
|
submissions?: Prisma.FormSubmissionUpdateManyWithoutFormNestedInput
|
|
}
|
|
|
|
export type FormUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
targetEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormUpdateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormUpdatenotifyEmailsInput | string[]
|
|
webhookUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
submissions?: Prisma.FormSubmissionUncheckedUpdateManyWithoutFormNestedInput
|
|
}
|
|
|
|
export type FormCreateManyInput = {
|
|
id?: string
|
|
tenantId: string
|
|
key?: string
|
|
name: string
|
|
definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: string
|
|
targetEntityId?: string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormCreateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormCreatenotifyEmailsInput | string[]
|
|
webhookUrl?: string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type FormUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
targetEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormUpdateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormUpdatenotifyEmailsInput | string[]
|
|
webhookUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type FormUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
targetEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormUpdateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormUpdatenotifyEmailsInput | string[]
|
|
webhookUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type FormListRelationFilter = {
|
|
every?: Prisma.FormWhereInput
|
|
some?: Prisma.FormWhereInput
|
|
none?: Prisma.FormWhereInput
|
|
}
|
|
|
|
export type FormOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
definition?: Prisma.SortOrder
|
|
theme?: Prisma.SortOrder
|
|
targetType?: Prisma.SortOrder
|
|
targetEntityId?: Prisma.SortOrder
|
|
fieldMapping?: Prisma.SortOrder
|
|
allowedOrigins?: Prisma.SortOrder
|
|
notifyEmails?: Prisma.SortOrder
|
|
webhookUrl?: Prisma.SortOrder
|
|
config?: Prisma.SortOrder
|
|
isEnabled?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
targetType?: Prisma.SortOrder
|
|
targetEntityId?: Prisma.SortOrder
|
|
webhookUrl?: Prisma.SortOrder
|
|
isEnabled?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
key?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
targetType?: Prisma.SortOrder
|
|
targetEntityId?: Prisma.SortOrder
|
|
webhookUrl?: Prisma.SortOrder
|
|
isEnabled?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormScalarRelationFilter = {
|
|
is?: Prisma.FormWhereInput
|
|
isNot?: Prisma.FormWhereInput
|
|
}
|
|
|
|
export type FormCreateNestedManyWithoutTenantInput = {
|
|
create?: Prisma.XOR<Prisma.FormCreateWithoutTenantInput, Prisma.FormUncheckedCreateWithoutTenantInput> | Prisma.FormCreateWithoutTenantInput[] | Prisma.FormUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.FormCreateOrConnectWithoutTenantInput | Prisma.FormCreateOrConnectWithoutTenantInput[]
|
|
createMany?: Prisma.FormCreateManyTenantInputEnvelope
|
|
connect?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
}
|
|
|
|
export type FormUncheckedCreateNestedManyWithoutTenantInput = {
|
|
create?: Prisma.XOR<Prisma.FormCreateWithoutTenantInput, Prisma.FormUncheckedCreateWithoutTenantInput> | Prisma.FormCreateWithoutTenantInput[] | Prisma.FormUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.FormCreateOrConnectWithoutTenantInput | Prisma.FormCreateOrConnectWithoutTenantInput[]
|
|
createMany?: Prisma.FormCreateManyTenantInputEnvelope
|
|
connect?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
}
|
|
|
|
export type FormUpdateManyWithoutTenantNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormCreateWithoutTenantInput, Prisma.FormUncheckedCreateWithoutTenantInput> | Prisma.FormCreateWithoutTenantInput[] | Prisma.FormUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.FormCreateOrConnectWithoutTenantInput | Prisma.FormCreateOrConnectWithoutTenantInput[]
|
|
upsert?: Prisma.FormUpsertWithWhereUniqueWithoutTenantInput | Prisma.FormUpsertWithWhereUniqueWithoutTenantInput[]
|
|
createMany?: Prisma.FormCreateManyTenantInputEnvelope
|
|
set?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
disconnect?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
delete?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
connect?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
update?: Prisma.FormUpdateWithWhereUniqueWithoutTenantInput | Prisma.FormUpdateWithWhereUniqueWithoutTenantInput[]
|
|
updateMany?: Prisma.FormUpdateManyWithWhereWithoutTenantInput | Prisma.FormUpdateManyWithWhereWithoutTenantInput[]
|
|
deleteMany?: Prisma.FormScalarWhereInput | Prisma.FormScalarWhereInput[]
|
|
}
|
|
|
|
export type FormUncheckedUpdateManyWithoutTenantNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormCreateWithoutTenantInput, Prisma.FormUncheckedCreateWithoutTenantInput> | Prisma.FormCreateWithoutTenantInput[] | Prisma.FormUncheckedCreateWithoutTenantInput[]
|
|
connectOrCreate?: Prisma.FormCreateOrConnectWithoutTenantInput | Prisma.FormCreateOrConnectWithoutTenantInput[]
|
|
upsert?: Prisma.FormUpsertWithWhereUniqueWithoutTenantInput | Prisma.FormUpsertWithWhereUniqueWithoutTenantInput[]
|
|
createMany?: Prisma.FormCreateManyTenantInputEnvelope
|
|
set?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
disconnect?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
delete?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
connect?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[]
|
|
update?: Prisma.FormUpdateWithWhereUniqueWithoutTenantInput | Prisma.FormUpdateWithWhereUniqueWithoutTenantInput[]
|
|
updateMany?: Prisma.FormUpdateManyWithWhereWithoutTenantInput | Prisma.FormUpdateManyWithWhereWithoutTenantInput[]
|
|
deleteMany?: Prisma.FormScalarWhereInput | Prisma.FormScalarWhereInput[]
|
|
}
|
|
|
|
export type FormCreateallowedOriginsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type FormCreatenotifyEmailsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type FormUpdateallowedOriginsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type FormUpdatenotifyEmailsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type FormCreateNestedOneWithoutSubmissionsInput = {
|
|
create?: Prisma.XOR<Prisma.FormCreateWithoutSubmissionsInput, Prisma.FormUncheckedCreateWithoutSubmissionsInput>
|
|
connectOrCreate?: Prisma.FormCreateOrConnectWithoutSubmissionsInput
|
|
connect?: Prisma.FormWhereUniqueInput
|
|
}
|
|
|
|
export type FormUpdateOneRequiredWithoutSubmissionsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormCreateWithoutSubmissionsInput, Prisma.FormUncheckedCreateWithoutSubmissionsInput>
|
|
connectOrCreate?: Prisma.FormCreateOrConnectWithoutSubmissionsInput
|
|
upsert?: Prisma.FormUpsertWithoutSubmissionsInput
|
|
connect?: Prisma.FormWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.FormUpdateToOneWithWhereWithoutSubmissionsInput, Prisma.FormUpdateWithoutSubmissionsInput>, Prisma.FormUncheckedUpdateWithoutSubmissionsInput>
|
|
}
|
|
|
|
export type FormCreateWithoutTenantInput = {
|
|
id?: string
|
|
key?: string
|
|
name: string
|
|
definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: string
|
|
targetEntityId?: string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormCreateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormCreatenotifyEmailsInput | string[]
|
|
webhookUrl?: string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
submissions?: Prisma.FormSubmissionCreateNestedManyWithoutFormInput
|
|
}
|
|
|
|
export type FormUncheckedCreateWithoutTenantInput = {
|
|
id?: string
|
|
key?: string
|
|
name: string
|
|
definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: string
|
|
targetEntityId?: string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormCreateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormCreatenotifyEmailsInput | string[]
|
|
webhookUrl?: string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
submissions?: Prisma.FormSubmissionUncheckedCreateNestedManyWithoutFormInput
|
|
}
|
|
|
|
export type FormCreateOrConnectWithoutTenantInput = {
|
|
where: Prisma.FormWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.FormCreateWithoutTenantInput, Prisma.FormUncheckedCreateWithoutTenantInput>
|
|
}
|
|
|
|
export type FormCreateManyTenantInputEnvelope = {
|
|
data: Prisma.FormCreateManyTenantInput | Prisma.FormCreateManyTenantInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type FormUpsertWithWhereUniqueWithoutTenantInput = {
|
|
where: Prisma.FormWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.FormUpdateWithoutTenantInput, Prisma.FormUncheckedUpdateWithoutTenantInput>
|
|
create: Prisma.XOR<Prisma.FormCreateWithoutTenantInput, Prisma.FormUncheckedCreateWithoutTenantInput>
|
|
}
|
|
|
|
export type FormUpdateWithWhereUniqueWithoutTenantInput = {
|
|
where: Prisma.FormWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.FormUpdateWithoutTenantInput, Prisma.FormUncheckedUpdateWithoutTenantInput>
|
|
}
|
|
|
|
export type FormUpdateManyWithWhereWithoutTenantInput = {
|
|
where: Prisma.FormScalarWhereInput
|
|
data: Prisma.XOR<Prisma.FormUpdateManyMutationInput, Prisma.FormUncheckedUpdateManyWithoutTenantInput>
|
|
}
|
|
|
|
export type FormScalarWhereInput = {
|
|
AND?: Prisma.FormScalarWhereInput | Prisma.FormScalarWhereInput[]
|
|
OR?: Prisma.FormScalarWhereInput[]
|
|
NOT?: Prisma.FormScalarWhereInput | Prisma.FormScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"Form"> | string
|
|
tenantId?: Prisma.StringFilter<"Form"> | string
|
|
key?: Prisma.StringFilter<"Form"> | string
|
|
name?: Prisma.StringFilter<"Form"> | string
|
|
definition?: Prisma.JsonFilter<"Form">
|
|
theme?: Prisma.JsonFilter<"Form">
|
|
targetType?: Prisma.StringFilter<"Form"> | string
|
|
targetEntityId?: Prisma.StringNullableFilter<"Form"> | string | null
|
|
fieldMapping?: Prisma.JsonFilter<"Form">
|
|
allowedOrigins?: Prisma.StringNullableListFilter<"Form">
|
|
notifyEmails?: Prisma.StringNullableListFilter<"Form">
|
|
webhookUrl?: Prisma.StringNullableFilter<"Form"> | string | null
|
|
config?: Prisma.JsonFilter<"Form">
|
|
isEnabled?: Prisma.BoolFilter<"Form"> | boolean
|
|
createdAt?: Prisma.DateTimeFilter<"Form"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Form"> | Date | string
|
|
}
|
|
|
|
export type FormCreateWithoutSubmissionsInput = {
|
|
id?: string
|
|
key?: string
|
|
name: string
|
|
definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: string
|
|
targetEntityId?: string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormCreateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormCreatenotifyEmailsInput | string[]
|
|
webhookUrl?: string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenant: Prisma.TenantCreateNestedOneWithoutFormsInput
|
|
}
|
|
|
|
export type FormUncheckedCreateWithoutSubmissionsInput = {
|
|
id?: string
|
|
tenantId: string
|
|
key?: string
|
|
name: string
|
|
definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: string
|
|
targetEntityId?: string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormCreateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormCreatenotifyEmailsInput | string[]
|
|
webhookUrl?: string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type FormCreateOrConnectWithoutSubmissionsInput = {
|
|
where: Prisma.FormWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.FormCreateWithoutSubmissionsInput, Prisma.FormUncheckedCreateWithoutSubmissionsInput>
|
|
}
|
|
|
|
export type FormUpsertWithoutSubmissionsInput = {
|
|
update: Prisma.XOR<Prisma.FormUpdateWithoutSubmissionsInput, Prisma.FormUncheckedUpdateWithoutSubmissionsInput>
|
|
create: Prisma.XOR<Prisma.FormCreateWithoutSubmissionsInput, Prisma.FormUncheckedCreateWithoutSubmissionsInput>
|
|
where?: Prisma.FormWhereInput
|
|
}
|
|
|
|
export type FormUpdateToOneWithWhereWithoutSubmissionsInput = {
|
|
where?: Prisma.FormWhereInput
|
|
data: Prisma.XOR<Prisma.FormUpdateWithoutSubmissionsInput, Prisma.FormUncheckedUpdateWithoutSubmissionsInput>
|
|
}
|
|
|
|
export type FormUpdateWithoutSubmissionsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
targetEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormUpdateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormUpdatenotifyEmailsInput | string[]
|
|
webhookUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenant?: Prisma.TenantUpdateOneRequiredWithoutFormsNestedInput
|
|
}
|
|
|
|
export type FormUncheckedUpdateWithoutSubmissionsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
targetEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormUpdateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormUpdatenotifyEmailsInput | string[]
|
|
webhookUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
export type FormCreateManyTenantInput = {
|
|
id?: string
|
|
key?: string
|
|
name: string
|
|
definition: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: string
|
|
targetEntityId?: string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormCreateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormCreatenotifyEmailsInput | string[]
|
|
webhookUrl?: string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: boolean
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
}
|
|
|
|
export type FormUpdateWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
targetEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormUpdateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormUpdatenotifyEmailsInput | string[]
|
|
webhookUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
submissions?: Prisma.FormSubmissionUpdateManyWithoutFormNestedInput
|
|
}
|
|
|
|
export type FormUncheckedUpdateWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
targetEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormUpdateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormUpdatenotifyEmailsInput | string[]
|
|
webhookUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
submissions?: Prisma.FormSubmissionUncheckedUpdateManyWithoutFormNestedInput
|
|
}
|
|
|
|
export type FormUncheckedUpdateManyWithoutTenantInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
key?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.StringFieldUpdateOperationsInput | string
|
|
definition?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
theme?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
targetType?: Prisma.StringFieldUpdateOperationsInput | string
|
|
targetEntityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
fieldMapping?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
allowedOrigins?: Prisma.FormUpdateallowedOriginsInput | string[]
|
|
notifyEmails?: Prisma.FormUpdatenotifyEmailsInput | string[]
|
|
webhookUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
config?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
isEnabled?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type FormCountOutputType
|
|
*/
|
|
|
|
export type FormCountOutputType = {
|
|
submissions: number
|
|
}
|
|
|
|
export type FormCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
submissions?: boolean | FormCountOutputTypeCountSubmissionsArgs
|
|
}
|
|
|
|
/**
|
|
* FormCountOutputType without action
|
|
*/
|
|
export type FormCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormCountOutputType
|
|
*/
|
|
select?: Prisma.FormCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* FormCountOutputType without action
|
|
*/
|
|
export type FormCountOutputTypeCountSubmissionsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
}
|
|
|
|
|
|
export type FormSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
key?: boolean
|
|
name?: boolean
|
|
definition?: boolean
|
|
theme?: boolean
|
|
targetType?: boolean
|
|
targetEntityId?: boolean
|
|
fieldMapping?: boolean
|
|
allowedOrigins?: boolean
|
|
notifyEmails?: boolean
|
|
webhookUrl?: boolean
|
|
config?: boolean
|
|
isEnabled?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
|
|
submissions?: boolean | Prisma.Form$submissionsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.FormCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["form"]>
|
|
|
|
export type FormSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
key?: boolean
|
|
name?: boolean
|
|
definition?: boolean
|
|
theme?: boolean
|
|
targetType?: boolean
|
|
targetEntityId?: boolean
|
|
fieldMapping?: boolean
|
|
allowedOrigins?: boolean
|
|
notifyEmails?: boolean
|
|
webhookUrl?: boolean
|
|
config?: boolean
|
|
isEnabled?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["form"]>
|
|
|
|
export type FormSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
key?: boolean
|
|
name?: boolean
|
|
definition?: boolean
|
|
theme?: boolean
|
|
targetType?: boolean
|
|
targetEntityId?: boolean
|
|
fieldMapping?: boolean
|
|
allowedOrigins?: boolean
|
|
notifyEmails?: boolean
|
|
webhookUrl?: boolean
|
|
config?: boolean
|
|
isEnabled?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["form"]>
|
|
|
|
export type FormSelectScalar = {
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
key?: boolean
|
|
name?: boolean
|
|
definition?: boolean
|
|
theme?: boolean
|
|
targetType?: boolean
|
|
targetEntityId?: boolean
|
|
fieldMapping?: boolean
|
|
allowedOrigins?: boolean
|
|
notifyEmails?: boolean
|
|
webhookUrl?: boolean
|
|
config?: boolean
|
|
isEnabled?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type FormOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "key" | "name" | "definition" | "theme" | "targetType" | "targetEntityId" | "fieldMapping" | "allowedOrigins" | "notifyEmails" | "webhookUrl" | "config" | "isEnabled" | "createdAt" | "updatedAt", ExtArgs["result"]["form"]>
|
|
export type FormInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
|
|
submissions?: boolean | Prisma.Form$submissionsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.FormCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type FormIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
|
|
}
|
|
export type FormIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
tenant?: boolean | Prisma.TenantDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $FormPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Form"
|
|
objects: {
|
|
tenant: Prisma.$TenantPayload<ExtArgs>
|
|
submissions: Prisma.$FormSubmissionPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
tenantId: string
|
|
/**
|
|
* Public key used in the embed `<script data-form-key="…">`.
|
|
*/
|
|
key: string
|
|
name: string
|
|
/**
|
|
* Schema-versioned form definition JSON (validated by `FormDefinitionSchema`).
|
|
*/
|
|
definition: runtime.JsonValue
|
|
/**
|
|
* Theme JSON (validated by `FormThemeSchema`). Empty object inherits tenant brand.
|
|
*/
|
|
theme: runtime.JsonValue
|
|
/**
|
|
* "generic" | "crm-contact" | "entity-row".
|
|
*/
|
|
targetType: string
|
|
targetEntityId: string | null
|
|
/**
|
|
* Mapping from form field-key -> target row property-key.
|
|
*/
|
|
fieldMapping: runtime.JsonValue
|
|
/**
|
|
* Allowlist of origins permitted to POST submissions. Empty -> no submissions accepted.
|
|
*/
|
|
allowedOrigins: string[]
|
|
notifyEmails: string[]
|
|
webhookUrl: string | null
|
|
/**
|
|
* Anti-spam / processing config (honeypotEnabled, turnstileEnabled, successMessage override).
|
|
*/
|
|
config: runtime.JsonValue
|
|
isEnabled: boolean
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["form"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type FormGetPayload<S extends boolean | null | undefined | FormDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FormPayload, S>
|
|
|
|
export type FormCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<FormFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: FormCountAggregateInputType | true
|
|
}
|
|
|
|
export interface FormDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Form'], meta: { name: 'Form' } }
|
|
/**
|
|
* Find zero or one Form that matches the filter.
|
|
* @param {FormFindUniqueArgs} args - Arguments to find a Form
|
|
* @example
|
|
* // Get one Form
|
|
* const form = await prisma.form.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends FormFindUniqueArgs>(args: Prisma.SelectSubset<T, FormFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FormClient<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Form that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {FormFindUniqueOrThrowArgs} args - Arguments to find a Form
|
|
* @example
|
|
* // Get one Form
|
|
* const form = await prisma.form.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends FormFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FormFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FormClient<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Form 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 {FormFindFirstArgs} args - Arguments to find a Form
|
|
* @example
|
|
* // Get one Form
|
|
* const form = await prisma.form.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends FormFindFirstArgs>(args?: Prisma.SelectSubset<T, FormFindFirstArgs<ExtArgs>>): Prisma.Prisma__FormClient<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Form 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 {FormFindFirstOrThrowArgs} args - Arguments to find a Form
|
|
* @example
|
|
* // Get one Form
|
|
* const form = await prisma.form.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends FormFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FormFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FormClient<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Forms 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 {FormFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Forms
|
|
* const forms = await prisma.form.findMany()
|
|
*
|
|
* // Get first 10 Forms
|
|
* const forms = await prisma.form.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const formWithIdOnly = await prisma.form.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends FormFindManyArgs>(args?: Prisma.SelectSubset<T, FormFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Form.
|
|
* @param {FormCreateArgs} args - Arguments to create a Form.
|
|
* @example
|
|
* // Create one Form
|
|
* const Form = await prisma.form.create({
|
|
* data: {
|
|
* // ... data to create a Form
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends FormCreateArgs>(args: Prisma.SelectSubset<T, FormCreateArgs<ExtArgs>>): Prisma.Prisma__FormClient<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Forms.
|
|
* @param {FormCreateManyArgs} args - Arguments to create many Forms.
|
|
* @example
|
|
* // Create many Forms
|
|
* const form = await prisma.form.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends FormCreateManyArgs>(args?: Prisma.SelectSubset<T, FormCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Forms and returns the data saved in the database.
|
|
* @param {FormCreateManyAndReturnArgs} args - Arguments to create many Forms.
|
|
* @example
|
|
* // Create many Forms
|
|
* const form = await prisma.form.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Forms and only return the `id`
|
|
* const formWithIdOnly = await prisma.form.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 FormCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FormCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Form.
|
|
* @param {FormDeleteArgs} args - Arguments to delete one Form.
|
|
* @example
|
|
* // Delete one Form
|
|
* const Form = await prisma.form.delete({
|
|
* where: {
|
|
* // ... filter to delete one Form
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends FormDeleteArgs>(args: Prisma.SelectSubset<T, FormDeleteArgs<ExtArgs>>): Prisma.Prisma__FormClient<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Form.
|
|
* @param {FormUpdateArgs} args - Arguments to update one Form.
|
|
* @example
|
|
* // Update one Form
|
|
* const form = await prisma.form.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends FormUpdateArgs>(args: Prisma.SelectSubset<T, FormUpdateArgs<ExtArgs>>): Prisma.Prisma__FormClient<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Forms.
|
|
* @param {FormDeleteManyArgs} args - Arguments to filter Forms to delete.
|
|
* @example
|
|
* // Delete a few Forms
|
|
* const { count } = await prisma.form.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends FormDeleteManyArgs>(args?: Prisma.SelectSubset<T, FormDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Forms.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Forms
|
|
* const form = await prisma.form.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends FormUpdateManyArgs>(args: Prisma.SelectSubset<T, FormUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Forms and returns the data updated in the database.
|
|
* @param {FormUpdateManyAndReturnArgs} args - Arguments to update many Forms.
|
|
* @example
|
|
* // Update many Forms
|
|
* const form = await prisma.form.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Forms and only return the `id`
|
|
* const formWithIdOnly = await prisma.form.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 FormUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FormUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Form.
|
|
* @param {FormUpsertArgs} args - Arguments to update or create a Form.
|
|
* @example
|
|
* // Update or create a Form
|
|
* const form = await prisma.form.upsert({
|
|
* create: {
|
|
* // ... data to create a Form
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Form we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends FormUpsertArgs>(args: Prisma.SelectSubset<T, FormUpsertArgs<ExtArgs>>): Prisma.Prisma__FormClient<runtime.Types.Result.GetResult<Prisma.$FormPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Forms.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormCountArgs} args - Arguments to filter Forms to count.
|
|
* @example
|
|
* // Count the number of Forms
|
|
* const count = await prisma.form.count({
|
|
* where: {
|
|
* // ... the filter for the Forms we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends FormCountArgs>(
|
|
args?: Prisma.Subset<T, FormCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], FormCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Form.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormAggregateArgs} 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 FormAggregateArgs>(args: Prisma.Subset<T, FormAggregateArgs>): Prisma.PrismaPromise<GetFormAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Form.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormGroupByArgs} 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 FormGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: FormGroupByArgs['orderBy'] }
|
|
: { orderBy?: FormGroupByArgs['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, FormGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFormGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Form model
|
|
*/
|
|
readonly fields: FormFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Form.
|
|
* 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__FormClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
tenant<T extends Prisma.TenantDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TenantDefaultArgs<ExtArgs>>): Prisma.Prisma__TenantClient<runtime.Types.Result.GetResult<Prisma.$TenantPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
submissions<T extends Prisma.Form$submissionsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Form$submissionsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormSubmissionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* 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 Form model
|
|
*/
|
|
export interface FormFieldRefs {
|
|
readonly id: Prisma.FieldRef<"Form", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"Form", 'String'>
|
|
readonly key: Prisma.FieldRef<"Form", 'String'>
|
|
readonly name: Prisma.FieldRef<"Form", 'String'>
|
|
readonly definition: Prisma.FieldRef<"Form", 'Json'>
|
|
readonly theme: Prisma.FieldRef<"Form", 'Json'>
|
|
readonly targetType: Prisma.FieldRef<"Form", 'String'>
|
|
readonly targetEntityId: Prisma.FieldRef<"Form", 'String'>
|
|
readonly fieldMapping: Prisma.FieldRef<"Form", 'Json'>
|
|
readonly allowedOrigins: Prisma.FieldRef<"Form", 'String[]'>
|
|
readonly notifyEmails: Prisma.FieldRef<"Form", 'String[]'>
|
|
readonly webhookUrl: Prisma.FieldRef<"Form", 'String'>
|
|
readonly config: Prisma.FieldRef<"Form", 'Json'>
|
|
readonly isEnabled: Prisma.FieldRef<"Form", 'Boolean'>
|
|
readonly createdAt: Prisma.FieldRef<"Form", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"Form", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Form findUnique
|
|
*/
|
|
export type FormFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Form to fetch.
|
|
*/
|
|
where: Prisma.FormWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Form findUniqueOrThrow
|
|
*/
|
|
export type FormFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Form to fetch.
|
|
*/
|
|
where: Prisma.FormWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Form findFirst
|
|
*/
|
|
export type FormFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Form to fetch.
|
|
*/
|
|
where?: Prisma.FormWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Forms to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormOrderByWithRelationInput | Prisma.FormOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Forms.
|
|
*/
|
|
cursor?: Prisma.FormWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Forms 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` Forms.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Forms.
|
|
*/
|
|
distinct?: Prisma.FormScalarFieldEnum | Prisma.FormScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Form findFirstOrThrow
|
|
*/
|
|
export type FormFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Form to fetch.
|
|
*/
|
|
where?: Prisma.FormWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Forms to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormOrderByWithRelationInput | Prisma.FormOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Forms.
|
|
*/
|
|
cursor?: Prisma.FormWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Forms 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` Forms.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Forms.
|
|
*/
|
|
distinct?: Prisma.FormScalarFieldEnum | Prisma.FormScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Form findMany
|
|
*/
|
|
export type FormFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Forms to fetch.
|
|
*/
|
|
where?: Prisma.FormWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Forms to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormOrderByWithRelationInput | Prisma.FormOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Forms.
|
|
*/
|
|
cursor?: Prisma.FormWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Forms 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` Forms.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Forms.
|
|
*/
|
|
distinct?: Prisma.FormScalarFieldEnum | Prisma.FormScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Form create
|
|
*/
|
|
export type FormCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Form.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormCreateInput, Prisma.FormUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Form createMany
|
|
*/
|
|
export type FormCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Forms.
|
|
*/
|
|
data: Prisma.FormCreateManyInput | Prisma.FormCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Form createManyAndReturn
|
|
*/
|
|
export type FormCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Forms.
|
|
*/
|
|
data: Prisma.FormCreateManyInput | Prisma.FormCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Form update
|
|
*/
|
|
export type FormUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Form.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormUpdateInput, Prisma.FormUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Form to update.
|
|
*/
|
|
where: Prisma.FormWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Form updateMany
|
|
*/
|
|
export type FormUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Forms.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormUpdateManyMutationInput, Prisma.FormUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Forms to update
|
|
*/
|
|
where?: Prisma.FormWhereInput
|
|
/**
|
|
* Limit how many Forms to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Form updateManyAndReturn
|
|
*/
|
|
export type FormUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Forms.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormUpdateManyMutationInput, Prisma.FormUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Forms to update
|
|
*/
|
|
where?: Prisma.FormWhereInput
|
|
/**
|
|
* Limit how many Forms to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Form upsert
|
|
*/
|
|
export type FormUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Form to update in case it exists.
|
|
*/
|
|
where: Prisma.FormWhereUniqueInput
|
|
/**
|
|
* In case the Form found by the `where` argument doesn't exist, create a new Form with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.FormCreateInput, Prisma.FormUncheckedCreateInput>
|
|
/**
|
|
* In case the Form was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.FormUpdateInput, Prisma.FormUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Form delete
|
|
*/
|
|
export type FormDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Form to delete.
|
|
*/
|
|
where: Prisma.FormWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Form deleteMany
|
|
*/
|
|
export type FormDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Forms to delete
|
|
*/
|
|
where?: Prisma.FormWhereInput
|
|
/**
|
|
* Limit how many Forms to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Form.submissions
|
|
*/
|
|
export type Form$submissionsArgs<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
|
|
where?: Prisma.FormSubmissionWhereInput
|
|
orderBy?: Prisma.FormSubmissionOrderByWithRelationInput | Prisma.FormSubmissionOrderByWithRelationInput[]
|
|
cursor?: Prisma.FormSubmissionWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.FormSubmissionScalarFieldEnum | Prisma.FormSubmissionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Form without action
|
|
*/
|
|
export type FormDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Form
|
|
*/
|
|
select?: Prisma.FormSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Form
|
|
*/
|
|
omit?: Prisma.FormOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormInclude<ExtArgs> | null
|
|
}
|