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