2623 lines
111 KiB
TypeScript
2623 lines
111 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 `TeamChat` 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 TeamChat
|
|
* A project-linked, group, or direct-message channel. Project and direct
|
|
* message channels are always private; group privacy is selected at creation.
|
|
* The merge migration enforces kind-specific CHECK constraints and partial
|
|
* unique indexes for active project channels and direct-message pairs.
|
|
*/
|
|
export type TeamChatModel = runtime.Types.Result.DefaultSelection<Prisma.$TeamChatPayload>
|
|
|
|
export type AggregateTeamChat = {
|
|
_count: TeamChatCountAggregateOutputType | null
|
|
_min: TeamChatMinAggregateOutputType | null
|
|
_max: TeamChatMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TeamChatMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
createdByUserId: string | null
|
|
kind: $Enums.TeamChatKind | null
|
|
name: string | null
|
|
description: string | null
|
|
projektId: string | null
|
|
isPrivate: boolean | null
|
|
archivedAt: Date | null
|
|
archivedReason: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt: Date | null
|
|
notificationDefault: $Enums.TeamChatNotificationPreference | null
|
|
eventStreamId: string | null
|
|
dmPairKey: string | null
|
|
isDemoData: boolean | null
|
|
}
|
|
|
|
export type TeamChatMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
createdByUserId: string | null
|
|
kind: $Enums.TeamChatKind | null
|
|
name: string | null
|
|
description: string | null
|
|
projektId: string | null
|
|
isPrivate: boolean | null
|
|
archivedAt: Date | null
|
|
archivedReason: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt: Date | null
|
|
notificationDefault: $Enums.TeamChatNotificationPreference | null
|
|
eventStreamId: string | null
|
|
dmPairKey: string | null
|
|
isDemoData: boolean | null
|
|
}
|
|
|
|
export type TeamChatCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
createdByUserId: number
|
|
kind: number
|
|
name: number
|
|
description: number
|
|
projektId: number
|
|
isPrivate: number
|
|
archivedAt: number
|
|
archivedReason: number
|
|
lastMessageAt: number
|
|
notificationDefault: number
|
|
eventStreamId: number
|
|
dmPairKey: number
|
|
isDemoData: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TeamChatMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
createdByUserId?: true
|
|
kind?: true
|
|
name?: true
|
|
description?: true
|
|
projektId?: true
|
|
isPrivate?: true
|
|
archivedAt?: true
|
|
archivedReason?: true
|
|
lastMessageAt?: true
|
|
notificationDefault?: true
|
|
eventStreamId?: true
|
|
dmPairKey?: true
|
|
isDemoData?: true
|
|
}
|
|
|
|
export type TeamChatMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
createdByUserId?: true
|
|
kind?: true
|
|
name?: true
|
|
description?: true
|
|
projektId?: true
|
|
isPrivate?: true
|
|
archivedAt?: true
|
|
archivedReason?: true
|
|
lastMessageAt?: true
|
|
notificationDefault?: true
|
|
eventStreamId?: true
|
|
dmPairKey?: true
|
|
isDemoData?: true
|
|
}
|
|
|
|
export type TeamChatCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
createdByUserId?: true
|
|
kind?: true
|
|
name?: true
|
|
description?: true
|
|
projektId?: true
|
|
isPrivate?: true
|
|
archivedAt?: true
|
|
archivedReason?: true
|
|
lastMessageAt?: true
|
|
notificationDefault?: true
|
|
eventStreamId?: true
|
|
dmPairKey?: true
|
|
isDemoData?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TeamChatAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TeamChat to aggregate.
|
|
*/
|
|
where?: Prisma.TeamChatWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChats to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatOrderByWithRelationInput | Prisma.TeamChatOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.TeamChatWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChats 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` TeamChats.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned TeamChats
|
|
**/
|
|
_count?: true | TeamChatCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TeamChatMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TeamChatMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTeamChatAggregateType<T extends TeamChatAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTeamChat]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChat[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTeamChat[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TeamChatGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatWhereInput
|
|
orderBy?: Prisma.TeamChatOrderByWithAggregationInput | Prisma.TeamChatOrderByWithAggregationInput[]
|
|
by: Prisma.TeamChatScalarFieldEnum[] | Prisma.TeamChatScalarFieldEnum
|
|
having?: Prisma.TeamChatScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TeamChatCountAggregateInputType | true
|
|
_min?: TeamChatMinAggregateInputType
|
|
_max?: TeamChatMaxAggregateInputType
|
|
}
|
|
|
|
export type TeamChatGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
createdByUserId: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name: string | null
|
|
description: string | null
|
|
projektId: string | null
|
|
isPrivate: boolean
|
|
archivedAt: Date | null
|
|
archivedReason: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt: Date | null
|
|
notificationDefault: $Enums.TeamChatNotificationPreference
|
|
eventStreamId: string
|
|
dmPairKey: string | null
|
|
isDemoData: boolean
|
|
_count: TeamChatCountAggregateOutputType | null
|
|
_min: TeamChatMinAggregateOutputType | null
|
|
_max: TeamChatMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetTeamChatGroupByPayload<T extends TeamChatGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<TeamChatGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TeamChatGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], TeamChatGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], TeamChatGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type TeamChatWhereInput = {
|
|
AND?: Prisma.TeamChatWhereInput | Prisma.TeamChatWhereInput[]
|
|
OR?: Prisma.TeamChatWhereInput[]
|
|
NOT?: Prisma.TeamChatWhereInput | Prisma.TeamChatWhereInput[]
|
|
id?: Prisma.StringFilter<"TeamChat"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"TeamChat"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"TeamChat"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TeamChat"> | string
|
|
createdByUserId?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
kind?: Prisma.EnumTeamChatKindFilter<"TeamChat"> | $Enums.TeamChatKind
|
|
name?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
description?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
projektId?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
isPrivate?: Prisma.BoolFilter<"TeamChat"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"TeamChat"> | Date | string | null
|
|
archivedReason?: Prisma.EnumTeamChatArchivedReasonNullableFilter<"TeamChat"> | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.DateTimeNullableFilter<"TeamChat"> | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFilter<"TeamChat"> | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFilter<"TeamChat"> | string
|
|
dmPairKey?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"TeamChat"> | boolean
|
|
members?: Prisma.TeamChatMemberListRelationFilter
|
|
groupSources?: Prisma.TeamChatGroupSourceListRelationFilter
|
|
messages?: Prisma.TeamChatMessageListRelationFilter
|
|
threads?: Prisma.TeamChatThreadListRelationFilter
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageListRelationFilter
|
|
events?: Prisma.TeamChatEventListRelationFilter
|
|
}
|
|
|
|
export type TeamChatOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
projektId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isPrivate?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
archivedReason?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
lastMessageAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
notificationDefault?: Prisma.SortOrder
|
|
eventStreamId?: Prisma.SortOrder
|
|
dmPairKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
members?: Prisma.TeamChatMemberOrderByRelationAggregateInput
|
|
groupSources?: Prisma.TeamChatGroupSourceOrderByRelationAggregateInput
|
|
messages?: Prisma.TeamChatMessageOrderByRelationAggregateInput
|
|
threads?: Prisma.TeamChatThreadOrderByRelationAggregateInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageOrderByRelationAggregateInput
|
|
events?: Prisma.TeamChatEventOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type TeamChatWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
eventStreamId?: string
|
|
id_tenantId?: Prisma.TeamChatIdTenantIdCompoundUniqueInput
|
|
AND?: Prisma.TeamChatWhereInput | Prisma.TeamChatWhereInput[]
|
|
OR?: Prisma.TeamChatWhereInput[]
|
|
NOT?: Prisma.TeamChatWhereInput | Prisma.TeamChatWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"TeamChat"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"TeamChat"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TeamChat"> | string
|
|
createdByUserId?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
kind?: Prisma.EnumTeamChatKindFilter<"TeamChat"> | $Enums.TeamChatKind
|
|
name?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
description?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
projektId?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
isPrivate?: Prisma.BoolFilter<"TeamChat"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableFilter<"TeamChat"> | Date | string | null
|
|
archivedReason?: Prisma.EnumTeamChatArchivedReasonNullableFilter<"TeamChat"> | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.DateTimeNullableFilter<"TeamChat"> | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFilter<"TeamChat"> | $Enums.TeamChatNotificationPreference
|
|
dmPairKey?: Prisma.StringNullableFilter<"TeamChat"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"TeamChat"> | boolean
|
|
members?: Prisma.TeamChatMemberListRelationFilter
|
|
groupSources?: Prisma.TeamChatGroupSourceListRelationFilter
|
|
messages?: Prisma.TeamChatMessageListRelationFilter
|
|
threads?: Prisma.TeamChatThreadListRelationFilter
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageListRelationFilter
|
|
events?: Prisma.TeamChatEventListRelationFilter
|
|
}, "id" | "eventStreamId" | "id_tenantId">
|
|
|
|
export type TeamChatOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
description?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
projektId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isPrivate?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
archivedReason?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
lastMessageAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
notificationDefault?: Prisma.SortOrder
|
|
eventStreamId?: Prisma.SortOrder
|
|
dmPairKey?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
_count?: Prisma.TeamChatCountOrderByAggregateInput
|
|
_max?: Prisma.TeamChatMaxOrderByAggregateInput
|
|
_min?: Prisma.TeamChatMinOrderByAggregateInput
|
|
}
|
|
|
|
export type TeamChatScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.TeamChatScalarWhereWithAggregatesInput | Prisma.TeamChatScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.TeamChatScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.TeamChatScalarWhereWithAggregatesInput | Prisma.TeamChatScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"TeamChat"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"TeamChat"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"TeamChat"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"TeamChat"> | string
|
|
createdByUserId?: Prisma.StringNullableWithAggregatesFilter<"TeamChat"> | string | null
|
|
kind?: Prisma.EnumTeamChatKindWithAggregatesFilter<"TeamChat"> | $Enums.TeamChatKind
|
|
name?: Prisma.StringNullableWithAggregatesFilter<"TeamChat"> | string | null
|
|
description?: Prisma.StringNullableWithAggregatesFilter<"TeamChat"> | string | null
|
|
projektId?: Prisma.StringNullableWithAggregatesFilter<"TeamChat"> | string | null
|
|
isPrivate?: Prisma.BoolWithAggregatesFilter<"TeamChat"> | boolean
|
|
archivedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TeamChat"> | Date | string | null
|
|
archivedReason?: Prisma.EnumTeamChatArchivedReasonNullableWithAggregatesFilter<"TeamChat"> | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.DateTimeNullableWithAggregatesFilter<"TeamChat"> | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceWithAggregatesFilter<"TeamChat"> | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringWithAggregatesFilter<"TeamChat"> | string
|
|
dmPairKey?: Prisma.StringNullableWithAggregatesFilter<"TeamChat"> | string | null
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"TeamChat"> | boolean
|
|
}
|
|
|
|
export type TeamChatCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberUncheckedCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageUncheckedCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadUncheckedCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventUncheckedCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUncheckedUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUncheckedUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUncheckedUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
}
|
|
|
|
export type TeamChatUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type TeamChatUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type TeamChatIdTenantIdCompoundUniqueInput = {
|
|
id: string
|
|
tenantId: string
|
|
}
|
|
|
|
export type TeamChatCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
projektId?: Prisma.SortOrder
|
|
isPrivate?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
archivedReason?: Prisma.SortOrder
|
|
lastMessageAt?: Prisma.SortOrder
|
|
notificationDefault?: Prisma.SortOrder
|
|
eventStreamId?: Prisma.SortOrder
|
|
dmPairKey?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
projektId?: Prisma.SortOrder
|
|
isPrivate?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
archivedReason?: Prisma.SortOrder
|
|
lastMessageAt?: Prisma.SortOrder
|
|
notificationDefault?: Prisma.SortOrder
|
|
eventStreamId?: Prisma.SortOrder
|
|
dmPairKey?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
createdByUserId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
description?: Prisma.SortOrder
|
|
projektId?: Prisma.SortOrder
|
|
isPrivate?: Prisma.SortOrder
|
|
archivedAt?: Prisma.SortOrder
|
|
archivedReason?: Prisma.SortOrder
|
|
lastMessageAt?: Prisma.SortOrder
|
|
notificationDefault?: Prisma.SortOrder
|
|
eventStreamId?: Prisma.SortOrder
|
|
dmPairKey?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TeamChatScalarRelationFilter = {
|
|
is?: Prisma.TeamChatWhereInput
|
|
isNot?: Prisma.TeamChatWhereInput
|
|
}
|
|
|
|
export type EnumTeamChatKindFieldUpdateOperationsInput = {
|
|
set?: $Enums.TeamChatKind
|
|
}
|
|
|
|
export type NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput = {
|
|
set?: $Enums.TeamChatArchivedReason | null
|
|
}
|
|
|
|
export type EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput = {
|
|
set?: $Enums.TeamChatNotificationPreference
|
|
}
|
|
|
|
export type TeamChatCreateNestedOneWithoutGroupSourcesInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutGroupSourcesInput, Prisma.TeamChatUncheckedCreateWithoutGroupSourcesInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutGroupSourcesInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
export type TeamChatUpdateOneRequiredWithoutGroupSourcesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutGroupSourcesInput, Prisma.TeamChatUncheckedCreateWithoutGroupSourcesInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutGroupSourcesInput
|
|
upsert?: Prisma.TeamChatUpsertWithoutGroupSourcesInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamChatUpdateToOneWithWhereWithoutGroupSourcesInput, Prisma.TeamChatUpdateWithoutGroupSourcesInput>, Prisma.TeamChatUncheckedUpdateWithoutGroupSourcesInput>
|
|
}
|
|
|
|
export type TeamChatCreateNestedOneWithoutEventsInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutEventsInput, Prisma.TeamChatUncheckedCreateWithoutEventsInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutEventsInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
export type TeamChatUpdateOneRequiredWithoutEventsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutEventsInput, Prisma.TeamChatUncheckedCreateWithoutEventsInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutEventsInput
|
|
upsert?: Prisma.TeamChatUpsertWithoutEventsInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamChatUpdateToOneWithWhereWithoutEventsInput, Prisma.TeamChatUpdateWithoutEventsInput>, Prisma.TeamChatUncheckedUpdateWithoutEventsInput>
|
|
}
|
|
|
|
export type TeamChatCreateNestedOneWithoutMembersInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutMembersInput, Prisma.TeamChatUncheckedCreateWithoutMembersInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutMembersInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
export type TeamChatUpdateOneRequiredWithoutMembersNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutMembersInput, Prisma.TeamChatUncheckedCreateWithoutMembersInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutMembersInput
|
|
upsert?: Prisma.TeamChatUpsertWithoutMembersInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamChatUpdateToOneWithWhereWithoutMembersInput, Prisma.TeamChatUpdateWithoutMembersInput>, Prisma.TeamChatUncheckedUpdateWithoutMembersInput>
|
|
}
|
|
|
|
export type TeamChatCreateNestedOneWithoutMessagesInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutMessagesInput, Prisma.TeamChatUncheckedCreateWithoutMessagesInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutMessagesInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
export type TeamChatUpdateOneRequiredWithoutMessagesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutMessagesInput, Prisma.TeamChatUncheckedCreateWithoutMessagesInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutMessagesInput
|
|
upsert?: Prisma.TeamChatUpsertWithoutMessagesInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamChatUpdateToOneWithWhereWithoutMessagesInput, Prisma.TeamChatUpdateWithoutMessagesInput>, Prisma.TeamChatUncheckedUpdateWithoutMessagesInput>
|
|
}
|
|
|
|
export type TeamChatCreateNestedOneWithoutThreadsInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutThreadsInput, Prisma.TeamChatUncheckedCreateWithoutThreadsInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutThreadsInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
export type TeamChatUpdateOneRequiredWithoutThreadsNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutThreadsInput, Prisma.TeamChatUncheckedCreateWithoutThreadsInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutThreadsInput
|
|
upsert?: Prisma.TeamChatUpsertWithoutThreadsInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamChatUpdateToOneWithWhereWithoutThreadsInput, Prisma.TeamChatUpdateWithoutThreadsInput>, Prisma.TeamChatUncheckedUpdateWithoutThreadsInput>
|
|
}
|
|
|
|
export type TeamChatCreateNestedOneWithoutPinnedMessagesInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutPinnedMessagesInput, Prisma.TeamChatUncheckedCreateWithoutPinnedMessagesInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutPinnedMessagesInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
export type TeamChatUpdateOneRequiredWithoutPinnedMessagesNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TeamChatCreateWithoutPinnedMessagesInput, Prisma.TeamChatUncheckedCreateWithoutPinnedMessagesInput>
|
|
connectOrCreate?: Prisma.TeamChatCreateOrConnectWithoutPinnedMessagesInput
|
|
upsert?: Prisma.TeamChatUpsertWithoutPinnedMessagesInput
|
|
connect?: Prisma.TeamChatWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.TeamChatUpdateToOneWithWhereWithoutPinnedMessagesInput, Prisma.TeamChatUpdateWithoutPinnedMessagesInput>, Prisma.TeamChatUncheckedUpdateWithoutPinnedMessagesInput>
|
|
}
|
|
|
|
export type TeamChatCreateWithoutGroupSourcesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatUncheckedCreateWithoutGroupSourcesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberUncheckedCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageUncheckedCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadUncheckedCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventUncheckedCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatCreateOrConnectWithoutGroupSourcesInput = {
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutGroupSourcesInput, Prisma.TeamChatUncheckedCreateWithoutGroupSourcesInput>
|
|
}
|
|
|
|
export type TeamChatUpsertWithoutGroupSourcesInput = {
|
|
update: Prisma.XOR<Prisma.TeamChatUpdateWithoutGroupSourcesInput, Prisma.TeamChatUncheckedUpdateWithoutGroupSourcesInput>
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutGroupSourcesInput, Prisma.TeamChatUncheckedCreateWithoutGroupSourcesInput>
|
|
where?: Prisma.TeamChatWhereInput
|
|
}
|
|
|
|
export type TeamChatUpdateToOneWithWhereWithoutGroupSourcesInput = {
|
|
where?: Prisma.TeamChatWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatUpdateWithoutGroupSourcesInput, Prisma.TeamChatUncheckedUpdateWithoutGroupSourcesInput>
|
|
}
|
|
|
|
export type TeamChatUpdateWithoutGroupSourcesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatUncheckedUpdateWithoutGroupSourcesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUncheckedUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUncheckedUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUncheckedUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatCreateWithoutEventsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatUncheckedCreateWithoutEventsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberUncheckedCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageUncheckedCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadUncheckedCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatCreateOrConnectWithoutEventsInput = {
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutEventsInput, Prisma.TeamChatUncheckedCreateWithoutEventsInput>
|
|
}
|
|
|
|
export type TeamChatUpsertWithoutEventsInput = {
|
|
update: Prisma.XOR<Prisma.TeamChatUpdateWithoutEventsInput, Prisma.TeamChatUncheckedUpdateWithoutEventsInput>
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutEventsInput, Prisma.TeamChatUncheckedCreateWithoutEventsInput>
|
|
where?: Prisma.TeamChatWhereInput
|
|
}
|
|
|
|
export type TeamChatUpdateToOneWithWhereWithoutEventsInput = {
|
|
where?: Prisma.TeamChatWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatUpdateWithoutEventsInput, Prisma.TeamChatUncheckedUpdateWithoutEventsInput>
|
|
}
|
|
|
|
export type TeamChatUpdateWithoutEventsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatUncheckedUpdateWithoutEventsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUncheckedUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUncheckedUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatCreateWithoutMembersInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
groupSources?: Prisma.TeamChatGroupSourceCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatUncheckedCreateWithoutMembersInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageUncheckedCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadUncheckedCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventUncheckedCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatCreateOrConnectWithoutMembersInput = {
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutMembersInput, Prisma.TeamChatUncheckedCreateWithoutMembersInput>
|
|
}
|
|
|
|
export type TeamChatUpsertWithoutMembersInput = {
|
|
update: Prisma.XOR<Prisma.TeamChatUpdateWithoutMembersInput, Prisma.TeamChatUncheckedUpdateWithoutMembersInput>
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutMembersInput, Prisma.TeamChatUncheckedCreateWithoutMembersInput>
|
|
where?: Prisma.TeamChatWhereInput
|
|
}
|
|
|
|
export type TeamChatUpdateToOneWithWhereWithoutMembersInput = {
|
|
where?: Prisma.TeamChatWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatUpdateWithoutMembersInput, Prisma.TeamChatUncheckedUpdateWithoutMembersInput>
|
|
}
|
|
|
|
export type TeamChatUpdateWithoutMembersInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
groupSources?: Prisma.TeamChatGroupSourceUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatUncheckedUpdateWithoutMembersInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUncheckedUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUncheckedUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatCreateWithoutMessagesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatUncheckedCreateWithoutMessagesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberUncheckedCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadUncheckedCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventUncheckedCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatCreateOrConnectWithoutMessagesInput = {
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutMessagesInput, Prisma.TeamChatUncheckedCreateWithoutMessagesInput>
|
|
}
|
|
|
|
export type TeamChatUpsertWithoutMessagesInput = {
|
|
update: Prisma.XOR<Prisma.TeamChatUpdateWithoutMessagesInput, Prisma.TeamChatUncheckedUpdateWithoutMessagesInput>
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutMessagesInput, Prisma.TeamChatUncheckedCreateWithoutMessagesInput>
|
|
where?: Prisma.TeamChatWhereInput
|
|
}
|
|
|
|
export type TeamChatUpdateToOneWithWhereWithoutMessagesInput = {
|
|
where?: Prisma.TeamChatWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatUpdateWithoutMessagesInput, Prisma.TeamChatUncheckedUpdateWithoutMessagesInput>
|
|
}
|
|
|
|
export type TeamChatUpdateWithoutMessagesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatUncheckedUpdateWithoutMessagesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUncheckedUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUncheckedUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUncheckedUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatCreateWithoutThreadsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatUncheckedCreateWithoutThreadsInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberUncheckedCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageUncheckedCreateNestedManyWithoutChatInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventUncheckedCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatCreateOrConnectWithoutThreadsInput = {
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutThreadsInput, Prisma.TeamChatUncheckedCreateWithoutThreadsInput>
|
|
}
|
|
|
|
export type TeamChatUpsertWithoutThreadsInput = {
|
|
update: Prisma.XOR<Prisma.TeamChatUpdateWithoutThreadsInput, Prisma.TeamChatUncheckedUpdateWithoutThreadsInput>
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutThreadsInput, Prisma.TeamChatUncheckedCreateWithoutThreadsInput>
|
|
where?: Prisma.TeamChatWhereInput
|
|
}
|
|
|
|
export type TeamChatUpdateToOneWithWhereWithoutThreadsInput = {
|
|
where?: Prisma.TeamChatWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatUpdateWithoutThreadsInput, Prisma.TeamChatUncheckedUpdateWithoutThreadsInput>
|
|
}
|
|
|
|
export type TeamChatUpdateWithoutThreadsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatUncheckedUpdateWithoutThreadsInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUncheckedUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
pinnedMessages?: Prisma.TeamChatPinnedMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUncheckedUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatCreateWithoutPinnedMessagesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatUncheckedCreateWithoutPinnedMessagesInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
createdByUserId?: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name?: string | null
|
|
description?: string | null
|
|
projektId?: string | null
|
|
isPrivate?: boolean
|
|
archivedAt?: Date | string | null
|
|
archivedReason?: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Date | string | null
|
|
notificationDefault?: $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: string
|
|
dmPairKey?: string | null
|
|
isDemoData?: boolean
|
|
members?: Prisma.TeamChatMemberUncheckedCreateNestedManyWithoutChatInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedCreateNestedManyWithoutChatInput
|
|
messages?: Prisma.TeamChatMessageUncheckedCreateNestedManyWithoutChatInput
|
|
threads?: Prisma.TeamChatThreadUncheckedCreateNestedManyWithoutChatInput
|
|
events?: Prisma.TeamChatEventUncheckedCreateNestedManyWithoutChatInput
|
|
}
|
|
|
|
export type TeamChatCreateOrConnectWithoutPinnedMessagesInput = {
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutPinnedMessagesInput, Prisma.TeamChatUncheckedCreateWithoutPinnedMessagesInput>
|
|
}
|
|
|
|
export type TeamChatUpsertWithoutPinnedMessagesInput = {
|
|
update: Prisma.XOR<Prisma.TeamChatUpdateWithoutPinnedMessagesInput, Prisma.TeamChatUncheckedUpdateWithoutPinnedMessagesInput>
|
|
create: Prisma.XOR<Prisma.TeamChatCreateWithoutPinnedMessagesInput, Prisma.TeamChatUncheckedCreateWithoutPinnedMessagesInput>
|
|
where?: Prisma.TeamChatWhereInput
|
|
}
|
|
|
|
export type TeamChatUpdateToOneWithWhereWithoutPinnedMessagesInput = {
|
|
where?: Prisma.TeamChatWhereInput
|
|
data: Prisma.XOR<Prisma.TeamChatUpdateWithoutPinnedMessagesInput, Prisma.TeamChatUncheckedUpdateWithoutPinnedMessagesInput>
|
|
}
|
|
|
|
export type TeamChatUpdateWithoutPinnedMessagesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
export type TeamChatUncheckedUpdateWithoutPinnedMessagesInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
kind?: Prisma.EnumTeamChatKindFieldUpdateOperationsInput | $Enums.TeamChatKind
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
projektId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isPrivate?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
archivedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
archivedReason?: Prisma.NullableEnumTeamChatArchivedReasonFieldUpdateOperationsInput | $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
notificationDefault?: Prisma.EnumTeamChatNotificationPreferenceFieldUpdateOperationsInput | $Enums.TeamChatNotificationPreference
|
|
eventStreamId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
dmPairKey?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
members?: Prisma.TeamChatMemberUncheckedUpdateManyWithoutChatNestedInput
|
|
groupSources?: Prisma.TeamChatGroupSourceUncheckedUpdateManyWithoutChatNestedInput
|
|
messages?: Prisma.TeamChatMessageUncheckedUpdateManyWithoutChatNestedInput
|
|
threads?: Prisma.TeamChatThreadUncheckedUpdateManyWithoutChatNestedInput
|
|
events?: Prisma.TeamChatEventUncheckedUpdateManyWithoutChatNestedInput
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type TeamChatCountOutputType
|
|
*/
|
|
|
|
export type TeamChatCountOutputType = {
|
|
members: number
|
|
groupSources: number
|
|
messages: number
|
|
threads: number
|
|
pinnedMessages: number
|
|
events: number
|
|
}
|
|
|
|
export type TeamChatCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
members?: boolean | TeamChatCountOutputTypeCountMembersArgs
|
|
groupSources?: boolean | TeamChatCountOutputTypeCountGroupSourcesArgs
|
|
messages?: boolean | TeamChatCountOutputTypeCountMessagesArgs
|
|
threads?: boolean | TeamChatCountOutputTypeCountThreadsArgs
|
|
pinnedMessages?: boolean | TeamChatCountOutputTypeCountPinnedMessagesArgs
|
|
events?: boolean | TeamChatCountOutputTypeCountEventsArgs
|
|
}
|
|
|
|
/**
|
|
* TeamChatCountOutputType without action
|
|
*/
|
|
export type TeamChatCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatCountOutputType
|
|
*/
|
|
select?: Prisma.TeamChatCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TeamChatCountOutputType without action
|
|
*/
|
|
export type TeamChatCountOutputTypeCountMembersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatMemberWhereInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatCountOutputType without action
|
|
*/
|
|
export type TeamChatCountOutputTypeCountGroupSourcesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatGroupSourceWhereInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatCountOutputType without action
|
|
*/
|
|
export type TeamChatCountOutputTypeCountMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatMessageWhereInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatCountOutputType without action
|
|
*/
|
|
export type TeamChatCountOutputTypeCountThreadsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatCountOutputType without action
|
|
*/
|
|
export type TeamChatCountOutputTypeCountPinnedMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatPinnedMessageWhereInput
|
|
}
|
|
|
|
/**
|
|
* TeamChatCountOutputType without action
|
|
*/
|
|
export type TeamChatCountOutputTypeCountEventsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
}
|
|
|
|
|
|
export type TeamChatSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
createdByUserId?: boolean
|
|
kind?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
projektId?: boolean
|
|
isPrivate?: boolean
|
|
archivedAt?: boolean
|
|
archivedReason?: boolean
|
|
lastMessageAt?: boolean
|
|
notificationDefault?: boolean
|
|
eventStreamId?: boolean
|
|
dmPairKey?: boolean
|
|
isDemoData?: boolean
|
|
members?: boolean | Prisma.TeamChat$membersArgs<ExtArgs>
|
|
groupSources?: boolean | Prisma.TeamChat$groupSourcesArgs<ExtArgs>
|
|
messages?: boolean | Prisma.TeamChat$messagesArgs<ExtArgs>
|
|
threads?: boolean | Prisma.TeamChat$threadsArgs<ExtArgs>
|
|
pinnedMessages?: boolean | Prisma.TeamChat$pinnedMessagesArgs<ExtArgs>
|
|
events?: boolean | Prisma.TeamChat$eventsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.TeamChatCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["teamChat"]>
|
|
|
|
export type TeamChatSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
createdByUserId?: boolean
|
|
kind?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
projektId?: boolean
|
|
isPrivate?: boolean
|
|
archivedAt?: boolean
|
|
archivedReason?: boolean
|
|
lastMessageAt?: boolean
|
|
notificationDefault?: boolean
|
|
eventStreamId?: boolean
|
|
dmPairKey?: boolean
|
|
isDemoData?: boolean
|
|
}, ExtArgs["result"]["teamChat"]>
|
|
|
|
export type TeamChatSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
createdByUserId?: boolean
|
|
kind?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
projektId?: boolean
|
|
isPrivate?: boolean
|
|
archivedAt?: boolean
|
|
archivedReason?: boolean
|
|
lastMessageAt?: boolean
|
|
notificationDefault?: boolean
|
|
eventStreamId?: boolean
|
|
dmPairKey?: boolean
|
|
isDemoData?: boolean
|
|
}, ExtArgs["result"]["teamChat"]>
|
|
|
|
export type TeamChatSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
createdByUserId?: boolean
|
|
kind?: boolean
|
|
name?: boolean
|
|
description?: boolean
|
|
projektId?: boolean
|
|
isPrivate?: boolean
|
|
archivedAt?: boolean
|
|
archivedReason?: boolean
|
|
lastMessageAt?: boolean
|
|
notificationDefault?: boolean
|
|
eventStreamId?: boolean
|
|
dmPairKey?: boolean
|
|
isDemoData?: boolean
|
|
}
|
|
|
|
export type TeamChatOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "createdByUserId" | "kind" | "name" | "description" | "projektId" | "isPrivate" | "archivedAt" | "archivedReason" | "lastMessageAt" | "notificationDefault" | "eventStreamId" | "dmPairKey" | "isDemoData", ExtArgs["result"]["teamChat"]>
|
|
export type TeamChatInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
members?: boolean | Prisma.TeamChat$membersArgs<ExtArgs>
|
|
groupSources?: boolean | Prisma.TeamChat$groupSourcesArgs<ExtArgs>
|
|
messages?: boolean | Prisma.TeamChat$messagesArgs<ExtArgs>
|
|
threads?: boolean | Prisma.TeamChat$threadsArgs<ExtArgs>
|
|
pinnedMessages?: boolean | Prisma.TeamChat$pinnedMessagesArgs<ExtArgs>
|
|
events?: boolean | Prisma.TeamChat$eventsArgs<ExtArgs>
|
|
_count?: boolean | Prisma.TeamChatCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type TeamChatIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
export type TeamChatIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
|
|
|
export type $TeamChatPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "TeamChat"
|
|
objects: {
|
|
members: Prisma.$TeamChatMemberPayload<ExtArgs>[]
|
|
groupSources: Prisma.$TeamChatGroupSourcePayload<ExtArgs>[]
|
|
messages: Prisma.$TeamChatMessagePayload<ExtArgs>[]
|
|
threads: Prisma.$TeamChatThreadPayload<ExtArgs>[]
|
|
pinnedMessages: Prisma.$TeamChatPinnedMessagePayload<ExtArgs>[]
|
|
events: Prisma.$TeamChatEventPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
createdByUserId: string | null
|
|
kind: $Enums.TeamChatKind
|
|
name: string | null
|
|
description: string | null
|
|
projektId: string | null
|
|
isPrivate: boolean
|
|
archivedAt: Date | null
|
|
archivedReason: $Enums.TeamChatArchivedReason | null
|
|
lastMessageAt: Date | null
|
|
notificationDefault: $Enums.TeamChatNotificationPreference
|
|
eventStreamId: string
|
|
dmPairKey: string | null
|
|
isDemoData: boolean
|
|
}, ExtArgs["result"]["teamChat"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type TeamChatGetPayload<S extends boolean | null | undefined | TeamChatDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TeamChatPayload, S>
|
|
|
|
export type TeamChatCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<TeamChatFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: TeamChatCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TeamChatDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TeamChat'], meta: { name: 'TeamChat' } }
|
|
/**
|
|
* Find zero or one TeamChat that matches the filter.
|
|
* @param {TeamChatFindUniqueArgs} args - Arguments to find a TeamChat
|
|
* @example
|
|
* // Get one TeamChat
|
|
* const teamChat = await prisma.teamChat.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends TeamChatFindUniqueArgs>(args: Prisma.SelectSubset<T, TeamChatFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one TeamChat that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {TeamChatFindUniqueOrThrowArgs} args - Arguments to find a TeamChat
|
|
* @example
|
|
* // Get one TeamChat
|
|
* const teamChat = await prisma.teamChat.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends TeamChatFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TeamChatFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TeamChat 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 {TeamChatFindFirstArgs} args - Arguments to find a TeamChat
|
|
* @example
|
|
* // Get one TeamChat
|
|
* const teamChat = await prisma.teamChat.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends TeamChatFindFirstArgs>(args?: Prisma.SelectSubset<T, TeamChatFindFirstArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TeamChat 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 {TeamChatFindFirstOrThrowArgs} args - Arguments to find a TeamChat
|
|
* @example
|
|
* // Get one TeamChat
|
|
* const teamChat = await prisma.teamChat.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends TeamChatFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TeamChatFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more TeamChats 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 {TeamChatFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all TeamChats
|
|
* const teamChats = await prisma.teamChat.findMany()
|
|
*
|
|
* // Get first 10 TeamChats
|
|
* const teamChats = await prisma.teamChat.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const teamChatWithIdOnly = await prisma.teamChat.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends TeamChatFindManyArgs>(args?: Prisma.SelectSubset<T, TeamChatFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a TeamChat.
|
|
* @param {TeamChatCreateArgs} args - Arguments to create a TeamChat.
|
|
* @example
|
|
* // Create one TeamChat
|
|
* const TeamChat = await prisma.teamChat.create({
|
|
* data: {
|
|
* // ... data to create a TeamChat
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends TeamChatCreateArgs>(args: Prisma.SelectSubset<T, TeamChatCreateArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many TeamChats.
|
|
* @param {TeamChatCreateManyArgs} args - Arguments to create many TeamChats.
|
|
* @example
|
|
* // Create many TeamChats
|
|
* const teamChat = await prisma.teamChat.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends TeamChatCreateManyArgs>(args?: Prisma.SelectSubset<T, TeamChatCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many TeamChats and returns the data saved in the database.
|
|
* @param {TeamChatCreateManyAndReturnArgs} args - Arguments to create many TeamChats.
|
|
* @example
|
|
* // Create many TeamChats
|
|
* const teamChat = await prisma.teamChat.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many TeamChats and only return the `id`
|
|
* const teamChatWithIdOnly = await prisma.teamChat.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 TeamChatCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TeamChatCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a TeamChat.
|
|
* @param {TeamChatDeleteArgs} args - Arguments to delete one TeamChat.
|
|
* @example
|
|
* // Delete one TeamChat
|
|
* const TeamChat = await prisma.teamChat.delete({
|
|
* where: {
|
|
* // ... filter to delete one TeamChat
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends TeamChatDeleteArgs>(args: Prisma.SelectSubset<T, TeamChatDeleteArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one TeamChat.
|
|
* @param {TeamChatUpdateArgs} args - Arguments to update one TeamChat.
|
|
* @example
|
|
* // Update one TeamChat
|
|
* const teamChat = await prisma.teamChat.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends TeamChatUpdateArgs>(args: Prisma.SelectSubset<T, TeamChatUpdateArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more TeamChats.
|
|
* @param {TeamChatDeleteManyArgs} args - Arguments to filter TeamChats to delete.
|
|
* @example
|
|
* // Delete a few TeamChats
|
|
* const { count } = await prisma.teamChat.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends TeamChatDeleteManyArgs>(args?: Prisma.SelectSubset<T, TeamChatDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TeamChats.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many TeamChats
|
|
* const teamChat = await prisma.teamChat.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends TeamChatUpdateManyArgs>(args: Prisma.SelectSubset<T, TeamChatUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TeamChats and returns the data updated in the database.
|
|
* @param {TeamChatUpdateManyAndReturnArgs} args - Arguments to update many TeamChats.
|
|
* @example
|
|
* // Update many TeamChats
|
|
* const teamChat = await prisma.teamChat.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more TeamChats and only return the `id`
|
|
* const teamChatWithIdOnly = await prisma.teamChat.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 TeamChatUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TeamChatUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one TeamChat.
|
|
* @param {TeamChatUpsertArgs} args - Arguments to update or create a TeamChat.
|
|
* @example
|
|
* // Update or create a TeamChat
|
|
* const teamChat = await prisma.teamChat.upsert({
|
|
* create: {
|
|
* // ... data to create a TeamChat
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the TeamChat we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends TeamChatUpsertArgs>(args: Prisma.SelectSubset<T, TeamChatUpsertArgs<ExtArgs>>): Prisma.Prisma__TeamChatClient<runtime.Types.Result.GetResult<Prisma.$TeamChatPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of TeamChats.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatCountArgs} args - Arguments to filter TeamChats to count.
|
|
* @example
|
|
* // Count the number of TeamChats
|
|
* const count = await prisma.teamChat.count({
|
|
* where: {
|
|
* // ... the filter for the TeamChats we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends TeamChatCountArgs>(
|
|
args?: Prisma.Subset<T, TeamChatCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], TeamChatCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a TeamChat.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatAggregateArgs} 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 TeamChatAggregateArgs>(args: Prisma.Subset<T, TeamChatAggregateArgs>): Prisma.PrismaPromise<GetTeamChatAggregateType<T>>
|
|
|
|
/**
|
|
* Group by TeamChat.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TeamChatGroupByArgs} 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 TeamChatGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: TeamChatGroupByArgs['orderBy'] }
|
|
: { orderBy?: TeamChatGroupByArgs['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, TeamChatGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTeamChatGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the TeamChat model
|
|
*/
|
|
readonly fields: TeamChatFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for TeamChat.
|
|
* 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__TeamChatClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
members<T extends Prisma.TeamChat$membersArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChat$membersArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatMemberPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
groupSources<T extends Prisma.TeamChat$groupSourcesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChat$groupSourcesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatGroupSourcePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
messages<T extends Prisma.TeamChat$messagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChat$messagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
threads<T extends Prisma.TeamChat$threadsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChat$threadsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatThreadPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
pinnedMessages<T extends Prisma.TeamChat$pinnedMessagesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChat$pinnedMessagesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatPinnedMessagePayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
events<T extends Prisma.TeamChat$eventsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TeamChat$eventsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TeamChatEventPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the TeamChat model
|
|
*/
|
|
export interface TeamChatFieldRefs {
|
|
readonly id: Prisma.FieldRef<"TeamChat", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"TeamChat", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"TeamChat", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"TeamChat", 'String'>
|
|
readonly createdByUserId: Prisma.FieldRef<"TeamChat", 'String'>
|
|
readonly kind: Prisma.FieldRef<"TeamChat", 'TeamChatKind'>
|
|
readonly name: Prisma.FieldRef<"TeamChat", 'String'>
|
|
readonly description: Prisma.FieldRef<"TeamChat", 'String'>
|
|
readonly projektId: Prisma.FieldRef<"TeamChat", 'String'>
|
|
readonly isPrivate: Prisma.FieldRef<"TeamChat", 'Boolean'>
|
|
readonly archivedAt: Prisma.FieldRef<"TeamChat", 'DateTime'>
|
|
readonly archivedReason: Prisma.FieldRef<"TeamChat", 'TeamChatArchivedReason'>
|
|
readonly lastMessageAt: Prisma.FieldRef<"TeamChat", 'DateTime'>
|
|
readonly notificationDefault: Prisma.FieldRef<"TeamChat", 'TeamChatNotificationPreference'>
|
|
readonly eventStreamId: Prisma.FieldRef<"TeamChat", 'String'>
|
|
readonly dmPairKey: Prisma.FieldRef<"TeamChat", 'String'>
|
|
readonly isDemoData: Prisma.FieldRef<"TeamChat", 'Boolean'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* TeamChat findUnique
|
|
*/
|
|
export type TeamChatFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChat to fetch.
|
|
*/
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChat findUniqueOrThrow
|
|
*/
|
|
export type TeamChatFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChat to fetch.
|
|
*/
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChat findFirst
|
|
*/
|
|
export type TeamChatFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChat to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChats to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatOrderByWithRelationInput | Prisma.TeamChatOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TeamChats.
|
|
*/
|
|
cursor?: Prisma.TeamChatWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChats 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` TeamChats.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChats.
|
|
*/
|
|
distinct?: Prisma.TeamChatScalarFieldEnum | Prisma.TeamChatScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChat findFirstOrThrow
|
|
*/
|
|
export type TeamChatFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChat to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChats to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatOrderByWithRelationInput | Prisma.TeamChatOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TeamChats.
|
|
*/
|
|
cursor?: Prisma.TeamChatWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChats 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` TeamChats.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChats.
|
|
*/
|
|
distinct?: Prisma.TeamChatScalarFieldEnum | Prisma.TeamChatScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChat findMany
|
|
*/
|
|
export type TeamChatFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TeamChats to fetch.
|
|
*/
|
|
where?: Prisma.TeamChatWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TeamChats to fetch.
|
|
*/
|
|
orderBy?: Prisma.TeamChatOrderByWithRelationInput | Prisma.TeamChatOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing TeamChats.
|
|
*/
|
|
cursor?: Prisma.TeamChatWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TeamChats 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` TeamChats.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TeamChats.
|
|
*/
|
|
distinct?: Prisma.TeamChatScalarFieldEnum | Prisma.TeamChatScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChat create
|
|
*/
|
|
export type TeamChatCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a TeamChat.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatCreateInput, Prisma.TeamChatUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChat createMany
|
|
*/
|
|
export type TeamChatCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many TeamChats.
|
|
*/
|
|
data: Prisma.TeamChatCreateManyInput | Prisma.TeamChatCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TeamChat createManyAndReturn
|
|
*/
|
|
export type TeamChatCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many TeamChats.
|
|
*/
|
|
data: Prisma.TeamChatCreateManyInput | Prisma.TeamChatCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TeamChat update
|
|
*/
|
|
export type TeamChatUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a TeamChat.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatUpdateInput, Prisma.TeamChatUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which TeamChat to update.
|
|
*/
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChat updateMany
|
|
*/
|
|
export type TeamChatUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update TeamChats.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatUpdateManyMutationInput, Prisma.TeamChatUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TeamChats to update
|
|
*/
|
|
where?: Prisma.TeamChatWhereInput
|
|
/**
|
|
* Limit how many TeamChats to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChat updateManyAndReturn
|
|
*/
|
|
export type TeamChatUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update TeamChats.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TeamChatUpdateManyMutationInput, Prisma.TeamChatUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TeamChats to update
|
|
*/
|
|
where?: Prisma.TeamChatWhereInput
|
|
/**
|
|
* Limit how many TeamChats to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChat upsert
|
|
*/
|
|
export type TeamChatUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the TeamChat to update in case it exists.
|
|
*/
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
/**
|
|
* In case the TeamChat found by the `where` argument doesn't exist, create a new TeamChat with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.TeamChatCreateInput, Prisma.TeamChatUncheckedCreateInput>
|
|
/**
|
|
* In case the TeamChat was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.TeamChatUpdateInput, Prisma.TeamChatUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* TeamChat delete
|
|
*/
|
|
export type TeamChatDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which TeamChat to delete.
|
|
*/
|
|
where: Prisma.TeamChatWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TeamChat deleteMany
|
|
*/
|
|
export type TeamChatDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TeamChats to delete
|
|
*/
|
|
where?: Prisma.TeamChatWhereInput
|
|
/**
|
|
* Limit how many TeamChats to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TeamChat.members
|
|
*/
|
|
export type TeamChat$membersArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatMember
|
|
*/
|
|
select?: Prisma.TeamChatMemberSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatMember
|
|
*/
|
|
omit?: Prisma.TeamChatMemberOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatMemberInclude<ExtArgs> | null
|
|
where?: Prisma.TeamChatMemberWhereInput
|
|
orderBy?: Prisma.TeamChatMemberOrderByWithRelationInput | Prisma.TeamChatMemberOrderByWithRelationInput[]
|
|
cursor?: Prisma.TeamChatMemberWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TeamChatMemberScalarFieldEnum | Prisma.TeamChatMemberScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChat.groupSources
|
|
*/
|
|
export type TeamChat$groupSourcesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatGroupSource
|
|
*/
|
|
select?: Prisma.TeamChatGroupSourceSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatGroupSource
|
|
*/
|
|
omit?: Prisma.TeamChatGroupSourceOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatGroupSourceInclude<ExtArgs> | null
|
|
where?: Prisma.TeamChatGroupSourceWhereInput
|
|
orderBy?: Prisma.TeamChatGroupSourceOrderByWithRelationInput | Prisma.TeamChatGroupSourceOrderByWithRelationInput[]
|
|
cursor?: Prisma.TeamChatGroupSourceWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TeamChatGroupSourceScalarFieldEnum | Prisma.TeamChatGroupSourceScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChat.messages
|
|
*/
|
|
export type TeamChat$messagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatMessage
|
|
*/
|
|
select?: Prisma.TeamChatMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatMessage
|
|
*/
|
|
omit?: Prisma.TeamChatMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatMessageInclude<ExtArgs> | null
|
|
where?: Prisma.TeamChatMessageWhereInput
|
|
orderBy?: Prisma.TeamChatMessageOrderByWithRelationInput | Prisma.TeamChatMessageOrderByWithRelationInput[]
|
|
cursor?: Prisma.TeamChatMessageWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TeamChatMessageScalarFieldEnum | Prisma.TeamChatMessageScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChat.threads
|
|
*/
|
|
export type TeamChat$threadsArgs<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
|
|
where?: Prisma.TeamChatThreadWhereInput
|
|
orderBy?: Prisma.TeamChatThreadOrderByWithRelationInput | Prisma.TeamChatThreadOrderByWithRelationInput[]
|
|
cursor?: Prisma.TeamChatThreadWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TeamChatThreadScalarFieldEnum | Prisma.TeamChatThreadScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChat.pinnedMessages
|
|
*/
|
|
export type TeamChat$pinnedMessagesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChatPinnedMessage
|
|
*/
|
|
select?: Prisma.TeamChatPinnedMessageSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChatPinnedMessage
|
|
*/
|
|
omit?: Prisma.TeamChatPinnedMessageOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatPinnedMessageInclude<ExtArgs> | null
|
|
where?: Prisma.TeamChatPinnedMessageWhereInput
|
|
orderBy?: Prisma.TeamChatPinnedMessageOrderByWithRelationInput | Prisma.TeamChatPinnedMessageOrderByWithRelationInput[]
|
|
cursor?: Prisma.TeamChatPinnedMessageWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TeamChatPinnedMessageScalarFieldEnum | Prisma.TeamChatPinnedMessageScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChat.events
|
|
*/
|
|
export type TeamChat$eventsArgs<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
|
|
where?: Prisma.TeamChatEventWhereInput
|
|
orderBy?: Prisma.TeamChatEventOrderByWithRelationInput | Prisma.TeamChatEventOrderByWithRelationInput[]
|
|
cursor?: Prisma.TeamChatEventWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.TeamChatEventScalarFieldEnum | Prisma.TeamChatEventScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TeamChat without action
|
|
*/
|
|
export type TeamChatDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TeamChat
|
|
*/
|
|
select?: Prisma.TeamChatSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TeamChat
|
|
*/
|
|
omit?: Prisma.TeamChatOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TeamChatInclude<ExtArgs> | null
|
|
}
|