Files
foka-ci/apps/server/generated/models/Pipeline.ts
hurole d22fdc9618 feat: 实现环境变量预设功能 & 移除稀疏检出
## 后端改动
- 添加 Project.envPresets 字段(JSON 格式)
- 移除 Deployment.env 字段,统一使用 envVars
- 更新部署 DTO,支持 envVars (Record<string, string>)
- pipeline-runner 支持解析并注入 envVars 到环境
- 移除稀疏检出模板和相关环境变量
- 优化代码格式(Biome lint & format)

## 前端改动
- 新增 EnvPresetsEditor 组件(支持单选/多选/输入框类型)
- 项目创建/编辑界面集成环境预设编辑器
- 部署界面基于预设动态生成环境变量表单
- 移除稀疏检出表单项
- 项目详情页添加环境变量预设配置 tab
- 优化部署界面布局(基本参数 & 环境变量分区)

## 文档
- 添加完整文档目录结构(docs/)
- 创建设计文档 design-0005(部署流程重构)
- 添加 API 文档、架构设计文档等

## 数据库
- 执行 prisma db push 同步 schema 变更
2026-01-03 22:59:20 +08:00

2142 lines
64 KiB
TypeScript

/* !!! This is code generated by Prisma. Do not edit directly. !!! */
/* eslint-disable */
// biome-ignore-all lint: generated file
// @ts-nocheck
/*
* This file exports the `Pipeline` 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 Pipeline
*
*/
export type PipelineModel =
runtime.Types.Result.DefaultSelection<Prisma.$PipelinePayload>;
export type AggregatePipeline = {
_count: PipelineCountAggregateOutputType | null;
_avg: PipelineAvgAggregateOutputType | null;
_sum: PipelineSumAggregateOutputType | null;
_min: PipelineMinAggregateOutputType | null;
_max: PipelineMaxAggregateOutputType | null;
};
export type PipelineAvgAggregateOutputType = {
id: number | null;
valid: number | null;
projectId: number | null;
};
export type PipelineSumAggregateOutputType = {
id: number | null;
valid: number | null;
projectId: number | null;
};
export type PipelineMinAggregateOutputType = {
id: number | null;
name: string | null;
description: string | null;
valid: number | null;
createdAt: Date | null;
updatedAt: Date | null;
createdBy: string | null;
updatedBy: string | null;
projectId: number | null;
};
export type PipelineMaxAggregateOutputType = {
id: number | null;
name: string | null;
description: string | null;
valid: number | null;
createdAt: Date | null;
updatedAt: Date | null;
createdBy: string | null;
updatedBy: string | null;
projectId: number | null;
};
export type PipelineCountAggregateOutputType = {
id: number;
name: number;
description: number;
valid: number;
createdAt: number;
updatedAt: number;
createdBy: number;
updatedBy: number;
projectId: number;
_all: number;
};
export type PipelineAvgAggregateInputType = {
id?: true;
valid?: true;
projectId?: true;
};
export type PipelineSumAggregateInputType = {
id?: true;
valid?: true;
projectId?: true;
};
export type PipelineMinAggregateInputType = {
id?: true;
name?: true;
description?: true;
valid?: true;
createdAt?: true;
updatedAt?: true;
createdBy?: true;
updatedBy?: true;
projectId?: true;
};
export type PipelineMaxAggregateInputType = {
id?: true;
name?: true;
description?: true;
valid?: true;
createdAt?: true;
updatedAt?: true;
createdBy?: true;
updatedBy?: true;
projectId?: true;
};
export type PipelineCountAggregateInputType = {
id?: true;
name?: true;
description?: true;
valid?: true;
createdAt?: true;
updatedAt?: true;
createdBy?: true;
updatedBy?: true;
projectId?: true;
_all?: true;
};
export type PipelineAggregateArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Filter which Pipeline to aggregate.
*/
where?: Prisma.PipelineWhereInput;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Pipelines to fetch.
*/
orderBy?:
| Prisma.PipelineOrderByWithRelationInput
| Prisma.PipelineOrderByWithRelationInput[];
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.PipelineWhereUniqueInput;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Pipelines 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` Pipelines.
*/
skip?: number;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Pipelines
**/
_count?: true | PipelineCountAggregateInputType;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: PipelineAvgAggregateInputType;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: PipelineSumAggregateInputType;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: PipelineMinAggregateInputType;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: PipelineMaxAggregateInputType;
};
export type GetPipelineAggregateType<T extends PipelineAggregateArgs> = {
[P in keyof T & keyof AggregatePipeline]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregatePipeline[P]>
: Prisma.GetScalarType<T[P], AggregatePipeline[P]>;
};
export type PipelineGroupByArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
where?: Prisma.PipelineWhereInput;
orderBy?:
| Prisma.PipelineOrderByWithAggregationInput
| Prisma.PipelineOrderByWithAggregationInput[];
by: Prisma.PipelineScalarFieldEnum[] | Prisma.PipelineScalarFieldEnum;
having?: Prisma.PipelineScalarWhereWithAggregatesInput;
take?: number;
skip?: number;
_count?: PipelineCountAggregateInputType | true;
_avg?: PipelineAvgAggregateInputType;
_sum?: PipelineSumAggregateInputType;
_min?: PipelineMinAggregateInputType;
_max?: PipelineMaxAggregateInputType;
};
export type PipelineGroupByOutputType = {
id: number;
name: string;
description: string | null;
valid: number;
createdAt: Date;
updatedAt: Date;
createdBy: string;
updatedBy: string;
projectId: number | null;
_count: PipelineCountAggregateOutputType | null;
_avg: PipelineAvgAggregateOutputType | null;
_sum: PipelineSumAggregateOutputType | null;
_min: PipelineMinAggregateOutputType | null;
_max: PipelineMaxAggregateOutputType | null;
};
type GetPipelineGroupByPayload<T extends PipelineGroupByArgs> =
Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<PipelineGroupByOutputType, T['by']> & {
[P in keyof T & keyof PipelineGroupByOutputType]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], PipelineGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], PipelineGroupByOutputType[P]>;
}
>
>;
export type PipelineWhereInput = {
AND?: Prisma.PipelineWhereInput | Prisma.PipelineWhereInput[];
OR?: Prisma.PipelineWhereInput[];
NOT?: Prisma.PipelineWhereInput | Prisma.PipelineWhereInput[];
id?: Prisma.IntFilter<'Pipeline'> | number;
name?: Prisma.StringFilter<'Pipeline'> | string;
description?: Prisma.StringNullableFilter<'Pipeline'> | string | null;
valid?: Prisma.IntFilter<'Pipeline'> | number;
createdAt?: Prisma.DateTimeFilter<'Pipeline'> | Date | string;
updatedAt?: Prisma.DateTimeFilter<'Pipeline'> | Date | string;
createdBy?: Prisma.StringFilter<'Pipeline'> | string;
updatedBy?: Prisma.StringFilter<'Pipeline'> | string;
projectId?: Prisma.IntNullableFilter<'Pipeline'> | number | null;
Project?: Prisma.XOR<
Prisma.ProjectNullableScalarRelationFilter,
Prisma.ProjectWhereInput
> | null;
steps?: Prisma.StepListRelationFilter;
};
export type PipelineOrderByWithRelationInput = {
id?: Prisma.SortOrder;
name?: Prisma.SortOrder;
description?: Prisma.SortOrderInput | Prisma.SortOrder;
valid?: Prisma.SortOrder;
createdAt?: Prisma.SortOrder;
updatedAt?: Prisma.SortOrder;
createdBy?: Prisma.SortOrder;
updatedBy?: Prisma.SortOrder;
projectId?: Prisma.SortOrderInput | Prisma.SortOrder;
Project?: Prisma.ProjectOrderByWithRelationInput;
steps?: Prisma.StepOrderByRelationAggregateInput;
};
export type PipelineWhereUniqueInput = Prisma.AtLeast<
{
id?: number;
AND?: Prisma.PipelineWhereInput | Prisma.PipelineWhereInput[];
OR?: Prisma.PipelineWhereInput[];
NOT?: Prisma.PipelineWhereInput | Prisma.PipelineWhereInput[];
name?: Prisma.StringFilter<'Pipeline'> | string;
description?: Prisma.StringNullableFilter<'Pipeline'> | string | null;
valid?: Prisma.IntFilter<'Pipeline'> | number;
createdAt?: Prisma.DateTimeFilter<'Pipeline'> | Date | string;
updatedAt?: Prisma.DateTimeFilter<'Pipeline'> | Date | string;
createdBy?: Prisma.StringFilter<'Pipeline'> | string;
updatedBy?: Prisma.StringFilter<'Pipeline'> | string;
projectId?: Prisma.IntNullableFilter<'Pipeline'> | number | null;
Project?: Prisma.XOR<
Prisma.ProjectNullableScalarRelationFilter,
Prisma.ProjectWhereInput
> | null;
steps?: Prisma.StepListRelationFilter;
},
'id'
>;
export type PipelineOrderByWithAggregationInput = {
id?: Prisma.SortOrder;
name?: Prisma.SortOrder;
description?: Prisma.SortOrderInput | Prisma.SortOrder;
valid?: Prisma.SortOrder;
createdAt?: Prisma.SortOrder;
updatedAt?: Prisma.SortOrder;
createdBy?: Prisma.SortOrder;
updatedBy?: Prisma.SortOrder;
projectId?: Prisma.SortOrderInput | Prisma.SortOrder;
_count?: Prisma.PipelineCountOrderByAggregateInput;
_avg?: Prisma.PipelineAvgOrderByAggregateInput;
_max?: Prisma.PipelineMaxOrderByAggregateInput;
_min?: Prisma.PipelineMinOrderByAggregateInput;
_sum?: Prisma.PipelineSumOrderByAggregateInput;
};
export type PipelineScalarWhereWithAggregatesInput = {
AND?:
| Prisma.PipelineScalarWhereWithAggregatesInput
| Prisma.PipelineScalarWhereWithAggregatesInput[];
OR?: Prisma.PipelineScalarWhereWithAggregatesInput[];
NOT?:
| Prisma.PipelineScalarWhereWithAggregatesInput
| Prisma.PipelineScalarWhereWithAggregatesInput[];
id?: Prisma.IntWithAggregatesFilter<'Pipeline'> | number;
name?: Prisma.StringWithAggregatesFilter<'Pipeline'> | string;
description?:
| Prisma.StringNullableWithAggregatesFilter<'Pipeline'>
| string
| null;
valid?: Prisma.IntWithAggregatesFilter<'Pipeline'> | number;
createdAt?: Prisma.DateTimeWithAggregatesFilter<'Pipeline'> | Date | string;
updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Pipeline'> | Date | string;
createdBy?: Prisma.StringWithAggregatesFilter<'Pipeline'> | string;
updatedBy?: Prisma.StringWithAggregatesFilter<'Pipeline'> | string;
projectId?:
| Prisma.IntNullableWithAggregatesFilter<'Pipeline'>
| number
| null;
};
export type PipelineCreateInput = {
name: string;
description?: string | null;
valid?: number;
createdAt?: Date | string;
updatedAt?: Date | string;
createdBy: string;
updatedBy: string;
Project?: Prisma.ProjectCreateNestedOneWithoutPipelinesInput;
steps?: Prisma.StepCreateNestedManyWithoutPipelineInput;
};
export type PipelineUncheckedCreateInput = {
id?: number;
name: string;
description?: string | null;
valid?: number;
createdAt?: Date | string;
updatedAt?: Date | string;
createdBy: string;
updatedBy: string;
projectId?: number | null;
steps?: Prisma.StepUncheckedCreateNestedManyWithoutPipelineInput;
};
export type PipelineUpdateInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string;
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
valid?: Prisma.IntFieldUpdateOperationsInput | number;
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
createdBy?: Prisma.StringFieldUpdateOperationsInput | string;
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string;
Project?: Prisma.ProjectUpdateOneWithoutPipelinesNestedInput;
steps?: Prisma.StepUpdateManyWithoutPipelineNestedInput;
};
export type PipelineUncheckedUpdateInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number;
name?: Prisma.StringFieldUpdateOperationsInput | string;
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
valid?: Prisma.IntFieldUpdateOperationsInput | number;
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
createdBy?: Prisma.StringFieldUpdateOperationsInput | string;
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string;
projectId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
steps?: Prisma.StepUncheckedUpdateManyWithoutPipelineNestedInput;
};
export type PipelineCreateManyInput = {
id?: number;
name: string;
description?: string | null;
valid?: number;
createdAt?: Date | string;
updatedAt?: Date | string;
createdBy: string;
updatedBy: string;
projectId?: number | null;
};
export type PipelineUpdateManyMutationInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string;
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
valid?: Prisma.IntFieldUpdateOperationsInput | number;
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
createdBy?: Prisma.StringFieldUpdateOperationsInput | string;
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string;
};
export type PipelineUncheckedUpdateManyInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number;
name?: Prisma.StringFieldUpdateOperationsInput | string;
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
valid?: Prisma.IntFieldUpdateOperationsInput | number;
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
createdBy?: Prisma.StringFieldUpdateOperationsInput | string;
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string;
projectId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type PipelineListRelationFilter = {
every?: Prisma.PipelineWhereInput;
some?: Prisma.PipelineWhereInput;
none?: Prisma.PipelineWhereInput;
};
export type PipelineOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder;
};
export type PipelineCountOrderByAggregateInput = {
id?: Prisma.SortOrder;
name?: Prisma.SortOrder;
description?: Prisma.SortOrder;
valid?: Prisma.SortOrder;
createdAt?: Prisma.SortOrder;
updatedAt?: Prisma.SortOrder;
createdBy?: Prisma.SortOrder;
updatedBy?: Prisma.SortOrder;
projectId?: Prisma.SortOrder;
};
export type PipelineAvgOrderByAggregateInput = {
id?: Prisma.SortOrder;
valid?: Prisma.SortOrder;
projectId?: Prisma.SortOrder;
};
export type PipelineMaxOrderByAggregateInput = {
id?: Prisma.SortOrder;
name?: Prisma.SortOrder;
description?: Prisma.SortOrder;
valid?: Prisma.SortOrder;
createdAt?: Prisma.SortOrder;
updatedAt?: Prisma.SortOrder;
createdBy?: Prisma.SortOrder;
updatedBy?: Prisma.SortOrder;
projectId?: Prisma.SortOrder;
};
export type PipelineMinOrderByAggregateInput = {
id?: Prisma.SortOrder;
name?: Prisma.SortOrder;
description?: Prisma.SortOrder;
valid?: Prisma.SortOrder;
createdAt?: Prisma.SortOrder;
updatedAt?: Prisma.SortOrder;
createdBy?: Prisma.SortOrder;
updatedBy?: Prisma.SortOrder;
projectId?: Prisma.SortOrder;
};
export type PipelineSumOrderByAggregateInput = {
id?: Prisma.SortOrder;
valid?: Prisma.SortOrder;
projectId?: Prisma.SortOrder;
};
export type PipelineScalarRelationFilter = {
is?: Prisma.PipelineWhereInput;
isNot?: Prisma.PipelineWhereInput;
};
export type PipelineCreateNestedManyWithoutProjectInput = {
create?:
| Prisma.XOR<
Prisma.PipelineCreateWithoutProjectInput,
Prisma.PipelineUncheckedCreateWithoutProjectInput
>
| Prisma.PipelineCreateWithoutProjectInput[]
| Prisma.PipelineUncheckedCreateWithoutProjectInput[];
connectOrCreate?:
| Prisma.PipelineCreateOrConnectWithoutProjectInput
| Prisma.PipelineCreateOrConnectWithoutProjectInput[];
createMany?: Prisma.PipelineCreateManyProjectInputEnvelope;
connect?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[];
};
export type PipelineUncheckedCreateNestedManyWithoutProjectInput = {
create?:
| Prisma.XOR<
Prisma.PipelineCreateWithoutProjectInput,
Prisma.PipelineUncheckedCreateWithoutProjectInput
>
| Prisma.PipelineCreateWithoutProjectInput[]
| Prisma.PipelineUncheckedCreateWithoutProjectInput[];
connectOrCreate?:
| Prisma.PipelineCreateOrConnectWithoutProjectInput
| Prisma.PipelineCreateOrConnectWithoutProjectInput[];
createMany?: Prisma.PipelineCreateManyProjectInputEnvelope;
connect?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[];
};
export type PipelineUpdateManyWithoutProjectNestedInput = {
create?:
| Prisma.XOR<
Prisma.PipelineCreateWithoutProjectInput,
Prisma.PipelineUncheckedCreateWithoutProjectInput
>
| Prisma.PipelineCreateWithoutProjectInput[]
| Prisma.PipelineUncheckedCreateWithoutProjectInput[];
connectOrCreate?:
| Prisma.PipelineCreateOrConnectWithoutProjectInput
| Prisma.PipelineCreateOrConnectWithoutProjectInput[];
upsert?:
| Prisma.PipelineUpsertWithWhereUniqueWithoutProjectInput
| Prisma.PipelineUpsertWithWhereUniqueWithoutProjectInput[];
createMany?: Prisma.PipelineCreateManyProjectInputEnvelope;
set?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[];
disconnect?:
| Prisma.PipelineWhereUniqueInput
| Prisma.PipelineWhereUniqueInput[];
delete?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[];
connect?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[];
update?:
| Prisma.PipelineUpdateWithWhereUniqueWithoutProjectInput
| Prisma.PipelineUpdateWithWhereUniqueWithoutProjectInput[];
updateMany?:
| Prisma.PipelineUpdateManyWithWhereWithoutProjectInput
| Prisma.PipelineUpdateManyWithWhereWithoutProjectInput[];
deleteMany?:
| Prisma.PipelineScalarWhereInput
| Prisma.PipelineScalarWhereInput[];
};
export type PipelineUncheckedUpdateManyWithoutProjectNestedInput = {
create?:
| Prisma.XOR<
Prisma.PipelineCreateWithoutProjectInput,
Prisma.PipelineUncheckedCreateWithoutProjectInput
>
| Prisma.PipelineCreateWithoutProjectInput[]
| Prisma.PipelineUncheckedCreateWithoutProjectInput[];
connectOrCreate?:
| Prisma.PipelineCreateOrConnectWithoutProjectInput
| Prisma.PipelineCreateOrConnectWithoutProjectInput[];
upsert?:
| Prisma.PipelineUpsertWithWhereUniqueWithoutProjectInput
| Prisma.PipelineUpsertWithWhereUniqueWithoutProjectInput[];
createMany?: Prisma.PipelineCreateManyProjectInputEnvelope;
set?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[];
disconnect?:
| Prisma.PipelineWhereUniqueInput
| Prisma.PipelineWhereUniqueInput[];
delete?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[];
connect?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[];
update?:
| Prisma.PipelineUpdateWithWhereUniqueWithoutProjectInput
| Prisma.PipelineUpdateWithWhereUniqueWithoutProjectInput[];
updateMany?:
| Prisma.PipelineUpdateManyWithWhereWithoutProjectInput
| Prisma.PipelineUpdateManyWithWhereWithoutProjectInput[];
deleteMany?:
| Prisma.PipelineScalarWhereInput
| Prisma.PipelineScalarWhereInput[];
};
export type NullableIntFieldUpdateOperationsInput = {
set?: number | null;
increment?: number;
decrement?: number;
multiply?: number;
divide?: number;
};
export type PipelineCreateNestedOneWithoutStepsInput = {
create?: Prisma.XOR<
Prisma.PipelineCreateWithoutStepsInput,
Prisma.PipelineUncheckedCreateWithoutStepsInput
>;
connectOrCreate?: Prisma.PipelineCreateOrConnectWithoutStepsInput;
connect?: Prisma.PipelineWhereUniqueInput;
};
export type PipelineUpdateOneRequiredWithoutStepsNestedInput = {
create?: Prisma.XOR<
Prisma.PipelineCreateWithoutStepsInput,
Prisma.PipelineUncheckedCreateWithoutStepsInput
>;
connectOrCreate?: Prisma.PipelineCreateOrConnectWithoutStepsInput;
upsert?: Prisma.PipelineUpsertWithoutStepsInput;
connect?: Prisma.PipelineWhereUniqueInput;
update?: Prisma.XOR<
Prisma.XOR<
Prisma.PipelineUpdateToOneWithWhereWithoutStepsInput,
Prisma.PipelineUpdateWithoutStepsInput
>,
Prisma.PipelineUncheckedUpdateWithoutStepsInput
>;
};
export type PipelineCreateWithoutProjectInput = {
name: string;
description?: string | null;
valid?: number;
createdAt?: Date | string;
updatedAt?: Date | string;
createdBy: string;
updatedBy: string;
steps?: Prisma.StepCreateNestedManyWithoutPipelineInput;
};
export type PipelineUncheckedCreateWithoutProjectInput = {
id?: number;
name: string;
description?: string | null;
valid?: number;
createdAt?: Date | string;
updatedAt?: Date | string;
createdBy: string;
updatedBy: string;
steps?: Prisma.StepUncheckedCreateNestedManyWithoutPipelineInput;
};
export type PipelineCreateOrConnectWithoutProjectInput = {
where: Prisma.PipelineWhereUniqueInput;
create: Prisma.XOR<
Prisma.PipelineCreateWithoutProjectInput,
Prisma.PipelineUncheckedCreateWithoutProjectInput
>;
};
export type PipelineCreateManyProjectInputEnvelope = {
data:
| Prisma.PipelineCreateManyProjectInput
| Prisma.PipelineCreateManyProjectInput[];
};
export type PipelineUpsertWithWhereUniqueWithoutProjectInput = {
where: Prisma.PipelineWhereUniqueInput;
update: Prisma.XOR<
Prisma.PipelineUpdateWithoutProjectInput,
Prisma.PipelineUncheckedUpdateWithoutProjectInput
>;
create: Prisma.XOR<
Prisma.PipelineCreateWithoutProjectInput,
Prisma.PipelineUncheckedCreateWithoutProjectInput
>;
};
export type PipelineUpdateWithWhereUniqueWithoutProjectInput = {
where: Prisma.PipelineWhereUniqueInput;
data: Prisma.XOR<
Prisma.PipelineUpdateWithoutProjectInput,
Prisma.PipelineUncheckedUpdateWithoutProjectInput
>;
};
export type PipelineUpdateManyWithWhereWithoutProjectInput = {
where: Prisma.PipelineScalarWhereInput;
data: Prisma.XOR<
Prisma.PipelineUpdateManyMutationInput,
Prisma.PipelineUncheckedUpdateManyWithoutProjectInput
>;
};
export type PipelineScalarWhereInput = {
AND?: Prisma.PipelineScalarWhereInput | Prisma.PipelineScalarWhereInput[];
OR?: Prisma.PipelineScalarWhereInput[];
NOT?: Prisma.PipelineScalarWhereInput | Prisma.PipelineScalarWhereInput[];
id?: Prisma.IntFilter<'Pipeline'> | number;
name?: Prisma.StringFilter<'Pipeline'> | string;
description?: Prisma.StringNullableFilter<'Pipeline'> | string | null;
valid?: Prisma.IntFilter<'Pipeline'> | number;
createdAt?: Prisma.DateTimeFilter<'Pipeline'> | Date | string;
updatedAt?: Prisma.DateTimeFilter<'Pipeline'> | Date | string;
createdBy?: Prisma.StringFilter<'Pipeline'> | string;
updatedBy?: Prisma.StringFilter<'Pipeline'> | string;
projectId?: Prisma.IntNullableFilter<'Pipeline'> | number | null;
};
export type PipelineCreateWithoutStepsInput = {
name: string;
description?: string | null;
valid?: number;
createdAt?: Date | string;
updatedAt?: Date | string;
createdBy: string;
updatedBy: string;
Project?: Prisma.ProjectCreateNestedOneWithoutPipelinesInput;
};
export type PipelineUncheckedCreateWithoutStepsInput = {
id?: number;
name: string;
description?: string | null;
valid?: number;
createdAt?: Date | string;
updatedAt?: Date | string;
createdBy: string;
updatedBy: string;
projectId?: number | null;
};
export type PipelineCreateOrConnectWithoutStepsInput = {
where: Prisma.PipelineWhereUniqueInput;
create: Prisma.XOR<
Prisma.PipelineCreateWithoutStepsInput,
Prisma.PipelineUncheckedCreateWithoutStepsInput
>;
};
export type PipelineUpsertWithoutStepsInput = {
update: Prisma.XOR<
Prisma.PipelineUpdateWithoutStepsInput,
Prisma.PipelineUncheckedUpdateWithoutStepsInput
>;
create: Prisma.XOR<
Prisma.PipelineCreateWithoutStepsInput,
Prisma.PipelineUncheckedCreateWithoutStepsInput
>;
where?: Prisma.PipelineWhereInput;
};
export type PipelineUpdateToOneWithWhereWithoutStepsInput = {
where?: Prisma.PipelineWhereInput;
data: Prisma.XOR<
Prisma.PipelineUpdateWithoutStepsInput,
Prisma.PipelineUncheckedUpdateWithoutStepsInput
>;
};
export type PipelineUpdateWithoutStepsInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string;
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
valid?: Prisma.IntFieldUpdateOperationsInput | number;
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
createdBy?: Prisma.StringFieldUpdateOperationsInput | string;
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string;
Project?: Prisma.ProjectUpdateOneWithoutPipelinesNestedInput;
};
export type PipelineUncheckedUpdateWithoutStepsInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number;
name?: Prisma.StringFieldUpdateOperationsInput | string;
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
valid?: Prisma.IntFieldUpdateOperationsInput | number;
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
createdBy?: Prisma.StringFieldUpdateOperationsInput | string;
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string;
projectId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null;
};
export type PipelineCreateManyProjectInput = {
id?: number;
name: string;
description?: string | null;
valid?: number;
createdAt?: Date | string;
updatedAt?: Date | string;
createdBy: string;
updatedBy: string;
};
export type PipelineUpdateWithoutProjectInput = {
name?: Prisma.StringFieldUpdateOperationsInput | string;
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
valid?: Prisma.IntFieldUpdateOperationsInput | number;
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
createdBy?: Prisma.StringFieldUpdateOperationsInput | string;
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string;
steps?: Prisma.StepUpdateManyWithoutPipelineNestedInput;
};
export type PipelineUncheckedUpdateWithoutProjectInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number;
name?: Prisma.StringFieldUpdateOperationsInput | string;
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
valid?: Prisma.IntFieldUpdateOperationsInput | number;
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
createdBy?: Prisma.StringFieldUpdateOperationsInput | string;
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string;
steps?: Prisma.StepUncheckedUpdateManyWithoutPipelineNestedInput;
};
export type PipelineUncheckedUpdateManyWithoutProjectInput = {
id?: Prisma.IntFieldUpdateOperationsInput | number;
name?: Prisma.StringFieldUpdateOperationsInput | string;
description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
valid?: Prisma.IntFieldUpdateOperationsInput | number;
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string;
createdBy?: Prisma.StringFieldUpdateOperationsInput | string;
updatedBy?: Prisma.StringFieldUpdateOperationsInput | string;
};
/**
* Count Type PipelineCountOutputType
*/
export type PipelineCountOutputType = {
steps: number;
};
export type PipelineCountOutputTypeSelect<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
steps?: boolean | PipelineCountOutputTypeCountStepsArgs;
};
/**
* PipelineCountOutputType without action
*/
export type PipelineCountOutputTypeDefaultArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the PipelineCountOutputType
*/
select?: Prisma.PipelineCountOutputTypeSelect<ExtArgs> | null;
};
/**
* PipelineCountOutputType without action
*/
export type PipelineCountOutputTypeCountStepsArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
where?: Prisma.StepWhereInput;
};
export type PipelineSelect<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = runtime.Types.Extensions.GetSelect<
{
id?: boolean;
name?: boolean;
description?: boolean;
valid?: boolean;
createdAt?: boolean;
updatedAt?: boolean;
createdBy?: boolean;
updatedBy?: boolean;
projectId?: boolean;
Project?: boolean | Prisma.Pipeline$ProjectArgs<ExtArgs>;
steps?: boolean | Prisma.Pipeline$stepsArgs<ExtArgs>;
_count?: boolean | Prisma.PipelineCountOutputTypeDefaultArgs<ExtArgs>;
},
ExtArgs['result']['pipeline']
>;
export type PipelineSelectCreateManyAndReturn<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = runtime.Types.Extensions.GetSelect<
{
id?: boolean;
name?: boolean;
description?: boolean;
valid?: boolean;
createdAt?: boolean;
updatedAt?: boolean;
createdBy?: boolean;
updatedBy?: boolean;
projectId?: boolean;
Project?: boolean | Prisma.Pipeline$ProjectArgs<ExtArgs>;
},
ExtArgs['result']['pipeline']
>;
export type PipelineSelectUpdateManyAndReturn<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = runtime.Types.Extensions.GetSelect<
{
id?: boolean;
name?: boolean;
description?: boolean;
valid?: boolean;
createdAt?: boolean;
updatedAt?: boolean;
createdBy?: boolean;
updatedBy?: boolean;
projectId?: boolean;
Project?: boolean | Prisma.Pipeline$ProjectArgs<ExtArgs>;
},
ExtArgs['result']['pipeline']
>;
export type PipelineSelectScalar = {
id?: boolean;
name?: boolean;
description?: boolean;
valid?: boolean;
createdAt?: boolean;
updatedAt?: boolean;
createdBy?: boolean;
updatedBy?: boolean;
projectId?: boolean;
};
export type PipelineOmit<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = runtime.Types.Extensions.GetOmit<
| 'id'
| 'name'
| 'description'
| 'valid'
| 'createdAt'
| 'updatedAt'
| 'createdBy'
| 'updatedBy'
| 'projectId',
ExtArgs['result']['pipeline']
>;
export type PipelineInclude<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
Project?: boolean | Prisma.Pipeline$ProjectArgs<ExtArgs>;
steps?: boolean | Prisma.Pipeline$stepsArgs<ExtArgs>;
_count?: boolean | Prisma.PipelineCountOutputTypeDefaultArgs<ExtArgs>;
};
export type PipelineIncludeCreateManyAndReturn<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
Project?: boolean | Prisma.Pipeline$ProjectArgs<ExtArgs>;
};
export type PipelineIncludeUpdateManyAndReturn<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
Project?: boolean | Prisma.Pipeline$ProjectArgs<ExtArgs>;
};
export type $PipelinePayload<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
name: 'Pipeline';
objects: {
Project: Prisma.$ProjectPayload<ExtArgs> | null;
steps: Prisma.$StepPayload<ExtArgs>[];
};
scalars: runtime.Types.Extensions.GetPayloadResult<
{
id: number;
name: string;
description: string | null;
valid: number;
createdAt: Date;
updatedAt: Date;
createdBy: string;
updatedBy: string;
projectId: number | null;
},
ExtArgs['result']['pipeline']
>;
composites: {};
};
export type PipelineGetPayload<
S extends boolean | null | undefined | PipelineDefaultArgs,
> = runtime.Types.Result.GetResult<Prisma.$PipelinePayload, S>;
export type PipelineCountArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = Omit<PipelineFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: PipelineCountAggregateInputType | true;
};
export interface PipelineDelegate<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
GlobalOmitOptions = {},
> {
[K: symbol]: {
types: Prisma.TypeMap<ExtArgs>['model']['Pipeline'];
meta: { name: 'Pipeline' };
};
/**
* Find zero or one Pipeline that matches the filter.
* @param {PipelineFindUniqueArgs} args - Arguments to find a Pipeline
* @example
* // Get one Pipeline
* const pipeline = await prisma.pipeline.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends PipelineFindUniqueArgs>(
args: Prisma.SelectSubset<T, PipelineFindUniqueArgs<ExtArgs>>,
): Prisma.Prisma__PipelineClient<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'findUnique',
GlobalOmitOptions
> | null,
null,
ExtArgs,
GlobalOmitOptions
>;
/**
* Find one Pipeline that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {PipelineFindUniqueOrThrowArgs} args - Arguments to find a Pipeline
* @example
* // Get one Pipeline
* const pipeline = await prisma.pipeline.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends PipelineFindUniqueOrThrowArgs>(
args: Prisma.SelectSubset<T, PipelineFindUniqueOrThrowArgs<ExtArgs>>,
): Prisma.Prisma__PipelineClient<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'findUniqueOrThrow',
GlobalOmitOptions
>,
never,
ExtArgs,
GlobalOmitOptions
>;
/**
* Find the first Pipeline 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 {PipelineFindFirstArgs} args - Arguments to find a Pipeline
* @example
* // Get one Pipeline
* const pipeline = await prisma.pipeline.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends PipelineFindFirstArgs>(
args?: Prisma.SelectSubset<T, PipelineFindFirstArgs<ExtArgs>>,
): Prisma.Prisma__PipelineClient<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'findFirst',
GlobalOmitOptions
> | null,
null,
ExtArgs,
GlobalOmitOptions
>;
/**
* Find the first Pipeline 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 {PipelineFindFirstOrThrowArgs} args - Arguments to find a Pipeline
* @example
* // Get one Pipeline
* const pipeline = await prisma.pipeline.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends PipelineFindFirstOrThrowArgs>(
args?: Prisma.SelectSubset<T, PipelineFindFirstOrThrowArgs<ExtArgs>>,
): Prisma.Prisma__PipelineClient<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'findFirstOrThrow',
GlobalOmitOptions
>,
never,
ExtArgs,
GlobalOmitOptions
>;
/**
* Find zero or more Pipelines 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 {PipelineFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Pipelines
* const pipelines = await prisma.pipeline.findMany()
*
* // Get first 10 Pipelines
* const pipelines = await prisma.pipeline.findMany({ take: 10 })
*
* // Only select the `id`
* const pipelineWithIdOnly = await prisma.pipeline.findMany({ select: { id: true } })
*
*/
findMany<T extends PipelineFindManyArgs>(
args?: Prisma.SelectSubset<T, PipelineFindManyArgs<ExtArgs>>,
): Prisma.PrismaPromise<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'findMany',
GlobalOmitOptions
>
>;
/**
* Create a Pipeline.
* @param {PipelineCreateArgs} args - Arguments to create a Pipeline.
* @example
* // Create one Pipeline
* const Pipeline = await prisma.pipeline.create({
* data: {
* // ... data to create a Pipeline
* }
* })
*
*/
create<T extends PipelineCreateArgs>(
args: Prisma.SelectSubset<T, PipelineCreateArgs<ExtArgs>>,
): Prisma.Prisma__PipelineClient<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'create',
GlobalOmitOptions
>,
never,
ExtArgs,
GlobalOmitOptions
>;
/**
* Create many Pipelines.
* @param {PipelineCreateManyArgs} args - Arguments to create many Pipelines.
* @example
* // Create many Pipelines
* const pipeline = await prisma.pipeline.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends PipelineCreateManyArgs>(
args?: Prisma.SelectSubset<T, PipelineCreateManyArgs<ExtArgs>>,
): Prisma.PrismaPromise<Prisma.BatchPayload>;
/**
* Create many Pipelines and returns the data saved in the database.
* @param {PipelineCreateManyAndReturnArgs} args - Arguments to create many Pipelines.
* @example
* // Create many Pipelines
* const pipeline = await prisma.pipeline.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Pipelines and only return the `id`
* const pipelineWithIdOnly = await prisma.pipeline.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends PipelineCreateManyAndReturnArgs>(
args?: Prisma.SelectSubset<T, PipelineCreateManyAndReturnArgs<ExtArgs>>,
): Prisma.PrismaPromise<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'createManyAndReturn',
GlobalOmitOptions
>
>;
/**
* Delete a Pipeline.
* @param {PipelineDeleteArgs} args - Arguments to delete one Pipeline.
* @example
* // Delete one Pipeline
* const Pipeline = await prisma.pipeline.delete({
* where: {
* // ... filter to delete one Pipeline
* }
* })
*
*/
delete<T extends PipelineDeleteArgs>(
args: Prisma.SelectSubset<T, PipelineDeleteArgs<ExtArgs>>,
): Prisma.Prisma__PipelineClient<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'delete',
GlobalOmitOptions
>,
never,
ExtArgs,
GlobalOmitOptions
>;
/**
* Update one Pipeline.
* @param {PipelineUpdateArgs} args - Arguments to update one Pipeline.
* @example
* // Update one Pipeline
* const pipeline = await prisma.pipeline.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends PipelineUpdateArgs>(
args: Prisma.SelectSubset<T, PipelineUpdateArgs<ExtArgs>>,
): Prisma.Prisma__PipelineClient<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'update',
GlobalOmitOptions
>,
never,
ExtArgs,
GlobalOmitOptions
>;
/**
* Delete zero or more Pipelines.
* @param {PipelineDeleteManyArgs} args - Arguments to filter Pipelines to delete.
* @example
* // Delete a few Pipelines
* const { count } = await prisma.pipeline.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends PipelineDeleteManyArgs>(
args?: Prisma.SelectSubset<T, PipelineDeleteManyArgs<ExtArgs>>,
): Prisma.PrismaPromise<Prisma.BatchPayload>;
/**
* Update zero or more Pipelines.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PipelineUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Pipelines
* const pipeline = await prisma.pipeline.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends PipelineUpdateManyArgs>(
args: Prisma.SelectSubset<T, PipelineUpdateManyArgs<ExtArgs>>,
): Prisma.PrismaPromise<Prisma.BatchPayload>;
/**
* Update zero or more Pipelines and returns the data updated in the database.
* @param {PipelineUpdateManyAndReturnArgs} args - Arguments to update many Pipelines.
* @example
* // Update many Pipelines
* const pipeline = await prisma.pipeline.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Pipelines and only return the `id`
* const pipelineWithIdOnly = await prisma.pipeline.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends PipelineUpdateManyAndReturnArgs>(
args: Prisma.SelectSubset<T, PipelineUpdateManyAndReturnArgs<ExtArgs>>,
): Prisma.PrismaPromise<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'updateManyAndReturn',
GlobalOmitOptions
>
>;
/**
* Create or update one Pipeline.
* @param {PipelineUpsertArgs} args - Arguments to update or create a Pipeline.
* @example
* // Update or create a Pipeline
* const pipeline = await prisma.pipeline.upsert({
* create: {
* // ... data to create a Pipeline
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Pipeline we want to update
* }
* })
*/
upsert<T extends PipelineUpsertArgs>(
args: Prisma.SelectSubset<T, PipelineUpsertArgs<ExtArgs>>,
): Prisma.Prisma__PipelineClient<
runtime.Types.Result.GetResult<
Prisma.$PipelinePayload<ExtArgs>,
T,
'upsert',
GlobalOmitOptions
>,
never,
ExtArgs,
GlobalOmitOptions
>;
/**
* Count the number of Pipelines.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PipelineCountArgs} args - Arguments to filter Pipelines to count.
* @example
* // Count the number of Pipelines
* const count = await prisma.pipeline.count({
* where: {
* // ... the filter for the Pipelines we want to count
* }
* })
**/
count<T extends PipelineCountArgs>(
args?: Prisma.Subset<T, PipelineCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], PipelineCountAggregateOutputType>
: number
>;
/**
* Allows you to perform aggregations operations on a Pipeline.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PipelineAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
* @example
* // Ordered by age ascending
* // Where email contains prisma.io
* // Limited to the 10 users
* const aggregations = await prisma.user.aggregate({
* _avg: {
* age: true,
* },
* where: {
* email: {
* contains: "prisma.io",
* },
* },
* orderBy: {
* age: "asc",
* },
* take: 10,
* })
**/
aggregate<T extends PipelineAggregateArgs>(
args: Prisma.Subset<T, PipelineAggregateArgs>,
): Prisma.PrismaPromise<GetPipelineAggregateType<T>>;
/**
* Group by Pipeline.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PipelineGroupByArgs} 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 PipelineGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: PipelineGroupByArgs['orderBy'] }
: { orderBy?: PipelineGroupByArgs['orderBy'] },
OrderFields extends Prisma.ExcludeUnderscoreKeys<
Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>
>,
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
ByValid extends Prisma.Has<ByFields, OrderFields>,
HavingFields extends Prisma.GetHavingFields<T['having']>,
HavingValid extends Prisma.Has<ByFields, HavingFields>,
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
InputErrors extends ByEmpty extends Prisma.True
? `Error: "by" must not be empty.`
: HavingValid extends Prisma.False
? {
[P in HavingFields]: P extends ByFields
? never
: P extends string
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
: [
Error,
'Field ',
P,
` in "having" needs to be provided in "by"`,
];
}[HavingFields]
: 'take' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
}[OrderFields]
: 'Error: If you provide "take", you also need to provide "orderBy"'
: 'skip' extends Prisma.Keys<T>
? 'orderBy' extends Prisma.Keys<T>
? ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
}[OrderFields]
: 'Error: If you provide "skip", you also need to provide "orderBy"'
: ByValid extends Prisma.True
? {}
: {
[P in OrderFields]: P extends ByFields
? never
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
}[OrderFields],
>(
args: Prisma.SubsetIntersection<T, PipelineGroupByArgs, OrderByArg> &
InputErrors,
): {} extends InputErrors
? GetPipelineGroupByPayload<T>
: Prisma.PrismaPromise<InputErrors>;
/**
* Fields of the Pipeline model
*/
readonly fields: PipelineFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Pipeline.
* 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__PipelineClient<
T,
Null = never,
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
GlobalOmitOptions = {},
> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: 'PrismaPromise';
Project<T extends Prisma.Pipeline$ProjectArgs<ExtArgs> = {}>(
args?: Prisma.Subset<T, Prisma.Pipeline$ProjectArgs<ExtArgs>>,
): Prisma.Prisma__ProjectClient<
runtime.Types.Result.GetResult<
Prisma.$ProjectPayload<ExtArgs>,
T,
'findUniqueOrThrow',
GlobalOmitOptions
> | null,
null,
ExtArgs,
GlobalOmitOptions
>;
steps<T extends Prisma.Pipeline$stepsArgs<ExtArgs> = {}>(
args?: Prisma.Subset<T, Prisma.Pipeline$stepsArgs<ExtArgs>>,
): Prisma.PrismaPromise<
| runtime.Types.Result.GetResult<
Prisma.$StepPayload<ExtArgs>,
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<TResult1 = T, TResult2 = never>(
onfulfilled?:
| ((value: T) => TResult1 | PromiseLike<TResult1>)
| undefined
| null,
onrejected?:
| ((reason: any) => TResult2 | PromiseLike<TResult2>)
| undefined
| null,
): runtime.Types.Utils.JsPromise<TResult1 | TResult2>;
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(
onrejected?:
| ((reason: any) => TResult | PromiseLike<TResult>)
| undefined
| null,
): runtime.Types.Utils.JsPromise<T | TResult>;
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(
onfinally?: (() => void) | undefined | null,
): runtime.Types.Utils.JsPromise<T>;
}
/**
* Fields of the Pipeline model
*/
export interface PipelineFieldRefs {
readonly id: Prisma.FieldRef<'Pipeline', 'Int'>;
readonly name: Prisma.FieldRef<'Pipeline', 'String'>;
readonly description: Prisma.FieldRef<'Pipeline', 'String'>;
readonly valid: Prisma.FieldRef<'Pipeline', 'Int'>;
readonly createdAt: Prisma.FieldRef<'Pipeline', 'DateTime'>;
readonly updatedAt: Prisma.FieldRef<'Pipeline', 'DateTime'>;
readonly createdBy: Prisma.FieldRef<'Pipeline', 'String'>;
readonly updatedBy: Prisma.FieldRef<'Pipeline', 'String'>;
readonly projectId: Prisma.FieldRef<'Pipeline', 'Int'>;
}
// Custom InputTypes
/**
* Pipeline findUnique
*/
export type PipelineFindUniqueArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
/**
* Filter, which Pipeline to fetch.
*/
where: Prisma.PipelineWhereUniqueInput;
};
/**
* Pipeline findUniqueOrThrow
*/
export type PipelineFindUniqueOrThrowArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
/**
* Filter, which Pipeline to fetch.
*/
where: Prisma.PipelineWhereUniqueInput;
};
/**
* Pipeline findFirst
*/
export type PipelineFindFirstArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
/**
* Filter, which Pipeline to fetch.
*/
where?: Prisma.PipelineWhereInput;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Pipelines to fetch.
*/
orderBy?:
| Prisma.PipelineOrderByWithRelationInput
| Prisma.PipelineOrderByWithRelationInput[];
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Pipelines.
*/
cursor?: Prisma.PipelineWhereUniqueInput;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Pipelines 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` Pipelines.
*/
skip?: number;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Pipelines.
*/
distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[];
};
/**
* Pipeline findFirstOrThrow
*/
export type PipelineFindFirstOrThrowArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
/**
* Filter, which Pipeline to fetch.
*/
where?: Prisma.PipelineWhereInput;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Pipelines to fetch.
*/
orderBy?:
| Prisma.PipelineOrderByWithRelationInput
| Prisma.PipelineOrderByWithRelationInput[];
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Pipelines.
*/
cursor?: Prisma.PipelineWhereUniqueInput;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Pipelines 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` Pipelines.
*/
skip?: number;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Pipelines.
*/
distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[];
};
/**
* Pipeline findMany
*/
export type PipelineFindManyArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
/**
* Filter, which Pipelines to fetch.
*/
where?: Prisma.PipelineWhereInput;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Pipelines to fetch.
*/
orderBy?:
| Prisma.PipelineOrderByWithRelationInput
| Prisma.PipelineOrderByWithRelationInput[];
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Pipelines.
*/
cursor?: Prisma.PipelineWhereUniqueInput;
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Pipelines 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` Pipelines.
*/
skip?: number;
distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[];
};
/**
* Pipeline create
*/
export type PipelineCreateArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
/**
* The data needed to create a Pipeline.
*/
data: Prisma.XOR<
Prisma.PipelineCreateInput,
Prisma.PipelineUncheckedCreateInput
>;
};
/**
* Pipeline createMany
*/
export type PipelineCreateManyArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* The data used to create many Pipelines.
*/
data: Prisma.PipelineCreateManyInput | Prisma.PipelineCreateManyInput[];
};
/**
* Pipeline createManyAndReturn
*/
export type PipelineCreateManyAndReturnArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelectCreateManyAndReturn<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* The data used to create many Pipelines.
*/
data: Prisma.PipelineCreateManyInput | Prisma.PipelineCreateManyInput[];
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineIncludeCreateManyAndReturn<ExtArgs> | null;
};
/**
* Pipeline update
*/
export type PipelineUpdateArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
/**
* The data needed to update a Pipeline.
*/
data: Prisma.XOR<
Prisma.PipelineUpdateInput,
Prisma.PipelineUncheckedUpdateInput
>;
/**
* Choose, which Pipeline to update.
*/
where: Prisma.PipelineWhereUniqueInput;
};
/**
* Pipeline updateMany
*/
export type PipelineUpdateManyArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* The data used to update Pipelines.
*/
data: Prisma.XOR<
Prisma.PipelineUpdateManyMutationInput,
Prisma.PipelineUncheckedUpdateManyInput
>;
/**
* Filter which Pipelines to update
*/
where?: Prisma.PipelineWhereInput;
/**
* Limit how many Pipelines to update.
*/
limit?: number;
};
/**
* Pipeline updateManyAndReturn
*/
export type PipelineUpdateManyAndReturnArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelectUpdateManyAndReturn<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* The data used to update Pipelines.
*/
data: Prisma.XOR<
Prisma.PipelineUpdateManyMutationInput,
Prisma.PipelineUncheckedUpdateManyInput
>;
/**
* Filter which Pipelines to update
*/
where?: Prisma.PipelineWhereInput;
/**
* Limit how many Pipelines to update.
*/
limit?: number;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineIncludeUpdateManyAndReturn<ExtArgs> | null;
};
/**
* Pipeline upsert
*/
export type PipelineUpsertArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
/**
* The filter to search for the Pipeline to update in case it exists.
*/
where: Prisma.PipelineWhereUniqueInput;
/**
* In case the Pipeline found by the `where` argument doesn't exist, create a new Pipeline with this data.
*/
create: Prisma.XOR<
Prisma.PipelineCreateInput,
Prisma.PipelineUncheckedCreateInput
>;
/**
* In case the Pipeline was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<
Prisma.PipelineUpdateInput,
Prisma.PipelineUncheckedUpdateInput
>;
};
/**
* Pipeline delete
*/
export type PipelineDeleteArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
/**
* Filter which Pipeline to delete.
*/
where: Prisma.PipelineWhereUniqueInput;
};
/**
* Pipeline deleteMany
*/
export type PipelineDeleteManyArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Filter which Pipelines to delete
*/
where?: Prisma.PipelineWhereInput;
/**
* Limit how many Pipelines to delete.
*/
limit?: number;
};
/**
* Pipeline.Project
*/
export type Pipeline$ProjectArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Project
*/
select?: Prisma.ProjectSelect<ExtArgs> | null;
/**
* Omit specific fields from the Project
*/
omit?: Prisma.ProjectOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.ProjectInclude<ExtArgs> | null;
where?: Prisma.ProjectWhereInput;
};
/**
* Pipeline.steps
*/
export type Pipeline$stepsArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Step
*/
select?: Prisma.StepSelect<ExtArgs> | null;
/**
* Omit specific fields from the Step
*/
omit?: Prisma.StepOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.StepInclude<ExtArgs> | null;
where?: Prisma.StepWhereInput;
orderBy?:
| Prisma.StepOrderByWithRelationInput
| Prisma.StepOrderByWithRelationInput[];
cursor?: Prisma.StepWhereUniqueInput;
take?: number;
skip?: number;
distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[];
};
/**
* Pipeline without action
*/
export type PipelineDefaultArgs<
ExtArgs extends
runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs,
> = {
/**
* Select specific fields to fetch from the Pipeline
*/
select?: Prisma.PipelineSelect<ExtArgs> | null;
/**
* Omit specific fields from the Pipeline
*/
omit?: Prisma.PipelineOmit<ExtArgs> | null;
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.PipelineInclude<ExtArgs> | null;
};