2321 lines
104 KiB
TypeScript
2321 lines
104 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 `EmailIntegrationMessage` 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 EmailIntegrationMessage
|
|
* Mirror of a provider message. Tenant-scoped; visibility is owner-filtered in
|
|
* code (email.read_own vs read_all). Archiving is HiveGrid-side only — the
|
|
* provider mailbox is never mutated by archive. `internetMessageId` (RFC 5322)
|
|
* is the cross-provider dedupe key: Graph sendMail returns 202 without an id,
|
|
* so the sent-items delta re-ingest must collapse onto the local outbound mirror.
|
|
*/
|
|
export type EmailIntegrationMessageModel = runtime.Types.Result.DefaultSelection<Prisma.$EmailIntegrationMessagePayload>
|
|
|
|
export type AggregateEmailIntegrationMessage = {
|
|
_count: EmailIntegrationMessageCountAggregateOutputType | null
|
|
_min: EmailIntegrationMessageMinAggregateOutputType | null
|
|
_max: EmailIntegrationMessageMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
mailboxId: string | null
|
|
providerMessageId: string | null
|
|
providerThreadId: string | null
|
|
internetMessageId: string | null
|
|
direction: $Enums.EmailDirection | null
|
|
fromAddress: string | null
|
|
fromName: string | null
|
|
subject: string | null
|
|
snippet: string | null
|
|
bodyHtml: string | null
|
|
bodyText: string | null
|
|
sentAt: Date | null
|
|
receivedAt: Date | null
|
|
isRead: boolean | null
|
|
isStarred: boolean | null
|
|
isNewsletter: boolean | null
|
|
hasAttachments: boolean | null
|
|
matchedKontaktId: string | null
|
|
matchedLeadId: string | null
|
|
matchedProjektId: string | null
|
|
matchConfidence: $Enums.EmailMatchConfidence | null
|
|
manualOverrideAt: Date | null
|
|
manualOverrideUserId: string | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
mailboxId: string | null
|
|
providerMessageId: string | null
|
|
providerThreadId: string | null
|
|
internetMessageId: string | null
|
|
direction: $Enums.EmailDirection | null
|
|
fromAddress: string | null
|
|
fromName: string | null
|
|
subject: string | null
|
|
snippet: string | null
|
|
bodyHtml: string | null
|
|
bodyText: string | null
|
|
sentAt: Date | null
|
|
receivedAt: Date | null
|
|
isRead: boolean | null
|
|
isStarred: boolean | null
|
|
isNewsletter: boolean | null
|
|
hasAttachments: boolean | null
|
|
matchedKontaktId: string | null
|
|
matchedLeadId: string | null
|
|
matchedProjektId: string | null
|
|
matchConfidence: $Enums.EmailMatchConfidence | null
|
|
manualOverrideAt: Date | null
|
|
manualOverrideUserId: string | null
|
|
isDemoData: boolean | null
|
|
archivedAt: Date | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
mailboxId: number
|
|
providerMessageId: number
|
|
providerThreadId: number
|
|
internetMessageId: number
|
|
direction: number
|
|
fromAddress: number
|
|
fromName: number
|
|
toAddresses: number
|
|
ccAddresses: number
|
|
bccAddresses: number
|
|
subject: number
|
|
snippet: number
|
|
bodyHtml: number
|
|
bodyText: number
|
|
sentAt: number
|
|
receivedAt: number
|
|
isRead: number
|
|
isStarred: number
|
|
isNewsletter: number
|
|
hasAttachments: number
|
|
providerLabels: number
|
|
matchedKontaktId: number
|
|
matchedLeadId: number
|
|
matchedProjektId: number
|
|
matchConfidence: number
|
|
manualOverrideAt: number
|
|
manualOverrideUserId: number
|
|
isDemoData: number
|
|
archivedAt: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type EmailIntegrationMessageMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
mailboxId?: true
|
|
providerMessageId?: true
|
|
providerThreadId?: true
|
|
internetMessageId?: true
|
|
direction?: true
|
|
fromAddress?: true
|
|
fromName?: true
|
|
subject?: true
|
|
snippet?: true
|
|
bodyHtml?: true
|
|
bodyText?: true
|
|
sentAt?: true
|
|
receivedAt?: true
|
|
isRead?: true
|
|
isStarred?: true
|
|
isNewsletter?: true
|
|
hasAttachments?: true
|
|
matchedKontaktId?: true
|
|
matchedLeadId?: true
|
|
matchedProjektId?: true
|
|
matchConfidence?: true
|
|
manualOverrideAt?: true
|
|
manualOverrideUserId?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type EmailIntegrationMessageMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
mailboxId?: true
|
|
providerMessageId?: true
|
|
providerThreadId?: true
|
|
internetMessageId?: true
|
|
direction?: true
|
|
fromAddress?: true
|
|
fromName?: true
|
|
subject?: true
|
|
snippet?: true
|
|
bodyHtml?: true
|
|
bodyText?: true
|
|
sentAt?: true
|
|
receivedAt?: true
|
|
isRead?: true
|
|
isStarred?: true
|
|
isNewsletter?: true
|
|
hasAttachments?: true
|
|
matchedKontaktId?: true
|
|
matchedLeadId?: true
|
|
matchedProjektId?: true
|
|
matchConfidence?: true
|
|
manualOverrideAt?: true
|
|
manualOverrideUserId?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
}
|
|
|
|
export type EmailIntegrationMessageCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
mailboxId?: true
|
|
providerMessageId?: true
|
|
providerThreadId?: true
|
|
internetMessageId?: true
|
|
direction?: true
|
|
fromAddress?: true
|
|
fromName?: true
|
|
toAddresses?: true
|
|
ccAddresses?: true
|
|
bccAddresses?: true
|
|
subject?: true
|
|
snippet?: true
|
|
bodyHtml?: true
|
|
bodyText?: true
|
|
sentAt?: true
|
|
receivedAt?: true
|
|
isRead?: true
|
|
isStarred?: true
|
|
isNewsletter?: true
|
|
hasAttachments?: true
|
|
providerLabels?: true
|
|
matchedKontaktId?: true
|
|
matchedLeadId?: true
|
|
matchedProjektId?: true
|
|
matchConfidence?: true
|
|
manualOverrideAt?: true
|
|
manualOverrideUserId?: true
|
|
isDemoData?: true
|
|
archivedAt?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type EmailIntegrationMessageAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EmailIntegrationMessage to aggregate.
|
|
*/
|
|
where?: Prisma.EmailIntegrationMessageWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EmailIntegrationMessages to fetch.
|
|
*/
|
|
orderBy?: Prisma.EmailIntegrationMessageOrderByWithRelationInput | Prisma.EmailIntegrationMessageOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EmailIntegrationMessages 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` EmailIntegrationMessages.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned EmailIntegrationMessages
|
|
**/
|
|
_count?: true | EmailIntegrationMessageCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: EmailIntegrationMessageMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: EmailIntegrationMessageMaxAggregateInputType
|
|
}
|
|
|
|
export type GetEmailIntegrationMessageAggregateType<T extends EmailIntegrationMessageAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateEmailIntegrationMessage]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateEmailIntegrationMessage[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateEmailIntegrationMessage[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type EmailIntegrationMessageGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.EmailIntegrationMessageWhereInput
|
|
orderBy?: Prisma.EmailIntegrationMessageOrderByWithAggregationInput | Prisma.EmailIntegrationMessageOrderByWithAggregationInput[]
|
|
by: Prisma.EmailIntegrationMessageScalarFieldEnum[] | Prisma.EmailIntegrationMessageScalarFieldEnum
|
|
having?: Prisma.EmailIntegrationMessageScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: EmailIntegrationMessageCountAggregateInputType | true
|
|
_min?: EmailIntegrationMessageMinAggregateInputType
|
|
_max?: EmailIntegrationMessageMaxAggregateInputType
|
|
}
|
|
|
|
export type EmailIntegrationMessageGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
mailboxId: string
|
|
providerMessageId: string
|
|
providerThreadId: string | null
|
|
internetMessageId: string | null
|
|
direction: $Enums.EmailDirection
|
|
fromAddress: string
|
|
fromName: string | null
|
|
toAddresses: runtime.JsonValue
|
|
ccAddresses: runtime.JsonValue
|
|
bccAddresses: runtime.JsonValue
|
|
subject: string | null
|
|
snippet: string | null
|
|
bodyHtml: string | null
|
|
bodyText: string | null
|
|
sentAt: Date
|
|
receivedAt: Date | null
|
|
isRead: boolean
|
|
isStarred: boolean
|
|
isNewsletter: boolean
|
|
hasAttachments: boolean
|
|
providerLabels: runtime.JsonValue
|
|
matchedKontaktId: string | null
|
|
matchedLeadId: string | null
|
|
matchedProjektId: string | null
|
|
matchConfidence: $Enums.EmailMatchConfidence
|
|
manualOverrideAt: Date | null
|
|
manualOverrideUserId: string | null
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
_count: EmailIntegrationMessageCountAggregateOutputType | null
|
|
_min: EmailIntegrationMessageMinAggregateOutputType | null
|
|
_max: EmailIntegrationMessageMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetEmailIntegrationMessageGroupByPayload<T extends EmailIntegrationMessageGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<EmailIntegrationMessageGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof EmailIntegrationMessageGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], EmailIntegrationMessageGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], EmailIntegrationMessageGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type EmailIntegrationMessageWhereInput = {
|
|
AND?: Prisma.EmailIntegrationMessageWhereInput | Prisma.EmailIntegrationMessageWhereInput[]
|
|
OR?: Prisma.EmailIntegrationMessageWhereInput[]
|
|
NOT?: Prisma.EmailIntegrationMessageWhereInput | Prisma.EmailIntegrationMessageWhereInput[]
|
|
id?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"EmailIntegrationMessage"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"EmailIntegrationMessage"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
mailboxId?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
providerMessageId?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
providerThreadId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
internetMessageId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
direction?: Prisma.EnumEmailDirectionFilter<"EmailIntegrationMessage"> | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
fromName?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
toAddresses?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
ccAddresses?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
bccAddresses?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
subject?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
snippet?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
bodyHtml?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
bodyText?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
sentAt?: Prisma.DateTimeFilter<"EmailIntegrationMessage"> | Date | string
|
|
receivedAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
isRead?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
isStarred?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
isNewsletter?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
hasAttachments?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
providerLabels?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
matchedKontaktId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
matchedLeadId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
matchedProjektId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFilter<"EmailIntegrationMessage"> | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
manualOverrideUserId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
mailbox?: Prisma.XOR<Prisma.EmailIntegrationMailboxScalarRelationFilter, Prisma.EmailIntegrationMailboxWhereInput>
|
|
}
|
|
|
|
export type EmailIntegrationMessageOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerMessageId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
internetMessageId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
fromAddress?: Prisma.SortOrder
|
|
fromName?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
toAddresses?: Prisma.SortOrder
|
|
ccAddresses?: Prisma.SortOrder
|
|
bccAddresses?: Prisma.SortOrder
|
|
subject?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
snippet?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
bodyHtml?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
bodyText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
sentAt?: Prisma.SortOrder
|
|
receivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isRead?: Prisma.SortOrder
|
|
isStarred?: Prisma.SortOrder
|
|
isNewsletter?: Prisma.SortOrder
|
|
hasAttachments?: Prisma.SortOrder
|
|
providerLabels?: Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
mailbox?: Prisma.EmailIntegrationMailboxOrderByWithRelationInput
|
|
}
|
|
|
|
export type EmailIntegrationMessageWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
tenantId_mailboxId_providerMessageId?: Prisma.EmailIntegrationMessageTenantIdMailboxIdProviderMessageIdCompoundUniqueInput
|
|
AND?: Prisma.EmailIntegrationMessageWhereInput | Prisma.EmailIntegrationMessageWhereInput[]
|
|
OR?: Prisma.EmailIntegrationMessageWhereInput[]
|
|
NOT?: Prisma.EmailIntegrationMessageWhereInput | Prisma.EmailIntegrationMessageWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"EmailIntegrationMessage"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"EmailIntegrationMessage"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
mailboxId?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
providerMessageId?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
providerThreadId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
internetMessageId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
direction?: Prisma.EnumEmailDirectionFilter<"EmailIntegrationMessage"> | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
fromName?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
toAddresses?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
ccAddresses?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
bccAddresses?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
subject?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
snippet?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
bodyHtml?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
bodyText?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
sentAt?: Prisma.DateTimeFilter<"EmailIntegrationMessage"> | Date | string
|
|
receivedAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
isRead?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
isStarred?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
isNewsletter?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
hasAttachments?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
providerLabels?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
matchedKontaktId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
matchedLeadId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
matchedProjektId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFilter<"EmailIntegrationMessage"> | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
manualOverrideUserId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
mailbox?: Prisma.XOR<Prisma.EmailIntegrationMailboxScalarRelationFilter, Prisma.EmailIntegrationMailboxWhereInput>
|
|
}, "id" | "tenantId_mailboxId_providerMessageId">
|
|
|
|
export type EmailIntegrationMessageOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerMessageId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
internetMessageId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
fromAddress?: Prisma.SortOrder
|
|
fromName?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
toAddresses?: Prisma.SortOrder
|
|
ccAddresses?: Prisma.SortOrder
|
|
bccAddresses?: Prisma.SortOrder
|
|
subject?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
snippet?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
bodyHtml?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
bodyText?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
sentAt?: Prisma.SortOrder
|
|
receivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isRead?: Prisma.SortOrder
|
|
isStarred?: Prisma.SortOrder
|
|
isNewsletter?: Prisma.SortOrder
|
|
hasAttachments?: Prisma.SortOrder
|
|
providerLabels?: Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
_count?: Prisma.EmailIntegrationMessageCountOrderByAggregateInput
|
|
_max?: Prisma.EmailIntegrationMessageMaxOrderByAggregateInput
|
|
_min?: Prisma.EmailIntegrationMessageMinOrderByAggregateInput
|
|
}
|
|
|
|
export type EmailIntegrationMessageScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.EmailIntegrationMessageScalarWhereWithAggregatesInput | Prisma.EmailIntegrationMessageScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.EmailIntegrationMessageScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.EmailIntegrationMessageScalarWhereWithAggregatesInput | Prisma.EmailIntegrationMessageScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"EmailIntegrationMessage"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"EmailIntegrationMessage"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"EmailIntegrationMessage"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"EmailIntegrationMessage"> | string
|
|
mailboxId?: Prisma.StringWithAggregatesFilter<"EmailIntegrationMessage"> | string
|
|
providerMessageId?: Prisma.StringWithAggregatesFilter<"EmailIntegrationMessage"> | string
|
|
providerThreadId?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
internetMessageId?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
direction?: Prisma.EnumEmailDirectionWithAggregatesFilter<"EmailIntegrationMessage"> | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringWithAggregatesFilter<"EmailIntegrationMessage"> | string
|
|
fromName?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
toAddresses?: Prisma.JsonWithAggregatesFilter<"EmailIntegrationMessage">
|
|
ccAddresses?: Prisma.JsonWithAggregatesFilter<"EmailIntegrationMessage">
|
|
bccAddresses?: Prisma.JsonWithAggregatesFilter<"EmailIntegrationMessage">
|
|
subject?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
snippet?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
bodyHtml?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
bodyText?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
sentAt?: Prisma.DateTimeWithAggregatesFilter<"EmailIntegrationMessage"> | Date | string
|
|
receivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
isRead?: Prisma.BoolWithAggregatesFilter<"EmailIntegrationMessage"> | boolean
|
|
isStarred?: Prisma.BoolWithAggregatesFilter<"EmailIntegrationMessage"> | boolean
|
|
isNewsletter?: Prisma.BoolWithAggregatesFilter<"EmailIntegrationMessage"> | boolean
|
|
hasAttachments?: Prisma.BoolWithAggregatesFilter<"EmailIntegrationMessage"> | boolean
|
|
providerLabels?: Prisma.JsonWithAggregatesFilter<"EmailIntegrationMessage">
|
|
matchedKontaktId?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
matchedLeadId?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
matchedProjektId?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceWithAggregatesFilter<"EmailIntegrationMessage"> | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
manualOverrideUserId?: Prisma.StringNullableWithAggregatesFilter<"EmailIntegrationMessage"> | string | null
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"EmailIntegrationMessage"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerMessageId: string
|
|
providerThreadId?: string | null
|
|
internetMessageId?: string | null
|
|
direction: $Enums.EmailDirection
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: string | null
|
|
snippet?: string | null
|
|
bodyHtml?: string | null
|
|
bodyText?: string | null
|
|
sentAt: Date | string
|
|
receivedAt?: Date | string | null
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
mailbox: Prisma.EmailIntegrationMailboxCreateNestedOneWithoutMessagesInput
|
|
}
|
|
|
|
export type EmailIntegrationMessageUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
mailboxId: string
|
|
providerMessageId: string
|
|
providerThreadId?: string | null
|
|
internetMessageId?: string | null
|
|
direction: $Enums.EmailDirection
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: string | null
|
|
snippet?: string | null
|
|
bodyHtml?: string | null
|
|
bodyText?: string | null
|
|
sentAt: Date | string
|
|
receivedAt?: Date | string | null
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internetMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumEmailDirectionFieldUpdateOperationsInput | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
snippet?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyHtml?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
sentAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
receivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isNewsletter?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
hasAttachments?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFieldUpdateOperationsInput | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
mailbox?: Prisma.EmailIntegrationMailboxUpdateOneRequiredWithoutMessagesNestedInput
|
|
}
|
|
|
|
export type EmailIntegrationMessageUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internetMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumEmailDirectionFieldUpdateOperationsInput | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
snippet?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyHtml?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
sentAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
receivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isNewsletter?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
hasAttachments?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFieldUpdateOperationsInput | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
mailboxId: string
|
|
providerMessageId: string
|
|
providerThreadId?: string | null
|
|
internetMessageId?: string | null
|
|
direction: $Enums.EmailDirection
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: string | null
|
|
snippet?: string | null
|
|
bodyHtml?: string | null
|
|
bodyText?: string | null
|
|
sentAt: Date | string
|
|
receivedAt?: Date | string | null
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internetMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumEmailDirectionFieldUpdateOperationsInput | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
snippet?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyHtml?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
sentAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
receivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isNewsletter?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
hasAttachments?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFieldUpdateOperationsInput | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internetMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumEmailDirectionFieldUpdateOperationsInput | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
snippet?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyHtml?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
sentAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
receivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isNewsletter?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
hasAttachments?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFieldUpdateOperationsInput | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageListRelationFilter = {
|
|
every?: Prisma.EmailIntegrationMessageWhereInput
|
|
some?: Prisma.EmailIntegrationMessageWhereInput
|
|
none?: Prisma.EmailIntegrationMessageWhereInput
|
|
}
|
|
|
|
export type EmailIntegrationMessageOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type EmailIntegrationMessageTenantIdMailboxIdProviderMessageIdCompoundUniqueInput = {
|
|
tenantId: string
|
|
mailboxId: string
|
|
providerMessageId: string
|
|
}
|
|
|
|
export type EmailIntegrationMessageCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerMessageId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrder
|
|
internetMessageId?: Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
fromAddress?: Prisma.SortOrder
|
|
fromName?: Prisma.SortOrder
|
|
toAddresses?: Prisma.SortOrder
|
|
ccAddresses?: Prisma.SortOrder
|
|
bccAddresses?: Prisma.SortOrder
|
|
subject?: Prisma.SortOrder
|
|
snippet?: Prisma.SortOrder
|
|
bodyHtml?: Prisma.SortOrder
|
|
bodyText?: Prisma.SortOrder
|
|
sentAt?: Prisma.SortOrder
|
|
receivedAt?: Prisma.SortOrder
|
|
isRead?: Prisma.SortOrder
|
|
isStarred?: Prisma.SortOrder
|
|
isNewsletter?: Prisma.SortOrder
|
|
hasAttachments?: Prisma.SortOrder
|
|
providerLabels?: Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type EmailIntegrationMessageMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerMessageId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrder
|
|
internetMessageId?: Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
fromAddress?: Prisma.SortOrder
|
|
fromName?: Prisma.SortOrder
|
|
subject?: Prisma.SortOrder
|
|
snippet?: Prisma.SortOrder
|
|
bodyHtml?: Prisma.SortOrder
|
|
bodyText?: Prisma.SortOrder
|
|
sentAt?: Prisma.SortOrder
|
|
receivedAt?: Prisma.SortOrder
|
|
isRead?: Prisma.SortOrder
|
|
isStarred?: Prisma.SortOrder
|
|
isNewsletter?: Prisma.SortOrder
|
|
hasAttachments?: Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type EmailIntegrationMessageMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerMessageId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrder
|
|
internetMessageId?: Prisma.SortOrder
|
|
direction?: Prisma.SortOrder
|
|
fromAddress?: Prisma.SortOrder
|
|
fromName?: Prisma.SortOrder
|
|
subject?: Prisma.SortOrder
|
|
snippet?: Prisma.SortOrder
|
|
bodyHtml?: Prisma.SortOrder
|
|
bodyText?: Prisma.SortOrder
|
|
sentAt?: Prisma.SortOrder
|
|
receivedAt?: Prisma.SortOrder
|
|
isRead?: Prisma.SortOrder
|
|
isStarred?: Prisma.SortOrder
|
|
isNewsletter?: Prisma.SortOrder
|
|
hasAttachments?: Prisma.SortOrder
|
|
matchedKontaktId?: Prisma.SortOrder
|
|
matchedLeadId?: Prisma.SortOrder
|
|
matchedProjektId?: Prisma.SortOrder
|
|
matchConfidence?: Prisma.SortOrder
|
|
manualOverrideAt?: Prisma.SortOrder
|
|
manualOverrideUserId?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
}
|
|
|
|
export type EmailIntegrationMessageCreateNestedManyWithoutMailboxInput = {
|
|
create?: Prisma.XOR<Prisma.EmailIntegrationMessageCreateWithoutMailboxInput, Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput> | Prisma.EmailIntegrationMessageCreateWithoutMailboxInput[] | Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput[]
|
|
connectOrCreate?: Prisma.EmailIntegrationMessageCreateOrConnectWithoutMailboxInput | Prisma.EmailIntegrationMessageCreateOrConnectWithoutMailboxInput[]
|
|
createMany?: Prisma.EmailIntegrationMessageCreateManyMailboxInputEnvelope
|
|
connect?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
}
|
|
|
|
export type EmailIntegrationMessageUncheckedCreateNestedManyWithoutMailboxInput = {
|
|
create?: Prisma.XOR<Prisma.EmailIntegrationMessageCreateWithoutMailboxInput, Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput> | Prisma.EmailIntegrationMessageCreateWithoutMailboxInput[] | Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput[]
|
|
connectOrCreate?: Prisma.EmailIntegrationMessageCreateOrConnectWithoutMailboxInput | Prisma.EmailIntegrationMessageCreateOrConnectWithoutMailboxInput[]
|
|
createMany?: Prisma.EmailIntegrationMessageCreateManyMailboxInputEnvelope
|
|
connect?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
}
|
|
|
|
export type EmailIntegrationMessageUpdateManyWithoutMailboxNestedInput = {
|
|
create?: Prisma.XOR<Prisma.EmailIntegrationMessageCreateWithoutMailboxInput, Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput> | Prisma.EmailIntegrationMessageCreateWithoutMailboxInput[] | Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput[]
|
|
connectOrCreate?: Prisma.EmailIntegrationMessageCreateOrConnectWithoutMailboxInput | Prisma.EmailIntegrationMessageCreateOrConnectWithoutMailboxInput[]
|
|
upsert?: Prisma.EmailIntegrationMessageUpsertWithWhereUniqueWithoutMailboxInput | Prisma.EmailIntegrationMessageUpsertWithWhereUniqueWithoutMailboxInput[]
|
|
createMany?: Prisma.EmailIntegrationMessageCreateManyMailboxInputEnvelope
|
|
set?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
disconnect?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
delete?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
connect?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
update?: Prisma.EmailIntegrationMessageUpdateWithWhereUniqueWithoutMailboxInput | Prisma.EmailIntegrationMessageUpdateWithWhereUniqueWithoutMailboxInput[]
|
|
updateMany?: Prisma.EmailIntegrationMessageUpdateManyWithWhereWithoutMailboxInput | Prisma.EmailIntegrationMessageUpdateManyWithWhereWithoutMailboxInput[]
|
|
deleteMany?: Prisma.EmailIntegrationMessageScalarWhereInput | Prisma.EmailIntegrationMessageScalarWhereInput[]
|
|
}
|
|
|
|
export type EmailIntegrationMessageUncheckedUpdateManyWithoutMailboxNestedInput = {
|
|
create?: Prisma.XOR<Prisma.EmailIntegrationMessageCreateWithoutMailboxInput, Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput> | Prisma.EmailIntegrationMessageCreateWithoutMailboxInput[] | Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput[]
|
|
connectOrCreate?: Prisma.EmailIntegrationMessageCreateOrConnectWithoutMailboxInput | Prisma.EmailIntegrationMessageCreateOrConnectWithoutMailboxInput[]
|
|
upsert?: Prisma.EmailIntegrationMessageUpsertWithWhereUniqueWithoutMailboxInput | Prisma.EmailIntegrationMessageUpsertWithWhereUniqueWithoutMailboxInput[]
|
|
createMany?: Prisma.EmailIntegrationMessageCreateManyMailboxInputEnvelope
|
|
set?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
disconnect?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
delete?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
connect?: Prisma.EmailIntegrationMessageWhereUniqueInput | Prisma.EmailIntegrationMessageWhereUniqueInput[]
|
|
update?: Prisma.EmailIntegrationMessageUpdateWithWhereUniqueWithoutMailboxInput | Prisma.EmailIntegrationMessageUpdateWithWhereUniqueWithoutMailboxInput[]
|
|
updateMany?: Prisma.EmailIntegrationMessageUpdateManyWithWhereWithoutMailboxInput | Prisma.EmailIntegrationMessageUpdateManyWithWhereWithoutMailboxInput[]
|
|
deleteMany?: Prisma.EmailIntegrationMessageScalarWhereInput | Prisma.EmailIntegrationMessageScalarWhereInput[]
|
|
}
|
|
|
|
export type EnumEmailDirectionFieldUpdateOperationsInput = {
|
|
set?: $Enums.EmailDirection
|
|
}
|
|
|
|
export type EnumEmailMatchConfidenceFieldUpdateOperationsInput = {
|
|
set?: $Enums.EmailMatchConfidence
|
|
}
|
|
|
|
export type EmailIntegrationMessageCreateWithoutMailboxInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerMessageId: string
|
|
providerThreadId?: string | null
|
|
internetMessageId?: string | null
|
|
direction: $Enums.EmailDirection
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: string | null
|
|
snippet?: string | null
|
|
bodyHtml?: string | null
|
|
bodyText?: string | null
|
|
sentAt: Date | string
|
|
receivedAt?: Date | string | null
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageUncheckedCreateWithoutMailboxInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerMessageId: string
|
|
providerThreadId?: string | null
|
|
internetMessageId?: string | null
|
|
direction: $Enums.EmailDirection
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: string | null
|
|
snippet?: string | null
|
|
bodyHtml?: string | null
|
|
bodyText?: string | null
|
|
sentAt: Date | string
|
|
receivedAt?: Date | string | null
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageCreateOrConnectWithoutMailboxInput = {
|
|
where: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.EmailIntegrationMessageCreateWithoutMailboxInput, Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput>
|
|
}
|
|
|
|
export type EmailIntegrationMessageCreateManyMailboxInputEnvelope = {
|
|
data: Prisma.EmailIntegrationMessageCreateManyMailboxInput | Prisma.EmailIntegrationMessageCreateManyMailboxInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type EmailIntegrationMessageUpsertWithWhereUniqueWithoutMailboxInput = {
|
|
where: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.EmailIntegrationMessageUpdateWithoutMailboxInput, Prisma.EmailIntegrationMessageUncheckedUpdateWithoutMailboxInput>
|
|
create: Prisma.XOR<Prisma.EmailIntegrationMessageCreateWithoutMailboxInput, Prisma.EmailIntegrationMessageUncheckedCreateWithoutMailboxInput>
|
|
}
|
|
|
|
export type EmailIntegrationMessageUpdateWithWhereUniqueWithoutMailboxInput = {
|
|
where: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.EmailIntegrationMessageUpdateWithoutMailboxInput, Prisma.EmailIntegrationMessageUncheckedUpdateWithoutMailboxInput>
|
|
}
|
|
|
|
export type EmailIntegrationMessageUpdateManyWithWhereWithoutMailboxInput = {
|
|
where: Prisma.EmailIntegrationMessageScalarWhereInput
|
|
data: Prisma.XOR<Prisma.EmailIntegrationMessageUpdateManyMutationInput, Prisma.EmailIntegrationMessageUncheckedUpdateManyWithoutMailboxInput>
|
|
}
|
|
|
|
export type EmailIntegrationMessageScalarWhereInput = {
|
|
AND?: Prisma.EmailIntegrationMessageScalarWhereInput | Prisma.EmailIntegrationMessageScalarWhereInput[]
|
|
OR?: Prisma.EmailIntegrationMessageScalarWhereInput[]
|
|
NOT?: Prisma.EmailIntegrationMessageScalarWhereInput | Prisma.EmailIntegrationMessageScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"EmailIntegrationMessage"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"EmailIntegrationMessage"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
mailboxId?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
providerMessageId?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
providerThreadId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
internetMessageId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
direction?: Prisma.EnumEmailDirectionFilter<"EmailIntegrationMessage"> | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFilter<"EmailIntegrationMessage"> | string
|
|
fromName?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
toAddresses?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
ccAddresses?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
bccAddresses?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
subject?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
snippet?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
bodyHtml?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
bodyText?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
sentAt?: Prisma.DateTimeFilter<"EmailIntegrationMessage"> | Date | string
|
|
receivedAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
isRead?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
isStarred?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
isNewsletter?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
hasAttachments?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
providerLabels?: Prisma.JsonFilter<"EmailIntegrationMessage">
|
|
matchedKontaktId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
matchedLeadId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
matchedProjektId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFilter<"EmailIntegrationMessage"> | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
manualOverrideUserId?: Prisma.StringNullableFilter<"EmailIntegrationMessage"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"EmailIntegrationMessage"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"EmailIntegrationMessage"> | Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageCreateManyMailboxInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerMessageId: string
|
|
providerThreadId?: string | null
|
|
internetMessageId?: string | null
|
|
direction: $Enums.EmailDirection
|
|
fromAddress: string
|
|
fromName?: string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: string | null
|
|
snippet?: string | null
|
|
bodyHtml?: string | null
|
|
bodyText?: string | null
|
|
sentAt: Date | string
|
|
receivedAt?: Date | string | null
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: string | null
|
|
matchedLeadId?: string | null
|
|
matchedProjektId?: string | null
|
|
matchConfidence?: $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Date | string | null
|
|
manualOverrideUserId?: string | null
|
|
isDemoData?: boolean
|
|
archivedAt?: Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageUpdateWithoutMailboxInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internetMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumEmailDirectionFieldUpdateOperationsInput | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
snippet?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyHtml?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
sentAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
receivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isNewsletter?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
hasAttachments?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFieldUpdateOperationsInput | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageUncheckedUpdateWithoutMailboxInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internetMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumEmailDirectionFieldUpdateOperationsInput | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
snippet?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyHtml?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
sentAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
receivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isNewsletter?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
hasAttachments?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFieldUpdateOperationsInput | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
export type EmailIntegrationMessageUncheckedUpdateManyWithoutMailboxInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
internetMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
direction?: Prisma.EnumEmailDirectionFieldUpdateOperationsInput | $Enums.EmailDirection
|
|
fromAddress?: Prisma.StringFieldUpdateOperationsInput | string
|
|
fromName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
toAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
ccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
bccAddresses?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
subject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
snippet?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyHtml?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
sentAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
receivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
isRead?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isStarred?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
isNewsletter?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
hasAttachments?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
providerLabels?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
matchedKontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedLeadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchedProjektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
matchConfidence?: Prisma.EnumEmailMatchConfidenceFieldUpdateOperationsInput | $Enums.EmailMatchConfidence
|
|
manualOverrideAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
manualOverrideUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
}
|
|
|
|
|
|
|
|
export type EmailIntegrationMessageSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
mailboxId?: boolean
|
|
providerMessageId?: boolean
|
|
providerThreadId?: boolean
|
|
internetMessageId?: boolean
|
|
direction?: boolean
|
|
fromAddress?: boolean
|
|
fromName?: boolean
|
|
toAddresses?: boolean
|
|
ccAddresses?: boolean
|
|
bccAddresses?: boolean
|
|
subject?: boolean
|
|
snippet?: boolean
|
|
bodyHtml?: boolean
|
|
bodyText?: boolean
|
|
sentAt?: boolean
|
|
receivedAt?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: boolean
|
|
matchedKontaktId?: boolean
|
|
matchedLeadId?: boolean
|
|
matchedProjektId?: boolean
|
|
matchConfidence?: boolean
|
|
manualOverrideAt?: boolean
|
|
manualOverrideUserId?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["emailIntegrationMessage"]>
|
|
|
|
export type EmailIntegrationMessageSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
mailboxId?: boolean
|
|
providerMessageId?: boolean
|
|
providerThreadId?: boolean
|
|
internetMessageId?: boolean
|
|
direction?: boolean
|
|
fromAddress?: boolean
|
|
fromName?: boolean
|
|
toAddresses?: boolean
|
|
ccAddresses?: boolean
|
|
bccAddresses?: boolean
|
|
subject?: boolean
|
|
snippet?: boolean
|
|
bodyHtml?: boolean
|
|
bodyText?: boolean
|
|
sentAt?: boolean
|
|
receivedAt?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: boolean
|
|
matchedKontaktId?: boolean
|
|
matchedLeadId?: boolean
|
|
matchedProjektId?: boolean
|
|
matchConfidence?: boolean
|
|
manualOverrideAt?: boolean
|
|
manualOverrideUserId?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["emailIntegrationMessage"]>
|
|
|
|
export type EmailIntegrationMessageSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
mailboxId?: boolean
|
|
providerMessageId?: boolean
|
|
providerThreadId?: boolean
|
|
internetMessageId?: boolean
|
|
direction?: boolean
|
|
fromAddress?: boolean
|
|
fromName?: boolean
|
|
toAddresses?: boolean
|
|
ccAddresses?: boolean
|
|
bccAddresses?: boolean
|
|
subject?: boolean
|
|
snippet?: boolean
|
|
bodyHtml?: boolean
|
|
bodyText?: boolean
|
|
sentAt?: boolean
|
|
receivedAt?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: boolean
|
|
matchedKontaktId?: boolean
|
|
matchedLeadId?: boolean
|
|
matchedProjektId?: boolean
|
|
matchConfidence?: boolean
|
|
manualOverrideAt?: boolean
|
|
manualOverrideUserId?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["emailIntegrationMessage"]>
|
|
|
|
export type EmailIntegrationMessageSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
mailboxId?: boolean
|
|
providerMessageId?: boolean
|
|
providerThreadId?: boolean
|
|
internetMessageId?: boolean
|
|
direction?: boolean
|
|
fromAddress?: boolean
|
|
fromName?: boolean
|
|
toAddresses?: boolean
|
|
ccAddresses?: boolean
|
|
bccAddresses?: boolean
|
|
subject?: boolean
|
|
snippet?: boolean
|
|
bodyHtml?: boolean
|
|
bodyText?: boolean
|
|
sentAt?: boolean
|
|
receivedAt?: boolean
|
|
isRead?: boolean
|
|
isStarred?: boolean
|
|
isNewsletter?: boolean
|
|
hasAttachments?: boolean
|
|
providerLabels?: boolean
|
|
matchedKontaktId?: boolean
|
|
matchedLeadId?: boolean
|
|
matchedProjektId?: boolean
|
|
matchConfidence?: boolean
|
|
manualOverrideAt?: boolean
|
|
manualOverrideUserId?: boolean
|
|
isDemoData?: boolean
|
|
archivedAt?: boolean
|
|
}
|
|
|
|
export type EmailIntegrationMessageOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "mailboxId" | "providerMessageId" | "providerThreadId" | "internetMessageId" | "direction" | "fromAddress" | "fromName" | "toAddresses" | "ccAddresses" | "bccAddresses" | "subject" | "snippet" | "bodyHtml" | "bodyText" | "sentAt" | "receivedAt" | "isRead" | "isStarred" | "isNewsletter" | "hasAttachments" | "providerLabels" | "matchedKontaktId" | "matchedLeadId" | "matchedProjektId" | "matchConfidence" | "manualOverrideAt" | "manualOverrideUserId" | "isDemoData" | "archivedAt", ExtArgs["result"]["emailIntegrationMessage"]>
|
|
export type EmailIntegrationMessageInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs<ExtArgs>
|
|
}
|
|
export type EmailIntegrationMessageIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs<ExtArgs>
|
|
}
|
|
export type EmailIntegrationMessageIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mailbox?: boolean | Prisma.EmailIntegrationMailboxDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $EmailIntegrationMessagePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "EmailIntegrationMessage"
|
|
objects: {
|
|
mailbox: Prisma.$EmailIntegrationMailboxPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
mailboxId: string
|
|
providerMessageId: string
|
|
providerThreadId: string | null
|
|
internetMessageId: string | null
|
|
direction: $Enums.EmailDirection
|
|
fromAddress: string
|
|
fromName: string | null
|
|
toAddresses: runtime.JsonValue
|
|
ccAddresses: runtime.JsonValue
|
|
bccAddresses: runtime.JsonValue
|
|
subject: string | null
|
|
snippet: string | null
|
|
bodyHtml: string | null
|
|
bodyText: string | null
|
|
sentAt: Date
|
|
receivedAt: Date | null
|
|
isRead: boolean
|
|
isStarred: boolean
|
|
isNewsletter: boolean
|
|
hasAttachments: boolean
|
|
providerLabels: runtime.JsonValue
|
|
matchedKontaktId: string | null
|
|
matchedLeadId: string | null
|
|
matchedProjektId: string | null
|
|
matchConfidence: $Enums.EmailMatchConfidence
|
|
manualOverrideAt: Date | null
|
|
manualOverrideUserId: string | null
|
|
isDemoData: boolean
|
|
archivedAt: Date | null
|
|
}, ExtArgs["result"]["emailIntegrationMessage"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type EmailIntegrationMessageGetPayload<S extends boolean | null | undefined | EmailIntegrationMessageDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload, S>
|
|
|
|
export type EmailIntegrationMessageCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<EmailIntegrationMessageFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: EmailIntegrationMessageCountAggregateInputType | true
|
|
}
|
|
|
|
export interface EmailIntegrationMessageDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['EmailIntegrationMessage'], meta: { name: 'EmailIntegrationMessage' } }
|
|
/**
|
|
* Find zero or one EmailIntegrationMessage that matches the filter.
|
|
* @param {EmailIntegrationMessageFindUniqueArgs} args - Arguments to find a EmailIntegrationMessage
|
|
* @example
|
|
* // Get one EmailIntegrationMessage
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends EmailIntegrationMessageFindUniqueArgs>(args: Prisma.SelectSubset<T, EmailIntegrationMessageFindUniqueArgs<ExtArgs>>): Prisma.Prisma__EmailIntegrationMessageClient<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one EmailIntegrationMessage that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {EmailIntegrationMessageFindUniqueOrThrowArgs} args - Arguments to find a EmailIntegrationMessage
|
|
* @example
|
|
* // Get one EmailIntegrationMessage
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends EmailIntegrationMessageFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, EmailIntegrationMessageFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__EmailIntegrationMessageClient<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first EmailIntegrationMessage 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 {EmailIntegrationMessageFindFirstArgs} args - Arguments to find a EmailIntegrationMessage
|
|
* @example
|
|
* // Get one EmailIntegrationMessage
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends EmailIntegrationMessageFindFirstArgs>(args?: Prisma.SelectSubset<T, EmailIntegrationMessageFindFirstArgs<ExtArgs>>): Prisma.Prisma__EmailIntegrationMessageClient<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first EmailIntegrationMessage 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 {EmailIntegrationMessageFindFirstOrThrowArgs} args - Arguments to find a EmailIntegrationMessage
|
|
* @example
|
|
* // Get one EmailIntegrationMessage
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends EmailIntegrationMessageFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, EmailIntegrationMessageFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__EmailIntegrationMessageClient<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more EmailIntegrationMessages 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 {EmailIntegrationMessageFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all EmailIntegrationMessages
|
|
* const emailIntegrationMessages = await prisma.emailIntegrationMessage.findMany()
|
|
*
|
|
* // Get first 10 EmailIntegrationMessages
|
|
* const emailIntegrationMessages = await prisma.emailIntegrationMessage.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const emailIntegrationMessageWithIdOnly = await prisma.emailIntegrationMessage.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends EmailIntegrationMessageFindManyArgs>(args?: Prisma.SelectSubset<T, EmailIntegrationMessageFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a EmailIntegrationMessage.
|
|
* @param {EmailIntegrationMessageCreateArgs} args - Arguments to create a EmailIntegrationMessage.
|
|
* @example
|
|
* // Create one EmailIntegrationMessage
|
|
* const EmailIntegrationMessage = await prisma.emailIntegrationMessage.create({
|
|
* data: {
|
|
* // ... data to create a EmailIntegrationMessage
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends EmailIntegrationMessageCreateArgs>(args: Prisma.SelectSubset<T, EmailIntegrationMessageCreateArgs<ExtArgs>>): Prisma.Prisma__EmailIntegrationMessageClient<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many EmailIntegrationMessages.
|
|
* @param {EmailIntegrationMessageCreateManyArgs} args - Arguments to create many EmailIntegrationMessages.
|
|
* @example
|
|
* // Create many EmailIntegrationMessages
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends EmailIntegrationMessageCreateManyArgs>(args?: Prisma.SelectSubset<T, EmailIntegrationMessageCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many EmailIntegrationMessages and returns the data saved in the database.
|
|
* @param {EmailIntegrationMessageCreateManyAndReturnArgs} args - Arguments to create many EmailIntegrationMessages.
|
|
* @example
|
|
* // Create many EmailIntegrationMessages
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many EmailIntegrationMessages and only return the `id`
|
|
* const emailIntegrationMessageWithIdOnly = await prisma.emailIntegrationMessage.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 EmailIntegrationMessageCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, EmailIntegrationMessageCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a EmailIntegrationMessage.
|
|
* @param {EmailIntegrationMessageDeleteArgs} args - Arguments to delete one EmailIntegrationMessage.
|
|
* @example
|
|
* // Delete one EmailIntegrationMessage
|
|
* const EmailIntegrationMessage = await prisma.emailIntegrationMessage.delete({
|
|
* where: {
|
|
* // ... filter to delete one EmailIntegrationMessage
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends EmailIntegrationMessageDeleteArgs>(args: Prisma.SelectSubset<T, EmailIntegrationMessageDeleteArgs<ExtArgs>>): Prisma.Prisma__EmailIntegrationMessageClient<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one EmailIntegrationMessage.
|
|
* @param {EmailIntegrationMessageUpdateArgs} args - Arguments to update one EmailIntegrationMessage.
|
|
* @example
|
|
* // Update one EmailIntegrationMessage
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends EmailIntegrationMessageUpdateArgs>(args: Prisma.SelectSubset<T, EmailIntegrationMessageUpdateArgs<ExtArgs>>): Prisma.Prisma__EmailIntegrationMessageClient<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more EmailIntegrationMessages.
|
|
* @param {EmailIntegrationMessageDeleteManyArgs} args - Arguments to filter EmailIntegrationMessages to delete.
|
|
* @example
|
|
* // Delete a few EmailIntegrationMessages
|
|
* const { count } = await prisma.emailIntegrationMessage.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends EmailIntegrationMessageDeleteManyArgs>(args?: Prisma.SelectSubset<T, EmailIntegrationMessageDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more EmailIntegrationMessages.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailIntegrationMessageUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many EmailIntegrationMessages
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends EmailIntegrationMessageUpdateManyArgs>(args: Prisma.SelectSubset<T, EmailIntegrationMessageUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more EmailIntegrationMessages and returns the data updated in the database.
|
|
* @param {EmailIntegrationMessageUpdateManyAndReturnArgs} args - Arguments to update many EmailIntegrationMessages.
|
|
* @example
|
|
* // Update many EmailIntegrationMessages
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more EmailIntegrationMessages and only return the `id`
|
|
* const emailIntegrationMessageWithIdOnly = await prisma.emailIntegrationMessage.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 EmailIntegrationMessageUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, EmailIntegrationMessageUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one EmailIntegrationMessage.
|
|
* @param {EmailIntegrationMessageUpsertArgs} args - Arguments to update or create a EmailIntegrationMessage.
|
|
* @example
|
|
* // Update or create a EmailIntegrationMessage
|
|
* const emailIntegrationMessage = await prisma.emailIntegrationMessage.upsert({
|
|
* create: {
|
|
* // ... data to create a EmailIntegrationMessage
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the EmailIntegrationMessage we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends EmailIntegrationMessageUpsertArgs>(args: Prisma.SelectSubset<T, EmailIntegrationMessageUpsertArgs<ExtArgs>>): Prisma.Prisma__EmailIntegrationMessageClient<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMessagePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of EmailIntegrationMessages.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailIntegrationMessageCountArgs} args - Arguments to filter EmailIntegrationMessages to count.
|
|
* @example
|
|
* // Count the number of EmailIntegrationMessages
|
|
* const count = await prisma.emailIntegrationMessage.count({
|
|
* where: {
|
|
* // ... the filter for the EmailIntegrationMessages we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends EmailIntegrationMessageCountArgs>(
|
|
args?: Prisma.Subset<T, EmailIntegrationMessageCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], EmailIntegrationMessageCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a EmailIntegrationMessage.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailIntegrationMessageAggregateArgs} 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 EmailIntegrationMessageAggregateArgs>(args: Prisma.Subset<T, EmailIntegrationMessageAggregateArgs>): Prisma.PrismaPromise<GetEmailIntegrationMessageAggregateType<T>>
|
|
|
|
/**
|
|
* Group by EmailIntegrationMessage.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {EmailIntegrationMessageGroupByArgs} 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 EmailIntegrationMessageGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: EmailIntegrationMessageGroupByArgs['orderBy'] }
|
|
: { orderBy?: EmailIntegrationMessageGroupByArgs['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, EmailIntegrationMessageGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetEmailIntegrationMessageGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the EmailIntegrationMessage model
|
|
*/
|
|
readonly fields: EmailIntegrationMessageFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for EmailIntegrationMessage.
|
|
* 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__EmailIntegrationMessageClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
mailbox<T extends Prisma.EmailIntegrationMailboxDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EmailIntegrationMailboxDefaultArgs<ExtArgs>>): Prisma.Prisma__EmailIntegrationMailboxClient<runtime.Types.Result.GetResult<Prisma.$EmailIntegrationMailboxPayload<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 EmailIntegrationMessage model
|
|
*/
|
|
export interface EmailIntegrationMessageFieldRefs {
|
|
readonly id: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"EmailIntegrationMessage", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"EmailIntegrationMessage", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly mailboxId: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly providerMessageId: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly providerThreadId: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly internetMessageId: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly direction: Prisma.FieldRef<"EmailIntegrationMessage", 'EmailDirection'>
|
|
readonly fromAddress: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly fromName: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly toAddresses: Prisma.FieldRef<"EmailIntegrationMessage", 'Json'>
|
|
readonly ccAddresses: Prisma.FieldRef<"EmailIntegrationMessage", 'Json'>
|
|
readonly bccAddresses: Prisma.FieldRef<"EmailIntegrationMessage", 'Json'>
|
|
readonly subject: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly snippet: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly bodyHtml: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly bodyText: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly sentAt: Prisma.FieldRef<"EmailIntegrationMessage", 'DateTime'>
|
|
readonly receivedAt: Prisma.FieldRef<"EmailIntegrationMessage", 'DateTime'>
|
|
readonly isRead: Prisma.FieldRef<"EmailIntegrationMessage", 'Boolean'>
|
|
readonly isStarred: Prisma.FieldRef<"EmailIntegrationMessage", 'Boolean'>
|
|
readonly isNewsletter: Prisma.FieldRef<"EmailIntegrationMessage", 'Boolean'>
|
|
readonly hasAttachments: Prisma.FieldRef<"EmailIntegrationMessage", 'Boolean'>
|
|
readonly providerLabels: Prisma.FieldRef<"EmailIntegrationMessage", 'Json'>
|
|
readonly matchedKontaktId: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly matchedLeadId: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly matchedProjektId: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly matchConfidence: Prisma.FieldRef<"EmailIntegrationMessage", 'EmailMatchConfidence'>
|
|
readonly manualOverrideAt: Prisma.FieldRef<"EmailIntegrationMessage", 'DateTime'>
|
|
readonly manualOverrideUserId: Prisma.FieldRef<"EmailIntegrationMessage", 'String'>
|
|
readonly isDemoData: Prisma.FieldRef<"EmailIntegrationMessage", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"EmailIntegrationMessage", 'DateTime'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* EmailIntegrationMessage findUnique
|
|
*/
|
|
export type EmailIntegrationMessageFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailIntegrationMessage to fetch.
|
|
*/
|
|
where: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage findUniqueOrThrow
|
|
*/
|
|
export type EmailIntegrationMessageFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailIntegrationMessage to fetch.
|
|
*/
|
|
where: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage findFirst
|
|
*/
|
|
export type EmailIntegrationMessageFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailIntegrationMessage to fetch.
|
|
*/
|
|
where?: Prisma.EmailIntegrationMessageWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EmailIntegrationMessages to fetch.
|
|
*/
|
|
orderBy?: Prisma.EmailIntegrationMessageOrderByWithRelationInput | Prisma.EmailIntegrationMessageOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for EmailIntegrationMessages.
|
|
*/
|
|
cursor?: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EmailIntegrationMessages 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` EmailIntegrationMessages.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of EmailIntegrationMessages.
|
|
*/
|
|
distinct?: Prisma.EmailIntegrationMessageScalarFieldEnum | Prisma.EmailIntegrationMessageScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage findFirstOrThrow
|
|
*/
|
|
export type EmailIntegrationMessageFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailIntegrationMessage to fetch.
|
|
*/
|
|
where?: Prisma.EmailIntegrationMessageWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EmailIntegrationMessages to fetch.
|
|
*/
|
|
orderBy?: Prisma.EmailIntegrationMessageOrderByWithRelationInput | Prisma.EmailIntegrationMessageOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for EmailIntegrationMessages.
|
|
*/
|
|
cursor?: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EmailIntegrationMessages 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` EmailIntegrationMessages.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of EmailIntegrationMessages.
|
|
*/
|
|
distinct?: Prisma.EmailIntegrationMessageScalarFieldEnum | Prisma.EmailIntegrationMessageScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage findMany
|
|
*/
|
|
export type EmailIntegrationMessageFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which EmailIntegrationMessages to fetch.
|
|
*/
|
|
where?: Prisma.EmailIntegrationMessageWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of EmailIntegrationMessages to fetch.
|
|
*/
|
|
orderBy?: Prisma.EmailIntegrationMessageOrderByWithRelationInput | Prisma.EmailIntegrationMessageOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing EmailIntegrationMessages.
|
|
*/
|
|
cursor?: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` EmailIntegrationMessages 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` EmailIntegrationMessages.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of EmailIntegrationMessages.
|
|
*/
|
|
distinct?: Prisma.EmailIntegrationMessageScalarFieldEnum | Prisma.EmailIntegrationMessageScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage create
|
|
*/
|
|
export type EmailIntegrationMessageCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a EmailIntegrationMessage.
|
|
*/
|
|
data: Prisma.XOR<Prisma.EmailIntegrationMessageCreateInput, Prisma.EmailIntegrationMessageUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage createMany
|
|
*/
|
|
export type EmailIntegrationMessageCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many EmailIntegrationMessages.
|
|
*/
|
|
data: Prisma.EmailIntegrationMessageCreateManyInput | Prisma.EmailIntegrationMessageCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage createManyAndReturn
|
|
*/
|
|
export type EmailIntegrationMessageCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many EmailIntegrationMessages.
|
|
*/
|
|
data: Prisma.EmailIntegrationMessageCreateManyInput | Prisma.EmailIntegrationMessageCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage update
|
|
*/
|
|
export type EmailIntegrationMessageUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a EmailIntegrationMessage.
|
|
*/
|
|
data: Prisma.XOR<Prisma.EmailIntegrationMessageUpdateInput, Prisma.EmailIntegrationMessageUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which EmailIntegrationMessage to update.
|
|
*/
|
|
where: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage updateMany
|
|
*/
|
|
export type EmailIntegrationMessageUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update EmailIntegrationMessages.
|
|
*/
|
|
data: Prisma.XOR<Prisma.EmailIntegrationMessageUpdateManyMutationInput, Prisma.EmailIntegrationMessageUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which EmailIntegrationMessages to update
|
|
*/
|
|
where?: Prisma.EmailIntegrationMessageWhereInput
|
|
/**
|
|
* Limit how many EmailIntegrationMessages to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage updateManyAndReturn
|
|
*/
|
|
export type EmailIntegrationMessageUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update EmailIntegrationMessages.
|
|
*/
|
|
data: Prisma.XOR<Prisma.EmailIntegrationMessageUpdateManyMutationInput, Prisma.EmailIntegrationMessageUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which EmailIntegrationMessages to update
|
|
*/
|
|
where?: Prisma.EmailIntegrationMessageWhereInput
|
|
/**
|
|
* Limit how many EmailIntegrationMessages to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage upsert
|
|
*/
|
|
export type EmailIntegrationMessageUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the EmailIntegrationMessage to update in case it exists.
|
|
*/
|
|
where: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
/**
|
|
* In case the EmailIntegrationMessage found by the `where` argument doesn't exist, create a new EmailIntegrationMessage with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.EmailIntegrationMessageCreateInput, Prisma.EmailIntegrationMessageUncheckedCreateInput>
|
|
/**
|
|
* In case the EmailIntegrationMessage was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.EmailIntegrationMessageUpdateInput, Prisma.EmailIntegrationMessageUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage delete
|
|
*/
|
|
export type EmailIntegrationMessageDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which EmailIntegrationMessage to delete.
|
|
*/
|
|
where: Prisma.EmailIntegrationMessageWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage deleteMany
|
|
*/
|
|
export type EmailIntegrationMessageDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which EmailIntegrationMessages to delete
|
|
*/
|
|
where?: Prisma.EmailIntegrationMessageWhereInput
|
|
/**
|
|
* Limit how many EmailIntegrationMessages to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* EmailIntegrationMessage without action
|
|
*/
|
|
export type EmailIntegrationMessageDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the EmailIntegrationMessage
|
|
*/
|
|
select?: Prisma.EmailIntegrationMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the EmailIntegrationMessage
|
|
*/
|
|
omit?: Prisma.EmailIntegrationMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.EmailIntegrationMessageInclude<ExtArgs> | null
|
|
}
|