1565 lines
59 KiB
TypeScript
1565 lines
59 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 `TeamChatEvent` 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 TeamChatEvent
|
|
* Append-only event ledger for reconnect gap-fill. The wire cursor combines
|
|
* the channel's `eventStreamId` with `sequence`, which is serialized as a
|
|
* decimal string so JavaScript clients never lose BigInt precision. Redis
|
|
* fans these events out but is never their source of truth.
|
|
*/
|
|
export type TeamChatEventModel = runtime.Types.Result.DefaultSelection<Prisma.$TeamChatEventPayload>
|
|
|
|
export type AggregateTeamChatEvent = {
|
|
_count: TeamChatEventCountAggregateOutputType | null
|
|
_avg: TeamChatEventAvgAggregateOutputType | null
|
|
_sum: TeamChatEventSumAggregateOutputType | null
|
|
_min: TeamChatEventMinAggregateOutputType | null
|
|
_max: TeamChatEventMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TeamChatEventAvgAggregateOutputType = {
|
|
sequence: number | null
|
|
}
|
|
|
|
export type TeamChatEventSumAggregateOutputType = {
|
|
sequence: bigint | null
|
|
}
|
|
|
|
export type TeamChatEventMinAggregateOutputType = {
|
|
id: string | null
|
|
sequence: bigint | null
|
|
occurredAt: Date | null
|
|
tenantId: string | null
|
|
chatId: string | null
|
|
type: $Enums.TeamChatEventType | null
|
|
actorUserId: string | null
|
|
entityId: string | null
|
|
requestId: string | null
|
|
}
|
|
|
|
export type TeamChatEventMaxAggregateOutputType = {
|
|
id: string | null
|
|
sequence: bigint | null
|
|
occurredAt: Date | null
|
|
tenantId: string | null
|
|
chatId: string | null
|
|
type: $Enums.TeamChatEventType | null
|
|
actorUserId: string | null
|
|
entityId: string | null
|
|
requestId: string | null
|
|
}
|
|
|
|
export type TeamChatEventCountAggregateOutputType = {
|
|
id: number
|
|
sequence: number
|
|
occurredAt: number
|
|
tenantId: number
|
|
chatId: number
|
|
type: number
|
|
actorUserId: number
|
|
entityId: number
|
|
requestId: number
|
|
data: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TeamChatEventAvgAggregateInputType = {
|
|
sequence?: true
|
|
}
|
|
|
|
export type TeamChatEventSumAggregateInputType = {
|
|
sequence?: true
|
|
}
|
|
|
|
export type TeamChatEventMinAggregateInputType = {
|
|
id?: true
|
|
sequence?: true
|
|
occurredAt?: true
|
|
tenantId?: true
|
|
chatId?: true
|
|
type?: true
|
|
actorUserId?: true
|
|
entityId?: true
|
|
requestId?: true
|
|
}
|
|
|
|
export type TeamChatEventMaxAggregateInputType = {
|
|
id?: true
|
|
sequence?: true
|
|
occurredAt?: true
|
|
tenantId?: true
|
|
chatId?: true
|
|
type?: true
|
|
actorUserId?: true
|
|
entityId?: true
|
|
requestId?: true
|
|
}
|
|
|
|
export type TeamChatEventCountAggregateInputType = {
|
|
id?: true
|
|
sequence?: true
|
|
occurredAt?: true
|
|
tenantId?: true
|
|
chatId?: true
|
|
type?: true
|
|
actorUserId?: true
|
|
entityId?: true
|
|
requestId?: true
|
|
data?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TeamChatEventAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TeamChatEvent to aggregate.
|
|
*/
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatEvents to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatEventOrderByWithRelationInput | Prisma.TeamChatEventOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.TeamChatEventWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatEvents 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` TeamChatEvents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned TeamChatEvents
|
|
**/
|
|
_count?: true | TeamChatEventCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: TeamChatEventAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: TeamChatEventSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TeamChatEventMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TeamChatEventMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTeamChatEventAggregateType<T extends TeamChatEventAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTeamChatEvent]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChatEvent[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChatEvent[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TeamChatEventGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
orderBy?: Prisma.TeamChatEventOrderByWithAggregationInput | Prisma.TeamChatEventOrderByWithAggregationInput[]
|
|
by: Prisma.TeamChatEventScalarFieldEnum[] | Prisma.TeamChatEventScalarFieldEnum
|
|
having?: Prisma.TeamChatEventScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TeamChatEventCountAggregateInputType | true
|
|
_avg?: TeamChatEventAvgAggregateInputType
|
|
_sum?: TeamChatEventSumAggregateInputType
|
|
_min?: TeamChatEventMinAggregateInputType
|
|
_max?: TeamChatEventMaxAggregateInputType
|
|
}
|
|
|
|
export type TeamChatEventGroupByOutputType = {
|
|
id: string
|
|
sequence: bigint
|
|
occurredAt: Date
|
|
tenantId: string
|
|
chatId: string
|
|
type: $Enums.TeamChatEventType
|
|
actorUserId: string | null
|
|
entityId: string | null
|
|
requestId: string
|
|
data: runtime.JsonValue
|
|
_count: TeamChatEventCountAggregateOutputType | null
|
|
_avg: TeamChatEventAvgAggregateOutputType | null
|
|
_sum: TeamChatEventSumAggregateOutputType | null
|
|
_min: TeamChatEventMinAggregateOutputType | null
|
|
_max: TeamChatEventMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetTeamChatEventGroupByPayload<T extends TeamChatEventGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<TeamChatEventGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TeamChatEventGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], TeamChatEventGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], TeamChatEventGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type TeamChatEventWhereInput = {
|
|
AND?: Prisma.TeamChatEventWhereInput | Prisma.TeamChatEventWhereInput[]
|
|
OR?: Prisma.TeamChatEventWhereInput[]
|
|
NOT?: Prisma.TeamChatEventWhereInput | Prisma.TeamChatEventWhereInput[]
|
|
id?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
sequence?: Prisma.BigIntFilter<"TeamChatEvent"> | bigint | number
|
|
occurredAt?: Prisma.DateTimeFilter<"TeamChatEvent"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
chatId?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
type?: Prisma.EnumTeamChatEventTypeFilter<"TeamChatEvent"> | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.StringNullableFilter<"TeamChatEvent"> | string | null
|
|
entityId?: Prisma.StringNullableFilter<"TeamChatEvent"> | string | null
|
|
requestId?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
data?: Prisma.JsonFilter<"TeamChatEvent">
|
|
chat?: Prisma.XOR<Prisma.TeamChatScalarRelationFilter, Prisma.TeamChatWhereInput>
|
|
}
|
|
|
|
export type TeamChatEventOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
sequence?: Prisma.SortOrder
|
|
occurredAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
entityId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
requestId?: Prisma.SortOrder
|
|
data?: Prisma.SortOrder
|
|
chat?: Prisma.TeamChatOrderByWithRelationInput
|
|
}
|
|
|
|
export type TeamChatEventWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
sequence?: bigint | number
|
|
AND?: Prisma.TeamChatEventWhereInput | Prisma.TeamChatEventWhereInput[]
|
|
OR?: Prisma.TeamChatEventWhereInput[]
|
|
NOT?: Prisma.TeamChatEventWhereInput | Prisma.TeamChatEventWhereInput[]
|
|
occurredAt?: Prisma.DateTimeFilter<"TeamChatEvent"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
chatId?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
type?: Prisma.EnumTeamChatEventTypeFilter<"TeamChatEvent"> | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.StringNullableFilter<"TeamChatEvent"> | string | null
|
|
entityId?: Prisma.StringNullableFilter<"TeamChatEvent"> | string | null
|
|
requestId?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
data?: Prisma.JsonFilter<"TeamChatEvent">
|
|
chat?: Prisma.XOR<Prisma.TeamChatScalarRelationFilter, Prisma.TeamChatWhereInput>
|
|
}, "id" | "sequence">
|
|
|
|
export type TeamChatEventOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
sequence?: Prisma.SortOrder
|
|
occurredAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
entityId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
requestId?: Prisma.SortOrder
|
|
data?: Prisma.SortOrder
|
|
_count?: Prisma.TeamChatEventCountOrderByAggregateInput
|
|
_avg?: Prisma.TeamChatEventAvgOrderByAggregateInput
|
|
_max?: Prisma.TeamChatEventMaxOrderByAggregateInput
|
|
_min?: Prisma.TeamChatEventMinOrderByAggregateInput
|
|
_sum?: Prisma.TeamChatEventSumOrderByAggregateInput
|
|
}
|
|
|
|
export type TeamChatEventScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.TeamChatEventScalarWhereWithAggregatesInput | Prisma.TeamChatEventScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.TeamChatEventScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.TeamChatEventScalarWhereWithAggregatesInput | Prisma.TeamChatEventScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"TeamChatEvent"> | string
|
|
sequence?: Prisma.BigIntWithAggregatesFilter<"TeamChatEvent"> | bigint | number
|
|
occurredAt?: Prisma.DateTimeWithAggregatesFilter<"TeamChatEvent"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"TeamChatEvent"> | string
|
|
chatId?: Prisma.StringWithAggregatesFilter<"TeamChatEvent"> | string
|
|
type?: Prisma.EnumTeamChatEventTypeWithAggregatesFilter<"TeamChatEvent"> | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.StringNullableWithAggregatesFilter<"TeamChatEvent"> | string | null
|
|
entityId?: Prisma.StringNullableWithAggregatesFilter<"TeamChatEvent"> | string | null
|
|
requestId?: Prisma.StringWithAggregatesFilter<"TeamChatEvent"> | string
|
|
data?: Prisma.JsonWithAggregatesFilter<"TeamChatEvent">
|
|
}
|
|
|
|
export type TeamChatEventCreateInput = {
|
|
id?: string
|
|
sequence?: bigint | number
|
|
occurredAt?: Date | string
|
|
type: $Enums.TeamChatEventType
|
|
actorUserId?: string | null
|
|
entityId?: string | null
|
|
requestId: string
|
|
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
chat: Prisma.TeamChatCreateNestedOneWithoutEventsInput
|
|
}
|
|
|
|
export type TeamChatEventUncheckedCreateInput = {
|
|
id?: string
|
|
sequence?: bigint | number
|
|
occurredAt?: Date | string
|
|
tenantId: string
|
|
chatId: string
|
|
type: $Enums.TeamChatEventType
|
|
actorUserId?: string | null
|
|
entityId?: string | null
|
|
requestId: string
|
|
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sequence?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
type?: Prisma.EnumTeamChatEventTypeFieldUpdateOperationsInput | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
chat?: Prisma.TeamChatUpdateOneRequiredWithoutEventsNestedInput
|
|
}
|
|
|
|
export type TeamChatEventUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sequence?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
chatId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.EnumTeamChatEventTypeFieldUpdateOperationsInput | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventCreateManyInput = {
|
|
id?: string
|
|
sequence?: bigint | number
|
|
occurredAt?: Date | string
|
|
tenantId: string
|
|
chatId: string
|
|
type: $Enums.TeamChatEventType
|
|
actorUserId?: string | null
|
|
entityId?: string | null
|
|
requestId: string
|
|
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sequence?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
type?: Prisma.EnumTeamChatEventTypeFieldUpdateOperationsInput | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sequence?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
chatId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
type?: Prisma.EnumTeamChatEventTypeFieldUpdateOperationsInput | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventListRelationFilter = {
|
|
every?: Prisma.TeamChatEventWhereInput
|
|
some?: Prisma.TeamChatEventWhereInput
|
|
none?: Prisma.TeamChatEventWhereInput
|
|
}
|
|
|
|
export type TeamChatEventOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatEventCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sequence?: Prisma.SortOrder
|
|
occurredAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrder
|
|
entityId?: Prisma.SortOrder
|
|
requestId?: Prisma.SortOrder
|
|
data?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatEventAvgOrderByAggregateInput = {
|
|
sequence?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatEventMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sequence?: Prisma.SortOrder
|
|
occurredAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrder
|
|
entityId?: Prisma.SortOrder
|
|
requestId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatEventMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
sequence?: Prisma.SortOrder
|
|
occurredAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
chatId?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
actorUserId?: Prisma.SortOrder
|
|
entityId?: Prisma.SortOrder
|
|
requestId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatEventSumOrderByAggregateInput = {
|
|
sequence?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatEventCreateNestedManyWithoutChatInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatEventCreateWithoutChatInput, Prisma.TeamChatEventUncheckedCreateWithoutChatInput> | Prisma.TeamChatEventCreateWithoutChatInput[] | Prisma.TeamChatEventUncheckedCreateWithoutChatInput[]
|
|
connectOrCreate?: Prisma.TeamChatEventCreateOrConnectWithoutChatInput | Prisma.TeamChatEventCreateOrConnectWithoutChatInput[]
|
|
createMany?: Prisma.TeamChatEventCreateManyChatInputEnvelope
|
|
connect?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
}
|
|
|
|
export type TeamChatEventUncheckedCreateNestedManyWithoutChatInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatEventCreateWithoutChatInput, Prisma.TeamChatEventUncheckedCreateWithoutChatInput> | Prisma.TeamChatEventCreateWithoutChatInput[] | Prisma.TeamChatEventUncheckedCreateWithoutChatInput[]
|
|
connectOrCreate?: Prisma.TeamChatEventCreateOrConnectWithoutChatInput | Prisma.TeamChatEventCreateOrConnectWithoutChatInput[]
|
|
createMany?: Prisma.TeamChatEventCreateManyChatInputEnvelope
|
|
connect?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
}
|
|
|
|
export type TeamChatEventUpdateManyWithoutChatNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatEventCreateWithoutChatInput, Prisma.TeamChatEventUncheckedCreateWithoutChatInput> | Prisma.TeamChatEventCreateWithoutChatInput[] | Prisma.TeamChatEventUncheckedCreateWithoutChatInput[]
|
|
connectOrCreate?: Prisma.TeamChatEventCreateOrConnectWithoutChatInput | Prisma.TeamChatEventCreateOrConnectWithoutChatInput[]
|
|
upsert?: Prisma.TeamChatEventUpsertWithWhereUniqueWithoutChatInput | Prisma.TeamChatEventUpsertWithWhereUniqueWithoutChatInput[]
|
|
createMany?: Prisma.TeamChatEventCreateManyChatInputEnvelope
|
|
set?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
disconnect?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
delete?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
connect?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
update?: Prisma.TeamChatEventUpdateWithWhereUniqueWithoutChatInput | Prisma.TeamChatEventUpdateWithWhereUniqueWithoutChatInput[]
|
|
updateMany?: Prisma.TeamChatEventUpdateManyWithWhereWithoutChatInput | Prisma.TeamChatEventUpdateManyWithWhereWithoutChatInput[]
|
|
deleteMany?: Prisma.TeamChatEventScalarWhereInput | Prisma.TeamChatEventScalarWhereInput[]
|
|
}
|
|
|
|
export type TeamChatEventUncheckedUpdateManyWithoutChatNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatEventCreateWithoutChatInput, Prisma.TeamChatEventUncheckedCreateWithoutChatInput> | Prisma.TeamChatEventCreateWithoutChatInput[] | Prisma.TeamChatEventUncheckedCreateWithoutChatInput[]
|
|
connectOrCreate?: Prisma.TeamChatEventCreateOrConnectWithoutChatInput | Prisma.TeamChatEventCreateOrConnectWithoutChatInput[]
|
|
upsert?: Prisma.TeamChatEventUpsertWithWhereUniqueWithoutChatInput | Prisma.TeamChatEventUpsertWithWhereUniqueWithoutChatInput[]
|
|
createMany?: Prisma.TeamChatEventCreateManyChatInputEnvelope
|
|
set?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
disconnect?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
delete?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
connect?: Prisma.TeamChatEventWhereUniqueInput | Prisma.TeamChatEventWhereUniqueInput[]
|
|
update?: Prisma.TeamChatEventUpdateWithWhereUniqueWithoutChatInput | Prisma.TeamChatEventUpdateWithWhereUniqueWithoutChatInput[]
|
|
updateMany?: Prisma.TeamChatEventUpdateManyWithWhereWithoutChatInput | Prisma.TeamChatEventUpdateManyWithWhereWithoutChatInput[]
|
|
deleteMany?: Prisma.TeamChatEventScalarWhereInput | Prisma.TeamChatEventScalarWhereInput[]
|
|
}
|
|
|
|
export type BigIntFieldUpdateOperationsInput = {
|
|
set?: bigint | number
|
|
increment?: bigint | number
|
|
decrement?: bigint | number
|
|
multiply?: bigint | number
|
|
divide?: bigint | number
|
|
}
|
|
|
|
export type EnumTeamChatEventTypeFieldUpdateOperationsInput = {
|
|
set?: $Enums.TeamChatEventType
|
|
}
|
|
|
|
export type TeamChatEventCreateWithoutChatInput = {
|
|
id?: string
|
|
sequence?: bigint | number
|
|
occurredAt?: Date | string
|
|
type: $Enums.TeamChatEventType
|
|
actorUserId?: string | null
|
|
entityId?: string | null
|
|
requestId: string
|
|
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventUncheckedCreateWithoutChatInput = {
|
|
id?: string
|
|
sequence?: bigint | number
|
|
occurredAt?: Date | string
|
|
type: $Enums.TeamChatEventType
|
|
actorUserId?: string | null
|
|
entityId?: string | null
|
|
requestId: string
|
|
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventCreateOrConnectWithoutChatInput = {
|
|
where: Prisma.TeamChatEventWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatEventCreateWithoutChatInput, Prisma.TeamChatEventUncheckedCreateWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatEventCreateManyChatInputEnvelope = {
|
|
data: Prisma.TeamChatEventCreateManyChatInput | Prisma.TeamChatEventCreateManyChatInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TeamChatEventUpsertWithWhereUniqueWithoutChatInput = {
|
|
where: Prisma.TeamChatEventWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.TeamChatEventUpdateWithoutChatInput, Prisma.TeamChatEventUncheckedUpdateWithoutChatInput>
|
|
create: Prisma.XOR<Prisma.TeamChatEventCreateWithoutChatInput, Prisma.TeamChatEventUncheckedCreateWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatEventUpdateWithWhereUniqueWithoutChatInput = {
|
|
where: Prisma.TeamChatEventWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.TeamChatEventUpdateWithoutChatInput, Prisma.TeamChatEventUncheckedUpdateWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatEventUpdateManyWithWhereWithoutChatInput = {
|
|
where: Prisma.TeamChatEventScalarWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatEventUpdateManyMutationInput, Prisma.TeamChatEventUncheckedUpdateManyWithoutChatInput>
|
|
}
|
|
|
|
export type TeamChatEventScalarWhereInput = {
|
|
AND?: Prisma.TeamChatEventScalarWhereInput | Prisma.TeamChatEventScalarWhereInput[]
|
|
OR?: Prisma.TeamChatEventScalarWhereInput[]
|
|
NOT?: Prisma.TeamChatEventScalarWhereInput | Prisma.TeamChatEventScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
sequence?: Prisma.BigIntFilter<"TeamChatEvent"> | bigint | number
|
|
occurredAt?: Prisma.DateTimeFilter<"TeamChatEvent"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
chatId?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
type?: Prisma.EnumTeamChatEventTypeFilter<"TeamChatEvent"> | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.StringNullableFilter<"TeamChatEvent"> | string | null
|
|
entityId?: Prisma.StringNullableFilter<"TeamChatEvent"> | string | null
|
|
requestId?: Prisma.StringFilter<"TeamChatEvent"> | string
|
|
data?: Prisma.JsonFilter<"TeamChatEvent">
|
|
}
|
|
|
|
export type TeamChatEventCreateManyChatInput = {
|
|
id?: string
|
|
sequence?: bigint | number
|
|
occurredAt?: Date | string
|
|
type: $Enums.TeamChatEventType
|
|
actorUserId?: string | null
|
|
entityId?: string | null
|
|
requestId: string
|
|
data: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventUpdateWithoutChatInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sequence?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
type?: Prisma.EnumTeamChatEventTypeFieldUpdateOperationsInput | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventUncheckedUpdateWithoutChatInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sequence?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
type?: Prisma.EnumTeamChatEventTypeFieldUpdateOperationsInput | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
export type TeamChatEventUncheckedUpdateManyWithoutChatInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
sequence?: Prisma.BigIntFieldUpdateOperationsInput | bigint | number
|
|
occurredAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
type?: Prisma.EnumTeamChatEventTypeFieldUpdateOperationsInput | $Enums.TeamChatEventType
|
|
actorUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
entityId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
requestId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
data?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
}
|
|
|
|
|
|
|
|
export type TeamChatEventSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
sequence?: boolean
|
|
occurredAt?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
type?: boolean
|
|
actorUserId?: boolean
|
|
entityId?: boolean
|
|
requestId?: boolean
|
|
data?: boolean
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatEvent"]>
|
|
|
|
export type TeamChatEventSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
sequence?: boolean
|
|
occurredAt?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
type?: boolean
|
|
actorUserId?: boolean
|
|
entityId?: boolean
|
|
requestId?: boolean
|
|
data?: boolean
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatEvent"]>
|
|
|
|
export type TeamChatEventSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
sequence?: boolean
|
|
occurredAt?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
type?: boolean
|
|
actorUserId?: boolean
|
|
entityId?: boolean
|
|
requestId?: boolean
|
|
data?: boolean
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChatEvent"]>
|
|
|
|
export type TeamChatEventSelectScalar = {
|
|
id?: boolean
|
|
sequence?: boolean
|
|
occurredAt?: boolean
|
|
tenantId?: boolean
|
|
chatId?: boolean
|
|
type?: boolean
|
|
actorUserId?: boolean
|
|
entityId?: boolean
|
|
requestId?: boolean
|
|
data?: boolean
|
|
}
|
|
|
|
export type TeamChatEventOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "sequence" | "occurredAt" | "tenantId" | "chatId" | "type" | "actorUserId" | "entityId" | "requestId" | "data", ExtArgs["result"]["teamChatEvent"]>
|
|
export type TeamChatEventInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
}
|
|
export type TeamChatEventIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
}
|
|
export type TeamChatEventIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
chat?: boolean | Prisma.TeamChatDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $TeamChatEventPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "TeamChatEvent"
|
|
objects: {
|
|
chat: Prisma.$TeamChatPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
sequence: bigint
|
|
occurredAt: Date
|
|
tenantId: string
|
|
chatId: string
|
|
type: $Enums.TeamChatEventType
|
|
actorUserId: string | null
|
|
entityId: string | null
|
|
requestId: string
|
|
data: runtime.JsonValue
|
|
}, ExtArgs["result"]["teamChatEvent"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type TeamChatEventGetPayload<S extends boolean | null | undefined | TeamChatEventDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload, S>
|
|
|
|
export type TeamChatEventCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<TeamChatEventFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: TeamChatEventCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TeamChatEventDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TeamChatEvent'], meta: { name: 'TeamChatEvent' } }
|
|
/**
|
|
* Find zero or one TeamChatEvent that matches the filter.
|
|
* @param {TeamChatEventFindUniqueArgs} args - Arguments to find a TeamChatEvent
|
|
* @example
|
|
* // Get one TeamChatEvent
|
|
* const teamChatEvent = await prisma.teamChatEvent.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends TeamChatEventFindUniqueArgs>(args: Prisma.SelectSubset<T, TeamChatEventFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TeamChatEventClient<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one TeamChatEvent that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {TeamChatEventFindUniqueOrThrowArgs} args - Arguments to find a TeamChatEvent
|
|
* @example
|
|
* // Get one TeamChatEvent
|
|
* const teamChatEvent = await prisma.teamChatEvent.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends TeamChatEventFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TeamChatEventFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatEventClient<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TeamChatEvent 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 {TeamChatEventFindFirstArgs} args - Arguments to find a TeamChatEvent
|
|
* @example
|
|
* // Get one TeamChatEvent
|
|
* const teamChatEvent = await prisma.teamChatEvent.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends TeamChatEventFindFirstArgs>(args?: Prisma.SelectSubset<T, TeamChatEventFindFirstArgs<ExtArgs>>): Prisma.Prisma__TeamChatEventClient<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TeamChatEvent 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 {TeamChatEventFindFirstOrThrowArgs} args - Arguments to find a TeamChatEvent
|
|
* @example
|
|
* // Get one TeamChatEvent
|
|
* const teamChatEvent = await prisma.teamChatEvent.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends TeamChatEventFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TeamChatEventFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatEventClient<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more TeamChatEvents 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 {TeamChatEventFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all TeamChatEvents
|
|
* const teamChatEvents = await prisma.teamChatEvent.findMany()
|
|
*
|
|
* // Get first 10 TeamChatEvents
|
|
* const teamChatEvents = await prisma.teamChatEvent.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const teamChatEventWithIdOnly = await prisma.teamChatEvent.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends TeamChatEventFindManyArgs>(args?: Prisma.SelectSubset<T, TeamChatEventFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a TeamChatEvent.
|
|
* @param {TeamChatEventCreateArgs} args - Arguments to create a TeamChatEvent.
|
|
* @example
|
|
* // Create one TeamChatEvent
|
|
* const TeamChatEvent = await prisma.teamChatEvent.create({
|
|
* data: {
|
|
* // ... data to create a TeamChatEvent
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends TeamChatEventCreateArgs>(args: Prisma.SelectSubset<T, TeamChatEventCreateArgs<ExtArgs>>): Prisma.Prisma__TeamChatEventClient<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many TeamChatEvents.
|
|
* @param {TeamChatEventCreateManyArgs} args - Arguments to create many TeamChatEvents.
|
|
* @example
|
|
* // Create many TeamChatEvents
|
|
* const teamChatEvent = await prisma.teamChatEvent.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends TeamChatEventCreateManyArgs>(args?: Prisma.SelectSubset<T, TeamChatEventCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many TeamChatEvents and returns the data saved in the database.
|
|
* @param {TeamChatEventCreateManyAndReturnArgs} args - Arguments to create many TeamChatEvents.
|
|
* @example
|
|
* // Create many TeamChatEvents
|
|
* const teamChatEvent = await prisma.teamChatEvent.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many TeamChatEvents and only return the `id`
|
|
* const teamChatEventWithIdOnly = await prisma.teamChatEvent.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 TeamChatEventCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TeamChatEventCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a TeamChatEvent.
|
|
* @param {TeamChatEventDeleteArgs} args - Arguments to delete one TeamChatEvent.
|
|
* @example
|
|
* // Delete one TeamChatEvent
|
|
* const TeamChatEvent = await prisma.teamChatEvent.delete({
|
|
* where: {
|
|
* // ... filter to delete one TeamChatEvent
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends TeamChatEventDeleteArgs>(args: Prisma.SelectSubset<T, TeamChatEventDeleteArgs<ExtArgs>>): Prisma.Prisma__TeamChatEventClient<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one TeamChatEvent.
|
|
* @param {TeamChatEventUpdateArgs} args - Arguments to update one TeamChatEvent.
|
|
* @example
|
|
* // Update one TeamChatEvent
|
|
* const teamChatEvent = await prisma.teamChatEvent.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends TeamChatEventUpdateArgs>(args: Prisma.SelectSubset<T, TeamChatEventUpdateArgs<ExtArgs>>): Prisma.Prisma__TeamChatEventClient<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more TeamChatEvents.
|
|
* @param {TeamChatEventDeleteManyArgs} args - Arguments to filter TeamChatEvents to delete.
|
|
* @example
|
|
* // Delete a few TeamChatEvents
|
|
* const { count } = await prisma.teamChatEvent.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends TeamChatEventDeleteManyArgs>(args?: Prisma.SelectSubset<T, TeamChatEventDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TeamChatEvents.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatEventUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many TeamChatEvents
|
|
* const teamChatEvent = await prisma.teamChatEvent.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends TeamChatEventUpdateManyArgs>(args: Prisma.SelectSubset<T, TeamChatEventUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TeamChatEvents and returns the data updated in the database.
|
|
* @param {TeamChatEventUpdateManyAndReturnArgs} args - Arguments to update many TeamChatEvents.
|
|
* @example
|
|
* // Update many TeamChatEvents
|
|
* const teamChatEvent = await prisma.teamChatEvent.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more TeamChatEvents and only return the `id`
|
|
* const teamChatEventWithIdOnly = await prisma.teamChatEvent.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 TeamChatEventUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TeamChatEventUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one TeamChatEvent.
|
|
* @param {TeamChatEventUpsertArgs} args - Arguments to update or create a TeamChatEvent.
|
|
* @example
|
|
* // Update or create a TeamChatEvent
|
|
* const teamChatEvent = await prisma.teamChatEvent.upsert({
|
|
* create: {
|
|
* // ... data to create a TeamChatEvent
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the TeamChatEvent we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends TeamChatEventUpsertArgs>(args: Prisma.SelectSubset<T, TeamChatEventUpsertArgs<ExtArgs>>): Prisma.Prisma__TeamChatEventClient<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of TeamChatEvents.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatEventCountArgs} args - Arguments to filter TeamChatEvents to count.
|
|
* @example
|
|
* // Count the number of TeamChatEvents
|
|
* const count = await prisma.teamChatEvent.count({
|
|
* where: {
|
|
* // ... the filter for the TeamChatEvents we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends TeamChatEventCountArgs>(
|
|
args?: Prisma.Subset<T, TeamChatEventCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], TeamChatEventCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a TeamChatEvent.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatEventAggregateArgs} 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 TeamChatEventAggregateArgs>(args: Prisma.Subset<T, TeamChatEventAggregateArgs>): Prisma.PrismaPromise<GetTeamChatEventAggregateType<T>>
|
|
|
|
/**
|
|
* Group by TeamChatEvent.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatEventGroupByArgs} 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 TeamChatEventGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: TeamChatEventGroupByArgs['orderBy'] }
|
|
: { orderBy?: TeamChatEventGroupByArgs['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, TeamChatEventGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamChatEventGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the TeamChatEvent model
|
|
*/
|
|
readonly fields: TeamChatEventFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for TeamChatEvent.
|
|
* 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__TeamChatEventClient<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>
|
|
/**
|
|
* 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 TeamChatEvent model
|
|
*/
|
|
export interface TeamChatEventFieldRefs {
|
|
readonly id: Prisma.FieldRef<"TeamChatEvent", 'String'>
|
|
readonly sequence: Prisma.FieldRef<"TeamChatEvent", 'BigInt'>
|
|
readonly occurredAt: Prisma.FieldRef<"TeamChatEvent", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"TeamChatEvent", 'String'>
|
|
readonly chatId: Prisma.FieldRef<"TeamChatEvent", 'String'>
|
|
readonly type: Prisma.FieldRef<"TeamChatEvent", 'TeamChatEventType'>
|
|
readonly actorUserId: Prisma.FieldRef<"TeamChatEvent", 'String'>
|
|
readonly entityId: Prisma.FieldRef<"TeamChatEvent", 'String'>
|
|
readonly requestId: Prisma.FieldRef<"TeamChatEvent", 'String'>
|
|
readonly data: Prisma.FieldRef<"TeamChatEvent", 'Json'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* TeamChatEvent findUnique
|
|
*/
|
|
export type TeamChatEventFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatEvent to fetch.
|
|
*/
|
|
where: Prisma.TeamChatEventWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent findUniqueOrThrow
|
|
*/
|
|
export type TeamChatEventFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatEvent to fetch.
|
|
*/
|
|
where: Prisma.TeamChatEventWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent findFirst
|
|
*/
|
|
export type TeamChatEventFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatEvent to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatEvents to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatEventOrderByWithRelationInput | Prisma.TeamChatEventOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TeamChatEvents.
|
|
*/
|
|
cursor?: Prisma.TeamChatEventWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatEvents 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` TeamChatEvents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChatEvents.
|
|
*/
|
|
distinct?: Prisma.TeamChatEventScalarFieldEnum | Prisma.TeamChatEventScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent findFirstOrThrow
|
|
*/
|
|
export type TeamChatEventFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatEvent to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatEvents to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatEventOrderByWithRelationInput | Prisma.TeamChatEventOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TeamChatEvents.
|
|
*/
|
|
cursor?: Prisma.TeamChatEventWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatEvents 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` TeamChatEvents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChatEvents.
|
|
*/
|
|
distinct?: Prisma.TeamChatEventScalarFieldEnum | Prisma.TeamChatEventScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent findMany
|
|
*/
|
|
export type TeamChatEventFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChatEvents to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChatEvents to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatEventOrderByWithRelationInput | Prisma.TeamChatEventOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing TeamChatEvents.
|
|
*/
|
|
cursor?: Prisma.TeamChatEventWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChatEvents 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` TeamChatEvents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChatEvents.
|
|
*/
|
|
distinct?: Prisma.TeamChatEventScalarFieldEnum | Prisma.TeamChatEventScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent create
|
|
*/
|
|
export type TeamChatEventCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a TeamChatEvent.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatEventCreateInput, Prisma.TeamChatEventUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent createMany
|
|
*/
|
|
export type TeamChatEventCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many TeamChatEvents.
|
|
*/
|
|
data: Prisma.TeamChatEventCreateManyInput | Prisma.TeamChatEventCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent createManyAndReturn
|
|
*/
|
|
export type TeamChatEventCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many TeamChatEvents.
|
|
*/
|
|
data: Prisma.TeamChatEventCreateManyInput | Prisma.TeamChatEventCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent update
|
|
*/
|
|
export type TeamChatEventUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a TeamChatEvent.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatEventUpdateInput, Prisma.TeamChatEventUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which TeamChatEvent to update.
|
|
*/
|
|
where: Prisma.TeamChatEventWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent updateMany
|
|
*/
|
|
export type TeamChatEventUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update TeamChatEvents.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatEventUpdateManyMutationInput, Prisma.TeamChatEventUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TeamChatEvents to update
|
|
*/
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
/**
|
|
* Limit how many TeamChatEvents to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent updateManyAndReturn
|
|
*/
|
|
export type TeamChatEventUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update TeamChatEvents.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatEventUpdateManyMutationInput, Prisma.TeamChatEventUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TeamChatEvents to update
|
|
*/
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
/**
|
|
* Limit how many TeamChatEvents to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent upsert
|
|
*/
|
|
export type TeamChatEventUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the TeamChatEvent to update in case it exists.
|
|
*/
|
|
where: Prisma.TeamChatEventWhereUniqueInput
|
|
/**
|
|
* In case the TeamChatEvent found by the `where` argument doesn't exist, create a new TeamChatEvent with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.TeamChatEventCreateInput, Prisma.TeamChatEventUncheckedCreateInput>
|
|
/**
|
|
* In case the TeamChatEvent was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.TeamChatEventUpdateInput, Prisma.TeamChatEventUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent delete
|
|
*/
|
|
export type TeamChatEventDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which TeamChatEvent to delete.
|
|
*/
|
|
where: Prisma.TeamChatEventWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent deleteMany
|
|
*/
|
|
export type TeamChatEventDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TeamChatEvents to delete
|
|
*/
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
/**
|
|
* Limit how many TeamChatEvents to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChatEvent without action
|
|
*/
|
|
export type TeamChatEventDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatEvent
|
|
*/
|
|
select?: Prisma.TeamChatEventSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatEvent
|
|
*/
|
|
omit?: Prisma.TeamChatEventOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatEventInclude<ExtArgs> | null
|
|
}
|