/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateForm]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type FormGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof FormGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 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 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[] connectOrCreate?: Prisma.FormCreateOrConnectWithoutTenantInput | Prisma.FormCreateOrConnectWithoutTenantInput[] createMany?: Prisma.FormCreateManyTenantInputEnvelope connect?: Prisma.FormWhereUniqueInput | Prisma.FormWhereUniqueInput[] } export type FormUncheckedCreateNestedManyWithoutTenantInput = { create?: Prisma.XOR | 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[] 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[] 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 connectOrCreate?: Prisma.FormCreateOrConnectWithoutSubmissionsInput connect?: Prisma.FormWhereUniqueInput } export type FormUpdateOneRequiredWithoutSubmissionsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.FormCreateOrConnectWithoutSubmissionsInput upsert?: Prisma.FormUpsertWithoutSubmissionsInput connect?: Prisma.FormWhereUniqueInput update?: Prisma.XOR, 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 } export type FormCreateManyTenantInputEnvelope = { data: Prisma.FormCreateManyTenantInput | Prisma.FormCreateManyTenantInput[] skipDuplicates?: boolean } export type FormUpsertWithWhereUniqueWithoutTenantInput = { where: Prisma.FormWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type FormUpdateWithWhereUniqueWithoutTenantInput = { where: Prisma.FormWhereUniqueInput data: Prisma.XOR } export type FormUpdateManyWithWhereWithoutTenantInput = { where: Prisma.FormScalarWhereInput data: Prisma.XOR } 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 } export type FormUpsertWithoutSubmissionsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.FormWhereInput } export type FormUpdateToOneWithWhereWithoutSubmissionsInput = { where?: Prisma.FormWhereInput data: Prisma.XOR } 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 = { submissions?: boolean | FormCountOutputTypeCountSubmissionsArgs } /** * FormCountOutputType without action */ export type FormCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the FormCountOutputType */ select?: Prisma.FormCountOutputTypeSelect | null } /** * FormCountOutputType without action */ export type FormCountOutputTypeCountSubmissionsArgs = { where?: Prisma.FormSubmissionWhereInput } export type FormSelect = 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 submissions?: boolean | Prisma.Form$submissionsArgs _count?: boolean | Prisma.FormCountOutputTypeDefaultArgs }, ExtArgs["result"]["form"]> export type FormSelectCreateManyAndReturn = 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["result"]["form"]> export type FormSelectUpdateManyAndReturn = 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["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 = 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 = { tenant?: boolean | Prisma.TenantDefaultArgs submissions?: boolean | Prisma.Form$submissionsArgs _count?: boolean | Prisma.FormCountOutputTypeDefaultArgs } export type FormIncludeCreateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs } export type FormIncludeUpdateManyAndReturn = { tenant?: boolean | Prisma.TenantDefaultArgs } export type $FormPayload = { name: "Form" objects: { tenant: Prisma.$TenantPayload submissions: Prisma.$FormSubmissionPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string /** * Public key used in the embed `