1922 lines
79 KiB
TypeScript
1922 lines
79 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 `AdminEmailThread` 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 AdminEmailThread
|
|
*
|
|
*/
|
|
export type AdminEmailThreadModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminEmailThreadPayload>
|
|
|
|
export type AggregateAdminEmailThread = {
|
|
_count: AdminEmailThreadCountAggregateOutputType | null
|
|
_avg: AdminEmailThreadAvgAggregateOutputType | null
|
|
_sum: AdminEmailThreadSumAggregateOutputType | null
|
|
_min: AdminEmailThreadMinAggregateOutputType | null
|
|
_max: AdminEmailThreadMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AdminEmailThreadAvgAggregateOutputType = {
|
|
messageCount: number | null
|
|
unreadCount: number | null
|
|
}
|
|
|
|
export type AdminEmailThreadSumAggregateOutputType = {
|
|
messageCount: number | null
|
|
unreadCount: number | null
|
|
}
|
|
|
|
export type AdminEmailThreadMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
archivedAt: Date | null
|
|
adminUserId: string | null
|
|
mailboxId: string | null
|
|
providerThreadId: string | null
|
|
normalizedSubject: string | null
|
|
latestMessageAt: Date | null
|
|
messageCount: number | null
|
|
unreadCount: number | null
|
|
}
|
|
|
|
export type AdminEmailThreadMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
archivedAt: Date | null
|
|
adminUserId: string | null
|
|
mailboxId: string | null
|
|
providerThreadId: string | null
|
|
normalizedSubject: string | null
|
|
latestMessageAt: Date | null
|
|
messageCount: number | null
|
|
unreadCount: number | null
|
|
}
|
|
|
|
export type AdminEmailThreadCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
archivedAt: number
|
|
adminUserId: number
|
|
mailboxId: number
|
|
providerThreadId: number
|
|
normalizedSubject: number
|
|
latestMessageAt: number
|
|
messageCount: number
|
|
unreadCount: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AdminEmailThreadAvgAggregateInputType = {
|
|
messageCount?: true
|
|
unreadCount?: true
|
|
}
|
|
|
|
export type AdminEmailThreadSumAggregateInputType = {
|
|
messageCount?: true
|
|
unreadCount?: true
|
|
}
|
|
|
|
export type AdminEmailThreadMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
archivedAt?: true
|
|
adminUserId?: true
|
|
mailboxId?: true
|
|
providerThreadId?: true
|
|
normalizedSubject?: true
|
|
latestMessageAt?: true
|
|
messageCount?: true
|
|
unreadCount?: true
|
|
}
|
|
|
|
export type AdminEmailThreadMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
archivedAt?: true
|
|
adminUserId?: true
|
|
mailboxId?: true
|
|
providerThreadId?: true
|
|
normalizedSubject?: true
|
|
latestMessageAt?: true
|
|
messageCount?: true
|
|
unreadCount?: true
|
|
}
|
|
|
|
export type AdminEmailThreadCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
archivedAt?: true
|
|
adminUserId?: true
|
|
mailboxId?: true
|
|
providerThreadId?: true
|
|
normalizedSubject?: true
|
|
latestMessageAt?: true
|
|
messageCount?: true
|
|
unreadCount?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AdminEmailThreadAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminEmailThread to aggregate.
|
|
*/
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminEmailThreads to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminEmailThreadOrderByWithRelationInput | Prisma.AdminEmailThreadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AdminEmailThreadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminEmailThreads 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` AdminEmailThreads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AdminEmailThreads
|
|
**/
|
|
_count?: true | AdminEmailThreadCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: AdminEmailThreadAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: AdminEmailThreadSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AdminEmailThreadMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AdminEmailThreadMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAdminEmailThreadAggregateType<T extends AdminEmailThreadAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdminEmailThread]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAdminEmailThread[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAdminEmailThread[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdminEmailThreadGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
orderBy?: Prisma.AdminEmailThreadOrderByWithAggregationInput | Prisma.AdminEmailThreadOrderByWithAggregationInput[]
|
|
by: Prisma.AdminEmailThreadScalarFieldEnum[] | Prisma.AdminEmailThreadScalarFieldEnum
|
|
having?: Prisma.AdminEmailThreadScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AdminEmailThreadCountAggregateInputType | true
|
|
_avg?: AdminEmailThreadAvgAggregateInputType
|
|
_sum?: AdminEmailThreadSumAggregateInputType
|
|
_min?: AdminEmailThreadMinAggregateInputType
|
|
_max?: AdminEmailThreadMaxAggregateInputType
|
|
}
|
|
|
|
export type AdminEmailThreadGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
archivedAt: Date | null
|
|
adminUserId: string
|
|
mailboxId: string
|
|
providerThreadId: string
|
|
normalizedSubject: string | null
|
|
latestMessageAt: Date
|
|
messageCount: number
|
|
unreadCount: number
|
|
_count: AdminEmailThreadCountAggregateOutputType | null
|
|
_avg: AdminEmailThreadAvgAggregateOutputType | null
|
|
_sum: AdminEmailThreadSumAggregateOutputType | null
|
|
_min: AdminEmailThreadMinAggregateOutputType | null
|
|
_max: AdminEmailThreadMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAdminEmailThreadGroupByPayload<T extends AdminEmailThreadGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AdminEmailThreadGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdminEmailThreadGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AdminEmailThreadGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AdminEmailThreadGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AdminEmailThreadWhereInput = {
|
|
AND?: Prisma.AdminEmailThreadWhereInput | Prisma.AdminEmailThreadWhereInput[]
|
|
OR?: Prisma.AdminEmailThreadWhereInput[]
|
|
NOT?: Prisma.AdminEmailThreadWhereInput | Prisma.AdminEmailThreadWhereInput[]
|
|
id?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminEmailThread"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AdminEmailThread"> | Date | string
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"AdminEmailThread"> | Date | string | null
|
|
adminUserId?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
mailboxId?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
providerThreadId?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
normalizedSubject?: Prisma.StringNullableFilter<"AdminEmailThread"> | string | null
|
|
latestMessageAt?: Prisma.DateTimeFilter<"AdminEmailThread"> | Date | string
|
|
messageCount?: Prisma.IntFilter<"AdminEmailThread"> | number
|
|
unreadCount?: Prisma.IntFilter<"AdminEmailThread"> | number
|
|
mailbox?: Prisma.XOR<Prisma.AdminMailboxScalarRelationFilter, Prisma.AdminMailboxWhereInput>
|
|
messages?: Prisma.AdminEmailMessageListRelationFilter
|
|
scheduled?: Prisma.AdminScheduledEmailListRelationFilter
|
|
}
|
|
|
|
export type AdminEmailThreadOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrder
|
|
normalizedSubject?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
latestMessageAt?: Prisma.SortOrder
|
|
messageCount?: Prisma.SortOrder
|
|
unreadCount?: Prisma.SortOrder
|
|
mailbox?: Prisma.AdminMailboxOrderByWithRelationInput
|
|
messages?: Prisma.AdminEmailMessageOrderByRelationAggregateInput
|
|
scheduled?: Prisma.AdminScheduledEmailOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type AdminEmailThreadWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
admin_email_thread_provider_key?: Prisma.AdminEmailThreadAdmin_email_thread_provider_keyCompoundUniqueInput
|
|
AND?: Prisma.AdminEmailThreadWhereInput | Prisma.AdminEmailThreadWhereInput[]
|
|
OR?: Prisma.AdminEmailThreadWhereInput[]
|
|
NOT?: Prisma.AdminEmailThreadWhereInput | Prisma.AdminEmailThreadWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"AdminEmailThread"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AdminEmailThread"> | Date | string
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"AdminEmailThread"> | Date | string | null
|
|
adminUserId?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
mailboxId?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
providerThreadId?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
normalizedSubject?: Prisma.StringNullableFilter<"AdminEmailThread"> | string | null
|
|
latestMessageAt?: Prisma.DateTimeFilter<"AdminEmailThread"> | Date | string
|
|
messageCount?: Prisma.IntFilter<"AdminEmailThread"> | number
|
|
unreadCount?: Prisma.IntFilter<"AdminEmailThread"> | number
|
|
mailbox?: Prisma.XOR<Prisma.AdminMailboxScalarRelationFilter, Prisma.AdminMailboxWhereInput>
|
|
messages?: Prisma.AdminEmailMessageListRelationFilter
|
|
scheduled?: Prisma.AdminScheduledEmailListRelationFilter
|
|
}, "id" | "admin_email_thread_provider_key">
|
|
|
|
export type AdminEmailThreadOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrder
|
|
normalizedSubject?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
latestMessageAt?: Prisma.SortOrder
|
|
messageCount?: Prisma.SortOrder
|
|
unreadCount?: Prisma.SortOrder
|
|
_count?: Prisma.AdminEmailThreadCountOrderByAggregateInput
|
|
_avg?: Prisma.AdminEmailThreadAvgOrderByAggregateInput
|
|
_max?: Prisma.AdminEmailThreadMaxOrderByAggregateInput
|
|
_min?: Prisma.AdminEmailThreadMinOrderByAggregateInput
|
|
_sum?: Prisma.AdminEmailThreadSumOrderByAggregateInput
|
|
}
|
|
|
|
export type AdminEmailThreadScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AdminEmailThreadScalarWhereWithAggregatesInput | Prisma.AdminEmailThreadScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AdminEmailThreadScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AdminEmailThreadScalarWhereWithAggregatesInput | Prisma.AdminEmailThreadScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"AdminEmailThread"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminEmailThread"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AdminEmailThread"> | Date | string
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"AdminEmailThread"> | Date | string | null
|
|
adminUserId?: Prisma.StringWithAggregatesFilter<"AdminEmailThread"> | string
|
|
mailboxId?: Prisma.StringWithAggregatesFilter<"AdminEmailThread"> | string
|
|
providerThreadId?: Prisma.StringWithAggregatesFilter<"AdminEmailThread"> | string
|
|
normalizedSubject?: Prisma.StringNullableWithAggregatesFilter<"AdminEmailThread"> | string | null
|
|
latestMessageAt?: Prisma.DateTimeWithAggregatesFilter<"AdminEmailThread"> | Date | string
|
|
messageCount?: Prisma.IntWithAggregatesFilter<"AdminEmailThread"> | number
|
|
unreadCount?: Prisma.IntWithAggregatesFilter<"AdminEmailThread"> | number
|
|
}
|
|
|
|
export type AdminEmailThreadCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
mailbox: Prisma.AdminMailboxCreateNestedOneWithoutThreadsInput
|
|
messages?: Prisma.AdminEmailMessageCreateNestedManyWithoutThreadInput
|
|
scheduled?: Prisma.AdminScheduledEmailCreateNestedManyWithoutThreadInput
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
mailboxId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
messages?: Prisma.AdminEmailMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
scheduled?: Prisma.AdminScheduledEmailUncheckedCreateNestedManyWithoutThreadInput
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mailbox?: Prisma.AdminMailboxUpdateOneRequiredWithoutThreadsNestedInput
|
|
messages?: Prisma.AdminEmailMessageUpdateManyWithoutThreadNestedInput
|
|
scheduled?: Prisma.AdminScheduledEmailUpdateManyWithoutThreadNestedInput
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
messages?: Prisma.AdminEmailMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
scheduled?: Prisma.AdminScheduledEmailUncheckedUpdateManyWithoutThreadNestedInput
|
|
}
|
|
|
|
export type AdminEmailThreadCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
mailboxId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type AdminEmailThreadListRelationFilter = {
|
|
every?: Prisma.AdminEmailThreadWhereInput
|
|
some?: Prisma.AdminEmailThreadWhereInput
|
|
none?: Prisma.AdminEmailThreadWhereInput
|
|
}
|
|
|
|
export type AdminEmailThreadOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminEmailThreadAdmin_email_thread_provider_keyCompoundUniqueInput = {
|
|
mailboxId: string
|
|
providerThreadId: string
|
|
}
|
|
|
|
export type AdminEmailThreadCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrder
|
|
normalizedSubject?: Prisma.SortOrder
|
|
latestMessageAt?: Prisma.SortOrder
|
|
messageCount?: Prisma.SortOrder
|
|
unreadCount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminEmailThreadAvgOrderByAggregateInput = {
|
|
messageCount?: Prisma.SortOrder
|
|
unreadCount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminEmailThreadMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrder
|
|
normalizedSubject?: Prisma.SortOrder
|
|
latestMessageAt?: Prisma.SortOrder
|
|
messageCount?: Prisma.SortOrder
|
|
unreadCount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminEmailThreadMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
mailboxId?: Prisma.SortOrder
|
|
providerThreadId?: Prisma.SortOrder
|
|
normalizedSubject?: Prisma.SortOrder
|
|
latestMessageAt?: Prisma.SortOrder
|
|
messageCount?: Prisma.SortOrder
|
|
unreadCount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminEmailThreadSumOrderByAggregateInput = {
|
|
messageCount?: Prisma.SortOrder
|
|
unreadCount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminEmailThreadScalarRelationFilter = {
|
|
is?: Prisma.AdminEmailThreadWhereInput
|
|
isNot?: Prisma.AdminEmailThreadWhereInput
|
|
}
|
|
|
|
export type AdminEmailThreadNullableScalarRelationFilter = {
|
|
is?: Prisma.AdminEmailThreadWhereInput | null
|
|
isNot?: Prisma.AdminEmailThreadWhereInput | null
|
|
}
|
|
|
|
export type AdminEmailThreadCreateNestedManyWithoutMailboxInput = {
|
|
create?: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMailboxInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput> | Prisma.AdminEmailThreadCreateWithoutMailboxInput[] | Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput[]
|
|
connectOrCreate?: Prisma.AdminEmailThreadCreateOrConnectWithoutMailboxInput | Prisma.AdminEmailThreadCreateOrConnectWithoutMailboxInput[]
|
|
createMany?: Prisma.AdminEmailThreadCreateManyMailboxInputEnvelope
|
|
connect?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedCreateNestedManyWithoutMailboxInput = {
|
|
create?: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMailboxInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput> | Prisma.AdminEmailThreadCreateWithoutMailboxInput[] | Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput[]
|
|
connectOrCreate?: Prisma.AdminEmailThreadCreateOrConnectWithoutMailboxInput | Prisma.AdminEmailThreadCreateOrConnectWithoutMailboxInput[]
|
|
createMany?: Prisma.AdminEmailThreadCreateManyMailboxInputEnvelope
|
|
connect?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateManyWithoutMailboxNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMailboxInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput> | Prisma.AdminEmailThreadCreateWithoutMailboxInput[] | Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput[]
|
|
connectOrCreate?: Prisma.AdminEmailThreadCreateOrConnectWithoutMailboxInput | Prisma.AdminEmailThreadCreateOrConnectWithoutMailboxInput[]
|
|
upsert?: Prisma.AdminEmailThreadUpsertWithWhereUniqueWithoutMailboxInput | Prisma.AdminEmailThreadUpsertWithWhereUniqueWithoutMailboxInput[]
|
|
createMany?: Prisma.AdminEmailThreadCreateManyMailboxInputEnvelope
|
|
set?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
disconnect?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
delete?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
connect?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
update?: Prisma.AdminEmailThreadUpdateWithWhereUniqueWithoutMailboxInput | Prisma.AdminEmailThreadUpdateWithWhereUniqueWithoutMailboxInput[]
|
|
updateMany?: Prisma.AdminEmailThreadUpdateManyWithWhereWithoutMailboxInput | Prisma.AdminEmailThreadUpdateManyWithWhereWithoutMailboxInput[]
|
|
deleteMany?: Prisma.AdminEmailThreadScalarWhereInput | Prisma.AdminEmailThreadScalarWhereInput[]
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedUpdateManyWithoutMailboxNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMailboxInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput> | Prisma.AdminEmailThreadCreateWithoutMailboxInput[] | Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput[]
|
|
connectOrCreate?: Prisma.AdminEmailThreadCreateOrConnectWithoutMailboxInput | Prisma.AdminEmailThreadCreateOrConnectWithoutMailboxInput[]
|
|
upsert?: Prisma.AdminEmailThreadUpsertWithWhereUniqueWithoutMailboxInput | Prisma.AdminEmailThreadUpsertWithWhereUniqueWithoutMailboxInput[]
|
|
createMany?: Prisma.AdminEmailThreadCreateManyMailboxInputEnvelope
|
|
set?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
disconnect?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
delete?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
connect?: Prisma.AdminEmailThreadWhereUniqueInput | Prisma.AdminEmailThreadWhereUniqueInput[]
|
|
update?: Prisma.AdminEmailThreadUpdateWithWhereUniqueWithoutMailboxInput | Prisma.AdminEmailThreadUpdateWithWhereUniqueWithoutMailboxInput[]
|
|
updateMany?: Prisma.AdminEmailThreadUpdateManyWithWhereWithoutMailboxInput | Prisma.AdminEmailThreadUpdateManyWithWhereWithoutMailboxInput[]
|
|
deleteMany?: Prisma.AdminEmailThreadScalarWhereInput | Prisma.AdminEmailThreadScalarWhereInput[]
|
|
}
|
|
|
|
export type AdminEmailThreadCreateNestedOneWithoutMessagesInput = {
|
|
create?: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMessagesInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMessagesInput>
|
|
connectOrCreate?: Prisma.AdminEmailThreadCreateOrConnectWithoutMessagesInput
|
|
connect?: Prisma.AdminEmailThreadWhereUniqueInput
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateOneRequiredWithoutMessagesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMessagesInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMessagesInput>
|
|
connectOrCreate?: Prisma.AdminEmailThreadCreateOrConnectWithoutMessagesInput
|
|
upsert?: Prisma.AdminEmailThreadUpsertWithoutMessagesInput
|
|
connect?: Prisma.AdminEmailThreadWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminEmailThreadUpdateToOneWithWhereWithoutMessagesInput, Prisma.AdminEmailThreadUpdateWithoutMessagesInput>, Prisma.AdminEmailThreadUncheckedUpdateWithoutMessagesInput>
|
|
}
|
|
|
|
export type AdminEmailThreadCreateNestedOneWithoutScheduledInput = {
|
|
create?: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutScheduledInput, Prisma.AdminEmailThreadUncheckedCreateWithoutScheduledInput>
|
|
connectOrCreate?: Prisma.AdminEmailThreadCreateOrConnectWithoutScheduledInput
|
|
connect?: Prisma.AdminEmailThreadWhereUniqueInput
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateOneWithoutScheduledNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutScheduledInput, Prisma.AdminEmailThreadUncheckedCreateWithoutScheduledInput>
|
|
connectOrCreate?: Prisma.AdminEmailThreadCreateOrConnectWithoutScheduledInput
|
|
upsert?: Prisma.AdminEmailThreadUpsertWithoutScheduledInput
|
|
disconnect?: Prisma.AdminEmailThreadWhereInput | boolean
|
|
delete?: Prisma.AdminEmailThreadWhereInput | boolean
|
|
connect?: Prisma.AdminEmailThreadWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminEmailThreadUpdateToOneWithWhereWithoutScheduledInput, Prisma.AdminEmailThreadUpdateWithoutScheduledInput>, Prisma.AdminEmailThreadUncheckedUpdateWithoutScheduledInput>
|
|
}
|
|
|
|
export type AdminEmailThreadCreateWithoutMailboxInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
messages?: Prisma.AdminEmailMessageCreateNestedManyWithoutThreadInput
|
|
scheduled?: Prisma.AdminScheduledEmailCreateNestedManyWithoutThreadInput
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedCreateWithoutMailboxInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
messages?: Prisma.AdminEmailMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
scheduled?: Prisma.AdminScheduledEmailUncheckedCreateNestedManyWithoutThreadInput
|
|
}
|
|
|
|
export type AdminEmailThreadCreateOrConnectWithoutMailboxInput = {
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMailboxInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput>
|
|
}
|
|
|
|
export type AdminEmailThreadCreateManyMailboxInputEnvelope = {
|
|
data: Prisma.AdminEmailThreadCreateManyMailboxInput | Prisma.AdminEmailThreadCreateManyMailboxInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type AdminEmailThreadUpsertWithWhereUniqueWithoutMailboxInput = {
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.AdminEmailThreadUpdateWithoutMailboxInput, Prisma.AdminEmailThreadUncheckedUpdateWithoutMailboxInput>
|
|
create: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMailboxInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMailboxInput>
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateWithWhereUniqueWithoutMailboxInput = {
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.AdminEmailThreadUpdateWithoutMailboxInput, Prisma.AdminEmailThreadUncheckedUpdateWithoutMailboxInput>
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateManyWithWhereWithoutMailboxInput = {
|
|
where: Prisma.AdminEmailThreadScalarWhereInput
|
|
data: Prisma.XOR<Prisma.AdminEmailThreadUpdateManyMutationInput, Prisma.AdminEmailThreadUncheckedUpdateManyWithoutMailboxInput>
|
|
}
|
|
|
|
export type AdminEmailThreadScalarWhereInput = {
|
|
AND?: Prisma.AdminEmailThreadScalarWhereInput | Prisma.AdminEmailThreadScalarWhereInput[]
|
|
OR?: Prisma.AdminEmailThreadScalarWhereInput[]
|
|
NOT?: Prisma.AdminEmailThreadScalarWhereInput | Prisma.AdminEmailThreadScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminEmailThread"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"AdminEmailThread"> | Date | string
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"AdminEmailThread"> | Date | string | null
|
|
adminUserId?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
mailboxId?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
providerThreadId?: Prisma.StringFilter<"AdminEmailThread"> | string
|
|
normalizedSubject?: Prisma.StringNullableFilter<"AdminEmailThread"> | string | null
|
|
latestMessageAt?: Prisma.DateTimeFilter<"AdminEmailThread"> | Date | string
|
|
messageCount?: Prisma.IntFilter<"AdminEmailThread"> | number
|
|
unreadCount?: Prisma.IntFilter<"AdminEmailThread"> | number
|
|
}
|
|
|
|
export type AdminEmailThreadCreateWithoutMessagesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
mailbox: Prisma.AdminMailboxCreateNestedOneWithoutThreadsInput
|
|
scheduled?: Prisma.AdminScheduledEmailCreateNestedManyWithoutThreadInput
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedCreateWithoutMessagesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
mailboxId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
scheduled?: Prisma.AdminScheduledEmailUncheckedCreateNestedManyWithoutThreadInput
|
|
}
|
|
|
|
export type AdminEmailThreadCreateOrConnectWithoutMessagesInput = {
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMessagesInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMessagesInput>
|
|
}
|
|
|
|
export type AdminEmailThreadUpsertWithoutMessagesInput = {
|
|
update: Prisma.XOR<Prisma.AdminEmailThreadUpdateWithoutMessagesInput, Prisma.AdminEmailThreadUncheckedUpdateWithoutMessagesInput>
|
|
create: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutMessagesInput, Prisma.AdminEmailThreadUncheckedCreateWithoutMessagesInput>
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateToOneWithWhereWithoutMessagesInput = {
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
data: Prisma.XOR<Prisma.AdminEmailThreadUpdateWithoutMessagesInput, Prisma.AdminEmailThreadUncheckedUpdateWithoutMessagesInput>
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateWithoutMessagesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mailbox?: Prisma.AdminMailboxUpdateOneRequiredWithoutThreadsNestedInput
|
|
scheduled?: Prisma.AdminScheduledEmailUpdateManyWithoutThreadNestedInput
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedUpdateWithoutMessagesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
scheduled?: Prisma.AdminScheduledEmailUncheckedUpdateManyWithoutThreadNestedInput
|
|
}
|
|
|
|
export type AdminEmailThreadCreateWithoutScheduledInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
mailbox: Prisma.AdminMailboxCreateNestedOneWithoutThreadsInput
|
|
messages?: Prisma.AdminEmailMessageCreateNestedManyWithoutThreadInput
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedCreateWithoutScheduledInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
mailboxId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
messages?: Prisma.AdminEmailMessageUncheckedCreateNestedManyWithoutThreadInput
|
|
}
|
|
|
|
export type AdminEmailThreadCreateOrConnectWithoutScheduledInput = {
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutScheduledInput, Prisma.AdminEmailThreadUncheckedCreateWithoutScheduledInput>
|
|
}
|
|
|
|
export type AdminEmailThreadUpsertWithoutScheduledInput = {
|
|
update: Prisma.XOR<Prisma.AdminEmailThreadUpdateWithoutScheduledInput, Prisma.AdminEmailThreadUncheckedUpdateWithoutScheduledInput>
|
|
create: Prisma.XOR<Prisma.AdminEmailThreadCreateWithoutScheduledInput, Prisma.AdminEmailThreadUncheckedCreateWithoutScheduledInput>
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateToOneWithWhereWithoutScheduledInput = {
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
data: Prisma.XOR<Prisma.AdminEmailThreadUpdateWithoutScheduledInput, Prisma.AdminEmailThreadUncheckedUpdateWithoutScheduledInput>
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateWithoutScheduledInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
mailbox?: Prisma.AdminMailboxUpdateOneRequiredWithoutThreadsNestedInput
|
|
messages?: Prisma.AdminEmailMessageUpdateManyWithoutThreadNestedInput
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedUpdateWithoutScheduledInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
mailboxId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
messages?: Prisma.AdminEmailMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
}
|
|
|
|
export type AdminEmailThreadCreateManyMailboxInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
archivedAt?: Date | string | null
|
|
adminUserId: string
|
|
providerThreadId: string
|
|
normalizedSubject?: string | null
|
|
latestMessageAt: Date | string
|
|
messageCount?: number
|
|
unreadCount?: number
|
|
}
|
|
|
|
export type AdminEmailThreadUpdateWithoutMailboxInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
messages?: Prisma.AdminEmailMessageUpdateManyWithoutThreadNestedInput
|
|
scheduled?: Prisma.AdminScheduledEmailUpdateManyWithoutThreadNestedInput
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedUpdateWithoutMailboxInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
messages?: Prisma.AdminEmailMessageUncheckedUpdateManyWithoutThreadNestedInput
|
|
scheduled?: Prisma.AdminScheduledEmailUncheckedUpdateManyWithoutThreadNestedInput
|
|
}
|
|
|
|
export type AdminEmailThreadUncheckedUpdateManyWithoutMailboxInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerThreadId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
normalizedSubject?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
latestMessageAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
messageCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
unreadCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type AdminEmailThreadCountOutputType
|
|
*/
|
|
|
|
export type AdminEmailThreadCountOutputType = {
|
|
messages: number
|
|
scheduled: number
|
|
}
|
|
|
|
export type AdminEmailThreadCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
messages?: boolean | AdminEmailThreadCountOutputTypeCountMessagesArgs
|
|
scheduled?: boolean | AdminEmailThreadCountOutputTypeCountScheduledArgs
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThreadCountOutputType without action
|
|
*/
|
|
export type AdminEmailThreadCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailThreadCountOutputType
|
|
*/
|
|
select?: Prisma.AdminEmailThreadCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThreadCountOutputType without action
|
|
*/
|
|
export type AdminEmailThreadCountOutputTypeCountMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminEmailMessageWhereInput
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThreadCountOutputType without action
|
|
*/
|
|
export type AdminEmailThreadCountOutputTypeCountScheduledArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminScheduledEmailWhereInput
|
|
}
|
|
|
|
|
|
export type AdminEmailThreadSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
archivedAt?: boolean
|
|
adminUserId?: boolean
|
|
mailboxId?: boolean
|
|
providerThreadId?: boolean
|
|
normalizedSubject?: boolean
|
|
latestMessageAt?: boolean
|
|
messageCount?: boolean
|
|
unreadCount?: boolean
|
|
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
|
|
messages?: boolean | Prisma.AdminEmailThread$messagesArgs<ExtArgs>
|
|
scheduled?: boolean | Prisma.AdminEmailThread$scheduledArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AdminEmailThreadCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminEmailThread"]>
|
|
|
|
export type AdminEmailThreadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
archivedAt?: boolean
|
|
adminUserId?: boolean
|
|
mailboxId?: boolean
|
|
providerThreadId?: boolean
|
|
normalizedSubject?: boolean
|
|
latestMessageAt?: boolean
|
|
messageCount?: boolean
|
|
unreadCount?: boolean
|
|
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminEmailThread"]>
|
|
|
|
export type AdminEmailThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
archivedAt?: boolean
|
|
adminUserId?: boolean
|
|
mailboxId?: boolean
|
|
providerThreadId?: boolean
|
|
normalizedSubject?: boolean
|
|
latestMessageAt?: boolean
|
|
messageCount?: boolean
|
|
unreadCount?: boolean
|
|
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminEmailThread"]>
|
|
|
|
export type AdminEmailThreadSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
archivedAt?: boolean
|
|
adminUserId?: boolean
|
|
mailboxId?: boolean
|
|
providerThreadId?: boolean
|
|
normalizedSubject?: boolean
|
|
latestMessageAt?: boolean
|
|
messageCount?: boolean
|
|
unreadCount?: boolean
|
|
}
|
|
|
|
export type AdminEmailThreadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "archivedAt" | "adminUserId" | "mailboxId" | "providerThreadId" | "normalizedSubject" | "latestMessageAt" | "messageCount" | "unreadCount", ExtArgs["result"]["adminEmailThread"]>
|
|
export type AdminEmailThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
|
|
messages?: boolean | Prisma.AdminEmailThread$messagesArgs<ExtArgs>
|
|
scheduled?: boolean | Prisma.AdminEmailThread$scheduledArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AdminEmailThreadCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminEmailThreadIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminEmailThreadIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
mailbox?: boolean | Prisma.AdminMailboxDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AdminEmailThreadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AdminEmailThread"
|
|
objects: {
|
|
mailbox: Prisma.$AdminMailboxPayload<ExtArgs>
|
|
messages: Prisma.$AdminEmailMessagePayload<ExtArgs>[]
|
|
scheduled: Prisma.$AdminScheduledEmailPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
archivedAt: Date | null
|
|
adminUserId: string
|
|
mailboxId: string
|
|
providerThreadId: string
|
|
normalizedSubject: string | null
|
|
latestMessageAt: Date
|
|
messageCount: number
|
|
unreadCount: number
|
|
}, ExtArgs["result"]["adminEmailThread"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AdminEmailThreadGetPayload<S extends boolean | null | undefined | AdminEmailThreadDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload, S>
|
|
|
|
export type AdminEmailThreadCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AdminEmailThreadFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdminEmailThreadCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdminEmailThreadDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminEmailThread'], meta: { name: 'AdminEmailThread' } }
|
|
/**
|
|
* Find zero or one AdminEmailThread that matches the filter.
|
|
* @param {AdminEmailThreadFindUniqueArgs} args - Arguments to find a AdminEmailThread
|
|
* @example
|
|
* // Get one AdminEmailThread
|
|
* const adminEmailThread = await prisma.adminEmailThread.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AdminEmailThreadFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminEmailThreadFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminEmailThreadClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AdminEmailThread that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AdminEmailThreadFindUniqueOrThrowArgs} args - Arguments to find a AdminEmailThread
|
|
* @example
|
|
* // Get one AdminEmailThread
|
|
* const adminEmailThread = await prisma.adminEmailThread.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AdminEmailThreadFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminEmailThreadFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminEmailThreadClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminEmailThread 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 {AdminEmailThreadFindFirstArgs} args - Arguments to find a AdminEmailThread
|
|
* @example
|
|
* // Get one AdminEmailThread
|
|
* const adminEmailThread = await prisma.adminEmailThread.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AdminEmailThreadFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminEmailThreadFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminEmailThreadClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminEmailThread 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 {AdminEmailThreadFindFirstOrThrowArgs} args - Arguments to find a AdminEmailThread
|
|
* @example
|
|
* // Get one AdminEmailThread
|
|
* const adminEmailThread = await prisma.adminEmailThread.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AdminEmailThreadFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminEmailThreadFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminEmailThreadClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AdminEmailThreads 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 {AdminEmailThreadFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AdminEmailThreads
|
|
* const adminEmailThreads = await prisma.adminEmailThread.findMany()
|
|
*
|
|
* // Get first 10 AdminEmailThreads
|
|
* const adminEmailThreads = await prisma.adminEmailThread.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const adminEmailThreadWithIdOnly = await prisma.adminEmailThread.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AdminEmailThreadFindManyArgs>(args?: Prisma.SelectSubset<T, AdminEmailThreadFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AdminEmailThread.
|
|
* @param {AdminEmailThreadCreateArgs} args - Arguments to create a AdminEmailThread.
|
|
* @example
|
|
* // Create one AdminEmailThread
|
|
* const AdminEmailThread = await prisma.adminEmailThread.create({
|
|
* data: {
|
|
* // ... data to create a AdminEmailThread
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AdminEmailThreadCreateArgs>(args: Prisma.SelectSubset<T, AdminEmailThreadCreateArgs<ExtArgs>>): Prisma.Prisma__AdminEmailThreadClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AdminEmailThreads.
|
|
* @param {AdminEmailThreadCreateManyArgs} args - Arguments to create many AdminEmailThreads.
|
|
* @example
|
|
* // Create many AdminEmailThreads
|
|
* const adminEmailThread = await prisma.adminEmailThread.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AdminEmailThreadCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminEmailThreadCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many AdminEmailThreads and returns the data saved in the database.
|
|
* @param {AdminEmailThreadCreateManyAndReturnArgs} args - Arguments to create many AdminEmailThreads.
|
|
* @example
|
|
* // Create many AdminEmailThreads
|
|
* const adminEmailThread = await prisma.adminEmailThread.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AdminEmailThreads and only return the `id`
|
|
* const adminEmailThreadWithIdOnly = await prisma.adminEmailThread.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 AdminEmailThreadCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminEmailThreadCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AdminEmailThread.
|
|
* @param {AdminEmailThreadDeleteArgs} args - Arguments to delete one AdminEmailThread.
|
|
* @example
|
|
* // Delete one AdminEmailThread
|
|
* const AdminEmailThread = await prisma.adminEmailThread.delete({
|
|
* where: {
|
|
* // ... filter to delete one AdminEmailThread
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AdminEmailThreadDeleteArgs>(args: Prisma.SelectSubset<T, AdminEmailThreadDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminEmailThreadClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AdminEmailThread.
|
|
* @param {AdminEmailThreadUpdateArgs} args - Arguments to update one AdminEmailThread.
|
|
* @example
|
|
* // Update one AdminEmailThread
|
|
* const adminEmailThread = await prisma.adminEmailThread.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AdminEmailThreadUpdateArgs>(args: Prisma.SelectSubset<T, AdminEmailThreadUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminEmailThreadClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AdminEmailThreads.
|
|
* @param {AdminEmailThreadDeleteManyArgs} args - Arguments to filter AdminEmailThreads to delete.
|
|
* @example
|
|
* // Delete a few AdminEmailThreads
|
|
* const { count } = await prisma.adminEmailThread.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AdminEmailThreadDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminEmailThreadDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminEmailThreads.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminEmailThreadUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AdminEmailThreads
|
|
* const adminEmailThread = await prisma.adminEmailThread.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AdminEmailThreadUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminEmailThreadUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminEmailThreads and returns the data updated in the database.
|
|
* @param {AdminEmailThreadUpdateManyAndReturnArgs} args - Arguments to update many AdminEmailThreads.
|
|
* @example
|
|
* // Update many AdminEmailThreads
|
|
* const adminEmailThread = await prisma.adminEmailThread.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AdminEmailThreads and only return the `id`
|
|
* const adminEmailThreadWithIdOnly = await prisma.adminEmailThread.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 AdminEmailThreadUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminEmailThreadUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AdminEmailThread.
|
|
* @param {AdminEmailThreadUpsertArgs} args - Arguments to update or create a AdminEmailThread.
|
|
* @example
|
|
* // Update or create a AdminEmailThread
|
|
* const adminEmailThread = await prisma.adminEmailThread.upsert({
|
|
* create: {
|
|
* // ... data to create a AdminEmailThread
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AdminEmailThread we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AdminEmailThreadUpsertArgs>(args: Prisma.SelectSubset<T, AdminEmailThreadUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminEmailThreadClient<runtime.Types.Result.GetResult<Prisma.$AdminEmailThreadPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AdminEmailThreads.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminEmailThreadCountArgs} args - Arguments to filter AdminEmailThreads to count.
|
|
* @example
|
|
* // Count the number of AdminEmailThreads
|
|
* const count = await prisma.adminEmailThread.count({
|
|
* where: {
|
|
* // ... the filter for the AdminEmailThreads we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AdminEmailThreadCountArgs>(
|
|
args?: Prisma.Subset<T, AdminEmailThreadCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AdminEmailThreadCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AdminEmailThread.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminEmailThreadAggregateArgs} 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 AdminEmailThreadAggregateArgs>(args: Prisma.Subset<T, AdminEmailThreadAggregateArgs>): Prisma.PrismaPromise<GetAdminEmailThreadAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AdminEmailThread.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminEmailThreadGroupByArgs} 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 AdminEmailThreadGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AdminEmailThreadGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdminEmailThreadGroupByArgs['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, AdminEmailThreadGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminEmailThreadGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AdminEmailThread model
|
|
*/
|
|
readonly fields: AdminEmailThreadFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AdminEmailThread.
|
|
* 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__AdminEmailThreadClient<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>
|
|
messages<T extends Prisma.AdminEmailThread$messagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminEmailThread$messagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminEmailMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
scheduled<T extends Prisma.AdminEmailThread$scheduledArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminEmailThread$scheduledArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminScheduledEmailPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the AdminEmailThread model
|
|
*/
|
|
export interface AdminEmailThreadFieldRefs {
|
|
readonly id: Prisma.FieldRef<"AdminEmailThread", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"AdminEmailThread", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"AdminEmailThread", 'DateTime'>
|
|
readonly archivedAt: Prisma.FieldRef<"AdminEmailThread", 'DateTime'>
|
|
readonly adminUserId: Prisma.FieldRef<"AdminEmailThread", 'String'>
|
|
readonly mailboxId: Prisma.FieldRef<"AdminEmailThread", 'String'>
|
|
readonly providerThreadId: Prisma.FieldRef<"AdminEmailThread", 'String'>
|
|
readonly normalizedSubject: Prisma.FieldRef<"AdminEmailThread", 'String'>
|
|
readonly latestMessageAt: Prisma.FieldRef<"AdminEmailThread", 'DateTime'>
|
|
readonly messageCount: Prisma.FieldRef<"AdminEmailThread", 'Int'>
|
|
readonly unreadCount: Prisma.FieldRef<"AdminEmailThread", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AdminEmailThread findUnique
|
|
*/
|
|
export type AdminEmailThreadFindUniqueArgs<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
|
|
/**
|
|
* Filter, which AdminEmailThread to fetch.
|
|
*/
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread findUniqueOrThrow
|
|
*/
|
|
export type AdminEmailThreadFindUniqueOrThrowArgs<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
|
|
/**
|
|
* Filter, which AdminEmailThread to fetch.
|
|
*/
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread findFirst
|
|
*/
|
|
export type AdminEmailThreadFindFirstArgs<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
|
|
/**
|
|
* Filter, which AdminEmailThread to fetch.
|
|
*/
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminEmailThreads to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminEmailThreadOrderByWithRelationInput | Prisma.AdminEmailThreadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminEmailThreads.
|
|
*/
|
|
cursor?: Prisma.AdminEmailThreadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminEmailThreads 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` AdminEmailThreads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminEmailThreads.
|
|
*/
|
|
distinct?: Prisma.AdminEmailThreadScalarFieldEnum | Prisma.AdminEmailThreadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread findFirstOrThrow
|
|
*/
|
|
export type AdminEmailThreadFindFirstOrThrowArgs<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
|
|
/**
|
|
* Filter, which AdminEmailThread to fetch.
|
|
*/
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminEmailThreads to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminEmailThreadOrderByWithRelationInput | Prisma.AdminEmailThreadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminEmailThreads.
|
|
*/
|
|
cursor?: Prisma.AdminEmailThreadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminEmailThreads 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` AdminEmailThreads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminEmailThreads.
|
|
*/
|
|
distinct?: Prisma.AdminEmailThreadScalarFieldEnum | Prisma.AdminEmailThreadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread findMany
|
|
*/
|
|
export type AdminEmailThreadFindManyArgs<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
|
|
/**
|
|
* Filter, which AdminEmailThreads to fetch.
|
|
*/
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminEmailThreads to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminEmailThreadOrderByWithRelationInput | Prisma.AdminEmailThreadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AdminEmailThreads.
|
|
*/
|
|
cursor?: Prisma.AdminEmailThreadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminEmailThreads 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` AdminEmailThreads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminEmailThreads.
|
|
*/
|
|
distinct?: Prisma.AdminEmailThreadScalarFieldEnum | Prisma.AdminEmailThreadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread create
|
|
*/
|
|
export type AdminEmailThreadCreateArgs<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
|
|
/**
|
|
* The data needed to create a AdminEmailThread.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminEmailThreadCreateInput, Prisma.AdminEmailThreadUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread createMany
|
|
*/
|
|
export type AdminEmailThreadCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AdminEmailThreads.
|
|
*/
|
|
data: Prisma.AdminEmailThreadCreateManyInput | Prisma.AdminEmailThreadCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread createManyAndReturn
|
|
*/
|
|
export type AdminEmailThreadCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailThread
|
|
*/
|
|
select?: Prisma.AdminEmailThreadSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailThread
|
|
*/
|
|
omit?: Prisma.AdminEmailThreadOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AdminEmailThreads.
|
|
*/
|
|
data: Prisma.AdminEmailThreadCreateManyInput | Prisma.AdminEmailThreadCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminEmailThreadIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread update
|
|
*/
|
|
export type AdminEmailThreadUpdateArgs<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
|
|
/**
|
|
* The data needed to update a AdminEmailThread.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminEmailThreadUpdateInput, Prisma.AdminEmailThreadUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AdminEmailThread to update.
|
|
*/
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread updateMany
|
|
*/
|
|
export type AdminEmailThreadUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AdminEmailThreads.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminEmailThreadUpdateManyMutationInput, Prisma.AdminEmailThreadUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminEmailThreads to update
|
|
*/
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
/**
|
|
* Limit how many AdminEmailThreads to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread updateManyAndReturn
|
|
*/
|
|
export type AdminEmailThreadUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailThread
|
|
*/
|
|
select?: Prisma.AdminEmailThreadSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailThread
|
|
*/
|
|
omit?: Prisma.AdminEmailThreadOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AdminEmailThreads.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminEmailThreadUpdateManyMutationInput, Prisma.AdminEmailThreadUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminEmailThreads to update
|
|
*/
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
/**
|
|
* Limit how many AdminEmailThreads to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminEmailThreadIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread upsert
|
|
*/
|
|
export type AdminEmailThreadUpsertArgs<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
|
|
/**
|
|
* The filter to search for the AdminEmailThread to update in case it exists.
|
|
*/
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
/**
|
|
* In case the AdminEmailThread found by the `where` argument doesn't exist, create a new AdminEmailThread with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AdminEmailThreadCreateInput, Prisma.AdminEmailThreadUncheckedCreateInput>
|
|
/**
|
|
* In case the AdminEmailThread was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AdminEmailThreadUpdateInput, Prisma.AdminEmailThreadUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread delete
|
|
*/
|
|
export type AdminEmailThreadDeleteArgs<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
|
|
/**
|
|
* Filter which AdminEmailThread to delete.
|
|
*/
|
|
where: Prisma.AdminEmailThreadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread deleteMany
|
|
*/
|
|
export type AdminEmailThreadDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminEmailThreads to delete
|
|
*/
|
|
where?: Prisma.AdminEmailThreadWhereInput
|
|
/**
|
|
* Limit how many AdminEmailThreads to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread.messages
|
|
*/
|
|
export type AdminEmailThread$messagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminEmailMessage
|
|
*/
|
|
select?: Prisma.AdminEmailMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminEmailMessage
|
|
*/
|
|
omit?: Prisma.AdminEmailMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminEmailMessageInclude<ExtArgs> | null
|
|
where?: Prisma.AdminEmailMessageWhereInput
|
|
orderBy?: Prisma.AdminEmailMessageOrderByWithRelationInput | Prisma.AdminEmailMessageOrderByWithRelationInput[]
|
|
cursor?: Prisma.AdminEmailMessageWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.AdminEmailMessageScalarFieldEnum | Prisma.AdminEmailMessageScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread.scheduled
|
|
*/
|
|
export type AdminEmailThread$scheduledArgs<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
|
|
where?: Prisma.AdminScheduledEmailWhereInput
|
|
orderBy?: Prisma.AdminScheduledEmailOrderByWithRelationInput | Prisma.AdminScheduledEmailOrderByWithRelationInput[]
|
|
cursor?: Prisma.AdminScheduledEmailWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.AdminScheduledEmailScalarFieldEnum | Prisma.AdminScheduledEmailScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminEmailThread without action
|
|
*/
|
|
export type AdminEmailThreadDefaultArgs<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
|
|
}
|