/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `AdminEmailAttachment` 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 AdminEmailAttachment * */ export type AdminEmailAttachmentModel = runtime.Types.Result.DefaultSelection export type AggregateAdminEmailAttachment = { _count: AdminEmailAttachmentCountAggregateOutputType | null _avg: AdminEmailAttachmentAvgAggregateOutputType | null _sum: AdminEmailAttachmentSumAggregateOutputType | null _min: AdminEmailAttachmentMinAggregateOutputType | null _max: AdminEmailAttachmentMaxAggregateOutputType | null } export type AdminEmailAttachmentAvgAggregateOutputType = { sizeBytes: number | null } export type AdminEmailAttachmentSumAggregateOutputType = { sizeBytes: number | null } export type AdminEmailAttachmentMinAggregateOutputType = { id: string | null createdAt: Date | null adminUserId: string | null messageId: string | null providerAttachmentId: string | null filename: string | null mimeType: string | null sizeBytes: number | null storageBucket: string | null storageKey: string | null checksumSha256: string | null scannedAt: Date | null linkedDealId: string | null } export type AdminEmailAttachmentMaxAggregateOutputType = { id: string | null createdAt: Date | null adminUserId: string | null messageId: string | null providerAttachmentId: string | null filename: string | null mimeType: string | null sizeBytes: number | null storageBucket: string | null storageKey: string | null checksumSha256: string | null scannedAt: Date | null linkedDealId: string | null } export type AdminEmailAttachmentCountAggregateOutputType = { id: number createdAt: number adminUserId: number messageId: number providerAttachmentId: number filename: number mimeType: number sizeBytes: number storageBucket: number storageKey: number checksumSha256: number scannedAt: number linkedDealId: number _all: number } export type AdminEmailAttachmentAvgAggregateInputType = { sizeBytes?: true } export type AdminEmailAttachmentSumAggregateInputType = { sizeBytes?: true } export type AdminEmailAttachmentMinAggregateInputType = { id?: true createdAt?: true adminUserId?: true messageId?: true providerAttachmentId?: true filename?: true mimeType?: true sizeBytes?: true storageBucket?: true storageKey?: true checksumSha256?: true scannedAt?: true linkedDealId?: true } export type AdminEmailAttachmentMaxAggregateInputType = { id?: true createdAt?: true adminUserId?: true messageId?: true providerAttachmentId?: true filename?: true mimeType?: true sizeBytes?: true storageBucket?: true storageKey?: true checksumSha256?: true scannedAt?: true linkedDealId?: true } export type AdminEmailAttachmentCountAggregateInputType = { id?: true createdAt?: true adminUserId?: true messageId?: true providerAttachmentId?: true filename?: true mimeType?: true sizeBytes?: true storageBucket?: true storageKey?: true checksumSha256?: true scannedAt?: true linkedDealId?: true _all?: true } export type AdminEmailAttachmentAggregateArgs = { /** * Filter which AdminEmailAttachment to aggregate. */ where?: Prisma.AdminEmailAttachmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailAttachments to fetch. */ orderBy?: Prisma.AdminEmailAttachmentOrderByWithRelationInput | Prisma.AdminEmailAttachmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.AdminEmailAttachmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailAttachments 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` AdminEmailAttachments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned AdminEmailAttachments **/ _count?: true | AdminEmailAttachmentCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: AdminEmailAttachmentAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: AdminEmailAttachmentSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: AdminEmailAttachmentMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: AdminEmailAttachmentMaxAggregateInputType } export type GetAdminEmailAttachmentAggregateType = { [P in keyof T & keyof AggregateAdminEmailAttachment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type AdminEmailAttachmentGroupByArgs = { where?: Prisma.AdminEmailAttachmentWhereInput orderBy?: Prisma.AdminEmailAttachmentOrderByWithAggregationInput | Prisma.AdminEmailAttachmentOrderByWithAggregationInput[] by: Prisma.AdminEmailAttachmentScalarFieldEnum[] | Prisma.AdminEmailAttachmentScalarFieldEnum having?: Prisma.AdminEmailAttachmentScalarWhereWithAggregatesInput take?: number skip?: number _count?: AdminEmailAttachmentCountAggregateInputType | true _avg?: AdminEmailAttachmentAvgAggregateInputType _sum?: AdminEmailAttachmentSumAggregateInputType _min?: AdminEmailAttachmentMinAggregateInputType _max?: AdminEmailAttachmentMaxAggregateInputType } export type AdminEmailAttachmentGroupByOutputType = { id: string createdAt: Date adminUserId: string messageId: string providerAttachmentId: string | null filename: string mimeType: string | null sizeBytes: number storageBucket: string storageKey: string checksumSha256: string scannedAt: Date linkedDealId: string | null _count: AdminEmailAttachmentCountAggregateOutputType | null _avg: AdminEmailAttachmentAvgAggregateOutputType | null _sum: AdminEmailAttachmentSumAggregateOutputType | null _min: AdminEmailAttachmentMinAggregateOutputType | null _max: AdminEmailAttachmentMaxAggregateOutputType | null } export type GetAdminEmailAttachmentGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof AdminEmailAttachmentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type AdminEmailAttachmentWhereInput = { AND?: Prisma.AdminEmailAttachmentWhereInput | Prisma.AdminEmailAttachmentWhereInput[] OR?: Prisma.AdminEmailAttachmentWhereInput[] NOT?: Prisma.AdminEmailAttachmentWhereInput | Prisma.AdminEmailAttachmentWhereInput[] id?: Prisma.StringFilter<"AdminEmailAttachment"> | string createdAt?: Prisma.DateTimeFilter<"AdminEmailAttachment"> | Date | string adminUserId?: Prisma.StringFilter<"AdminEmailAttachment"> | string messageId?: Prisma.StringFilter<"AdminEmailAttachment"> | string providerAttachmentId?: Prisma.StringNullableFilter<"AdminEmailAttachment"> | string | null filename?: Prisma.StringFilter<"AdminEmailAttachment"> | string mimeType?: Prisma.StringNullableFilter<"AdminEmailAttachment"> | string | null sizeBytes?: Prisma.IntFilter<"AdminEmailAttachment"> | number storageBucket?: Prisma.StringFilter<"AdminEmailAttachment"> | string storageKey?: Prisma.StringFilter<"AdminEmailAttachment"> | string checksumSha256?: Prisma.StringFilter<"AdminEmailAttachment"> | string scannedAt?: Prisma.DateTimeFilter<"AdminEmailAttachment"> | Date | string linkedDealId?: Prisma.StringNullableFilter<"AdminEmailAttachment"> | string | null message?: Prisma.XOR } export type AdminEmailAttachmentOrderByWithRelationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder messageId?: Prisma.SortOrder providerAttachmentId?: Prisma.SortOrderInput | Prisma.SortOrder filename?: Prisma.SortOrder mimeType?: Prisma.SortOrderInput | Prisma.SortOrder sizeBytes?: Prisma.SortOrder storageBucket?: Prisma.SortOrder storageKey?: Prisma.SortOrder checksumSha256?: Prisma.SortOrder scannedAt?: Prisma.SortOrder linkedDealId?: Prisma.SortOrderInput | Prisma.SortOrder message?: Prisma.AdminEmailMessageOrderByWithRelationInput } export type AdminEmailAttachmentWhereUniqueInput = Prisma.AtLeast<{ id?: string admin_email_attachment_message_checksum_key?: Prisma.AdminEmailAttachmentAdmin_email_attachment_message_checksum_keyCompoundUniqueInput AND?: Prisma.AdminEmailAttachmentWhereInput | Prisma.AdminEmailAttachmentWhereInput[] OR?: Prisma.AdminEmailAttachmentWhereInput[] NOT?: Prisma.AdminEmailAttachmentWhereInput | Prisma.AdminEmailAttachmentWhereInput[] createdAt?: Prisma.DateTimeFilter<"AdminEmailAttachment"> | Date | string adminUserId?: Prisma.StringFilter<"AdminEmailAttachment"> | string messageId?: Prisma.StringFilter<"AdminEmailAttachment"> | string providerAttachmentId?: Prisma.StringNullableFilter<"AdminEmailAttachment"> | string | null filename?: Prisma.StringFilter<"AdminEmailAttachment"> | string mimeType?: Prisma.StringNullableFilter<"AdminEmailAttachment"> | string | null sizeBytes?: Prisma.IntFilter<"AdminEmailAttachment"> | number storageBucket?: Prisma.StringFilter<"AdminEmailAttachment"> | string storageKey?: Prisma.StringFilter<"AdminEmailAttachment"> | string checksumSha256?: Prisma.StringFilter<"AdminEmailAttachment"> | string scannedAt?: Prisma.DateTimeFilter<"AdminEmailAttachment"> | Date | string linkedDealId?: Prisma.StringNullableFilter<"AdminEmailAttachment"> | string | null message?: Prisma.XOR }, "id" | "admin_email_attachment_message_checksum_key"> export type AdminEmailAttachmentOrderByWithAggregationInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder messageId?: Prisma.SortOrder providerAttachmentId?: Prisma.SortOrderInput | Prisma.SortOrder filename?: Prisma.SortOrder mimeType?: Prisma.SortOrderInput | Prisma.SortOrder sizeBytes?: Prisma.SortOrder storageBucket?: Prisma.SortOrder storageKey?: Prisma.SortOrder checksumSha256?: Prisma.SortOrder scannedAt?: Prisma.SortOrder linkedDealId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.AdminEmailAttachmentCountOrderByAggregateInput _avg?: Prisma.AdminEmailAttachmentAvgOrderByAggregateInput _max?: Prisma.AdminEmailAttachmentMaxOrderByAggregateInput _min?: Prisma.AdminEmailAttachmentMinOrderByAggregateInput _sum?: Prisma.AdminEmailAttachmentSumOrderByAggregateInput } export type AdminEmailAttachmentScalarWhereWithAggregatesInput = { AND?: Prisma.AdminEmailAttachmentScalarWhereWithAggregatesInput | Prisma.AdminEmailAttachmentScalarWhereWithAggregatesInput[] OR?: Prisma.AdminEmailAttachmentScalarWhereWithAggregatesInput[] NOT?: Prisma.AdminEmailAttachmentScalarWhereWithAggregatesInput | Prisma.AdminEmailAttachmentScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"AdminEmailAttachment"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminEmailAttachment"> | Date | string adminUserId?: Prisma.StringWithAggregatesFilter<"AdminEmailAttachment"> | string messageId?: Prisma.StringWithAggregatesFilter<"AdminEmailAttachment"> | string providerAttachmentId?: Prisma.StringNullableWithAggregatesFilter<"AdminEmailAttachment"> | string | null filename?: Prisma.StringWithAggregatesFilter<"AdminEmailAttachment"> | string mimeType?: Prisma.StringNullableWithAggregatesFilter<"AdminEmailAttachment"> | string | null sizeBytes?: Prisma.IntWithAggregatesFilter<"AdminEmailAttachment"> | number storageBucket?: Prisma.StringWithAggregatesFilter<"AdminEmailAttachment"> | string storageKey?: Prisma.StringWithAggregatesFilter<"AdminEmailAttachment"> | string checksumSha256?: Prisma.StringWithAggregatesFilter<"AdminEmailAttachment"> | string scannedAt?: Prisma.DateTimeWithAggregatesFilter<"AdminEmailAttachment"> | Date | string linkedDealId?: Prisma.StringNullableWithAggregatesFilter<"AdminEmailAttachment"> | string | null } export type AdminEmailAttachmentCreateInput = { id?: string createdAt?: Date | string adminUserId: string providerAttachmentId?: string | null filename: string mimeType?: string | null sizeBytes: number storageBucket: string storageKey: string checksumSha256: string scannedAt: Date | string linkedDealId?: string | null message: Prisma.AdminEmailMessageCreateNestedOneWithoutAttachmentsInput } export type AdminEmailAttachmentUncheckedCreateInput = { id?: string createdAt?: Date | string adminUserId: string messageId: string providerAttachmentId?: string | null filename: string mimeType?: string | null sizeBytes: number storageBucket: string storageKey: string checksumSha256: string scannedAt: Date | string linkedDealId?: string | null } export type AdminEmailAttachmentUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string adminUserId?: Prisma.StringFieldUpdateOperationsInput | string providerAttachmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null filename?: Prisma.StringFieldUpdateOperationsInput | string mimeType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number storageBucket?: Prisma.StringFieldUpdateOperationsInput | string storageKey?: Prisma.StringFieldUpdateOperationsInput | string checksumSha256?: Prisma.StringFieldUpdateOperationsInput | string scannedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string linkedDealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null message?: Prisma.AdminEmailMessageUpdateOneRequiredWithoutAttachmentsNestedInput } export type AdminEmailAttachmentUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string adminUserId?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string providerAttachmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null filename?: Prisma.StringFieldUpdateOperationsInput | string mimeType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number storageBucket?: Prisma.StringFieldUpdateOperationsInput | string storageKey?: Prisma.StringFieldUpdateOperationsInput | string checksumSha256?: Prisma.StringFieldUpdateOperationsInput | string scannedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string linkedDealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AdminEmailAttachmentCreateManyInput = { id?: string createdAt?: Date | string adminUserId: string messageId: string providerAttachmentId?: string | null filename: string mimeType?: string | null sizeBytes: number storageBucket: string storageKey: string checksumSha256: string scannedAt: Date | string linkedDealId?: string | null } export type AdminEmailAttachmentUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string adminUserId?: Prisma.StringFieldUpdateOperationsInput | string providerAttachmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null filename?: Prisma.StringFieldUpdateOperationsInput | string mimeType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number storageBucket?: Prisma.StringFieldUpdateOperationsInput | string storageKey?: Prisma.StringFieldUpdateOperationsInput | string checksumSha256?: Prisma.StringFieldUpdateOperationsInput | string scannedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string linkedDealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AdminEmailAttachmentUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string adminUserId?: Prisma.StringFieldUpdateOperationsInput | string messageId?: Prisma.StringFieldUpdateOperationsInput | string providerAttachmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null filename?: Prisma.StringFieldUpdateOperationsInput | string mimeType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number storageBucket?: Prisma.StringFieldUpdateOperationsInput | string storageKey?: Prisma.StringFieldUpdateOperationsInput | string checksumSha256?: Prisma.StringFieldUpdateOperationsInput | string scannedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string linkedDealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AdminEmailAttachmentListRelationFilter = { every?: Prisma.AdminEmailAttachmentWhereInput some?: Prisma.AdminEmailAttachmentWhereInput none?: Prisma.AdminEmailAttachmentWhereInput } export type AdminEmailAttachmentOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type AdminEmailAttachmentAdmin_email_attachment_message_checksum_keyCompoundUniqueInput = { messageId: string checksumSha256: string } export type AdminEmailAttachmentCountOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder messageId?: Prisma.SortOrder providerAttachmentId?: Prisma.SortOrder filename?: Prisma.SortOrder mimeType?: Prisma.SortOrder sizeBytes?: Prisma.SortOrder storageBucket?: Prisma.SortOrder storageKey?: Prisma.SortOrder checksumSha256?: Prisma.SortOrder scannedAt?: Prisma.SortOrder linkedDealId?: Prisma.SortOrder } export type AdminEmailAttachmentAvgOrderByAggregateInput = { sizeBytes?: Prisma.SortOrder } export type AdminEmailAttachmentMaxOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder messageId?: Prisma.SortOrder providerAttachmentId?: Prisma.SortOrder filename?: Prisma.SortOrder mimeType?: Prisma.SortOrder sizeBytes?: Prisma.SortOrder storageBucket?: Prisma.SortOrder storageKey?: Prisma.SortOrder checksumSha256?: Prisma.SortOrder scannedAt?: Prisma.SortOrder linkedDealId?: Prisma.SortOrder } export type AdminEmailAttachmentMinOrderByAggregateInput = { id?: Prisma.SortOrder createdAt?: Prisma.SortOrder adminUserId?: Prisma.SortOrder messageId?: Prisma.SortOrder providerAttachmentId?: Prisma.SortOrder filename?: Prisma.SortOrder mimeType?: Prisma.SortOrder sizeBytes?: Prisma.SortOrder storageBucket?: Prisma.SortOrder storageKey?: Prisma.SortOrder checksumSha256?: Prisma.SortOrder scannedAt?: Prisma.SortOrder linkedDealId?: Prisma.SortOrder } export type AdminEmailAttachmentSumOrderByAggregateInput = { sizeBytes?: Prisma.SortOrder } export type AdminEmailAttachmentCreateNestedManyWithoutMessageInput = { create?: Prisma.XOR | Prisma.AdminEmailAttachmentCreateWithoutMessageInput[] | Prisma.AdminEmailAttachmentUncheckedCreateWithoutMessageInput[] connectOrCreate?: Prisma.AdminEmailAttachmentCreateOrConnectWithoutMessageInput | Prisma.AdminEmailAttachmentCreateOrConnectWithoutMessageInput[] createMany?: Prisma.AdminEmailAttachmentCreateManyMessageInputEnvelope connect?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] } export type AdminEmailAttachmentUncheckedCreateNestedManyWithoutMessageInput = { create?: Prisma.XOR | Prisma.AdminEmailAttachmentCreateWithoutMessageInput[] | Prisma.AdminEmailAttachmentUncheckedCreateWithoutMessageInput[] connectOrCreate?: Prisma.AdminEmailAttachmentCreateOrConnectWithoutMessageInput | Prisma.AdminEmailAttachmentCreateOrConnectWithoutMessageInput[] createMany?: Prisma.AdminEmailAttachmentCreateManyMessageInputEnvelope connect?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] } export type AdminEmailAttachmentUpdateManyWithoutMessageNestedInput = { create?: Prisma.XOR | Prisma.AdminEmailAttachmentCreateWithoutMessageInput[] | Prisma.AdminEmailAttachmentUncheckedCreateWithoutMessageInput[] connectOrCreate?: Prisma.AdminEmailAttachmentCreateOrConnectWithoutMessageInput | Prisma.AdminEmailAttachmentCreateOrConnectWithoutMessageInput[] upsert?: Prisma.AdminEmailAttachmentUpsertWithWhereUniqueWithoutMessageInput | Prisma.AdminEmailAttachmentUpsertWithWhereUniqueWithoutMessageInput[] createMany?: Prisma.AdminEmailAttachmentCreateManyMessageInputEnvelope set?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] disconnect?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] delete?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] connect?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] update?: Prisma.AdminEmailAttachmentUpdateWithWhereUniqueWithoutMessageInput | Prisma.AdminEmailAttachmentUpdateWithWhereUniqueWithoutMessageInput[] updateMany?: Prisma.AdminEmailAttachmentUpdateManyWithWhereWithoutMessageInput | Prisma.AdminEmailAttachmentUpdateManyWithWhereWithoutMessageInput[] deleteMany?: Prisma.AdminEmailAttachmentScalarWhereInput | Prisma.AdminEmailAttachmentScalarWhereInput[] } export type AdminEmailAttachmentUncheckedUpdateManyWithoutMessageNestedInput = { create?: Prisma.XOR | Prisma.AdminEmailAttachmentCreateWithoutMessageInput[] | Prisma.AdminEmailAttachmentUncheckedCreateWithoutMessageInput[] connectOrCreate?: Prisma.AdminEmailAttachmentCreateOrConnectWithoutMessageInput | Prisma.AdminEmailAttachmentCreateOrConnectWithoutMessageInput[] upsert?: Prisma.AdminEmailAttachmentUpsertWithWhereUniqueWithoutMessageInput | Prisma.AdminEmailAttachmentUpsertWithWhereUniqueWithoutMessageInput[] createMany?: Prisma.AdminEmailAttachmentCreateManyMessageInputEnvelope set?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] disconnect?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] delete?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] connect?: Prisma.AdminEmailAttachmentWhereUniqueInput | Prisma.AdminEmailAttachmentWhereUniqueInput[] update?: Prisma.AdminEmailAttachmentUpdateWithWhereUniqueWithoutMessageInput | Prisma.AdminEmailAttachmentUpdateWithWhereUniqueWithoutMessageInput[] updateMany?: Prisma.AdminEmailAttachmentUpdateManyWithWhereWithoutMessageInput | Prisma.AdminEmailAttachmentUpdateManyWithWhereWithoutMessageInput[] deleteMany?: Prisma.AdminEmailAttachmentScalarWhereInput | Prisma.AdminEmailAttachmentScalarWhereInput[] } export type AdminEmailAttachmentCreateWithoutMessageInput = { id?: string createdAt?: Date | string adminUserId: string providerAttachmentId?: string | null filename: string mimeType?: string | null sizeBytes: number storageBucket: string storageKey: string checksumSha256: string scannedAt: Date | string linkedDealId?: string | null } export type AdminEmailAttachmentUncheckedCreateWithoutMessageInput = { id?: string createdAt?: Date | string adminUserId: string providerAttachmentId?: string | null filename: string mimeType?: string | null sizeBytes: number storageBucket: string storageKey: string checksumSha256: string scannedAt: Date | string linkedDealId?: string | null } export type AdminEmailAttachmentCreateOrConnectWithoutMessageInput = { where: Prisma.AdminEmailAttachmentWhereUniqueInput create: Prisma.XOR } export type AdminEmailAttachmentCreateManyMessageInputEnvelope = { data: Prisma.AdminEmailAttachmentCreateManyMessageInput | Prisma.AdminEmailAttachmentCreateManyMessageInput[] skipDuplicates?: boolean } export type AdminEmailAttachmentUpsertWithWhereUniqueWithoutMessageInput = { where: Prisma.AdminEmailAttachmentWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type AdminEmailAttachmentUpdateWithWhereUniqueWithoutMessageInput = { where: Prisma.AdminEmailAttachmentWhereUniqueInput data: Prisma.XOR } export type AdminEmailAttachmentUpdateManyWithWhereWithoutMessageInput = { where: Prisma.AdminEmailAttachmentScalarWhereInput data: Prisma.XOR } export type AdminEmailAttachmentScalarWhereInput = { AND?: Prisma.AdminEmailAttachmentScalarWhereInput | Prisma.AdminEmailAttachmentScalarWhereInput[] OR?: Prisma.AdminEmailAttachmentScalarWhereInput[] NOT?: Prisma.AdminEmailAttachmentScalarWhereInput | Prisma.AdminEmailAttachmentScalarWhereInput[] id?: Prisma.StringFilter<"AdminEmailAttachment"> | string createdAt?: Prisma.DateTimeFilter<"AdminEmailAttachment"> | Date | string adminUserId?: Prisma.StringFilter<"AdminEmailAttachment"> | string messageId?: Prisma.StringFilter<"AdminEmailAttachment"> | string providerAttachmentId?: Prisma.StringNullableFilter<"AdminEmailAttachment"> | string | null filename?: Prisma.StringFilter<"AdminEmailAttachment"> | string mimeType?: Prisma.StringNullableFilter<"AdminEmailAttachment"> | string | null sizeBytes?: Prisma.IntFilter<"AdminEmailAttachment"> | number storageBucket?: Prisma.StringFilter<"AdminEmailAttachment"> | string storageKey?: Prisma.StringFilter<"AdminEmailAttachment"> | string checksumSha256?: Prisma.StringFilter<"AdminEmailAttachment"> | string scannedAt?: Prisma.DateTimeFilter<"AdminEmailAttachment"> | Date | string linkedDealId?: Prisma.StringNullableFilter<"AdminEmailAttachment"> | string | null } export type AdminEmailAttachmentCreateManyMessageInput = { id?: string createdAt?: Date | string adminUserId: string providerAttachmentId?: string | null filename: string mimeType?: string | null sizeBytes: number storageBucket: string storageKey: string checksumSha256: string scannedAt: Date | string linkedDealId?: string | null } export type AdminEmailAttachmentUpdateWithoutMessageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string adminUserId?: Prisma.StringFieldUpdateOperationsInput | string providerAttachmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null filename?: Prisma.StringFieldUpdateOperationsInput | string mimeType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number storageBucket?: Prisma.StringFieldUpdateOperationsInput | string storageKey?: Prisma.StringFieldUpdateOperationsInput | string checksumSha256?: Prisma.StringFieldUpdateOperationsInput | string scannedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string linkedDealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AdminEmailAttachmentUncheckedUpdateWithoutMessageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string adminUserId?: Prisma.StringFieldUpdateOperationsInput | string providerAttachmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null filename?: Prisma.StringFieldUpdateOperationsInput | string mimeType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number storageBucket?: Prisma.StringFieldUpdateOperationsInput | string storageKey?: Prisma.StringFieldUpdateOperationsInput | string checksumSha256?: Prisma.StringFieldUpdateOperationsInput | string scannedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string linkedDealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AdminEmailAttachmentUncheckedUpdateManyWithoutMessageInput = { id?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string adminUserId?: Prisma.StringFieldUpdateOperationsInput | string providerAttachmentId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null filename?: Prisma.StringFieldUpdateOperationsInput | string mimeType?: Prisma.NullableStringFieldUpdateOperationsInput | string | null sizeBytes?: Prisma.IntFieldUpdateOperationsInput | number storageBucket?: Prisma.StringFieldUpdateOperationsInput | string storageKey?: Prisma.StringFieldUpdateOperationsInput | string checksumSha256?: Prisma.StringFieldUpdateOperationsInput | string scannedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string linkedDealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type AdminEmailAttachmentSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean adminUserId?: boolean messageId?: boolean providerAttachmentId?: boolean filename?: boolean mimeType?: boolean sizeBytes?: boolean storageBucket?: boolean storageKey?: boolean checksumSha256?: boolean scannedAt?: boolean linkedDealId?: boolean message?: boolean | Prisma.AdminEmailMessageDefaultArgs }, ExtArgs["result"]["adminEmailAttachment"]> export type AdminEmailAttachmentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean adminUserId?: boolean messageId?: boolean providerAttachmentId?: boolean filename?: boolean mimeType?: boolean sizeBytes?: boolean storageBucket?: boolean storageKey?: boolean checksumSha256?: boolean scannedAt?: boolean linkedDealId?: boolean message?: boolean | Prisma.AdminEmailMessageDefaultArgs }, ExtArgs["result"]["adminEmailAttachment"]> export type AdminEmailAttachmentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean adminUserId?: boolean messageId?: boolean providerAttachmentId?: boolean filename?: boolean mimeType?: boolean sizeBytes?: boolean storageBucket?: boolean storageKey?: boolean checksumSha256?: boolean scannedAt?: boolean linkedDealId?: boolean message?: boolean | Prisma.AdminEmailMessageDefaultArgs }, ExtArgs["result"]["adminEmailAttachment"]> export type AdminEmailAttachmentSelectScalar = { id?: boolean createdAt?: boolean adminUserId?: boolean messageId?: boolean providerAttachmentId?: boolean filename?: boolean mimeType?: boolean sizeBytes?: boolean storageBucket?: boolean storageKey?: boolean checksumSha256?: boolean scannedAt?: boolean linkedDealId?: boolean } export type AdminEmailAttachmentOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "adminUserId" | "messageId" | "providerAttachmentId" | "filename" | "mimeType" | "sizeBytes" | "storageBucket" | "storageKey" | "checksumSha256" | "scannedAt" | "linkedDealId", ExtArgs["result"]["adminEmailAttachment"]> export type AdminEmailAttachmentInclude = { message?: boolean | Prisma.AdminEmailMessageDefaultArgs } export type AdminEmailAttachmentIncludeCreateManyAndReturn = { message?: boolean | Prisma.AdminEmailMessageDefaultArgs } export type AdminEmailAttachmentIncludeUpdateManyAndReturn = { message?: boolean | Prisma.AdminEmailMessageDefaultArgs } export type $AdminEmailAttachmentPayload = { name: "AdminEmailAttachment" objects: { message: Prisma.$AdminEmailMessagePayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date adminUserId: string messageId: string providerAttachmentId: string | null filename: string mimeType: string | null sizeBytes: number storageBucket: string storageKey: string checksumSha256: string scannedAt: Date linkedDealId: string | null }, ExtArgs["result"]["adminEmailAttachment"]> composites: {} } export type AdminEmailAttachmentGetPayload = runtime.Types.Result.GetResult export type AdminEmailAttachmentCountArgs = Omit & { select?: AdminEmailAttachmentCountAggregateInputType | true } export interface AdminEmailAttachmentDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['AdminEmailAttachment'], meta: { name: 'AdminEmailAttachment' } } /** * Find zero or one AdminEmailAttachment that matches the filter. * @param {AdminEmailAttachmentFindUniqueArgs} args - Arguments to find a AdminEmailAttachment * @example * // Get one AdminEmailAttachment * const adminEmailAttachment = await prisma.adminEmailAttachment.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailAttachmentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one AdminEmailAttachment that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {AdminEmailAttachmentFindUniqueOrThrowArgs} args - Arguments to find a AdminEmailAttachment * @example * // Get one AdminEmailAttachment * const adminEmailAttachment = await prisma.adminEmailAttachment.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailAttachmentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first AdminEmailAttachment 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 {AdminEmailAttachmentFindFirstArgs} args - Arguments to find a AdminEmailAttachment * @example * // Get one AdminEmailAttachment * const adminEmailAttachment = await prisma.adminEmailAttachment.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailAttachmentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first AdminEmailAttachment 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 {AdminEmailAttachmentFindFirstOrThrowArgs} args - Arguments to find a AdminEmailAttachment * @example * // Get one AdminEmailAttachment * const adminEmailAttachment = await prisma.adminEmailAttachment.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailAttachmentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more AdminEmailAttachments 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 {AdminEmailAttachmentFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all AdminEmailAttachments * const adminEmailAttachments = await prisma.adminEmailAttachment.findMany() * * // Get first 10 AdminEmailAttachments * const adminEmailAttachments = await prisma.adminEmailAttachment.findMany({ take: 10 }) * * // Only select the `id` * const adminEmailAttachmentWithIdOnly = await prisma.adminEmailAttachment.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a AdminEmailAttachment. * @param {AdminEmailAttachmentCreateArgs} args - Arguments to create a AdminEmailAttachment. * @example * // Create one AdminEmailAttachment * const AdminEmailAttachment = await prisma.adminEmailAttachment.create({ * data: { * // ... data to create a AdminEmailAttachment * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailAttachmentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many AdminEmailAttachments. * @param {AdminEmailAttachmentCreateManyArgs} args - Arguments to create many AdminEmailAttachments. * @example * // Create many AdminEmailAttachments * const adminEmailAttachment = await prisma.adminEmailAttachment.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many AdminEmailAttachments and returns the data saved in the database. * @param {AdminEmailAttachmentCreateManyAndReturnArgs} args - Arguments to create many AdminEmailAttachments. * @example * // Create many AdminEmailAttachments * const adminEmailAttachment = await prisma.adminEmailAttachment.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many AdminEmailAttachments and only return the `id` * const adminEmailAttachmentWithIdOnly = await prisma.adminEmailAttachment.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 AdminEmailAttachment. * @param {AdminEmailAttachmentDeleteArgs} args - Arguments to delete one AdminEmailAttachment. * @example * // Delete one AdminEmailAttachment * const AdminEmailAttachment = await prisma.adminEmailAttachment.delete({ * where: { * // ... filter to delete one AdminEmailAttachment * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailAttachmentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one AdminEmailAttachment. * @param {AdminEmailAttachmentUpdateArgs} args - Arguments to update one AdminEmailAttachment. * @example * // Update one AdminEmailAttachment * const adminEmailAttachment = await prisma.adminEmailAttachment.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailAttachmentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more AdminEmailAttachments. * @param {AdminEmailAttachmentDeleteManyArgs} args - Arguments to filter AdminEmailAttachments to delete. * @example * // Delete a few AdminEmailAttachments * const { count } = await prisma.adminEmailAttachment.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminEmailAttachments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailAttachmentUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many AdminEmailAttachments * const adminEmailAttachment = await prisma.adminEmailAttachment.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more AdminEmailAttachments and returns the data updated in the database. * @param {AdminEmailAttachmentUpdateManyAndReturnArgs} args - Arguments to update many AdminEmailAttachments. * @example * // Update many AdminEmailAttachments * const adminEmailAttachment = await prisma.adminEmailAttachment.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more AdminEmailAttachments and only return the `id` * const adminEmailAttachmentWithIdOnly = await prisma.adminEmailAttachment.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 AdminEmailAttachment. * @param {AdminEmailAttachmentUpsertArgs} args - Arguments to update or create a AdminEmailAttachment. * @example * // Update or create a AdminEmailAttachment * const adminEmailAttachment = await prisma.adminEmailAttachment.upsert({ * create: { * // ... data to create a AdminEmailAttachment * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the AdminEmailAttachment we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AdminEmailAttachmentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of AdminEmailAttachments. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailAttachmentCountArgs} args - Arguments to filter AdminEmailAttachments to count. * @example * // Count the number of AdminEmailAttachments * const count = await prisma.adminEmailAttachment.count({ * where: { * // ... the filter for the AdminEmailAttachments 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 AdminEmailAttachment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailAttachmentAggregateArgs} 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 AdminEmailAttachment. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {AdminEmailAttachmentGroupByArgs} 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 AdminEmailAttachmentGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: AdminEmailAttachmentGroupByArgs['orderBy'] } : { orderBy?: AdminEmailAttachmentGroupByArgs['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 ? GetAdminEmailAttachmentGroupByPayload : Prisma.PrismaPromise /** * Fields of the AdminEmailAttachment model */ readonly fields: AdminEmailAttachmentFieldRefs; } /** * The delegate class that acts as a "Promise-like" for AdminEmailAttachment. * 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__AdminEmailAttachmentClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" message = {}>(args?: Prisma.Subset>): Prisma.Prisma__AdminEmailMessageClient, 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 AdminEmailAttachment model */ export interface AdminEmailAttachmentFieldRefs { readonly id: Prisma.FieldRef<"AdminEmailAttachment", 'String'> readonly createdAt: Prisma.FieldRef<"AdminEmailAttachment", 'DateTime'> readonly adminUserId: Prisma.FieldRef<"AdminEmailAttachment", 'String'> readonly messageId: Prisma.FieldRef<"AdminEmailAttachment", 'String'> readonly providerAttachmentId: Prisma.FieldRef<"AdminEmailAttachment", 'String'> readonly filename: Prisma.FieldRef<"AdminEmailAttachment", 'String'> readonly mimeType: Prisma.FieldRef<"AdminEmailAttachment", 'String'> readonly sizeBytes: Prisma.FieldRef<"AdminEmailAttachment", 'Int'> readonly storageBucket: Prisma.FieldRef<"AdminEmailAttachment", 'String'> readonly storageKey: Prisma.FieldRef<"AdminEmailAttachment", 'String'> readonly checksumSha256: Prisma.FieldRef<"AdminEmailAttachment", 'String'> readonly scannedAt: Prisma.FieldRef<"AdminEmailAttachment", 'DateTime'> readonly linkedDealId: Prisma.FieldRef<"AdminEmailAttachment", 'String'> } // Custom InputTypes /** * AdminEmailAttachment findUnique */ export type AdminEmailAttachmentFindUniqueArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null /** * Filter, which AdminEmailAttachment to fetch. */ where: Prisma.AdminEmailAttachmentWhereUniqueInput } /** * AdminEmailAttachment findUniqueOrThrow */ export type AdminEmailAttachmentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null /** * Filter, which AdminEmailAttachment to fetch. */ where: Prisma.AdminEmailAttachmentWhereUniqueInput } /** * AdminEmailAttachment findFirst */ export type AdminEmailAttachmentFindFirstArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null /** * Filter, which AdminEmailAttachment to fetch. */ where?: Prisma.AdminEmailAttachmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailAttachments to fetch. */ orderBy?: Prisma.AdminEmailAttachmentOrderByWithRelationInput | Prisma.AdminEmailAttachmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminEmailAttachments. */ cursor?: Prisma.AdminEmailAttachmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailAttachments 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` AdminEmailAttachments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminEmailAttachments. */ distinct?: Prisma.AdminEmailAttachmentScalarFieldEnum | Prisma.AdminEmailAttachmentScalarFieldEnum[] } /** * AdminEmailAttachment findFirstOrThrow */ export type AdminEmailAttachmentFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null /** * Filter, which AdminEmailAttachment to fetch. */ where?: Prisma.AdminEmailAttachmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailAttachments to fetch. */ orderBy?: Prisma.AdminEmailAttachmentOrderByWithRelationInput | Prisma.AdminEmailAttachmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for AdminEmailAttachments. */ cursor?: Prisma.AdminEmailAttachmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailAttachments 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` AdminEmailAttachments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminEmailAttachments. */ distinct?: Prisma.AdminEmailAttachmentScalarFieldEnum | Prisma.AdminEmailAttachmentScalarFieldEnum[] } /** * AdminEmailAttachment findMany */ export type AdminEmailAttachmentFindManyArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null /** * Filter, which AdminEmailAttachments to fetch. */ where?: Prisma.AdminEmailAttachmentWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of AdminEmailAttachments to fetch. */ orderBy?: Prisma.AdminEmailAttachmentOrderByWithRelationInput | Prisma.AdminEmailAttachmentOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing AdminEmailAttachments. */ cursor?: Prisma.AdminEmailAttachmentWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` AdminEmailAttachments 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` AdminEmailAttachments. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of AdminEmailAttachments. */ distinct?: Prisma.AdminEmailAttachmentScalarFieldEnum | Prisma.AdminEmailAttachmentScalarFieldEnum[] } /** * AdminEmailAttachment create */ export type AdminEmailAttachmentCreateArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null /** * The data needed to create a AdminEmailAttachment. */ data: Prisma.XOR } /** * AdminEmailAttachment createMany */ export type AdminEmailAttachmentCreateManyArgs = { /** * The data used to create many AdminEmailAttachments. */ data: Prisma.AdminEmailAttachmentCreateManyInput | Prisma.AdminEmailAttachmentCreateManyInput[] skipDuplicates?: boolean } /** * AdminEmailAttachment createManyAndReturn */ export type AdminEmailAttachmentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelectCreateManyAndReturn | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * The data used to create many AdminEmailAttachments. */ data: Prisma.AdminEmailAttachmentCreateManyInput | Prisma.AdminEmailAttachmentCreateManyInput[] skipDuplicates?: boolean /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentIncludeCreateManyAndReturn | null } /** * AdminEmailAttachment update */ export type AdminEmailAttachmentUpdateArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null /** * The data needed to update a AdminEmailAttachment. */ data: Prisma.XOR /** * Choose, which AdminEmailAttachment to update. */ where: Prisma.AdminEmailAttachmentWhereUniqueInput } /** * AdminEmailAttachment updateMany */ export type AdminEmailAttachmentUpdateManyArgs = { /** * The data used to update AdminEmailAttachments. */ data: Prisma.XOR /** * Filter which AdminEmailAttachments to update */ where?: Prisma.AdminEmailAttachmentWhereInput /** * Limit how many AdminEmailAttachments to update. */ limit?: number } /** * AdminEmailAttachment updateManyAndReturn */ export type AdminEmailAttachmentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelectUpdateManyAndReturn | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * The data used to update AdminEmailAttachments. */ data: Prisma.XOR /** * Filter which AdminEmailAttachments to update */ where?: Prisma.AdminEmailAttachmentWhereInput /** * Limit how many AdminEmailAttachments to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentIncludeUpdateManyAndReturn | null } /** * AdminEmailAttachment upsert */ export type AdminEmailAttachmentUpsertArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null /** * The filter to search for the AdminEmailAttachment to update in case it exists. */ where: Prisma.AdminEmailAttachmentWhereUniqueInput /** * In case the AdminEmailAttachment found by the `where` argument doesn't exist, create a new AdminEmailAttachment with this data. */ create: Prisma.XOR /** * In case the AdminEmailAttachment was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * AdminEmailAttachment delete */ export type AdminEmailAttachmentDeleteArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null /** * Filter which AdminEmailAttachment to delete. */ where: Prisma.AdminEmailAttachmentWhereUniqueInput } /** * AdminEmailAttachment deleteMany */ export type AdminEmailAttachmentDeleteManyArgs = { /** * Filter which AdminEmailAttachments to delete */ where?: Prisma.AdminEmailAttachmentWhereInput /** * Limit how many AdminEmailAttachments to delete. */ limit?: number } /** * AdminEmailAttachment without action */ export type AdminEmailAttachmentDefaultArgs = { /** * Select specific fields to fetch from the AdminEmailAttachment */ select?: Prisma.AdminEmailAttachmentSelect | null /** * Omit specific fields from the AdminEmailAttachment */ omit?: Prisma.AdminEmailAttachmentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.AdminEmailAttachmentInclude | null }