/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `EmailAttachment` 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 EmailAttachment * */ export type EmailAttachmentModel = runtime.Types.Result.DefaultSelection export type AggregateEmailAttachment = { _count: EmailAttachmentCountAggregateOutputType | null _avg: EmailAttachmentAvgAggregateOutputType | null _sum: EmailAttachmentSumAggregateOutputType | null _min: EmailAttachmentMinAggregateOutputType | null _max: EmailAttachmentMaxAggregateOutputType | null } export type EmailAttachmentAvgAggregateOutputType = { length: number | null } export type EmailAttachmentSumAggregateOutputType = { length: number | null } export type EmailAttachmentMinAggregateOutputType = { id: string | null emailId: string | null name: string | null type: string | null length: number | null content: string | null publicUrl: string | null storageBucket: string | null storageProvider: string | null } export type EmailAttachmentMaxAggregateOutputType = { id: string | null emailId: string | null name: string | null type: string | null length: number | null content: string | null publicUrl: string | null storageBucket: string | null storageProvider: string | null } export type EmailAttachmentCountAggregateOutputType = { id: number emailId: number name: number type: number length: number content: number publicUrl: number storageBucket: number storageProvider: number _all: number } export type EmailAttachmentAvgAggregateInputType = { length?: true } export type EmailAttachmentSumAggregateInputType = { length?: true } export type EmailAttachmentMinAggregateInputType = { id?: true emailId?: true name?: true type?: true length?: true content?: true publicUrl?: true storageBucket?: true storageProvider?: true } export type EmailAttachmentMaxAggregateInputType = { id?: true emailId?: true name?: true type?: true length?: true content?: true publicUrl?: true storageBucket?: true storageProvider?: true } export type EmailAttachmentCountAggregateInputType = { id?: true emailId?: true name?: true type?: true length?: true content?: true publicUrl?: true storageBucket?: true storageProvider?: true _all?: true } export type EmailAttachmentAggregateArgs = { /** * Filter which EmailAttachment to aggregate. */ where?: Prisma.EmailAttachmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailAttachments to fetch. */ orderBy?: Prisma.EmailAttachmentOrderByWithRelationInput | Prisma.EmailAttachmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.EmailAttachmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailAttachments 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` EmailAttachments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned EmailAttachments **/ _count?: true | EmailAttachmentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: EmailAttachmentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: EmailAttachmentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: EmailAttachmentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: EmailAttachmentMaxAggregateInputType } export type GetEmailAttachmentAggregateType = { [P in keyof T & keyof AggregateEmailAttachment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type EmailAttachmentGroupByArgs = { where?: Prisma.EmailAttachmentWhereInput orderBy?: Prisma.EmailAttachmentOrderByWithAggregationInput | Prisma.EmailAttachmentOrderByWithAggregationInput[] by: Prisma.EmailAttachmentScalarFieldEnum[] | Prisma.EmailAttachmentScalarFieldEnum having?: Prisma.EmailAttachmentScalarWhereWithAggregatesInput take?: number skip?: number _count?: EmailAttachmentCountAggregateInputType | true _avg?: EmailAttachmentAvgAggregateInputType _sum?: EmailAttachmentSumAggregateInputType _min?: EmailAttachmentMinAggregateInputType _max?: EmailAttachmentMaxAggregateInputType } export type EmailAttachmentGroupByOutputType = { id: string emailId: string name: string type: string length: number content: string publicUrl: string | null storageBucket: string | null storageProvider: string | null _count: EmailAttachmentCountAggregateOutputType | null _avg: EmailAttachmentAvgAggregateOutputType | null _sum: EmailAttachmentSumAggregateOutputType | null _min: EmailAttachmentMinAggregateOutputType | null _max: EmailAttachmentMaxAggregateOutputType | null } export type GetEmailAttachmentGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof EmailAttachmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type EmailAttachmentWhereInput = { AND?: Prisma.EmailAttachmentWhereInput | Prisma.EmailAttachmentWhereInput[] OR?: Prisma.EmailAttachmentWhereInput[] NOT?: Prisma.EmailAttachmentWhereInput | Prisma.EmailAttachmentWhereInput[] id?: Prisma.StringFilter<"EmailAttachment"> | string emailId?: Prisma.StringFilter<"EmailAttachment"> | string name?: Prisma.StringFilter<"EmailAttachment"> | string type?: Prisma.StringFilter<"EmailAttachment"> | string length?: Prisma.IntFilter<"EmailAttachment"> | number content?: Prisma.StringFilter<"EmailAttachment"> | string publicUrl?: Prisma.StringNullableFilter<"EmailAttachment"> | string | null storageBucket?: Prisma.StringNullableFilter<"EmailAttachment"> | string | null storageProvider?: Prisma.StringNullableFilter<"EmailAttachment"> | string | null email?: Prisma.XOR } export type EmailAttachmentOrderByWithRelationInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder length?: Prisma.SortOrder content?: Prisma.SortOrder publicUrl?: Prisma.SortOrderInput | Prisma.SortOrder storageBucket?: Prisma.SortOrderInput | Prisma.SortOrder storageProvider?: Prisma.SortOrderInput | Prisma.SortOrder email?: Prisma.EmailOrderByWithRelationInput } export type EmailAttachmentWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.EmailAttachmentWhereInput | Prisma.EmailAttachmentWhereInput[] OR?: Prisma.EmailAttachmentWhereInput[] NOT?: Prisma.EmailAttachmentWhereInput | Prisma.EmailAttachmentWhereInput[] emailId?: Prisma.StringFilter<"EmailAttachment"> | string name?: Prisma.StringFilter<"EmailAttachment"> | string type?: Prisma.StringFilter<"EmailAttachment"> | string length?: Prisma.IntFilter<"EmailAttachment"> | number content?: Prisma.StringFilter<"EmailAttachment"> | string publicUrl?: Prisma.StringNullableFilter<"EmailAttachment"> | string | null storageBucket?: Prisma.StringNullableFilter<"EmailAttachment"> | string | null storageProvider?: Prisma.StringNullableFilter<"EmailAttachment"> | string | null email?: Prisma.XOR }, "id"> export type EmailAttachmentOrderByWithAggregationInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder length?: Prisma.SortOrder content?: Prisma.SortOrder publicUrl?: Prisma.SortOrderInput | Prisma.SortOrder storageBucket?: Prisma.SortOrderInput | Prisma.SortOrder storageProvider?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.EmailAttachmentCountOrderByAggregateInput _avg?: Prisma.EmailAttachmentAvgOrderByAggregateInput _max?: Prisma.EmailAttachmentMaxOrderByAggregateInput _min?: Prisma.EmailAttachmentMinOrderByAggregateInput _sum?: Prisma.EmailAttachmentSumOrderByAggregateInput } export type EmailAttachmentScalarWhereWithAggregatesInput = { AND?: Prisma.EmailAttachmentScalarWhereWithAggregatesInput | Prisma.EmailAttachmentScalarWhereWithAggregatesInput[] OR?: Prisma.EmailAttachmentScalarWhereWithAggregatesInput[] NOT?: Prisma.EmailAttachmentScalarWhereWithAggregatesInput | Prisma.EmailAttachmentScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"EmailAttachment"> | string emailId?: Prisma.StringWithAggregatesFilter<"EmailAttachment"> | string name?: Prisma.StringWithAggregatesFilter<"EmailAttachment"> | string type?: Prisma.StringWithAggregatesFilter<"EmailAttachment"> | string length?: Prisma.IntWithAggregatesFilter<"EmailAttachment"> | number content?: Prisma.StringWithAggregatesFilter<"EmailAttachment"> | string publicUrl?: Prisma.StringNullableWithAggregatesFilter<"EmailAttachment"> | string | null storageBucket?: Prisma.StringNullableWithAggregatesFilter<"EmailAttachment"> | string | null storageProvider?: Prisma.StringNullableWithAggregatesFilter<"EmailAttachment"> | string | null } export type EmailAttachmentCreateInput = { id?: string name: string type: string length: number content: string publicUrl?: string | null storageBucket?: string | null storageProvider?: string | null email: Prisma.EmailCreateNestedOneWithoutAttachmentsInput } export type EmailAttachmentUncheckedCreateInput = { id?: string emailId: string name: string type: string length: number content: string publicUrl?: string | null storageBucket?: string | null storageProvider?: string | null } export type EmailAttachmentUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string length?: Prisma.IntFieldUpdateOperationsInput | number content?: Prisma.StringFieldUpdateOperationsInput | string publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageBucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null email?: Prisma.EmailUpdateOneRequiredWithoutAttachmentsNestedInput } export type EmailAttachmentUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string emailId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string length?: Prisma.IntFieldUpdateOperationsInput | number content?: Prisma.StringFieldUpdateOperationsInput | string publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageBucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailAttachmentCreateManyInput = { id?: string emailId: string name: string type: string length: number content: string publicUrl?: string | null storageBucket?: string | null storageProvider?: string | null } export type EmailAttachmentUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string length?: Prisma.IntFieldUpdateOperationsInput | number content?: Prisma.StringFieldUpdateOperationsInput | string publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageBucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailAttachmentUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string emailId?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string length?: Prisma.IntFieldUpdateOperationsInput | number content?: Prisma.StringFieldUpdateOperationsInput | string publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageBucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailAttachmentListRelationFilter = { every?: Prisma.EmailAttachmentWhereInput some?: Prisma.EmailAttachmentWhereInput none?: Prisma.EmailAttachmentWhereInput } export type EmailAttachmentOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type EmailAttachmentCountOrderByAggregateInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder length?: Prisma.SortOrder content?: Prisma.SortOrder publicUrl?: Prisma.SortOrder storageBucket?: Prisma.SortOrder storageProvider?: Prisma.SortOrder } export type EmailAttachmentAvgOrderByAggregateInput = { length?: Prisma.SortOrder } export type EmailAttachmentMaxOrderByAggregateInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder length?: Prisma.SortOrder content?: Prisma.SortOrder publicUrl?: Prisma.SortOrder storageBucket?: Prisma.SortOrder storageProvider?: Prisma.SortOrder } export type EmailAttachmentMinOrderByAggregateInput = { id?: Prisma.SortOrder emailId?: Prisma.SortOrder name?: Prisma.SortOrder type?: Prisma.SortOrder length?: Prisma.SortOrder content?: Prisma.SortOrder publicUrl?: Prisma.SortOrder storageBucket?: Prisma.SortOrder storageProvider?: Prisma.SortOrder } export type EmailAttachmentSumOrderByAggregateInput = { length?: Prisma.SortOrder } export type EmailAttachmentCreateNestedManyWithoutEmailInput = { create?: Prisma.XOR | Prisma.EmailAttachmentCreateWithoutEmailInput[] | Prisma.EmailAttachmentUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailAttachmentCreateOrConnectWithoutEmailInput | Prisma.EmailAttachmentCreateOrConnectWithoutEmailInput[] createMany?: Prisma.EmailAttachmentCreateManyEmailInputEnvelope connect?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] } export type EmailAttachmentUncheckedCreateNestedManyWithoutEmailInput = { create?: Prisma.XOR | Prisma.EmailAttachmentCreateWithoutEmailInput[] | Prisma.EmailAttachmentUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailAttachmentCreateOrConnectWithoutEmailInput | Prisma.EmailAttachmentCreateOrConnectWithoutEmailInput[] createMany?: Prisma.EmailAttachmentCreateManyEmailInputEnvelope connect?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] } export type EmailAttachmentUpdateManyWithoutEmailNestedInput = { create?: Prisma.XOR | Prisma.EmailAttachmentCreateWithoutEmailInput[] | Prisma.EmailAttachmentUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailAttachmentCreateOrConnectWithoutEmailInput | Prisma.EmailAttachmentCreateOrConnectWithoutEmailInput[] upsert?: Prisma.EmailAttachmentUpsertWithWhereUniqueWithoutEmailInput | Prisma.EmailAttachmentUpsertWithWhereUniqueWithoutEmailInput[] createMany?: Prisma.EmailAttachmentCreateManyEmailInputEnvelope set?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] disconnect?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] delete?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] connect?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] update?: Prisma.EmailAttachmentUpdateWithWhereUniqueWithoutEmailInput | Prisma.EmailAttachmentUpdateWithWhereUniqueWithoutEmailInput[] updateMany?: Prisma.EmailAttachmentUpdateManyWithWhereWithoutEmailInput | Prisma.EmailAttachmentUpdateManyWithWhereWithoutEmailInput[] deleteMany?: Prisma.EmailAttachmentScalarWhereInput | Prisma.EmailAttachmentScalarWhereInput[] } export type EmailAttachmentUncheckedUpdateManyWithoutEmailNestedInput = { create?: Prisma.XOR | Prisma.EmailAttachmentCreateWithoutEmailInput[] | Prisma.EmailAttachmentUncheckedCreateWithoutEmailInput[] connectOrCreate?: Prisma.EmailAttachmentCreateOrConnectWithoutEmailInput | Prisma.EmailAttachmentCreateOrConnectWithoutEmailInput[] upsert?: Prisma.EmailAttachmentUpsertWithWhereUniqueWithoutEmailInput | Prisma.EmailAttachmentUpsertWithWhereUniqueWithoutEmailInput[] createMany?: Prisma.EmailAttachmentCreateManyEmailInputEnvelope set?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] disconnect?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] delete?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] connect?: Prisma.EmailAttachmentWhereUniqueInput | Prisma.EmailAttachmentWhereUniqueInput[] update?: Prisma.EmailAttachmentUpdateWithWhereUniqueWithoutEmailInput | Prisma.EmailAttachmentUpdateWithWhereUniqueWithoutEmailInput[] updateMany?: Prisma.EmailAttachmentUpdateManyWithWhereWithoutEmailInput | Prisma.EmailAttachmentUpdateManyWithWhereWithoutEmailInput[] deleteMany?: Prisma.EmailAttachmentScalarWhereInput | Prisma.EmailAttachmentScalarWhereInput[] } export type EmailAttachmentCreateWithoutEmailInput = { id?: string name: string type: string length: number content: string publicUrl?: string | null storageBucket?: string | null storageProvider?: string | null } export type EmailAttachmentUncheckedCreateWithoutEmailInput = { id?: string name: string type: string length: number content: string publicUrl?: string | null storageBucket?: string | null storageProvider?: string | null } export type EmailAttachmentCreateOrConnectWithoutEmailInput = { where: Prisma.EmailAttachmentWhereUniqueInput create: Prisma.XOR } export type EmailAttachmentCreateManyEmailInputEnvelope = { data: Prisma.EmailAttachmentCreateManyEmailInput | Prisma.EmailAttachmentCreateManyEmailInput[] skipDuplicates?: boolean } export type EmailAttachmentUpsertWithWhereUniqueWithoutEmailInput = { where: Prisma.EmailAttachmentWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type EmailAttachmentUpdateWithWhereUniqueWithoutEmailInput = { where: Prisma.EmailAttachmentWhereUniqueInput data: Prisma.XOR } export type EmailAttachmentUpdateManyWithWhereWithoutEmailInput = { where: Prisma.EmailAttachmentScalarWhereInput data: Prisma.XOR } export type EmailAttachmentScalarWhereInput = { AND?: Prisma.EmailAttachmentScalarWhereInput | Prisma.EmailAttachmentScalarWhereInput[] OR?: Prisma.EmailAttachmentScalarWhereInput[] NOT?: Prisma.EmailAttachmentScalarWhereInput | Prisma.EmailAttachmentScalarWhereInput[] id?: Prisma.StringFilter<"EmailAttachment"> | string emailId?: Prisma.StringFilter<"EmailAttachment"> | string name?: Prisma.StringFilter<"EmailAttachment"> | string type?: Prisma.StringFilter<"EmailAttachment"> | string length?: Prisma.IntFilter<"EmailAttachment"> | number content?: Prisma.StringFilter<"EmailAttachment"> | string publicUrl?: Prisma.StringNullableFilter<"EmailAttachment"> | string | null storageBucket?: Prisma.StringNullableFilter<"EmailAttachment"> | string | null storageProvider?: Prisma.StringNullableFilter<"EmailAttachment"> | string | null } export type EmailAttachmentCreateManyEmailInput = { id?: string name: string type: string length: number content: string publicUrl?: string | null storageBucket?: string | null storageProvider?: string | null } export type EmailAttachmentUpdateWithoutEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string length?: Prisma.IntFieldUpdateOperationsInput | number content?: Prisma.StringFieldUpdateOperationsInput | string publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageBucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailAttachmentUncheckedUpdateWithoutEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string length?: Prisma.IntFieldUpdateOperationsInput | number content?: Prisma.StringFieldUpdateOperationsInput | string publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageBucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailAttachmentUncheckedUpdateManyWithoutEmailInput = { id?: Prisma.StringFieldUpdateOperationsInput | string name?: Prisma.StringFieldUpdateOperationsInput | string type?: Prisma.StringFieldUpdateOperationsInput | string length?: Prisma.IntFieldUpdateOperationsInput | number content?: Prisma.StringFieldUpdateOperationsInput | string publicUrl?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageBucket?: Prisma.NullableStringFieldUpdateOperationsInput | string | null storageProvider?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type EmailAttachmentSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean emailId?: boolean name?: boolean type?: boolean length?: boolean content?: boolean publicUrl?: boolean storageBucket?: boolean storageProvider?: boolean email?: boolean | Prisma.EmailDefaultArgs }, ExtArgs["result"]["emailAttachment"]> export type EmailAttachmentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean emailId?: boolean name?: boolean type?: boolean length?: boolean content?: boolean publicUrl?: boolean storageBucket?: boolean storageProvider?: boolean email?: boolean | Prisma.EmailDefaultArgs }, ExtArgs["result"]["emailAttachment"]> export type EmailAttachmentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean emailId?: boolean name?: boolean type?: boolean length?: boolean content?: boolean publicUrl?: boolean storageBucket?: boolean storageProvider?: boolean email?: boolean | Prisma.EmailDefaultArgs }, ExtArgs["result"]["emailAttachment"]> export type EmailAttachmentSelectScalar = { id?: boolean emailId?: boolean name?: boolean type?: boolean length?: boolean content?: boolean publicUrl?: boolean storageBucket?: boolean storageProvider?: boolean } export type EmailAttachmentOmit = runtime.Types.Extensions.GetOmit<"id" | "emailId" | "name" | "type" | "length" | "content" | "publicUrl" | "storageBucket" | "storageProvider", ExtArgs["result"]["emailAttachment"]> export type EmailAttachmentInclude = { email?: boolean | Prisma.EmailDefaultArgs } export type EmailAttachmentIncludeCreateManyAndReturn = { email?: boolean | Prisma.EmailDefaultArgs } export type EmailAttachmentIncludeUpdateManyAndReturn = { email?: boolean | Prisma.EmailDefaultArgs } export type $EmailAttachmentPayload = { name: "EmailAttachment" objects: { email: Prisma.$EmailPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string emailId: string name: string type: string length: number content: string publicUrl: string | null storageBucket: string | null storageProvider: string | null }, ExtArgs["result"]["emailAttachment"]> composites: {} } export type EmailAttachmentGetPayload = runtime.Types.Result.GetResult export type EmailAttachmentCountArgs = Omit & { select?: EmailAttachmentCountAggregateInputType | true } export interface EmailAttachmentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['EmailAttachment'], meta: { name: 'EmailAttachment' } } /** * Find zero or one EmailAttachment that matches the filter. * @param {EmailAttachmentFindUniqueArgs} args - Arguments to find a EmailAttachment * @example * // Get one EmailAttachment * const emailAttachment = await prisma.emailAttachment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__EmailAttachmentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one EmailAttachment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {EmailAttachmentFindUniqueOrThrowArgs} args - Arguments to find a EmailAttachment * @example * // Get one EmailAttachment * const emailAttachment = await prisma.emailAttachment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__EmailAttachmentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first EmailAttachment 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 {EmailAttachmentFindFirstArgs} args - Arguments to find a EmailAttachment * @example * // Get one EmailAttachment * const emailAttachment = await prisma.emailAttachment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailAttachmentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first EmailAttachment 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 {EmailAttachmentFindFirstOrThrowArgs} args - Arguments to find a EmailAttachment * @example * // Get one EmailAttachment * const emailAttachment = await prisma.emailAttachment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__EmailAttachmentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more EmailAttachments 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 {EmailAttachmentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all EmailAttachments * const emailAttachments = await prisma.emailAttachment.findMany() * * // Get first 10 EmailAttachments * const emailAttachments = await prisma.emailAttachment.findMany({ take: 10 }) * * // Only select the `id` * const emailAttachmentWithIdOnly = await prisma.emailAttachment.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a EmailAttachment. * @param {EmailAttachmentCreateArgs} args - Arguments to create a EmailAttachment. * @example * // Create one EmailAttachment * const EmailAttachment = await prisma.emailAttachment.create({ * data: { * // ... data to create a EmailAttachment * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__EmailAttachmentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many EmailAttachments. * @param {EmailAttachmentCreateManyArgs} args - Arguments to create many EmailAttachments. * @example * // Create many EmailAttachments * const emailAttachment = await prisma.emailAttachment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many EmailAttachments and returns the data saved in the database. * @param {EmailAttachmentCreateManyAndReturnArgs} args - Arguments to create many EmailAttachments. * @example * // Create many EmailAttachments * const emailAttachment = await prisma.emailAttachment.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many EmailAttachments and only return the `id` * const emailAttachmentWithIdOnly = await prisma.emailAttachment.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 EmailAttachment. * @param {EmailAttachmentDeleteArgs} args - Arguments to delete one EmailAttachment. * @example * // Delete one EmailAttachment * const EmailAttachment = await prisma.emailAttachment.delete({ * where: { * // ... filter to delete one EmailAttachment * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__EmailAttachmentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one EmailAttachment. * @param {EmailAttachmentUpdateArgs} args - Arguments to update one EmailAttachment. * @example * // Update one EmailAttachment * const emailAttachment = await prisma.emailAttachment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__EmailAttachmentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more EmailAttachments. * @param {EmailAttachmentDeleteManyArgs} args - Arguments to filter EmailAttachments to delete. * @example * // Delete a few EmailAttachments * const { count } = await prisma.emailAttachment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailAttachments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailAttachmentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many EmailAttachments * const emailAttachment = await prisma.emailAttachment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more EmailAttachments and returns the data updated in the database. * @param {EmailAttachmentUpdateManyAndReturnArgs} args - Arguments to update many EmailAttachments. * @example * // Update many EmailAttachments * const emailAttachment = await prisma.emailAttachment.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more EmailAttachments and only return the `id` * const emailAttachmentWithIdOnly = await prisma.emailAttachment.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 EmailAttachment. * @param {EmailAttachmentUpsertArgs} args - Arguments to update or create a EmailAttachment. * @example * // Update or create a EmailAttachment * const emailAttachment = await prisma.emailAttachment.upsert({ * create: { * // ... data to create a EmailAttachment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the EmailAttachment we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__EmailAttachmentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of EmailAttachments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailAttachmentCountArgs} args - Arguments to filter EmailAttachments to count. * @example * // Count the number of EmailAttachments * const count = await prisma.emailAttachment.count({ * where: { * // ... the filter for the EmailAttachments 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 EmailAttachment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailAttachmentAggregateArgs} 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 EmailAttachment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {EmailAttachmentGroupByArgs} 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 EmailAttachmentGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: EmailAttachmentGroupByArgs['orderBy'] } : { orderBy?: EmailAttachmentGroupByArgs['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 ? GetEmailAttachmentGroupByPayload : Prisma.PrismaPromise /** * Fields of the EmailAttachment model */ readonly fields: EmailAttachmentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for EmailAttachment. * 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__EmailAttachmentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" email = {}>(args?: Prisma.Subset>): Prisma.Prisma__EmailClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(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 EmailAttachment model */ export interface EmailAttachmentFieldRefs { readonly id: Prisma.FieldRef<"EmailAttachment", 'String'> readonly emailId: Prisma.FieldRef<"EmailAttachment", 'String'> readonly name: Prisma.FieldRef<"EmailAttachment", 'String'> readonly type: Prisma.FieldRef<"EmailAttachment", 'String'> readonly length: Prisma.FieldRef<"EmailAttachment", 'Int'> readonly content: Prisma.FieldRef<"EmailAttachment", 'String'> readonly publicUrl: Prisma.FieldRef<"EmailAttachment", 'String'> readonly storageBucket: Prisma.FieldRef<"EmailAttachment", 'String'> readonly storageProvider: Prisma.FieldRef<"EmailAttachment", 'String'> } // Custom InputTypes /** * EmailAttachment findUnique */ export type EmailAttachmentFindUniqueArgs = { /** * 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 /** * Filter, which EmailAttachment to fetch. */ where: Prisma.EmailAttachmentWhereUniqueInput } /** * EmailAttachment findUniqueOrThrow */ export type EmailAttachmentFindUniqueOrThrowArgs = { /** * 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 /** * Filter, which EmailAttachment to fetch. */ where: Prisma.EmailAttachmentWhereUniqueInput } /** * EmailAttachment findFirst */ export type EmailAttachmentFindFirstArgs = { /** * 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 /** * Filter, which EmailAttachment to fetch. */ where?: Prisma.EmailAttachmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailAttachments to fetch. */ orderBy?: Prisma.EmailAttachmentOrderByWithRelationInput | Prisma.EmailAttachmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailAttachments. */ cursor?: Prisma.EmailAttachmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailAttachments 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` EmailAttachments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailAttachments. */ distinct?: Prisma.EmailAttachmentScalarFieldEnum | Prisma.EmailAttachmentScalarFieldEnum[] } /** * EmailAttachment findFirstOrThrow */ export type EmailAttachmentFindFirstOrThrowArgs = { /** * 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 /** * Filter, which EmailAttachment to fetch. */ where?: Prisma.EmailAttachmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailAttachments to fetch. */ orderBy?: Prisma.EmailAttachmentOrderByWithRelationInput | Prisma.EmailAttachmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for EmailAttachments. */ cursor?: Prisma.EmailAttachmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailAttachments 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` EmailAttachments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailAttachments. */ distinct?: Prisma.EmailAttachmentScalarFieldEnum | Prisma.EmailAttachmentScalarFieldEnum[] } /** * EmailAttachment findMany */ export type EmailAttachmentFindManyArgs = { /** * 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 /** * Filter, which EmailAttachments to fetch. */ where?: Prisma.EmailAttachmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of EmailAttachments to fetch. */ orderBy?: Prisma.EmailAttachmentOrderByWithRelationInput | Prisma.EmailAttachmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing EmailAttachments. */ cursor?: Prisma.EmailAttachmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` EmailAttachments 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` EmailAttachments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of EmailAttachments. */ distinct?: Prisma.EmailAttachmentScalarFieldEnum | Prisma.EmailAttachmentScalarFieldEnum[] } /** * EmailAttachment create */ export type EmailAttachmentCreateArgs = { /** * 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 /** * The data needed to create a EmailAttachment. */ data: Prisma.XOR } /** * EmailAttachment createMany */ export type EmailAttachmentCreateManyArgs = { /** * The data used to create many EmailAttachments. */ data: Prisma.EmailAttachmentCreateManyInput | Prisma.EmailAttachmentCreateManyInput[] skipDuplicates?: boolean } /** * EmailAttachment createManyAndReturn */ export type EmailAttachmentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailAttachment */ select?: Prisma.EmailAttachmentSelectCreateManyAndReturn | null /** * Omit specific fields from the EmailAttachment */ omit?: Prisma.EmailAttachmentOmit | null /** * The data used to create many EmailAttachments. */ data: Prisma.EmailAttachmentCreateManyInput | Prisma.EmailAttachmentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailAttachmentIncludeCreateManyAndReturn | null } /** * EmailAttachment update */ export type EmailAttachmentUpdateArgs = { /** * 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 /** * The data needed to update a EmailAttachment. */ data: Prisma.XOR /** * Choose, which EmailAttachment to update. */ where: Prisma.EmailAttachmentWhereUniqueInput } /** * EmailAttachment updateMany */ export type EmailAttachmentUpdateManyArgs = { /** * The data used to update EmailAttachments. */ data: Prisma.XOR /** * Filter which EmailAttachments to update */ where?: Prisma.EmailAttachmentWhereInput /** * Limit how many EmailAttachments to update. */ limit?: number } /** * EmailAttachment updateManyAndReturn */ export type EmailAttachmentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the EmailAttachment */ select?: Prisma.EmailAttachmentSelectUpdateManyAndReturn | null /** * Omit specific fields from the EmailAttachment */ omit?: Prisma.EmailAttachmentOmit | null /** * The data used to update EmailAttachments. */ data: Prisma.XOR /** * Filter which EmailAttachments to update */ where?: Prisma.EmailAttachmentWhereInput /** * Limit how many EmailAttachments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.EmailAttachmentIncludeUpdateManyAndReturn | null } /** * EmailAttachment upsert */ export type EmailAttachmentUpsertArgs = { /** * 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 /** * The filter to search for the EmailAttachment to update in case it exists. */ where: Prisma.EmailAttachmentWhereUniqueInput /** * In case the EmailAttachment found by the `where` argument doesn't exist, create a new EmailAttachment with this data. */ create: Prisma.XOR /** * In case the EmailAttachment was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * EmailAttachment delete */ export type EmailAttachmentDeleteArgs = { /** * 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 /** * Filter which EmailAttachment to delete. */ where: Prisma.EmailAttachmentWhereUniqueInput } /** * EmailAttachment deleteMany */ export type EmailAttachmentDeleteManyArgs = { /** * Filter which EmailAttachments to delete */ where?: Prisma.EmailAttachmentWhereInput /** * Limit how many EmailAttachments to delete. */ limit?: number } /** * EmailAttachment without action */ export type EmailAttachmentDefaultArgs = { /** * 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 }