/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Email` 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 Email * */ export type EmailModel = runtime.Types.Result.DefaultSelection export type AggregateEmail = { _count: EmailCountAggregateOutputType | null _min: EmailMinAggregateOutputType | null _max: EmailMaxAggregateOutputType | null } export type EmailMinAggregateOutputType = { id: string | null tenantInboundAddressId: string | null messageId: string | null type: string | null date: Date | null subject: string | null fromEmail: string | null fromName: string | null toEmail: string | null toName: string | null textBody: string | null htmlBody: string | null purpose: string | null deliveryStatus: string | null relatedKontaktId: string | null relatedProjektId: string | null } export type EmailMaxAggregateOutputType = { id: string | null tenantInboundAddressId: string | null messageId: string | null type: string | null date: Date | null subject: string | null fromEmail: string | null fromName: string | null toEmail: string | null toName: string | null textBody: string | null htmlBody: string | null purpose: string | null deliveryStatus: string | null relatedKontaktId: string | null relatedProjektId: string | null } export type EmailCountAggregateOutputType = { id: number tenantInboundAddressId: number messageId: number type: number date: number subject: number fromEmail: number fromName: number toEmail: number toName: number textBody: number htmlBody: number purpose: number deliveryStatus: number relatedKontaktId: number relatedProjektId: number _all: number } export type EmailMinAggregateInputType = { id?: true tenantInboundAddressId?: true messageId?: true type?: true date?: true subject?: true fromEmail?: true fromName?: true toEmail?: true toName?: true textBody?: true htmlBody?: true purpose?: true deliveryStatus?: true relatedKontaktId?: true relatedProjektId?: true } export type EmailMaxAggregateInputType = { id?: true tenantInboundAddressId?: true messageId?: true type?: true date?: true subject?: true fromEmail?: true fromName?: true toEmail?: true toName?: true textBody?: true htmlBody?: true purpose?: true deliveryStatus?: true relatedKontaktId?: true relatedProjektId?: true } export type EmailCountAggregateInputType = { id?: true tenantInboundAddressId?: true messageId?: true type?: true date?: true subject?: true fromEmail?: true fromName?: true toEmail?: true toName?: true textBody?: true htmlBody?: true purpose?: true deliveryStatus?: true relatedKontaktId?: true relatedProjektId?: true _all?: true } export type EmailAggregateArgs = { /** * Filter which Email to aggregate. */ where?: Prisma.EmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Emails to fetch. */ orderBy?: Prisma.EmailOrderByWithRelationInput | Prisma.EmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Emails 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` Emails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Emails **/ _count?: true | EmailCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EmailMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EmailMaxAggregateInputType } export type GetEmailAggregateType = { [P in keyof T & keyof AggregateEmail]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type EmailGroupByArgs = { where?: Prisma.EmailWhereInput orderBy?: Prisma.EmailOrderByWithAggregationInput | Prisma.EmailOrderByWithAggregationInput[] by: Prisma.EmailScalarFieldEnum[] | Prisma.EmailScalarFieldEnum having?: Prisma.EmailScalarWhereWithAggregatesInput take?: number skip?: number _count?: EmailCountAggregateInputType | true _min?: EmailMinAggregateInputType _max?: EmailMaxAggregateInputType } export type EmailGroupByOutputType = { id: string tenantInboundAddressId: string | null messageId: string type: string date: Date subject: string fromEmail: string fromName: string | null toEmail: string toName: string | null textBody: string htmlBody: string purpose: string | null deliveryStatus: string | null relatedKontaktId: string | null relatedProjektId: string | null _count: EmailCountAggregateOutputType | null _min: EmailMinAggregateOutputType | null _max: EmailMaxAggregateOutputType | null } export type GetEmailGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof EmailGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type EmailWhereInput = { AND?: Prisma.EmailWhereInput | Prisma.EmailWhereInput[] OR?: Prisma.EmailWhereInput[] NOT?: Prisma.EmailWhereInput | Prisma.EmailWhereInput[] id?: Prisma.StringFilter<"Email"> | string tenantInboundAddressId?: Prisma.StringNullableFilter<"Email"> | string | null messageId?: Prisma.StringFilter<"Email"> | string type?: Prisma.StringFilter<"Email"> | string date?: Prisma.DateTimeFilter<"Email"> | Date | string subject?: Prisma.StringFilter<"Email"> | string fromEmail?: Prisma.StringFilter<"Email"> | string fromName?: Prisma.StringNullableFilter<"Email"> | string | null toEmail?: Prisma.StringFilter<"Email"> | string toName?: Prisma.StringNullableFilter<"Email"> | string | null textBody?: Prisma.StringFilter<"Email"> | string htmlBody?: Prisma.StringFilter<"Email"> | string purpose?: Prisma.StringNullableFilter<"Email"> | string | null deliveryStatus?: Prisma.StringNullableFilter<"Email"> | string | null relatedKontaktId?: Prisma.StringNullableFilter<"Email"> | string | null relatedProjektId?: Prisma.StringNullableFilter<"Email"> | string | null tenantInboundAddress?: Prisma.XOR | null reads?: Prisma.EmailReadListRelationFilter attachments?: Prisma.EmailAttachmentListRelationFilter cc?: Prisma.EmailCcListRelationFilter } export type EmailOrderByWithRelationInput = { id?: Prisma.SortOrder tenantInboundAddressId?: Prisma.SortOrderInput | Prisma.SortOrder messageId?: Prisma.SortOrder type?: Prisma.SortOrder date?: Prisma.SortOrder subject?: Prisma.SortOrder fromEmail?: Prisma.SortOrder fromName?: Prisma.SortOrderInput | Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrderInput | Prisma.SortOrder textBody?: Prisma.SortOrder htmlBody?: Prisma.SortOrder purpose?: Prisma.SortOrderInput | Prisma.SortOrder deliveryStatus?: Prisma.SortOrderInput | Prisma.SortOrder relatedKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder relatedProjektId?: Prisma.SortOrderInput | Prisma.SortOrder tenantInboundAddress?: Prisma.TenantInboundAddressOrderByWithRelationInput reads?: Prisma.EmailReadOrderByRelationAggregateInput attachments?: Prisma.EmailAttachmentOrderByRelationAggregateInput cc?: Prisma.EmailCcOrderByRelationAggregateInput } export type EmailWhereUniqueInput = Prisma.AtLeast<{ id?: string messageId?: string AND?: Prisma.EmailWhereInput | Prisma.EmailWhereInput[] OR?: Prisma.EmailWhereInput[] NOT?: Prisma.EmailWhereInput | Prisma.EmailWhereInput[] tenantInboundAddressId?: Prisma.StringNullableFilter<"Email"> | string | null type?: Prisma.StringFilter<"Email"> | string date?: Prisma.DateTimeFilter<"Email"> | Date | string subject?: Prisma.StringFilter<"Email"> | string fromEmail?: Prisma.StringFilter<"Email"> | string fromName?: Prisma.StringNullableFilter<"Email"> | string | null toEmail?: Prisma.StringFilter<"Email"> | string toName?: Prisma.StringNullableFilter<"Email"> | string | null textBody?: Prisma.StringFilter<"Email"> | string htmlBody?: Prisma.StringFilter<"Email"> | string purpose?: Prisma.StringNullableFilter<"Email"> | string | null deliveryStatus?: Prisma.StringNullableFilter<"Email"> | string | null relatedKontaktId?: Prisma.StringNullableFilter<"Email"> | string | null relatedProjektId?: Prisma.StringNullableFilter<"Email"> | string | null tenantInboundAddress?: Prisma.XOR | null reads?: Prisma.EmailReadListRelationFilter attachments?: Prisma.EmailAttachmentListRelationFilter cc?: Prisma.EmailCcListRelationFilter }, "id" | "messageId"> export type EmailOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantInboundAddressId?: Prisma.SortOrderInput | Prisma.SortOrder messageId?: Prisma.SortOrder type?: Prisma.SortOrder date?: Prisma.SortOrder subject?: Prisma.SortOrder fromEmail?: Prisma.SortOrder fromName?: Prisma.SortOrderInput | Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrderInput | Prisma.SortOrder textBody?: Prisma.SortOrder htmlBody?: Prisma.SortOrder purpose?: Prisma.SortOrderInput | Prisma.SortOrder deliveryStatus?: Prisma.SortOrderInput | Prisma.SortOrder relatedKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder relatedProjektId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.EmailCountOrderByAggregateInput _max?: Prisma.EmailMaxOrderByAggregateInput _min?: Prisma.EmailMinOrderByAggregateInput } export type EmailScalarWhereWithAggregatesInput = { AND?: Prisma.EmailScalarWhereWithAggregatesInput | Prisma.EmailScalarWhereWithAggregatesInput[] OR?: Prisma.EmailScalarWhereWithAggregatesInput[] NOT?: Prisma.EmailScalarWhereWithAggregatesInput | Prisma.EmailScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"Email"> | string tenantInboundAddressId?: Prisma.StringNullableWithAggregatesFilter<"Email"> | string | null messageId?: Prisma.StringWithAggregatesFilter<"Email"> | string type?: Prisma.StringWithAggregatesFilter<"Email"> | string date?: Prisma.DateTimeWithAggregatesFilter<"Email"> | Date | string subject?: Prisma.StringWithAggregatesFilter<"Email"> | string fromEmail?: Prisma.StringWithAggregatesFilter<"Email"> | string fromName?: Prisma.StringNullableWithAggregatesFilter<"Email"> | string | null toEmail?: Prisma.StringWithAggregatesFilter<"Email"> | string toName?: Prisma.StringNullableWithAggregatesFilter<"Email"> | string | null textBody?: Prisma.StringWithAggregatesFilter<"Email"> | string htmlBody?: Prisma.StringWithAggregatesFilter<"Email"> | string purpose?: Prisma.StringNullableWithAggregatesFilter<"Email"> | string | null deliveryStatus?: Prisma.StringNullableWithAggregatesFilter<"Email"> | string | null relatedKontaktId?: Prisma.StringNullableWithAggregatesFilter<"Email"> | string | null relatedProjektId?: Prisma.StringNullableWithAggregatesFilter<"Email"> | string | null } export type EmailCreateInput = { id?: string messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null tenantInboundAddress?: Prisma.TenantInboundAddressCreateNestedOneWithoutEmailInput reads?: Prisma.EmailReadCreateNestedManyWithoutEmailInput attachments?: Prisma.EmailAttachmentCreateNestedManyWithoutEmailInput cc?: Prisma.EmailCcCreateNestedManyWithoutEmailInput } export type EmailUncheckedCreateInput = { id?: string tenantInboundAddressId?: string | null messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null reads?: Prisma.EmailReadUncheckedCreateNestedManyWithoutEmailInput attachments?: Prisma.EmailAttachmentUncheckedCreateNestedManyWithoutEmailInput cc?: Prisma.EmailCcUncheckedCreateNestedManyWithoutEmailInput } export type EmailUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantInboundAddress?: Prisma.TenantInboundAddressUpdateOneWithoutEmailNestedInput reads?: Prisma.EmailReadUpdateManyWithoutEmailNestedInput attachments?: Prisma.EmailAttachmentUpdateManyWithoutEmailNestedInput cc?: Prisma.EmailCcUpdateManyWithoutEmailNestedInput } export type EmailUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantInboundAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reads?: Prisma.EmailReadUncheckedUpdateManyWithoutEmailNestedInput attachments?: Prisma.EmailAttachmentUncheckedUpdateManyWithoutEmailNestedInput cc?: Prisma.EmailCcUncheckedUpdateManyWithoutEmailNestedInput } export type EmailCreateManyInput = { id?: string tenantInboundAddressId?: string | null messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null } export type EmailUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantInboundAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailListRelationFilter = { every?: Prisma.EmailWhereInput some?: Prisma.EmailWhereInput none?: Prisma.EmailWhereInput } export type EmailOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type EmailCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantInboundAddressId?: Prisma.SortOrder messageId?: Prisma.SortOrder type?: Prisma.SortOrder date?: Prisma.SortOrder subject?: Prisma.SortOrder fromEmail?: Prisma.SortOrder fromName?: Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrder textBody?: Prisma.SortOrder htmlBody?: Prisma.SortOrder purpose?: Prisma.SortOrder deliveryStatus?: Prisma.SortOrder relatedKontaktId?: Prisma.SortOrder relatedProjektId?: Prisma.SortOrder } export type EmailMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantInboundAddressId?: Prisma.SortOrder messageId?: Prisma.SortOrder type?: Prisma.SortOrder date?: Prisma.SortOrder subject?: Prisma.SortOrder fromEmail?: Prisma.SortOrder fromName?: Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrder textBody?: Prisma.SortOrder htmlBody?: Prisma.SortOrder purpose?: Prisma.SortOrder deliveryStatus?: Prisma.SortOrder relatedKontaktId?: Prisma.SortOrder relatedProjektId?: Prisma.SortOrder } export type EmailMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantInboundAddressId?: Prisma.SortOrder messageId?: Prisma.SortOrder type?: Prisma.SortOrder date?: Prisma.SortOrder subject?: Prisma.SortOrder fromEmail?: Prisma.SortOrder fromName?: Prisma.SortOrder toEmail?: Prisma.SortOrder toName?: Prisma.SortOrder textBody?: Prisma.SortOrder htmlBody?: Prisma.SortOrder purpose?: Prisma.SortOrder deliveryStatus?: Prisma.SortOrder relatedKontaktId?: Prisma.SortOrder relatedProjektId?: Prisma.SortOrder } export type EmailScalarRelationFilter = { is?: Prisma.EmailWhereInput isNot?: Prisma.EmailWhereInput } export type EmailCreateNestedManyWithoutTenantInboundAddressInput = { create?: Prisma.XOR | Prisma.EmailCreateWithoutTenantInboundAddressInput[] | Prisma.EmailUncheckedCreateWithoutTenantInboundAddressInput[] connectOrCreate?: Prisma.EmailCreateOrConnectWithoutTenantInboundAddressInput | Prisma.EmailCreateOrConnectWithoutTenantInboundAddressInput[] createMany?: Prisma.EmailCreateManyTenantInboundAddressInputEnvelope connect?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] } export type EmailUncheckedCreateNestedManyWithoutTenantInboundAddressInput = { create?: Prisma.XOR | Prisma.EmailCreateWithoutTenantInboundAddressInput[] | Prisma.EmailUncheckedCreateWithoutTenantInboundAddressInput[] connectOrCreate?: Prisma.EmailCreateOrConnectWithoutTenantInboundAddressInput | Prisma.EmailCreateOrConnectWithoutTenantInboundAddressInput[] createMany?: Prisma.EmailCreateManyTenantInboundAddressInputEnvelope connect?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] } export type EmailUpdateManyWithoutTenantInboundAddressNestedInput = { create?: Prisma.XOR | Prisma.EmailCreateWithoutTenantInboundAddressInput[] | Prisma.EmailUncheckedCreateWithoutTenantInboundAddressInput[] connectOrCreate?: Prisma.EmailCreateOrConnectWithoutTenantInboundAddressInput | Prisma.EmailCreateOrConnectWithoutTenantInboundAddressInput[] upsert?: Prisma.EmailUpsertWithWhereUniqueWithoutTenantInboundAddressInput | Prisma.EmailUpsertWithWhereUniqueWithoutTenantInboundAddressInput[] createMany?: Prisma.EmailCreateManyTenantInboundAddressInputEnvelope set?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] disconnect?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] delete?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] connect?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] update?: Prisma.EmailUpdateWithWhereUniqueWithoutTenantInboundAddressInput | Prisma.EmailUpdateWithWhereUniqueWithoutTenantInboundAddressInput[] updateMany?: Prisma.EmailUpdateManyWithWhereWithoutTenantInboundAddressInput | Prisma.EmailUpdateManyWithWhereWithoutTenantInboundAddressInput[] deleteMany?: Prisma.EmailScalarWhereInput | Prisma.EmailScalarWhereInput[] } export type EmailUncheckedUpdateManyWithoutTenantInboundAddressNestedInput = { create?: Prisma.XOR | Prisma.EmailCreateWithoutTenantInboundAddressInput[] | Prisma.EmailUncheckedCreateWithoutTenantInboundAddressInput[] connectOrCreate?: Prisma.EmailCreateOrConnectWithoutTenantInboundAddressInput | Prisma.EmailCreateOrConnectWithoutTenantInboundAddressInput[] upsert?: Prisma.EmailUpsertWithWhereUniqueWithoutTenantInboundAddressInput | Prisma.EmailUpsertWithWhereUniqueWithoutTenantInboundAddressInput[] createMany?: Prisma.EmailCreateManyTenantInboundAddressInputEnvelope set?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] disconnect?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] delete?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] connect?: Prisma.EmailWhereUniqueInput | Prisma.EmailWhereUniqueInput[] update?: Prisma.EmailUpdateWithWhereUniqueWithoutTenantInboundAddressInput | Prisma.EmailUpdateWithWhereUniqueWithoutTenantInboundAddressInput[] updateMany?: Prisma.EmailUpdateManyWithWhereWithoutTenantInboundAddressInput | Prisma.EmailUpdateManyWithWhereWithoutTenantInboundAddressInput[] deleteMany?: Prisma.EmailScalarWhereInput | Prisma.EmailScalarWhereInput[] } export type EmailCreateNestedOneWithoutReadsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EmailCreateOrConnectWithoutReadsInput connect?: Prisma.EmailWhereUniqueInput } export type EmailUpdateOneRequiredWithoutReadsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EmailCreateOrConnectWithoutReadsInput upsert?: Prisma.EmailUpsertWithoutReadsInput connect?: Prisma.EmailWhereUniqueInput update?: Prisma.XOR, Prisma.EmailUncheckedUpdateWithoutReadsInput> } export type EmailCreateNestedOneWithoutCcInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EmailCreateOrConnectWithoutCcInput connect?: Prisma.EmailWhereUniqueInput } export type EmailUpdateOneRequiredWithoutCcNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EmailCreateOrConnectWithoutCcInput upsert?: Prisma.EmailUpsertWithoutCcInput connect?: Prisma.EmailWhereUniqueInput update?: Prisma.XOR, Prisma.EmailUncheckedUpdateWithoutCcInput> } export type EmailCreateNestedOneWithoutAttachmentsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EmailCreateOrConnectWithoutAttachmentsInput connect?: Prisma.EmailWhereUniqueInput } export type EmailUpdateOneRequiredWithoutAttachmentsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.EmailCreateOrConnectWithoutAttachmentsInput upsert?: Prisma.EmailUpsertWithoutAttachmentsInput connect?: Prisma.EmailWhereUniqueInput update?: Prisma.XOR, Prisma.EmailUncheckedUpdateWithoutAttachmentsInput> } export type EmailCreateWithoutTenantInboundAddressInput = { id?: string messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null reads?: Prisma.EmailReadCreateNestedManyWithoutEmailInput attachments?: Prisma.EmailAttachmentCreateNestedManyWithoutEmailInput cc?: Prisma.EmailCcCreateNestedManyWithoutEmailInput } export type EmailUncheckedCreateWithoutTenantInboundAddressInput = { id?: string messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null reads?: Prisma.EmailReadUncheckedCreateNestedManyWithoutEmailInput attachments?: Prisma.EmailAttachmentUncheckedCreateNestedManyWithoutEmailInput cc?: Prisma.EmailCcUncheckedCreateNestedManyWithoutEmailInput } export type EmailCreateOrConnectWithoutTenantInboundAddressInput = { where: Prisma.EmailWhereUniqueInput create: Prisma.XOR } export type EmailCreateManyTenantInboundAddressInputEnvelope = { data: Prisma.EmailCreateManyTenantInboundAddressInput | Prisma.EmailCreateManyTenantInboundAddressInput[] skipDuplicates?: boolean } export type EmailUpsertWithWhereUniqueWithoutTenantInboundAddressInput = { where: Prisma.EmailWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type EmailUpdateWithWhereUniqueWithoutTenantInboundAddressInput = { where: Prisma.EmailWhereUniqueInput data: Prisma.XOR } export type EmailUpdateManyWithWhereWithoutTenantInboundAddressInput = { where: Prisma.EmailScalarWhereInput data: Prisma.XOR } export type EmailScalarWhereInput = { AND?: Prisma.EmailScalarWhereInput | Prisma.EmailScalarWhereInput[] OR?: Prisma.EmailScalarWhereInput[] NOT?: Prisma.EmailScalarWhereInput | Prisma.EmailScalarWhereInput[] id?: Prisma.StringFilter<"Email"> | string tenantInboundAddressId?: Prisma.StringNullableFilter<"Email"> | string | null messageId?: Prisma.StringFilter<"Email"> | string type?: Prisma.StringFilter<"Email"> | string date?: Prisma.DateTimeFilter<"Email"> | Date | string subject?: Prisma.StringFilter<"Email"> | string fromEmail?: Prisma.StringFilter<"Email"> | string fromName?: Prisma.StringNullableFilter<"Email"> | string | null toEmail?: Prisma.StringFilter<"Email"> | string toName?: Prisma.StringNullableFilter<"Email"> | string | null textBody?: Prisma.StringFilter<"Email"> | string htmlBody?: Prisma.StringFilter<"Email"> | string purpose?: Prisma.StringNullableFilter<"Email"> | string | null deliveryStatus?: Prisma.StringNullableFilter<"Email"> | string | null relatedKontaktId?: Prisma.StringNullableFilter<"Email"> | string | null relatedProjektId?: Prisma.StringNullableFilter<"Email"> | string | null } export type EmailCreateWithoutReadsInput = { id?: string messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null tenantInboundAddress?: Prisma.TenantInboundAddressCreateNestedOneWithoutEmailInput attachments?: Prisma.EmailAttachmentCreateNestedManyWithoutEmailInput cc?: Prisma.EmailCcCreateNestedManyWithoutEmailInput } export type EmailUncheckedCreateWithoutReadsInput = { id?: string tenantInboundAddressId?: string | null messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null attachments?: Prisma.EmailAttachmentUncheckedCreateNestedManyWithoutEmailInput cc?: Prisma.EmailCcUncheckedCreateNestedManyWithoutEmailInput } export type EmailCreateOrConnectWithoutReadsInput = { where: Prisma.EmailWhereUniqueInput create: Prisma.XOR } export type EmailUpsertWithoutReadsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.EmailWhereInput } export type EmailUpdateToOneWithWhereWithoutReadsInput = { where?: Prisma.EmailWhereInput data: Prisma.XOR } export type EmailUpdateWithoutReadsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantInboundAddress?: Prisma.TenantInboundAddressUpdateOneWithoutEmailNestedInput attachments?: Prisma.EmailAttachmentUpdateManyWithoutEmailNestedInput cc?: Prisma.EmailCcUpdateManyWithoutEmailNestedInput } export type EmailUncheckedUpdateWithoutReadsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantInboundAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null attachments?: Prisma.EmailAttachmentUncheckedUpdateManyWithoutEmailNestedInput cc?: Prisma.EmailCcUncheckedUpdateManyWithoutEmailNestedInput } export type EmailCreateWithoutCcInput = { id?: string messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null tenantInboundAddress?: Prisma.TenantInboundAddressCreateNestedOneWithoutEmailInput reads?: Prisma.EmailReadCreateNestedManyWithoutEmailInput attachments?: Prisma.EmailAttachmentCreateNestedManyWithoutEmailInput } export type EmailUncheckedCreateWithoutCcInput = { id?: string tenantInboundAddressId?: string | null messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null reads?: Prisma.EmailReadUncheckedCreateNestedManyWithoutEmailInput attachments?: Prisma.EmailAttachmentUncheckedCreateNestedManyWithoutEmailInput } export type EmailCreateOrConnectWithoutCcInput = { where: Prisma.EmailWhereUniqueInput create: Prisma.XOR } export type EmailUpsertWithoutCcInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.EmailWhereInput } export type EmailUpdateToOneWithWhereWithoutCcInput = { where?: Prisma.EmailWhereInput data: Prisma.XOR } export type EmailUpdateWithoutCcInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantInboundAddress?: Prisma.TenantInboundAddressUpdateOneWithoutEmailNestedInput reads?: Prisma.EmailReadUpdateManyWithoutEmailNestedInput attachments?: Prisma.EmailAttachmentUpdateManyWithoutEmailNestedInput } export type EmailUncheckedUpdateWithoutCcInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantInboundAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reads?: Prisma.EmailReadUncheckedUpdateManyWithoutEmailNestedInput attachments?: Prisma.EmailAttachmentUncheckedUpdateManyWithoutEmailNestedInput } export type EmailCreateWithoutAttachmentsInput = { id?: string messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null tenantInboundAddress?: Prisma.TenantInboundAddressCreateNestedOneWithoutEmailInput reads?: Prisma.EmailReadCreateNestedManyWithoutEmailInput cc?: Prisma.EmailCcCreateNestedManyWithoutEmailInput } export type EmailUncheckedCreateWithoutAttachmentsInput = { id?: string tenantInboundAddressId?: string | null messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null reads?: Prisma.EmailReadUncheckedCreateNestedManyWithoutEmailInput cc?: Prisma.EmailCcUncheckedCreateNestedManyWithoutEmailInput } export type EmailCreateOrConnectWithoutAttachmentsInput = { where: Prisma.EmailWhereUniqueInput create: Prisma.XOR } export type EmailUpsertWithoutAttachmentsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.EmailWhereInput } export type EmailUpdateToOneWithWhereWithoutAttachmentsInput = { where?: Prisma.EmailWhereInput data: Prisma.XOR } export type EmailUpdateWithoutAttachmentsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null tenantInboundAddress?: Prisma.TenantInboundAddressUpdateOneWithoutEmailNestedInput reads?: Prisma.EmailReadUpdateManyWithoutEmailNestedInput cc?: Prisma.EmailCcUpdateManyWithoutEmailNestedInput } export type EmailUncheckedUpdateWithoutAttachmentsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantInboundAddressId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reads?: Prisma.EmailReadUncheckedUpdateManyWithoutEmailNestedInput cc?: Prisma.EmailCcUncheckedUpdateManyWithoutEmailNestedInput } export type EmailCreateManyTenantInboundAddressInput = { id?: string messageId: string type: string date: Date | string subject: string fromEmail: string fromName?: string | null toEmail: string toName?: string | null textBody: string htmlBody: string purpose?: string | null deliveryStatus?: string | null relatedKontaktId?: string | null relatedProjektId?: string | null } export type EmailUpdateWithoutTenantInboundAddressInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reads?: Prisma.EmailReadUpdateManyWithoutEmailNestedInput attachments?: Prisma.EmailAttachmentUpdateManyWithoutEmailNestedInput cc?: Prisma.EmailCcUpdateManyWithoutEmailNestedInput } export type EmailUncheckedUpdateWithoutTenantInboundAddressInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null reads?: Prisma.EmailReadUncheckedUpdateManyWithoutEmailNestedInput attachments?: Prisma.EmailAttachmentUncheckedUpdateManyWithoutEmailNestedInput cc?: Prisma.EmailCcUncheckedUpdateManyWithoutEmailNestedInput } export type EmailUncheckedUpdateManyWithoutTenantInboundAddressInput = { id?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string date?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string subject?: Prisma.StringFieldUpdateOperationsInput | string fromEmail?: Prisma.StringFieldUpdateOperationsInput | string fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null toEmail?: Prisma.StringFieldUpdateOperationsInput | string toName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null textBody?: Prisma.StringFieldUpdateOperationsInput | string htmlBody?: Prisma.StringFieldUpdateOperationsInput | string purpose?: Prisma.NullableStringFieldUpdateOperationsInput | string | null deliveryStatus?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null relatedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type EmailCountOutputType */ export type EmailCountOutputType = { reads: number attachments: number cc: number } export type EmailCountOutputTypeSelect = { reads?: boolean | EmailCountOutputTypeCountReadsArgs attachments?: boolean | EmailCountOutputTypeCountAttachmentsArgs cc?: boolean | EmailCountOutputTypeCountCcArgs } /** * EmailCountOutputType without action */ export type EmailCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the EmailCountOutputType */ select?: Prisma.EmailCountOutputTypeSelect | null } /** * EmailCountOutputType without action */ export type EmailCountOutputTypeCountReadsArgs = { where?: Prisma.EmailReadWhereInput } /** * EmailCountOutputType without action */ export type EmailCountOutputTypeCountAttachmentsArgs = { where?: Prisma.EmailAttachmentWhereInput } /** * EmailCountOutputType without action */ export type EmailCountOutputTypeCountCcArgs = { where?: Prisma.EmailCcWhereInput } export type EmailSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantInboundAddressId?: boolean messageId?: boolean type?: boolean date?: boolean subject?: boolean fromEmail?: boolean fromName?: boolean toEmail?: boolean toName?: boolean textBody?: boolean htmlBody?: boolean purpose?: boolean deliveryStatus?: boolean relatedKontaktId?: boolean relatedProjektId?: boolean tenantInboundAddress?: boolean | Prisma.Email$tenantInboundAddressArgs reads?: boolean | Prisma.Email$readsArgs attachments?: boolean | Prisma.Email$attachmentsArgs cc?: boolean | Prisma.Email$ccArgs _count?: boolean | Prisma.EmailCountOutputTypeDefaultArgs }, ExtArgs["result"]["email"]> export type EmailSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantInboundAddressId?: boolean messageId?: boolean type?: boolean date?: boolean subject?: boolean fromEmail?: boolean fromName?: boolean toEmail?: boolean toName?: boolean textBody?: boolean htmlBody?: boolean purpose?: boolean deliveryStatus?: boolean relatedKontaktId?: boolean relatedProjektId?: boolean tenantInboundAddress?: boolean | Prisma.Email$tenantInboundAddressArgs }, ExtArgs["result"]["email"]> export type EmailSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantInboundAddressId?: boolean messageId?: boolean type?: boolean date?: boolean subject?: boolean fromEmail?: boolean fromName?: boolean toEmail?: boolean toName?: boolean textBody?: boolean htmlBody?: boolean purpose?: boolean deliveryStatus?: boolean relatedKontaktId?: boolean relatedProjektId?: boolean tenantInboundAddress?: boolean | Prisma.Email$tenantInboundAddressArgs }, ExtArgs["result"]["email"]> export type EmailSelectScalar = { id?: boolean tenantInboundAddressId?: boolean messageId?: boolean type?: boolean date?: boolean subject?: boolean fromEmail?: boolean fromName?: boolean toEmail?: boolean toName?: boolean textBody?: boolean htmlBody?: boolean purpose?: boolean deliveryStatus?: boolean relatedKontaktId?: boolean relatedProjektId?: boolean } export type EmailOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantInboundAddressId" | "messageId" | "type" | "date" | "subject" | "fromEmail" | "fromName" | "toEmail" | "toName" | "textBody" | "htmlBody" | "purpose" | "deliveryStatus" | "relatedKontaktId" | "relatedProjektId", ExtArgs["result"]["email"]> export type EmailInclude = { tenantInboundAddress?: boolean | Prisma.Email$tenantInboundAddressArgs reads?: boolean | Prisma.Email$readsArgs attachments?: boolean | Prisma.Email$attachmentsArgs cc?: boolean | Prisma.Email$ccArgs _count?: boolean | Prisma.EmailCountOutputTypeDefaultArgs } export type EmailIncludeCreateManyAndReturn = { tenantInboundAddress?: boolean | Prisma.Email$tenantInboundAddressArgs } export type EmailIncludeUpdateManyAndReturn = { tenantInboundAddress?: boolean | Prisma.Email$tenantInboundAddressArgs } export type $EmailPayload = { name: "Email" objects: { tenantInboundAddress: Prisma.$TenantInboundAddressPayload | null reads: Prisma.$EmailReadPayload[] attachments: Prisma.$EmailAttachmentPayload[] cc: Prisma.$EmailCcPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantInboundAddressId: string | null messageId: string type: string date: Date subject: string fromEmail: string fromName: string | null toEmail: string toName: string | null textBody: string htmlBody: string purpose: string | null deliveryStatus: string | null relatedKontaktId: string | null relatedProjektId: string | null }, ExtArgs["result"]["email"]> composites: {} } export type EmailGetPayload = runtime.Types.Result.GetResult export type EmailCountArgs = Omit & { select?: EmailCountAggregateInputType | true } export interface EmailDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Email'], meta: { name: 'Email' } } /** * Find zero or one Email that matches the filter. * @param {EmailFindUniqueArgs} args - Arguments to find a Email * @example * // Get one Email * const email = await prisma.email.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EmailClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Email that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EmailFindUniqueOrThrowArgs} args - Arguments to find a Email * @example * // Get one Email * const email = await prisma.email.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EmailClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Email 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 {EmailFindFirstArgs} args - Arguments to find a Email * @example * // Get one Email * const email = await prisma.email.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Email 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 {EmailFindFirstOrThrowArgs} args - Arguments to find a Email * @example * // Get one Email * const email = await prisma.email.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Emails 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 {EmailFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Emails * const emails = await prisma.email.findMany() * * // Get first 10 Emails * const emails = await prisma.email.findMany({ take: 10 }) * * // Only select the `id` * const emailWithIdOnly = await prisma.email.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Email. * @param {EmailCreateArgs} args - Arguments to create a Email. * @example * // Create one Email * const Email = await prisma.email.create({ * data: { * // ... data to create a Email * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EmailClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Emails. * @param {EmailCreateManyArgs} args - Arguments to create many Emails. * @example * // Create many Emails * const email = await prisma.email.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Emails and returns the data saved in the database. * @param {EmailCreateManyAndReturnArgs} args - Arguments to create many Emails. * @example * // Create many Emails * const email = await prisma.email.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Emails and only return the `id` * const emailWithIdOnly = await prisma.email.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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> /** * Delete a Email. * @param {EmailDeleteArgs} args - Arguments to delete one Email. * @example * // Delete one Email * const Email = await prisma.email.delete({ * where: { * // ... filter to delete one Email * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EmailClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Email. * @param {EmailUpdateArgs} args - Arguments to update one Email. * @example * // Update one Email * const email = await prisma.email.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EmailClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Emails. * @param {EmailDeleteManyArgs} args - Arguments to filter Emails to delete. * @example * // Delete a few Emails * const { count } = await prisma.email.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Emails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Emails * const email = await prisma.email.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Emails and returns the data updated in the database. * @param {EmailUpdateManyAndReturnArgs} args - Arguments to update many Emails. * @example * // Update many Emails * const email = await prisma.email.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Emails and only return the `id` * const emailWithIdOnly = await prisma.email.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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> /** * Create or update one Email. * @param {EmailUpsertArgs} args - Arguments to update or create a Email. * @example * // Update or create a Email * const email = await prisma.email.upsert({ * create: { * // ... data to create a Email * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Email we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EmailClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Emails. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailCountArgs} args - Arguments to filter Emails to count. * @example * // Count the number of Emails * const count = await prisma.email.count({ * where: { * // ... the filter for the Emails we want to count * } * }) **/ count( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : number > /** * Allows you to perform aggregations operations on a Email. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailAggregateArgs} 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * Group by Email. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailGroupByArgs} 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 EmailGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EmailGroupByArgs['orderBy'] } : { orderBy?: EmailGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetEmailGroupByPayload : Prisma.PrismaPromise /** * Fields of the Email model */ readonly fields: EmailFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Email. * 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__EmailClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" tenantInboundAddress = {}>(args?: Prisma.Subset>): Prisma.Prisma__TenantInboundAddressClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> reads = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> attachments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> cc = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * Fields of the Email model */ export interface EmailFieldRefs { readonly id: Prisma.FieldRef<"Email", 'String'> readonly tenantInboundAddressId: Prisma.FieldRef<"Email", 'String'> readonly messageId: Prisma.FieldRef<"Email", 'String'> readonly type: Prisma.FieldRef<"Email", 'String'> readonly date: Prisma.FieldRef<"Email", 'DateTime'> readonly subject: Prisma.FieldRef<"Email", 'String'> readonly fromEmail: Prisma.FieldRef<"Email", 'String'> readonly fromName: Prisma.FieldRef<"Email", 'String'> readonly toEmail: Prisma.FieldRef<"Email", 'String'> readonly toName: Prisma.FieldRef<"Email", 'String'> readonly textBody: Prisma.FieldRef<"Email", 'String'> readonly htmlBody: Prisma.FieldRef<"Email", 'String'> readonly purpose: Prisma.FieldRef<"Email", 'String'> readonly deliveryStatus: Prisma.FieldRef<"Email", 'String'> readonly relatedKontaktId: Prisma.FieldRef<"Email", 'String'> readonly relatedProjektId: Prisma.FieldRef<"Email", 'String'> } // Custom InputTypes /** * Email findUnique */ export type EmailFindUniqueArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null /** * Filter, which Email to fetch. */ where: Prisma.EmailWhereUniqueInput } /** * Email findUniqueOrThrow */ export type EmailFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null /** * Filter, which Email to fetch. */ where: Prisma.EmailWhereUniqueInput } /** * Email findFirst */ export type EmailFindFirstArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null /** * Filter, which Email to fetch. */ where?: Prisma.EmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Emails to fetch. */ orderBy?: Prisma.EmailOrderByWithRelationInput | Prisma.EmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Emails. */ cursor?: Prisma.EmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Emails 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` Emails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Emails. */ distinct?: Prisma.EmailScalarFieldEnum | Prisma.EmailScalarFieldEnum[] } /** * Email findFirstOrThrow */ export type EmailFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null /** * Filter, which Email to fetch. */ where?: Prisma.EmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Emails to fetch. */ orderBy?: Prisma.EmailOrderByWithRelationInput | Prisma.EmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Emails. */ cursor?: Prisma.EmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Emails 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` Emails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Emails. */ distinct?: Prisma.EmailScalarFieldEnum | Prisma.EmailScalarFieldEnum[] } /** * Email findMany */ export type EmailFindManyArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null /** * Filter, which Emails to fetch. */ where?: Prisma.EmailWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Emails to fetch. */ orderBy?: Prisma.EmailOrderByWithRelationInput | Prisma.EmailOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Emails. */ cursor?: Prisma.EmailWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Emails 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` Emails. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Emails. */ distinct?: Prisma.EmailScalarFieldEnum | Prisma.EmailScalarFieldEnum[] } /** * Email create */ export type EmailCreateArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null /** * The data needed to create a Email. */ data: Prisma.XOR } /** * Email createMany */ export type EmailCreateManyArgs = { /** * The data used to create many Emails. */ data: Prisma.EmailCreateManyInput | Prisma.EmailCreateManyInput[] skipDuplicates?: boolean } /** * Email createManyAndReturn */ export type EmailCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelectCreateManyAndReturn | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * The data used to create many Emails. */ data: Prisma.EmailCreateManyInput | Prisma.EmailCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIncludeCreateManyAndReturn | null } /** * Email update */ export type EmailUpdateArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null /** * The data needed to update a Email. */ data: Prisma.XOR /** * Choose, which Email to update. */ where: Prisma.EmailWhereUniqueInput } /** * Email updateMany */ export type EmailUpdateManyArgs = { /** * The data used to update Emails. */ data: Prisma.XOR /** * Filter which Emails to update */ where?: Prisma.EmailWhereInput /** * Limit how many Emails to update. */ limit?: number } /** * Email updateManyAndReturn */ export type EmailUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelectUpdateManyAndReturn | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * The data used to update Emails. */ data: Prisma.XOR /** * Filter which Emails to update */ where?: Prisma.EmailWhereInput /** * Limit how many Emails to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailIncludeUpdateManyAndReturn | null } /** * Email upsert */ export type EmailUpsertArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null /** * The filter to search for the Email to update in case it exists. */ where: Prisma.EmailWhereUniqueInput /** * In case the Email found by the `where` argument doesn't exist, create a new Email with this data. */ create: Prisma.XOR /** * In case the Email was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Email delete */ export type EmailDeleteArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null /** * Filter which Email to delete. */ where: Prisma.EmailWhereUniqueInput } /** * Email deleteMany */ export type EmailDeleteManyArgs = { /** * Filter which Emails to delete */ where?: Prisma.EmailWhereInput /** * Limit how many Emails to delete. */ limit?: number } /** * Email.tenantInboundAddress */ export type Email$tenantInboundAddressArgs = { /** * Select specific fields to fetch from the TenantInboundAddress */ select?: Prisma.TenantInboundAddressSelect | null /** * Omit specific fields from the TenantInboundAddress */ omit?: Prisma.TenantInboundAddressOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TenantInboundAddressInclude | null where?: Prisma.TenantInboundAddressWhereInput } /** * Email.reads */ export type Email$readsArgs = { /** * Select specific fields to fetch from the EmailRead */ select?: Prisma.EmailReadSelect | null /** * Omit specific fields from the EmailRead */ omit?: Prisma.EmailReadOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailReadInclude | null where?: Prisma.EmailReadWhereInput orderBy?: Prisma.EmailReadOrderByWithRelationInput | Prisma.EmailReadOrderByWithRelationInput[] cursor?: Prisma.EmailReadWhereUniqueInput take?: number skip?: number distinct?: Prisma.EmailReadScalarFieldEnum | Prisma.EmailReadScalarFieldEnum[] } /** * Email.attachments */ export type Email$attachmentsArgs = { /** * Select specific fields to fetch from the EmailAttachment */ select?: Prisma.EmailAttachmentSelect | null /** * Omit specific fields from the EmailAttachment */ omit?: Prisma.EmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailAttachmentInclude | null where?: Prisma.EmailAttachmentWhereInput orderBy?: Prisma.EmailAttachmentOrderByWithRelationInput | Prisma.EmailAttachmentOrderByWithRelationInput[] cursor?: Prisma.EmailAttachmentWhereUniqueInput take?: number skip?: number distinct?: Prisma.EmailAttachmentScalarFieldEnum | Prisma.EmailAttachmentScalarFieldEnum[] } /** * Email.cc */ export type Email$ccArgs = { /** * Select specific fields to fetch from the EmailCc */ select?: Prisma.EmailCcSelect | null /** * Omit specific fields from the EmailCc */ omit?: Prisma.EmailCcOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailCcInclude | null where?: Prisma.EmailCcWhereInput orderBy?: Prisma.EmailCcOrderByWithRelationInput | Prisma.EmailCcOrderByWithRelationInput[] cursor?: Prisma.EmailCcWhereUniqueInput take?: number skip?: number distinct?: Prisma.EmailCcScalarFieldEnum | Prisma.EmailCcScalarFieldEnum[] } /** * Email without action */ export type EmailDefaultArgs = { /** * Select specific fields to fetch from the Email */ select?: Prisma.EmailSelect | null /** * Omit specific fields from the Email */ omit?: Prisma.EmailOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailInclude | null }