1632 lines
65 KiB
TypeScript
1632 lines
65 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 `TeamChatThread` 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 TeamChatThread
|
|
* Denormalized aggregate for the one-level reply list of a parent message.
|
|
*/
|
|
export type TeamChatThreadModel = runtime.Types.Result.DefaultSelection<Prisma.$TeamChatThreadPayload>
|
|
|
|
export type AggregateTeamChatThread = {
|
|
_count: TeamChatThreadCountAggregateOutputType | null
|
|
_avg: TeamChatThreadAvgAggregateOutputType | null
|
|
_sum: TeamChatThreadSumAggregateOutputType | null
|
|
_min: TeamChatThreadMinAggregateOutputType | null
|
|
_max: TeamChatThreadMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TeamChatThreadAvgAggregateOutputType = {
|
|
replyCount: number | null
|
|
}
|
|
|
|
export type TeamChatThreadSumAggregateOutputType = {
|
|
replyCount: number | null
|
|
}
|
|
|
|
export type TeamChatThreadMinAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
chatId: string | null
|
|
parentMessageId: string | null
|
|
createdAt: Date | null
|
|
createdByUserId: string | null
|
|
lastReplyAt: Date | null
|
|
replyCount: number | null
|
|
}
|
|
|
|
export type TeamChatThreadMaxAggregateOutputType = {
|
|
id: string | null
|
|
tenantId: string | null
|
|
chatId: string | null
|
|
parentMessageId: string | null
|
|
createdAt: Date | null
|
|
createdByUserId: string | null
|
|
lastReplyAt: Date | null
|
|
replyCount: number | null
|
|
}
|
|
|
|
export type TeamChatThreadCountAggregateOutputType = {
|
|
id: number
|
|
tenantId: number
|
|
chatId: number
|
|
parentMessageId: number
|
|
createdAt: number
|
|
createdByUserId: number
|
|
lastReplyAt: number
|
|
replyCount: number
|
|
participantUserIds: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TeamChatThreadAvgAggregateInputType = {
|
|
replyCount?: true
|
|
}
|
|
|
|
export type TeamChatThreadSumAggregateInputType = {
|
|
replyCount?: true
|
|
}
|
|
|
|
export type TeamChatThreadMinAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
chatId?: true
|
|
parentMessageId?: true
|
|
createdAt?: true
|
|
createdByUserId?: true
|
|
lastReplyAt?: true
|
|
replyCount?: true
|
|
}
|
|
|
|
export type TeamChatThreadMaxAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
chatId?: true
|
|
parentMessageId?: true
|
|
createdAt?: true
|
|
createdByUserId?: true
|
|
lastReplyAt?: true
|
|
replyCount?: true
|
|
}
|
|
|
|
export type TeamChatThreadCountAggregateInputType = {
|
|
id?: true
|
|
tenantId?: true
|
|
chatId?: true
|
|
parentMessageId?: true
|
|
createdAt?: true
|
|
createdByUserId?: true
|
|
lastReplyAt?: true
|
|
replyCount?: true
|
|
participantUserIds?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TeamChatThreadAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TeamChatThread to aggregate.
|
|
*/
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatThreads to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatThreadOrderByWithRelationInput | Prisma.TeamChatThreadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.TeamChatThreadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatThreads 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` TeamChatThreads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned TeamChatThreads
|
|
**/
|
|
_count?: true | TeamChatThreadCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: TeamChatThreadAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: TeamChatThreadSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TeamChatThreadMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TeamChatThreadMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTeamChatThreadAggregateType<T extends TeamChatThreadAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTeamChatThread]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChatThread[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChatThread[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TeamChatThreadGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
orderBy?: Prisma.TeamChatThreadOrderByWithAggregationInput | Prisma.TeamChatThreadOrderByWithAggregationInput[]
|
|
by: Prisma.TeamChatThreadScalarFieldEnum[] | Prisma.TeamChatThreadScalarFieldEnum
|
|
having?: Prisma.TeamChatThreadScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TeamChatThreadCountAggregateInputType | true
|
|
_avg?: TeamChatThreadAvgAggregateInputType
|
|
_sum?: TeamChatThreadSumAggregateInputType
|
|
_min?: TeamChatThreadMinAggregateInputType
|
|
_max?: TeamChatThreadMaxAggregateInputType
|
|
}
|
|
|
|
export type TeamChatThreadGroupByOutputType = {
|
|
id: string
|
|
tenantId: string
|
|
chatId: string
|
|
parentMessageId: string
|
|
createdAt: Date
|
|
createdByUserId: string
|
|
lastReplyAt: Date
|
|
replyCount: number
|
|
participantUserIds: string[]
|
|
_count: TeamChatThreadCountAggregateOutputType | null
|
|
_avg: TeamChatThreadAvgAggregateOutputType | null
|
|
_sum: TeamChatThreadSumAggregateOutputType | null
|
|
_min: TeamChatThreadMinAggregateOutputType | null
|
|
_max: TeamChatThreadMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetTeamChatThreadGroupByPayload<T extends TeamChatThreadGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<TeamChatThreadGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TeamChatThreadGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], TeamChatThreadGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], TeamChatThreadGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type TeamChatThreadWhereInput = {
|
|
AND?: Prisma.TeamChatThreadWhereInput | Prisma.TeamChatThreadWhereInput[]
|
|
OR?: Prisma.TeamChatThreadWhereInput[]
|
|
NOT?: Prisma.TeamChatThreadWhereInput | Prisma.TeamChatThreadWhereInput[]
|
|
id?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
tenantId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
chatId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
parentMessageId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string
|
|
createdByUserId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
lastReplyAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string
|
|
replyCount?: Prisma.IntFilter<"TeamChatThread"> | number
|
|
participantUserIds?: Prisma.StringNullableListFilter<"TeamChatThread">
|
|
chat?: Prisma.XOR<Prisma.TeamChatScalarRelationFilter, Prisma.TeamChatWhereInput>
|
|
parentMessage?: Prisma.XOR<Prisma.TeamChatMessageScalarRelationFilter, Prisma.TeamChatMessageWhereInput>
|
|
}
|
|
|
|
export type TeamChatThreadOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
parentMessageId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
lastReplyAt?: Prisma.SortOrder
|
|
replyCount?: Prisma.SortOrder
|
|
participantUserIds?: Prisma.SortOrder
|
|
chat?: Prisma.TeamChatOrderByWithRelationInput
|
|
parentMessage?: Prisma.TeamChatMessageOrderByWithRelationInput
|
|
}
|
|
|
|
export type TeamChatThreadWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
parentMessageId_tenantId_chatId?: Prisma.TeamChatThreadParentMessageIdTenantIdChatIdCompoundUniqueInput
|
|
AND?: Prisma.TeamChatThreadWhereInput | Prisma.TeamChatThreadWhereInput[]
|
|
OR?: Prisma.TeamChatThreadWhereInput[]
|
|
NOT?: Prisma.TeamChatThreadWhereInput | Prisma.TeamChatThreadWhereInput[]
|
|
tenantId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
chatId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
parentMessageId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string
|
|
createdByUserId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
lastReplyAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string
|
|
replyCount?: Prisma.IntFilter<"TeamChatThread"> | number
|
|
participantUserIds?: Prisma.StringNullableListFilter<"TeamChatThread">
|
|
chat?: Prisma.XOR<Prisma.TeamChatScalarRelationFilter, Prisma.TeamChatWhereInput>
|
|
parentMessage?: Prisma.XOR<Prisma.TeamChatMessageScalarRelationFilter, Prisma.TeamChatMessageWhereInput>
|
|
}, "id" | "parentMessageId_tenantId_chatId">
|
|
|
|
export type TeamChatThreadOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
parentMessageId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
lastReplyAt?: Prisma.SortOrder
|
|
replyCount?: Prisma.SortOrder
|
|
participantUserIds?: Prisma.SortOrder
|
|
_count?: Prisma.TeamChatThreadCountOrderByAggregateInput
|
|
_avg?: Prisma.TeamChatThreadAvgOrderByAggregateInput
|
|
_max?: Prisma.TeamChatThreadMaxOrderByAggregateInput
|
|
_min?: Prisma.TeamChatThreadMinOrderByAggregateInput
|
|
_sum?: Prisma.TeamChatThreadSumOrderByAggregateInput
|
|
}
|
|
|
|
export type TeamChatThreadScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.TeamChatThreadScalarWhereWithAggregatesInput | Prisma.TeamChatThreadScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.TeamChatThreadScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.TeamChatThreadScalarWhereWithAggregatesInput | Prisma.TeamChatThreadScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string
|
|
chatId?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string
|
|
parentMessageId?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"TeamChatThread"> | Date | string
|
|
createdByUserId?: Prisma.StringWithAggregatesFilter<"TeamChatThread"> | string
|
|
lastReplyAt?: Prisma.DateTimeWithAggregatesFilter<"TeamChatThread"> | Date | string
|
|
replyCount?: Prisma.IntWithAggregatesFilter<"TeamChatThread"> | number
|
|
participantUserIds?: Prisma.StringNullableListFilter<"TeamChatThread">
|
|
}
|
|
|
|
export type TeamChatThreadCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
createdByUserId: string
|
|
lastReplyAt: Date | string
|
|
replyCount?: number
|
|
participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[]
|
|
chat: Prisma.TeamChatCreateNestedOneWithoutThreadsInput
|
|
parentMessage: Prisma.TeamChatMessageCreateNestedOneWithoutThreadInput
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedCreateInput = {
|
|
id?: string
|
|
tenantId: string
|
|
chatId: string
|
|
parentMessageId: string
|
|
createdAt?: Date | string
|
|
createdByUserId: string
|
|
lastReplyAt: Date | string
|
|
replyCount?: number
|
|
participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
replyCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[]
|
|
chat?: Prisma.TeamChatUpdateOneRequiredWithoutThreadsNestedInput
|
|
parentMessage?: Prisma.TeamChatMessageUpdateOneRequiredWithoutThreadNestedInput
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
chatId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
parentMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
replyCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadCreateManyInput = {
|
|
id?: string
|
|
tenantId: string
|
|
chatId: string
|
|
parentMessageId: string
|
|
createdAt?: Date | string
|
|
createdByUserId: string
|
|
lastReplyAt: Date | string
|
|
replyCount?: number
|
|
participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
replyCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
chatId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
parentMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
replyCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadListRelationFilter = {
|
|
every?: Prisma.TeamChatThreadWhereInput
|
|
some?: Prisma.TeamChatThreadWhereInput
|
|
none?: Prisma.TeamChatThreadWhereInput
|
|
}
|
|
|
|
export type TeamChatThreadOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatThreadNullableScalarRelationFilter = {
|
|
is?: Prisma.TeamChatThreadWhereInput | null
|
|
isNot?: Prisma.TeamChatThreadWhereInput | null
|
|
}
|
|
|
|
export type TeamChatThreadParentMessageIdTenantIdChatIdCompoundUniqueInput = {
|
|
parentMessageId: string
|
|
tenantId: string
|
|
chatId: string
|
|
}
|
|
|
|
export type TeamChatThreadCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
parentMessageId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
lastReplyAt?: Prisma.SortOrder
|
|
replyCount?: Prisma.SortOrder
|
|
participantUserIds?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatThreadAvgOrderByAggregateInput = {
|
|
replyCount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatThreadMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
parentMessageId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
lastReplyAt?: Prisma.SortOrder
|
|
replyCount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatThreadMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
parentMessageId?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
lastReplyAt?: Prisma.SortOrder
|
|
replyCount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatThreadSumOrderByAggregateInput = {
|
|
replyCount?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatThreadCreateNestedManyWithoutChatInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutChatInput, Prisma.TeamChatThreadUncheckedCreateWithoutChatInput> | Prisma.TeamChatThreadCreateWithoutChatInput[] | Prisma.TeamChatThreadUncheckedCreateWithoutChatInput[]
|
|
connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutChatInput | Prisma.TeamChatThreadCreateOrConnectWithoutChatInput[]
|
|
createMany?: Prisma.TeamChatThreadCreateManyChatInputEnvelope
|
|
connect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedCreateNestedManyWithoutChatInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutChatInput, Prisma.TeamChatThreadUncheckedCreateWithoutChatInput> | Prisma.TeamChatThreadCreateWithoutChatInput[] | Prisma.TeamChatThreadUncheckedCreateWithoutChatInput[]
|
|
connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutChatInput | Prisma.TeamChatThreadCreateOrConnectWithoutChatInput[]
|
|
createMany?: Prisma.TeamChatThreadCreateManyChatInputEnvelope
|
|
connect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
}
|
|
|
|
export type TeamChatThreadUpdateManyWithoutChatNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutChatInput, Prisma.TeamChatThreadUncheckedCreateWithoutChatInput> | Prisma.TeamChatThreadCreateWithoutChatInput[] | Prisma.TeamChatThreadUncheckedCreateWithoutChatInput[]
|
|
connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutChatInput | Prisma.TeamChatThreadCreateOrConnectWithoutChatInput[]
|
|
upsert?: Prisma.TeamChatThreadUpsertWithWhereUniqueWithoutChatInput | Prisma.TeamChatThreadUpsertWithWhereUniqueWithoutChatInput[]
|
|
createMany?: Prisma.TeamChatThreadCreateManyChatInputEnvelope
|
|
set?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
disconnect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
delete?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
connect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
update?: Prisma.TeamChatThreadUpdateWithWhereUniqueWithoutChatInput | Prisma.TeamChatThreadUpdateWithWhereUniqueWithoutChatInput[]
|
|
updateMany?: Prisma.TeamChatThreadUpdateManyWithWhereWithoutChatInput | Prisma.TeamChatThreadUpdateManyWithWhereWithoutChatInput[]
|
|
deleteMany?: Prisma.TeamChatThreadScalarWhereInput | Prisma.TeamChatThreadScalarWhereInput[]
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedUpdateManyWithoutChatNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutChatInput, Prisma.TeamChatThreadUncheckedCreateWithoutChatInput> | Prisma.TeamChatThreadCreateWithoutChatInput[] | Prisma.TeamChatThreadUncheckedCreateWithoutChatInput[]
|
|
connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutChatInput | Prisma.TeamChatThreadCreateOrConnectWithoutChatInput[]
|
|
upsert?: Prisma.TeamChatThreadUpsertWithWhereUniqueWithoutChatInput | Prisma.TeamChatThreadUpsertWithWhereUniqueWithoutChatInput[]
|
|
createMany?: Prisma.TeamChatThreadCreateManyChatInputEnvelope
|
|
set?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
disconnect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
delete?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
connect?: Prisma.TeamChatThreadWhereUniqueInput | Prisma.TeamChatThreadWhereUniqueInput[]
|
|
update?: Prisma.TeamChatThreadUpdateWithWhereUniqueWithoutChatInput | Prisma.TeamChatThreadUpdateWithWhereUniqueWithoutChatInput[]
|
|
updateMany?: Prisma.TeamChatThreadUpdateManyWithWhereWithoutChatInput | Prisma.TeamChatThreadUpdateManyWithWhereWithoutChatInput[]
|
|
deleteMany?: Prisma.TeamChatThreadScalarWhereInput | Prisma.TeamChatThreadScalarWhereInput[]
|
|
}
|
|
|
|
export type TeamChatThreadCreateNestedOneWithoutParentMessageInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutParentMessageInput, Prisma.TeamChatThreadUncheckedCreateWithoutParentMessageInput>
|
|
connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutParentMessageInput
|
|
connect?: Prisma.TeamChatThreadWhereUniqueInput
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedCreateNestedOneWithoutParentMessageInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutParentMessageInput, Prisma.TeamChatThreadUncheckedCreateWithoutParentMessageInput>
|
|
connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutParentMessageInput
|
|
connect?: Prisma.TeamChatThreadWhereUniqueInput
|
|
}
|
|
|
|
export type TeamChatThreadUpdateOneWithoutParentMessageNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutParentMessageInput, Prisma.TeamChatThreadUncheckedCreateWithoutParentMessageInput>
|
|
connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutParentMessageInput
|
|
upsert?: Prisma.TeamChatThreadUpsertWithoutParentMessageInput
|
|
disconnect?: Prisma.TeamChatThreadWhereInput | boolean
|
|
delete?: Prisma.TeamChatThreadWhereInput | boolean
|
|
connect?: Prisma.TeamChatThreadWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamChatThreadUpdateToOneWithWhereWithoutParentMessageInput, Prisma.TeamChatThreadUpdateWithoutParentMessageInput>, Prisma.TeamChatThreadUncheckedUpdateWithoutParentMessageInput>
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedUpdateOneWithoutParentMessageNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutParentMessageInput, Prisma.TeamChatThreadUncheckedCreateWithoutParentMessageInput>
|
|
connectOrCreate?: Prisma.TeamChatThreadCreateOrConnectWithoutParentMessageInput
|
|
upsert?: Prisma.TeamChatThreadUpsertWithoutParentMessageInput
|
|
disconnect?: Prisma.TeamChatThreadWhereInput | boolean
|
|
delete?: Prisma.TeamChatThreadWhereInput | boolean
|
|
connect?: Prisma.TeamChatThreadWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamChatThreadUpdateToOneWithWhereWithoutParentMessageInput, Prisma.TeamChatThreadUpdateWithoutParentMessageInput>, Prisma.TeamChatThreadUncheckedUpdateWithoutParentMessageInput>
|
|
}
|
|
|
|
export type TeamChatThreadCreateparticipantUserIdsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type TeamChatThreadUpdateparticipantUserIdsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type TeamChatThreadCreateWithoutChatInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
createdByUserId: string
|
|
lastReplyAt: Date | string
|
|
replyCount?: number
|
|
participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[]
|
|
parentMessage: Prisma.TeamChatMessageCreateNestedOneWithoutThreadInput
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedCreateWithoutChatInput = {
|
|
id?: string
|
|
parentMessageId: string
|
|
createdAt?: Date | string
|
|
createdByUserId: string
|
|
lastReplyAt: Date | string
|
|
replyCount?: number
|
|
participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadCreateOrConnectWithoutChatInput = {
|
|
where: Prisma.TeamChatThreadWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutChatInput, Prisma.TeamChatThreadUncheckedCreateWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatThreadCreateManyChatInputEnvelope = {
|
|
data: Prisma.TeamChatThreadCreateManyChatInput | Prisma.TeamChatThreadCreateManyChatInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TeamChatThreadUpsertWithWhereUniqueWithoutChatInput = {
|
|
where: Prisma.TeamChatThreadWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.TeamChatThreadUpdateWithoutChatInput, Prisma.TeamChatThreadUncheckedUpdateWithoutChatInput>
|
|
create: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutChatInput, Prisma.TeamChatThreadUncheckedCreateWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatThreadUpdateWithWhereUniqueWithoutChatInput = {
|
|
where: Prisma.TeamChatThreadWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.TeamChatThreadUpdateWithoutChatInput, Prisma.TeamChatThreadUncheckedUpdateWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatThreadUpdateManyWithWhereWithoutChatInput = {
|
|
where: Prisma.TeamChatThreadScalarWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatThreadUpdateManyMutationInput, Prisma.TeamChatThreadUncheckedUpdateManyWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatThreadScalarWhereInput = {
|
|
AND?: Prisma.TeamChatThreadScalarWhereInput | Prisma.TeamChatThreadScalarWhereInput[]
|
|
OR?: Prisma.TeamChatThreadScalarWhereInput[]
|
|
NOT?: Prisma.TeamChatThreadScalarWhereInput | Prisma.TeamChatThreadScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
tenantId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
chatId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
parentMessageId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string
|
|
createdByUserId?: Prisma.StringFilter<"TeamChatThread"> | string
|
|
lastReplyAt?: Prisma.DateTimeFilter<"TeamChatThread"> | Date | string
|
|
replyCount?: Prisma.IntFilter<"TeamChatThread"> | number
|
|
participantUserIds?: Prisma.StringNullableListFilter<"TeamChatThread">
|
|
}
|
|
|
|
export type TeamChatThreadCreateWithoutParentMessageInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
createdByUserId: string
|
|
lastReplyAt: Date | string
|
|
replyCount?: number
|
|
participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[]
|
|
chat: Prisma.TeamChatCreateNestedOneWithoutThreadsInput
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedCreateWithoutParentMessageInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
createdByUserId: string
|
|
lastReplyAt: Date | string
|
|
replyCount?: number
|
|
participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadCreateOrConnectWithoutParentMessageInput = {
|
|
where: Prisma.TeamChatThreadWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutParentMessageInput, Prisma.TeamChatThreadUncheckedCreateWithoutParentMessageInput>
|
|
}
|
|
|
|
export type TeamChatThreadUpsertWithoutParentMessageInput = {
|
|
update: Prisma.XOR<Prisma.TeamChatThreadUpdateWithoutParentMessageInput, Prisma.TeamChatThreadUncheckedUpdateWithoutParentMessageInput>
|
|
create: Prisma.XOR<Prisma.TeamChatThreadCreateWithoutParentMessageInput, Prisma.TeamChatThreadUncheckedCreateWithoutParentMessageInput>
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
}
|
|
|
|
export type TeamChatThreadUpdateToOneWithWhereWithoutParentMessageInput = {
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatThreadUpdateWithoutParentMessageInput, Prisma.TeamChatThreadUncheckedUpdateWithoutParentMessageInput>
|
|
}
|
|
|
|
export type TeamChatThreadUpdateWithoutParentMessageInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
replyCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[]
|
|
chat?: Prisma.TeamChatUpdateOneRequiredWithoutThreadsNestedInput
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedUpdateWithoutParentMessageInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
replyCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadCreateManyChatInput = {
|
|
id?: string
|
|
parentMessageId: string
|
|
createdAt?: Date | string
|
|
createdByUserId: string
|
|
lastReplyAt: Date | string
|
|
replyCount?: number
|
|
participantUserIds?: Prisma.TeamChatThreadCreateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadUpdateWithoutChatInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
replyCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[]
|
|
parentMessage?: Prisma.TeamChatMessageUpdateOneRequiredWithoutThreadNestedInput
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedUpdateWithoutChatInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
parentMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
replyCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
export type TeamChatThreadUncheckedUpdateManyWithoutChatInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
parentMessageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
createdByUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
lastReplyAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
replyCount?: Prisma.IntFieldUpdateOperationsInput | number
|
|
participantUserIds?: Prisma.TeamChatThreadUpdateparticipantUserIdsInput | string[]
|
|
}
|
|
|
|
|
|
|
|
export type TeamChatThreadSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
parentMessageId?: boolean
|
|
createdAt?: boolean
|
|
createdByUserId?: boolean
|
|
lastReplyAt?: boolean
|
|
replyCount?: boolean
|
|
participantUserIds?: boolean
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatThread"]>
|
|
|
|
export type TeamChatThreadSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
parentMessageId?: boolean
|
|
createdAt?: boolean
|
|
createdByUserId?: boolean
|
|
lastReplyAt?: boolean
|
|
replyCount?: boolean
|
|
participantUserIds?: boolean
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatThread"]>
|
|
|
|
export type TeamChatThreadSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
parentMessageId?: boolean
|
|
createdAt?: boolean
|
|
createdByUserId?: boolean
|
|
lastReplyAt?: boolean
|
|
replyCount?: boolean
|
|
participantUserIds?: boolean
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatThread"]>
|
|
|
|
export type TeamChatThreadSelectScalar = {
|
|
id?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
parentMessageId?: boolean
|
|
createdAt?: boolean
|
|
createdByUserId?: boolean
|
|
lastReplyAt?: boolean
|
|
replyCount?: boolean
|
|
participantUserIds?: boolean
|
|
}
|
|
|
|
export type TeamChatThreadOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "chatId" | "parentMessageId" | "createdAt" | "createdByUserId" | "lastReplyAt" | "replyCount" | "participantUserIds", ExtArgs["result"]["teamChatThread"]>
|
|
export type TeamChatThreadInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}
|
|
export type TeamChatThreadIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}
|
|
export type TeamChatThreadIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
parentMessage?: boolean | Prisma.TeamChatMessageDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $TeamChatThreadPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "TeamChatThread"
|
|
objects: {
|
|
chat: Prisma.$TeamChatPayload<ExtArgs>
|
|
parentMessage: Prisma.$TeamChatMessagePayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
tenantId: string
|
|
chatId: string
|
|
parentMessageId: string
|
|
createdAt: Date
|
|
createdByUserId: string
|
|
lastReplyAt: Date
|
|
replyCount: number
|
|
participantUserIds: string[]
|
|
}, ExtArgs["result"]["teamChatThread"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type TeamChatThreadGetPayload<S extends boolean | null | undefined | TeamChatThreadDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload, S>
|
|
|
|
export type TeamChatThreadCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<TeamChatThreadFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: TeamChatThreadCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TeamChatThreadDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TeamChatThread'], meta: { name: 'TeamChatThread' } }
|
|
/**
|
|
* Find zero or one TeamChatThread that matches the filter.
|
|
* @param {TeamChatThreadFindUniqueArgs} args - Arguments to find a TeamChatThread
|
|
* @example
|
|
* // Get one TeamChatThread
|
|
* const teamChatThread = await prisma.teamChatThread.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends TeamChatThreadFindUniqueArgs>(args: Prisma.SelectSubset<T, TeamChatThreadFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TeamChatThreadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one TeamChatThread that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {TeamChatThreadFindUniqueOrThrowArgs} args - Arguments to find a TeamChatThread
|
|
* @example
|
|
* // Get one TeamChatThread
|
|
* const teamChatThread = await prisma.teamChatThread.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends TeamChatThreadFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TeamChatThreadFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatThreadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TeamChatThread 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 {TeamChatThreadFindFirstArgs} args - Arguments to find a TeamChatThread
|
|
* @example
|
|
* // Get one TeamChatThread
|
|
* const teamChatThread = await prisma.teamChatThread.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends TeamChatThreadFindFirstArgs>(args?: Prisma.SelectSubset<T, TeamChatThreadFindFirstArgs<ExtArgs>>): Prisma.Prisma__TeamChatThreadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TeamChatThread 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 {TeamChatThreadFindFirstOrThrowArgs} args - Arguments to find a TeamChatThread
|
|
* @example
|
|
* // Get one TeamChatThread
|
|
* const teamChatThread = await prisma.teamChatThread.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends TeamChatThreadFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TeamChatThreadFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatThreadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more TeamChatThreads 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 {TeamChatThreadFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all TeamChatThreads
|
|
* const teamChatThreads = await prisma.teamChatThread.findMany()
|
|
*
|
|
* // Get first 10 TeamChatThreads
|
|
* const teamChatThreads = await prisma.teamChatThread.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const teamChatThreadWithIdOnly = await prisma.teamChatThread.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends TeamChatThreadFindManyArgs>(args?: Prisma.SelectSubset<T, TeamChatThreadFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a TeamChatThread.
|
|
* @param {TeamChatThreadCreateArgs} args - Arguments to create a TeamChatThread.
|
|
* @example
|
|
* // Create one TeamChatThread
|
|
* const TeamChatThread = await prisma.teamChatThread.create({
|
|
* data: {
|
|
* // ... data to create a TeamChatThread
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends TeamChatThreadCreateArgs>(args: Prisma.SelectSubset<T, TeamChatThreadCreateArgs<ExtArgs>>): Prisma.Prisma__TeamChatThreadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many TeamChatThreads.
|
|
* @param {TeamChatThreadCreateManyArgs} args - Arguments to create many TeamChatThreads.
|
|
* @example
|
|
* // Create many TeamChatThreads
|
|
* const teamChatThread = await prisma.teamChatThread.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends TeamChatThreadCreateManyArgs>(args?: Prisma.SelectSubset<T, TeamChatThreadCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many TeamChatThreads and returns the data saved in the database.
|
|
* @param {TeamChatThreadCreateManyAndReturnArgs} args - Arguments to create many TeamChatThreads.
|
|
* @example
|
|
* // Create many TeamChatThreads
|
|
* const teamChatThread = await prisma.teamChatThread.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many TeamChatThreads and only return the `id`
|
|
* const teamChatThreadWithIdOnly = await prisma.teamChatThread.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 TeamChatThreadCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TeamChatThreadCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a TeamChatThread.
|
|
* @param {TeamChatThreadDeleteArgs} args - Arguments to delete one TeamChatThread.
|
|
* @example
|
|
* // Delete one TeamChatThread
|
|
* const TeamChatThread = await prisma.teamChatThread.delete({
|
|
* where: {
|
|
* // ... filter to delete one TeamChatThread
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends TeamChatThreadDeleteArgs>(args: Prisma.SelectSubset<T, TeamChatThreadDeleteArgs<ExtArgs>>): Prisma.Prisma__TeamChatThreadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one TeamChatThread.
|
|
* @param {TeamChatThreadUpdateArgs} args - Arguments to update one TeamChatThread.
|
|
* @example
|
|
* // Update one TeamChatThread
|
|
* const teamChatThread = await prisma.teamChatThread.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends TeamChatThreadUpdateArgs>(args: Prisma.SelectSubset<T, TeamChatThreadUpdateArgs<ExtArgs>>): Prisma.Prisma__TeamChatThreadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more TeamChatThreads.
|
|
* @param {TeamChatThreadDeleteManyArgs} args - Arguments to filter TeamChatThreads to delete.
|
|
* @example
|
|
* // Delete a few TeamChatThreads
|
|
* const { count } = await prisma.teamChatThread.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends TeamChatThreadDeleteManyArgs>(args?: Prisma.SelectSubset<T, TeamChatThreadDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TeamChatThreads.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatThreadUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many TeamChatThreads
|
|
* const teamChatThread = await prisma.teamChatThread.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends TeamChatThreadUpdateManyArgs>(args: Prisma.SelectSubset<T, TeamChatThreadUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TeamChatThreads and returns the data updated in the database.
|
|
* @param {TeamChatThreadUpdateManyAndReturnArgs} args - Arguments to update many TeamChatThreads.
|
|
* @example
|
|
* // Update many TeamChatThreads
|
|
* const teamChatThread = await prisma.teamChatThread.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more TeamChatThreads and only return the `id`
|
|
* const teamChatThreadWithIdOnly = await prisma.teamChatThread.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 TeamChatThreadUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TeamChatThreadUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one TeamChatThread.
|
|
* @param {TeamChatThreadUpsertArgs} args - Arguments to update or create a TeamChatThread.
|
|
* @example
|
|
* // Update or create a TeamChatThread
|
|
* const teamChatThread = await prisma.teamChatThread.upsert({
|
|
* create: {
|
|
* // ... data to create a TeamChatThread
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the TeamChatThread we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends TeamChatThreadUpsertArgs>(args: Prisma.SelectSubset<T, TeamChatThreadUpsertArgs<ExtArgs>>): Prisma.Prisma__TeamChatThreadClient<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of TeamChatThreads.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatThreadCountArgs} args - Arguments to filter TeamChatThreads to count.
|
|
* @example
|
|
* // Count the number of TeamChatThreads
|
|
* const count = await prisma.teamChatThread.count({
|
|
* where: {
|
|
* // ... the filter for the TeamChatThreads we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends TeamChatThreadCountArgs>(
|
|
args?: Prisma.Subset<T, TeamChatThreadCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], TeamChatThreadCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a TeamChatThread.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatThreadAggregateArgs} 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 TeamChatThreadAggregateArgs>(args: Prisma.Subset<T, TeamChatThreadAggregateArgs>): Prisma.PrismaPromise<GetTeamChatThreadAggregateType<T>>
|
|
|
|
/**
|
|
* Group by TeamChatThread.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatThreadGroupByArgs} 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 TeamChatThreadGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: TeamChatThreadGroupByArgs['orderBy'] }
|
|
: { orderBy?: TeamChatThreadGroupByArgs['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, TeamChatThreadGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamChatThreadGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the TeamChatThread model
|
|
*/
|
|
readonly fields: TeamChatThreadFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for TeamChatThread.
|
|
* 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__TeamChatThreadClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
chat<T extends Prisma.TeamChatDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChatDefaultArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
parentMessage<T extends Prisma.TeamChatMessageDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChatMessageDefaultArgs<ExtArgs>>): Prisma.Prisma__TeamChatMessageClient<runtime.Types.Result.GetResult<Prisma.$TeamChatMessagePayload<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 TeamChatThread model
|
|
*/
|
|
export interface TeamChatThreadFieldRefs {
|
|
readonly id: Prisma.FieldRef<"TeamChatThread", 'String'>
|
|
readonly tenantId: Prisma.FieldRef<"TeamChatThread", 'String'>
|
|
readonly chatId: Prisma.FieldRef<"TeamChatThread", 'String'>
|
|
readonly parentMessageId: Prisma.FieldRef<"TeamChatThread", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"TeamChatThread", 'DateTime'>
|
|
readonly createdByUserId: Prisma.FieldRef<"TeamChatThread", 'String'>
|
|
readonly lastReplyAt: Prisma.FieldRef<"TeamChatThread", 'DateTime'>
|
|
readonly replyCount: Prisma.FieldRef<"TeamChatThread", 'Int'>
|
|
readonly participantUserIds: Prisma.FieldRef<"TeamChatThread", 'String[]'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* TeamChatThread findUnique
|
|
*/
|
|
export type TeamChatThreadFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatThread to fetch.
|
|
*/
|
|
where: Prisma.TeamChatThreadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread findUniqueOrThrow
|
|
*/
|
|
export type TeamChatThreadFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatThread to fetch.
|
|
*/
|
|
where: Prisma.TeamChatThreadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread findFirst
|
|
*/
|
|
export type TeamChatThreadFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatThread to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatThreads to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatThreadOrderByWithRelationInput | Prisma.TeamChatThreadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TeamChatThreads.
|
|
*/
|
|
cursor?: Prisma.TeamChatThreadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatThreads 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` TeamChatThreads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChatThreads.
|
|
*/
|
|
distinct?: Prisma.TeamChatThreadScalarFieldEnum | Prisma.TeamChatThreadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread findFirstOrThrow
|
|
*/
|
|
export type TeamChatThreadFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatThread to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatThreads to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatThreadOrderByWithRelationInput | Prisma.TeamChatThreadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TeamChatThreads.
|
|
*/
|
|
cursor?: Prisma.TeamChatThreadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatThreads 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` TeamChatThreads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChatThreads.
|
|
*/
|
|
distinct?: Prisma.TeamChatThreadScalarFieldEnum | Prisma.TeamChatThreadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread findMany
|
|
*/
|
|
export type TeamChatThreadFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatThreads to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatThreads to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatThreadOrderByWithRelationInput | Prisma.TeamChatThreadOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing TeamChatThreads.
|
|
*/
|
|
cursor?: Prisma.TeamChatThreadWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatThreads 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` TeamChatThreads.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChatThreads.
|
|
*/
|
|
distinct?: Prisma.TeamChatThreadScalarFieldEnum | Prisma.TeamChatThreadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread create
|
|
*/
|
|
export type TeamChatThreadCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a TeamChatThread.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatThreadCreateInput, Prisma.TeamChatThreadUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread createMany
|
|
*/
|
|
export type TeamChatThreadCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many TeamChatThreads.
|
|
*/
|
|
data: Prisma.TeamChatThreadCreateManyInput | Prisma.TeamChatThreadCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread createManyAndReturn
|
|
*/
|
|
export type TeamChatThreadCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many TeamChatThreads.
|
|
*/
|
|
data: Prisma.TeamChatThreadCreateManyInput | Prisma.TeamChatThreadCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread update
|
|
*/
|
|
export type TeamChatThreadUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a TeamChatThread.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatThreadUpdateInput, Prisma.TeamChatThreadUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which TeamChatThread to update.
|
|
*/
|
|
where: Prisma.TeamChatThreadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread updateMany
|
|
*/
|
|
export type TeamChatThreadUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update TeamChatThreads.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatThreadUpdateManyMutationInput, Prisma.TeamChatThreadUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TeamChatThreads to update
|
|
*/
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
/**
|
|
* Limit how many TeamChatThreads to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread updateManyAndReturn
|
|
*/
|
|
export type TeamChatThreadUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update TeamChatThreads.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatThreadUpdateManyMutationInput, Prisma.TeamChatThreadUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TeamChatThreads to update
|
|
*/
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
/**
|
|
* Limit how many TeamChatThreads to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread upsert
|
|
*/
|
|
export type TeamChatThreadUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the TeamChatThread to update in case it exists.
|
|
*/
|
|
where: Prisma.TeamChatThreadWhereUniqueInput
|
|
/**
|
|
* In case the TeamChatThread found by the `where` argument doesn't exist, create a new TeamChatThread with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.TeamChatThreadCreateInput, Prisma.TeamChatThreadUncheckedCreateInput>
|
|
/**
|
|
* In case the TeamChatThread was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.TeamChatThreadUpdateInput, Prisma.TeamChatThreadUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread delete
|
|
*/
|
|
export type TeamChatThreadDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which TeamChatThread to delete.
|
|
*/
|
|
where: Prisma.TeamChatThreadWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread deleteMany
|
|
*/
|
|
export type TeamChatThreadDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TeamChatThreads to delete
|
|
*/
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
/**
|
|
* Limit how many TeamChatThreads to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChatThread without action
|
|
*/
|
|
export type TeamChatThreadDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatThread
|
|
*/
|
|
select?: Prisma.TeamChatThreadSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatThread
|
|
*/
|
|
omit?: Prisma.TeamChatThreadOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatThreadInclude<ExtArgs> | null
|
|
}
|