/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateTaskWatcher]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type TaskWatcherGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof TaskWatcherGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 } 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 }, "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[] connectOrCreate?: Prisma.TaskWatcherCreateOrConnectWithoutTaskInput | Prisma.TaskWatcherCreateOrConnectWithoutTaskInput[] createMany?: Prisma.TaskWatcherCreateManyTaskInputEnvelope connect?: Prisma.TaskWatcherWhereUniqueInput | Prisma.TaskWatcherWhereUniqueInput[] } export type TaskWatcherUncheckedCreateNestedManyWithoutTaskInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type TaskWatcherCreateManyTaskInputEnvelope = { data: Prisma.TaskWatcherCreateManyTaskInput | Prisma.TaskWatcherCreateManyTaskInput[] skipDuplicates?: boolean } export type TaskWatcherUpsertWithWhereUniqueWithoutTaskInput = { where: Prisma.TaskWatcherWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type TaskWatcherUpdateWithWhereUniqueWithoutTaskInput = { where: Prisma.TaskWatcherWhereUniqueInput data: Prisma.XOR } export type TaskWatcherUpdateManyWithWhereWithoutTaskInput = { where: Prisma.TaskWatcherScalarWhereInput data: Prisma.XOR } 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 = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean taskId?: boolean userId?: boolean task?: boolean | Prisma.TaskDefaultArgs }, ExtArgs["result"]["taskWatcher"]> export type TaskWatcherSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean taskId?: boolean userId?: boolean task?: boolean | Prisma.TaskDefaultArgs }, ExtArgs["result"]["taskWatcher"]> export type TaskWatcherSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean createdAt?: boolean tenantId?: boolean taskId?: boolean userId?: boolean task?: boolean | Prisma.TaskDefaultArgs }, ExtArgs["result"]["taskWatcher"]> export type TaskWatcherSelectScalar = { id?: boolean createdAt?: boolean tenantId?: boolean taskId?: boolean userId?: boolean } export type TaskWatcherOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "tenantId" | "taskId" | "userId", ExtArgs["result"]["taskWatcher"]> export type TaskWatcherInclude = { task?: boolean | Prisma.TaskDefaultArgs } export type TaskWatcherIncludeCreateManyAndReturn = { task?: boolean | Prisma.TaskDefaultArgs } export type TaskWatcherIncludeUpdateManyAndReturn = { task?: boolean | Prisma.TaskDefaultArgs } export type $TaskWatcherPayload = { name: "TaskWatcher" objects: { task: Prisma.$TaskPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string createdAt: Date tenantId: string taskId: string userId: string }, ExtArgs["result"]["taskWatcher"]> composites: {} } export type TaskWatcherGetPayload = runtime.Types.Result.GetResult export type TaskWatcherCountArgs = Omit & { select?: TaskWatcherCountAggregateInputType | true } export interface TaskWatcherDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__TaskWatcherClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TaskWatcherClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__TaskWatcherClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__TaskWatcherClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TaskWatcherClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TaskWatcherClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TaskWatcherClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__TaskWatcherClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: TaskWatcherGroupByArgs['orderBy'] } : { orderBy?: TaskWatcherGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetTaskWatcherGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" task = {}>(args?: Prisma.Subset>): Prisma.Prisma__TaskClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | null /** * Filter, which TaskWatcher to fetch. */ where: Prisma.TaskWatcherWhereUniqueInput } /** * TaskWatcher findUniqueOrThrow */ export type TaskWatcherFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | null /** * Filter, which TaskWatcher to fetch. */ where: Prisma.TaskWatcherWhereUniqueInput } /** * TaskWatcher findFirst */ export type TaskWatcherFindFirstArgs = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | 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 = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | 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 = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | 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 = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | null /** * The data needed to create a TaskWatcher. */ data: Prisma.XOR } /** * TaskWatcher createMany */ export type TaskWatcherCreateManyArgs = { /** * The data used to create many TaskWatchers. */ data: Prisma.TaskWatcherCreateManyInput | Prisma.TaskWatcherCreateManyInput[] skipDuplicates?: boolean } /** * TaskWatcher createManyAndReturn */ export type TaskWatcherCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelectCreateManyAndReturn | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | 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 | null } /** * TaskWatcher update */ export type TaskWatcherUpdateArgs = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | null /** * The data needed to update a TaskWatcher. */ data: Prisma.XOR /** * Choose, which TaskWatcher to update. */ where: Prisma.TaskWatcherWhereUniqueInput } /** * TaskWatcher updateMany */ export type TaskWatcherUpdateManyArgs = { /** * The data used to update TaskWatchers. */ data: Prisma.XOR /** * Filter which TaskWatchers to update */ where?: Prisma.TaskWatcherWhereInput /** * Limit how many TaskWatchers to update. */ limit?: number } /** * TaskWatcher updateManyAndReturn */ export type TaskWatcherUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelectUpdateManyAndReturn | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * The data used to update TaskWatchers. */ data: Prisma.XOR /** * 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 | null } /** * TaskWatcher upsert */ export type TaskWatcherUpsertArgs = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | 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 /** * In case the TaskWatcher was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * TaskWatcher delete */ export type TaskWatcherDeleteArgs = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | null /** * Filter which TaskWatcher to delete. */ where: Prisma.TaskWatcherWhereUniqueInput } /** * TaskWatcher deleteMany */ export type TaskWatcherDeleteManyArgs = { /** * Filter which TaskWatchers to delete */ where?: Prisma.TaskWatcherWhereInput /** * Limit how many TaskWatchers to delete. */ limit?: number } /** * TaskWatcher without action */ export type TaskWatcherDefaultArgs = { /** * Select specific fields to fetch from the TaskWatcher */ select?: Prisma.TaskWatcherSelect | null /** * Omit specific fields from the TaskWatcher */ omit?: Prisma.TaskWatcherOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.TaskWatcherInclude | null }