/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `PipelineHandover` 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 PipelineHandover * One completed pipeline handover of a single project. Append-only: an undo * writes a new `ProjektStageChange`, it does not delete the handover trail. */ export type PipelineHandoverModel = runtime.Types.Result.DefaultSelection export type AggregatePipelineHandover = { _count: PipelineHandoverCountAggregateOutputType | null _min: PipelineHandoverMinAggregateOutputType | null _max: PipelineHandoverMaxAggregateOutputType | null } export type PipelineHandoverMinAggregateOutputType = { id: string | null tenantId: string | null createdAt: Date | null projektId: string | null fromPipelineId: string | null toPipelineId: string | null fromStageId: string | null toStageId: string | null performedByUserId: string | null } export type PipelineHandoverMaxAggregateOutputType = { id: string | null tenantId: string | null createdAt: Date | null projektId: string | null fromPipelineId: string | null toPipelineId: string | null fromStageId: string | null toStageId: string | null performedByUserId: string | null } export type PipelineHandoverCountAggregateOutputType = { id: number tenantId: number createdAt: number projektId: number fromPipelineId: number toPipelineId: number fromStageId: number toStageId: number performedByUserId: number _all: number } export type PipelineHandoverMinAggregateInputType = { id?: true tenantId?: true createdAt?: true projektId?: true fromPipelineId?: true toPipelineId?: true fromStageId?: true toStageId?: true performedByUserId?: true } export type PipelineHandoverMaxAggregateInputType = { id?: true tenantId?: true createdAt?: true projektId?: true fromPipelineId?: true toPipelineId?: true fromStageId?: true toStageId?: true performedByUserId?: true } export type PipelineHandoverCountAggregateInputType = { id?: true tenantId?: true createdAt?: true projektId?: true fromPipelineId?: true toPipelineId?: true fromStageId?: true toStageId?: true performedByUserId?: true _all?: true } export type PipelineHandoverAggregateArgs = { /** * Filter which PipelineHandover to aggregate. */ where?: Prisma.PipelineHandoverWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PipelineHandovers to fetch. */ orderBy?: Prisma.PipelineHandoverOrderByWithRelationInput | Prisma.PipelineHandoverOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.PipelineHandoverWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PipelineHandovers 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` PipelineHandovers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned PipelineHandovers **/ _count?: true | PipelineHandoverCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: PipelineHandoverMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: PipelineHandoverMaxAggregateInputType } export type GetPipelineHandoverAggregateType = { [P in keyof T & keyof AggregatePipelineHandover]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type PipelineHandoverGroupByArgs = { where?: Prisma.PipelineHandoverWhereInput orderBy?: Prisma.PipelineHandoverOrderByWithAggregationInput | Prisma.PipelineHandoverOrderByWithAggregationInput[] by: Prisma.PipelineHandoverScalarFieldEnum[] | Prisma.PipelineHandoverScalarFieldEnum having?: Prisma.PipelineHandoverScalarWhereWithAggregatesInput take?: number skip?: number _count?: PipelineHandoverCountAggregateInputType | true _min?: PipelineHandoverMinAggregateInputType _max?: PipelineHandoverMaxAggregateInputType } export type PipelineHandoverGroupByOutputType = { id: string tenantId: string createdAt: Date projektId: string fromPipelineId: string toPipelineId: string fromStageId: string toStageId: string performedByUserId: string | null _count: PipelineHandoverCountAggregateOutputType | null _min: PipelineHandoverMinAggregateOutputType | null _max: PipelineHandoverMaxAggregateOutputType | null } export type GetPipelineHandoverGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof PipelineHandoverGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type PipelineHandoverWhereInput = { AND?: Prisma.PipelineHandoverWhereInput | Prisma.PipelineHandoverWhereInput[] OR?: Prisma.PipelineHandoverWhereInput[] NOT?: Prisma.PipelineHandoverWhereInput | Prisma.PipelineHandoverWhereInput[] id?: Prisma.StringFilter<"PipelineHandover"> | string tenantId?: Prisma.StringFilter<"PipelineHandover"> | string createdAt?: Prisma.DateTimeFilter<"PipelineHandover"> | Date | string projektId?: Prisma.StringFilter<"PipelineHandover"> | string fromPipelineId?: Prisma.StringFilter<"PipelineHandover"> | string toPipelineId?: Prisma.StringFilter<"PipelineHandover"> | string fromStageId?: Prisma.StringFilter<"PipelineHandover"> | string toStageId?: Prisma.StringFilter<"PipelineHandover"> | string performedByUserId?: Prisma.StringNullableFilter<"PipelineHandover"> | string | null items?: Prisma.PipelineHandoverItemListRelationFilter } export type PipelineHandoverOrderByWithRelationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder projektId?: Prisma.SortOrder fromPipelineId?: Prisma.SortOrder toPipelineId?: Prisma.SortOrder fromStageId?: Prisma.SortOrder toStageId?: Prisma.SortOrder performedByUserId?: Prisma.SortOrderInput | Prisma.SortOrder items?: Prisma.PipelineHandoverItemOrderByRelationAggregateInput } export type PipelineHandoverWhereUniqueInput = Prisma.AtLeast<{ id?: string AND?: Prisma.PipelineHandoverWhereInput | Prisma.PipelineHandoverWhereInput[] OR?: Prisma.PipelineHandoverWhereInput[] NOT?: Prisma.PipelineHandoverWhereInput | Prisma.PipelineHandoverWhereInput[] tenantId?: Prisma.StringFilter<"PipelineHandover"> | string createdAt?: Prisma.DateTimeFilter<"PipelineHandover"> | Date | string projektId?: Prisma.StringFilter<"PipelineHandover"> | string fromPipelineId?: Prisma.StringFilter<"PipelineHandover"> | string toPipelineId?: Prisma.StringFilter<"PipelineHandover"> | string fromStageId?: Prisma.StringFilter<"PipelineHandover"> | string toStageId?: Prisma.StringFilter<"PipelineHandover"> | string performedByUserId?: Prisma.StringNullableFilter<"PipelineHandover"> | string | null items?: Prisma.PipelineHandoverItemListRelationFilter }, "id"> export type PipelineHandoverOrderByWithAggregationInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder projektId?: Prisma.SortOrder fromPipelineId?: Prisma.SortOrder toPipelineId?: Prisma.SortOrder fromStageId?: Prisma.SortOrder toStageId?: Prisma.SortOrder performedByUserId?: Prisma.SortOrderInput | Prisma.SortOrder _count?: Prisma.PipelineHandoverCountOrderByAggregateInput _max?: Prisma.PipelineHandoverMaxOrderByAggregateInput _min?: Prisma.PipelineHandoverMinOrderByAggregateInput } export type PipelineHandoverScalarWhereWithAggregatesInput = { AND?: Prisma.PipelineHandoverScalarWhereWithAggregatesInput | Prisma.PipelineHandoverScalarWhereWithAggregatesInput[] OR?: Prisma.PipelineHandoverScalarWhereWithAggregatesInput[] NOT?: Prisma.PipelineHandoverScalarWhereWithAggregatesInput | Prisma.PipelineHandoverScalarWhereWithAggregatesInput[] id?: Prisma.StringWithAggregatesFilter<"PipelineHandover"> | string tenantId?: Prisma.StringWithAggregatesFilter<"PipelineHandover"> | string createdAt?: Prisma.DateTimeWithAggregatesFilter<"PipelineHandover"> | Date | string projektId?: Prisma.StringWithAggregatesFilter<"PipelineHandover"> | string fromPipelineId?: Prisma.StringWithAggregatesFilter<"PipelineHandover"> | string toPipelineId?: Prisma.StringWithAggregatesFilter<"PipelineHandover"> | string fromStageId?: Prisma.StringWithAggregatesFilter<"PipelineHandover"> | string toStageId?: Prisma.StringWithAggregatesFilter<"PipelineHandover"> | string performedByUserId?: Prisma.StringNullableWithAggregatesFilter<"PipelineHandover"> | string | null } export type PipelineHandoverCreateInput = { id?: string tenantId: string createdAt?: Date | string projektId: string fromPipelineId: string toPipelineId: string fromStageId: string toStageId: string performedByUserId?: string | null items?: Prisma.PipelineHandoverItemCreateNestedManyWithoutHandoverInput } export type PipelineHandoverUncheckedCreateInput = { id?: string tenantId: string createdAt?: Date | string projektId: string fromPipelineId: string toPipelineId: string fromStageId: string toStageId: string performedByUserId?: string | null items?: Prisma.PipelineHandoverItemUncheckedCreateNestedManyWithoutHandoverInput } export type PipelineHandoverUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projektId?: Prisma.StringFieldUpdateOperationsInput | string fromPipelineId?: Prisma.StringFieldUpdateOperationsInput | string toPipelineId?: Prisma.StringFieldUpdateOperationsInput | string fromStageId?: Prisma.StringFieldUpdateOperationsInput | string toStageId?: Prisma.StringFieldUpdateOperationsInput | string performedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null items?: Prisma.PipelineHandoverItemUpdateManyWithoutHandoverNestedInput } export type PipelineHandoverUncheckedUpdateInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projektId?: Prisma.StringFieldUpdateOperationsInput | string fromPipelineId?: Prisma.StringFieldUpdateOperationsInput | string toPipelineId?: Prisma.StringFieldUpdateOperationsInput | string fromStageId?: Prisma.StringFieldUpdateOperationsInput | string toStageId?: Prisma.StringFieldUpdateOperationsInput | string performedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null items?: Prisma.PipelineHandoverItemUncheckedUpdateManyWithoutHandoverNestedInput } export type PipelineHandoverCreateManyInput = { id?: string tenantId: string createdAt?: Date | string projektId: string fromPipelineId: string toPipelineId: string fromStageId: string toStageId: string performedByUserId?: string | null } export type PipelineHandoverUpdateManyMutationInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projektId?: Prisma.StringFieldUpdateOperationsInput | string fromPipelineId?: Prisma.StringFieldUpdateOperationsInput | string toPipelineId?: Prisma.StringFieldUpdateOperationsInput | string fromStageId?: Prisma.StringFieldUpdateOperationsInput | string toStageId?: Prisma.StringFieldUpdateOperationsInput | string performedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type PipelineHandoverUncheckedUpdateManyInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projektId?: Prisma.StringFieldUpdateOperationsInput | string fromPipelineId?: Prisma.StringFieldUpdateOperationsInput | string toPipelineId?: Prisma.StringFieldUpdateOperationsInput | string fromStageId?: Prisma.StringFieldUpdateOperationsInput | string toStageId?: Prisma.StringFieldUpdateOperationsInput | string performedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type PipelineHandoverCountOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder projektId?: Prisma.SortOrder fromPipelineId?: Prisma.SortOrder toPipelineId?: Prisma.SortOrder fromStageId?: Prisma.SortOrder toStageId?: Prisma.SortOrder performedByUserId?: Prisma.SortOrder } export type PipelineHandoverMaxOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder projektId?: Prisma.SortOrder fromPipelineId?: Prisma.SortOrder toPipelineId?: Prisma.SortOrder fromStageId?: Prisma.SortOrder toStageId?: Prisma.SortOrder performedByUserId?: Prisma.SortOrder } export type PipelineHandoverMinOrderByAggregateInput = { id?: Prisma.SortOrder tenantId?: Prisma.SortOrder createdAt?: Prisma.SortOrder projektId?: Prisma.SortOrder fromPipelineId?: Prisma.SortOrder toPipelineId?: Prisma.SortOrder fromStageId?: Prisma.SortOrder toStageId?: Prisma.SortOrder performedByUserId?: Prisma.SortOrder } export type PipelineHandoverScalarRelationFilter = { is?: Prisma.PipelineHandoverWhereInput isNot?: Prisma.PipelineHandoverWhereInput } export type PipelineHandoverCreateNestedOneWithoutItemsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PipelineHandoverCreateOrConnectWithoutItemsInput connect?: Prisma.PipelineHandoverWhereUniqueInput } export type PipelineHandoverUpdateOneRequiredWithoutItemsNestedInput = { create?: Prisma.XOR connectOrCreate?: Prisma.PipelineHandoverCreateOrConnectWithoutItemsInput upsert?: Prisma.PipelineHandoverUpsertWithoutItemsInput connect?: Prisma.PipelineHandoverWhereUniqueInput update?: Prisma.XOR, Prisma.PipelineHandoverUncheckedUpdateWithoutItemsInput> } export type PipelineHandoverCreateWithoutItemsInput = { id?: string tenantId: string createdAt?: Date | string projektId: string fromPipelineId: string toPipelineId: string fromStageId: string toStageId: string performedByUserId?: string | null } export type PipelineHandoverUncheckedCreateWithoutItemsInput = { id?: string tenantId: string createdAt?: Date | string projektId: string fromPipelineId: string toPipelineId: string fromStageId: string toStageId: string performedByUserId?: string | null } export type PipelineHandoverCreateOrConnectWithoutItemsInput = { where: Prisma.PipelineHandoverWhereUniqueInput create: Prisma.XOR } export type PipelineHandoverUpsertWithoutItemsInput = { update: Prisma.XOR create: Prisma.XOR where?: Prisma.PipelineHandoverWhereInput } export type PipelineHandoverUpdateToOneWithWhereWithoutItemsInput = { where?: Prisma.PipelineHandoverWhereInput data: Prisma.XOR } export type PipelineHandoverUpdateWithoutItemsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projektId?: Prisma.StringFieldUpdateOperationsInput | string fromPipelineId?: Prisma.StringFieldUpdateOperationsInput | string toPipelineId?: Prisma.StringFieldUpdateOperationsInput | string fromStageId?: Prisma.StringFieldUpdateOperationsInput | string toStageId?: Prisma.StringFieldUpdateOperationsInput | string performedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } export type PipelineHandoverUncheckedUpdateWithoutItemsInput = { id?: Prisma.StringFieldUpdateOperationsInput | string tenantId?: Prisma.StringFieldUpdateOperationsInput | string createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string projektId?: Prisma.StringFieldUpdateOperationsInput | string fromPipelineId?: Prisma.StringFieldUpdateOperationsInput | string toPipelineId?: Prisma.StringFieldUpdateOperationsInput | string fromStageId?: Prisma.StringFieldUpdateOperationsInput | string toStageId?: Prisma.StringFieldUpdateOperationsInput | string performedByUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null } /** * Count Type PipelineHandoverCountOutputType */ export type PipelineHandoverCountOutputType = { items: number } export type PipelineHandoverCountOutputTypeSelect = { items?: boolean | PipelineHandoverCountOutputTypeCountItemsArgs } /** * PipelineHandoverCountOutputType without action */ export type PipelineHandoverCountOutputTypeDefaultArgs = { /** * Select specific fields to fetch from the PipelineHandoverCountOutputType */ select?: Prisma.PipelineHandoverCountOutputTypeSelect | null } /** * PipelineHandoverCountOutputType without action */ export type PipelineHandoverCountOutputTypeCountItemsArgs = { where?: Prisma.PipelineHandoverItemWhereInput } export type PipelineHandoverSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean createdAt?: boolean projektId?: boolean fromPipelineId?: boolean toPipelineId?: boolean fromStageId?: boolean toStageId?: boolean performedByUserId?: boolean items?: boolean | Prisma.PipelineHandover$itemsArgs _count?: boolean | Prisma.PipelineHandoverCountOutputTypeDefaultArgs }, ExtArgs["result"]["pipelineHandover"]> export type PipelineHandoverSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean createdAt?: boolean projektId?: boolean fromPipelineId?: boolean toPipelineId?: boolean fromStageId?: boolean toStageId?: boolean performedByUserId?: boolean }, ExtArgs["result"]["pipelineHandover"]> export type PipelineHandoverSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean tenantId?: boolean createdAt?: boolean projektId?: boolean fromPipelineId?: boolean toPipelineId?: boolean fromStageId?: boolean toStageId?: boolean performedByUserId?: boolean }, ExtArgs["result"]["pipelineHandover"]> export type PipelineHandoverSelectScalar = { id?: boolean tenantId?: boolean createdAt?: boolean projektId?: boolean fromPipelineId?: boolean toPipelineId?: boolean fromStageId?: boolean toStageId?: boolean performedByUserId?: boolean } export type PipelineHandoverOmit = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "createdAt" | "projektId" | "fromPipelineId" | "toPipelineId" | "fromStageId" | "toStageId" | "performedByUserId", ExtArgs["result"]["pipelineHandover"]> export type PipelineHandoverInclude = { items?: boolean | Prisma.PipelineHandover$itemsArgs _count?: boolean | Prisma.PipelineHandoverCountOutputTypeDefaultArgs } export type PipelineHandoverIncludeCreateManyAndReturn = {} export type PipelineHandoverIncludeUpdateManyAndReturn = {} export type $PipelineHandoverPayload = { name: "PipelineHandover" objects: { items: Prisma.$PipelineHandoverItemPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string tenantId: string createdAt: Date projektId: string fromPipelineId: string toPipelineId: string fromStageId: string toStageId: string performedByUserId: string | null }, ExtArgs["result"]["pipelineHandover"]> composites: {} } export type PipelineHandoverGetPayload = runtime.Types.Result.GetResult export type PipelineHandoverCountArgs = Omit & { select?: PipelineHandoverCountAggregateInputType | true } export interface PipelineHandoverDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['PipelineHandover'], meta: { name: 'PipelineHandover' } } /** * Find zero or one PipelineHandover that matches the filter. * @param {PipelineHandoverFindUniqueArgs} args - Arguments to find a PipelineHandover * @example * // Get one PipelineHandover * const pipelineHandover = await prisma.pipelineHandover.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineHandoverClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one PipelineHandover that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {PipelineHandoverFindUniqueOrThrowArgs} args - Arguments to find a PipelineHandover * @example * // Get one PipelineHandover * const pipelineHandover = await prisma.pipelineHandover.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineHandoverClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first PipelineHandover 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 {PipelineHandoverFindFirstArgs} args - Arguments to find a PipelineHandover * @example * // Get one PipelineHandover * const pipelineHandover = await prisma.pipelineHandover.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PipelineHandoverClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first PipelineHandover 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 {PipelineHandoverFindFirstOrThrowArgs} args - Arguments to find a PipelineHandover * @example * // Get one PipelineHandover * const pipelineHandover = await prisma.pipelineHandover.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PipelineHandoverClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more PipelineHandovers 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 {PipelineHandoverFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all PipelineHandovers * const pipelineHandovers = await prisma.pipelineHandover.findMany() * * // Get first 10 PipelineHandovers * const pipelineHandovers = await prisma.pipelineHandover.findMany({ take: 10 }) * * // Only select the `id` * const pipelineHandoverWithIdOnly = await prisma.pipelineHandover.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a PipelineHandover. * @param {PipelineHandoverCreateArgs} args - Arguments to create a PipelineHandover. * @example * // Create one PipelineHandover * const PipelineHandover = await prisma.pipelineHandover.create({ * data: { * // ... data to create a PipelineHandover * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineHandoverClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many PipelineHandovers. * @param {PipelineHandoverCreateManyArgs} args - Arguments to create many PipelineHandovers. * @example * // Create many PipelineHandovers * const pipelineHandover = await prisma.pipelineHandover.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many PipelineHandovers and returns the data saved in the database. * @param {PipelineHandoverCreateManyAndReturnArgs} args - Arguments to create many PipelineHandovers. * @example * // Create many PipelineHandovers * const pipelineHandover = await prisma.pipelineHandover.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many PipelineHandovers and only return the `id` * const pipelineHandoverWithIdOnly = await prisma.pipelineHandover.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 PipelineHandover. * @param {PipelineHandoverDeleteArgs} args - Arguments to delete one PipelineHandover. * @example * // Delete one PipelineHandover * const PipelineHandover = await prisma.pipelineHandover.delete({ * where: { * // ... filter to delete one PipelineHandover * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineHandoverClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one PipelineHandover. * @param {PipelineHandoverUpdateArgs} args - Arguments to update one PipelineHandover. * @example * // Update one PipelineHandover * const pipelineHandover = await prisma.pipelineHandover.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineHandoverClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more PipelineHandovers. * @param {PipelineHandoverDeleteManyArgs} args - Arguments to filter PipelineHandovers to delete. * @example * // Delete a few PipelineHandovers * const { count } = await prisma.pipelineHandover.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PipelineHandovers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PipelineHandoverUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many PipelineHandovers * const pipelineHandover = await prisma.pipelineHandover.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more PipelineHandovers and returns the data updated in the database. * @param {PipelineHandoverUpdateManyAndReturnArgs} args - Arguments to update many PipelineHandovers. * @example * // Update many PipelineHandovers * const pipelineHandover = await prisma.pipelineHandover.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more PipelineHandovers and only return the `id` * const pipelineHandoverWithIdOnly = await prisma.pipelineHandover.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 PipelineHandover. * @param {PipelineHandoverUpsertArgs} args - Arguments to update or create a PipelineHandover. * @example * // Update or create a PipelineHandover * const pipelineHandover = await prisma.pipelineHandover.upsert({ * create: { * // ... data to create a PipelineHandover * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the PipelineHandover we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineHandoverClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of PipelineHandovers. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PipelineHandoverCountArgs} args - Arguments to filter PipelineHandovers to count. * @example * // Count the number of PipelineHandovers * const count = await prisma.pipelineHandover.count({ * where: { * // ... the filter for the PipelineHandovers 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 PipelineHandover. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PipelineHandoverAggregateArgs} 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 PipelineHandover. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {PipelineHandoverGroupByArgs} 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 PipelineHandoverGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: PipelineHandoverGroupByArgs['orderBy'] } : { orderBy?: PipelineHandoverGroupByArgs['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 ? GetPipelineHandoverGroupByPayload : Prisma.PrismaPromise /** * Fields of the PipelineHandover model */ readonly fields: PipelineHandoverFieldRefs; } /** * The delegate class that acts as a "Promise-like" for PipelineHandover. * 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__PipelineHandoverClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" items = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ then(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 PipelineHandover model */ export interface PipelineHandoverFieldRefs { readonly id: Prisma.FieldRef<"PipelineHandover", 'String'> readonly tenantId: Prisma.FieldRef<"PipelineHandover", 'String'> readonly createdAt: Prisma.FieldRef<"PipelineHandover", 'DateTime'> readonly projektId: Prisma.FieldRef<"PipelineHandover", 'String'> readonly fromPipelineId: Prisma.FieldRef<"PipelineHandover", 'String'> readonly toPipelineId: Prisma.FieldRef<"PipelineHandover", 'String'> readonly fromStageId: Prisma.FieldRef<"PipelineHandover", 'String'> readonly toStageId: Prisma.FieldRef<"PipelineHandover", 'String'> readonly performedByUserId: Prisma.FieldRef<"PipelineHandover", 'String'> } // Custom InputTypes /** * PipelineHandover findUnique */ export type PipelineHandoverFindUniqueArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null /** * Filter, which PipelineHandover to fetch. */ where: Prisma.PipelineHandoverWhereUniqueInput } /** * PipelineHandover findUniqueOrThrow */ export type PipelineHandoverFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null /** * Filter, which PipelineHandover to fetch. */ where: Prisma.PipelineHandoverWhereUniqueInput } /** * PipelineHandover findFirst */ export type PipelineHandoverFindFirstArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null /** * Filter, which PipelineHandover to fetch. */ where?: Prisma.PipelineHandoverWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PipelineHandovers to fetch. */ orderBy?: Prisma.PipelineHandoverOrderByWithRelationInput | Prisma.PipelineHandoverOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PipelineHandovers. */ cursor?: Prisma.PipelineHandoverWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PipelineHandovers 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` PipelineHandovers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PipelineHandovers. */ distinct?: Prisma.PipelineHandoverScalarFieldEnum | Prisma.PipelineHandoverScalarFieldEnum[] } /** * PipelineHandover findFirstOrThrow */ export type PipelineHandoverFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null /** * Filter, which PipelineHandover to fetch. */ where?: Prisma.PipelineHandoverWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PipelineHandovers to fetch. */ orderBy?: Prisma.PipelineHandoverOrderByWithRelationInput | Prisma.PipelineHandoverOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for PipelineHandovers. */ cursor?: Prisma.PipelineHandoverWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PipelineHandovers 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` PipelineHandovers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PipelineHandovers. */ distinct?: Prisma.PipelineHandoverScalarFieldEnum | Prisma.PipelineHandoverScalarFieldEnum[] } /** * PipelineHandover findMany */ export type PipelineHandoverFindManyArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null /** * Filter, which PipelineHandovers to fetch. */ where?: Prisma.PipelineHandoverWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of PipelineHandovers to fetch. */ orderBy?: Prisma.PipelineHandoverOrderByWithRelationInput | Prisma.PipelineHandoverOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing PipelineHandovers. */ cursor?: Prisma.PipelineHandoverWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` PipelineHandovers 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` PipelineHandovers. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of PipelineHandovers. */ distinct?: Prisma.PipelineHandoverScalarFieldEnum | Prisma.PipelineHandoverScalarFieldEnum[] } /** * PipelineHandover create */ export type PipelineHandoverCreateArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null /** * The data needed to create a PipelineHandover. */ data: Prisma.XOR } /** * PipelineHandover createMany */ export type PipelineHandoverCreateManyArgs = { /** * The data used to create many PipelineHandovers. */ data: Prisma.PipelineHandoverCreateManyInput | Prisma.PipelineHandoverCreateManyInput[] skipDuplicates?: boolean } /** * PipelineHandover createManyAndReturn */ export type PipelineHandoverCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelectCreateManyAndReturn | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * The data used to create many PipelineHandovers. */ data: Prisma.PipelineHandoverCreateManyInput | Prisma.PipelineHandoverCreateManyInput[] skipDuplicates?: boolean } /** * PipelineHandover update */ export type PipelineHandoverUpdateArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null /** * The data needed to update a PipelineHandover. */ data: Prisma.XOR /** * Choose, which PipelineHandover to update. */ where: Prisma.PipelineHandoverWhereUniqueInput } /** * PipelineHandover updateMany */ export type PipelineHandoverUpdateManyArgs = { /** * The data used to update PipelineHandovers. */ data: Prisma.XOR /** * Filter which PipelineHandovers to update */ where?: Prisma.PipelineHandoverWhereInput /** * Limit how many PipelineHandovers to update. */ limit?: number } /** * PipelineHandover updateManyAndReturn */ export type PipelineHandoverUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelectUpdateManyAndReturn | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * The data used to update PipelineHandovers. */ data: Prisma.XOR /** * Filter which PipelineHandovers to update */ where?: Prisma.PipelineHandoverWhereInput /** * Limit how many PipelineHandovers to update. */ limit?: number } /** * PipelineHandover upsert */ export type PipelineHandoverUpsertArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null /** * The filter to search for the PipelineHandover to update in case it exists. */ where: Prisma.PipelineHandoverWhereUniqueInput /** * In case the PipelineHandover found by the `where` argument doesn't exist, create a new PipelineHandover with this data. */ create: Prisma.XOR /** * In case the PipelineHandover was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * PipelineHandover delete */ export type PipelineHandoverDeleteArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null /** * Filter which PipelineHandover to delete. */ where: Prisma.PipelineHandoverWhereUniqueInput } /** * PipelineHandover deleteMany */ export type PipelineHandoverDeleteManyArgs = { /** * Filter which PipelineHandovers to delete */ where?: Prisma.PipelineHandoverWhereInput /** * Limit how many PipelineHandovers to delete. */ limit?: number } /** * PipelineHandover.items */ export type PipelineHandover$itemsArgs = { /** * Select specific fields to fetch from the PipelineHandoverItem */ select?: Prisma.PipelineHandoverItemSelect | null /** * Omit specific fields from the PipelineHandoverItem */ omit?: Prisma.PipelineHandoverItemOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverItemInclude | null where?: Prisma.PipelineHandoverItemWhereInput orderBy?: Prisma.PipelineHandoverItemOrderByWithRelationInput | Prisma.PipelineHandoverItemOrderByWithRelationInput[] cursor?: Prisma.PipelineHandoverItemWhereUniqueInput take?: number skip?: number distinct?: Prisma.PipelineHandoverItemScalarFieldEnum | Prisma.PipelineHandoverItemScalarFieldEnum[] } /** * PipelineHandover without action */ export type PipelineHandoverDefaultArgs = { /** * Select specific fields to fetch from the PipelineHandover */ select?: Prisma.PipelineHandoverSelect | null /** * Omit specific fields from the PipelineHandover */ omit?: Prisma.PipelineHandoverOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.PipelineHandoverInclude | null }