mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 12:54:55 +00:00
3307 lines
118 KiB
TypeScript
3307 lines
118 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 `Notification` model and its related types.
|
||
|
|
*
|
||
|
|
* 🟢 You can import this file directly.
|
||
|
|
*/
|
||
|
|
|
||
|
|
import type * as PJTG from '../pjtg'
|
||
|
|
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 Notification
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
export type NotificationModel = runtime.Types.Result.DefaultSelection<Prisma.$NotificationPayload>
|
||
|
|
|
||
|
|
export type AggregateNotification = {
|
||
|
|
_count: NotificationCountAggregateOutputType | null
|
||
|
|
_min: NotificationMinAggregateOutputType | null
|
||
|
|
_max: NotificationMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationMinAggregateOutputType = {
|
||
|
|
id: string | null
|
||
|
|
type: $Enums.NotificationType | null
|
||
|
|
createdAt: Date | null
|
||
|
|
updatedAt: Date | null
|
||
|
|
teamId: string | null
|
||
|
|
projectId: string | null
|
||
|
|
creatorId: string | null
|
||
|
|
assetId: string | null
|
||
|
|
taskId: string | null
|
||
|
|
userId: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationMaxAggregateOutputType = {
|
||
|
|
id: string | null
|
||
|
|
type: $Enums.NotificationType | null
|
||
|
|
createdAt: Date | null
|
||
|
|
updatedAt: Date | null
|
||
|
|
teamId: string | null
|
||
|
|
projectId: string | null
|
||
|
|
creatorId: string | null
|
||
|
|
assetId: string | null
|
||
|
|
taskId: string | null
|
||
|
|
userId: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCountAggregateOutputType = {
|
||
|
|
id: number
|
||
|
|
type: number
|
||
|
|
createdAt: number
|
||
|
|
updatedAt: number
|
||
|
|
teamId: number
|
||
|
|
projectId: number
|
||
|
|
creatorId: number
|
||
|
|
assetId: number
|
||
|
|
taskId: number
|
||
|
|
userId: number
|
||
|
|
_all: number
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationMinAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
type?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
teamId?: true
|
||
|
|
projectId?: true
|
||
|
|
creatorId?: true
|
||
|
|
assetId?: true
|
||
|
|
taskId?: true
|
||
|
|
userId?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationMaxAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
type?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
teamId?: true
|
||
|
|
projectId?: true
|
||
|
|
creatorId?: true
|
||
|
|
assetId?: true
|
||
|
|
taskId?: true
|
||
|
|
userId?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCountAggregateInputType = {
|
||
|
|
id?: true
|
||
|
|
type?: true
|
||
|
|
createdAt?: true
|
||
|
|
updatedAt?: true
|
||
|
|
teamId?: true
|
||
|
|
projectId?: true
|
||
|
|
creatorId?: true
|
||
|
|
assetId?: true
|
||
|
|
taskId?: true
|
||
|
|
userId?: true
|
||
|
|
_all?: true
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationAggregateArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Filter which Notification to aggregate.
|
||
|
|
*/
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of Notifications to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.NotificationOrderByWithRelationInput
|
||
|
|
| Prisma.NotificationOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the start position
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.NotificationWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` Notifications 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` Notifications.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Count returned Notifications
|
||
|
|
**/
|
||
|
|
_count?: true | NotificationCountAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to find the minimum value
|
||
|
|
**/
|
||
|
|
_min?: NotificationMinAggregateInputType
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
||
|
|
*
|
||
|
|
* Select which fields to find the maximum value
|
||
|
|
**/
|
||
|
|
_max?: NotificationMaxAggregateInputType
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GetNotificationAggregateType<T extends NotificationAggregateArgs> = {
|
||
|
|
[P in keyof T & keyof AggregateNotification]: P extends '_count' | 'count'
|
||
|
|
? T[P] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateNotification[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], AggregateNotification[P]>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationGroupByArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.NotificationOrderByWithAggregationInput
|
||
|
|
| Prisma.NotificationOrderByWithAggregationInput[]
|
||
|
|
by: Prisma.NotificationScalarFieldEnum[] | Prisma.NotificationScalarFieldEnum
|
||
|
|
having?: Prisma.NotificationScalarWhereWithAggregatesInput
|
||
|
|
take?: number
|
||
|
|
skip?: number
|
||
|
|
_count?: NotificationCountAggregateInputType | true
|
||
|
|
_min?: NotificationMinAggregateInputType
|
||
|
|
_max?: NotificationMaxAggregateInputType
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationGroupByOutputType = {
|
||
|
|
id: string
|
||
|
|
type: $Enums.NotificationType | null
|
||
|
|
createdAt: Date
|
||
|
|
updatedAt: Date
|
||
|
|
teamId: string
|
||
|
|
projectId: string | null
|
||
|
|
creatorId: string | null
|
||
|
|
assetId: string | null
|
||
|
|
taskId: string | null
|
||
|
|
userId: string | null
|
||
|
|
_count: NotificationCountAggregateOutputType | null
|
||
|
|
_min: NotificationMinAggregateOutputType | null
|
||
|
|
_max: NotificationMaxAggregateOutputType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type GetNotificationGroupByPayload<T extends NotificationGroupByArgs> = Prisma.PrismaPromise<
|
||
|
|
Array<
|
||
|
|
Prisma.PickEnumerable<NotificationGroupByOutputType, T['by']> & {
|
||
|
|
[P in keyof T & keyof NotificationGroupByOutputType]: P extends '_count'
|
||
|
|
? T[P] extends boolean
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T[P], NotificationGroupByOutputType[P]>
|
||
|
|
: Prisma.GetScalarType<T[P], NotificationGroupByOutputType[P]>
|
||
|
|
}
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
export type NotificationWhereInput = {
|
||
|
|
AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[]
|
||
|
|
OR?: Prisma.NotificationWhereInput[]
|
||
|
|
NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[]
|
||
|
|
id?: Prisma.StringFilter<'Notification'> | string
|
||
|
|
type?: Prisma.EnumNotificationTypeNullableFilter<'Notification'> | $Enums.NotificationType | null
|
||
|
|
createdAt?: Prisma.DateTimeFilter<'Notification'> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<'Notification'> | Date | string
|
||
|
|
teamId?: Prisma.StringFilter<'Notification'> | string
|
||
|
|
projectId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
creatorId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
assetId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
taskId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
userId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
|
||
|
|
project?: Prisma.XOR<Prisma.ProjectNullableScalarRelationFilter, Prisma.ProjectWhereInput> | null
|
||
|
|
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||
|
|
asset?: Prisma.XOR<Prisma.AssetNullableScalarRelationFilter, Prisma.AssetWhereInput> | null
|
||
|
|
task?: Prisma.XOR<Prisma.TaskNullableScalarRelationFilter, Prisma.TaskWhereInput> | null
|
||
|
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||
|
|
readByMembers?: Prisma.XOR<
|
||
|
|
Prisma.TeamMemberNullableScalarRelationFilter,
|
||
|
|
Prisma.TeamMemberWhereInput
|
||
|
|
> | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationOrderByWithRelationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
taskId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
team?: Prisma.TeamOrderByWithRelationInput
|
||
|
|
project?: Prisma.ProjectOrderByWithRelationInput
|
||
|
|
creator?: Prisma.UserOrderByWithRelationInput
|
||
|
|
asset?: Prisma.AssetOrderByWithRelationInput
|
||
|
|
task?: Prisma.TaskOrderByWithRelationInput
|
||
|
|
user?: Prisma.UserOrderByWithRelationInput
|
||
|
|
readByMembers?: Prisma.TeamMemberOrderByWithRelationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationWhereUniqueInput = Prisma.AtLeast<
|
||
|
|
{
|
||
|
|
id?: string
|
||
|
|
AND?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[]
|
||
|
|
OR?: Prisma.NotificationWhereInput[]
|
||
|
|
NOT?: Prisma.NotificationWhereInput | Prisma.NotificationWhereInput[]
|
||
|
|
type?:
|
||
|
|
| Prisma.EnumNotificationTypeNullableFilter<'Notification'>
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFilter<'Notification'> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<'Notification'> | Date | string
|
||
|
|
teamId?: Prisma.StringFilter<'Notification'> | string
|
||
|
|
projectId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
creatorId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
assetId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
taskId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
userId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
team?: Prisma.XOR<Prisma.TeamScalarRelationFilter, Prisma.TeamWhereInput>
|
||
|
|
project?: Prisma.XOR<
|
||
|
|
Prisma.ProjectNullableScalarRelationFilter,
|
||
|
|
Prisma.ProjectWhereInput
|
||
|
|
> | null
|
||
|
|
creator?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||
|
|
asset?: Prisma.XOR<Prisma.AssetNullableScalarRelationFilter, Prisma.AssetWhereInput> | null
|
||
|
|
task?: Prisma.XOR<Prisma.TaskNullableScalarRelationFilter, Prisma.TaskWhereInput> | null
|
||
|
|
user?: Prisma.XOR<Prisma.UserNullableScalarRelationFilter, Prisma.UserWhereInput> | null
|
||
|
|
readByMembers?: Prisma.XOR<
|
||
|
|
Prisma.TeamMemberNullableScalarRelationFilter,
|
||
|
|
Prisma.TeamMemberWhereInput
|
||
|
|
> | null
|
||
|
|
},
|
||
|
|
'id'
|
||
|
|
>
|
||
|
|
|
||
|
|
export type NotificationOrderByWithAggregationInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
creatorId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
taskId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
userId?: Prisma.SortOrderInput | Prisma.SortOrder
|
||
|
|
_count?: Prisma.NotificationCountOrderByAggregateInput
|
||
|
|
_max?: Prisma.NotificationMaxOrderByAggregateInput
|
||
|
|
_min?: Prisma.NotificationMinOrderByAggregateInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationScalarWhereWithAggregatesInput = {
|
||
|
|
AND?:
|
||
|
|
| Prisma.NotificationScalarWhereWithAggregatesInput
|
||
|
|
| Prisma.NotificationScalarWhereWithAggregatesInput[]
|
||
|
|
OR?: Prisma.NotificationScalarWhereWithAggregatesInput[]
|
||
|
|
NOT?:
|
||
|
|
| Prisma.NotificationScalarWhereWithAggregatesInput
|
||
|
|
| Prisma.NotificationScalarWhereWithAggregatesInput[]
|
||
|
|
id?: Prisma.StringWithAggregatesFilter<'Notification'> | string
|
||
|
|
type?:
|
||
|
|
| Prisma.EnumNotificationTypeNullableWithAggregatesFilter<'Notification'>
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<'Notification'> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Notification'> | Date | string
|
||
|
|
teamId?: Prisma.StringWithAggregatesFilter<'Notification'> | string
|
||
|
|
projectId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null
|
||
|
|
creatorId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null
|
||
|
|
assetId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null
|
||
|
|
taskId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null
|
||
|
|
userId?: Prisma.StringNullableWithAggregatesFilter<'Notification'> | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
team: Prisma.TeamCreateNestedOneWithoutNotificationsInput
|
||
|
|
project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput
|
||
|
|
creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput
|
||
|
|
asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput
|
||
|
|
task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput
|
||
|
|
user?: Prisma.UserCreateNestedOneWithoutNotificationsInput
|
||
|
|
readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput
|
||
|
|
project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput
|
||
|
|
creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput
|
||
|
|
asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput
|
||
|
|
task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput
|
||
|
|
user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput
|
||
|
|
readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyMutationInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationListRelationFilter = {
|
||
|
|
every?: Prisma.NotificationWhereInput
|
||
|
|
some?: Prisma.NotificationWhereInput
|
||
|
|
none?: Prisma.NotificationWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationOrderByRelationAggregateInput = {
|
||
|
|
_count?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationNullableScalarRelationFilter = {
|
||
|
|
is?: Prisma.NotificationWhereInput | null
|
||
|
|
isNot?: Prisma.NotificationWhereInput | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCountOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrder
|
||
|
|
creatorId?: Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrder
|
||
|
|
taskId?: Prisma.SortOrder
|
||
|
|
userId?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationMaxOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrder
|
||
|
|
creatorId?: Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrder
|
||
|
|
taskId?: Prisma.SortOrder
|
||
|
|
userId?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationMinOrderByAggregateInput = {
|
||
|
|
id?: Prisma.SortOrder
|
||
|
|
type?: Prisma.SortOrder
|
||
|
|
createdAt?: Prisma.SortOrder
|
||
|
|
updatedAt?: Prisma.SortOrder
|
||
|
|
teamId?: Prisma.SortOrder
|
||
|
|
projectId?: Prisma.SortOrder
|
||
|
|
creatorId?: Prisma.SortOrder
|
||
|
|
assetId?: Prisma.SortOrder
|
||
|
|
taskId?: Prisma.SortOrder
|
||
|
|
userId?: Prisma.SortOrder
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateNestedManyWithoutCreatorInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutCreatorInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutCreatorInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutCreatorInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutCreatorInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutCreatorInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutCreatorInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyCreatorInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateNestedManyWithoutUserInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutUserInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutUserInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutUserInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutUserInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutUserInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutUserInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyUserInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateNestedManyWithoutCreatorInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutCreatorInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutCreatorInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutCreatorInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutCreatorInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutCreatorInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutCreatorInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyCreatorInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateNestedManyWithoutUserInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutUserInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutUserInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutUserInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutUserInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutUserInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutUserInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyUserInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithoutCreatorNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutCreatorInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutCreatorInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutCreatorInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutCreatorInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutCreatorInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutCreatorInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutCreatorInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutCreatorInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyCreatorInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutCreatorInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutCreatorInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutCreatorInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutCreatorInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithoutUserNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutUserInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutUserInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutUserInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutUserInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutUserInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutUserInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyUserInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutUserInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutUserInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutCreatorNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutCreatorInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutCreatorInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutCreatorInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutCreatorInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutCreatorInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutCreatorInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutCreatorInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutCreatorInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyCreatorInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutCreatorInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutCreatorInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutCreatorInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutCreatorInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutUserNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutUserInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutUserInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutUserInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutUserInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutUserInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutUserInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutUserInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyUserInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutUserInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutUserInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutUserInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateNestedManyWithoutTeamInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTeamInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTeamInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutTeamInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutTeamInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTeamInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTeamInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyTeamInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateNestedManyWithoutTeamInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTeamInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTeamInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutTeamInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutTeamInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTeamInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTeamInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyTeamInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithoutTeamNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTeamInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTeamInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutTeamInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutTeamInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTeamInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTeamInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutTeamInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutTeamInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyTeamInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutTeamInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutTeamInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutTeamInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutTeamInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutTeamNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTeamInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTeamInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutTeamInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutTeamInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTeamInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTeamInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutTeamInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutTeamInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyTeamInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutTeamInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutTeamInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutTeamInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutTeamInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateNestedOneWithoutReadByMembersInput = {
|
||
|
|
create?: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutReadByMembersInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutReadByMembersInput
|
||
|
|
>
|
||
|
|
connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutReadByMembersInput
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateOneWithoutReadByMembersNestedInput = {
|
||
|
|
create?: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutReadByMembersInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutReadByMembersInput
|
||
|
|
>
|
||
|
|
connectOrCreate?: Prisma.NotificationCreateOrConnectWithoutReadByMembersInput
|
||
|
|
upsert?: Prisma.NotificationUpsertWithoutReadByMembersInput
|
||
|
|
disconnect?: Prisma.NotificationWhereInput | boolean
|
||
|
|
delete?: Prisma.NotificationWhereInput | boolean
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput
|
||
|
|
update?: Prisma.XOR<
|
||
|
|
Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateToOneWithWhereWithoutReadByMembersInput,
|
||
|
|
Prisma.NotificationUpdateWithoutReadByMembersInput
|
||
|
|
>,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutReadByMembersInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateNestedManyWithoutProjectInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutProjectInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutProjectInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutProjectInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutProjectInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutProjectInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutProjectInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyProjectInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateNestedManyWithoutProjectInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutProjectInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutProjectInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutProjectInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutProjectInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutProjectInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutProjectInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyProjectInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithoutProjectNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutProjectInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutProjectInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutProjectInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutProjectInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutProjectInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutProjectInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutProjectInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutProjectInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyProjectInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutProjectInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutProjectInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutProjectInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutProjectInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutProjectNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutProjectInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutProjectInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutProjectInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutProjectInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutProjectInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutProjectInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutProjectInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutProjectInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyProjectInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutProjectInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutProjectInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutProjectInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutProjectInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateNestedManyWithoutAssetInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutAssetInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutAssetInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutAssetInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutAssetInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutAssetInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutAssetInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyAssetInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateNestedManyWithoutAssetInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutAssetInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutAssetInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutAssetInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutAssetInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutAssetInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutAssetInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyAssetInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithoutAssetNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutAssetInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutAssetInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutAssetInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutAssetInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutAssetInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutAssetInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutAssetInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutAssetInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyAssetInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutAssetInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutAssetInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutAssetInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutAssetInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutAssetNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutAssetInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutAssetInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutAssetInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutAssetInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutAssetInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutAssetInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutAssetInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutAssetInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyAssetInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutAssetInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutAssetInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutAssetInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutAssetInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NullableEnumNotificationTypeFieldUpdateOperationsInput = {
|
||
|
|
set?: $Enums.NotificationType | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateNestedManyWithoutTaskInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTaskInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTaskInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutTaskInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutTaskInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTaskInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTaskInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyTaskInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateNestedManyWithoutTaskInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTaskInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTaskInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutTaskInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutTaskInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTaskInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTaskInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyTaskInputEnvelope
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithoutTaskNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTaskInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTaskInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutTaskInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutTaskInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTaskInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTaskInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutTaskInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutTaskInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyTaskInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutTaskInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutTaskInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutTaskInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutTaskInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutTaskNestedInput = {
|
||
|
|
create?:
|
||
|
|
| Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTaskInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTaskInput
|
||
|
|
>
|
||
|
|
| Prisma.NotificationCreateWithoutTaskInput[]
|
||
|
|
| Prisma.NotificationUncheckedCreateWithoutTaskInput[]
|
||
|
|
connectOrCreate?:
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTaskInput
|
||
|
|
| Prisma.NotificationCreateOrConnectWithoutTaskInput[]
|
||
|
|
upsert?:
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutTaskInput
|
||
|
|
| Prisma.NotificationUpsertWithWhereUniqueWithoutTaskInput[]
|
||
|
|
createMany?: Prisma.NotificationCreateManyTaskInputEnvelope
|
||
|
|
set?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
disconnect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
delete?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
connect?: Prisma.NotificationWhereUniqueInput | Prisma.NotificationWhereUniqueInput[]
|
||
|
|
update?:
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutTaskInput
|
||
|
|
| Prisma.NotificationUpdateWithWhereUniqueWithoutTaskInput[]
|
||
|
|
updateMany?:
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutTaskInput
|
||
|
|
| Prisma.NotificationUpdateManyWithWhereWithoutTaskInput[]
|
||
|
|
deleteMany?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateWithoutCreatorInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
team: Prisma.TeamCreateNestedOneWithoutNotificationsInput
|
||
|
|
project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput
|
||
|
|
asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput
|
||
|
|
task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput
|
||
|
|
user?: Prisma.UserCreateNestedOneWithoutNotificationsInput
|
||
|
|
readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateWithoutCreatorInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateOrConnectWithoutCreatorInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutCreatorInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutCreatorInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyCreatorInputEnvelope = {
|
||
|
|
data: Prisma.NotificationCreateManyCreatorInput | Prisma.NotificationCreateManyCreatorInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateWithoutUserInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
team: Prisma.TeamCreateNestedOneWithoutNotificationsInput
|
||
|
|
project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput
|
||
|
|
creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput
|
||
|
|
asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput
|
||
|
|
task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput
|
||
|
|
readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateWithoutUserInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateOrConnectWithoutUserInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutUserInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutUserInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyUserInputEnvelope = {
|
||
|
|
data: Prisma.NotificationCreateManyUserInput | Prisma.NotificationCreateManyUserInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpsertWithWhereUniqueWithoutCreatorInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
update: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutCreatorInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutCreatorInput
|
||
|
|
>
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutCreatorInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutCreatorInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithWhereUniqueWithoutCreatorInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutCreatorInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutCreatorInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithWhereWithoutCreatorInput = {
|
||
|
|
where: Prisma.NotificationScalarWhereInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateManyMutationInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateManyWithoutCreatorInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationScalarWhereInput = {
|
||
|
|
AND?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
OR?: Prisma.NotificationScalarWhereInput[]
|
||
|
|
NOT?: Prisma.NotificationScalarWhereInput | Prisma.NotificationScalarWhereInput[]
|
||
|
|
id?: Prisma.StringFilter<'Notification'> | string
|
||
|
|
type?: Prisma.EnumNotificationTypeNullableFilter<'Notification'> | $Enums.NotificationType | null
|
||
|
|
createdAt?: Prisma.DateTimeFilter<'Notification'> | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFilter<'Notification'> | Date | string
|
||
|
|
teamId?: Prisma.StringFilter<'Notification'> | string
|
||
|
|
projectId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
creatorId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
assetId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
taskId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
userId?: Prisma.StringNullableFilter<'Notification'> | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpsertWithWhereUniqueWithoutUserInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
update: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutUserInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutUserInput
|
||
|
|
>
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutUserInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutUserInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithWhereUniqueWithoutUserInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutUserInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutUserInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithWhereWithoutUserInput = {
|
||
|
|
where: Prisma.NotificationScalarWhereInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateManyMutationInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateManyWithoutUserInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateWithoutTeamInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput
|
||
|
|
creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput
|
||
|
|
asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput
|
||
|
|
task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput
|
||
|
|
user?: Prisma.UserCreateNestedOneWithoutNotificationsInput
|
||
|
|
readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateWithoutTeamInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateOrConnectWithoutTeamInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTeamInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTeamInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyTeamInputEnvelope = {
|
||
|
|
data: Prisma.NotificationCreateManyTeamInput | Prisma.NotificationCreateManyTeamInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpsertWithWhereUniqueWithoutTeamInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
update: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutTeamInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutTeamInput
|
||
|
|
>
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTeamInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTeamInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithWhereUniqueWithoutTeamInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutTeamInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutTeamInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithWhereWithoutTeamInput = {
|
||
|
|
where: Prisma.NotificationScalarWhereInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateManyMutationInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateManyWithoutTeamInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateWithoutReadByMembersInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
team: Prisma.TeamCreateNestedOneWithoutNotificationsInput
|
||
|
|
project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput
|
||
|
|
creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput
|
||
|
|
asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput
|
||
|
|
task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput
|
||
|
|
user?: Prisma.UserCreateNestedOneWithoutNotificationsInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateWithoutReadByMembersInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateOrConnectWithoutReadByMembersInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutReadByMembersInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutReadByMembersInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpsertWithoutReadByMembersInput = {
|
||
|
|
update: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutReadByMembersInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutReadByMembersInput
|
||
|
|
>
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutReadByMembersInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutReadByMembersInput
|
||
|
|
>
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateToOneWithWhereWithoutReadByMembersInput = {
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutReadByMembersInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutReadByMembersInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithoutReadByMembersInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput
|
||
|
|
project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput
|
||
|
|
creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput
|
||
|
|
asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput
|
||
|
|
task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput
|
||
|
|
user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateWithoutReadByMembersInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateWithoutProjectInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
team: Prisma.TeamCreateNestedOneWithoutNotificationsInput
|
||
|
|
creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput
|
||
|
|
asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput
|
||
|
|
task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput
|
||
|
|
user?: Prisma.UserCreateNestedOneWithoutNotificationsInput
|
||
|
|
readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateWithoutProjectInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateOrConnectWithoutProjectInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutProjectInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutProjectInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyProjectInputEnvelope = {
|
||
|
|
data: Prisma.NotificationCreateManyProjectInput | Prisma.NotificationCreateManyProjectInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpsertWithWhereUniqueWithoutProjectInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
update: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutProjectInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutProjectInput
|
||
|
|
>
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutProjectInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutProjectInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithWhereUniqueWithoutProjectInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutProjectInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutProjectInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithWhereWithoutProjectInput = {
|
||
|
|
where: Prisma.NotificationScalarWhereInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateManyMutationInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateManyWithoutProjectInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateWithoutAssetInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
team: Prisma.TeamCreateNestedOneWithoutNotificationsInput
|
||
|
|
project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput
|
||
|
|
creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput
|
||
|
|
task?: Prisma.TaskCreateNestedOneWithoutNotificationsInput
|
||
|
|
user?: Prisma.UserCreateNestedOneWithoutNotificationsInput
|
||
|
|
readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateWithoutAssetInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateOrConnectWithoutAssetInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutAssetInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutAssetInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyAssetInputEnvelope = {
|
||
|
|
data: Prisma.NotificationCreateManyAssetInput | Prisma.NotificationCreateManyAssetInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpsertWithWhereUniqueWithoutAssetInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
update: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutAssetInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutAssetInput
|
||
|
|
>
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutAssetInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutAssetInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithWhereUniqueWithoutAssetInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutAssetInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutAssetInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithWhereWithoutAssetInput = {
|
||
|
|
where: Prisma.NotificationScalarWhereInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateManyMutationInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateManyWithoutAssetInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateWithoutTaskInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
team: Prisma.TeamCreateNestedOneWithoutNotificationsInput
|
||
|
|
project?: Prisma.ProjectCreateNestedOneWithoutNotificationsInput
|
||
|
|
creator?: Prisma.UserCreateNestedOneWithoutCreatedNotificationsInput
|
||
|
|
asset?: Prisma.AssetCreateNestedOneWithoutNotificationsInput
|
||
|
|
user?: Prisma.UserCreateNestedOneWithoutNotificationsInput
|
||
|
|
readByMembers?: Prisma.TeamMemberCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedCreateWithoutTaskInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedCreateNestedOneWithoutLastReadNotificationInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateOrConnectWithoutTaskInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTaskInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTaskInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyTaskInputEnvelope = {
|
||
|
|
data: Prisma.NotificationCreateManyTaskInput | Prisma.NotificationCreateManyTaskInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpsertWithWhereUniqueWithoutTaskInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
update: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutTaskInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutTaskInput
|
||
|
|
>
|
||
|
|
create: Prisma.XOR<
|
||
|
|
Prisma.NotificationCreateWithoutTaskInput,
|
||
|
|
Prisma.NotificationUncheckedCreateWithoutTaskInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithWhereUniqueWithoutTaskInput = {
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateWithoutTaskInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateWithoutTaskInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateManyWithWhereWithoutTaskInput = {
|
||
|
|
where: Prisma.NotificationScalarWhereInput
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateManyMutationInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateManyWithoutTaskInput
|
||
|
|
>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyCreatorInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyUserInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithoutCreatorInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput
|
||
|
|
project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput
|
||
|
|
asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput
|
||
|
|
task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput
|
||
|
|
user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput
|
||
|
|
readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateWithoutCreatorInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutCreatorInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithoutUserInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput
|
||
|
|
project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput
|
||
|
|
creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput
|
||
|
|
asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput
|
||
|
|
task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput
|
||
|
|
readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateWithoutUserInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutUserInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyTeamInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithoutTeamInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput
|
||
|
|
creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput
|
||
|
|
asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput
|
||
|
|
task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput
|
||
|
|
user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput
|
||
|
|
readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateWithoutTeamInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutTeamInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyProjectInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithoutProjectInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput
|
||
|
|
creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput
|
||
|
|
asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput
|
||
|
|
task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput
|
||
|
|
user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput
|
||
|
|
readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateWithoutProjectInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutProjectInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyAssetInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
taskId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithoutAssetInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput
|
||
|
|
project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput
|
||
|
|
creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput
|
||
|
|
task?: Prisma.TaskUpdateOneWithoutNotificationsNestedInput
|
||
|
|
user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput
|
||
|
|
readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateWithoutAssetInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutAssetInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
taskId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationCreateManyTaskInput = {
|
||
|
|
id?: string
|
||
|
|
type?: $Enums.NotificationType | null
|
||
|
|
createdAt?: Date | string
|
||
|
|
updatedAt?: Date | string
|
||
|
|
teamId: string
|
||
|
|
projectId?: string | null
|
||
|
|
creatorId?: string | null
|
||
|
|
assetId?: string | null
|
||
|
|
userId?: string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUpdateWithoutTaskInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
team?: Prisma.TeamUpdateOneRequiredWithoutNotificationsNestedInput
|
||
|
|
project?: Prisma.ProjectUpdateOneWithoutNotificationsNestedInput
|
||
|
|
creator?: Prisma.UserUpdateOneWithoutCreatedNotificationsNestedInput
|
||
|
|
asset?: Prisma.AssetUpdateOneWithoutNotificationsNestedInput
|
||
|
|
user?: Prisma.UserUpdateOneWithoutNotificationsNestedInput
|
||
|
|
readByMembers?: Prisma.TeamMemberUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateWithoutTaskInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
readByMembers?: Prisma.TeamMemberUncheckedUpdateOneWithoutLastReadNotificationNestedInput
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationUncheckedUpdateManyWithoutTaskInput = {
|
||
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
type?:
|
||
|
|
| Prisma.NullableEnumNotificationTypeFieldUpdateOperationsInput
|
||
|
|
| $Enums.NotificationType
|
||
|
|
| null
|
||
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||
|
|
teamId?: Prisma.StringFieldUpdateOperationsInput | string
|
||
|
|
projectId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
creatorId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
assetId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
userId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationSelect<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = runtime.Types.Extensions.GetSelect<
|
||
|
|
{
|
||
|
|
id?: boolean
|
||
|
|
type?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
teamId?: boolean
|
||
|
|
projectId?: boolean
|
||
|
|
creatorId?: boolean
|
||
|
|
assetId?: boolean
|
||
|
|
taskId?: boolean
|
||
|
|
userId?: boolean
|
||
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||
|
|
project?: boolean | Prisma.Notification$projectArgs<ExtArgs>
|
||
|
|
creator?: boolean | Prisma.Notification$creatorArgs<ExtArgs>
|
||
|
|
asset?: boolean | Prisma.Notification$assetArgs<ExtArgs>
|
||
|
|
task?: boolean | Prisma.Notification$taskArgs<ExtArgs>
|
||
|
|
user?: boolean | Prisma.Notification$userArgs<ExtArgs>
|
||
|
|
readByMembers?: boolean | Prisma.Notification$readByMembersArgs<ExtArgs>
|
||
|
|
},
|
||
|
|
ExtArgs['result']['notification']
|
||
|
|
>
|
||
|
|
|
||
|
|
export type NotificationSelectCreateManyAndReturn<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = runtime.Types.Extensions.GetSelect<
|
||
|
|
{
|
||
|
|
id?: boolean
|
||
|
|
type?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
teamId?: boolean
|
||
|
|
projectId?: boolean
|
||
|
|
creatorId?: boolean
|
||
|
|
assetId?: boolean
|
||
|
|
taskId?: boolean
|
||
|
|
userId?: boolean
|
||
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||
|
|
project?: boolean | Prisma.Notification$projectArgs<ExtArgs>
|
||
|
|
creator?: boolean | Prisma.Notification$creatorArgs<ExtArgs>
|
||
|
|
asset?: boolean | Prisma.Notification$assetArgs<ExtArgs>
|
||
|
|
task?: boolean | Prisma.Notification$taskArgs<ExtArgs>
|
||
|
|
user?: boolean | Prisma.Notification$userArgs<ExtArgs>
|
||
|
|
},
|
||
|
|
ExtArgs['result']['notification']
|
||
|
|
>
|
||
|
|
|
||
|
|
export type NotificationSelectUpdateManyAndReturn<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = runtime.Types.Extensions.GetSelect<
|
||
|
|
{
|
||
|
|
id?: boolean
|
||
|
|
type?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
teamId?: boolean
|
||
|
|
projectId?: boolean
|
||
|
|
creatorId?: boolean
|
||
|
|
assetId?: boolean
|
||
|
|
taskId?: boolean
|
||
|
|
userId?: boolean
|
||
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||
|
|
project?: boolean | Prisma.Notification$projectArgs<ExtArgs>
|
||
|
|
creator?: boolean | Prisma.Notification$creatorArgs<ExtArgs>
|
||
|
|
asset?: boolean | Prisma.Notification$assetArgs<ExtArgs>
|
||
|
|
task?: boolean | Prisma.Notification$taskArgs<ExtArgs>
|
||
|
|
user?: boolean | Prisma.Notification$userArgs<ExtArgs>
|
||
|
|
},
|
||
|
|
ExtArgs['result']['notification']
|
||
|
|
>
|
||
|
|
|
||
|
|
export type NotificationSelectScalar = {
|
||
|
|
id?: boolean
|
||
|
|
type?: boolean
|
||
|
|
createdAt?: boolean
|
||
|
|
updatedAt?: boolean
|
||
|
|
teamId?: boolean
|
||
|
|
projectId?: boolean
|
||
|
|
creatorId?: boolean
|
||
|
|
assetId?: boolean
|
||
|
|
taskId?: boolean
|
||
|
|
userId?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationOmit<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = runtime.Types.Extensions.GetOmit<
|
||
|
|
| 'id'
|
||
|
|
| 'type'
|
||
|
|
| 'createdAt'
|
||
|
|
| 'updatedAt'
|
||
|
|
| 'teamId'
|
||
|
|
| 'projectId'
|
||
|
|
| 'creatorId'
|
||
|
|
| 'assetId'
|
||
|
|
| 'taskId'
|
||
|
|
| 'userId',
|
||
|
|
ExtArgs['result']['notification']
|
||
|
|
>
|
||
|
|
export type NotificationInclude<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||
|
|
project?: boolean | Prisma.Notification$projectArgs<ExtArgs>
|
||
|
|
creator?: boolean | Prisma.Notification$creatorArgs<ExtArgs>
|
||
|
|
asset?: boolean | Prisma.Notification$assetArgs<ExtArgs>
|
||
|
|
task?: boolean | Prisma.Notification$taskArgs<ExtArgs>
|
||
|
|
user?: boolean | Prisma.Notification$userArgs<ExtArgs>
|
||
|
|
readByMembers?: boolean | Prisma.Notification$readByMembersArgs<ExtArgs>
|
||
|
|
}
|
||
|
|
export type NotificationIncludeCreateManyAndReturn<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||
|
|
project?: boolean | Prisma.Notification$projectArgs<ExtArgs>
|
||
|
|
creator?: boolean | Prisma.Notification$creatorArgs<ExtArgs>
|
||
|
|
asset?: boolean | Prisma.Notification$assetArgs<ExtArgs>
|
||
|
|
task?: boolean | Prisma.Notification$taskArgs<ExtArgs>
|
||
|
|
user?: boolean | Prisma.Notification$userArgs<ExtArgs>
|
||
|
|
}
|
||
|
|
export type NotificationIncludeUpdateManyAndReturn<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
team?: boolean | Prisma.TeamDefaultArgs<ExtArgs>
|
||
|
|
project?: boolean | Prisma.Notification$projectArgs<ExtArgs>
|
||
|
|
creator?: boolean | Prisma.Notification$creatorArgs<ExtArgs>
|
||
|
|
asset?: boolean | Prisma.Notification$assetArgs<ExtArgs>
|
||
|
|
task?: boolean | Prisma.Notification$taskArgs<ExtArgs>
|
||
|
|
user?: boolean | Prisma.Notification$userArgs<ExtArgs>
|
||
|
|
}
|
||
|
|
|
||
|
|
export type $NotificationPayload<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
name: 'Notification'
|
||
|
|
objects: {
|
||
|
|
team: Prisma.$TeamPayload<ExtArgs>
|
||
|
|
project: Prisma.$ProjectPayload<ExtArgs> | null
|
||
|
|
creator: Prisma.$UserPayload<ExtArgs> | null
|
||
|
|
asset: Prisma.$AssetPayload<ExtArgs> | null
|
||
|
|
task: Prisma.$TaskPayload<ExtArgs> | null
|
||
|
|
user: Prisma.$UserPayload<ExtArgs> | null
|
||
|
|
readByMembers: Prisma.$TeamMemberPayload<ExtArgs> | null
|
||
|
|
}
|
||
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<
|
||
|
|
{
|
||
|
|
id: string
|
||
|
|
type: $Enums.NotificationType | null
|
||
|
|
createdAt: Date
|
||
|
|
updatedAt: Date
|
||
|
|
teamId: string
|
||
|
|
projectId: string | null
|
||
|
|
creatorId: string | null
|
||
|
|
assetId: string | null
|
||
|
|
taskId: string | null
|
||
|
|
userId: string | null
|
||
|
|
},
|
||
|
|
ExtArgs['result']['notification']
|
||
|
|
>
|
||
|
|
composites: {}
|
||
|
|
}
|
||
|
|
|
||
|
|
export type NotificationGetPayload<S extends boolean | null | undefined | NotificationDefaultArgs> =
|
||
|
|
runtime.Types.Result.GetResult<Prisma.$NotificationPayload, S>
|
||
|
|
|
||
|
|
export type NotificationCountArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = Omit<NotificationFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
||
|
|
select?: NotificationCountAggregateInputType | true
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface NotificationDelegate<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
GlobalOmitOptions = {},
|
||
|
|
> {
|
||
|
|
[K: symbol]: {
|
||
|
|
types: Prisma.TypeMap<ExtArgs>['model']['Notification']
|
||
|
|
meta: { name: 'Notification' }
|
||
|
|
}
|
||
|
|
/**
|
||
|
|
* Find zero or one Notification that matches the filter.
|
||
|
|
* @param {NotificationFindUniqueArgs} args - Arguments to find a Notification
|
||
|
|
* @example
|
||
|
|
* // Get one Notification
|
||
|
|
* const notification = await prisma.notification.findUnique({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findUnique<T extends NotificationFindUniqueArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, NotificationFindUniqueArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__NotificationClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUnique',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find one Notification that matches the filter or throw an error with `error.code='P2025'`
|
||
|
|
* if no matches were found.
|
||
|
|
* @param {NotificationFindUniqueOrThrowArgs} args - Arguments to find a Notification
|
||
|
|
* @example
|
||
|
|
* // Get one Notification
|
||
|
|
* const notification = await prisma.notification.findUniqueOrThrow({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findUniqueOrThrow<T extends NotificationFindUniqueOrThrowArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, NotificationFindUniqueOrThrowArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__NotificationClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUniqueOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find the first Notification 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 {NotificationFindFirstArgs} args - Arguments to find a Notification
|
||
|
|
* @example
|
||
|
|
* // Get one Notification
|
||
|
|
* const notification = await prisma.notification.findFirst({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findFirst<T extends NotificationFindFirstArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, NotificationFindFirstArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__NotificationClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findFirst',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find the first Notification 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 {NotificationFindFirstOrThrowArgs} args - Arguments to find a Notification
|
||
|
|
* @example
|
||
|
|
* // Get one Notification
|
||
|
|
* const notification = await prisma.notification.findFirstOrThrow({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
findFirstOrThrow<T extends NotificationFindFirstOrThrowArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, NotificationFindFirstOrThrowArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__NotificationClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findFirstOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Find zero or more Notifications 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 {NotificationFindManyArgs} args - Arguments to filter and select certain fields only.
|
||
|
|
* @example
|
||
|
|
* // Get all Notifications
|
||
|
|
* const notifications = await prisma.notification.findMany()
|
||
|
|
*
|
||
|
|
* // Get first 10 Notifications
|
||
|
|
* const notifications = await prisma.notification.findMany({ take: 10 })
|
||
|
|
*
|
||
|
|
* // Only select the `id`
|
||
|
|
* const notificationWithIdOnly = await prisma.notification.findMany({ select: { id: true } })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
findMany<T extends NotificationFindManyArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, NotificationFindManyArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findMany',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create a Notification.
|
||
|
|
* @param {NotificationCreateArgs} args - Arguments to create a Notification.
|
||
|
|
* @example
|
||
|
|
* // Create one Notification
|
||
|
|
* const Notification = await prisma.notification.create({
|
||
|
|
* data: {
|
||
|
|
* // ... data to create a Notification
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
create<T extends NotificationCreateArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, NotificationCreateArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__NotificationClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'create',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create many Notifications.
|
||
|
|
* @param {NotificationCreateManyArgs} args - Arguments to create many Notifications.
|
||
|
|
* @example
|
||
|
|
* // Create many Notifications
|
||
|
|
* const notification = await prisma.notification.createMany({
|
||
|
|
* data: [
|
||
|
|
* // ... provide data here
|
||
|
|
* ]
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
createMany<T extends NotificationCreateManyArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, NotificationCreateManyArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create many Notifications and returns the data saved in the database.
|
||
|
|
* @param {NotificationCreateManyAndReturnArgs} args - Arguments to create many Notifications.
|
||
|
|
* @example
|
||
|
|
* // Create many Notifications
|
||
|
|
* const notification = await prisma.notification.createManyAndReturn({
|
||
|
|
* data: [
|
||
|
|
* // ... provide data here
|
||
|
|
* ]
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
* // Create many Notifications and only return the `id`
|
||
|
|
* const notificationWithIdOnly = await prisma.notification.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 NotificationCreateManyAndReturnArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, NotificationCreateManyAndReturnArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'createManyAndReturn',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Delete a Notification.
|
||
|
|
* @param {NotificationDeleteArgs} args - Arguments to delete one Notification.
|
||
|
|
* @example
|
||
|
|
* // Delete one Notification
|
||
|
|
* const Notification = await prisma.notification.delete({
|
||
|
|
* where: {
|
||
|
|
* // ... filter to delete one Notification
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
delete<T extends NotificationDeleteArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, NotificationDeleteArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__NotificationClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'delete',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update one Notification.
|
||
|
|
* @param {NotificationUpdateArgs} args - Arguments to update one Notification.
|
||
|
|
* @example
|
||
|
|
* // Update one Notification
|
||
|
|
* const notification = await prisma.notification.update({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: {
|
||
|
|
* // ... provide data here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
update<T extends NotificationUpdateArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, NotificationUpdateArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__NotificationClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'update',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Delete zero or more Notifications.
|
||
|
|
* @param {NotificationDeleteManyArgs} args - Arguments to filter Notifications to delete.
|
||
|
|
* @example
|
||
|
|
* // Delete a few Notifications
|
||
|
|
* const { count } = await prisma.notification.deleteMany({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
deleteMany<T extends NotificationDeleteManyArgs>(
|
||
|
|
args?: Prisma.SelectSubset<T, NotificationDeleteManyArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update zero or more Notifications.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {NotificationUpdateManyArgs} args - Arguments to update one or more rows.
|
||
|
|
* @example
|
||
|
|
* // Update many Notifications
|
||
|
|
* const notification = await prisma.notification.updateMany({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: {
|
||
|
|
* // ... provide data here
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
updateMany<T extends NotificationUpdateManyArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, NotificationUpdateManyArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Update zero or more Notifications and returns the data updated in the database.
|
||
|
|
* @param {NotificationUpdateManyAndReturnArgs} args - Arguments to update many Notifications.
|
||
|
|
* @example
|
||
|
|
* // Update many Notifications
|
||
|
|
* const notification = await prisma.notification.updateManyAndReturn({
|
||
|
|
* where: {
|
||
|
|
* // ... provide filter here
|
||
|
|
* },
|
||
|
|
* data: [
|
||
|
|
* // ... provide data here
|
||
|
|
* ]
|
||
|
|
* })
|
||
|
|
*
|
||
|
|
* // Update zero or more Notifications and only return the `id`
|
||
|
|
* const notificationWithIdOnly = await prisma.notification.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 NotificationUpdateManyAndReturnArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, NotificationUpdateManyAndReturnArgs<ExtArgs>>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'updateManyAndReturn',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Create or update one Notification.
|
||
|
|
* @param {NotificationUpsertArgs} args - Arguments to update or create a Notification.
|
||
|
|
* @example
|
||
|
|
* // Update or create a Notification
|
||
|
|
* const notification = await prisma.notification.upsert({
|
||
|
|
* create: {
|
||
|
|
* // ... data to create a Notification
|
||
|
|
* },
|
||
|
|
* update: {
|
||
|
|
* // ... in case it already exists, update
|
||
|
|
* },
|
||
|
|
* where: {
|
||
|
|
* // ... the filter for the Notification we want to update
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
*/
|
||
|
|
upsert<T extends NotificationUpsertArgs>(
|
||
|
|
args: Prisma.SelectSubset<T, NotificationUpsertArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__NotificationClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$NotificationPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'upsert',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>,
|
||
|
|
never,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Count the number of Notifications.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {NotificationCountArgs} args - Arguments to filter Notifications to count.
|
||
|
|
* @example
|
||
|
|
* // Count the number of Notifications
|
||
|
|
* const count = await prisma.notification.count({
|
||
|
|
* where: {
|
||
|
|
* // ... the filter for the Notifications we want to count
|
||
|
|
* }
|
||
|
|
* })
|
||
|
|
**/
|
||
|
|
count<T extends NotificationCountArgs>(
|
||
|
|
args?: Prisma.Subset<T, NotificationCountArgs>,
|
||
|
|
): Prisma.PrismaPromise<
|
||
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
||
|
|
? T['select'] extends true
|
||
|
|
? number
|
||
|
|
: Prisma.GetScalarType<T['select'], NotificationCountAggregateOutputType>
|
||
|
|
: number
|
||
|
|
>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Allows you to perform aggregations operations on a Notification.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {NotificationAggregateArgs} 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 NotificationAggregateArgs>(
|
||
|
|
args: Prisma.Subset<T, NotificationAggregateArgs>,
|
||
|
|
): Prisma.PrismaPromise<GetNotificationAggregateType<T>>
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Group by Notification.
|
||
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
||
|
|
* Read more here: https://pris.ly/d/null-undefined
|
||
|
|
* @param {NotificationGroupByArgs} 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 NotificationGroupByArgs,
|
||
|
|
HasSelectOrTake extends Prisma.Or<
|
||
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
||
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
||
|
|
>,
|
||
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
||
|
|
? { orderBy: NotificationGroupByArgs['orderBy'] }
|
||
|
|
: { orderBy?: NotificationGroupByArgs['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, NotificationGroupByArgs, OrderByArg> & InputErrors,
|
||
|
|
): {} extends InputErrors ? GetNotificationGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
||
|
|
/**
|
||
|
|
* Fields of the Notification model
|
||
|
|
*/
|
||
|
|
readonly fields: NotificationFieldRefs
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* The delegate class that acts as a "Promise-like" for Notification.
|
||
|
|
* 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__NotificationClient<
|
||
|
|
T,
|
||
|
|
Null = never,
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
GlobalOmitOptions = {},
|
||
|
|
> extends Prisma.PrismaPromise<T> {
|
||
|
|
readonly [Symbol.toStringTag]: 'PrismaPromise'
|
||
|
|
team<T extends Prisma.TeamDefaultArgs<ExtArgs> = {}>(
|
||
|
|
args?: Prisma.Subset<T, Prisma.TeamDefaultArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__TeamClient<
|
||
|
|
| runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$TeamPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUniqueOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
| Null,
|
||
|
|
Null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
project<T extends Prisma.Notification$projectArgs<ExtArgs> = {}>(
|
||
|
|
args?: Prisma.Subset<T, Prisma.Notification$projectArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__ProjectClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$ProjectPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUniqueOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
creator<T extends Prisma.Notification$creatorArgs<ExtArgs> = {}>(
|
||
|
|
args?: Prisma.Subset<T, Prisma.Notification$creatorArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__UserClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$UserPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUniqueOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
asset<T extends Prisma.Notification$assetArgs<ExtArgs> = {}>(
|
||
|
|
args?: Prisma.Subset<T, Prisma.Notification$assetArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__AssetClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$AssetPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUniqueOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
task<T extends Prisma.Notification$taskArgs<ExtArgs> = {}>(
|
||
|
|
args?: Prisma.Subset<T, Prisma.Notification$taskArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__TaskClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$TaskPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUniqueOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
user<T extends Prisma.Notification$userArgs<ExtArgs> = {}>(
|
||
|
|
args?: Prisma.Subset<T, Prisma.Notification$userArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__UserClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$UserPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUniqueOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
readByMembers<T extends Prisma.Notification$readByMembersArgs<ExtArgs> = {}>(
|
||
|
|
args?: Prisma.Subset<T, Prisma.Notification$readByMembersArgs<ExtArgs>>,
|
||
|
|
): Prisma.Prisma__TeamMemberClient<
|
||
|
|
runtime.Types.Result.GetResult<
|
||
|
|
Prisma.$TeamMemberPayload<ExtArgs>,
|
||
|
|
T,
|
||
|
|
'findUniqueOrThrow',
|
||
|
|
GlobalOmitOptions
|
||
|
|
> | null,
|
||
|
|
null,
|
||
|
|
ExtArgs,
|
||
|
|
GlobalOmitOptions
|
||
|
|
>
|
||
|
|
/**
|
||
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
||
|
|
*/
|
||
|
|
then<TResult1 = T, TResult2 = never>(
|
||
|
|
onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
|
||
|
|
onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null,
|
||
|
|
): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
||
|
|
/**
|
||
|
|
* Attaches a callback for only the rejection of the Promise.
|
||
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
||
|
|
* @returns A Promise for the completion of the callback.
|
||
|
|
*/
|
||
|
|
catch<TResult = never>(
|
||
|
|
onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null,
|
||
|
|
): runtime.Types.Utils.JsPromise<T | TResult>
|
||
|
|
/**
|
||
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
||
|
|
* resolved value cannot be modified from the callback.
|
||
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
||
|
|
* @returns A Promise for the completion of the callback.
|
||
|
|
*/
|
||
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Fields of the Notification model
|
||
|
|
*/
|
||
|
|
export interface NotificationFieldRefs {
|
||
|
|
readonly id: Prisma.FieldRef<'Notification', 'String'>
|
||
|
|
readonly type: Prisma.FieldRef<'Notification', 'NotificationType'>
|
||
|
|
readonly createdAt: Prisma.FieldRef<'Notification', 'DateTime'>
|
||
|
|
readonly updatedAt: Prisma.FieldRef<'Notification', 'DateTime'>
|
||
|
|
readonly teamId: Prisma.FieldRef<'Notification', 'String'>
|
||
|
|
readonly projectId: Prisma.FieldRef<'Notification', 'String'>
|
||
|
|
readonly creatorId: Prisma.FieldRef<'Notification', 'String'>
|
||
|
|
readonly assetId: Prisma.FieldRef<'Notification', 'String'>
|
||
|
|
readonly taskId: Prisma.FieldRef<'Notification', 'String'>
|
||
|
|
readonly userId: Prisma.FieldRef<'Notification', 'String'>
|
||
|
|
}
|
||
|
|
|
||
|
|
// Custom InputTypes
|
||
|
|
/**
|
||
|
|
* Notification findUnique
|
||
|
|
*/
|
||
|
|
export type NotificationFindUniqueArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Notification to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification findUniqueOrThrow
|
||
|
|
*/
|
||
|
|
export type NotificationFindUniqueOrThrowArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Notification to fetch.
|
||
|
|
*/
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification findFirst
|
||
|
|
*/
|
||
|
|
export type NotificationFindFirstArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Notification to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of Notifications to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.NotificationOrderByWithRelationInput
|
||
|
|
| Prisma.NotificationOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for searching for Notifications.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.NotificationWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` Notifications 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` Notifications.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of Notifications.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification findFirstOrThrow
|
||
|
|
*/
|
||
|
|
export type NotificationFindFirstOrThrowArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Notification to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of Notifications to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.NotificationOrderByWithRelationInput
|
||
|
|
| Prisma.NotificationOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for searching for Notifications.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.NotificationWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` Notifications 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` Notifications.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of Notifications.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification findMany
|
||
|
|
*/
|
||
|
|
export type NotificationFindManyArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter, which Notifications to fetch.
|
||
|
|
*/
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
||
|
|
*
|
||
|
|
* Determine the order of Notifications to fetch.
|
||
|
|
*/
|
||
|
|
orderBy?:
|
||
|
|
| Prisma.NotificationOrderByWithRelationInput
|
||
|
|
| Prisma.NotificationOrderByWithRelationInput[]
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
||
|
|
*
|
||
|
|
* Sets the position for listing Notifications.
|
||
|
|
*/
|
||
|
|
cursor?: Prisma.NotificationWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
||
|
|
*
|
||
|
|
* Take `±n` Notifications 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` Notifications.
|
||
|
|
*/
|
||
|
|
skip?: number
|
||
|
|
/**
|
||
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
||
|
|
*
|
||
|
|
* Filter by unique combinations of Notifications.
|
||
|
|
*/
|
||
|
|
distinct?: Prisma.NotificationScalarFieldEnum | Prisma.NotificationScalarFieldEnum[]
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification create
|
||
|
|
*/
|
||
|
|
export type NotificationCreateArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to create a Notification.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.NotificationCreateInput, Prisma.NotificationUncheckedCreateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification createMany
|
||
|
|
*/
|
||
|
|
export type NotificationCreateManyArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* The data used to create many Notifications.
|
||
|
|
*/
|
||
|
|
data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification createManyAndReturn
|
||
|
|
*/
|
||
|
|
export type NotificationCreateManyAndReturnArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelectCreateManyAndReturn<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data used to create many Notifications.
|
||
|
|
*/
|
||
|
|
data: Prisma.NotificationCreateManyInput | Prisma.NotificationCreateManyInput[]
|
||
|
|
skipDuplicates?: boolean
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationIncludeCreateManyAndReturn<ExtArgs> | null
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification update
|
||
|
|
*/
|
||
|
|
export type NotificationUpdateArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data needed to update a Notification.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<Prisma.NotificationUpdateInput, Prisma.NotificationUncheckedUpdateInput>
|
||
|
|
/**
|
||
|
|
* Choose, which Notification to update.
|
||
|
|
*/
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification updateMany
|
||
|
|
*/
|
||
|
|
export type NotificationUpdateManyArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* The data used to update Notifications.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateManyMutationInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateManyInput
|
||
|
|
>
|
||
|
|
/**
|
||
|
|
* Filter which Notifications to update
|
||
|
|
*/
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many Notifications to update.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification updateManyAndReturn
|
||
|
|
*/
|
||
|
|
export type NotificationUpdateManyAndReturnArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelectUpdateManyAndReturn<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The data used to update Notifications.
|
||
|
|
*/
|
||
|
|
data: Prisma.XOR<
|
||
|
|
Prisma.NotificationUpdateManyMutationInput,
|
||
|
|
Prisma.NotificationUncheckedUpdateManyInput
|
||
|
|
>
|
||
|
|
/**
|
||
|
|
* Filter which Notifications to update
|
||
|
|
*/
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many Notifications to update.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationIncludeUpdateManyAndReturn<ExtArgs> | null
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification upsert
|
||
|
|
*/
|
||
|
|
export type NotificationUpsertArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* The filter to search for the Notification to update in case it exists.
|
||
|
|
*/
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
/**
|
||
|
|
* In case the Notification found by the `where` argument doesn't exist, create a new Notification with this data.
|
||
|
|
*/
|
||
|
|
create: Prisma.XOR<Prisma.NotificationCreateInput, Prisma.NotificationUncheckedCreateInput>
|
||
|
|
/**
|
||
|
|
* In case the Notification was found with the provided `where` argument, update it with this data.
|
||
|
|
*/
|
||
|
|
update: Prisma.XOR<Prisma.NotificationUpdateInput, Prisma.NotificationUncheckedUpdateInput>
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification delete
|
||
|
|
*/
|
||
|
|
export type NotificationDeleteArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Filter which Notification to delete.
|
||
|
|
*/
|
||
|
|
where: Prisma.NotificationWhereUniqueInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification deleteMany
|
||
|
|
*/
|
||
|
|
export type NotificationDeleteManyArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Filter which Notifications to delete
|
||
|
|
*/
|
||
|
|
where?: Prisma.NotificationWhereInput
|
||
|
|
/**
|
||
|
|
* Limit how many Notifications to delete.
|
||
|
|
*/
|
||
|
|
limit?: number
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification.project
|
||
|
|
*/
|
||
|
|
export type Notification$projectArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Project
|
||
|
|
*/
|
||
|
|
select?: Prisma.ProjectSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Project
|
||
|
|
*/
|
||
|
|
omit?: Prisma.ProjectOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.ProjectInclude<ExtArgs> | null
|
||
|
|
where?: Prisma.ProjectWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification.creator
|
||
|
|
*/
|
||
|
|
export type Notification$creatorArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the User
|
||
|
|
*/
|
||
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the User
|
||
|
|
*/
|
||
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
||
|
|
where?: Prisma.UserWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification.asset
|
||
|
|
*/
|
||
|
|
export type Notification$assetArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Asset
|
||
|
|
*/
|
||
|
|
select?: Prisma.AssetSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Asset
|
||
|
|
*/
|
||
|
|
omit?: Prisma.AssetOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.AssetInclude<ExtArgs> | null
|
||
|
|
where?: Prisma.AssetWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification.task
|
||
|
|
*/
|
||
|
|
export type Notification$taskArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Task
|
||
|
|
*/
|
||
|
|
select?: Prisma.TaskSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Task
|
||
|
|
*/
|
||
|
|
omit?: Prisma.TaskOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.TaskInclude<ExtArgs> | null
|
||
|
|
where?: Prisma.TaskWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification.user
|
||
|
|
*/
|
||
|
|
export type Notification$userArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the User
|
||
|
|
*/
|
||
|
|
select?: Prisma.UserSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the User
|
||
|
|
*/
|
||
|
|
omit?: Prisma.UserOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.UserInclude<ExtArgs> | null
|
||
|
|
where?: Prisma.UserWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification.readByMembers
|
||
|
|
*/
|
||
|
|
export type Notification$readByMembersArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the TeamMember
|
||
|
|
*/
|
||
|
|
select?: Prisma.TeamMemberSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the TeamMember
|
||
|
|
*/
|
||
|
|
omit?: Prisma.TeamMemberOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.TeamMemberInclude<ExtArgs> | null
|
||
|
|
where?: Prisma.TeamMemberWhereInput
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Notification without action
|
||
|
|
*/
|
||
|
|
export type NotificationDefaultArgs<
|
||
|
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
|
||
|
|
> = {
|
||
|
|
/**
|
||
|
|
* Select specific fields to fetch from the Notification
|
||
|
|
*/
|
||
|
|
select?: Prisma.NotificationSelect<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Omit specific fields from the Notification
|
||
|
|
*/
|
||
|
|
omit?: Prisma.NotificationOmit<ExtArgs> | null
|
||
|
|
/**
|
||
|
|
* Choose, which related nodes to fetch as well
|
||
|
|
*/
|
||
|
|
include?: Prisma.NotificationInclude<ExtArgs> | null
|
||
|
|
}
|