1353 lines
50 KiB
TypeScript
1353 lines
50 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 `TaskWatcher` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model TaskWatcher
|
|
* A user watching a task (M:N). Watchers receive reminder notifications in
|
|
* addition to the assignee.
|
|
*/
|
|
export type TaskWatcherModel = runtime.Types.Result.DefaultSelection<Prisma.$TaskWatcherPayload>
|
|
|
|
export type AggregateTaskWatcher = {
|
|
_count: TaskWatcherCountAggregateOutputType | null
|
|
_min: TaskWatcherMinAggregateOutputType | null
|
|
_max: TaskWatcherMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type TaskWatcherMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
tenantId: string | null
|
|
taskId: string | null
|
|
userId: string | null
|
|
}
|
|
|
|
export type TaskWatcherMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
tenantId: string | null
|
|
taskId: string | null
|
|
userId: string | null
|
|
}
|
|
|
|
export type TaskWatcherCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
tenantId: number
|
|
taskId: number
|
|
userId: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type TaskWatcherMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
tenantId?: true
|
|
taskId?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type TaskWatcherMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
tenantId?: true
|
|
taskId?: true
|
|
userId?: true
|
|
}
|
|
|
|
export type TaskWatcherCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
tenantId?: true
|
|
taskId?: true
|
|
userId?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type TaskWatcherAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TaskWatcher to aggregate.
|
|
*/
|
|
where?: Prisma.TaskWatcherWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TaskWatchers to fetch.
|
|
*/
|
|
orderBy?: Prisma.TaskWatcherOrderByWithRelationInput | Prisma.TaskWatcherOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.TaskWatcherWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TaskWatchers 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` TaskWatchers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned TaskWatchers
|
|
**/
|
|
_count?: true | TaskWatcherCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: TaskWatcherMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: TaskWatcherMaxAggregateInputType
|
|
}
|
|
|
|
export type GetTaskWatcherAggregateType<T extends TaskWatcherAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateTaskWatcher]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateTaskWatcher[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateTaskWatcher[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type TaskWatcherGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.TaskWatcherWhereInput
|
|
orderBy?: Prisma.TaskWatcherOrderByWithAggregationInput | Prisma.TaskWatcherOrderByWithAggregationInput[]
|
|
by: Prisma.TaskWatcherScalarFieldEnum[] | Prisma.TaskWatcherScalarFieldEnum
|
|
having?: Prisma.TaskWatcherScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: TaskWatcherCountAggregateInputType | true
|
|
_min?: TaskWatcherMinAggregateInputType
|
|
_max?: TaskWatcherMaxAggregateInputType
|
|
}
|
|
|
|
export type TaskWatcherGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
tenantId: string
|
|
taskId: string
|
|
userId: string
|
|
_count: TaskWatcherCountAggregateOutputType | null
|
|
_min: TaskWatcherMinAggregateOutputType | null
|
|
_max: TaskWatcherMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetTaskWatcherGroupByPayload<T extends TaskWatcherGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<TaskWatcherGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof TaskWatcherGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], TaskWatcherGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], TaskWatcherGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type TaskWatcherWhereInput = {
|
|
AND?: Prisma.TaskWatcherWhereInput | Prisma.TaskWatcherWhereInput[]
|
|
OR?: Prisma.TaskWatcherWhereInput[]
|
|
NOT?: Prisma.TaskWatcherWhereInput | Prisma.TaskWatcherWhereInput[]
|
|
id?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"TaskWatcher"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
taskId?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
userId?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
task?: Prisma.XOR<Prisma.TaskScalarRelationFilter, Prisma.TaskWhereInput>
|
|
}
|
|
|
|
export type TaskWatcherOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
taskId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
task?: Prisma.TaskOrderByWithRelationInput
|
|
}
|
|
|
|
export type TaskWatcherWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
taskId_userId?: Prisma.TaskWatcherTaskIdUserIdCompoundUniqueInput
|
|
AND?: Prisma.TaskWatcherWhereInput | Prisma.TaskWatcherWhereInput[]
|
|
OR?: Prisma.TaskWatcherWhereInput[]
|
|
NOT?: Prisma.TaskWatcherWhereInput | Prisma.TaskWatcherWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"TaskWatcher"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
taskId?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
userId?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
task?: Prisma.XOR<Prisma.TaskScalarRelationFilter, Prisma.TaskWhereInput>
|
|
}, "id" | "taskId_userId">
|
|
|
|
export type TaskWatcherOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
taskId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
_count?: Prisma.TaskWatcherCountOrderByAggregateInput
|
|
_max?: Prisma.TaskWatcherMaxOrderByAggregateInput
|
|
_min?: Prisma.TaskWatcherMinOrderByAggregateInput
|
|
}
|
|
|
|
export type TaskWatcherScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.TaskWatcherScalarWhereWithAggregatesInput | Prisma.TaskWatcherScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.TaskWatcherScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.TaskWatcherScalarWhereWithAggregatesInput | Prisma.TaskWatcherScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"TaskWatcher"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"TaskWatcher"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"TaskWatcher"> | string
|
|
taskId?: Prisma.StringWithAggregatesFilter<"TaskWatcher"> | string
|
|
userId?: Prisma.StringWithAggregatesFilter<"TaskWatcher"> | string
|
|
}
|
|
|
|
export type TaskWatcherCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
userId: string
|
|
task: Prisma.TaskCreateNestedOneWithoutWatchersInput
|
|
}
|
|
|
|
export type TaskWatcherUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
taskId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TaskWatcherUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
task?: Prisma.TaskUpdateOneRequiredWithoutWatchersNestedInput
|
|
}
|
|
|
|
export type TaskWatcherUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
taskId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TaskWatcherCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
taskId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TaskWatcherUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TaskWatcherUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
taskId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TaskWatcherListRelationFilter = {
|
|
every?: Prisma.TaskWatcherWhereInput
|
|
some?: Prisma.TaskWatcherWhereInput
|
|
none?: Prisma.TaskWatcherWhereInput
|
|
}
|
|
|
|
export type TaskWatcherOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TaskWatcherTaskIdUserIdCompoundUniqueInput = {
|
|
taskId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TaskWatcherCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
taskId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TaskWatcherMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
taskId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TaskWatcherMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
taskId?: Prisma.SortOrder
|
|
userId?: Prisma.SortOrder
|
|
}
|
|
|
|
export type TaskWatcherCreateNestedManyWithoutTaskInput = {
|
|
create?: Prisma.XOR<Prisma.TaskWatcherCreateWithoutTaskInput, Prisma.TaskWatcherUncheckedCreateWithoutTaskInput> | Prisma.TaskWatcherCreateWithoutTaskInput[] | Prisma.TaskWatcherUncheckedCreateWithoutTaskInput[]
|
|
connectOrCreate?: Prisma.TaskWatcherCreateOrConnectWithoutTaskInput | Prisma.TaskWatcherCreateOrConnectWithoutTaskInput[]
|
|
createMany?: Prisma.TaskWatcherCreateManyTaskInputEnvelope
|
|
connect?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
}
|
|
|
|
export type TaskWatcherUncheckedCreateNestedManyWithoutTaskInput = {
|
|
create?: Prisma.XOR<Prisma.TaskWatcherCreateWithoutTaskInput, Prisma.TaskWatcherUncheckedCreateWithoutTaskInput> | Prisma.TaskWatcherCreateWithoutTaskInput[] | Prisma.TaskWatcherUncheckedCreateWithoutTaskInput[]
|
|
connectOrCreate?: Prisma.TaskWatcherCreateOrConnectWithoutTaskInput | Prisma.TaskWatcherCreateOrConnectWithoutTaskInput[]
|
|
createMany?: Prisma.TaskWatcherCreateManyTaskInputEnvelope
|
|
connect?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
}
|
|
|
|
export type TaskWatcherUpdateManyWithoutTaskNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TaskWatcherCreateWithoutTaskInput, Prisma.TaskWatcherUncheckedCreateWithoutTaskInput> | Prisma.TaskWatcherCreateWithoutTaskInput[] | Prisma.TaskWatcherUncheckedCreateWithoutTaskInput[]
|
|
connectOrCreate?: Prisma.TaskWatcherCreateOrConnectWithoutTaskInput | Prisma.TaskWatcherCreateOrConnectWithoutTaskInput[]
|
|
upsert?: Prisma.TaskWatcherUpsertWithWhereUniqueWithoutTaskInput | Prisma.TaskWatcherUpsertWithWhereUniqueWithoutTaskInput[]
|
|
createMany?: Prisma.TaskWatcherCreateManyTaskInputEnvelope
|
|
set?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
disconnect?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
delete?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
connect?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
update?: Prisma.TaskWatcherUpdateWithWhereUniqueWithoutTaskInput | Prisma.TaskWatcherUpdateWithWhereUniqueWithoutTaskInput[]
|
|
updateMany?: Prisma.TaskWatcherUpdateManyWithWhereWithoutTaskInput | Prisma.TaskWatcherUpdateManyWithWhereWithoutTaskInput[]
|
|
deleteMany?: Prisma.TaskWatcherScalarWhereInput | Prisma.TaskWatcherScalarWhereInput[]
|
|
}
|
|
|
|
export type TaskWatcherUncheckedUpdateManyWithoutTaskNestedInput = {
|
|
create?: Prisma.XOR<Prisma.TaskWatcherCreateWithoutTaskInput, Prisma.TaskWatcherUncheckedCreateWithoutTaskInput> | Prisma.TaskWatcherCreateWithoutTaskInput[] | Prisma.TaskWatcherUncheckedCreateWithoutTaskInput[]
|
|
connectOrCreate?: Prisma.TaskWatcherCreateOrConnectWithoutTaskInput | Prisma.TaskWatcherCreateOrConnectWithoutTaskInput[]
|
|
upsert?: Prisma.TaskWatcherUpsertWithWhereUniqueWithoutTaskInput | Prisma.TaskWatcherUpsertWithWhereUniqueWithoutTaskInput[]
|
|
createMany?: Prisma.TaskWatcherCreateManyTaskInputEnvelope
|
|
set?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
disconnect?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
delete?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
connect?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[]
|
|
update?: Prisma.TaskWatcherUpdateWithWhereUniqueWithoutTaskInput | Prisma.TaskWatcherUpdateWithWhereUniqueWithoutTaskInput[]
|
|
updateMany?: Prisma.TaskWatcherUpdateManyWithWhereWithoutTaskInput | Prisma.TaskWatcherUpdateManyWithWhereWithoutTaskInput[]
|
|
deleteMany?: Prisma.TaskWatcherScalarWhereInput | Prisma.TaskWatcherScalarWhereInput[]
|
|
}
|
|
|
|
export type TaskWatcherCreateWithoutTaskInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TaskWatcherUncheckedCreateWithoutTaskInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TaskWatcherCreateOrConnectWithoutTaskInput = {
|
|
where: Prisma.TaskWatcherWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.TaskWatcherCreateWithoutTaskInput, Prisma.TaskWatcherUncheckedCreateWithoutTaskInput>
|
|
}
|
|
|
|
export type TaskWatcherCreateManyTaskInputEnvelope = {
|
|
data: Prisma.TaskWatcherCreateManyTaskInput | Prisma.TaskWatcherCreateManyTaskInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type TaskWatcherUpsertWithWhereUniqueWithoutTaskInput = {
|
|
where: Prisma.TaskWatcherWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.TaskWatcherUpdateWithoutTaskInput, Prisma.TaskWatcherUncheckedUpdateWithoutTaskInput>
|
|
create: Prisma.XOR<Prisma.TaskWatcherCreateWithoutTaskInput, Prisma.TaskWatcherUncheckedCreateWithoutTaskInput>
|
|
}
|
|
|
|
export type TaskWatcherUpdateWithWhereUniqueWithoutTaskInput = {
|
|
where: Prisma.TaskWatcherWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.TaskWatcherUpdateWithoutTaskInput, Prisma.TaskWatcherUncheckedUpdateWithoutTaskInput>
|
|
}
|
|
|
|
export type TaskWatcherUpdateManyWithWhereWithoutTaskInput = {
|
|
where: Prisma.TaskWatcherScalarWhereInput
|
|
data: Prisma.XOR<Prisma.TaskWatcherUpdateManyMutationInput, Prisma.TaskWatcherUncheckedUpdateManyWithoutTaskInput>
|
|
}
|
|
|
|
export type TaskWatcherScalarWhereInput = {
|
|
AND?: Prisma.TaskWatcherScalarWhereInput | Prisma.TaskWatcherScalarWhereInput[]
|
|
OR?: Prisma.TaskWatcherScalarWhereInput[]
|
|
NOT?: Prisma.TaskWatcherScalarWhereInput | Prisma.TaskWatcherScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"TaskWatcher"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
taskId?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
userId?: Prisma.StringFilter<"TaskWatcher"> | string
|
|
}
|
|
|
|
export type TaskWatcherCreateManyTaskInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
tenantId: string
|
|
userId: string
|
|
}
|
|
|
|
export type TaskWatcherUpdateWithoutTaskInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TaskWatcherUncheckedUpdateWithoutTaskInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type TaskWatcherUncheckedUpdateManyWithoutTaskInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type TaskWatcherSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
taskId?: boolean
|
|
userId?: boolean
|
|
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["taskWatcher"]>
|
|
|
|
export type TaskWatcherSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
taskId?: boolean
|
|
userId?: boolean
|
|
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["taskWatcher"]>
|
|
|
|
export type TaskWatcherSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
taskId?: boolean
|
|
userId?: boolean
|
|
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["taskWatcher"]>
|
|
|
|
export type TaskWatcherSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
tenantId?: boolean
|
|
taskId?: boolean
|
|
userId?: boolean
|
|
}
|
|
|
|
export type TaskWatcherOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "taskId" | "userId", ExtArgs["result"]["taskWatcher"]>
|
|
export type TaskWatcherInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
|
|
}
|
|
export type TaskWatcherIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
|
|
}
|
|
export type TaskWatcherIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
task?: boolean | Prisma.TaskDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $TaskWatcherPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "TaskWatcher"
|
|
objects: {
|
|
task: Prisma.$TaskPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
tenantId: string
|
|
taskId: string
|
|
userId: string
|
|
}, ExtArgs["result"]["taskWatcher"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type TaskWatcherGetPayload<S extends boolean | null | undefined | TaskWatcherDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload, S>
|
|
|
|
export type TaskWatcherCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<TaskWatcherFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: TaskWatcherCountAggregateInputType | true
|
|
}
|
|
|
|
export interface TaskWatcherDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['TaskWatcher'], meta: { name: 'TaskWatcher' } }
|
|
/**
|
|
* Find zero or one TaskWatcher that matches the filter.
|
|
* @param {TaskWatcherFindUniqueArgs} args - Arguments to find a TaskWatcher
|
|
* @example
|
|
* // Get one TaskWatcher
|
|
* const taskWatcher = await prisma.taskWatcher.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends TaskWatcherFindUniqueArgs>(args: Prisma.SelectSubset<T, TaskWatcherFindUniqueArgs<ExtArgs>>): Prisma.Prisma__TaskWatcherClient<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one TaskWatcher that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {TaskWatcherFindUniqueOrThrowArgs} args - Arguments to find a TaskWatcher
|
|
* @example
|
|
* // Get one TaskWatcher
|
|
* const taskWatcher = await prisma.taskWatcher.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends TaskWatcherFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, TaskWatcherFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__TaskWatcherClient<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TaskWatcher 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 {TaskWatcherFindFirstArgs} args - Arguments to find a TaskWatcher
|
|
* @example
|
|
* // Get one TaskWatcher
|
|
* const taskWatcher = await prisma.taskWatcher.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends TaskWatcherFindFirstArgs>(args?: Prisma.SelectSubset<T, TaskWatcherFindFirstArgs<ExtArgs>>): Prisma.Prisma__TaskWatcherClient<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first TaskWatcher 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 {TaskWatcherFindFirstOrThrowArgs} args - Arguments to find a TaskWatcher
|
|
* @example
|
|
* // Get one TaskWatcher
|
|
* const taskWatcher = await prisma.taskWatcher.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends TaskWatcherFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, TaskWatcherFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__TaskWatcherClient<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more TaskWatchers 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 {TaskWatcherFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all TaskWatchers
|
|
* const taskWatchers = await prisma.taskWatcher.findMany()
|
|
*
|
|
* // Get first 10 TaskWatchers
|
|
* const taskWatchers = await prisma.taskWatcher.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const taskWatcherWithIdOnly = await prisma.taskWatcher.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends TaskWatcherFindManyArgs>(args?: Prisma.SelectSubset<T, TaskWatcherFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a TaskWatcher.
|
|
* @param {TaskWatcherCreateArgs} args - Arguments to create a TaskWatcher.
|
|
* @example
|
|
* // Create one TaskWatcher
|
|
* const TaskWatcher = await prisma.taskWatcher.create({
|
|
* data: {
|
|
* // ... data to create a TaskWatcher
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends TaskWatcherCreateArgs>(args: Prisma.SelectSubset<T, TaskWatcherCreateArgs<ExtArgs>>): Prisma.Prisma__TaskWatcherClient<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many TaskWatchers.
|
|
* @param {TaskWatcherCreateManyArgs} args - Arguments to create many TaskWatchers.
|
|
* @example
|
|
* // Create many TaskWatchers
|
|
* const taskWatcher = await prisma.taskWatcher.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends TaskWatcherCreateManyArgs>(args?: Prisma.SelectSubset<T, TaskWatcherCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many TaskWatchers and returns the data saved in the database.
|
|
* @param {TaskWatcherCreateManyAndReturnArgs} args - Arguments to create many TaskWatchers.
|
|
* @example
|
|
* // Create many TaskWatchers
|
|
* const taskWatcher = await prisma.taskWatcher.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many TaskWatchers and only return the `id`
|
|
* const taskWatcherWithIdOnly = await prisma.taskWatcher.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 TaskWatcherCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, TaskWatcherCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a TaskWatcher.
|
|
* @param {TaskWatcherDeleteArgs} args - Arguments to delete one TaskWatcher.
|
|
* @example
|
|
* // Delete one TaskWatcher
|
|
* const TaskWatcher = await prisma.taskWatcher.delete({
|
|
* where: {
|
|
* // ... filter to delete one TaskWatcher
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends TaskWatcherDeleteArgs>(args: Prisma.SelectSubset<T, TaskWatcherDeleteArgs<ExtArgs>>): Prisma.Prisma__TaskWatcherClient<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one TaskWatcher.
|
|
* @param {TaskWatcherUpdateArgs} args - Arguments to update one TaskWatcher.
|
|
* @example
|
|
* // Update one TaskWatcher
|
|
* const taskWatcher = await prisma.taskWatcher.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends TaskWatcherUpdateArgs>(args: Prisma.SelectSubset<T, TaskWatcherUpdateArgs<ExtArgs>>): Prisma.Prisma__TaskWatcherClient<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more TaskWatchers.
|
|
* @param {TaskWatcherDeleteManyArgs} args - Arguments to filter TaskWatchers to delete.
|
|
* @example
|
|
* // Delete a few TaskWatchers
|
|
* const { count } = await prisma.taskWatcher.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends TaskWatcherDeleteManyArgs>(args?: Prisma.SelectSubset<T, TaskWatcherDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TaskWatchers.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TaskWatcherUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many TaskWatchers
|
|
* const taskWatcher = await prisma.taskWatcher.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends TaskWatcherUpdateManyArgs>(args: Prisma.SelectSubset<T, TaskWatcherUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more TaskWatchers and returns the data updated in the database.
|
|
* @param {TaskWatcherUpdateManyAndReturnArgs} args - Arguments to update many TaskWatchers.
|
|
* @example
|
|
* // Update many TaskWatchers
|
|
* const taskWatcher = await prisma.taskWatcher.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more TaskWatchers and only return the `id`
|
|
* const taskWatcherWithIdOnly = await prisma.taskWatcher.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 TaskWatcherUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, TaskWatcherUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one TaskWatcher.
|
|
* @param {TaskWatcherUpsertArgs} args - Arguments to update or create a TaskWatcher.
|
|
* @example
|
|
* // Update or create a TaskWatcher
|
|
* const taskWatcher = await prisma.taskWatcher.upsert({
|
|
* create: {
|
|
* // ... data to create a TaskWatcher
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the TaskWatcher we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends TaskWatcherUpsertArgs>(args: Prisma.SelectSubset<T, TaskWatcherUpsertArgs<ExtArgs>>): Prisma.Prisma__TaskWatcherClient<runtime.Types.Result.GetResult<Prisma.$TaskWatcherPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of TaskWatchers.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TaskWatcherCountArgs} args - Arguments to filter TaskWatchers to count.
|
|
* @example
|
|
* // Count the number of TaskWatchers
|
|
* const count = await prisma.taskWatcher.count({
|
|
* where: {
|
|
* // ... the filter for the TaskWatchers we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends TaskWatcherCountArgs>(
|
|
args?: Prisma.Subset<T, TaskWatcherCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], TaskWatcherCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a TaskWatcher.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TaskWatcherAggregateArgs} 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 TaskWatcherAggregateArgs>(args: Prisma.Subset<T, TaskWatcherAggregateArgs>): Prisma.PrismaPromise<GetTaskWatcherAggregateType<T>>
|
|
|
|
/**
|
|
* Group by TaskWatcher.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {TaskWatcherGroupByArgs} 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 TaskWatcherGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: TaskWatcherGroupByArgs['orderBy'] }
|
|
: { orderBy?: TaskWatcherGroupByArgs['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, TaskWatcherGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetTaskWatcherGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the TaskWatcher model
|
|
*/
|
|
readonly fields: TaskWatcherFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for TaskWatcher.
|
|
* 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__TaskWatcherClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
task<T extends Prisma.TaskDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.TaskDefaultArgs<ExtArgs>>): Prisma.Prisma__TaskClient<runtime.Types.Result.GetResult<Prisma.$TaskPayload<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 TaskWatcher model
|
|
*/
|
|
export interface TaskWatcherFieldRefs {
|
|
readonly id: Prisma.FieldRef<"TaskWatcher", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"TaskWatcher", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"TaskWatcher", 'String'>
|
|
readonly taskId: Prisma.FieldRef<"TaskWatcher", 'String'>
|
|
readonly userId: Prisma.FieldRef<"TaskWatcher", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* TaskWatcher findUnique
|
|
*/
|
|
export type TaskWatcherFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TaskWatcher to fetch.
|
|
*/
|
|
where: Prisma.TaskWatcherWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher findUniqueOrThrow
|
|
*/
|
|
export type TaskWatcherFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TaskWatcher to fetch.
|
|
*/
|
|
where: Prisma.TaskWatcherWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher findFirst
|
|
*/
|
|
export type TaskWatcherFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TaskWatcher to fetch.
|
|
*/
|
|
where?: Prisma.TaskWatcherWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TaskWatchers to fetch.
|
|
*/
|
|
orderBy?: Prisma.TaskWatcherOrderByWithRelationInput | Prisma.TaskWatcherOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TaskWatchers.
|
|
*/
|
|
cursor?: Prisma.TaskWatcherWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TaskWatchers 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` TaskWatchers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TaskWatchers.
|
|
*/
|
|
distinct?: Prisma.TaskWatcherScalarFieldEnum | Prisma.TaskWatcherScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher findFirstOrThrow
|
|
*/
|
|
export type TaskWatcherFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TaskWatcher to fetch.
|
|
*/
|
|
where?: Prisma.TaskWatcherWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TaskWatchers to fetch.
|
|
*/
|
|
orderBy?: Prisma.TaskWatcherOrderByWithRelationInput | Prisma.TaskWatcherOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for TaskWatchers.
|
|
*/
|
|
cursor?: Prisma.TaskWatcherWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TaskWatchers 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` TaskWatchers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TaskWatchers.
|
|
*/
|
|
distinct?: Prisma.TaskWatcherScalarFieldEnum | Prisma.TaskWatcherScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher findMany
|
|
*/
|
|
export type TaskWatcherFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which TaskWatchers to fetch.
|
|
*/
|
|
where?: Prisma.TaskWatcherWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of TaskWatchers to fetch.
|
|
*/
|
|
orderBy?: Prisma.TaskWatcherOrderByWithRelationInput | Prisma.TaskWatcherOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing TaskWatchers.
|
|
*/
|
|
cursor?: Prisma.TaskWatcherWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` TaskWatchers 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` TaskWatchers.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of TaskWatchers.
|
|
*/
|
|
distinct?: Prisma.TaskWatcherScalarFieldEnum | Prisma.TaskWatcherScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher create
|
|
*/
|
|
export type TaskWatcherCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a TaskWatcher.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TaskWatcherCreateInput, Prisma.TaskWatcherUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher createMany
|
|
*/
|
|
export type TaskWatcherCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many TaskWatchers.
|
|
*/
|
|
data: Prisma.TaskWatcherCreateManyInput | Prisma.TaskWatcherCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher createManyAndReturn
|
|
*/
|
|
export type TaskWatcherCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many TaskWatchers.
|
|
*/
|
|
data: Prisma.TaskWatcherCreateManyInput | Prisma.TaskWatcherCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher update
|
|
*/
|
|
export type TaskWatcherUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a TaskWatcher.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TaskWatcherUpdateInput, Prisma.TaskWatcherUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which TaskWatcher to update.
|
|
*/
|
|
where: Prisma.TaskWatcherWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher updateMany
|
|
*/
|
|
export type TaskWatcherUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update TaskWatchers.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TaskWatcherUpdateManyMutationInput, Prisma.TaskWatcherUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TaskWatchers to update
|
|
*/
|
|
where?: Prisma.TaskWatcherWhereInput
|
|
/**
|
|
* Limit how many TaskWatchers to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher updateManyAndReturn
|
|
*/
|
|
export type TaskWatcherUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update TaskWatchers.
|
|
*/
|
|
data: Prisma.XOR<Prisma.TaskWatcherUpdateManyMutationInput, Prisma.TaskWatcherUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which TaskWatchers to update
|
|
*/
|
|
where?: Prisma.TaskWatcherWhereInput
|
|
/**
|
|
* Limit how many TaskWatchers to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher upsert
|
|
*/
|
|
export type TaskWatcherUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the TaskWatcher to update in case it exists.
|
|
*/
|
|
where: Prisma.TaskWatcherWhereUniqueInput
|
|
/**
|
|
* In case the TaskWatcher found by the `where` argument doesn't exist, create a new TaskWatcher with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.TaskWatcherCreateInput, Prisma.TaskWatcherUncheckedCreateInput>
|
|
/**
|
|
* In case the TaskWatcher was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.TaskWatcherUpdateInput, Prisma.TaskWatcherUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher delete
|
|
*/
|
|
export type TaskWatcherDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which TaskWatcher to delete.
|
|
*/
|
|
where: Prisma.TaskWatcherWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher deleteMany
|
|
*/
|
|
export type TaskWatcherDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which TaskWatchers to delete
|
|
*/
|
|
where?: Prisma.TaskWatcherWhereInput
|
|
/**
|
|
* Limit how many TaskWatchers to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* TaskWatcher without action
|
|
*/
|
|
export type TaskWatcherDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the TaskWatcher
|
|
*/
|
|
select?: Prisma.TaskWatcherSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the TaskWatcher
|
|
*/
|
|
omit?: Prisma.TaskWatcherOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.TaskWatcherInclude<ExtArgs> | null
|
|
}
|