Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/db/generated/prisma/client/models/AdminScheduledEmail.ts
T

2721 lines
124 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 `AdminScheduledEmail` 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 AdminScheduledEmail
*
*/
export type AdminScheduledEmailModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminScheduledEmailPayload>
export type AggregateAdminScheduledEmail = {
_count: AdminScheduledEmailCountAggregateOutputType | null
_avg: AdminScheduledEmailAvgAggregateOutputType | null
_sum: AdminScheduledEmailSumAggregateOutputType | null
_min: AdminScheduledEmailMinAggregateOutputType | null
_max: AdminScheduledEmailMaxAggregateOutputType | null
}
export type AdminScheduledEmailAvgAggregateOutputType = {
noReplyAfterDays: number | null
sendAttemptCount: number | null
}
export type AdminScheduledEmailSumAggregateOutputType = {
noReplyAfterDays: number | null
sendAttemptCount: number | null
}
export type AdminScheduledEmailMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
adminUserId: string | null
mailboxId: string | null
contactId: string | null
leadId: string | null
dealId: string | null
threadId: string | null
bulkRunId: string | null
subject: string | null
bodyHtml: string | null
bodyText: string | null
scheduledFor: Date | null
timeZone: string | null
noReplyAfterDays: number | null
status: $Enums.AdminScheduledEmailStatus | null
idempotencyKey: string | null
claimedAt: Date | null
sentAt: Date | null
sendAttemptCount: number | null
providerMessageId: string | null
sentMessageId: string | null
lastErrorMessageKey: string | null
}
export type AdminScheduledEmailMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
adminUserId: string | null
mailboxId: string | null
contactId: string | null
leadId: string | null
dealId: string | null
threadId: string | null
bulkRunId: string | null
subject: string | null
bodyHtml: string | null
bodyText: string | null
scheduledFor: Date | null
timeZone: string | null
noReplyAfterDays: number | null
status: $Enums.AdminScheduledEmailStatus | null
idempotencyKey: string | null
claimedAt: Date | null
sentAt: Date | null
sendAttemptCount: number | null
providerMessageId: string | null
sentMessageId: string | null
lastErrorMessageKey: string | null
}
export type AdminScheduledEmailCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
adminUserId: number
mailboxId: number
contactId: number
leadId: number
dealId: number
threadId: number
bulkRunId: number
toAddresses: number
ccAddresses: number
bccAddresses: number
subject: number
bodyHtml: number
bodyText: number
scheduledFor: number
timeZone: number
noReplyAfterDays: number
status: number
idempotencyKey: number
claimedAt: number
sentAt: number
sendAttemptCount: number
providerMessageId: number
sentMessageId: number
lastErrorMessageKey: number
_all: number
}
export type AdminScheduledEmailAvgAggregateInputType = {
noReplyAfterDays?: true
sendAttemptCount?: true
}
export type AdminScheduledEmailSumAggregateInputType = {
noReplyAfterDays?: true
sendAttemptCount?: true
}
export type AdminScheduledEmailMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
adminUserId?: true
mailboxId?: true
contactId?: true
leadId?: true
dealId?: true
threadId?: true
bulkRunId?: true
subject?: true
bodyHtml?: true
bodyText?: true
scheduledFor?: true
timeZone?: true
noReplyAfterDays?: true
status?: true
idempotencyKey?: true
claimedAt?: true
sentAt?: true
sendAttemptCount?: true
providerMessageId?: true
sentMessageId?: true
lastErrorMessageKey?: true
}
export type AdminScheduledEmailMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
adminUserId?: true
mailboxId?: true
contactId?: true
leadId?: true
dealId?: true
threadId?: true
bulkRunId?: true
subject?: true
bodyHtml?: true
bodyText?: true
scheduledFor?: true
timeZone?: true
noReplyAfterDays?: true
status?: true
idempotencyKey?: true
claimedAt?: true
sentAt?: true
sendAttemptCount?: true
providerMessageId?: true
sentMessageId?: true
lastErrorMessageKey?: true
}
export type AdminScheduledEmailCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
adminUserId?: true
mailboxId?: true
contactId?: true
leadId?: true
dealId?: true
threadId?: true
bulkRunId?: true
toAddresses?: true
ccAddresses?: true
bccAddresses?: true
subject?: true
bodyHtml?: true
bodyText?: true
scheduledFor?: true
timeZone?: true
noReplyAfterDays?: true
status?: true
idempotencyKey?: true
claimedAt?: true
sentAt?: true
sendAttemptCount?: true
providerMessageId?: true
sentMessageId?: true
lastErrorMessageKey?: true
_all?: true
}
export type AdminScheduledEmailAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminScheduledEmail to aggregate.
*/
where?: Prisma.AdminScheduledEmailWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminScheduledEmails to fetch.
*/
orderBy?: Prisma.AdminScheduledEmailOrderByWithRelationInput | Prisma.AdminScheduledEmailOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AdminScheduledEmailWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminScheduledEmails 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` AdminScheduledEmails.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AdminScheduledEmails
**/
_count?: true | AdminScheduledEmailCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: AdminScheduledEmailAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: AdminScheduledEmailSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AdminScheduledEmailMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AdminScheduledEmailMaxAggregateInputType
}
export type GetAdminScheduledEmailAggregateType<T extends AdminScheduledEmailAggregateArgs> = {
[P in keyof T & keyof AggregateAdminScheduledEmail]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAdminScheduledEmail[P]>
: Prisma.GetScalarType<T[P], AggregateAdminScheduledEmail[P]>
}
export type AdminScheduledEmailGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AdminScheduledEmailWhereInput
orderBy?: Prisma.AdminScheduledEmailOrderByWithAggregationInput | Prisma.AdminScheduledEmailOrderByWithAggregationInput[]
by: Prisma.AdminScheduledEmailScalarFieldEnum[] | Prisma.AdminScheduledEmailScalarFieldEnum
having?: Prisma.AdminScheduledEmailScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AdminScheduledEmailCountAggregateInputType | true
_avg?: AdminScheduledEmailAvgAggregateInputType
_sum?: AdminScheduledEmailSumAggregateInputType
_min?: AdminScheduledEmailMinAggregateInputType
_max?: AdminScheduledEmailMaxAggregateInputType
}
export type AdminScheduledEmailGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
adminUserId: string
mailboxId: string
contactId: string | null
leadId: string | null
dealId: string | null
threadId: string | null
bulkRunId: string | null
toAddresses: string[]
ccAddresses: string[]
bccAddresses: string[]
subject: string
bodyHtml: string
bodyText: string | null
scheduledFor: Date
timeZone: string
noReplyAfterDays: number | null
status: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt: Date | null
sentAt: Date | null
sendAttemptCount: number
providerMessageId: string | null
sentMessageId: string | null
lastErrorMessageKey: string | null
_count: AdminScheduledEmailCountAggregateOutputType | null
_avg: AdminScheduledEmailAvgAggregateOutputType | null
_sum: AdminScheduledEmailSumAggregateOutputType | null
_min: AdminScheduledEmailMinAggregateOutputType | null
_max: AdminScheduledEmailMaxAggregateOutputType | null
}
export type GetAdminScheduledEmailGroupByPayload<T extends AdminScheduledEmailGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AdminScheduledEmailGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AdminScheduledEmailGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AdminScheduledEmailGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AdminScheduledEmailGroupByOutputType[P]>
}
>
>
export type AdminScheduledEmailWhereInput = {
AND?: Prisma.AdminScheduledEmailWhereInput | Prisma.AdminScheduledEmailWhereInput[]
OR?: Prisma.AdminScheduledEmailWhereInput[]
NOT?: Prisma.AdminScheduledEmailWhereInput | Prisma.AdminScheduledEmailWhereInput[]
id?: Prisma.StringFilter<"AdminScheduledEmail"> | string
createdAt?: Prisma.DateTimeFilter<"AdminScheduledEmail"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AdminScheduledEmail"> | Date | string
adminUserId?: Prisma.StringFilter<"AdminScheduledEmail"> | string
mailboxId?: Prisma.StringFilter<"AdminScheduledEmail"> | string
contactId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
leadId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
dealId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
threadId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
bulkRunId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
toAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
ccAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
bccAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
subject?: Prisma.StringFilter<"AdminScheduledEmail"> | string
bodyHtml?: Prisma.StringFilter<"AdminScheduledEmail"> | string
bodyText?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
scheduledFor?: Prisma.DateTimeFilter<"AdminScheduledEmail"> | Date | string
timeZone?: Prisma.StringFilter<"AdminScheduledEmail"> | string
noReplyAfterDays?: Prisma.IntNullableFilter<"AdminScheduledEmail"> | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFilter<"AdminScheduledEmail"> | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFilter<"AdminScheduledEmail"> | string
claimedAt?: Prisma.DateTimeNullableFilter<"AdminScheduledEmail"> | Date | string | null
sentAt?: Prisma.DateTimeNullableFilter<"AdminScheduledEmail"> | Date | string | null
sendAttemptCount?: Prisma.IntFilter<"AdminScheduledEmail"> | number
providerMessageId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
sentMessageId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
lastErrorMessageKey?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
mailbox?: Prisma.XOR<Prisma.AdminMailboxScalarRelationFilter, Prisma.AdminMailboxWhereInput>
thread?: Prisma.XOR<Prisma.AdminEmailThreadNullableScalarRelationFilter, Prisma.AdminEmailThreadWhereInput> | null
bulkRun?: Prisma.XOR<Prisma.AdminBulkEmailRunNullableScalarRelationFilter, Prisma.AdminBulkEmailRunWhereInput> | null
}
export type AdminScheduledEmailOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
mailboxId?: Prisma.SortOrder
contactId?: Prisma.SortOrderInput | Prisma.SortOrder
leadId?: Prisma.SortOrderInput | Prisma.SortOrder
dealId?: Prisma.SortOrderInput | Prisma.SortOrder
threadId?: Prisma.SortOrderInput | Prisma.SortOrder
bulkRunId?: Prisma.SortOrderInput | Prisma.SortOrder
toAddresses?: Prisma.SortOrder
ccAddresses?: Prisma.SortOrder
bccAddresses?: Prisma.SortOrder
subject?: Prisma.SortOrder
bodyHtml?: Prisma.SortOrder
bodyText?: Prisma.SortOrderInput | Prisma.SortOrder
scheduledFor?: Prisma.SortOrder
timeZone?: Prisma.SortOrder
noReplyAfterDays?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
claimedAt?: Prisma.SortOrderInput | Prisma.SortOrder
sentAt?: Prisma.SortOrderInput | Prisma.SortOrder
sendAttemptCount?: Prisma.SortOrder
providerMessageId?: Prisma.SortOrderInput | Prisma.SortOrder
sentMessageId?: Prisma.SortOrderInput | Prisma.SortOrder
lastErrorMessageKey?: Prisma.SortOrderInput | Prisma.SortOrder
mailbox?: Prisma.AdminMailboxOrderByWithRelationInput
thread?: Prisma.AdminEmailThreadOrderByWithRelationInput
bulkRun?: Prisma.AdminBulkEmailRunOrderByWithRelationInput
}
export type AdminScheduledEmailWhereUniqueInput = Prisma.AtLeast<{
id?: string
idempotencyKey?: string
AND?: Prisma.AdminScheduledEmailWhereInput | Prisma.AdminScheduledEmailWhereInput[]
OR?: Prisma.AdminScheduledEmailWhereInput[]
NOT?: Prisma.AdminScheduledEmailWhereInput | Prisma.AdminScheduledEmailWhereInput[]
createdAt?: Prisma.DateTimeFilter<"AdminScheduledEmail"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AdminScheduledEmail"> | Date | string
adminUserId?: Prisma.StringFilter<"AdminScheduledEmail"> | string
mailboxId?: Prisma.StringFilter<"AdminScheduledEmail"> | string
contactId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
leadId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
dealId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
threadId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
bulkRunId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
toAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
ccAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
bccAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
subject?: Prisma.StringFilter<"AdminScheduledEmail"> | string
bodyHtml?: Prisma.StringFilter<"AdminScheduledEmail"> | string
bodyText?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
scheduledFor?: Prisma.DateTimeFilter<"AdminScheduledEmail"> | Date | string
timeZone?: Prisma.StringFilter<"AdminScheduledEmail"> | string
noReplyAfterDays?: Prisma.IntNullableFilter<"AdminScheduledEmail"> | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFilter<"AdminScheduledEmail"> | $Enums.AdminScheduledEmailStatus
claimedAt?: Prisma.DateTimeNullableFilter<"AdminScheduledEmail"> | Date | string | null
sentAt?: Prisma.DateTimeNullableFilter<"AdminScheduledEmail"> | Date | string | null
sendAttemptCount?: Prisma.IntFilter<"AdminScheduledEmail"> | number
providerMessageId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
sentMessageId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
lastErrorMessageKey?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
mailbox?: Prisma.XOR<Prisma.AdminMailboxScalarRelationFilter, Prisma.AdminMailboxWhereInput>
thread?: Prisma.XOR<Prisma.AdminEmailThreadNullableScalarRelationFilter, Prisma.AdminEmailThreadWhereInput> | null
bulkRun?: Prisma.XOR<Prisma.AdminBulkEmailRunNullableScalarRelationFilter, Prisma.AdminBulkEmailRunWhereInput> | null
}, "id" | "idempotencyKey">
export type AdminScheduledEmailOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
mailboxId?: Prisma.SortOrder
contactId?: Prisma.SortOrderInput | Prisma.SortOrder
leadId?: Prisma.SortOrderInput | Prisma.SortOrder
dealId?: Prisma.SortOrderInput | Prisma.SortOrder
threadId?: Prisma.SortOrderInput | Prisma.SortOrder
bulkRunId?: Prisma.SortOrderInput | Prisma.SortOrder
toAddresses?: Prisma.SortOrder
ccAddresses?: Prisma.SortOrder
bccAddresses?: Prisma.SortOrder
subject?: Prisma.SortOrder
bodyHtml?: Prisma.SortOrder
bodyText?: Prisma.SortOrderInput | Prisma.SortOrder
scheduledFor?: Prisma.SortOrder
timeZone?: Prisma.SortOrder
noReplyAfterDays?: Prisma.SortOrderInput | Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
claimedAt?: Prisma.SortOrderInput | Prisma.SortOrder
sentAt?: Prisma.SortOrderInput | Prisma.SortOrder
sendAttemptCount?: Prisma.SortOrder
providerMessageId?: Prisma.SortOrderInput | Prisma.SortOrder
sentMessageId?: Prisma.SortOrderInput | Prisma.SortOrder
lastErrorMessageKey?: Prisma.SortOrderInput | Prisma.SortOrder
_count?: Prisma.AdminScheduledEmailCountOrderByAggregateInput
_avg?: Prisma.AdminScheduledEmailAvgOrderByAggregateInput
_max?: Prisma.AdminScheduledEmailMaxOrderByAggregateInput
_min?: Prisma.AdminScheduledEmailMinOrderByAggregateInput
_sum?: Prisma.AdminScheduledEmailSumOrderByAggregateInput
}
export type AdminScheduledEmailScalarWhereWithAggregatesInput = {
AND?: Prisma.AdminScheduledEmailScalarWhereWithAggregatesInput | Prisma.AdminScheduledEmailScalarWhereWithAggregatesInput[]
OR?: Prisma.AdminScheduledEmailScalarWhereWithAggregatesInput[]
NOT?: Prisma.AdminScheduledEmailScalarWhereWithAggregatesInput | Prisma.AdminScheduledEmailScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"AdminScheduledEmail"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminScheduledEmail"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AdminScheduledEmail"> | Date | string
adminUserId?: Prisma.StringWithAggregatesFilter<"AdminScheduledEmail"> | string
mailboxId?: Prisma.StringWithAggregatesFilter<"AdminScheduledEmail"> | string
contactId?: Prisma.StringNullableWithAggregatesFilter<"AdminScheduledEmail"> | string | null
leadId?: Prisma.StringNullableWithAggregatesFilter<"AdminScheduledEmail"> | string | null
dealId?: Prisma.StringNullableWithAggregatesFilter<"AdminScheduledEmail"> | string | null
threadId?: Prisma.StringNullableWithAggregatesFilter<"AdminScheduledEmail"> | string | null
bulkRunId?: Prisma.StringNullableWithAggregatesFilter<"AdminScheduledEmail"> | string | null
toAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
ccAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
bccAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
subject?: Prisma.StringWithAggregatesFilter<"AdminScheduledEmail"> | string
bodyHtml?: Prisma.StringWithAggregatesFilter<"AdminScheduledEmail"> | string
bodyText?: Prisma.StringNullableWithAggregatesFilter<"AdminScheduledEmail"> | string | null
scheduledFor?: Prisma.DateTimeWithAggregatesFilter<"AdminScheduledEmail"> | Date | string
timeZone?: Prisma.StringWithAggregatesFilter<"AdminScheduledEmail"> | string
noReplyAfterDays?: Prisma.IntNullableWithAggregatesFilter<"AdminScheduledEmail"> | number | null
status?: Prisma.EnumAdminScheduledEmailStatusWithAggregatesFilter<"AdminScheduledEmail"> | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringWithAggregatesFilter<"AdminScheduledEmail"> | string
claimedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminScheduledEmail"> | Date | string | null
sentAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminScheduledEmail"> | Date | string | null
sendAttemptCount?: Prisma.IntWithAggregatesFilter<"AdminScheduledEmail"> | number
providerMessageId?: Prisma.StringNullableWithAggregatesFilter<"AdminScheduledEmail"> | string | null
sentMessageId?: Prisma.StringNullableWithAggregatesFilter<"AdminScheduledEmail"> | string | null
lastErrorMessageKey?: Prisma.StringNullableWithAggregatesFilter<"AdminScheduledEmail"> | string | null
}
export type AdminScheduledEmailCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
mailbox: Prisma.AdminMailboxCreateNestedOneWithoutScheduledInput
thread?: Prisma.AdminEmailThreadCreateNestedOneWithoutScheduledInput
bulkRun?: Prisma.AdminBulkEmailRunCreateNestedOneWithoutScheduledInput
}
export type AdminScheduledEmailUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
mailboxId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
threadId?: string | null
bulkRunId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
}
export type AdminScheduledEmailUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
mailbox?: Prisma.AdminMailboxUpdateOneRequiredWithoutScheduledNestedInput
thread?: Prisma.AdminEmailThreadUpdateOneWithoutScheduledNestedInput
bulkRun?: Prisma.AdminBulkEmailRunUpdateOneWithoutScheduledNestedInput
}
export type AdminScheduledEmailUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
threadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bulkRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AdminScheduledEmailCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
mailboxId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
threadId?: string | null
bulkRunId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
}
export type AdminScheduledEmailUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AdminScheduledEmailUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
threadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bulkRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AdminScheduledEmailListRelationFilter = {
every?: Prisma.AdminScheduledEmailWhereInput
some?: Prisma.AdminScheduledEmailWhereInput
none?: Prisma.AdminScheduledEmailWhereInput
}
export type AdminScheduledEmailOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type AdminScheduledEmailCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
mailboxId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
leadId?: Prisma.SortOrder
dealId?: Prisma.SortOrder
threadId?: Prisma.SortOrder
bulkRunId?: Prisma.SortOrder
toAddresses?: Prisma.SortOrder
ccAddresses?: Prisma.SortOrder
bccAddresses?: Prisma.SortOrder
subject?: Prisma.SortOrder
bodyHtml?: Prisma.SortOrder
bodyText?: Prisma.SortOrder
scheduledFor?: Prisma.SortOrder
timeZone?: Prisma.SortOrder
noReplyAfterDays?: Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
claimedAt?: Prisma.SortOrder
sentAt?: Prisma.SortOrder
sendAttemptCount?: Prisma.SortOrder
providerMessageId?: Prisma.SortOrder
sentMessageId?: Prisma.SortOrder
lastErrorMessageKey?: Prisma.SortOrder
}
export type AdminScheduledEmailAvgOrderByAggregateInput = {
noReplyAfterDays?: Prisma.SortOrder
sendAttemptCount?: Prisma.SortOrder
}
export type AdminScheduledEmailMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
mailboxId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
leadId?: Prisma.SortOrder
dealId?: Prisma.SortOrder
threadId?: Prisma.SortOrder
bulkRunId?: Prisma.SortOrder
subject?: Prisma.SortOrder
bodyHtml?: Prisma.SortOrder
bodyText?: Prisma.SortOrder
scheduledFor?: Prisma.SortOrder
timeZone?: Prisma.SortOrder
noReplyAfterDays?: Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
claimedAt?: Prisma.SortOrder
sentAt?: Prisma.SortOrder
sendAttemptCount?: Prisma.SortOrder
providerMessageId?: Prisma.SortOrder
sentMessageId?: Prisma.SortOrder
lastErrorMessageKey?: Prisma.SortOrder
}
export type AdminScheduledEmailMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
adminUserId?: Prisma.SortOrder
mailboxId?: Prisma.SortOrder
contactId?: Prisma.SortOrder
leadId?: Prisma.SortOrder
dealId?: Prisma.SortOrder
threadId?: Prisma.SortOrder
bulkRunId?: Prisma.SortOrder
subject?: Prisma.SortOrder
bodyHtml?: Prisma.SortOrder
bodyText?: Prisma.SortOrder
scheduledFor?: Prisma.SortOrder
timeZone?: Prisma.SortOrder
noReplyAfterDays?: Prisma.SortOrder
status?: Prisma.SortOrder
idempotencyKey?: Prisma.SortOrder
claimedAt?: Prisma.SortOrder
sentAt?: Prisma.SortOrder
sendAttemptCount?: Prisma.SortOrder
providerMessageId?: Prisma.SortOrder
sentMessageId?: Prisma.SortOrder
lastErrorMessageKey?: Prisma.SortOrder
}
export type AdminScheduledEmailSumOrderByAggregateInput = {
noReplyAfterDays?: Prisma.SortOrder
sendAttemptCount?: Prisma.SortOrder
}
export type AdminScheduledEmailCreateNestedManyWithoutMailboxInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutMailboxInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput> | Prisma.AdminScheduledEmailCreateWithoutMailboxInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutMailboxInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutMailboxInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyMailboxInputEnvelope
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
}
export type AdminScheduledEmailUncheckedCreateNestedManyWithoutMailboxInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutMailboxInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput> | Prisma.AdminScheduledEmailCreateWithoutMailboxInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutMailboxInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutMailboxInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyMailboxInputEnvelope
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
}
export type AdminScheduledEmailUpdateManyWithoutMailboxNestedInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutMailboxInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput> | Prisma.AdminScheduledEmailCreateWithoutMailboxInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutMailboxInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutMailboxInput[]
upsert?: Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutMailboxInput | Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutMailboxInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyMailboxInputEnvelope
set?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
disconnect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
delete?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
update?: Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutMailboxInput | Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutMailboxInput[]
updateMany?: Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutMailboxInput | Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutMailboxInput[]
deleteMany?: Prisma.AdminScheduledEmailScalarWhereInput | Prisma.AdminScheduledEmailScalarWhereInput[]
}
export type AdminScheduledEmailUncheckedUpdateManyWithoutMailboxNestedInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutMailboxInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput> | Prisma.AdminScheduledEmailCreateWithoutMailboxInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutMailboxInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutMailboxInput[]
upsert?: Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutMailboxInput | Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutMailboxInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyMailboxInputEnvelope
set?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
disconnect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
delete?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
update?: Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutMailboxInput | Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutMailboxInput[]
updateMany?: Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutMailboxInput | Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutMailboxInput[]
deleteMany?: Prisma.AdminScheduledEmailScalarWhereInput | Prisma.AdminScheduledEmailScalarWhereInput[]
}
export type AdminScheduledEmailCreateNestedManyWithoutThreadInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutThreadInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput> | Prisma.AdminScheduledEmailCreateWithoutThreadInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutThreadInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutThreadInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyThreadInputEnvelope
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
}
export type AdminScheduledEmailUncheckedCreateNestedManyWithoutThreadInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutThreadInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput> | Prisma.AdminScheduledEmailCreateWithoutThreadInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutThreadInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutThreadInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyThreadInputEnvelope
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
}
export type AdminScheduledEmailUpdateManyWithoutThreadNestedInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutThreadInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput> | Prisma.AdminScheduledEmailCreateWithoutThreadInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutThreadInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutThreadInput[]
upsert?: Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutThreadInput | Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutThreadInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyThreadInputEnvelope
set?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
disconnect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
delete?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
update?: Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutThreadInput | Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutThreadInput[]
updateMany?: Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutThreadInput | Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutThreadInput[]
deleteMany?: Prisma.AdminScheduledEmailScalarWhereInput | Prisma.AdminScheduledEmailScalarWhereInput[]
}
export type AdminScheduledEmailUncheckedUpdateManyWithoutThreadNestedInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutThreadInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput> | Prisma.AdminScheduledEmailCreateWithoutThreadInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutThreadInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutThreadInput[]
upsert?: Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutThreadInput | Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutThreadInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyThreadInputEnvelope
set?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
disconnect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
delete?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
update?: Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutThreadInput | Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutThreadInput[]
updateMany?: Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutThreadInput | Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutThreadInput[]
deleteMany?: Prisma.AdminScheduledEmailScalarWhereInput | Prisma.AdminScheduledEmailScalarWhereInput[]
}
export type AdminScheduledEmailCreatetoAddressesInput = {
set: string[]
}
export type AdminScheduledEmailCreateccAddressesInput = {
set: string[]
}
export type AdminScheduledEmailCreatebccAddressesInput = {
set: string[]
}
export type AdminScheduledEmailUpdatetoAddressesInput = {
set?: string[]
push?: string | string[]
}
export type AdminScheduledEmailUpdateccAddressesInput = {
set?: string[]
push?: string | string[]
}
export type AdminScheduledEmailUpdatebccAddressesInput = {
set?: string[]
push?: string | string[]
}
export type EnumAdminScheduledEmailStatusFieldUpdateOperationsInput = {
set?: $Enums.AdminScheduledEmailStatus
}
export type AdminScheduledEmailCreateNestedManyWithoutBulkRunInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutBulkRunInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput> | Prisma.AdminScheduledEmailCreateWithoutBulkRunInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutBulkRunInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutBulkRunInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyBulkRunInputEnvelope
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
}
export type AdminScheduledEmailUncheckedCreateNestedManyWithoutBulkRunInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutBulkRunInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput> | Prisma.AdminScheduledEmailCreateWithoutBulkRunInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutBulkRunInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutBulkRunInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyBulkRunInputEnvelope
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
}
export type AdminScheduledEmailUpdateManyWithoutBulkRunNestedInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutBulkRunInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput> | Prisma.AdminScheduledEmailCreateWithoutBulkRunInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutBulkRunInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutBulkRunInput[]
upsert?: Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutBulkRunInput | Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutBulkRunInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyBulkRunInputEnvelope
set?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
disconnect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
delete?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
update?: Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutBulkRunInput | Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutBulkRunInput[]
updateMany?: Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutBulkRunInput | Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutBulkRunInput[]
deleteMany?: Prisma.AdminScheduledEmailScalarWhereInput | Prisma.AdminScheduledEmailScalarWhereInput[]
}
export type AdminScheduledEmailUncheckedUpdateManyWithoutBulkRunNestedInput = {
create?: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutBulkRunInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput> | Prisma.AdminScheduledEmailCreateWithoutBulkRunInput[] | Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput[]
connectOrCreate?: Prisma.AdminScheduledEmailCreateOrConnectWithoutBulkRunInput | Prisma.AdminScheduledEmailCreateOrConnectWithoutBulkRunInput[]
upsert?: Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutBulkRunInput | Prisma.AdminScheduledEmailUpsertWithWhereUniqueWithoutBulkRunInput[]
createMany?: Prisma.AdminScheduledEmailCreateManyBulkRunInputEnvelope
set?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
disconnect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
delete?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
connect?: Prisma.AdminScheduledEmailWhereUniqueInput | Prisma.AdminScheduledEmailWhereUniqueInput[]
update?: Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutBulkRunInput | Prisma.AdminScheduledEmailUpdateWithWhereUniqueWithoutBulkRunInput[]
updateMany?: Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutBulkRunInput | Prisma.AdminScheduledEmailUpdateManyWithWhereWithoutBulkRunInput[]
deleteMany?: Prisma.AdminScheduledEmailScalarWhereInput | Prisma.AdminScheduledEmailScalarWhereInput[]
}
export type AdminScheduledEmailCreateWithoutMailboxInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
thread?: Prisma.AdminEmailThreadCreateNestedOneWithoutScheduledInput
bulkRun?: Prisma.AdminBulkEmailRunCreateNestedOneWithoutScheduledInput
}
export type AdminScheduledEmailUncheckedCreateWithoutMailboxInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
threadId?: string | null
bulkRunId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
}
export type AdminScheduledEmailCreateOrConnectWithoutMailboxInput = {
where: Prisma.AdminScheduledEmailWhereUniqueInput
create: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutMailboxInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput>
}
export type AdminScheduledEmailCreateManyMailboxInputEnvelope = {
data: Prisma.AdminScheduledEmailCreateManyMailboxInput | Prisma.AdminScheduledEmailCreateManyMailboxInput[]
skipDuplicates?: boolean
}
export type AdminScheduledEmailUpsertWithWhereUniqueWithoutMailboxInput = {
where: Prisma.AdminScheduledEmailWhereUniqueInput
update: Prisma.XOR<Prisma.AdminScheduledEmailUpdateWithoutMailboxInput, Prisma.AdminScheduledEmailUncheckedUpdateWithoutMailboxInput>
create: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutMailboxInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutMailboxInput>
}
export type AdminScheduledEmailUpdateWithWhereUniqueWithoutMailboxInput = {
where: Prisma.AdminScheduledEmailWhereUniqueInput
data: Prisma.XOR<Prisma.AdminScheduledEmailUpdateWithoutMailboxInput, Prisma.AdminScheduledEmailUncheckedUpdateWithoutMailboxInput>
}
export type AdminScheduledEmailUpdateManyWithWhereWithoutMailboxInput = {
where: Prisma.AdminScheduledEmailScalarWhereInput
data: Prisma.XOR<Prisma.AdminScheduledEmailUpdateManyMutationInput, Prisma.AdminScheduledEmailUncheckedUpdateManyWithoutMailboxInput>
}
export type AdminScheduledEmailScalarWhereInput = {
AND?: Prisma.AdminScheduledEmailScalarWhereInput | Prisma.AdminScheduledEmailScalarWhereInput[]
OR?: Prisma.AdminScheduledEmailScalarWhereInput[]
NOT?: Prisma.AdminScheduledEmailScalarWhereInput | Prisma.AdminScheduledEmailScalarWhereInput[]
id?: Prisma.StringFilter<"AdminScheduledEmail"> | string
createdAt?: Prisma.DateTimeFilter<"AdminScheduledEmail"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AdminScheduledEmail"> | Date | string
adminUserId?: Prisma.StringFilter<"AdminScheduledEmail"> | string
mailboxId?: Prisma.StringFilter<"AdminScheduledEmail"> | string
contactId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
leadId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
dealId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
threadId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
bulkRunId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
toAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
ccAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
bccAddresses?: Prisma.StringNullableListFilter<"AdminScheduledEmail">
subject?: Prisma.StringFilter<"AdminScheduledEmail"> | string
bodyHtml?: Prisma.StringFilter<"AdminScheduledEmail"> | string
bodyText?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
scheduledFor?: Prisma.DateTimeFilter<"AdminScheduledEmail"> | Date | string
timeZone?: Prisma.StringFilter<"AdminScheduledEmail"> | string
noReplyAfterDays?: Prisma.IntNullableFilter<"AdminScheduledEmail"> | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFilter<"AdminScheduledEmail"> | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFilter<"AdminScheduledEmail"> | string
claimedAt?: Prisma.DateTimeNullableFilter<"AdminScheduledEmail"> | Date | string | null
sentAt?: Prisma.DateTimeNullableFilter<"AdminScheduledEmail"> | Date | string | null
sendAttemptCount?: Prisma.IntFilter<"AdminScheduledEmail"> | number
providerMessageId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
sentMessageId?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
lastErrorMessageKey?: Prisma.StringNullableFilter<"AdminScheduledEmail"> | string | null
}
export type AdminScheduledEmailCreateWithoutThreadInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
mailbox: Prisma.AdminMailboxCreateNestedOneWithoutScheduledInput
bulkRun?: Prisma.AdminBulkEmailRunCreateNestedOneWithoutScheduledInput
}
export type AdminScheduledEmailUncheckedCreateWithoutThreadInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
mailboxId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
bulkRunId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
}
export type AdminScheduledEmailCreateOrConnectWithoutThreadInput = {
where: Prisma.AdminScheduledEmailWhereUniqueInput
create: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutThreadInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput>
}
export type AdminScheduledEmailCreateManyThreadInputEnvelope = {
data: Prisma.AdminScheduledEmailCreateManyThreadInput | Prisma.AdminScheduledEmailCreateManyThreadInput[]
skipDuplicates?: boolean
}
export type AdminScheduledEmailUpsertWithWhereUniqueWithoutThreadInput = {
where: Prisma.AdminScheduledEmailWhereUniqueInput
update: Prisma.XOR<Prisma.AdminScheduledEmailUpdateWithoutThreadInput, Prisma.AdminScheduledEmailUncheckedUpdateWithoutThreadInput>
create: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutThreadInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutThreadInput>
}
export type AdminScheduledEmailUpdateWithWhereUniqueWithoutThreadInput = {
where: Prisma.AdminScheduledEmailWhereUniqueInput
data: Prisma.XOR<Prisma.AdminScheduledEmailUpdateWithoutThreadInput, Prisma.AdminScheduledEmailUncheckedUpdateWithoutThreadInput>
}
export type AdminScheduledEmailUpdateManyWithWhereWithoutThreadInput = {
where: Prisma.AdminScheduledEmailScalarWhereInput
data: Prisma.XOR<Prisma.AdminScheduledEmailUpdateManyMutationInput, Prisma.AdminScheduledEmailUncheckedUpdateManyWithoutThreadInput>
}
export type AdminScheduledEmailCreateWithoutBulkRunInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
mailbox: Prisma.AdminMailboxCreateNestedOneWithoutScheduledInput
thread?: Prisma.AdminEmailThreadCreateNestedOneWithoutScheduledInput
}
export type AdminScheduledEmailUncheckedCreateWithoutBulkRunInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
mailboxId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
threadId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
}
export type AdminScheduledEmailCreateOrConnectWithoutBulkRunInput = {
where: Prisma.AdminScheduledEmailWhereUniqueInput
create: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutBulkRunInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput>
}
export type AdminScheduledEmailCreateManyBulkRunInputEnvelope = {
data: Prisma.AdminScheduledEmailCreateManyBulkRunInput | Prisma.AdminScheduledEmailCreateManyBulkRunInput[]
skipDuplicates?: boolean
}
export type AdminScheduledEmailUpsertWithWhereUniqueWithoutBulkRunInput = {
where: Prisma.AdminScheduledEmailWhereUniqueInput
update: Prisma.XOR<Prisma.AdminScheduledEmailUpdateWithoutBulkRunInput, Prisma.AdminScheduledEmailUncheckedUpdateWithoutBulkRunInput>
create: Prisma.XOR<Prisma.AdminScheduledEmailCreateWithoutBulkRunInput, Prisma.AdminScheduledEmailUncheckedCreateWithoutBulkRunInput>
}
export type AdminScheduledEmailUpdateWithWhereUniqueWithoutBulkRunInput = {
where: Prisma.AdminScheduledEmailWhereUniqueInput
data: Prisma.XOR<Prisma.AdminScheduledEmailUpdateWithoutBulkRunInput, Prisma.AdminScheduledEmailUncheckedUpdateWithoutBulkRunInput>
}
export type AdminScheduledEmailUpdateManyWithWhereWithoutBulkRunInput = {
where: Prisma.AdminScheduledEmailScalarWhereInput
data: Prisma.XOR<Prisma.AdminScheduledEmailUpdateManyMutationInput, Prisma.AdminScheduledEmailUncheckedUpdateManyWithoutBulkRunInput>
}
export type AdminScheduledEmailCreateManyMailboxInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
threadId?: string | null
bulkRunId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
}
export type AdminScheduledEmailUpdateWithoutMailboxInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
thread?: Prisma.AdminEmailThreadUpdateOneWithoutScheduledNestedInput
bulkRun?: Prisma.AdminBulkEmailRunUpdateOneWithoutScheduledNestedInput
}
export type AdminScheduledEmailUncheckedUpdateWithoutMailboxInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
threadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bulkRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AdminScheduledEmailUncheckedUpdateManyWithoutMailboxInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
threadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bulkRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AdminScheduledEmailCreateManyThreadInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
mailboxId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
bulkRunId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
}
export type AdminScheduledEmailUpdateWithoutThreadInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
mailbox?: Prisma.AdminMailboxUpdateOneRequiredWithoutScheduledNestedInput
bulkRun?: Prisma.AdminBulkEmailRunUpdateOneWithoutScheduledNestedInput
}
export type AdminScheduledEmailUncheckedUpdateWithoutThreadInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bulkRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AdminScheduledEmailUncheckedUpdateManyWithoutThreadInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
bulkRunId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AdminScheduledEmailCreateManyBulkRunInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
adminUserId: string
mailboxId: string
contactId?: string | null
leadId?: string | null
dealId?: string | null
threadId?: string | null
toAddresses?: Prisma.AdminScheduledEmailCreatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailCreateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailCreatebccAddressesInput | string[]
subject: string
bodyHtml: string
bodyText?: string | null
scheduledFor: Date | string
timeZone: string
noReplyAfterDays?: number | null
status?: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt?: Date | string | null
sentAt?: Date | string | null
sendAttemptCount?: number
providerMessageId?: string | null
sentMessageId?: string | null
lastErrorMessageKey?: string | null
}
export type AdminScheduledEmailUpdateWithoutBulkRunInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
mailbox?: Prisma.AdminMailboxUpdateOneRequiredWithoutScheduledNestedInput
thread?: Prisma.AdminEmailThreadUpdateOneWithoutScheduledNestedInput
}
export type AdminScheduledEmailUncheckedUpdateWithoutBulkRunInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
threadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AdminScheduledEmailUncheckedUpdateManyWithoutBulkRunInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
contactId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
dealId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
threadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
toAddresses?: Prisma.AdminScheduledEmailUpdatetoAddressesInput | string[]
ccAddresses?: Prisma.AdminScheduledEmailUpdateccAddressesInput | string[]
bccAddresses?: Prisma.AdminScheduledEmailUpdatebccAddressesInput | string[]
subject?: Prisma.StringFieldUpdateOperationsInput | string
bodyHtml?: Prisma.StringFieldUpdateOperationsInput | string
bodyText?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scheduledFor?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
timeZone?: Prisma.StringFieldUpdateOperationsInput | string
noReplyAfterDays?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
status?: Prisma.EnumAdminScheduledEmailStatusFieldUpdateOperationsInput | $Enums.AdminScheduledEmailStatus
idempotencyKey?: Prisma.StringFieldUpdateOperationsInput | string
claimedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sentAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
sendAttemptCount?: Prisma.IntFieldUpdateOperationsInput | number
providerMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
sentMessageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
lastErrorMessageKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
}
export type AdminScheduledEmailSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
adminUserId?: boolean
mailboxId?: boolean
contactId?: boolean
leadId?: boolean
dealId?: boolean
threadId?: boolean
bulkRunId?: boolean
toAddresses?: boolean
ccAddresses?: boolean
bccAddresses?: boolean
subject?: boolean
bodyHtml?: boolean
bodyText?: boolean
scheduledFor?: boolean
timeZone?: boolean
noReplyAfterDays?: boolean
status?: boolean
idempotencyKey?: boolean
claimedAt?: boolean
sentAt?: boolean
sendAttemptCount?: boolean
providerMessageId?: boolean
sentMessageId?: boolean
lastErrorMessageKey?: boolean
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
thread?: boolean | Prisma.AdminScheduledEmail$threadArgs<ExtArgs>
bulkRun?: boolean | Prisma.AdminScheduledEmail$bulkRunArgs<ExtArgs>
}, ExtArgs["result"]["adminScheduledEmail"]>
export type AdminScheduledEmailSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
adminUserId?: boolean
mailboxId?: boolean
contactId?: boolean
leadId?: boolean
dealId?: boolean
threadId?: boolean
bulkRunId?: boolean
toAddresses?: boolean
ccAddresses?: boolean
bccAddresses?: boolean
subject?: boolean
bodyHtml?: boolean
bodyText?: boolean
scheduledFor?: boolean
timeZone?: boolean
noReplyAfterDays?: boolean
status?: boolean
idempotencyKey?: boolean
claimedAt?: boolean
sentAt?: boolean
sendAttemptCount?: boolean
providerMessageId?: boolean
sentMessageId?: boolean
lastErrorMessageKey?: boolean
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
thread?: boolean | Prisma.AdminScheduledEmail$threadArgs<ExtArgs>
bulkRun?: boolean | Prisma.AdminScheduledEmail$bulkRunArgs<ExtArgs>
}, ExtArgs["result"]["adminScheduledEmail"]>
export type AdminScheduledEmailSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
adminUserId?: boolean
mailboxId?: boolean
contactId?: boolean
leadId?: boolean
dealId?: boolean
threadId?: boolean
bulkRunId?: boolean
toAddresses?: boolean
ccAddresses?: boolean
bccAddresses?: boolean
subject?: boolean
bodyHtml?: boolean
bodyText?: boolean
scheduledFor?: boolean
timeZone?: boolean
noReplyAfterDays?: boolean
status?: boolean
idempotencyKey?: boolean
claimedAt?: boolean
sentAt?: boolean
sendAttemptCount?: boolean
providerMessageId?: boolean
sentMessageId?: boolean
lastErrorMessageKey?: boolean
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
thread?: boolean | Prisma.AdminScheduledEmail$threadArgs<ExtArgs>
bulkRun?: boolean | Prisma.AdminScheduledEmail$bulkRunArgs<ExtArgs>
}, ExtArgs["result"]["adminScheduledEmail"]>
export type AdminScheduledEmailSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
adminUserId?: boolean
mailboxId?: boolean
contactId?: boolean
leadId?: boolean
dealId?: boolean
threadId?: boolean
bulkRunId?: boolean
toAddresses?: boolean
ccAddresses?: boolean
bccAddresses?: boolean
subject?: boolean
bodyHtml?: boolean
bodyText?: boolean
scheduledFor?: boolean
timeZone?: boolean
noReplyAfterDays?: boolean
status?: boolean
idempotencyKey?: boolean
claimedAt?: boolean
sentAt?: boolean
sendAttemptCount?: boolean
providerMessageId?: boolean
sentMessageId?: boolean
lastErrorMessageKey?: boolean
}
export type AdminScheduledEmailOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "adminUserId" | "mailboxId" | "contactId" | "leadId" | "dealId" | "threadId" | "bulkRunId" | "toAddresses" | "ccAddresses" | "bccAddresses" | "subject" | "bodyHtml" | "bodyText" | "scheduledFor" | "timeZone" | "noReplyAfterDays" | "status" | "idempotencyKey" | "claimedAt" | "sentAt" | "sendAttemptCount" | "providerMessageId" | "sentMessageId" | "lastErrorMessageKey", ExtArgs["result"]["adminScheduledEmail"]>
export type AdminScheduledEmailInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
thread?: boolean | Prisma.AdminScheduledEmail$threadArgs<ExtArgs>
bulkRun?: boolean | Prisma.AdminScheduledEmail$bulkRunArgs<ExtArgs>
}
export type AdminScheduledEmailIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
thread?: boolean | Prisma.AdminScheduledEmail$threadArgs<ExtArgs>
bulkRun?: boolean | Prisma.AdminScheduledEmail$bulkRunArgs<ExtArgs>
}
export type AdminScheduledEmailIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
thread?: boolean | Prisma.AdminScheduledEmail$threadArgs<ExtArgs>
bulkRun?: boolean | Prisma.AdminScheduledEmail$bulkRunArgs<ExtArgs>
}
export type $AdminScheduledEmailPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AdminScheduledEmail"
objects: {
mailbox: Prisma.$AdminMailboxPayload<ExtArgs>
thread: Prisma.$AdminEmailThreadPayload<ExtArgs> | null
bulkRun: Prisma.$AdminBulkEmailRunPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
adminUserId: string
mailboxId: string
contactId: string | null
leadId: string | null
dealId: string | null
threadId: string | null
bulkRunId: string | null
toAddresses: string[]
ccAddresses: string[]
bccAddresses: string[]
subject: string
bodyHtml: string
bodyText: string | null
scheduledFor: Date
timeZone: string
noReplyAfterDays: number | null
status: $Enums.AdminScheduledEmailStatus
idempotencyKey: string
claimedAt: Date | null
sentAt: Date | null
sendAttemptCount: number
providerMessageId: string | null
sentMessageId: string | null
lastErrorMessageKey: string | null
}, ExtArgs["result"]["adminScheduledEmail"]>
composites: {}
}
export type AdminScheduledEmailGetPayload<S extends boolean | null | undefined | AdminScheduledEmailDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload, S>
export type AdminScheduledEmailCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AdminScheduledEmailFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AdminScheduledEmailCountAggregateInputType | true
}
export interface AdminScheduledEmailDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminScheduledEmail'], meta: { name: 'AdminScheduledEmail' } }
/**
* Find zero or one AdminScheduledEmail that matches the filter.
* @param {AdminScheduledEmailFindUniqueArgs} args - Arguments to find a AdminScheduledEmail
* @example
* // Get one AdminScheduledEmail
* const adminScheduledEmail = await prisma.adminScheduledEmail.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AdminScheduledEmailFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminScheduledEmailFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminScheduledEmailClient<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AdminScheduledEmail that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AdminScheduledEmailFindUniqueOrThrowArgs} args - Arguments to find a AdminScheduledEmail
* @example
* // Get one AdminScheduledEmail
* const adminScheduledEmail = await prisma.adminScheduledEmail.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AdminScheduledEmailFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminScheduledEmailFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminScheduledEmailClient<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminScheduledEmail 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 {AdminScheduledEmailFindFirstArgs} args - Arguments to find a AdminScheduledEmail
* @example
* // Get one AdminScheduledEmail
* const adminScheduledEmail = await prisma.adminScheduledEmail.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AdminScheduledEmailFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminScheduledEmailFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminScheduledEmailClient<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AdminScheduledEmail 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 {AdminScheduledEmailFindFirstOrThrowArgs} args - Arguments to find a AdminScheduledEmail
* @example
* // Get one AdminScheduledEmail
* const adminScheduledEmail = await prisma.adminScheduledEmail.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AdminScheduledEmailFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminScheduledEmailFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminScheduledEmailClient<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AdminScheduledEmails 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 {AdminScheduledEmailFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AdminScheduledEmails
* const adminScheduledEmails = await prisma.adminScheduledEmail.findMany()
*
* // Get first 10 AdminScheduledEmails
* const adminScheduledEmails = await prisma.adminScheduledEmail.findMany({ take: 10 })
*
* // Only select the `id`
* const adminScheduledEmailWithIdOnly = await prisma.adminScheduledEmail.findMany({ select: { id: true } })
*
*/
findMany<T extends AdminScheduledEmailFindManyArgs>(args?: Prisma.SelectSubset<T, AdminScheduledEmailFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AdminScheduledEmail.
* @param {AdminScheduledEmailCreateArgs} args - Arguments to create a AdminScheduledEmail.
* @example
* // Create one AdminScheduledEmail
* const AdminScheduledEmail = await prisma.adminScheduledEmail.create({
* data: {
* // ... data to create a AdminScheduledEmail
* }
* })
*
*/
create<T extends AdminScheduledEmailCreateArgs>(args: Prisma.SelectSubset<T, AdminScheduledEmailCreateArgs<ExtArgs>>): Prisma.Prisma__AdminScheduledEmailClient<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AdminScheduledEmails.
* @param {AdminScheduledEmailCreateManyArgs} args - Arguments to create many AdminScheduledEmails.
* @example
* // Create many AdminScheduledEmails
* const adminScheduledEmail = await prisma.adminScheduledEmail.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AdminScheduledEmailCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminScheduledEmailCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AdminScheduledEmails and returns the data saved in the database.
* @param {AdminScheduledEmailCreateManyAndReturnArgs} args - Arguments to create many AdminScheduledEmails.
* @example
* // Create many AdminScheduledEmails
* const adminScheduledEmail = await prisma.adminScheduledEmail.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AdminScheduledEmails and only return the `id`
* const adminScheduledEmailWithIdOnly = await prisma.adminScheduledEmail.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 AdminScheduledEmailCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminScheduledEmailCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AdminScheduledEmail.
* @param {AdminScheduledEmailDeleteArgs} args - Arguments to delete one AdminScheduledEmail.
* @example
* // Delete one AdminScheduledEmail
* const AdminScheduledEmail = await prisma.adminScheduledEmail.delete({
* where: {
* // ... filter to delete one AdminScheduledEmail
* }
* })
*
*/
delete<T extends AdminScheduledEmailDeleteArgs>(args: Prisma.SelectSubset<T, AdminScheduledEmailDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminScheduledEmailClient<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AdminScheduledEmail.
* @param {AdminScheduledEmailUpdateArgs} args - Arguments to update one AdminScheduledEmail.
* @example
* // Update one AdminScheduledEmail
* const adminScheduledEmail = await prisma.adminScheduledEmail.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AdminScheduledEmailUpdateArgs>(args: Prisma.SelectSubset<T, AdminScheduledEmailUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminScheduledEmailClient<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AdminScheduledEmails.
* @param {AdminScheduledEmailDeleteManyArgs} args - Arguments to filter AdminScheduledEmails to delete.
* @example
* // Delete a few AdminScheduledEmails
* const { count } = await prisma.adminScheduledEmail.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AdminScheduledEmailDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminScheduledEmailDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminScheduledEmails.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminScheduledEmailUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AdminScheduledEmails
* const adminScheduledEmail = await prisma.adminScheduledEmail.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AdminScheduledEmailUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminScheduledEmailUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AdminScheduledEmails and returns the data updated in the database.
* @param {AdminScheduledEmailUpdateManyAndReturnArgs} args - Arguments to update many AdminScheduledEmails.
* @example
* // Update many AdminScheduledEmails
* const adminScheduledEmail = await prisma.adminScheduledEmail.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AdminScheduledEmails and only return the `id`
* const adminScheduledEmailWithIdOnly = await prisma.adminScheduledEmail.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 AdminScheduledEmailUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminScheduledEmailUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AdminScheduledEmail.
* @param {AdminScheduledEmailUpsertArgs} args - Arguments to update or create a AdminScheduledEmail.
* @example
* // Update or create a AdminScheduledEmail
* const adminScheduledEmail = await prisma.adminScheduledEmail.upsert({
* create: {
* // ... data to create a AdminScheduledEmail
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AdminScheduledEmail we want to update
* }
* })
*/
upsert<T extends AdminScheduledEmailUpsertArgs>(args: Prisma.SelectSubset<T, AdminScheduledEmailUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminScheduledEmailClient<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AdminScheduledEmails.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminScheduledEmailCountArgs} args - Arguments to filter AdminScheduledEmails to count.
* @example
* // Count the number of AdminScheduledEmails
* const count = await prisma.adminScheduledEmail.count({
* where: {
* // ... the filter for the AdminScheduledEmails we want to count
* }
* })
**/
count<T extends AdminScheduledEmailCountArgs>(
args?: Prisma.Subset<T, AdminScheduledEmailCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AdminScheduledEmailCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AdminScheduledEmail.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminScheduledEmailAggregateArgs} 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 AdminScheduledEmailAggregateArgs>(args: Prisma.Subset<T, AdminScheduledEmailAggregateArgs>): Prisma.PrismaPromise<GetAdminScheduledEmailAggregateType<T>>
/**
* Group by AdminScheduledEmail.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AdminScheduledEmailGroupByArgs} 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 AdminScheduledEmailGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AdminScheduledEmailGroupByArgs['orderBy'] }
: { orderBy?: AdminScheduledEmailGroupByArgs['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, AdminScheduledEmailGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminScheduledEmailGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AdminScheduledEmail model
*/
readonly fields: AdminScheduledEmailFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AdminScheduledEmail.
* 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__AdminScheduledEmailClient<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.AdminMailboxDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminMailboxDefaultArgs<ExtArgs>>): Prisma.Prisma__AdminMailboxClient<runtime.Types.Result.GetResult<Prisma.$AdminMailboxPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
thread<T extends Prisma.AdminScheduledEmail$threadArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminScheduledEmail$threadArgs<ExtArgs>>): Prisma.Prisma__AdminEmailThreadClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
bulkRun<T extends Prisma.AdminScheduledEmail$bulkRunArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminScheduledEmail$bulkRunArgs<ExtArgs>>): Prisma.Prisma__AdminBulkEmailRunClient<runtime.Types.Result.GetResult<Prisma.$AdminBulkEmailRunPayload<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 AdminScheduledEmail model
*/
export interface AdminScheduledEmailFieldRefs {
readonly id: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly createdAt: Prisma.FieldRef<"AdminScheduledEmail", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"AdminScheduledEmail", 'DateTime'>
readonly adminUserId: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly mailboxId: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly contactId: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly leadId: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly dealId: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly threadId: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly bulkRunId: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly toAddresses: Prisma.FieldRef<"AdminScheduledEmail", 'String[]'>
readonly ccAddresses: Prisma.FieldRef<"AdminScheduledEmail", 'String[]'>
readonly bccAddresses: Prisma.FieldRef<"AdminScheduledEmail", 'String[]'>
readonly subject: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly bodyHtml: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly bodyText: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly scheduledFor: Prisma.FieldRef<"AdminScheduledEmail", 'DateTime'>
readonly timeZone: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly noReplyAfterDays: Prisma.FieldRef<"AdminScheduledEmail", 'Int'>
readonly status: Prisma.FieldRef<"AdminScheduledEmail", 'AdminScheduledEmailStatus'>
readonly idempotencyKey: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly claimedAt: Prisma.FieldRef<"AdminScheduledEmail", 'DateTime'>
readonly sentAt: Prisma.FieldRef<"AdminScheduledEmail", 'DateTime'>
readonly sendAttemptCount: Prisma.FieldRef<"AdminScheduledEmail", 'Int'>
readonly providerMessageId: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly sentMessageId: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
readonly lastErrorMessageKey: Prisma.FieldRef<"AdminScheduledEmail", 'String'>
}
// Custom InputTypes
/**
* AdminScheduledEmail findUnique
*/
export type AdminScheduledEmailFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
/**
* Filter, which AdminScheduledEmail to fetch.
*/
where: Prisma.AdminScheduledEmailWhereUniqueInput
}
/**
* AdminScheduledEmail findUniqueOrThrow
*/
export type AdminScheduledEmailFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
/**
* Filter, which AdminScheduledEmail to fetch.
*/
where: Prisma.AdminScheduledEmailWhereUniqueInput
}
/**
* AdminScheduledEmail findFirst
*/
export type AdminScheduledEmailFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
/**
* Filter, which AdminScheduledEmail to fetch.
*/
where?: Prisma.AdminScheduledEmailWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminScheduledEmails to fetch.
*/
orderBy?: Prisma.AdminScheduledEmailOrderByWithRelationInput | Prisma.AdminScheduledEmailOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminScheduledEmails.
*/
cursor?: Prisma.AdminScheduledEmailWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminScheduledEmails 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` AdminScheduledEmails.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminScheduledEmails.
*/
distinct?: Prisma.AdminScheduledEmailScalarFieldEnum | Prisma.AdminScheduledEmailScalarFieldEnum[]
}
/**
* AdminScheduledEmail findFirstOrThrow
*/
export type AdminScheduledEmailFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
/**
* Filter, which AdminScheduledEmail to fetch.
*/
where?: Prisma.AdminScheduledEmailWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminScheduledEmails to fetch.
*/
orderBy?: Prisma.AdminScheduledEmailOrderByWithRelationInput | Prisma.AdminScheduledEmailOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AdminScheduledEmails.
*/
cursor?: Prisma.AdminScheduledEmailWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminScheduledEmails 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` AdminScheduledEmails.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminScheduledEmails.
*/
distinct?: Prisma.AdminScheduledEmailScalarFieldEnum | Prisma.AdminScheduledEmailScalarFieldEnum[]
}
/**
* AdminScheduledEmail findMany
*/
export type AdminScheduledEmailFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
/**
* Filter, which AdminScheduledEmails to fetch.
*/
where?: Prisma.AdminScheduledEmailWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AdminScheduledEmails to fetch.
*/
orderBy?: Prisma.AdminScheduledEmailOrderByWithRelationInput | Prisma.AdminScheduledEmailOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AdminScheduledEmails.
*/
cursor?: Prisma.AdminScheduledEmailWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AdminScheduledEmails 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` AdminScheduledEmails.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AdminScheduledEmails.
*/
distinct?: Prisma.AdminScheduledEmailScalarFieldEnum | Prisma.AdminScheduledEmailScalarFieldEnum[]
}
/**
* AdminScheduledEmail create
*/
export type AdminScheduledEmailCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
/**
* The data needed to create a AdminScheduledEmail.
*/
data: Prisma.XOR<Prisma.AdminScheduledEmailCreateInput, Prisma.AdminScheduledEmailUncheckedCreateInput>
}
/**
* AdminScheduledEmail createMany
*/
export type AdminScheduledEmailCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AdminScheduledEmails.
*/
data: Prisma.AdminScheduledEmailCreateManyInput | Prisma.AdminScheduledEmailCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AdminScheduledEmail createManyAndReturn
*/
export type AdminScheduledEmailCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* The data used to create many AdminScheduledEmails.
*/
data: Prisma.AdminScheduledEmailCreateManyInput | Prisma.AdminScheduledEmailCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* AdminScheduledEmail update
*/
export type AdminScheduledEmailUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
/**
* The data needed to update a AdminScheduledEmail.
*/
data: Prisma.XOR<Prisma.AdminScheduledEmailUpdateInput, Prisma.AdminScheduledEmailUncheckedUpdateInput>
/**
* Choose, which AdminScheduledEmail to update.
*/
where: Prisma.AdminScheduledEmailWhereUniqueInput
}
/**
* AdminScheduledEmail updateMany
*/
export type AdminScheduledEmailUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AdminScheduledEmails.
*/
data: Prisma.XOR<Prisma.AdminScheduledEmailUpdateManyMutationInput, Prisma.AdminScheduledEmailUncheckedUpdateManyInput>
/**
* Filter which AdminScheduledEmails to update
*/
where?: Prisma.AdminScheduledEmailWhereInput
/**
* Limit how many AdminScheduledEmails to update.
*/
limit?: number
}
/**
* AdminScheduledEmail updateManyAndReturn
*/
export type AdminScheduledEmailUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* The data used to update AdminScheduledEmails.
*/
data: Prisma.XOR<Prisma.AdminScheduledEmailUpdateManyMutationInput, Prisma.AdminScheduledEmailUncheckedUpdateManyInput>
/**
* Filter which AdminScheduledEmails to update
*/
where?: Prisma.AdminScheduledEmailWhereInput
/**
* Limit how many AdminScheduledEmails to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* AdminScheduledEmail upsert
*/
export type AdminScheduledEmailUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
/**
* The filter to search for the AdminScheduledEmail to update in case it exists.
*/
where: Prisma.AdminScheduledEmailWhereUniqueInput
/**
* In case the AdminScheduledEmail found by the `where` argument doesn't exist, create a new AdminScheduledEmail with this data.
*/
create: Prisma.XOR<Prisma.AdminScheduledEmailCreateInput, Prisma.AdminScheduledEmailUncheckedCreateInput>
/**
* In case the AdminScheduledEmail was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AdminScheduledEmailUpdateInput, Prisma.AdminScheduledEmailUncheckedUpdateInput>
}
/**
* AdminScheduledEmail delete
*/
export type AdminScheduledEmailDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
/**
* Filter which AdminScheduledEmail to delete.
*/
where: Prisma.AdminScheduledEmailWhereUniqueInput
}
/**
* AdminScheduledEmail deleteMany
*/
export type AdminScheduledEmailDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AdminScheduledEmails to delete
*/
where?: Prisma.AdminScheduledEmailWhereInput
/**
* Limit how many AdminScheduledEmails to delete.
*/
limit?: number
}
/**
* AdminScheduledEmail.thread
*/
export type AdminScheduledEmail$threadArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminEmailThread
*/
select?: Prisma.AdminEmailThreadSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminEmailThread
*/
omit?: Prisma.AdminEmailThreadOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminEmailThreadInclude<ExtArgs> | null
where?: Prisma.AdminEmailThreadWhereInput
}
/**
* AdminScheduledEmail.bulkRun
*/
export type AdminScheduledEmail$bulkRunArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminBulkEmailRun
*/
select?: Prisma.AdminBulkEmailRunSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminBulkEmailRun
*/
omit?: Prisma.AdminBulkEmailRunOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminBulkEmailRunInclude<ExtArgs> | null
where?: Prisma.AdminBulkEmailRunWhereInput
}
/**
* AdminScheduledEmail without action
*/
export type AdminScheduledEmailDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AdminScheduledEmail
*/
select?: Prisma.AdminScheduledEmailSelect<ExtArgs> | null
/**
* Omit specific fields from the AdminScheduledEmail
*/
omit?: Prisma.AdminScheduledEmailOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.AdminScheduledEmailInclude<ExtArgs> | null
}