/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `Step` 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 Step * */ export type StepModel = runtime.Types.Result.DefaultSelection export type AggregateStep = { _count: StepCountAggregateOutputType | null _avg: StepAvgAggregateOutputType | null _sum: StepSumAggregateOutputType | null _min: StepMinAggregateOutputType | null _max: StepMaxAggregateOutputType | null } export type StepAvgAggregateOutputType = { id: number | null order: number | null valid: number | null pipelineId: number | null } export type StepSumAggregateOutputType = { id: number | null order: number | null valid: number | null pipelineId: number | null } export type StepMinAggregateOutputType = { id: number | null name: string | null order: number | null script: string | null valid: number | null createdAt: Date | null updatedAt: Date | null createdBy: string | null updatedBy: string | null pipelineId: number | null } export type StepMaxAggregateOutputType = { id: number | null name: string | null order: number | null script: string | null valid: number | null createdAt: Date | null updatedAt: Date | null createdBy: string | null updatedBy: string | null pipelineId: number | null } export type StepCountAggregateOutputType = { id: number name: number order: number script: number valid: number createdAt: number updatedAt: number createdBy: number updatedBy: number pipelineId: number _all: number } export type StepAvgAggregateInputType = { id?: true order?: true valid?: true pipelineId?: true } export type StepSumAggregateInputType = { id?: true order?: true valid?: true pipelineId?: true } export type StepMinAggregateInputType = { id?: true name?: true order?: true script?: true valid?: true createdAt?: true updatedAt?: true createdBy?: true updatedBy?: true pipelineId?: true } export type StepMaxAggregateInputType = { id?: true name?: true order?: true script?: true valid?: true createdAt?: true updatedAt?: true createdBy?: true updatedBy?: true pipelineId?: true } export type StepCountAggregateInputType = { id?: true name?: true order?: true script?: true valid?: true createdAt?: true updatedAt?: true createdBy?: true updatedBy?: true pipelineId?: true _all?: true } export type StepAggregateArgs = { /** * Filter which Step to aggregate. */ where?: Prisma.StepWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Steps to fetch. */ orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.StepWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Steps 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` Steps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned Steps **/ _count?: true | StepCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: StepAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: StepSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: StepMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: StepMaxAggregateInputType } export type GetStepAggregateType = { [P in keyof T & keyof AggregateStep]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type StepGroupByArgs = { where?: Prisma.StepWhereInput orderBy?: Prisma.StepOrderByWithAggregationInput | Prisma.StepOrderByWithAggregationInput[] by: Prisma.StepScalarFieldEnum[] | Prisma.StepScalarFieldEnum having?: Prisma.StepScalarWhereWithAggregatesInput take?: number skip?: number _count?: StepCountAggregateInputType | true _avg?: StepAvgAggregateInputType _sum?: StepSumAggregateInputType _min?: StepMinAggregateInputType _max?: StepMaxAggregateInputType } export type StepGroupByOutputType = { id: number name: string order: number script: string valid: number createdAt: Date updatedAt: Date createdBy: string updatedBy: string pipelineId: number _count: StepCountAggregateOutputType | null _avg: StepAvgAggregateOutputType | null _sum: StepSumAggregateOutputType | null _min: StepMinAggregateOutputType | null _max: StepMaxAggregateOutputType | null } type GetStepGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof StepGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type StepWhereInput = { AND?: Prisma.StepWhereInput | Prisma.StepWhereInput[] OR?: Prisma.StepWhereInput[] NOT?: Prisma.StepWhereInput | Prisma.StepWhereInput[] id?: Prisma.IntFilter<"Step"> | number name?: Prisma.StringFilter<"Step"> | string order?: Prisma.IntFilter<"Step"> | number script?: Prisma.StringFilter<"Step"> | string valid?: Prisma.IntFilter<"Step"> | number createdAt?: Prisma.DateTimeFilter<"Step"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Step"> | Date | string createdBy?: Prisma.StringFilter<"Step"> | string updatedBy?: Prisma.StringFilter<"Step"> | string pipelineId?: Prisma.IntFilter<"Step"> | number pipeline?: Prisma.XOR } export type StepOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder order?: Prisma.SortOrder script?: Prisma.SortOrder valid?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder createdBy?: Prisma.SortOrder updatedBy?: Prisma.SortOrder pipelineId?: Prisma.SortOrder pipeline?: Prisma.PipelineOrderByWithRelationInput } export type StepWhereUniqueInput = Prisma.AtLeast<{ id?: number AND?: Prisma.StepWhereInput | Prisma.StepWhereInput[] OR?: Prisma.StepWhereInput[] NOT?: Prisma.StepWhereInput | Prisma.StepWhereInput[] name?: Prisma.StringFilter<"Step"> | string order?: Prisma.IntFilter<"Step"> | number script?: Prisma.StringFilter<"Step"> | string valid?: Prisma.IntFilter<"Step"> | number createdAt?: Prisma.DateTimeFilter<"Step"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Step"> | Date | string createdBy?: Prisma.StringFilter<"Step"> | string updatedBy?: Prisma.StringFilter<"Step"> | string pipelineId?: Prisma.IntFilter<"Step"> | number pipeline?: Prisma.XOR }, "id"> export type StepOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder order?: Prisma.SortOrder script?: Prisma.SortOrder valid?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder createdBy?: Prisma.SortOrder updatedBy?: Prisma.SortOrder pipelineId?: Prisma.SortOrder _count?: Prisma.StepCountOrderByAggregateInput _avg?: Prisma.StepAvgOrderByAggregateInput _max?: Prisma.StepMaxOrderByAggregateInput _min?: Prisma.StepMinOrderByAggregateInput _sum?: Prisma.StepSumOrderByAggregateInput } export type StepScalarWhereWithAggregatesInput = { AND?: Prisma.StepScalarWhereWithAggregatesInput | Prisma.StepScalarWhereWithAggregatesInput[] OR?: Prisma.StepScalarWhereWithAggregatesInput[] NOT?: Prisma.StepScalarWhereWithAggregatesInput | Prisma.StepScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"Step"> | number name?: Prisma.StringWithAggregatesFilter<"Step"> | string order?: Prisma.IntWithAggregatesFilter<"Step"> | number script?: Prisma.StringWithAggregatesFilter<"Step"> | string valid?: Prisma.IntWithAggregatesFilter<"Step"> | number createdAt?: Prisma.DateTimeWithAggregatesFilter<"Step"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Step"> | Date | string createdBy?: Prisma.StringWithAggregatesFilter<"Step"> | string updatedBy?: Prisma.StringWithAggregatesFilter<"Step"> | string pipelineId?: Prisma.IntWithAggregatesFilter<"Step"> | number } export type StepCreateInput = { name: string order: number script: string valid?: number createdAt?: Date | string updatedAt?: Date | string createdBy: string updatedBy: string pipeline: Prisma.PipelineCreateNestedOneWithoutStepsInput } export type StepUncheckedCreateInput = { id?: number name: string order: number script: string valid?: number createdAt?: Date | string updatedAt?: Date | string createdBy: string updatedBy: string pipelineId: number } export type StepUpdateInput = { name?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number script?: Prisma.StringFieldUpdateOperationsInput | string valid?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdBy?: Prisma.StringFieldUpdateOperationsInput | string updatedBy?: Prisma.StringFieldUpdateOperationsInput | string pipeline?: Prisma.PipelineUpdateOneRequiredWithoutStepsNestedInput } export type StepUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number script?: Prisma.StringFieldUpdateOperationsInput | string valid?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdBy?: Prisma.StringFieldUpdateOperationsInput | string updatedBy?: Prisma.StringFieldUpdateOperationsInput | string pipelineId?: Prisma.IntFieldUpdateOperationsInput | number } export type StepCreateManyInput = { id?: number name: string order: number script: string valid?: number createdAt?: Date | string updatedAt?: Date | string createdBy: string updatedBy: string pipelineId: number } export type StepUpdateManyMutationInput = { name?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number script?: Prisma.StringFieldUpdateOperationsInput | string valid?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdBy?: Prisma.StringFieldUpdateOperationsInput | string updatedBy?: Prisma.StringFieldUpdateOperationsInput | string } export type StepUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number script?: Prisma.StringFieldUpdateOperationsInput | string valid?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdBy?: Prisma.StringFieldUpdateOperationsInput | string updatedBy?: Prisma.StringFieldUpdateOperationsInput | string pipelineId?: Prisma.IntFieldUpdateOperationsInput | number } export type StepListRelationFilter = { every?: Prisma.StepWhereInput some?: Prisma.StepWhereInput none?: Prisma.StepWhereInput } export type StepOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type StepCountOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder order?: Prisma.SortOrder script?: Prisma.SortOrder valid?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder createdBy?: Prisma.SortOrder updatedBy?: Prisma.SortOrder pipelineId?: Prisma.SortOrder } export type StepAvgOrderByAggregateInput = { id?: Prisma.SortOrder order?: Prisma.SortOrder valid?: Prisma.SortOrder pipelineId?: Prisma.SortOrder } export type StepMaxOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder order?: Prisma.SortOrder script?: Prisma.SortOrder valid?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder createdBy?: Prisma.SortOrder updatedBy?: Prisma.SortOrder pipelineId?: Prisma.SortOrder } export type StepMinOrderByAggregateInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder order?: Prisma.SortOrder script?: Prisma.SortOrder valid?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder createdBy?: Prisma.SortOrder updatedBy?: Prisma.SortOrder pipelineId?: Prisma.SortOrder } export type StepSumOrderByAggregateInput = { id?: Prisma.SortOrder order?: Prisma.SortOrder valid?: Prisma.SortOrder pipelineId?: Prisma.SortOrder } export type StepCreateNestedManyWithoutPipelineInput = { create?: Prisma.XOR | Prisma.StepCreateWithoutPipelineInput[] | Prisma.StepUncheckedCreateWithoutPipelineInput[] connectOrCreate?: Prisma.StepCreateOrConnectWithoutPipelineInput | Prisma.StepCreateOrConnectWithoutPipelineInput[] createMany?: Prisma.StepCreateManyPipelineInputEnvelope connect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] } export type StepUncheckedCreateNestedManyWithoutPipelineInput = { create?: Prisma.XOR | Prisma.StepCreateWithoutPipelineInput[] | Prisma.StepUncheckedCreateWithoutPipelineInput[] connectOrCreate?: Prisma.StepCreateOrConnectWithoutPipelineInput | Prisma.StepCreateOrConnectWithoutPipelineInput[] createMany?: Prisma.StepCreateManyPipelineInputEnvelope connect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] } export type StepUpdateManyWithoutPipelineNestedInput = { create?: Prisma.XOR | Prisma.StepCreateWithoutPipelineInput[] | Prisma.StepUncheckedCreateWithoutPipelineInput[] connectOrCreate?: Prisma.StepCreateOrConnectWithoutPipelineInput | Prisma.StepCreateOrConnectWithoutPipelineInput[] upsert?: Prisma.StepUpsertWithWhereUniqueWithoutPipelineInput | Prisma.StepUpsertWithWhereUniqueWithoutPipelineInput[] createMany?: Prisma.StepCreateManyPipelineInputEnvelope set?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] disconnect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] delete?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] connect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] update?: Prisma.StepUpdateWithWhereUniqueWithoutPipelineInput | Prisma.StepUpdateWithWhereUniqueWithoutPipelineInput[] updateMany?: Prisma.StepUpdateManyWithWhereWithoutPipelineInput | Prisma.StepUpdateManyWithWhereWithoutPipelineInput[] deleteMany?: Prisma.StepScalarWhereInput | Prisma.StepScalarWhereInput[] } export type StepUncheckedUpdateManyWithoutPipelineNestedInput = { create?: Prisma.XOR | Prisma.StepCreateWithoutPipelineInput[] | Prisma.StepUncheckedCreateWithoutPipelineInput[] connectOrCreate?: Prisma.StepCreateOrConnectWithoutPipelineInput | Prisma.StepCreateOrConnectWithoutPipelineInput[] upsert?: Prisma.StepUpsertWithWhereUniqueWithoutPipelineInput | Prisma.StepUpsertWithWhereUniqueWithoutPipelineInput[] createMany?: Prisma.StepCreateManyPipelineInputEnvelope set?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] disconnect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] delete?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] connect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] update?: Prisma.StepUpdateWithWhereUniqueWithoutPipelineInput | Prisma.StepUpdateWithWhereUniqueWithoutPipelineInput[] updateMany?: Prisma.StepUpdateManyWithWhereWithoutPipelineInput | Prisma.StepUpdateManyWithWhereWithoutPipelineInput[] deleteMany?: Prisma.StepScalarWhereInput | Prisma.StepScalarWhereInput[] } export type StepCreateWithoutPipelineInput = { name: string order: number script: string valid?: number createdAt?: Date | string updatedAt?: Date | string createdBy: string updatedBy: string } export type StepUncheckedCreateWithoutPipelineInput = { id?: number name: string order: number script: string valid?: number createdAt?: Date | string updatedAt?: Date | string createdBy: string updatedBy: string } export type StepCreateOrConnectWithoutPipelineInput = { where: Prisma.StepWhereUniqueInput create: Prisma.XOR } export type StepCreateManyPipelineInputEnvelope = { data: Prisma.StepCreateManyPipelineInput | Prisma.StepCreateManyPipelineInput[] } export type StepUpsertWithWhereUniqueWithoutPipelineInput = { where: Prisma.StepWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type StepUpdateWithWhereUniqueWithoutPipelineInput = { where: Prisma.StepWhereUniqueInput data: Prisma.XOR } export type StepUpdateManyWithWhereWithoutPipelineInput = { where: Prisma.StepScalarWhereInput data: Prisma.XOR } export type StepScalarWhereInput = { AND?: Prisma.StepScalarWhereInput | Prisma.StepScalarWhereInput[] OR?: Prisma.StepScalarWhereInput[] NOT?: Prisma.StepScalarWhereInput | Prisma.StepScalarWhereInput[] id?: Prisma.IntFilter<"Step"> | number name?: Prisma.StringFilter<"Step"> | string order?: Prisma.IntFilter<"Step"> | number script?: Prisma.StringFilter<"Step"> | string valid?: Prisma.IntFilter<"Step"> | number createdAt?: Prisma.DateTimeFilter<"Step"> | Date | string updatedAt?: Prisma.DateTimeFilter<"Step"> | Date | string createdBy?: Prisma.StringFilter<"Step"> | string updatedBy?: Prisma.StringFilter<"Step"> | string pipelineId?: Prisma.IntFilter<"Step"> | number } export type StepCreateManyPipelineInput = { id?: number name: string order: number script: string valid?: number createdAt?: Date | string updatedAt?: Date | string createdBy: string updatedBy: string } export type StepUpdateWithoutPipelineInput = { name?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number script?: Prisma.StringFieldUpdateOperationsInput | string valid?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdBy?: Prisma.StringFieldUpdateOperationsInput | string updatedBy?: Prisma.StringFieldUpdateOperationsInput | string } export type StepUncheckedUpdateWithoutPipelineInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number script?: Prisma.StringFieldUpdateOperationsInput | string valid?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdBy?: Prisma.StringFieldUpdateOperationsInput | string updatedBy?: Prisma.StringFieldUpdateOperationsInput | string } export type StepUncheckedUpdateManyWithoutPipelineInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string order?: Prisma.IntFieldUpdateOperationsInput | number script?: Prisma.StringFieldUpdateOperationsInput | string valid?: Prisma.IntFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string createdBy?: Prisma.StringFieldUpdateOperationsInput | string updatedBy?: Prisma.StringFieldUpdateOperationsInput | string } export type StepSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean order?: boolean script?: boolean valid?: boolean createdAt?: boolean updatedAt?: boolean createdBy?: boolean updatedBy?: boolean pipelineId?: boolean pipeline?: boolean | Prisma.PipelineDefaultArgs }, ExtArgs["result"]["step"]> export type StepSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean order?: boolean script?: boolean valid?: boolean createdAt?: boolean updatedAt?: boolean createdBy?: boolean updatedBy?: boolean pipelineId?: boolean pipeline?: boolean | Prisma.PipelineDefaultArgs }, ExtArgs["result"]["step"]> export type StepSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean name?: boolean order?: boolean script?: boolean valid?: boolean createdAt?: boolean updatedAt?: boolean createdBy?: boolean updatedBy?: boolean pipelineId?: boolean pipeline?: boolean | Prisma.PipelineDefaultArgs }, ExtArgs["result"]["step"]> export type StepSelectScalar = { id?: boolean name?: boolean order?: boolean script?: boolean valid?: boolean createdAt?: boolean updatedAt?: boolean createdBy?: boolean updatedBy?: boolean pipelineId?: boolean } export type StepOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "order" | "script" | "valid" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "pipelineId", ExtArgs["result"]["step"]> export type StepInclude = { pipeline?: boolean | Prisma.PipelineDefaultArgs } export type StepIncludeCreateManyAndReturn = { pipeline?: boolean | Prisma.PipelineDefaultArgs } export type StepIncludeUpdateManyAndReturn = { pipeline?: boolean | Prisma.PipelineDefaultArgs } export type $StepPayload = { name: "Step" objects: { pipeline: Prisma.$PipelinePayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number name: string order: number script: string valid: number createdAt: Date updatedAt: Date createdBy: string updatedBy: string pipelineId: number }, ExtArgs["result"]["step"]> composites: {} } export type StepGetPayload = runtime.Types.Result.GetResult export type StepCountArgs = Omit & { select?: StepCountAggregateInputType | true } export interface StepDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['Step'], meta: { name: 'Step' } } /** * Find zero or one Step that matches the filter. * @param {StepFindUniqueArgs} args - Arguments to find a Step * @example * // Get one Step * const step = await prisma.step.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one Step that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {StepFindUniqueOrThrowArgs} args - Arguments to find a Step * @example * // Get one Step * const step = await prisma.step.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first Step 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 {StepFindFirstArgs} args - Arguments to find a Step * @example * // Get one Step * const step = await prisma.step.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first Step 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 {StepFindFirstOrThrowArgs} args - Arguments to find a Step * @example * // Get one Step * const step = await prisma.step.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more Steps 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 {StepFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all Steps * const steps = await prisma.step.findMany() * * // Get first 10 Steps * const steps = await prisma.step.findMany({ take: 10 }) * * // Only select the `id` * const stepWithIdOnly = await prisma.step.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a Step. * @param {StepCreateArgs} args - Arguments to create a Step. * @example * // Create one Step * const Step = await prisma.step.create({ * data: { * // ... data to create a Step * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many Steps. * @param {StepCreateManyArgs} args - Arguments to create many Steps. * @example * // Create many Steps * const step = await prisma.step.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create many Steps and returns the data saved in the database. * @param {StepCreateManyAndReturnArgs} args - Arguments to create many Steps. * @example * // Create many Steps * const step = await prisma.step.createManyAndReturn({ * data: [ * // ... provide data here * ] * }) * * // Create many Steps and only return the `id` * const stepWithIdOnly = await prisma.step.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 Step. * @param {StepDeleteArgs} args - Arguments to delete one Step. * @example * // Delete one Step * const Step = await prisma.step.delete({ * where: { * // ... filter to delete one Step * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one Step. * @param {StepUpdateArgs} args - Arguments to update one Step. * @example * // Update one Step * const step = await prisma.step.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more Steps. * @param {StepDeleteManyArgs} args - Arguments to filter Steps to delete. * @example * // Delete a few Steps * const { count } = await prisma.step.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Steps. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StepUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many Steps * const step = await prisma.step.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more Steps and returns the data updated in the database. * @param {StepUpdateManyAndReturnArgs} args - Arguments to update many Steps. * @example * // Update many Steps * const step = await prisma.step.updateManyAndReturn({ * where: { * // ... provide filter here * }, * data: [ * // ... provide data here * ] * }) * * // Update zero or more Steps and only return the `id` * const stepWithIdOnly = await prisma.step.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 Step. * @param {StepUpsertArgs} args - Arguments to update or create a Step. * @example * // Update or create a Step * const step = await prisma.step.upsert({ * create: { * // ... data to create a Step * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the Step we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of Steps. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StepCountArgs} args - Arguments to filter Steps to count. * @example * // Count the number of Steps * const count = await prisma.step.count({ * where: { * // ... the filter for the Steps 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 Step. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StepAggregateArgs} 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 Step. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {StepGroupByArgs} 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 StepGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: StepGroupByArgs['orderBy'] } : { orderBy?: StepGroupByArgs['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 ? GetStepGroupByPayload : Prisma.PrismaPromise /** * Fields of the Step model */ readonly fields: StepFieldRefs; } /** * The delegate class that acts as a "Promise-like" for Step. * 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__StepClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" pipeline = {}>(args?: Prisma.Subset>): Prisma.Prisma__PipelineClient, 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 Step model */ export interface StepFieldRefs { readonly id: Prisma.FieldRef<"Step", 'Int'> readonly name: Prisma.FieldRef<"Step", 'String'> readonly order: Prisma.FieldRef<"Step", 'Int'> readonly script: Prisma.FieldRef<"Step", 'String'> readonly valid: Prisma.FieldRef<"Step", 'Int'> readonly createdAt: Prisma.FieldRef<"Step", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"Step", 'DateTime'> readonly createdBy: Prisma.FieldRef<"Step", 'String'> readonly updatedBy: Prisma.FieldRef<"Step", 'String'> readonly pipelineId: Prisma.FieldRef<"Step", 'Int'> } // Custom InputTypes /** * Step findUnique */ export type StepFindUniqueArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null /** * Filter, which Step to fetch. */ where: Prisma.StepWhereUniqueInput } /** * Step findUniqueOrThrow */ export type StepFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null /** * Filter, which Step to fetch. */ where: Prisma.StepWhereUniqueInput } /** * Step findFirst */ export type StepFindFirstArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null /** * Filter, which Step to fetch. */ where?: Prisma.StepWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Steps to fetch. */ orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Steps. */ cursor?: Prisma.StepWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Steps 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` Steps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Steps. */ distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[] } /** * Step findFirstOrThrow */ export type StepFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null /** * Filter, which Step to fetch. */ where?: Prisma.StepWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Steps to fetch. */ orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for Steps. */ cursor?: Prisma.StepWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Steps 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` Steps. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of Steps. */ distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[] } /** * Step findMany */ export type StepFindManyArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null /** * Filter, which Steps to fetch. */ where?: Prisma.StepWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of Steps to fetch. */ orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing Steps. */ cursor?: Prisma.StepWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` Steps 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` Steps. */ skip?: number distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[] } /** * Step create */ export type StepCreateArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null /** * The data needed to create a Step. */ data: Prisma.XOR } /** * Step createMany */ export type StepCreateManyArgs = { /** * The data used to create many Steps. */ data: Prisma.StepCreateManyInput | Prisma.StepCreateManyInput[] } /** * Step createManyAndReturn */ export type StepCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelectCreateManyAndReturn | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * The data used to create many Steps. */ data: Prisma.StepCreateManyInput | Prisma.StepCreateManyInput[] /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepIncludeCreateManyAndReturn | null } /** * Step update */ export type StepUpdateArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null /** * The data needed to update a Step. */ data: Prisma.XOR /** * Choose, which Step to update. */ where: Prisma.StepWhereUniqueInput } /** * Step updateMany */ export type StepUpdateManyArgs = { /** * The data used to update Steps. */ data: Prisma.XOR /** * Filter which Steps to update */ where?: Prisma.StepWhereInput /** * Limit how many Steps to update. */ limit?: number } /** * Step updateManyAndReturn */ export type StepUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelectUpdateManyAndReturn | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * The data used to update Steps. */ data: Prisma.XOR /** * Filter which Steps to update */ where?: Prisma.StepWhereInput /** * Limit how many Steps to update. */ limit?: number /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepIncludeUpdateManyAndReturn | null } /** * Step upsert */ export type StepUpsertArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null /** * The filter to search for the Step to update in case it exists. */ where: Prisma.StepWhereUniqueInput /** * In case the Step found by the `where` argument doesn't exist, create a new Step with this data. */ create: Prisma.XOR /** * In case the Step was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * Step delete */ export type StepDeleteArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null /** * Filter which Step to delete. */ where: Prisma.StepWhereUniqueInput } /** * Step deleteMany */ export type StepDeleteManyArgs = { /** * Filter which Steps to delete */ where?: Prisma.StepWhereInput /** * Limit how many Steps to delete. */ limit?: number } /** * Step without action */ export type StepDefaultArgs = { /** * Select specific fields to fetch from the Step */ select?: Prisma.StepSelect | null /** * Omit specific fields from the Step */ omit?: Prisma.StepOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.StepInclude | null }