Files
HiveGrid-Wireframes/hivegrid-cloud/packages/db/generated/prisma/client/models/EmailAttachment.ts
T

1530 lines
59 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `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<Prisma.$EmailAttachmentPayload>
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* 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<T extends EmailAttachmentAggregateArgs> = {
[P in keyof T & keyof AggregateEmailAttachment]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateEmailAttachment[P]>
: Prisma.GetScalarType<T[P], AggregateEmailAttachment[P]>
}
export type EmailAttachmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
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<T extends EmailAttachmentGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<EmailAttachmentGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof EmailAttachmentGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], EmailAttachmentGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], EmailAttachmentGroupByOutputType[P]>
}
>
>
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<Prisma.EmailScalarRelationFilter, Prisma.EmailWhereInput>
}
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<Prisma.EmailScalarRelationFilter, Prisma.EmailWhereInput>
}, "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> | 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> | 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> | 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> | 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<Prisma.EmailAttachmentCreateWithoutEmailInput, Prisma.EmailAttachmentUncheckedCreateWithoutEmailInput>
}
export type EmailAttachmentCreateManyEmailInputEnvelope = {
data: Prisma.EmailAttachmentCreateManyEmailInput | Prisma.EmailAttachmentCreateManyEmailInput[]
skipDuplicates?: boolean
}
export type EmailAttachmentUpsertWithWhereUniqueWithoutEmailInput = {
where: Prisma.EmailAttachmentWhereUniqueInput
update: Prisma.XOR<Prisma.EmailAttachmentUpdateWithoutEmailInput, Prisma.EmailAttachmentUncheckedUpdateWithoutEmailInput>
create: Prisma.XOR<Prisma.EmailAttachmentCreateWithoutEmailInput, Prisma.EmailAttachmentUncheckedCreateWithoutEmailInput>
}
export type EmailAttachmentUpdateWithWhereUniqueWithoutEmailInput = {
where: Prisma.EmailAttachmentWhereUniqueInput
data: Prisma.XOR<Prisma.EmailAttachmentUpdateWithoutEmailInput, Prisma.EmailAttachmentUncheckedUpdateWithoutEmailInput>
}
export type EmailAttachmentUpdateManyWithWhereWithoutEmailInput = {
where: Prisma.EmailAttachmentScalarWhereInput
data: Prisma.XOR<Prisma.EmailAttachmentUpdateManyMutationInput, Prisma.EmailAttachmentUncheckedUpdateManyWithoutEmailInput>
}
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
}, ExtArgs["result"]["emailAttachment"]>
export type EmailAttachmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
}, ExtArgs["result"]["emailAttachment"]>
export type EmailAttachmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = 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>
}, 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "emailId" | "name" | "type" | "length" | "content" | "publicUrl" | "storageBucket" | "storageProvider", ExtArgs["result"]["emailAttachment"]>
export type EmailAttachmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
email?: boolean | Prisma.EmailDefaultArgs<ExtArgs>
}
export type EmailAttachmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
email?: boolean | Prisma.EmailDefaultArgs<ExtArgs>
}
export type EmailAttachmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
email?: boolean | Prisma.EmailDefaultArgs<ExtArgs>
}
export type $EmailAttachmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "EmailAttachment"
objects: {
email: Prisma.$EmailPayload<ExtArgs>
}
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<S extends boolean | null | undefined | EmailAttachmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload, S>
export type EmailAttachmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<EmailAttachmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: EmailAttachmentCountAggregateInputType | true
}
export interface EmailAttachmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends EmailAttachmentFindUniqueArgs>(args: Prisma.SelectSubset<T, EmailAttachmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__EmailAttachmentClient<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, EmailAttachmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__EmailAttachmentClient<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentFindFirstArgs>(args?: Prisma.SelectSubset<T, EmailAttachmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__EmailAttachmentClient<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, EmailAttachmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__EmailAttachmentClient<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentFindManyArgs>(args?: Prisma.SelectSubset<T, EmailAttachmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentCreateArgs>(args: Prisma.SelectSubset<T, EmailAttachmentCreateArgs<ExtArgs>>): Prisma.Prisma__EmailAttachmentClient<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentCreateManyArgs>(args?: Prisma.SelectSubset<T, EmailAttachmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends EmailAttachmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, EmailAttachmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentDeleteArgs>(args: Prisma.SelectSubset<T, EmailAttachmentDeleteArgs<ExtArgs>>): Prisma.Prisma__EmailAttachmentClient<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentUpdateArgs>(args: Prisma.SelectSubset<T, EmailAttachmentUpdateArgs<ExtArgs>>): Prisma.Prisma__EmailAttachmentClient<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, EmailAttachmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends EmailAttachmentUpdateManyArgs>(args: Prisma.SelectSubset<T, EmailAttachmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* 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<T extends EmailAttachmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, EmailAttachmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentUpsertArgs>(args: Prisma.SelectSubset<T, EmailAttachmentUpsertArgs<ExtArgs>>): Prisma.Prisma__EmailAttachmentClient<runtime.Types.Result.GetResult<Prisma.$EmailAttachmentPayload<ExtArgs>, 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<T extends EmailAttachmentCountArgs>(
args?: Prisma.Subset<T, EmailAttachmentCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], EmailAttachmentCountAggregateOutputType>
: 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<T extends EmailAttachmentAggregateArgs>(args: Prisma.Subset<T, EmailAttachmentAggregateArgs>): Prisma.PrismaPromise<GetEmailAttachmentAggregateType<T>>
/**
* 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<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: EmailAttachmentGroupByArgs['orderBy'] }
: { orderBy?: EmailAttachmentGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
]
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
}[OrderFields]
>(args: Prisma.SubsetIntersection<T, EmailAttachmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailAttachmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
email<T extends Prisma.EmailDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EmailDefaultArgs<ExtArgs>>): Prisma.Prisma__EmailClient<runtime.Types.Result.GetResult<Prisma.$EmailPayload<ExtArgs>, 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<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | null
/**
* Filter, which EmailAttachment to fetch.
*/
where: Prisma.EmailAttachmentWhereUniqueInput
}
/**
* EmailAttachment findUniqueOrThrow
*/
export type EmailAttachmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | null
/**
* Filter, which EmailAttachment to fetch.
*/
where: Prisma.EmailAttachmentWhereUniqueInput
}
/**
* EmailAttachment findFirst
*/
export type EmailAttachmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | null
/**
* The data needed to create a EmailAttachment.
*/
data: Prisma.XOR<Prisma.EmailAttachmentCreateInput, Prisma.EmailAttachmentUncheckedCreateInput>
}
/**
* EmailAttachment createMany
*/
export type EmailAttachmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many EmailAttachments.
*/
data: Prisma.EmailAttachmentCreateManyInput | Prisma.EmailAttachmentCreateManyInput[]
skipDuplicates?: boolean
}
/**
* EmailAttachment createManyAndReturn
*/
export type EmailAttachmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | 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<ExtArgs> | null
}
/**
* EmailAttachment update
*/
export type EmailAttachmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | null
/**
* The data needed to update a EmailAttachment.
*/
data: Prisma.XOR<Prisma.EmailAttachmentUpdateInput, Prisma.EmailAttachmentUncheckedUpdateInput>
/**
* Choose, which EmailAttachment to update.
*/
where: Prisma.EmailAttachmentWhereUniqueInput
}
/**
* EmailAttachment updateMany
*/
export type EmailAttachmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update EmailAttachments.
*/
data: Prisma.XOR<Prisma.EmailAttachmentUpdateManyMutationInput, Prisma.EmailAttachmentUncheckedUpdateManyInput>
/**
* Filter which EmailAttachments to update
*/
where?: Prisma.EmailAttachmentWhereInput
/**
* Limit how many EmailAttachments to update.
*/
limit?: number
}
/**
* EmailAttachment updateManyAndReturn
*/
export type EmailAttachmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* The data used to update EmailAttachments.
*/
data: Prisma.XOR<Prisma.EmailAttachmentUpdateManyMutationInput, Prisma.EmailAttachmentUncheckedUpdateManyInput>
/**
* 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<ExtArgs> | null
}
/**
* EmailAttachment upsert
*/
export type EmailAttachmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | 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<Prisma.EmailAttachmentCreateInput, Prisma.EmailAttachmentUncheckedCreateInput>
/**
* In case the EmailAttachment was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.EmailAttachmentUpdateInput, Prisma.EmailAttachmentUncheckedUpdateInput>
}
/**
* EmailAttachment delete
*/
export type EmailAttachmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | null
/**
* Filter which EmailAttachment to delete.
*/
where: Prisma.EmailAttachmentWhereUniqueInput
}
/**
* EmailAttachment deleteMany
*/
export type EmailAttachmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which EmailAttachments to delete
*/
where?: Prisma.EmailAttachmentWhereInput
/**
* Limit how many EmailAttachments to delete.
*/
limit?: number
}
/**
* EmailAttachment without action
*/
export type EmailAttachmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the EmailAttachment
*/
select?: Prisma.EmailAttachmentSelect<ExtArgs> | null
/**
* Omit specific fields from the EmailAttachment
*/
omit?: Prisma.EmailAttachmentOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.EmailAttachmentInclude<ExtArgs> | null
}