From d22fdc9618c049bbabcadf958ce5be74b636f17a Mon Sep 17 00:00:00 2001 From: hurole <1192163814@qq.com> Date: Sat, 3 Jan 2026 22:59:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=9E=E7=8E=B0=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E9=A2=84=E8=AE=BE=E5=8A=9F=E8=83=BD=20&=20?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=A8=80=E7=96=8F=E6=A3=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 后端改动 - 添加 Project.envPresets 字段(JSON 格式) - 移除 Deployment.env 字段,统一使用 envVars - 更新部署 DTO,支持 envVars (Record) - pipeline-runner 支持解析并注入 envVars 到环境 - 移除稀疏检出模板和相关环境变量 - 优化代码格式(Biome lint & format) ## 前端改动 - 新增 EnvPresetsEditor 组件(支持单选/多选/输入框类型) - 项目创建/编辑界面集成环境预设编辑器 - 部署界面基于预设动态生成环境变量表单 - 移除稀疏检出表单项 - 项目详情页添加环境变量预设配置 tab - 优化部署界面布局(基本参数 & 环境变量分区) ## 文档 - 添加完整文档目录结构(docs/) - 创建设计文档 design-0005(部署流程重构) - 添加 API 文档、架构设计文档等 ## 数据库 - 执行 prisma db push 同步 schema 变更 --- .gitignore | 2 + apps/server/app.ts | 6 +- apps/server/controllers/auth/index.ts | 4 +- apps/server/controllers/deployment/dto.ts | 3 +- apps/server/controllers/deployment/index.ts | 22 +- apps/server/controllers/git/dto.ts | 10 +- apps/server/controllers/git/index.ts | 30 +- apps/server/controllers/index.ts | 9 +- apps/server/controllers/pipeline/dto.ts | 59 +- apps/server/controllers/pipeline/index.ts | 17 +- apps/server/controllers/project/dto.ts | 83 +- apps/server/controllers/project/index.ts | 14 +- apps/server/controllers/step/index.ts | 8 +- apps/server/controllers/user/index.ts | 39 +- apps/server/decorators/route.ts | 36 +- apps/server/generated/browser.ts | 33 +- apps/server/generated/client.ts | 60 +- apps/server/generated/commonInputTypes.ts | 686 ++--- apps/server/generated/enums.ts | 15 +- apps/server/generated/internal/class.ts | 220 +- .../generated/internal/prismaNamespace.ts | 1207 ++++---- .../internal/prismaNamespaceBrowser.ts | 104 +- apps/server/generated/models.ts | 15 +- apps/server/generated/models/Deployment.ts | 2607 ++++++++++------- apps/server/generated/models/Pipeline.ts | 2161 ++++++++------ apps/server/generated/models/Project.ts | 2131 ++++++++------ apps/server/generated/models/Step.ts | 1945 +++++++----- apps/server/generated/models/User.ts | 1586 +++++----- apps/server/libs/git-manager.ts | 2 +- apps/server/libs/gitea.ts | 53 +- apps/server/libs/pipeline-template.ts | 101 +- apps/server/libs/route-scanner.ts | 45 +- apps/server/middlewares/body-parser.ts | 2 +- apps/server/middlewares/exception.ts | 31 +- apps/server/middlewares/index.ts | 12 +- apps/server/middlewares/logger.ts | 5 +- apps/server/middlewares/router.ts | 12 +- apps/server/middlewares/session.ts | 2 +- apps/server/middlewares/types.ts | 2 +- apps/server/prisma/data/dev.db | Bin 40960 -> 53248 bytes apps/server/prisma/schema.prisma | 3 +- apps/server/runners/pipeline-runner.ts | 34 +- apps/web/src/hooks/useAsyncEffect.ts | 6 +- apps/web/src/index.tsx | 2 +- .../project/detail/components/DeployModal.tsx | 328 ++- .../detail/components/EnvPresetsEditor.tsx | 214 ++ apps/web/src/pages/project/detail/index.tsx | 377 ++- apps/web/src/pages/project/detail/service.ts | 18 +- .../list/components/CreateProjectModal.tsx | 34 +- .../list/components/EditProjectModal.tsx | 45 +- .../project/list/components/ProjectCard.tsx | 1 + apps/web/src/pages/project/list/index.tsx | 2 +- apps/web/src/pages/project/types.ts | 7 +- apps/web/src/shared/request.ts | 6 +- docs/.meta/OWNERS.md | 7 + docs/.meta/templates/design-template.md | 116 + docs/.meta/templates/runbook-template.md | 22 + docs/api/README.md | 14 + docs/api/endpoints.md | 78 + docs/api/openapi.yaml | 28 + docs/architecture/adr-0001-service-design.md | 26 + .../design-0001-product-prototype.md | 175 ++ .../design-0004-execution-queue.md | 166 ++ .../design-0005-refactor-deply.md | 127 + docs/changelogs/CHANGELOG.md | 9 + docs/development/setup.md | 88 + docs/getting-started.md | 79 + docs/index.md | 22 + docs/onboarding/new-hire.md | 13 + docs/runbooks/incident-response.md | 28 + package.json | 6 +- 71 files changed, 9611 insertions(+), 5849 deletions(-) create mode 100644 apps/web/src/pages/project/detail/components/EnvPresetsEditor.tsx create mode 100644 docs/.meta/OWNERS.md create mode 100644 docs/.meta/templates/design-template.md create mode 100644 docs/.meta/templates/runbook-template.md create mode 100644 docs/api/README.md create mode 100644 docs/api/endpoints.md create mode 100644 docs/api/openapi.yaml create mode 100644 docs/architecture/adr-0001-service-design.md create mode 100644 docs/architecture/design-0001-product-prototype.md create mode 100644 docs/architecture/design-0004-execution-queue.md create mode 100644 docs/architecture/design-0005-refactor-deply.md create mode 100644 docs/changelogs/CHANGELOG.md create mode 100644 docs/development/setup.md create mode 100644 docs/getting-started.md create mode 100644 docs/index.md create mode 100644 docs/onboarding/new-hire.md create mode 100644 docs/runbooks/incident-response.md diff --git a/.gitignore b/.gitignore index 6f3092c..b1fcc8b 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ dist/ .vscode/* !.vscode/extensions.json .idea + +.env diff --git a/apps/server/app.ts b/apps/server/app.ts index 8331591..20b8287 100644 --- a/apps/server/app.ts +++ b/apps/server/app.ts @@ -1,8 +1,8 @@ import Koa from 'koa'; -import { initMiddlewares } from './middlewares/index.ts'; -import { log } from './libs/logger.ts'; import { ExecutionQueue } from './libs/execution-queue.ts'; +import { log } from './libs/logger.ts'; import { initializePipelineTemplates } from './libs/pipeline-template.ts'; +import { initMiddlewares } from './middlewares/index.ts'; // 初始化应用 async function initializeApp() { @@ -26,7 +26,7 @@ async function initializeApp() { } // 启动应用 -initializeApp().catch(error => { +initializeApp().catch((error) => { console.error('Failed to start application:', error); process.exit(1); }); diff --git a/apps/server/controllers/auth/index.ts b/apps/server/controllers/auth/index.ts index 87a06ee..55368f5 100644 --- a/apps/server/controllers/auth/index.ts +++ b/apps/server/controllers/auth/index.ts @@ -1,8 +1,8 @@ import type { Context } from 'koa'; import { Controller, Get, Post } from '../../decorators/route.ts'; -import { prisma } from '../../libs/prisma.ts'; -import { log } from '../../libs/logger.ts'; import { gitea } from '../../libs/gitea.ts'; +import { log } from '../../libs/logger.ts'; +import { prisma } from '../../libs/prisma.ts'; import { loginSchema } from './dto.ts'; @Controller('/auth') diff --git a/apps/server/controllers/deployment/dto.ts b/apps/server/controllers/deployment/dto.ts index 22b4407..a0b09b0 100644 --- a/apps/server/controllers/deployment/dto.ts +++ b/apps/server/controllers/deployment/dto.ts @@ -12,8 +12,7 @@ export const createDeploymentSchema = z.object({ branch: z.string().min(1, { message: '分支不能为空' }), commitHash: z.string().min(1, { message: '提交哈希不能为空' }), commitMessage: z.string().min(1, { message: '提交信息不能为空' }), - env: z.string().optional(), - sparseCheckoutPaths: z.string().optional(), // 添加稀疏检出路径字段 + envVars: z.record(z.string()).optional(), // 环境变量 key-value 对象 }); export type ListDeploymentsQuery = z.infer; diff --git a/apps/server/controllers/deployment/index.ts b/apps/server/controllers/deployment/index.ts index e404ce8..699dc38 100644 --- a/apps/server/controllers/deployment/index.ts +++ b/apps/server/controllers/deployment/index.ts @@ -1,15 +1,17 @@ +import type { Context } from 'koa'; import { Controller, Get, Post } from '../../decorators/route.ts'; import type { Prisma } from '../../generated/client.ts'; -import { prisma } from '../../libs/prisma.ts'; -import type { Context } from 'koa'; -import { listDeploymentsQuerySchema, createDeploymentSchema } from './dto.ts'; import { ExecutionQueue } from '../../libs/execution-queue.ts'; +import { prisma } from '../../libs/prisma.ts'; +import { createDeploymentSchema, listDeploymentsQuerySchema } from './dto.ts'; @Controller('/deployments') export class DeploymentController { @Get('') async list(ctx: Context) { - const { page, pageSize, projectId } = listDeploymentsQuerySchema.parse(ctx.query); + const { page, pageSize, projectId } = listDeploymentsQuerySchema.parse( + ctx.query, + ); const where: Prisma.DeploymentWhereInput = { valid: 1, }; @@ -50,8 +52,7 @@ export class DeploymentController { connect: { id: body.projectId }, }, pipelineId: body.pipelineId, - env: body.env || 'dev', - sparseCheckoutPaths: body.sparseCheckoutPaths || '', // 添加稀疏检出路径 + envVars: body.envVars ? JSON.stringify(body.envVars) : null, buildLog: '', createdBy: 'system', // TODO: get from user updatedBy: 'system', @@ -73,7 +74,7 @@ export class DeploymentController { // 获取原始部署记录 const originalDeployment = await prisma.deployment.findUnique({ - where: { id: Number(id) } + where: { id: Number(id) }, }); if (!originalDeployment) { @@ -82,7 +83,7 @@ export class DeploymentController { code: 404, message: '部署记录不存在', data: null, - timestamp: Date.now() + timestamp: Date.now(), }; return; } @@ -96,8 +97,7 @@ export class DeploymentController { status: 'pending', projectId: originalDeployment.projectId, pipelineId: originalDeployment.pipelineId, - env: originalDeployment.env, - sparseCheckoutPaths: originalDeployment.sparseCheckoutPaths, + envVars: originalDeployment.envVars, buildLog: '', createdBy: 'system', updatedBy: 'system', @@ -113,7 +113,7 @@ export class DeploymentController { code: 0, message: '重新执行任务已创建', data: newDeployment, - timestamp: Date.now() + timestamp: Date.now(), }; } } diff --git a/apps/server/controllers/git/dto.ts b/apps/server/controllers/git/dto.ts index 1bc29b6..ebfb515 100644 --- a/apps/server/controllers/git/dto.ts +++ b/apps/server/controllers/git/dto.ts @@ -1,12 +1,18 @@ import { z } from 'zod'; export const getCommitsQuerySchema = z.object({ - projectId: z.coerce.number().int().positive({ message: 'Project ID is required' }), + projectId: z.coerce + .number() + .int() + .positive({ message: 'Project ID is required' }), branch: z.string().optional(), }); export const getBranchesQuerySchema = z.object({ - projectId: z.coerce.number().int().positive({ message: 'Project ID is required' }), + projectId: z.coerce + .number() + .int() + .positive({ message: 'Project ID is required' }), }); export type GetCommitsQuery = z.infer; diff --git a/apps/server/controllers/git/index.ts b/apps/server/controllers/git/index.ts index c3edda4..175544f 100644 --- a/apps/server/controllers/git/index.ts +++ b/apps/server/controllers/git/index.ts @@ -1,9 +1,9 @@ import type { Context } from 'koa'; import { Controller, Get } from '../../decorators/route.ts'; -import { prisma } from '../../libs/prisma.ts'; import { gitea } from '../../libs/gitea.ts'; +import { prisma } from '../../libs/prisma.ts'; import { BusinessError } from '../../middlewares/exception.ts'; -import { getCommitsQuerySchema, getBranchesQuerySchema } from './dto.ts'; +import { getBranchesQuerySchema, getCommitsQuerySchema } from './dto.ts'; @Controller('/git') export class GitController { @@ -33,7 +33,11 @@ export class GitController { console.log('Access token present:', !!accessToken); if (!accessToken) { - throw new BusinessError('Gitea access token not found. Please login again.', 1004, 401); + throw new BusinessError( + 'Gitea access token not found. Please login again.', + 1004, + 401, + ); } try { @@ -65,7 +69,11 @@ export class GitController { const accessToken = ctx.session?.gitea?.access_token; if (!accessToken) { - throw new BusinessError('Gitea access token not found. Please login again.', 1004, 401); + throw new BusinessError( + 'Gitea access token not found. Please login again.', + 1004, + 401, + ); } try { @@ -85,7 +93,7 @@ export class GitController { // Handle SCP-like syntax: git@host:owner/repo.git if (!cleanUrl.includes('://') && cleanUrl.includes(':')) { - const scpMatch = cleanUrl.match(/:([^\/]+)\/([^\/]+?)(\.git)?$/); + const scpMatch = cleanUrl.match(/:([^/]+)\/([^/]+?)(\.git)?$/); if (scpMatch) { return { owner: scpMatch[1], repo: scpMatch[2] }; } @@ -96,13 +104,15 @@ export class GitController { const urlObj = new URL(cleanUrl); const parts = urlObj.pathname.split('/').filter(Boolean); if (parts.length >= 2) { - const repo = parts.pop()!.replace(/\.git$/, ''); - const owner = parts.pop()!; - return { owner, repo }; + const repo = parts.pop()?.replace(/\.git$/, ''); + const owner = parts.pop(); + if (repo && owner) { + return { owner, repo }; + } } - } catch (e) { + } catch (_e) { // Fallback to simple regex - const match = cleanUrl.match(/([^\/]+)\/([^\/]+?)(\.git)?$/); + const match = cleanUrl.match(/([^/]+)\/([^/]+?)(\.git)?$/); if (match) { return { owner: match[1], repo: match[2] }; } diff --git a/apps/server/controllers/index.ts b/apps/server/controllers/index.ts index 051649a..8a86bdf 100644 --- a/apps/server/controllers/index.ts +++ b/apps/server/controllers/index.ts @@ -1,8 +1,9 @@ // 控制器统一导出 -export { ProjectController } from './project/index.ts'; -export { UserController } from './user/index.ts'; + export { AuthController } from './auth/index.ts'; export { DeploymentController } from './deployment/index.ts'; -export { PipelineController } from './pipeline/index.ts'; -export { StepController } from './step/index.ts' export { GitController } from './git/index.ts'; +export { PipelineController } from './pipeline/index.ts'; +export { ProjectController } from './project/index.ts'; +export { StepController } from './step/index.ts'; +export { UserController } from './user/index.ts'; diff --git a/apps/server/controllers/pipeline/dto.ts b/apps/server/controllers/pipeline/dto.ts index cb88712..ba8d442 100644 --- a/apps/server/controllers/pipeline/dto.ts +++ b/apps/server/controllers/pipeline/dto.ts @@ -2,36 +2,59 @@ import { z } from 'zod'; // 定义验证架构 export const createPipelineSchema = z.object({ - name: z.string({ - message: '流水线名称必须是字符串', - }).min(1, { message: '流水线名称不能为空' }).max(100, { message: '流水线名称不能超过100个字符' }), + name: z + .string({ + message: '流水线名称必须是字符串', + }) + .min(1, { message: '流水线名称不能为空' }) + .max(100, { message: '流水线名称不能超过100个字符' }), - description: z.string({ - message: '流水线描述必须是字符串', - }).max(500, { message: '流水线描述不能超过500个字符' }).optional(), + description: z + .string({ + message: '流水线描述必须是字符串', + }) + .max(500, { message: '流水线描述不能超过500个字符' }) + .optional(), - projectId: z.number({ - message: '项目ID必须是数字', - }).int().positive({ message: '项目ID必须是正整数' }).optional(), + projectId: z + .number({ + message: '项目ID必须是数字', + }) + .int() + .positive({ message: '项目ID必须是正整数' }) + .optional(), }); export const updatePipelineSchema = z.object({ - name: z.string({ - message: '流水线名称必须是字符串', - }).min(1, { message: '流水线名称不能为空' }).max(100, { message: '流水线名称不能超过100个字符' }).optional(), + name: z + .string({ + message: '流水线名称必须是字符串', + }) + .min(1, { message: '流水线名称不能为空' }) + .max(100, { message: '流水线名称不能超过100个字符' }) + .optional(), - description: z.string({ - message: '流水线描述必须是字符串', - }).max(500, { message: '流水线描述不能超过500个字符' }).optional(), + description: z + .string({ + message: '流水线描述必须是字符串', + }) + .max(500, { message: '流水线描述不能超过500个字符' }) + .optional(), }); export const pipelineIdSchema = z.object({ id: z.coerce.number().int().positive({ message: '流水线 ID 必须是正整数' }), }); -export const listPipelinesQuerySchema = z.object({ - projectId: z.coerce.number().int().positive({ message: '项目ID必须是正整数' }).optional(), -}).optional(); +export const listPipelinesQuerySchema = z + .object({ + projectId: z.coerce + .number() + .int() + .positive({ message: '项目ID必须是正整数' }) + .optional(), + }) + .optional(); // 类型 export type CreatePipelineInput = z.infer; diff --git a/apps/server/controllers/pipeline/index.ts b/apps/server/controllers/pipeline/index.ts index 067b598..519e0ec 100644 --- a/apps/server/controllers/pipeline/index.ts +++ b/apps/server/controllers/pipeline/index.ts @@ -1,14 +1,17 @@ import type { Context } from 'koa'; -import { Controller, Get, Post, Put, Delete } from '../../decorators/route.ts'; -import { prisma } from '../../libs/prisma.ts'; +import { Controller, Delete, Get, Post, Put } from '../../decorators/route.ts'; import { log } from '../../libs/logger.ts'; +import { + createPipelineFromTemplate, + getAvailableTemplates, +} from '../../libs/pipeline-template.ts'; +import { prisma } from '../../libs/prisma.ts'; import { BusinessError } from '../../middlewares/exception.ts'; -import { getAvailableTemplates, createPipelineFromTemplate } from '../../libs/pipeline-template.ts'; import { createPipelineSchema, - updatePipelineSchema, - pipelineIdSchema, listPipelinesQuerySchema, + pipelineIdSchema, + updatePipelineSchema, } from './dto.ts'; @Controller('/pipelines') @@ -46,7 +49,7 @@ export class PipelineController { // GET /api/pipelines/templates - 获取可用的流水线模板 @Get('/templates') - async getTemplates(ctx: Context) { + async getTemplates(_ctx: Context) { try { const templates = await getAvailableTemplates(); return templates; @@ -126,7 +129,7 @@ export class PipelineController { templateId, projectId, name, - description || '' + description || '', ); // 返回新创建的流水线 diff --git a/apps/server/controllers/project/dto.ts b/apps/server/controllers/project/dto.ts index 0f1e76e..1d775ae 100644 --- a/apps/server/controllers/project/dto.ts +++ b/apps/server/controllers/project/dto.ts @@ -5,46 +5,83 @@ import { projectDirSchema } from '../../libs/path-validator.js'; * 创建项目验证架构 */ export const createProjectSchema = z.object({ - name: z.string({ - message: '项目名称必须是字符串', - }).min(2, { message: '项目名称至少2个字符' }).max(50, { message: '项目名称不能超过50个字符' }), + name: z + .string({ + message: '项目名称必须是字符串', + }) + .min(2, { message: '项目名称至少2个字符' }) + .max(50, { message: '项目名称不能超过50个字符' }), - description: z.string({ - message: '项目描述必须是字符串', - }).max(200, { message: '项目描述不能超过200个字符' }).optional(), + description: z + .string({ + message: '项目描述必须是字符串', + }) + .max(200, { message: '项目描述不能超过200个字符' }) + .optional(), - repository: z.string({ - message: '仓库地址必须是字符串', - }).url({ message: '请输入有效的仓库地址' }).min(1, { message: '仓库地址不能为空' }), + repository: z + .string({ + message: '仓库地址必须是字符串', + }) + .url({ message: '请输入有效的仓库地址' }) + .min(1, { message: '仓库地址不能为空' }), projectDir: projectDirSchema, + + envPresets: z.string().optional(), // JSON 字符串格式 }); /** * 更新项目验证架构 */ export const updateProjectSchema = z.object({ - name: z.string({ - message: '项目名称必须是字符串', - }).min(2, { message: '项目名称至少2个字符' }).max(50, { message: '项目名称不能超过50个字符' }).optional(), + name: z + .string({ + message: '项目名称必须是字符串', + }) + .min(2, { message: '项目名称至少2个字符' }) + .max(50, { message: '项目名称不能超过50个字符' }) + .optional(), - description: z.string({ - message: '项目描述必须是字符串', - }).max(200, { message: '项目描述不能超过200个字符' }).optional(), + description: z + .string({ + message: '项目描述必须是字符串', + }) + .max(200, { message: '项目描述不能超过200个字符' }) + .optional(), - repository: z.string({ - message: '仓库地址必须是字符串', - }).url({ message: '请输入有效的仓库地址' }).min(1, { message: '仓库地址不能为空' }).optional(), + repository: z + .string({ + message: '仓库地址必须是字符串', + }) + .url({ message: '请输入有效的仓库地址' }) + .min(1, { message: '仓库地址不能为空' }) + .optional(), + + envPresets: z.string().optional(), // JSON 字符串格式 }); /** * 项目列表查询参数验证架构 */ -export const listProjectQuerySchema = z.object({ - page: z.coerce.number().int().min(1, { message: '页码必须大于0' }).optional().default(1), - limit: z.coerce.number().int().min(1, { message: '每页数量必须大于0' }).max(100, { message: '每页数量不能超过100' }).optional().default(10), - name: z.string().optional(), -}).optional(); +export const listProjectQuerySchema = z + .object({ + page: z.coerce + .number() + .int() + .min(1, { message: '页码必须大于0' }) + .optional() + .default(1), + limit: z.coerce + .number() + .int() + .min(1, { message: '每页数量必须大于0' }) + .max(100, { message: '每页数量不能超过100' }) + .optional() + .default(10), + name: z.string().optional(), + }) + .optional(); /** * 项目ID验证架构 diff --git a/apps/server/controllers/project/index.ts b/apps/server/controllers/project/index.ts index b86338b..b226502 100644 --- a/apps/server/controllers/project/index.ts +++ b/apps/server/controllers/project/index.ts @@ -1,14 +1,14 @@ import type { Context } from 'koa'; -import { prisma } from '../../libs/prisma.ts'; -import { log } from '../../libs/logger.ts'; -import { BusinessError } from '../../middlewares/exception.ts'; -import { Controller, Get, Post, Put, Delete } from '../../decorators/route.ts'; +import { Controller, Delete, Get, Post, Put } from '../../decorators/route.ts'; import { GitManager } from '../../libs/git-manager.ts'; +import { log } from '../../libs/logger.ts'; +import { prisma } from '../../libs/prisma.ts'; +import { BusinessError } from '../../middlewares/exception.ts'; import { createProjectSchema, - updateProjectSchema, listProjectQuerySchema, projectIdSchema, + updateProjectSchema, } from './dto.ts'; @Controller('/projects') @@ -135,6 +135,7 @@ export class ProjectController { description: validatedData.description || '', repository: validatedData.repository, projectDir: validatedData.projectDir, + envPresets: validatedData.envPresets, createdBy: 'system', updatedBy: 'system', valid: 1, @@ -182,6 +183,9 @@ export class ProjectController { if (validatedData.repository !== undefined) { updateData.repository = validatedData.repository; } + if (validatedData.envPresets !== undefined) { + updateData.envPresets = validatedData.envPresets; + } const project = await prisma.project.update({ where: { id }, diff --git a/apps/server/controllers/step/index.ts b/apps/server/controllers/step/index.ts index a87c47a..4442650 100644 --- a/apps/server/controllers/step/index.ts +++ b/apps/server/controllers/step/index.ts @@ -1,13 +1,13 @@ import type { Context } from 'koa'; -import { prisma } from '../../libs/prisma.ts'; +import { Controller, Delete, Get, Post, Put } from '../../decorators/route.ts'; import { log } from '../../libs/logger.ts'; +import { prisma } from '../../libs/prisma.ts'; import { BusinessError } from '../../middlewares/exception.ts'; -import { Controller, Get, Post, Put, Delete } from '../../decorators/route.ts'; import { createStepSchema, - updateStepSchema, - stepIdSchema, listStepsQuerySchema, + stepIdSchema, + updateStepSchema, } from './dto.ts'; @Controller('/steps') diff --git a/apps/server/controllers/user/index.ts b/apps/server/controllers/user/index.ts index 347a0dd..a945870 100644 --- a/apps/server/controllers/user/index.ts +++ b/apps/server/controllers/user/index.ts @@ -1,11 +1,11 @@ import type { Context } from 'koa'; -import { Controller, Get, Post, Put, Delete } from '../../decorators/route.ts'; +import { Controller, Delete, Get, Post, Put } from '../../decorators/route.ts'; import { BusinessError } from '../../middlewares/exception.ts'; import { - userIdSchema, createUserSchema, - updateUserSchema, searchUserQuerySchema, + updateUserSchema, + userIdSchema, } from './dto.ts'; /** @@ -13,14 +13,18 @@ import { */ @Controller('/user') export class UserController { - @Get('/list') - async list(ctx: Context) { + async list(_ctx: Context) { // 模拟用户列表数据 const users = [ { id: 1, name: 'Alice', email: 'alice@example.com', status: 'active' }, { id: 2, name: 'Bob', email: 'bob@example.com', status: 'inactive' }, - { id: 3, name: 'Charlie', email: 'charlie@example.com', status: 'active' } + { + id: 3, + name: 'Charlie', + email: 'charlie@example.com', + status: 'active', + }, ]; return users; @@ -33,10 +37,10 @@ export class UserController { // 模拟根据ID查找用户 const user = { id, - name: 'User ' + id, + name: `User ${id}`, email: `user${id}@example.com`, status: 'active', - createdAt: new Date().toISOString() + createdAt: new Date().toISOString(), }; if (id > 100) { @@ -55,7 +59,7 @@ export class UserController { id: Date.now(), ...body, createdAt: new Date().toISOString(), - status: body.status + status: body.status, }; return newUser; @@ -70,7 +74,7 @@ export class UserController { const updatedUser = { id, ...body, - updatedAt: new Date().toISOString() + updatedAt: new Date().toISOString(), }; return updatedUser; @@ -88,7 +92,7 @@ export class UserController { return { success: true, message: `用户 ${id} 已删除`, - deletedAt: new Date().toISOString() + deletedAt: new Date().toISOString(), }; } @@ -99,25 +103,26 @@ export class UserController { // 模拟搜索逻辑 let results = [ { id: 1, name: 'Alice', email: 'alice@example.com', status: 'active' }, - { id: 2, name: 'Bob', email: 'bob@example.com', status: 'inactive' } + { id: 2, name: 'Bob', email: 'bob@example.com', status: 'inactive' }, ]; if (keyword) { - results = results.filter(user => - user.name.toLowerCase().includes(keyword.toLowerCase()) || - user.email.toLowerCase().includes(keyword.toLowerCase()) + results = results.filter( + (user) => + user.name.toLowerCase().includes(keyword.toLowerCase()) || + user.email.toLowerCase().includes(keyword.toLowerCase()), ); } if (status) { - results = results.filter(user => user.status === status); + results = results.filter((user) => user.status === status); } return { keyword, status, total: results.length, - results + results, }; } } diff --git a/apps/server/decorators/route.ts b/apps/server/decorators/route.ts index 644379e..73e44c0 100644 --- a/apps/server/decorators/route.ts +++ b/apps/server/decorators/route.ts @@ -25,17 +25,24 @@ const metadataStore = new WeakMap>(); /** * 设置元数据(降级方案) */ -function setMetadata(key: string | symbol, value: T, target: any): void { +function setMetadata( + key: string | symbol, + value: T, + target: any, +): void { if (!metadataStore.has(target)) { metadataStore.set(target, new Map()); } - metadataStore.get(target)!.set(key, value); + metadataStore.get(target)?.set(key, value); } /** * 获取元数据(降级方案) */ -function getMetadata(key: string | symbol, target: any): T | undefined { +function getMetadata( + key: string | symbol, + target: any, +): T | undefined { return metadataStore.get(target)?.get(key); } @@ -43,24 +50,28 @@ function getMetadata(key: string | symbol, target: any): T | undefined * 创建HTTP方法装饰器的工厂函数(TC39标准) */ function createMethodDecorator(method: HttpMethod) { - return function (path: string = '') { - return function ( + return (path: string = '') => + ( target: (this: This, ...args: Args) => Return, - context: ClassMethodDecoratorContext Return> - ) { + context: ClassMethodDecoratorContext< + This, + (this: This, ...args: Args) => Return + >, + ) => { // 在类初始化时执行 context.addInitializer(function () { // 使用 this.constructor 时需要类型断言 const ctor = (this as any).constructor; // 获取现有的路由元数据 - const existingRoutes: RouteMetadata[] = getMetadata(ROUTE_METADATA_KEY, ctor) || []; + const existingRoutes: RouteMetadata[] = + getMetadata(ROUTE_METADATA_KEY, ctor) || []; // 添加新的路由元数据 const newRoute: RouteMetadata = { method, path, - propertyKey: String(context.name) + propertyKey: String(context.name), }; existingRoutes.push(newRoute); @@ -71,7 +82,6 @@ function createMethodDecorator(method: HttpMethod) { return target; }; - }; } /** @@ -109,10 +119,10 @@ export const Patch = createMethodDecorator('PATCH'); * @param prefix 路由前缀 */ export function Controller(prefix: string = '') { - return function any>( + return any>( target: T, - context: ClassDecoratorContext - ) { + context: ClassDecoratorContext, + ) => { // 在类初始化时保存控制器前缀 context.addInitializer(function () { setMetadata('prefix', prefix, this); diff --git a/apps/server/generated/browser.ts b/apps/server/generated/browser.ts index 259df35..b13d8a4 100644 --- a/apps/server/generated/browser.ts +++ b/apps/server/generated/browser.ts @@ -1,44 +1,43 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* - * This file should be your main import to use Prisma-related types and utilities in a browser. + * This file should be your main import to use Prisma-related types and utilities in a browser. * Use it to get access to models, enums, and input types. - * + * * This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only. * See `client.ts` for the standard, server-side entry point. * * 🟢 You can import this file directly. */ -import * as Prisma from './internal/prismaNamespaceBrowser.ts' -export { Prisma } -export * as $Enums from './enums.ts' +import * as Prisma from './internal/prismaNamespaceBrowser.ts'; +export { Prisma }; +export * as $Enums from './enums.ts'; export * from './enums.ts'; /** * Model Project - * + * */ -export type Project = Prisma.ProjectModel +export type Project = Prisma.ProjectModel; /** * Model User - * + * */ -export type User = Prisma.UserModel +export type User = Prisma.UserModel; /** * Model Pipeline - * + * */ -export type Pipeline = Prisma.PipelineModel +export type Pipeline = Prisma.PipelineModel; /** * Model Step - * + * */ -export type Step = Prisma.StepModel +export type Step = Prisma.StepModel; /** * Model Deployment - * + * */ -export type Deployment = Prisma.DeploymentModel +export type Deployment = Prisma.DeploymentModel; diff --git a/apps/server/generated/client.ts b/apps/server/generated/client.ts index e6be9e0..98b6d47 100644 --- a/apps/server/generated/client.ts +++ b/apps/server/generated/client.ts @@ -1,8 +1,7 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* * This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types. * If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead. @@ -10,21 +9,22 @@ * 🟢 You can import this file directly. */ -import * as process from 'node:process' -import * as path from 'node:path' -import { fileURLToPath } from 'node:url' -globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)) +import * as path from 'node:path'; +import * as process from 'node:process'; +import { fileURLToPath } from 'node:url'; -import * as runtime from "@prisma/client/runtime/client" -import * as $Enums from "./enums.ts" -import * as $Class from "./internal/class.ts" -import * as Prisma from "./internal/prismaNamespace.ts" +globalThis['__dirname'] = path.dirname(fileURLToPath(import.meta.url)); -export * as $Enums from './enums.ts' -export * from "./enums.ts" +import * as runtime from '@prisma/client/runtime/client'; +import * as $Enums from './enums.ts'; +import * as $Class from './internal/class.ts'; +import * as Prisma from './internal/prismaNamespace.ts'; + +export * as $Enums from './enums.ts'; +export * from './enums.ts'; /** * ## Prisma Client - * + * * Type-safe database client for TypeScript * @example * ``` @@ -32,35 +32,41 @@ export * from "./enums.ts" * // Fetch zero or more Projects * const projects = await prisma.project.findMany() * ``` - * + * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ -export const PrismaClient = $Class.getPrismaClientClass() -export type PrismaClient = $Class.PrismaClient -export { Prisma } +export const PrismaClient = $Class.getPrismaClientClass(); +export type PrismaClient< + LogOpts extends Prisma.LogLevel = never, + OmitOpts extends + Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = $Class.PrismaClient; +export { Prisma }; /** * Model Project - * + * */ -export type Project = Prisma.ProjectModel +export type Project = Prisma.ProjectModel; /** * Model User - * + * */ -export type User = Prisma.UserModel +export type User = Prisma.UserModel; /** * Model Pipeline - * + * */ -export type Pipeline = Prisma.PipelineModel +export type Pipeline = Prisma.PipelineModel; /** * Model Step - * + * */ -export type Step = Prisma.StepModel +export type Step = Prisma.StepModel; /** * Model Deployment - * + * */ -export type Deployment = Prisma.DeploymentModel +export type Deployment = Prisma.DeploymentModel; diff --git a/apps/server/generated/commonInputTypes.ts b/apps/server/generated/commonInputTypes.ts index b98c4cd..4aed189 100644 --- a/apps/server/generated/commonInputTypes.ts +++ b/apps/server/generated/commonInputTypes.ts @@ -1,402 +1,426 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* * This file exports various common sort, input & filter types that are not directly linked to a particular model. * * 🟢 You can import this file directly. */ -import type * as runtime from "@prisma/client/runtime/client" -import * as $Enums from "./enums.ts" -import type * as Prisma from "./internal/prismaNamespace.ts" - +import type * as runtime from '@prisma/client/runtime/client'; +import * as $Enums from './enums.ts'; +import type * as Prisma from './internal/prismaNamespace.ts'; export type IntFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntFilter<$PrismaModel> | number -} + equals?: number | Prisma.IntFieldRefInput<$PrismaModel>; + in?: number[]; + notIn?: number[]; + lt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + lte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + not?: Prisma.NestedIntFilter<$PrismaModel> | number; +}; export type StringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringFilter<$PrismaModel> | string -} + equals?: string | Prisma.StringFieldRefInput<$PrismaModel>; + in?: string[]; + notIn?: string[]; + lt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + lte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + contains?: string | Prisma.StringFieldRefInput<$PrismaModel>; + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + not?: Prisma.NestedStringFilter<$PrismaModel> | string; +}; export type StringNullableFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null -} + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null; + in?: string[] | null; + notIn?: string[] | null; + lt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + lte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + contains?: string | Prisma.StringFieldRefInput<$PrismaModel>; + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null; +}; export type DateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string -} + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + in?: Date[] | string[]; + notIn?: Date[] | string[]; + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string; +}; export type SortOrderInput = { - sort: Prisma.SortOrder - nulls?: Prisma.NullsOrder -} + sort: Prisma.SortOrder; + nulls?: Prisma.NullsOrder; +}; export type IntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: Prisma.NestedIntFilter<$PrismaModel> - _avg?: Prisma.NestedFloatFilter<$PrismaModel> - _sum?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedIntFilter<$PrismaModel> - _max?: Prisma.NestedIntFilter<$PrismaModel> -} + equals?: number | Prisma.IntFieldRefInput<$PrismaModel>; + in?: number[]; + notIn?: number[]; + lt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + lte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number; + _count?: Prisma.NestedIntFilter<$PrismaModel>; + _avg?: Prisma.NestedFloatFilter<$PrismaModel>; + _sum?: Prisma.NestedIntFilter<$PrismaModel>; + _min?: Prisma.NestedIntFilter<$PrismaModel>; + _max?: Prisma.NestedIntFilter<$PrismaModel>; +}; export type StringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedStringFilter<$PrismaModel> - _max?: Prisma.NestedStringFilter<$PrismaModel> -} + equals?: string | Prisma.StringFieldRefInput<$PrismaModel>; + in?: string[]; + notIn?: string[]; + lt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + lte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + contains?: string | Prisma.StringFieldRefInput<$PrismaModel>; + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string; + _count?: Prisma.NestedIntFilter<$PrismaModel>; + _min?: Prisma.NestedStringFilter<$PrismaModel>; + _max?: Prisma.NestedStringFilter<$PrismaModel>; +}; export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedStringNullableFilter<$PrismaModel> - _max?: Prisma.NestedStringNullableFilter<$PrismaModel> -} + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null; + in?: string[] | null; + notIn?: string[] | null; + lt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + lte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + contains?: string | Prisma.StringFieldRefInput<$PrismaModel>; + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + not?: + | Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> + | string + | null; + _count?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _min?: Prisma.NestedStringNullableFilter<$PrismaModel>; + _max?: Prisma.NestedStringNullableFilter<$PrismaModel>; +}; export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + in?: Date[] | string[]; + notIn?: Date[] | string[]; + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string; + _count?: Prisma.NestedIntFilter<$PrismaModel>; + _min?: Prisma.NestedDateTimeFilter<$PrismaModel>; + _max?: Prisma.NestedDateTimeFilter<$PrismaModel>; +}; export type BoolFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean -} + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>; + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean; +}; export type BoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedBoolFilter<$PrismaModel> - _max?: Prisma.NestedBoolFilter<$PrismaModel> -} + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>; + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean; + _count?: Prisma.NestedIntFilter<$PrismaModel>; + _min?: Prisma.NestedBoolFilter<$PrismaModel>; + _max?: Prisma.NestedBoolFilter<$PrismaModel>; +}; export type IntNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null -} + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null; + in?: number[] | null; + notIn?: number[] | null; + lt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + lte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null; +}; export type IntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> - _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedIntNullableFilter<$PrismaModel> - _max?: Prisma.NestedIntNullableFilter<$PrismaModel> -} + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null; + in?: number[] | null; + notIn?: number[] | null; + lt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + lte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + not?: + | Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> + | number + | null; + _count?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>; + _sum?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _min?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _max?: Prisma.NestedIntNullableFilter<$PrismaModel>; +}; export type DateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null -} + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null; + in?: Date[] | string[] | null; + notIn?: Date[] | string[] | null; + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + not?: + | Prisma.NestedDateTimeNullableFilter<$PrismaModel> + | Date + | string + | null; +}; export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> -} + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null; + in?: Date[] | string[] | null; + notIn?: Date[] | string[] | null; + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + not?: + | Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> + | Date + | string + | null; + _count?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>; + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>; +}; export type NestedIntFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntFilter<$PrismaModel> | number -} + equals?: number | Prisma.IntFieldRefInput<$PrismaModel>; + in?: number[]; + notIn?: number[]; + lt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + lte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + not?: Prisma.NestedIntFilter<$PrismaModel> | number; +}; export type NestedStringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringFilter<$PrismaModel> | string -} + equals?: string | Prisma.StringFieldRefInput<$PrismaModel>; + in?: string[]; + notIn?: string[]; + lt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + lte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + contains?: string | Prisma.StringFieldRefInput<$PrismaModel>; + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + not?: Prisma.NestedStringFilter<$PrismaModel> | string; +}; export type NestedStringNullableFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null -} + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null; + in?: string[] | null; + notIn?: string[] | null; + lt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + lte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + contains?: string | Prisma.StringFieldRefInput<$PrismaModel>; + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null; +}; export type NestedDateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string -} + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + in?: Date[] | string[]; + notIn?: Date[] | string[]; + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string; +}; export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number - _count?: Prisma.NestedIntFilter<$PrismaModel> - _avg?: Prisma.NestedFloatFilter<$PrismaModel> - _sum?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedIntFilter<$PrismaModel> - _max?: Prisma.NestedIntFilter<$PrismaModel> -} + equals?: number | Prisma.IntFieldRefInput<$PrismaModel>; + in?: number[]; + notIn?: number[]; + lt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + lte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number; + _count?: Prisma.NestedIntFilter<$PrismaModel>; + _avg?: Prisma.NestedFloatFilter<$PrismaModel>; + _sum?: Prisma.NestedIntFilter<$PrismaModel>; + _min?: Prisma.NestedIntFilter<$PrismaModel>; + _max?: Prisma.NestedIntFilter<$PrismaModel>; +}; export type NestedFloatFilter<$PrismaModel = never> = { - equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> - in?: number[] - notIn?: number[] - lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - not?: Prisma.NestedFloatFilter<$PrismaModel> | number -} + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>; + in?: number[]; + notIn?: number[]; + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>; + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>; + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>; + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>; + not?: Prisma.NestedFloatFilter<$PrismaModel> | number; +}; export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] - notIn?: string[] - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedStringFilter<$PrismaModel> - _max?: Prisma.NestedStringFilter<$PrismaModel> -} + equals?: string | Prisma.StringFieldRefInput<$PrismaModel>; + in?: string[]; + notIn?: string[]; + lt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + lte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + contains?: string | Prisma.StringFieldRefInput<$PrismaModel>; + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string; + _count?: Prisma.NestedIntFilter<$PrismaModel>; + _min?: Prisma.NestedStringFilter<$PrismaModel>; + _max?: Prisma.NestedStringFilter<$PrismaModel>; +}; export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | null - notIn?: string[] | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedStringNullableFilter<$PrismaModel> - _max?: Prisma.NestedStringNullableFilter<$PrismaModel> -} + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null; + in?: string[] | null; + notIn?: string[] | null; + lt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + lte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gt?: string | Prisma.StringFieldRefInput<$PrismaModel>; + gte?: string | Prisma.StringFieldRefInput<$PrismaModel>; + contains?: string | Prisma.StringFieldRefInput<$PrismaModel>; + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>; + not?: + | Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> + | string + | null; + _count?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _min?: Prisma.NestedStringNullableFilter<$PrismaModel>; + _max?: Prisma.NestedStringNullableFilter<$PrismaModel>; +}; export type NestedIntNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null -} + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null; + in?: number[] | null; + notIn?: number[] | null; + lt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + lte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null; +}; export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] - notIn?: Date[] | string[] - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + in?: Date[] | string[]; + notIn?: Date[] | string[]; + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string; + _count?: Prisma.NestedIntFilter<$PrismaModel>; + _min?: Prisma.NestedDateTimeFilter<$PrismaModel>; + _max?: Prisma.NestedDateTimeFilter<$PrismaModel>; +}; export type NestedBoolFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean -} + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>; + not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean; +}; export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedBoolFilter<$PrismaModel> - _max?: Prisma.NestedBoolFilter<$PrismaModel> -} + equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel>; + not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean; + _count?: Prisma.NestedIntFilter<$PrismaModel>; + _min?: Prisma.NestedBoolFilter<$PrismaModel>; + _max?: Prisma.NestedBoolFilter<$PrismaModel>; +}; export type NestedIntNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.IntFieldRefInput<$PrismaModel> - lte?: number | Prisma.IntFieldRefInput<$PrismaModel> - gt?: number | Prisma.IntFieldRefInput<$PrismaModel> - gte?: number | Prisma.IntFieldRefInput<$PrismaModel> - not?: Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> - _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedIntNullableFilter<$PrismaModel> - _max?: Prisma.NestedIntNullableFilter<$PrismaModel> -} + equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null; + in?: number[] | null; + notIn?: number[] | null; + lt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + lte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gt?: number | Prisma.IntFieldRefInput<$PrismaModel>; + gte?: number | Prisma.IntFieldRefInput<$PrismaModel>; + not?: + | Prisma.NestedIntNullableWithAggregatesFilter<$PrismaModel> + | number + | null; + _count?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel>; + _sum?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _min?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _max?: Prisma.NestedIntNullableFilter<$PrismaModel>; +}; export type NestedFloatNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null - in?: number[] | null - notIn?: number[] | null - lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null -} + equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null; + in?: number[] | null; + notIn?: number[] | null; + lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>; + lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>; + gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>; + gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>; + not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null; +}; export type NestedDateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null -} + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null; + in?: Date[] | string[] | null; + notIn?: Date[] | string[] | null; + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + not?: + | Prisma.NestedDateTimeNullableFilter<$PrismaModel> + | Date + | string + | null; +}; export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | null - notIn?: Date[] | string[] | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> -} - - + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null; + in?: Date[] | string[] | null; + notIn?: Date[] | string[] | null; + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>; + not?: + | Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> + | Date + | string + | null; + _count?: Prisma.NestedIntNullableFilter<$PrismaModel>; + _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>; + _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>; +}; diff --git a/apps/server/generated/enums.ts b/apps/server/generated/enums.ts index 043572d..ce74751 100644 --- a/apps/server/generated/enums.ts +++ b/apps/server/generated/enums.ts @@ -1,15 +1,12 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* -* This file exports all enum related types from the schema. -* -* 🟢 You can import this file directly. -*/ - - + * This file exports all enum related types from the schema. + * + * 🟢 You can import this file directly. + */ // This file is empty because there are no enums in the schema. -export {} +export {}; diff --git a/apps/server/generated/internal/class.ts b/apps/server/generated/internal/class.ts index 0a55e73..62619d7 100644 --- a/apps/server/generated/internal/class.ts +++ b/apps/server/generated/internal/class.ts @@ -1,8 +1,7 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* * WARNING: This is an internal file that is subject to change! * @@ -11,49 +10,58 @@ * Please import the `PrismaClient` class from the `client.ts` file instead. */ -import * as runtime from "@prisma/client/runtime/client" -import type * as Prisma from "./prismaNamespace.ts" - +import * as runtime from '@prisma/client/runtime/client'; +import type * as Prisma from './prismaNamespace.ts'; const config: runtime.GetPrismaClientConfig = { - "previewFeatures": [], - "clientVersion": "7.0.0", - "engineVersion": "0c19ccc313cf9911a90d99d2ac2eb0280c76c513", - "activeProvider": "sqlite", - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../generated\"\n}\n\ndatasource db {\n provider = \"sqlite\"\n}\n\nmodel Project {\n id Int @id @default(autoincrement())\n name String\n description String?\n repository String\n projectDir String @unique // 项目工作目录路径(必填)\n // Relations\n deployments Deployment[]\n pipelines Pipeline[]\n\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String\n updatedBy String\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n username String\n login String\n email String\n avatar_url String?\n active Boolean @default(true)\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String @default(\"system\")\n updatedBy String @default(\"system\")\n}\n\nmodel Pipeline {\n id Int @id @default(autoincrement())\n name String\n description String?\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String\n updatedBy String\n\n // Relations\n projectId Int?\n Project Project? @relation(fields: [projectId], references: [id])\n steps Step[]\n}\n\nmodel Step {\n id Int @id @default(autoincrement())\n name String\n order Int\n script String // 执行的脚本命令\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String\n updatedBy String\n\n pipelineId Int\n pipeline Pipeline @relation(fields: [pipelineId], references: [id])\n}\n\nmodel Deployment {\n id Int @id @default(autoincrement())\n branch String\n env String?\n status String // pending, running, success, failed, cancelled\n commitHash String?\n commitMessage String?\n buildLog String?\n sparseCheckoutPaths String? // 稀疏检出路径,用于monorepo项目\n startedAt DateTime @default(now())\n finishedAt DateTime?\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String\n updatedBy String\n\n projectId Int\n Project Project? @relation(fields: [projectId], references: [id])\n pipelineId Int\n}\n", - "runtimeDataModel": { - "models": {}, - "enums": {}, - "types": {} - } -} + previewFeatures: [], + clientVersion: '7.0.0', + engineVersion: '0c19ccc313cf9911a90d99d2ac2eb0280c76c513', + activeProvider: 'sqlite', + inlineSchema: + '// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = "prisma-client"\n output = "../generated"\n}\n\ndatasource db {\n provider = "sqlite"\n}\n\nmodel Project {\n id Int @id @default(autoincrement())\n name String\n description String?\n repository String\n projectDir String @unique // 项目工作目录路径(必填)\n envPresets String? // 环境预设配置(JSON格式)\n // Relations\n deployments Deployment[]\n pipelines Pipeline[]\n\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String\n updatedBy String\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n username String\n login String\n email String\n avatar_url String?\n active Boolean @default(true)\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String @default("system")\n updatedBy String @default("system")\n}\n\nmodel Pipeline {\n id Int @id @default(autoincrement())\n name String\n description String?\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String\n updatedBy String\n\n // Relations\n projectId Int?\n Project Project? @relation(fields: [projectId], references: [id])\n steps Step[]\n}\n\nmodel Step {\n id Int @id @default(autoincrement())\n name String\n order Int\n script String // 执行的脚本命令\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String\n updatedBy String\n\n pipelineId Int\n pipeline Pipeline @relation(fields: [pipelineId], references: [id])\n}\n\nmodel Deployment {\n id Int @id @default(autoincrement())\n branch String\n envVars String? // 环境变量(JSON格式),统一存储所有配置\n status String // pending, running, success, failed, cancelled\n commitHash String?\n commitMessage String?\n buildLog String?\n sparseCheckoutPaths String? // 稀疏检出路径,用于monorepo项目\n startedAt DateTime @default(now())\n finishedAt DateTime?\n valid Int @default(1)\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n createdBy String\n updatedBy String\n\n projectId Int\n Project Project? @relation(fields: [projectId], references: [id])\n pipelineId Int\n}\n', + runtimeDataModel: { + models: {}, + enums: {}, + types: {}, + }, +}; -config.runtimeDataModel = JSON.parse("{\"models\":{\"Project\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"repository\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"projectDir\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"deployments\",\"kind\":\"object\",\"type\":\"Deployment\",\"relationName\":\"DeploymentToProject\"},{\"name\":\"pipelines\",\"kind\":\"object\",\"type\":\"Pipeline\",\"relationName\":\"PipelineToProject\"},{\"name\":\"valid\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"updatedBy\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"login\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"avatar_url\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"active\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"valid\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"updatedBy\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"Pipeline\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"valid\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"updatedBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"projectId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"Project\",\"kind\":\"object\",\"type\":\"Project\",\"relationName\":\"PipelineToProject\"},{\"name\":\"steps\",\"kind\":\"object\",\"type\":\"Step\",\"relationName\":\"PipelineToStep\"}],\"dbName\":null},\"Step\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"order\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"script\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"valid\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"updatedBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"pipelineId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"pipeline\",\"kind\":\"object\",\"type\":\"Pipeline\",\"relationName\":\"PipelineToStep\"}],\"dbName\":null},\"Deployment\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"branch\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"env\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"commitHash\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"commitMessage\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"buildLog\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sparseCheckoutPaths\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"startedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"finishedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"valid\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"updatedBy\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"projectId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"Project\",\"kind\":\"object\",\"type\":\"Project\",\"relationName\":\"DeploymentToProject\"},{\"name\":\"pipelineId\",\"kind\":\"scalar\",\"type\":\"Int\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse( + '{"models":{"Project":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"name","kind":"scalar","type":"String"},{"name":"description","kind":"scalar","type":"String"},{"name":"repository","kind":"scalar","type":"String"},{"name":"projectDir","kind":"scalar","type":"String"},{"name":"envPresets","kind":"scalar","type":"String"},{"name":"deployments","kind":"object","type":"Deployment","relationName":"DeploymentToProject"},{"name":"pipelines","kind":"object","type":"Pipeline","relationName":"PipelineToProject"},{"name":"valid","kind":"scalar","type":"Int"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"},{"name":"createdBy","kind":"scalar","type":"String"},{"name":"updatedBy","kind":"scalar","type":"String"}],"dbName":null},"User":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"username","kind":"scalar","type":"String"},{"name":"login","kind":"scalar","type":"String"},{"name":"email","kind":"scalar","type":"String"},{"name":"avatar_url","kind":"scalar","type":"String"},{"name":"active","kind":"scalar","type":"Boolean"},{"name":"valid","kind":"scalar","type":"Int"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"},{"name":"createdBy","kind":"scalar","type":"String"},{"name":"updatedBy","kind":"scalar","type":"String"}],"dbName":null},"Pipeline":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"name","kind":"scalar","type":"String"},{"name":"description","kind":"scalar","type":"String"},{"name":"valid","kind":"scalar","type":"Int"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"},{"name":"createdBy","kind":"scalar","type":"String"},{"name":"updatedBy","kind":"scalar","type":"String"},{"name":"projectId","kind":"scalar","type":"Int"},{"name":"Project","kind":"object","type":"Project","relationName":"PipelineToProject"},{"name":"steps","kind":"object","type":"Step","relationName":"PipelineToStep"}],"dbName":null},"Step":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"name","kind":"scalar","type":"String"},{"name":"order","kind":"scalar","type":"Int"},{"name":"script","kind":"scalar","type":"String"},{"name":"valid","kind":"scalar","type":"Int"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"},{"name":"createdBy","kind":"scalar","type":"String"},{"name":"updatedBy","kind":"scalar","type":"String"},{"name":"pipelineId","kind":"scalar","type":"Int"},{"name":"pipeline","kind":"object","type":"Pipeline","relationName":"PipelineToStep"}],"dbName":null},"Deployment":{"fields":[{"name":"id","kind":"scalar","type":"Int"},{"name":"branch","kind":"scalar","type":"String"},{"name":"envVars","kind":"scalar","type":"String"},{"name":"status","kind":"scalar","type":"String"},{"name":"commitHash","kind":"scalar","type":"String"},{"name":"commitMessage","kind":"scalar","type":"String"},{"name":"buildLog","kind":"scalar","type":"String"},{"name":"sparseCheckoutPaths","kind":"scalar","type":"String"},{"name":"startedAt","kind":"scalar","type":"DateTime"},{"name":"finishedAt","kind":"scalar","type":"DateTime"},{"name":"valid","kind":"scalar","type":"Int"},{"name":"createdAt","kind":"scalar","type":"DateTime"},{"name":"updatedAt","kind":"scalar","type":"DateTime"},{"name":"createdBy","kind":"scalar","type":"String"},{"name":"updatedBy","kind":"scalar","type":"String"},{"name":"projectId","kind":"scalar","type":"Int"},{"name":"Project","kind":"object","type":"Project","relationName":"DeploymentToProject"},{"name":"pipelineId","kind":"scalar","type":"Int"}],"dbName":null}},"enums":{},"types":{}}', +); -async function decodeBase64AsWasm(wasmBase64: string): Promise { - const { Buffer } = await import('node:buffer') - const wasmArray = Buffer.from(wasmBase64, 'base64') - return new WebAssembly.Module(wasmArray) +async function decodeBase64AsWasm( + wasmBase64: string, +): Promise { + const { Buffer } = await import('node:buffer'); + const wasmArray = Buffer.from(wasmBase64, 'base64'); + return new WebAssembly.Module(wasmArray); } config.compilerWasm = { - getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.sqlite.mjs"), + getRuntime: async () => + await import('@prisma/client/runtime/query_compiler_bg.sqlite.mjs'), getQueryCompilerWasmModule: async () => { - const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.sqlite.wasm-base64.mjs") - return await decodeBase64AsWasm(wasm) - } -} - - + const { wasm } = await import( + '@prisma/client/runtime/query_compiler_bg.sqlite.wasm-base64.mjs' + ); + return await decodeBase64AsWasm(wasm); + }, +}; export type LogOptions = - 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never + 'log' extends keyof ClientOptions + ? ClientOptions['log'] extends Array + ? Prisma.GetEvents + : never + : never; export interface PrismaClientConstructor { - /** + /** * ## Prisma Client - * + * * Type-safe database client for TypeScript * @example * ``` @@ -61,21 +69,28 @@ export interface PrismaClientConstructor { * // Fetch zero or more Projects * const projects = await prisma.project.findMany() * ``` - * + * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ new < Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions = LogOptions, - OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'], - ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs - >(options: Prisma.Subset ): PrismaClient + OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { + omit: infer U; + } + ? U + : Prisma.PrismaClientOptions['omit'], + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + >( + options: Prisma.Subset, + ): PrismaClient; } /** * ## Prisma Client - * + * * Type-safe database client for TypeScript * @example * ``` @@ -83,18 +98,24 @@ export interface PrismaClientConstructor { * // Fetch zero or more Projects * const projects = await prisma.project.findMany() * ``` - * + * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). */ export interface PrismaClient< in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, - in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs + in out ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, > { - [K: symbol]: { types: Prisma.TypeMap['other'] } + [K: symbol]: { types: Prisma.TypeMap['other'] }; - $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; + $on( + eventType: V, + callback: ( + event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent, + ) => void, + ): PrismaClient; /** * Connect with the database @@ -106,7 +127,7 @@ export interface PrismaClient< */ $disconnect(): runtime.Types.Utils.JsPromise; -/** + /** * Executes a prepared raw query and returns the number of affected rows. * @example * ``` @@ -115,7 +136,10 @@ export interface PrismaClient< * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ - $executeRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + $executeRaw( + query: TemplateStringsArray | Prisma.Sql, + ...values: any[] + ): Prisma.PrismaPromise; /** * Executes a raw query and returns the number of affected rows. @@ -127,7 +151,10 @@ export interface PrismaClient< * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ - $executeRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; + $executeRawUnsafe( + query: string, + ...values: any[] + ): Prisma.PrismaPromise; /** * Performs a prepared raw query and returns the `SELECT` data. @@ -138,7 +165,10 @@ export interface PrismaClient< * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ - $queryRaw(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise; + $queryRaw( + query: TemplateStringsArray | Prisma.Sql, + ...values: any[] + ): Prisma.PrismaPromise; /** * Performs a raw query and returns the `SELECT` data. @@ -150,8 +180,10 @@ export interface PrismaClient< * * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/raw-database-access). */ - $queryRawUnsafe(query: string, ...values: any[]): Prisma.PrismaPromise; - + $queryRawUnsafe( + query: string, + ...values: any[] + ): Prisma.PrismaPromise; /** * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. @@ -163,68 +195,88 @@ export interface PrismaClient< * prisma.user.create({ data: { name: 'Alice' } }), * ]) * ``` - * + * * Read more in our [docs](https://www.prisma.io/docs/concepts/components/prisma-client/transactions). */ - $transaction

[]>(arg: [...P], options?: { isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise> + $transaction

[]>( + arg: [...P], + options?: { isolationLevel?: Prisma.TransactionIsolationLevel }, + ): runtime.Types.Utils.JsPromise>; - $transaction(fn: (prisma: Omit) => runtime.Types.Utils.JsPromise, options?: { maxWait?: number, timeout?: number, isolationLevel?: Prisma.TransactionIsolationLevel }): runtime.Types.Utils.JsPromise + $transaction( + fn: ( + prisma: Omit, + ) => runtime.Types.Utils.JsPromise, + options?: { + maxWait?: number; + timeout?: number; + isolationLevel?: Prisma.TransactionIsolationLevel; + }, + ): runtime.Types.Utils.JsPromise; - $extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb, ExtArgs, runtime.Types.Utils.Call, { - extArgs: ExtArgs - }>> + $extends: runtime.Types.Extensions.ExtendsHook< + 'extends', + Prisma.TypeMapCb, + ExtArgs, + runtime.Types.Utils.Call< + Prisma.TypeMapCb, + { + extArgs: ExtArgs; + } + > + >; - /** + /** * `prisma.project`: Exposes CRUD operations for the **Project** model. - * Example usage: - * ```ts - * // Fetch zero or more Projects - * const projects = await prisma.project.findMany() - * ``` - */ + * Example usage: + * ```ts + * // Fetch zero or more Projects + * const projects = await prisma.project.findMany() + * ``` + */ get project(): Prisma.ProjectDelegate; /** * `prisma.user`: Exposes CRUD operations for the **User** model. - * Example usage: - * ```ts - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - */ + * Example usage: + * ```ts + * // Fetch zero or more Users + * const users = await prisma.user.findMany() + * ``` + */ get user(): Prisma.UserDelegate; /** * `prisma.pipeline`: Exposes CRUD operations for the **Pipeline** model. - * Example usage: - * ```ts - * // Fetch zero or more Pipelines - * const pipelines = await prisma.pipeline.findMany() - * ``` - */ + * Example usage: + * ```ts + * // Fetch zero or more Pipelines + * const pipelines = await prisma.pipeline.findMany() + * ``` + */ get pipeline(): Prisma.PipelineDelegate; /** * `prisma.step`: Exposes CRUD operations for the **Step** model. - * Example usage: - * ```ts - * // Fetch zero or more Steps - * const steps = await prisma.step.findMany() - * ``` - */ + * Example usage: + * ```ts + * // Fetch zero or more Steps + * const steps = await prisma.step.findMany() + * ``` + */ get step(): Prisma.StepDelegate; /** * `prisma.deployment`: Exposes CRUD operations for the **Deployment** model. - * Example usage: - * ```ts - * // Fetch zero or more Deployments - * const deployments = await prisma.deployment.findMany() - * ``` - */ + * Example usage: + * ```ts + * // Fetch zero or more Deployments + * const deployments = await prisma.deployment.findMany() + * ``` + */ get deployment(): Prisma.DeploymentDelegate; } export function getPrismaClientClass(): PrismaClientConstructor { - return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor + return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor; } diff --git a/apps/server/generated/internal/prismaNamespace.ts b/apps/server/generated/internal/prismaNamespace.ts index 2146723..b8a964f 100644 --- a/apps/server/generated/internal/prismaNamespace.ts +++ b/apps/server/generated/internal/prismaNamespace.ts @@ -1,8 +1,7 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* * WARNING: This is an internal file that is subject to change! * @@ -15,134 +14,152 @@ * model files in the `model` directory! */ -import * as runtime from "@prisma/client/runtime/client" -import type * as Prisma from "../models.ts" -import { type PrismaClient } from "./class.ts" +import * as runtime from '@prisma/client/runtime/client'; +import type * as Prisma from '../models.ts'; +import { type PrismaClient } from './class.ts'; -export type * from '../models.ts' +export type * from '../models.ts'; -export type DMMF = typeof runtime.DMMF +export type DMMF = typeof runtime.DMMF; -export type PrismaPromise = runtime.Types.Public.PrismaPromise +export type PrismaPromise = runtime.Types.Public.PrismaPromise; /** * Prisma Errors */ -export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError -export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError +export const PrismaClientKnownRequestError = + runtime.PrismaClientKnownRequestError; +export type PrismaClientKnownRequestError = + runtime.PrismaClientKnownRequestError; -export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError -export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError +export const PrismaClientUnknownRequestError = + runtime.PrismaClientUnknownRequestError; +export type PrismaClientUnknownRequestError = + runtime.PrismaClientUnknownRequestError; -export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError -export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError +export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError; +export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError; -export const PrismaClientInitializationError = runtime.PrismaClientInitializationError -export type PrismaClientInitializationError = runtime.PrismaClientInitializationError +export const PrismaClientInitializationError = + runtime.PrismaClientInitializationError; +export type PrismaClientInitializationError = + runtime.PrismaClientInitializationError; -export const PrismaClientValidationError = runtime.PrismaClientValidationError -export type PrismaClientValidationError = runtime.PrismaClientValidationError +export const PrismaClientValidationError = runtime.PrismaClientValidationError; +export type PrismaClientValidationError = runtime.PrismaClientValidationError; /** * Re-export of sql-template-tag */ -export const sql = runtime.sqltag -export const empty = runtime.empty -export const join = runtime.join -export const raw = runtime.raw -export const Sql = runtime.Sql -export type Sql = runtime.Sql - - +export const sql = runtime.sqltag; +export const empty = runtime.empty; +export const join = runtime.join; +export const raw = runtime.raw; +export const Sql = runtime.Sql; +export type Sql = runtime.Sql; /** * Decimal.js */ -export const Decimal = runtime.Decimal -export type Decimal = runtime.Decimal +export const Decimal = runtime.Decimal; +export type Decimal = runtime.Decimal; -export type DecimalJsLike = runtime.DecimalJsLike +export type DecimalJsLike = runtime.DecimalJsLike; /** -* Extensions -*/ -export type Extension = runtime.Types.Extensions.UserArgs -export const getExtensionContext = runtime.Extensions.getExtensionContext -export type Args = runtime.Types.Public.Args -export type Payload = runtime.Types.Public.Payload -export type Result = runtime.Types.Public.Result -export type Exact = runtime.Types.Public.Exact + * Extensions + */ +export type Extension = runtime.Types.Extensions.UserArgs; +export const getExtensionContext = runtime.Extensions.getExtensionContext; +export type Args = runtime.Types.Public.Args< + T, + F +>; +export type Payload< + T, + F extends runtime.Operation = never, +> = runtime.Types.Public.Payload; +export type Result< + T, + A, + F extends runtime.Operation, +> = runtime.Types.Public.Result; +export type Exact = runtime.Types.Public.Exact; export type PrismaVersion = { - client: string - engine: string -} + client: string; + engine: string; +}; /** * Prisma Client JS version: 7.0.0 * Query Engine version: 0c19ccc313cf9911a90d99d2ac2eb0280c76c513 */ export const prismaVersion: PrismaVersion = { - client: "7.0.0", - engine: "0c19ccc313cf9911a90d99d2ac2eb0280c76c513" -} + client: '7.0.0', + engine: '0c19ccc313cf9911a90d99d2ac2eb0280c76c513', +}; /** * Utility Types */ -export type Bytes = runtime.Bytes -export type JsonObject = runtime.JsonObject -export type JsonArray = runtime.JsonArray -export type JsonValue = runtime.JsonValue -export type InputJsonObject = runtime.InputJsonObject -export type InputJsonArray = runtime.InputJsonArray -export type InputJsonValue = runtime.InputJsonValue - +export type Bytes = runtime.Bytes; +export type JsonObject = runtime.JsonObject; +export type JsonArray = runtime.JsonArray; +export type JsonValue = runtime.JsonValue; +export type InputJsonObject = runtime.InputJsonObject; +export type InputJsonArray = runtime.InputJsonArray; +export type InputJsonValue = runtime.InputJsonValue; export const NullTypes = { - DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), - JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), - AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), -} + DbNull: runtime.NullTypes.DbNull as new ( + secret: never, + ) => typeof runtime.DbNull, + JsonNull: runtime.NullTypes.JsonNull as new ( + secret: never, + ) => typeof runtime.JsonNull, + AnyNull: runtime.NullTypes.AnyNull as new ( + secret: never, + ) => typeof runtime.AnyNull, +}; /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ -export const DbNull = runtime.DbNull +export const DbNull = runtime.DbNull; /** * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ -export const JsonNull = runtime.JsonNull +export const JsonNull = runtime.JsonNull; /** * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ -export const AnyNull = runtime.AnyNull - +export const AnyNull = runtime.AnyNull; type SelectAndInclude = { - select: any - include: any -} + select: any; + include: any; +}; type SelectAndOmit = { - select: any - omit: any -} + select: any; + omit: any; +}; /** * From T, pick a set of properties whose keys are in the union K */ type Prisma__Pick = { - [P in K]: T[P]; + [P in K]: T[P]; }; export type Enumerable = T | Array; @@ -161,22 +178,20 @@ export type Subset = { * Additionally, it validates, if both select and include are present. If the case, it errors. */ export type SelectSubset = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - (T extends SelectAndInclude - ? 'Please either choose `select` or `include`.' - : T extends SelectAndOmit - ? 'Please either choose `select` or `omit`.' - : {}) + [key in keyof T]: key extends keyof U ? T[key] : never; +} & (T extends SelectAndInclude + ? 'Please either choose `select` or `include`.' + : T extends SelectAndOmit + ? 'Please either choose `select` or `omit`.' + : {}); /** * Subset + Intersection * @desc From `T` pick properties that exist in `U` and intersect `K` */ export type SubsetIntersection = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - K + [key in keyof T]: key extends keyof U ? T[key] : never; +} & K; type Without = { [P in Exclude]?: never }; @@ -184,33 +199,31 @@ type Without = { [P in Exclude]?: never }; * XOR is needed to have a real mutually exclusive union type * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types */ -export type XOR = - T extends object ? - U extends object ? - (Without & U) | (Without & T) - : U : T - +export type XOR = T extends object + ? U extends object + ? (Without & U) | (Without & T) + : U + : T; /** * Is T a Record? */ type IsObject = T extends Array -? False -: T extends Date -? False -: T extends Uint8Array -? False -: T extends BigInt -? False -: T extends object -? True -: False - + ? False + : T extends Date + ? False + : T extends Uint8Array + ? False + : T extends BigInt + ? False + : T extends object + ? True + : False; /** * If it's T[], return T */ -export type UnEnumerate = T extends Array ? U : T +export type UnEnumerate = T extends Array ? U : T; /** * From ts-toolbelt @@ -219,60 +232,67 @@ export type UnEnumerate = T extends Array ? U : T type __Either = Omit & { // Merge all but K - [P in K]: Prisma__Pick // With K possibilities - }[K] + [P in K]: Prisma__Pick; // With K possibilities + }[K]; -type EitherStrict = Strict<__Either> +type EitherStrict = Strict<__Either>; -type EitherLoose = ComputeRaw<__Either> +type EitherLoose = ComputeRaw<__Either>; -type _Either< - O extends object, - K extends Key, - strict extends Boolean -> = { - 1: EitherStrict - 0: EitherLoose -}[strict] +type _Either = { + 1: EitherStrict; + 0: EitherLoose; +}[strict]; export type Either< O extends object, K extends Key, - strict extends Boolean = 1 -> = O extends unknown ? _Either : never + strict extends Boolean = 1, +> = O extends unknown ? _Either : never; -export type Union = any +export type Union = any; export type PatchUndefined = { - [K in keyof O]: O[K] extends undefined ? At : O[K] -} & {} + [K in keyof O]: O[K] extends undefined ? At : O[K]; +} & {}; /** Helper Types for "Merge" **/ export type IntersectOf = ( - U extends unknown ? (k: U) => void : never + U extends unknown + ? (k: U) => void + : never ) extends (k: infer I) => void ? I - : never + : never; export type Overwrite = { - [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; + [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; } & {}; -type _Merge = IntersectOf; -}>>; +type _Merge = IntersectOf< + Overwrite< + U, + { + [K in keyof U]-?: At; + } + > +>; type Key = string | number | symbol; type AtStrict = O[K & keyof O]; -type AtLoose = O extends unknown ? AtStrict : never; +type AtLoose = O extends unknown + ? AtStrict + : never; export type At = { - 1: AtStrict; - 0: AtLoose; + 1: AtStrict; + 0: AtLoose; }[strict]; -export type ComputeRaw = A extends Function ? A : { - [K in keyof A]: A[K]; -} & {}; +export type ComputeRaw = A extends Function + ? A + : { + [K in keyof A]: A[K]; + } & {}; export type OptionalFlat = { [K in keyof O]?: O[K]; @@ -288,61 +308,65 @@ type NoExpand = T extends unknown ? T : never; // this type assumes the passed object is entirely optional export type AtLeast = NoExpand< O extends unknown - ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) - | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O - : never>; + ? + | (K extends keyof O ? { [P in K]: O[P] } & O : O) + | ({ [P in keyof O as P extends K ? P : never]-?: O[P] } & O) + : never +>; -type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; +type _Strict = U extends unknown + ? U & OptionalFlat<_Record, keyof U>, never>> + : never; export type Strict = ComputeRaw<_Strict>; /** End Helper Types for "Merge" **/ export type Merge = ComputeRaw<_Merge>>; -export type Boolean = True | False +export type Boolean = True | False; -export type True = 1 +export type True = 1; -export type False = 0 +export type False = 0; export type Not = { - 0: 1 - 1: 0 -}[B] + 0: 1; + 1: 0; +}[B]; export type Extends = [A1] extends [never] ? 0 // anything `never` is false : A1 extends A2 - ? 1 - : 0 + ? 1 + : 0; export type Has = Not< Extends, U1> -> +>; export type Or = { 0: { - 0: 0 - 1: 1 - } + 0: 0; + 1: 1; + }; 1: { - 0: 1 - 1: 1 - } -}[B1][B2] + 0: 1; + 1: 1; + }; +}[B1][B2]; -export type Keys = U extends unknown ? keyof U : never +export type Keys = U extends unknown ? keyof U : never; -export type GetScalarType = O extends object ? { - [P in keyof T]: P extends keyof O - ? O[P] - : never -} : never +export type GetScalarType = O extends object + ? { + [P in keyof T]: P extends keyof O ? O[P] : never; + } + : never; type FieldPaths< T, - U = Omit -> = IsObject extends True ? U : T + U = Omit, +> = IsObject extends True ? U : T; export type GetHavingFields = { [K in keyof T]: Or< @@ -353,466 +377,489 @@ export type GetHavingFields = { // based on the brilliant idea of Pierre-Antoine Mills // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 T[K] extends infer TK - ? GetHavingFields extends object ? Merge> : never> + ? GetHavingFields< + UnEnumerate extends object ? Merge> : never + > : never : {} extends FieldPaths - ? never - : K -}[keyof T] + ? never + : K; +}[keyof T]; /** * Convert tuple to union */ -type _TupleToUnion = T extends (infer E)[] ? E : never -type TupleToUnion = _TupleToUnion -export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T +type _TupleToUnion = T extends (infer E)[] ? E : never; +type TupleToUnion = _TupleToUnion; +export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T; /** * Like `Pick`, but additionally can also accept an array of keys */ -export type PickEnumerable | keyof T> = Prisma__Pick> +export type PickEnumerable< + T, + K extends Enumerable | keyof T, +> = Prisma__Pick>; /** * Exclude all keys with underscores */ -export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T +export type ExcludeUnderscoreKeys = T extends `_${string}` + ? never + : T; +export type FieldRef = runtime.FieldRef; -export type FieldRef = runtime.FieldRef - -type FieldRefInputType = Model extends never ? never : FieldRef - +type FieldRefInputType = Model extends never + ? never + : FieldRef; export const ModelName = { Project: 'Project', User: 'User', Pipeline: 'Pipeline', Step: 'Step', - Deployment: 'Deployment' -} as const + Deployment: 'Deployment', +} as const; -export type ModelName = (typeof ModelName)[keyof typeof ModelName] +export type ModelName = (typeof ModelName)[keyof typeof ModelName]; - - -export interface TypeMapCb extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record> { - returns: TypeMap +export interface TypeMapCb + extends runtime.Types.Utils.Fn< + { extArgs: runtime.Types.Extensions.InternalArgs }, + runtime.Types.Utils.Record + > { + returns: TypeMap; } -export type TypeMap = { +export type TypeMap< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> = { globalOmitOptions: { - omit: GlobalOmitOptions - } + omit: GlobalOmitOptions; + }; meta: { - modelProps: "project" | "user" | "pipeline" | "step" | "deployment" - txIsolationLevel: TransactionIsolationLevel - } + modelProps: 'project' | 'user' | 'pipeline' | 'step' | 'deployment'; + txIsolationLevel: TransactionIsolationLevel; + }; model: { Project: { - payload: Prisma.$ProjectPayload - fields: Prisma.ProjectFieldRefs + payload: Prisma.$ProjectPayload; + fields: Prisma.ProjectFieldRefs; operations: { findUnique: { - args: Prisma.ProjectFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.ProjectFindUniqueArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findUniqueOrThrow: { - args: Prisma.ProjectFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.ProjectFindUniqueOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findFirst: { - args: Prisma.ProjectFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.ProjectFindFirstArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findFirstOrThrow: { - args: Prisma.ProjectFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.ProjectFindFirstOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findMany: { - args: Prisma.ProjectFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.ProjectFindManyArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; create: { - args: Prisma.ProjectCreateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.ProjectCreateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; createMany: { - args: Prisma.ProjectCreateManyArgs - result: BatchPayload - } + args: Prisma.ProjectCreateManyArgs; + result: BatchPayload; + }; createManyAndReturn: { - args: Prisma.ProjectCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.ProjectCreateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; delete: { - args: Prisma.ProjectDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.ProjectDeleteArgs; + result: runtime.Types.Utils.PayloadToResult; + }; update: { - args: Prisma.ProjectUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.ProjectUpdateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; deleteMany: { - args: Prisma.ProjectDeleteManyArgs - result: BatchPayload - } + args: Prisma.ProjectDeleteManyArgs; + result: BatchPayload; + }; updateMany: { - args: Prisma.ProjectUpdateManyArgs - result: BatchPayload - } + args: Prisma.ProjectUpdateManyArgs; + result: BatchPayload; + }; updateManyAndReturn: { - args: Prisma.ProjectUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.ProjectUpdateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; upsert: { - args: Prisma.ProjectUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.ProjectUpsertArgs; + result: runtime.Types.Utils.PayloadToResult; + }; aggregate: { - args: Prisma.ProjectAggregateArgs - result: runtime.Types.Utils.Optional - } + args: Prisma.ProjectAggregateArgs; + result: runtime.Types.Utils.Optional; + }; groupBy: { - args: Prisma.ProjectGroupByArgs - result: runtime.Types.Utils.Optional[] - } + args: Prisma.ProjectGroupByArgs; + result: runtime.Types.Utils.Optional[]; + }; count: { - args: Prisma.ProjectCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } + args: Prisma.ProjectCountArgs; + result: + | runtime.Types.Utils.Optional + | number; + }; + }; + }; User: { - payload: Prisma.$UserPayload - fields: Prisma.UserFieldRefs + payload: Prisma.$UserPayload; + fields: Prisma.UserFieldRefs; operations: { findUnique: { - args: Prisma.UserFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.UserFindUniqueArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findUniqueOrThrow: { - args: Prisma.UserFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.UserFindUniqueOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findFirst: { - args: Prisma.UserFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.UserFindFirstArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findFirstOrThrow: { - args: Prisma.UserFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.UserFindFirstOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findMany: { - args: Prisma.UserFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.UserFindManyArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; create: { - args: Prisma.UserCreateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.UserCreateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; createMany: { - args: Prisma.UserCreateManyArgs - result: BatchPayload - } + args: Prisma.UserCreateManyArgs; + result: BatchPayload; + }; createManyAndReturn: { - args: Prisma.UserCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.UserCreateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; delete: { - args: Prisma.UserDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.UserDeleteArgs; + result: runtime.Types.Utils.PayloadToResult; + }; update: { - args: Prisma.UserUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.UserUpdateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; deleteMany: { - args: Prisma.UserDeleteManyArgs - result: BatchPayload - } + args: Prisma.UserDeleteManyArgs; + result: BatchPayload; + }; updateMany: { - args: Prisma.UserUpdateManyArgs - result: BatchPayload - } + args: Prisma.UserUpdateManyArgs; + result: BatchPayload; + }; updateManyAndReturn: { - args: Prisma.UserUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.UserUpdateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; upsert: { - args: Prisma.UserUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.UserUpsertArgs; + result: runtime.Types.Utils.PayloadToResult; + }; aggregate: { - args: Prisma.UserAggregateArgs - result: runtime.Types.Utils.Optional - } + args: Prisma.UserAggregateArgs; + result: runtime.Types.Utils.Optional; + }; groupBy: { - args: Prisma.UserGroupByArgs - result: runtime.Types.Utils.Optional[] - } + args: Prisma.UserGroupByArgs; + result: runtime.Types.Utils.Optional[]; + }; count: { - args: Prisma.UserCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } + args: Prisma.UserCountArgs; + result: + | runtime.Types.Utils.Optional + | number; + }; + }; + }; Pipeline: { - payload: Prisma.$PipelinePayload - fields: Prisma.PipelineFieldRefs + payload: Prisma.$PipelinePayload; + fields: Prisma.PipelineFieldRefs; operations: { findUnique: { - args: Prisma.PipelineFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.PipelineFindUniqueArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findUniqueOrThrow: { - args: Prisma.PipelineFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.PipelineFindUniqueOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findFirst: { - args: Prisma.PipelineFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.PipelineFindFirstArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findFirstOrThrow: { - args: Prisma.PipelineFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.PipelineFindFirstOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findMany: { - args: Prisma.PipelineFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.PipelineFindManyArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; create: { - args: Prisma.PipelineCreateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.PipelineCreateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; createMany: { - args: Prisma.PipelineCreateManyArgs - result: BatchPayload - } + args: Prisma.PipelineCreateManyArgs; + result: BatchPayload; + }; createManyAndReturn: { - args: Prisma.PipelineCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.PipelineCreateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; delete: { - args: Prisma.PipelineDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.PipelineDeleteArgs; + result: runtime.Types.Utils.PayloadToResult; + }; update: { - args: Prisma.PipelineUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.PipelineUpdateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; deleteMany: { - args: Prisma.PipelineDeleteManyArgs - result: BatchPayload - } + args: Prisma.PipelineDeleteManyArgs; + result: BatchPayload; + }; updateMany: { - args: Prisma.PipelineUpdateManyArgs - result: BatchPayload - } + args: Prisma.PipelineUpdateManyArgs; + result: BatchPayload; + }; updateManyAndReturn: { - args: Prisma.PipelineUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.PipelineUpdateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; upsert: { - args: Prisma.PipelineUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.PipelineUpsertArgs; + result: runtime.Types.Utils.PayloadToResult; + }; aggregate: { - args: Prisma.PipelineAggregateArgs - result: runtime.Types.Utils.Optional - } + args: Prisma.PipelineAggregateArgs; + result: runtime.Types.Utils.Optional; + }; groupBy: { - args: Prisma.PipelineGroupByArgs - result: runtime.Types.Utils.Optional[] - } + args: Prisma.PipelineGroupByArgs; + result: runtime.Types.Utils.Optional[]; + }; count: { - args: Prisma.PipelineCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } + args: Prisma.PipelineCountArgs; + result: + | runtime.Types.Utils.Optional + | number; + }; + }; + }; Step: { - payload: Prisma.$StepPayload - fields: Prisma.StepFieldRefs + payload: Prisma.$StepPayload; + fields: Prisma.StepFieldRefs; operations: { findUnique: { - args: Prisma.StepFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.StepFindUniqueArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findUniqueOrThrow: { - args: Prisma.StepFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.StepFindUniqueOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findFirst: { - args: Prisma.StepFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.StepFindFirstArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findFirstOrThrow: { - args: Prisma.StepFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.StepFindFirstOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findMany: { - args: Prisma.StepFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.StepFindManyArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; create: { - args: Prisma.StepCreateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.StepCreateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; createMany: { - args: Prisma.StepCreateManyArgs - result: BatchPayload - } + args: Prisma.StepCreateManyArgs; + result: BatchPayload; + }; createManyAndReturn: { - args: Prisma.StepCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.StepCreateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; delete: { - args: Prisma.StepDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.StepDeleteArgs; + result: runtime.Types.Utils.PayloadToResult; + }; update: { - args: Prisma.StepUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.StepUpdateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; deleteMany: { - args: Prisma.StepDeleteManyArgs - result: BatchPayload - } + args: Prisma.StepDeleteManyArgs; + result: BatchPayload; + }; updateMany: { - args: Prisma.StepUpdateManyArgs - result: BatchPayload - } + args: Prisma.StepUpdateManyArgs; + result: BatchPayload; + }; updateManyAndReturn: { - args: Prisma.StepUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.StepUpdateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; upsert: { - args: Prisma.StepUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.StepUpsertArgs; + result: runtime.Types.Utils.PayloadToResult; + }; aggregate: { - args: Prisma.StepAggregateArgs - result: runtime.Types.Utils.Optional - } + args: Prisma.StepAggregateArgs; + result: runtime.Types.Utils.Optional; + }; groupBy: { - args: Prisma.StepGroupByArgs - result: runtime.Types.Utils.Optional[] - } + args: Prisma.StepGroupByArgs; + result: runtime.Types.Utils.Optional[]; + }; count: { - args: Prisma.StepCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } + args: Prisma.StepCountArgs; + result: + | runtime.Types.Utils.Optional + | number; + }; + }; + }; Deployment: { - payload: Prisma.$DeploymentPayload - fields: Prisma.DeploymentFieldRefs + payload: Prisma.$DeploymentPayload; + fields: Prisma.DeploymentFieldRefs; operations: { findUnique: { - args: Prisma.DeploymentFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.DeploymentFindUniqueArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findUniqueOrThrow: { - args: Prisma.DeploymentFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.DeploymentFindUniqueOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findFirst: { - args: Prisma.DeploymentFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } + args: Prisma.DeploymentFindFirstArgs; + result: runtime.Types.Utils.PayloadToResult | null; + }; findFirstOrThrow: { - args: Prisma.DeploymentFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.DeploymentFindFirstOrThrowArgs; + result: runtime.Types.Utils.PayloadToResult; + }; findMany: { - args: Prisma.DeploymentFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.DeploymentFindManyArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; create: { - args: Prisma.DeploymentCreateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.DeploymentCreateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; createMany: { - args: Prisma.DeploymentCreateManyArgs - result: BatchPayload - } + args: Prisma.DeploymentCreateManyArgs; + result: BatchPayload; + }; createManyAndReturn: { - args: Prisma.DeploymentCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.DeploymentCreateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; delete: { - args: Prisma.DeploymentDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.DeploymentDeleteArgs; + result: runtime.Types.Utils.PayloadToResult; + }; update: { - args: Prisma.DeploymentUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.DeploymentUpdateArgs; + result: runtime.Types.Utils.PayloadToResult; + }; deleteMany: { - args: Prisma.DeploymentDeleteManyArgs - result: BatchPayload - } + args: Prisma.DeploymentDeleteManyArgs; + result: BatchPayload; + }; updateMany: { - args: Prisma.DeploymentUpdateManyArgs - result: BatchPayload - } + args: Prisma.DeploymentUpdateManyArgs; + result: BatchPayload; + }; updateManyAndReturn: { - args: Prisma.DeploymentUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } + args: Prisma.DeploymentUpdateManyAndReturnArgs; + result: runtime.Types.Utils.PayloadToResult[]; + }; upsert: { - args: Prisma.DeploymentUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } + args: Prisma.DeploymentUpsertArgs; + result: runtime.Types.Utils.PayloadToResult; + }; aggregate: { - args: Prisma.DeploymentAggregateArgs - result: runtime.Types.Utils.Optional - } + args: Prisma.DeploymentAggregateArgs; + result: runtime.Types.Utils.Optional; + }; groupBy: { - args: Prisma.DeploymentGroupByArgs - result: runtime.Types.Utils.Optional[] - } + args: Prisma.DeploymentGroupByArgs; + result: runtime.Types.Utils.Optional[]; + }; count: { - args: Prisma.DeploymentCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - } + args: Prisma.DeploymentCountArgs; + result: + | runtime.Types.Utils.Optional + | number; + }; + }; + }; + }; } & { other: { - payload: any + payload: any; operations: { $executeRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]], - result: any - } + args: [query: TemplateStringsArray | Sql, ...values: any[]]; + result: any; + }; $executeRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } + args: [query: string, ...values: any[]]; + result: any; + }; $queryRaw: { - args: [query: TemplateStringsArray | Sql, ...values: any[]], - result: any - } + args: [query: TemplateStringsArray | Sql, ...values: any[]]; + result: any; + }; $queryRawUnsafe: { - args: [query: string, ...values: any[]], - result: any - } - } - } -} + args: [query: string, ...values: any[]]; + result: any; + }; + }; + }; +}; /** * Enums */ export const TransactionIsolationLevel = runtime.makeStrictEnum({ - Serializable: 'Serializable' -} as const) - -export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + Serializable: 'Serializable', +} as const); +export type TransactionIsolationLevel = + (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]; export const ProjectScalarFieldEnum = { id: 'id', @@ -820,15 +867,16 @@ export const ProjectScalarFieldEnum = { description: 'description', repository: 'repository', projectDir: 'projectDir', + envPresets: 'envPresets', valid: 'valid', createdAt: 'createdAt', updatedAt: 'updatedAt', createdBy: 'createdBy', - updatedBy: 'updatedBy' -} as const - -export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + updatedBy: 'updatedBy', +} as const; +export type ProjectScalarFieldEnum = + (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]; export const UserScalarFieldEnum = { id: 'id', @@ -841,11 +889,11 @@ export const UserScalarFieldEnum = { createdAt: 'createdAt', updatedAt: 'updatedAt', createdBy: 'createdBy', - updatedBy: 'updatedBy' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + updatedBy: 'updatedBy', +} as const; +export type UserScalarFieldEnum = + (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]; export const PipelineScalarFieldEnum = { id: 'id', @@ -856,11 +904,11 @@ export const PipelineScalarFieldEnum = { updatedAt: 'updatedAt', createdBy: 'createdBy', updatedBy: 'updatedBy', - projectId: 'projectId' -} as const - -export type PipelineScalarFieldEnum = (typeof PipelineScalarFieldEnum)[keyof typeof PipelineScalarFieldEnum] + projectId: 'projectId', +} as const; +export type PipelineScalarFieldEnum = + (typeof PipelineScalarFieldEnum)[keyof typeof PipelineScalarFieldEnum]; export const StepScalarFieldEnum = { id: 'id', @@ -872,16 +920,16 @@ export const StepScalarFieldEnum = { updatedAt: 'updatedAt', createdBy: 'createdBy', updatedBy: 'updatedBy', - pipelineId: 'pipelineId' -} as const - -export type StepScalarFieldEnum = (typeof StepScalarFieldEnum)[keyof typeof StepScalarFieldEnum] + pipelineId: 'pipelineId', +} as const; +export type StepScalarFieldEnum = + (typeof StepScalarFieldEnum)[keyof typeof StepScalarFieldEnum]; export const DeploymentScalarFieldEnum = { id: 'id', branch: 'branch', - env: 'env', + envVars: 'envVars', status: 'status', commitHash: 'commitHash', commitMessage: 'commitMessage', @@ -895,101 +943,111 @@ export const DeploymentScalarFieldEnum = { createdBy: 'createdBy', updatedBy: 'updatedBy', projectId: 'projectId', - pipelineId: 'pipelineId' -} as const - -export type DeploymentScalarFieldEnum = (typeof DeploymentScalarFieldEnum)[keyof typeof DeploymentScalarFieldEnum] + pipelineId: 'pipelineId', +} as const; +export type DeploymentScalarFieldEnum = + (typeof DeploymentScalarFieldEnum)[keyof typeof DeploymentScalarFieldEnum]; export const SortOrder = { asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + desc: 'desc', +} as const; +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; export const NullsOrder = { first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - + last: 'last', +} as const; +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]; /** * Field references */ - /** * Reference to a field of type 'Int' */ -export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> - - +export type IntFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'Int' +>; /** * Reference to a field of type 'String' */ -export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> - - +export type StringFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'String' +>; /** * Reference to a field of type 'DateTime' */ -export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> - - +export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'DateTime' +>; /** * Reference to a field of type 'Boolean' */ -export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> - - +export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'Boolean' +>; /** * Reference to a field of type 'Float' */ -export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> - +export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType< + $PrismaModel, + 'Float' +>; /** * Batch Payload for updateMany & deleteMany & createMany */ export type BatchPayload = { - count: number -} + count: number; +}; -export const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> -export type DefaultPrismaClient = PrismaClient -export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' -export type PrismaClientOptions = ({ - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. - */ - adapter: runtime.SqlDriverAdapterFactory - accelerateUrl?: never -} | { - /** - * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. - */ - accelerateUrl: string - adapter?: never -}) & { +export const defineExtension = runtime.Extensions + .defineExtension as unknown as runtime.Types.Extensions.ExtendsHook< + 'define', + TypeMapCb, + runtime.Types.Extensions.DefaultArgs +>; +export type DefaultPrismaClient = PrismaClient; +export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'; +export type PrismaClientOptions = ( + | { + /** + * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. + */ + adapter: runtime.SqlDriverAdapterFactory; + accelerateUrl?: never; + } + | { + /** + * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. + */ + accelerateUrl: string; + adapter?: never; + } +) & { /** * @default "colorless" */ - errorFormat?: ErrorFormat + errorFormat?: ErrorFormat; /** * @example * ``` * // Shorthand for `emit: 'stdout'` * log: ['query', 'info', 'warn', 'error'] - * + * * // Emit as events only * log: [ * { emit: 'event', level: 'query' }, @@ -997,31 +1055,31 @@ export type PrismaClientOptions = ({ * { emit: 'event', level: 'warn' } * { emit: 'event', level: 'error' } * ] - * + * * / Emit as events and log to stdout * og: [ * { emit: 'stdout', level: 'query' }, * { emit: 'stdout', level: 'info' }, * { emit: 'stdout', level: 'warn' } * { emit: 'stdout', level: 'error' } - * + * * ``` * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option). */ - log?: (LogLevel | LogDefinition)[] + log?: (LogLevel | LogDefinition)[]; /** * The default values for transactionOptions * maxWait ?= 2000 * timeout ?= 5000 */ transactionOptions?: { - maxWait?: number - timeout?: number - isolationLevel?: TransactionIsolationLevel - } + maxWait?: number; + timeout?: number; + isolationLevel?: TransactionIsolationLevel; + }; /** * Global configuration for omitting model fields by default. - * + * * @example * ``` * const prisma = new PrismaClient({ @@ -1033,22 +1091,22 @@ export type PrismaClientOptions = ({ * }) * ``` */ - omit?: GlobalOmitConfig -} + omit?: GlobalOmitConfig; +}; export type GlobalOmitConfig = { - project?: Prisma.ProjectOmit - user?: Prisma.UserOmit - pipeline?: Prisma.PipelineOmit - step?: Prisma.StepOmit - deployment?: Prisma.DeploymentOmit -} + project?: Prisma.ProjectOmit; + user?: Prisma.UserOmit; + pipeline?: Prisma.PipelineOmit; + step?: Prisma.StepOmit; + deployment?: Prisma.DeploymentOmit; +}; /* Types for Logging */ -export type LogLevel = 'info' | 'query' | 'warn' | 'error' +export type LogLevel = 'info' | 'query' | 'warn' | 'error'; export type LogDefinition = { - level: LogLevel - emit: 'stdout' | 'event' -} + level: LogLevel; + emit: 'stdout' | 'event'; +}; export type CheckIsLogLevel = T extends LogLevel ? T : never; @@ -1056,26 +1114,27 @@ export type GetLogType = CheckIsLogLevel< T extends LogDefinition ? T['level'] : T >; -export type GetEvents = T extends Array +export type GetEvents = T extends Array< + LogLevel | LogDefinition +> ? GetLogType : never; export type QueryEvent = { - timestamp: Date - query: string - params: string - duration: number - target: string -} + timestamp: Date; + query: string; + params: string; + duration: number; + target: string; +}; export type LogEvent = { - timestamp: Date - message: string - target: string -} + timestamp: Date; + message: string; + target: string; +}; /* End Types for Logging */ - export type PrismaAction = | 'findUnique' | 'findUniqueOrThrow' @@ -1097,10 +1156,12 @@ export type PrismaAction = | 'count' | 'runCommandRaw' | 'findRaw' - | 'groupBy' + | 'groupBy'; /** * `PrismaClient` proxy available in interactive transactions. */ -export type TransactionClient = Omit - +export type TransactionClient = Omit< + DefaultPrismaClient, + runtime.ITXClientDenyList +>; diff --git a/apps/server/generated/internal/prismaNamespaceBrowser.ts b/apps/server/generated/internal/prismaNamespaceBrowser.ts index 7692541..c53f4b5 100644 --- a/apps/server/generated/internal/prismaNamespaceBrowser.ts +++ b/apps/server/generated/internal/prismaNamespaceBrowser.ts @@ -1,8 +1,7 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* * WARNING: This is an internal file that is subject to change! * @@ -15,61 +14,65 @@ * model files in the `model` directory! */ -import * as runtime from "@prisma/client/runtime/index-browser" +import * as runtime from '@prisma/client/runtime/index-browser'; -export type * from '../models.ts' -export type * from './prismaNamespace.ts' - -export const Decimal = runtime.Decimal +export type * from '../models.ts'; +export type * from './prismaNamespace.ts'; +export const Decimal = runtime.Decimal; export const NullTypes = { - DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), - JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), - AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), -} + DbNull: runtime.NullTypes.DbNull as new ( + secret: never, + ) => typeof runtime.DbNull, + JsonNull: runtime.NullTypes.JsonNull as new ( + secret: never, + ) => typeof runtime.JsonNull, + AnyNull: runtime.NullTypes.AnyNull as new ( + secret: never, + ) => typeof runtime.AnyNull, +}; /** * Helper for filtering JSON entries that have `null` on the database (empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ -export const DbNull = runtime.DbNull +export const DbNull = runtime.DbNull; /** * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ -export const JsonNull = runtime.JsonNull +export const JsonNull = runtime.JsonNull; /** * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` * * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field */ -export const AnyNull = runtime.AnyNull - +export const AnyNull = runtime.AnyNull; export const ModelName = { Project: 'Project', User: 'User', Pipeline: 'Pipeline', Step: 'Step', - Deployment: 'Deployment' -} as const + Deployment: 'Deployment', +} as const; -export type ModelName = (typeof ModelName)[keyof typeof ModelName] +export type ModelName = (typeof ModelName)[keyof typeof ModelName]; /* * Enums */ export const TransactionIsolationLevel = { - Serializable: 'Serializable' -} as const - -export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + Serializable: 'Serializable', +} as const; +export type TransactionIsolationLevel = + (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]; export const ProjectScalarFieldEnum = { id: 'id', @@ -77,15 +80,16 @@ export const ProjectScalarFieldEnum = { description: 'description', repository: 'repository', projectDir: 'projectDir', + envPresets: 'envPresets', valid: 'valid', createdAt: 'createdAt', updatedAt: 'updatedAt', createdBy: 'createdBy', - updatedBy: 'updatedBy' -} as const - -export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + updatedBy: 'updatedBy', +} as const; +export type ProjectScalarFieldEnum = + (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum]; export const UserScalarFieldEnum = { id: 'id', @@ -98,11 +102,11 @@ export const UserScalarFieldEnum = { createdAt: 'createdAt', updatedAt: 'updatedAt', createdBy: 'createdBy', - updatedBy: 'updatedBy' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + updatedBy: 'updatedBy', +} as const; +export type UserScalarFieldEnum = + (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]; export const PipelineScalarFieldEnum = { id: 'id', @@ -113,11 +117,11 @@ export const PipelineScalarFieldEnum = { updatedAt: 'updatedAt', createdBy: 'createdBy', updatedBy: 'updatedBy', - projectId: 'projectId' -} as const - -export type PipelineScalarFieldEnum = (typeof PipelineScalarFieldEnum)[keyof typeof PipelineScalarFieldEnum] + projectId: 'projectId', +} as const; +export type PipelineScalarFieldEnum = + (typeof PipelineScalarFieldEnum)[keyof typeof PipelineScalarFieldEnum]; export const StepScalarFieldEnum = { id: 'id', @@ -129,16 +133,16 @@ export const StepScalarFieldEnum = { updatedAt: 'updatedAt', createdBy: 'createdBy', updatedBy: 'updatedBy', - pipelineId: 'pipelineId' -} as const - -export type StepScalarFieldEnum = (typeof StepScalarFieldEnum)[keyof typeof StepScalarFieldEnum] + pipelineId: 'pipelineId', +} as const; +export type StepScalarFieldEnum = + (typeof StepScalarFieldEnum)[keyof typeof StepScalarFieldEnum]; export const DeploymentScalarFieldEnum = { id: 'id', branch: 'branch', - env: 'env', + envVars: 'envVars', status: 'status', commitHash: 'commitHash', commitMessage: 'commitMessage', @@ -152,24 +156,22 @@ export const DeploymentScalarFieldEnum = { createdBy: 'createdBy', updatedBy: 'updatedBy', projectId: 'projectId', - pipelineId: 'pipelineId' -} as const - -export type DeploymentScalarFieldEnum = (typeof DeploymentScalarFieldEnum)[keyof typeof DeploymentScalarFieldEnum] + pipelineId: 'pipelineId', +} as const; +export type DeploymentScalarFieldEnum = + (typeof DeploymentScalarFieldEnum)[keyof typeof DeploymentScalarFieldEnum]; export const SortOrder = { asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] + desc: 'desc', +} as const; +export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]; export const NullsOrder = { first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] + last: 'last', +} as const; +export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]; diff --git a/apps/server/generated/models.ts b/apps/server/generated/models.ts index 25adb1d..efaed84 100644 --- a/apps/server/generated/models.ts +++ b/apps/server/generated/models.ts @@ -1,16 +1,15 @@ - +export type * from './commonInputTypes.ts'; +export type * from './models/Deployment.ts'; +export type * from './models/Pipeline.ts'; /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* * This is a barrel export file for all models and their related types. * * 🟢 You can import this file directly. */ -export type * from './models/Project.ts' -export type * from './models/User.ts' -export type * from './models/Pipeline.ts' -export type * from './models/Step.ts' -export type * from './models/Deployment.ts' -export type * from './commonInputTypes.ts' \ No newline at end of file +export type * from './models/Project.ts'; +export type * from './models/Step.ts'; +export type * from './models/User.ts'; diff --git a/apps/server/generated/models/Deployment.ts b/apps/server/generated/models/Deployment.ts index e84a7ab..1d972d5 100644 --- a/apps/server/generated/models/Deployment.ts +++ b/apps/server/generated/models/Deployment.ts @@ -1,983 +1,1255 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* * This file exports the `Deployment` 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" +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 Deployment - * + * */ -export type DeploymentModel = runtime.Types.Result.DefaultSelection +export type DeploymentModel = + runtime.Types.Result.DefaultSelection; export type AggregateDeployment = { - _count: DeploymentCountAggregateOutputType | null - _avg: DeploymentAvgAggregateOutputType | null - _sum: DeploymentSumAggregateOutputType | null - _min: DeploymentMinAggregateOutputType | null - _max: DeploymentMaxAggregateOutputType | null -} + _count: DeploymentCountAggregateOutputType | null; + _avg: DeploymentAvgAggregateOutputType | null; + _sum: DeploymentSumAggregateOutputType | null; + _min: DeploymentMinAggregateOutputType | null; + _max: DeploymentMaxAggregateOutputType | null; +}; export type DeploymentAvgAggregateOutputType = { - id: number | null - valid: number | null - projectId: number | null - pipelineId: number | null -} + id: number | null; + valid: number | null; + projectId: number | null; + pipelineId: number | null; +}; export type DeploymentSumAggregateOutputType = { - id: number | null - valid: number | null - projectId: number | null - pipelineId: number | null -} + id: number | null; + valid: number | null; + projectId: number | null; + pipelineId: number | null; +}; export type DeploymentMinAggregateOutputType = { - id: number | null - branch: string | null - env: string | null - status: string | null - commitHash: string | null - commitMessage: string | null - buildLog: string | null - sparseCheckoutPaths: string | null - startedAt: Date | null - finishedAt: Date | null - valid: number | null - createdAt: Date | null - updatedAt: Date | null - createdBy: string | null - updatedBy: string | null - projectId: number | null - pipelineId: number | null -} + id: number | null; + branch: string | null; + envVars: string | null; + status: string | null; + commitHash: string | null; + commitMessage: string | null; + buildLog: string | null; + sparseCheckoutPaths: string | null; + startedAt: Date | null; + finishedAt: Date | null; + valid: number | null; + createdAt: Date | null; + updatedAt: Date | null; + createdBy: string | null; + updatedBy: string | null; + projectId: number | null; + pipelineId: number | null; +}; export type DeploymentMaxAggregateOutputType = { - id: number | null - branch: string | null - env: string | null - status: string | null - commitHash: string | null - commitMessage: string | null - buildLog: string | null - sparseCheckoutPaths: string | null - startedAt: Date | null - finishedAt: Date | null - valid: number | null - createdAt: Date | null - updatedAt: Date | null - createdBy: string | null - updatedBy: string | null - projectId: number | null - pipelineId: number | null -} + id: number | null; + branch: string | null; + envVars: string | null; + status: string | null; + commitHash: string | null; + commitMessage: string | null; + buildLog: string | null; + sparseCheckoutPaths: string | null; + startedAt: Date | null; + finishedAt: Date | null; + valid: number | null; + createdAt: Date | null; + updatedAt: Date | null; + createdBy: string | null; + updatedBy: string | null; + projectId: number | null; + pipelineId: number | null; +}; export type DeploymentCountAggregateOutputType = { - id: number - branch: number - env: number - status: number - commitHash: number - commitMessage: number - buildLog: number - sparseCheckoutPaths: number - startedAt: number - finishedAt: number - valid: number - createdAt: number - updatedAt: number - createdBy: number - updatedBy: number - projectId: number - pipelineId: number - _all: number -} - + id: number; + branch: number; + envVars: number; + status: number; + commitHash: number; + commitMessage: number; + buildLog: number; + sparseCheckoutPaths: number; + startedAt: number; + finishedAt: number; + valid: number; + createdAt: number; + updatedAt: number; + createdBy: number; + updatedBy: number; + projectId: number; + pipelineId: number; + _all: number; +}; export type DeploymentAvgAggregateInputType = { - id?: true - valid?: true - projectId?: true - pipelineId?: true -} + id?: true; + valid?: true; + projectId?: true; + pipelineId?: true; +}; export type DeploymentSumAggregateInputType = { - id?: true - valid?: true - projectId?: true - pipelineId?: true -} + id?: true; + valid?: true; + projectId?: true; + pipelineId?: true; +}; export type DeploymentMinAggregateInputType = { - id?: true - branch?: true - env?: true - status?: true - commitHash?: true - commitMessage?: true - buildLog?: true - sparseCheckoutPaths?: true - startedAt?: true - finishedAt?: true - valid?: true - createdAt?: true - updatedAt?: true - createdBy?: true - updatedBy?: true - projectId?: true - pipelineId?: true -} + id?: true; + branch?: true; + envVars?: true; + status?: true; + commitHash?: true; + commitMessage?: true; + buildLog?: true; + sparseCheckoutPaths?: true; + startedAt?: true; + finishedAt?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; + projectId?: true; + pipelineId?: true; +}; export type DeploymentMaxAggregateInputType = { - id?: true - branch?: true - env?: true - status?: true - commitHash?: true - commitMessage?: true - buildLog?: true - sparseCheckoutPaths?: true - startedAt?: true - finishedAt?: true - valid?: true - createdAt?: true - updatedAt?: true - createdBy?: true - updatedBy?: true - projectId?: true - pipelineId?: true -} + id?: true; + branch?: true; + envVars?: true; + status?: true; + commitHash?: true; + commitMessage?: true; + buildLog?: true; + sparseCheckoutPaths?: true; + startedAt?: true; + finishedAt?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; + projectId?: true; + pipelineId?: true; +}; export type DeploymentCountAggregateInputType = { - id?: true - branch?: true - env?: true - status?: true - commitHash?: true - commitMessage?: true - buildLog?: true - sparseCheckoutPaths?: true - startedAt?: true - finishedAt?: true - valid?: true - createdAt?: true - updatedAt?: true - createdBy?: true - updatedBy?: true - projectId?: true - pipelineId?: true - _all?: true -} + id?: true; + branch?: true; + envVars?: true; + status?: true; + commitHash?: true; + commitMessage?: true; + buildLog?: true; + sparseCheckoutPaths?: true; + startedAt?: true; + finishedAt?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; + projectId?: true; + pipelineId?: true; + _all?: true; +}; -export type DeploymentAggregateArgs = { +export type DeploymentAggregateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which Deployment to aggregate. */ - where?: Prisma.DeploymentWhereInput + where?: Prisma.DeploymentWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Deployments to fetch. */ - orderBy?: Prisma.DeploymentOrderByWithRelationInput | Prisma.DeploymentOrderByWithRelationInput[] + orderBy?: + | Prisma.DeploymentOrderByWithRelationInput + | Prisma.DeploymentOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the start position */ - cursor?: Prisma.DeploymentWhereUniqueInput + cursor?: Prisma.DeploymentWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Deployments from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Deployments. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Count returned Deployments - **/ - _count?: true | DeploymentCountAggregateInputType + **/ + _count?: true | DeploymentCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to average - **/ - _avg?: DeploymentAvgAggregateInputType + **/ + _avg?: DeploymentAvgAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to sum - **/ - _sum?: DeploymentSumAggregateInputType + **/ + _sum?: DeploymentSumAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to find the minimum value - **/ - _min?: DeploymentMinAggregateInputType + **/ + _min?: DeploymentMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to find the maximum value - **/ - _max?: DeploymentMaxAggregateInputType -} + **/ + _max?: DeploymentMaxAggregateInputType; +}; export type GetDeploymentAggregateType = { - [P in keyof T & keyof AggregateDeployment]: P extends '_count' | 'count' + [P in keyof T & keyof AggregateDeployment]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType - : Prisma.GetScalarType -} + : Prisma.GetScalarType; +}; - - - -export type DeploymentGroupByArgs = { - where?: Prisma.DeploymentWhereInput - orderBy?: Prisma.DeploymentOrderByWithAggregationInput | Prisma.DeploymentOrderByWithAggregationInput[] - by: Prisma.DeploymentScalarFieldEnum[] | Prisma.DeploymentScalarFieldEnum - having?: Prisma.DeploymentScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: DeploymentCountAggregateInputType | true - _avg?: DeploymentAvgAggregateInputType - _sum?: DeploymentSumAggregateInputType - _min?: DeploymentMinAggregateInputType - _max?: DeploymentMaxAggregateInputType -} +export type DeploymentGroupByArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.DeploymentWhereInput; + orderBy?: + | Prisma.DeploymentOrderByWithAggregationInput + | Prisma.DeploymentOrderByWithAggregationInput[]; + by: Prisma.DeploymentScalarFieldEnum[] | Prisma.DeploymentScalarFieldEnum; + having?: Prisma.DeploymentScalarWhereWithAggregatesInput; + take?: number; + skip?: number; + _count?: DeploymentCountAggregateInputType | true; + _avg?: DeploymentAvgAggregateInputType; + _sum?: DeploymentSumAggregateInputType; + _min?: DeploymentMinAggregateInputType; + _max?: DeploymentMaxAggregateInputType; +}; export type DeploymentGroupByOutputType = { - id: number - branch: string - env: string | null - status: string - commitHash: string | null - commitMessage: string | null - buildLog: string | null - sparseCheckoutPaths: string | null - startedAt: Date - finishedAt: Date | null - valid: number - createdAt: Date - updatedAt: Date - createdBy: string - updatedBy: string - projectId: number - pipelineId: number - _count: DeploymentCountAggregateOutputType | null - _avg: DeploymentAvgAggregateOutputType | null - _sum: DeploymentSumAggregateOutputType | null - _min: DeploymentMinAggregateOutputType | null - _max: DeploymentMaxAggregateOutputType | null -} + id: number; + branch: string; + envVars: string | null; + status: string; + commitHash: string | null; + commitMessage: string | null; + buildLog: string | null; + sparseCheckoutPaths: string | null; + startedAt: Date; + finishedAt: Date | null; + valid: number; + createdAt: Date; + updatedAt: Date; + createdBy: string; + updatedBy: string; + projectId: number; + pipelineId: number; + _count: DeploymentCountAggregateOutputType | null; + _avg: DeploymentAvgAggregateOutputType | null; + _sum: DeploymentSumAggregateOutputType | null; + _min: DeploymentMinAggregateOutputType | null; + _max: DeploymentMaxAggregateOutputType | null; +}; -type GetDeploymentGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof DeploymentGroupByOutputType))]: P extends '_count' +type GetDeploymentGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof DeploymentGroupByOutputType]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType - : Prisma.GetScalarType + : Prisma.GetScalarType; } > - > - - + >; export type DeploymentWhereInput = { - AND?: Prisma.DeploymentWhereInput | Prisma.DeploymentWhereInput[] - OR?: Prisma.DeploymentWhereInput[] - NOT?: Prisma.DeploymentWhereInput | Prisma.DeploymentWhereInput[] - id?: Prisma.IntFilter<"Deployment"> | number - branch?: Prisma.StringFilter<"Deployment"> | string - env?: Prisma.StringNullableFilter<"Deployment"> | string | null - status?: Prisma.StringFilter<"Deployment"> | string - commitHash?: Prisma.StringNullableFilter<"Deployment"> | string | null - commitMessage?: Prisma.StringNullableFilter<"Deployment"> | string | null - buildLog?: Prisma.StringNullableFilter<"Deployment"> | string | null - sparseCheckoutPaths?: Prisma.StringNullableFilter<"Deployment"> | string | null - startedAt?: Prisma.DateTimeFilter<"Deployment"> | Date | string - finishedAt?: Prisma.DateTimeNullableFilter<"Deployment"> | Date | string | null - valid?: Prisma.IntFilter<"Deployment"> | number - createdAt?: Prisma.DateTimeFilter<"Deployment"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Deployment"> | Date | string - createdBy?: Prisma.StringFilter<"Deployment"> | string - updatedBy?: Prisma.StringFilter<"Deployment"> | string - projectId?: Prisma.IntFilter<"Deployment"> | number - pipelineId?: Prisma.IntFilter<"Deployment"> | number - Project?: Prisma.XOR | null -} + AND?: Prisma.DeploymentWhereInput | Prisma.DeploymentWhereInput[]; + OR?: Prisma.DeploymentWhereInput[]; + NOT?: Prisma.DeploymentWhereInput | Prisma.DeploymentWhereInput[]; + id?: Prisma.IntFilter<'Deployment'> | number; + branch?: Prisma.StringFilter<'Deployment'> | string; + envVars?: Prisma.StringNullableFilter<'Deployment'> | string | null; + status?: Prisma.StringFilter<'Deployment'> | string; + commitHash?: Prisma.StringNullableFilter<'Deployment'> | string | null; + commitMessage?: Prisma.StringNullableFilter<'Deployment'> | string | null; + buildLog?: Prisma.StringNullableFilter<'Deployment'> | string | null; + sparseCheckoutPaths?: + | Prisma.StringNullableFilter<'Deployment'> + | string + | null; + startedAt?: Prisma.DateTimeFilter<'Deployment'> | Date | string; + finishedAt?: + | Prisma.DateTimeNullableFilter<'Deployment'> + | Date + | string + | null; + valid?: Prisma.IntFilter<'Deployment'> | number; + createdAt?: Prisma.DateTimeFilter<'Deployment'> | Date | string; + updatedAt?: Prisma.DateTimeFilter<'Deployment'> | Date | string; + createdBy?: Prisma.StringFilter<'Deployment'> | string; + updatedBy?: Prisma.StringFilter<'Deployment'> | string; + projectId?: Prisma.IntFilter<'Deployment'> | number; + pipelineId?: Prisma.IntFilter<'Deployment'> | number; + Project?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null; +}; export type DeploymentOrderByWithRelationInput = { - id?: Prisma.SortOrder - branch?: Prisma.SortOrder - env?: Prisma.SortOrderInput | Prisma.SortOrder - status?: Prisma.SortOrder - commitHash?: Prisma.SortOrderInput | Prisma.SortOrder - commitMessage?: Prisma.SortOrderInput | Prisma.SortOrder - buildLog?: Prisma.SortOrderInput | Prisma.SortOrder - sparseCheckoutPaths?: Prisma.SortOrderInput | Prisma.SortOrder - startedAt?: Prisma.SortOrder - finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - projectId?: Prisma.SortOrder - pipelineId?: Prisma.SortOrder - Project?: Prisma.ProjectOrderByWithRelationInput -} + id?: Prisma.SortOrder; + branch?: Prisma.SortOrder; + envVars?: Prisma.SortOrderInput | Prisma.SortOrder; + status?: Prisma.SortOrder; + commitHash?: Prisma.SortOrderInput | Prisma.SortOrder; + commitMessage?: Prisma.SortOrderInput | Prisma.SortOrder; + buildLog?: Prisma.SortOrderInput | Prisma.SortOrder; + sparseCheckoutPaths?: Prisma.SortOrderInput | Prisma.SortOrder; + startedAt?: Prisma.SortOrder; + finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; + projectId?: Prisma.SortOrder; + pipelineId?: Prisma.SortOrder; + Project?: Prisma.ProjectOrderByWithRelationInput; +}; -export type DeploymentWhereUniqueInput = Prisma.AtLeast<{ - id?: number - AND?: Prisma.DeploymentWhereInput | Prisma.DeploymentWhereInput[] - OR?: Prisma.DeploymentWhereInput[] - NOT?: Prisma.DeploymentWhereInput | Prisma.DeploymentWhereInput[] - branch?: Prisma.StringFilter<"Deployment"> | string - env?: Prisma.StringNullableFilter<"Deployment"> | string | null - status?: Prisma.StringFilter<"Deployment"> | string - commitHash?: Prisma.StringNullableFilter<"Deployment"> | string | null - commitMessage?: Prisma.StringNullableFilter<"Deployment"> | string | null - buildLog?: Prisma.StringNullableFilter<"Deployment"> | string | null - sparseCheckoutPaths?: Prisma.StringNullableFilter<"Deployment"> | string | null - startedAt?: Prisma.DateTimeFilter<"Deployment"> | Date | string - finishedAt?: Prisma.DateTimeNullableFilter<"Deployment"> | Date | string | null - valid?: Prisma.IntFilter<"Deployment"> | number - createdAt?: Prisma.DateTimeFilter<"Deployment"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Deployment"> | Date | string - createdBy?: Prisma.StringFilter<"Deployment"> | string - updatedBy?: Prisma.StringFilter<"Deployment"> | string - projectId?: Prisma.IntFilter<"Deployment"> | number - pipelineId?: Prisma.IntFilter<"Deployment"> | number - Project?: Prisma.XOR | null -}, "id"> +export type DeploymentWhereUniqueInput = Prisma.AtLeast< + { + id?: number; + AND?: Prisma.DeploymentWhereInput | Prisma.DeploymentWhereInput[]; + OR?: Prisma.DeploymentWhereInput[]; + NOT?: Prisma.DeploymentWhereInput | Prisma.DeploymentWhereInput[]; + branch?: Prisma.StringFilter<'Deployment'> | string; + envVars?: Prisma.StringNullableFilter<'Deployment'> | string | null; + status?: Prisma.StringFilter<'Deployment'> | string; + commitHash?: Prisma.StringNullableFilter<'Deployment'> | string | null; + commitMessage?: Prisma.StringNullableFilter<'Deployment'> | string | null; + buildLog?: Prisma.StringNullableFilter<'Deployment'> | string | null; + sparseCheckoutPaths?: + | Prisma.StringNullableFilter<'Deployment'> + | string + | null; + startedAt?: Prisma.DateTimeFilter<'Deployment'> | Date | string; + finishedAt?: + | Prisma.DateTimeNullableFilter<'Deployment'> + | Date + | string + | null; + valid?: Prisma.IntFilter<'Deployment'> | number; + createdAt?: Prisma.DateTimeFilter<'Deployment'> | Date | string; + updatedAt?: Prisma.DateTimeFilter<'Deployment'> | Date | string; + createdBy?: Prisma.StringFilter<'Deployment'> | string; + updatedBy?: Prisma.StringFilter<'Deployment'> | string; + projectId?: Prisma.IntFilter<'Deployment'> | number; + pipelineId?: Prisma.IntFilter<'Deployment'> | number; + Project?: Prisma.XOR< + Prisma.ProjectNullableScalarRelationFilter, + Prisma.ProjectWhereInput + > | null; + }, + 'id' +>; export type DeploymentOrderByWithAggregationInput = { - id?: Prisma.SortOrder - branch?: Prisma.SortOrder - env?: Prisma.SortOrderInput | Prisma.SortOrder - status?: Prisma.SortOrder - commitHash?: Prisma.SortOrderInput | Prisma.SortOrder - commitMessage?: Prisma.SortOrderInput | Prisma.SortOrder - buildLog?: Prisma.SortOrderInput | Prisma.SortOrder - sparseCheckoutPaths?: Prisma.SortOrderInput | Prisma.SortOrder - startedAt?: Prisma.SortOrder - finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - projectId?: Prisma.SortOrder - pipelineId?: Prisma.SortOrder - _count?: Prisma.DeploymentCountOrderByAggregateInput - _avg?: Prisma.DeploymentAvgOrderByAggregateInput - _max?: Prisma.DeploymentMaxOrderByAggregateInput - _min?: Prisma.DeploymentMinOrderByAggregateInput - _sum?: Prisma.DeploymentSumOrderByAggregateInput -} + id?: Prisma.SortOrder; + branch?: Prisma.SortOrder; + envVars?: Prisma.SortOrderInput | Prisma.SortOrder; + status?: Prisma.SortOrder; + commitHash?: Prisma.SortOrderInput | Prisma.SortOrder; + commitMessage?: Prisma.SortOrderInput | Prisma.SortOrder; + buildLog?: Prisma.SortOrderInput | Prisma.SortOrder; + sparseCheckoutPaths?: Prisma.SortOrderInput | Prisma.SortOrder; + startedAt?: Prisma.SortOrder; + finishedAt?: Prisma.SortOrderInput | Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; + projectId?: Prisma.SortOrder; + pipelineId?: Prisma.SortOrder; + _count?: Prisma.DeploymentCountOrderByAggregateInput; + _avg?: Prisma.DeploymentAvgOrderByAggregateInput; + _max?: Prisma.DeploymentMaxOrderByAggregateInput; + _min?: Prisma.DeploymentMinOrderByAggregateInput; + _sum?: Prisma.DeploymentSumOrderByAggregateInput; +}; export type DeploymentScalarWhereWithAggregatesInput = { - AND?: Prisma.DeploymentScalarWhereWithAggregatesInput | Prisma.DeploymentScalarWhereWithAggregatesInput[] - OR?: Prisma.DeploymentScalarWhereWithAggregatesInput[] - NOT?: Prisma.DeploymentScalarWhereWithAggregatesInput | Prisma.DeploymentScalarWhereWithAggregatesInput[] - id?: Prisma.IntWithAggregatesFilter<"Deployment"> | number - branch?: Prisma.StringWithAggregatesFilter<"Deployment"> | string - env?: Prisma.StringNullableWithAggregatesFilter<"Deployment"> | string | null - status?: Prisma.StringWithAggregatesFilter<"Deployment"> | string - commitHash?: Prisma.StringNullableWithAggregatesFilter<"Deployment"> | string | null - commitMessage?: Prisma.StringNullableWithAggregatesFilter<"Deployment"> | string | null - buildLog?: Prisma.StringNullableWithAggregatesFilter<"Deployment"> | string | null - sparseCheckoutPaths?: Prisma.StringNullableWithAggregatesFilter<"Deployment"> | string | null - startedAt?: Prisma.DateTimeWithAggregatesFilter<"Deployment"> | Date | string - finishedAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Deployment"> | Date | string | null - valid?: Prisma.IntWithAggregatesFilter<"Deployment"> | number - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Deployment"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Deployment"> | Date | string - createdBy?: Prisma.StringWithAggregatesFilter<"Deployment"> | string - updatedBy?: Prisma.StringWithAggregatesFilter<"Deployment"> | string - projectId?: Prisma.IntWithAggregatesFilter<"Deployment"> | number - pipelineId?: Prisma.IntWithAggregatesFilter<"Deployment"> | number -} + AND?: + | Prisma.DeploymentScalarWhereWithAggregatesInput + | Prisma.DeploymentScalarWhereWithAggregatesInput[]; + OR?: Prisma.DeploymentScalarWhereWithAggregatesInput[]; + NOT?: + | Prisma.DeploymentScalarWhereWithAggregatesInput + | Prisma.DeploymentScalarWhereWithAggregatesInput[]; + id?: Prisma.IntWithAggregatesFilter<'Deployment'> | number; + branch?: Prisma.StringWithAggregatesFilter<'Deployment'> | string; + envVars?: + | Prisma.StringNullableWithAggregatesFilter<'Deployment'> + | string + | null; + status?: Prisma.StringWithAggregatesFilter<'Deployment'> | string; + commitHash?: + | Prisma.StringNullableWithAggregatesFilter<'Deployment'> + | string + | null; + commitMessage?: + | Prisma.StringNullableWithAggregatesFilter<'Deployment'> + | string + | null; + buildLog?: + | Prisma.StringNullableWithAggregatesFilter<'Deployment'> + | string + | null; + sparseCheckoutPaths?: + | Prisma.StringNullableWithAggregatesFilter<'Deployment'> + | string + | null; + startedAt?: Prisma.DateTimeWithAggregatesFilter<'Deployment'> | Date | string; + finishedAt?: + | Prisma.DateTimeNullableWithAggregatesFilter<'Deployment'> + | Date + | string + | null; + valid?: Prisma.IntWithAggregatesFilter<'Deployment'> | number; + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Deployment'> | Date | string; + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Deployment'> | Date | string; + createdBy?: Prisma.StringWithAggregatesFilter<'Deployment'> | string; + updatedBy?: Prisma.StringWithAggregatesFilter<'Deployment'> | string; + projectId?: Prisma.IntWithAggregatesFilter<'Deployment'> | number; + pipelineId?: Prisma.IntWithAggregatesFilter<'Deployment'> | number; +}; export type DeploymentCreateInput = { - branch: string - env?: string | null - status: string - commitHash?: string | null - commitMessage?: string | null - buildLog?: string | null - sparseCheckoutPaths?: string | null - startedAt?: Date | string - finishedAt?: Date | string | null - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - pipelineId: number - Project?: Prisma.ProjectCreateNestedOneWithoutDeploymentsInput -} + branch: string; + envVars?: string | null; + status: string; + commitHash?: string | null; + commitMessage?: string | null; + buildLog?: string | null; + sparseCheckoutPaths?: string | null; + startedAt?: Date | string; + finishedAt?: Date | string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + pipelineId: number; + Project?: Prisma.ProjectCreateNestedOneWithoutDeploymentsInput; +}; export type DeploymentUncheckedCreateInput = { - id?: number - branch: string - env?: string | null - status: string - commitHash?: string | null - commitMessage?: string | null - buildLog?: string | null - sparseCheckoutPaths?: string | null - startedAt?: Date | string - finishedAt?: Date | string | null - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - projectId: number - pipelineId: number -} + id?: number; + branch: string; + envVars?: string | null; + status: string; + commitHash?: string | null; + commitMessage?: string | null; + buildLog?: string | null; + sparseCheckoutPaths?: string | null; + startedAt?: Date | string; + finishedAt?: Date | string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + projectId: number; + pipelineId: number; +}; export type DeploymentUpdateInput = { - branch?: Prisma.StringFieldUpdateOperationsInput | string - env?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.StringFieldUpdateOperationsInput | string - commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - commitMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - sparseCheckoutPaths?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - 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 - Project?: Prisma.ProjectUpdateOneWithoutDeploymentsNestedInput -} + branch?: Prisma.StringFieldUpdateOperationsInput | string; + envVars?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + status?: Prisma.StringFieldUpdateOperationsInput | string; + commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + commitMessage?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + sparseCheckoutPaths?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + finishedAt?: + | Prisma.NullableDateTimeFieldUpdateOperationsInput + | Date + | string + | null; + 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; + Project?: Prisma.ProjectUpdateOneWithoutDeploymentsNestedInput; +}; export type DeploymentUncheckedUpdateInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - branch?: Prisma.StringFieldUpdateOperationsInput | string - env?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.StringFieldUpdateOperationsInput | string - commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - commitMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - sparseCheckoutPaths?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | 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.IntFieldUpdateOperationsInput | number - pipelineId?: Prisma.IntFieldUpdateOperationsInput | number -} + id?: Prisma.IntFieldUpdateOperationsInput | number; + branch?: Prisma.StringFieldUpdateOperationsInput | string; + envVars?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + status?: Prisma.StringFieldUpdateOperationsInput | string; + commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + commitMessage?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + sparseCheckoutPaths?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + finishedAt?: + | Prisma.NullableDateTimeFieldUpdateOperationsInput + | Date + | 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.IntFieldUpdateOperationsInput | number; + pipelineId?: Prisma.IntFieldUpdateOperationsInput | number; +}; export type DeploymentCreateManyInput = { - id?: number - branch: string - env?: string | null - status: string - commitHash?: string | null - commitMessage?: string | null - buildLog?: string | null - sparseCheckoutPaths?: string | null - startedAt?: Date | string - finishedAt?: Date | string | null - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - projectId: number - pipelineId: number -} + id?: number; + branch: string; + envVars?: string | null; + status: string; + commitHash?: string | null; + commitMessage?: string | null; + buildLog?: string | null; + sparseCheckoutPaths?: string | null; + startedAt?: Date | string; + finishedAt?: Date | string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + projectId: number; + pipelineId: number; +}; export type DeploymentUpdateManyMutationInput = { - branch?: Prisma.StringFieldUpdateOperationsInput | string - env?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.StringFieldUpdateOperationsInput | string - commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - commitMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - sparseCheckoutPaths?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - 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 -} + branch?: Prisma.StringFieldUpdateOperationsInput | string; + envVars?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + status?: Prisma.StringFieldUpdateOperationsInput | string; + commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + commitMessage?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + sparseCheckoutPaths?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + finishedAt?: + | Prisma.NullableDateTimeFieldUpdateOperationsInput + | Date + | string + | null; + 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 DeploymentUncheckedUpdateManyInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - branch?: Prisma.StringFieldUpdateOperationsInput | string - env?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.StringFieldUpdateOperationsInput | string - commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - commitMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - sparseCheckoutPaths?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | 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.IntFieldUpdateOperationsInput | number - pipelineId?: Prisma.IntFieldUpdateOperationsInput | number -} + id?: Prisma.IntFieldUpdateOperationsInput | number; + branch?: Prisma.StringFieldUpdateOperationsInput | string; + envVars?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + status?: Prisma.StringFieldUpdateOperationsInput | string; + commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + commitMessage?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + sparseCheckoutPaths?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + finishedAt?: + | Prisma.NullableDateTimeFieldUpdateOperationsInput + | Date + | 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.IntFieldUpdateOperationsInput | number; + pipelineId?: Prisma.IntFieldUpdateOperationsInput | number; +}; export type DeploymentListRelationFilter = { - every?: Prisma.DeploymentWhereInput - some?: Prisma.DeploymentWhereInput - none?: Prisma.DeploymentWhereInput -} + every?: Prisma.DeploymentWhereInput; + some?: Prisma.DeploymentWhereInput; + none?: Prisma.DeploymentWhereInput; +}; export type DeploymentOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} + _count?: Prisma.SortOrder; +}; export type DeploymentCountOrderByAggregateInput = { - id?: Prisma.SortOrder - branch?: Prisma.SortOrder - env?: Prisma.SortOrder - status?: Prisma.SortOrder - commitHash?: Prisma.SortOrder - commitMessage?: Prisma.SortOrder - buildLog?: Prisma.SortOrder - sparseCheckoutPaths?: Prisma.SortOrder - startedAt?: Prisma.SortOrder - finishedAt?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - projectId?: Prisma.SortOrder - pipelineId?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + branch?: Prisma.SortOrder; + envVars?: Prisma.SortOrder; + status?: Prisma.SortOrder; + commitHash?: Prisma.SortOrder; + commitMessage?: Prisma.SortOrder; + buildLog?: Prisma.SortOrder; + sparseCheckoutPaths?: Prisma.SortOrder; + startedAt?: Prisma.SortOrder; + finishedAt?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; + projectId?: Prisma.SortOrder; + pipelineId?: Prisma.SortOrder; +}; export type DeploymentAvgOrderByAggregateInput = { - id?: Prisma.SortOrder - valid?: Prisma.SortOrder - projectId?: Prisma.SortOrder - pipelineId?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + projectId?: Prisma.SortOrder; + pipelineId?: Prisma.SortOrder; +}; export type DeploymentMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - branch?: Prisma.SortOrder - env?: Prisma.SortOrder - status?: Prisma.SortOrder - commitHash?: Prisma.SortOrder - commitMessage?: Prisma.SortOrder - buildLog?: Prisma.SortOrder - sparseCheckoutPaths?: Prisma.SortOrder - startedAt?: Prisma.SortOrder - finishedAt?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - projectId?: Prisma.SortOrder - pipelineId?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + branch?: Prisma.SortOrder; + envVars?: Prisma.SortOrder; + status?: Prisma.SortOrder; + commitHash?: Prisma.SortOrder; + commitMessage?: Prisma.SortOrder; + buildLog?: Prisma.SortOrder; + sparseCheckoutPaths?: Prisma.SortOrder; + startedAt?: Prisma.SortOrder; + finishedAt?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; + projectId?: Prisma.SortOrder; + pipelineId?: Prisma.SortOrder; +}; export type DeploymentMinOrderByAggregateInput = { - id?: Prisma.SortOrder - branch?: Prisma.SortOrder - env?: Prisma.SortOrder - status?: Prisma.SortOrder - commitHash?: Prisma.SortOrder - commitMessage?: Prisma.SortOrder - buildLog?: Prisma.SortOrder - sparseCheckoutPaths?: Prisma.SortOrder - startedAt?: Prisma.SortOrder - finishedAt?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - projectId?: Prisma.SortOrder - pipelineId?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + branch?: Prisma.SortOrder; + envVars?: Prisma.SortOrder; + status?: Prisma.SortOrder; + commitHash?: Prisma.SortOrder; + commitMessage?: Prisma.SortOrder; + buildLog?: Prisma.SortOrder; + sparseCheckoutPaths?: Prisma.SortOrder; + startedAt?: Prisma.SortOrder; + finishedAt?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; + projectId?: Prisma.SortOrder; + pipelineId?: Prisma.SortOrder; +}; export type DeploymentSumOrderByAggregateInput = { - id?: Prisma.SortOrder - valid?: Prisma.SortOrder - projectId?: Prisma.SortOrder - pipelineId?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + projectId?: Prisma.SortOrder; + pipelineId?: Prisma.SortOrder; +}; export type DeploymentCreateNestedManyWithoutProjectInput = { - create?: Prisma.XOR | Prisma.DeploymentCreateWithoutProjectInput[] | Prisma.DeploymentUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.DeploymentCreateOrConnectWithoutProjectInput | Prisma.DeploymentCreateOrConnectWithoutProjectInput[] - createMany?: Prisma.DeploymentCreateManyProjectInputEnvelope - connect?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] -} + create?: + | Prisma.XOR< + Prisma.DeploymentCreateWithoutProjectInput, + Prisma.DeploymentUncheckedCreateWithoutProjectInput + > + | Prisma.DeploymentCreateWithoutProjectInput[] + | Prisma.DeploymentUncheckedCreateWithoutProjectInput[]; + connectOrCreate?: + | Prisma.DeploymentCreateOrConnectWithoutProjectInput + | Prisma.DeploymentCreateOrConnectWithoutProjectInput[]; + createMany?: Prisma.DeploymentCreateManyProjectInputEnvelope; + connect?: + | Prisma.DeploymentWhereUniqueInput + | Prisma.DeploymentWhereUniqueInput[]; +}; export type DeploymentUncheckedCreateNestedManyWithoutProjectInput = { - create?: Prisma.XOR | Prisma.DeploymentCreateWithoutProjectInput[] | Prisma.DeploymentUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.DeploymentCreateOrConnectWithoutProjectInput | Prisma.DeploymentCreateOrConnectWithoutProjectInput[] - createMany?: Prisma.DeploymentCreateManyProjectInputEnvelope - connect?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] -} + create?: + | Prisma.XOR< + Prisma.DeploymentCreateWithoutProjectInput, + Prisma.DeploymentUncheckedCreateWithoutProjectInput + > + | Prisma.DeploymentCreateWithoutProjectInput[] + | Prisma.DeploymentUncheckedCreateWithoutProjectInput[]; + connectOrCreate?: + | Prisma.DeploymentCreateOrConnectWithoutProjectInput + | Prisma.DeploymentCreateOrConnectWithoutProjectInput[]; + createMany?: Prisma.DeploymentCreateManyProjectInputEnvelope; + connect?: + | Prisma.DeploymentWhereUniqueInput + | Prisma.DeploymentWhereUniqueInput[]; +}; export type DeploymentUpdateManyWithoutProjectNestedInput = { - create?: Prisma.XOR | Prisma.DeploymentCreateWithoutProjectInput[] | Prisma.DeploymentUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.DeploymentCreateOrConnectWithoutProjectInput | Prisma.DeploymentCreateOrConnectWithoutProjectInput[] - upsert?: Prisma.DeploymentUpsertWithWhereUniqueWithoutProjectInput | Prisma.DeploymentUpsertWithWhereUniqueWithoutProjectInput[] - createMany?: Prisma.DeploymentCreateManyProjectInputEnvelope - set?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] - disconnect?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] - delete?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] - connect?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] - update?: Prisma.DeploymentUpdateWithWhereUniqueWithoutProjectInput | Prisma.DeploymentUpdateWithWhereUniqueWithoutProjectInput[] - updateMany?: Prisma.DeploymentUpdateManyWithWhereWithoutProjectInput | Prisma.DeploymentUpdateManyWithWhereWithoutProjectInput[] - deleteMany?: Prisma.DeploymentScalarWhereInput | Prisma.DeploymentScalarWhereInput[] -} + create?: + | Prisma.XOR< + Prisma.DeploymentCreateWithoutProjectInput, + Prisma.DeploymentUncheckedCreateWithoutProjectInput + > + | Prisma.DeploymentCreateWithoutProjectInput[] + | Prisma.DeploymentUncheckedCreateWithoutProjectInput[]; + connectOrCreate?: + | Prisma.DeploymentCreateOrConnectWithoutProjectInput + | Prisma.DeploymentCreateOrConnectWithoutProjectInput[]; + upsert?: + | Prisma.DeploymentUpsertWithWhereUniqueWithoutProjectInput + | Prisma.DeploymentUpsertWithWhereUniqueWithoutProjectInput[]; + createMany?: Prisma.DeploymentCreateManyProjectInputEnvelope; + set?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[]; + disconnect?: + | Prisma.DeploymentWhereUniqueInput + | Prisma.DeploymentWhereUniqueInput[]; + delete?: + | Prisma.DeploymentWhereUniqueInput + | Prisma.DeploymentWhereUniqueInput[]; + connect?: + | Prisma.DeploymentWhereUniqueInput + | Prisma.DeploymentWhereUniqueInput[]; + update?: + | Prisma.DeploymentUpdateWithWhereUniqueWithoutProjectInput + | Prisma.DeploymentUpdateWithWhereUniqueWithoutProjectInput[]; + updateMany?: + | Prisma.DeploymentUpdateManyWithWhereWithoutProjectInput + | Prisma.DeploymentUpdateManyWithWhereWithoutProjectInput[]; + deleteMany?: + | Prisma.DeploymentScalarWhereInput + | Prisma.DeploymentScalarWhereInput[]; +}; export type DeploymentUncheckedUpdateManyWithoutProjectNestedInput = { - create?: Prisma.XOR | Prisma.DeploymentCreateWithoutProjectInput[] | Prisma.DeploymentUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.DeploymentCreateOrConnectWithoutProjectInput | Prisma.DeploymentCreateOrConnectWithoutProjectInput[] - upsert?: Prisma.DeploymentUpsertWithWhereUniqueWithoutProjectInput | Prisma.DeploymentUpsertWithWhereUniqueWithoutProjectInput[] - createMany?: Prisma.DeploymentCreateManyProjectInputEnvelope - set?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] - disconnect?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] - delete?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] - connect?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[] - update?: Prisma.DeploymentUpdateWithWhereUniqueWithoutProjectInput | Prisma.DeploymentUpdateWithWhereUniqueWithoutProjectInput[] - updateMany?: Prisma.DeploymentUpdateManyWithWhereWithoutProjectInput | Prisma.DeploymentUpdateManyWithWhereWithoutProjectInput[] - deleteMany?: Prisma.DeploymentScalarWhereInput | Prisma.DeploymentScalarWhereInput[] -} + create?: + | Prisma.XOR< + Prisma.DeploymentCreateWithoutProjectInput, + Prisma.DeploymentUncheckedCreateWithoutProjectInput + > + | Prisma.DeploymentCreateWithoutProjectInput[] + | Prisma.DeploymentUncheckedCreateWithoutProjectInput[]; + connectOrCreate?: + | Prisma.DeploymentCreateOrConnectWithoutProjectInput + | Prisma.DeploymentCreateOrConnectWithoutProjectInput[]; + upsert?: + | Prisma.DeploymentUpsertWithWhereUniqueWithoutProjectInput + | Prisma.DeploymentUpsertWithWhereUniqueWithoutProjectInput[]; + createMany?: Prisma.DeploymentCreateManyProjectInputEnvelope; + set?: Prisma.DeploymentWhereUniqueInput | Prisma.DeploymentWhereUniqueInput[]; + disconnect?: + | Prisma.DeploymentWhereUniqueInput + | Prisma.DeploymentWhereUniqueInput[]; + delete?: + | Prisma.DeploymentWhereUniqueInput + | Prisma.DeploymentWhereUniqueInput[]; + connect?: + | Prisma.DeploymentWhereUniqueInput + | Prisma.DeploymentWhereUniqueInput[]; + update?: + | Prisma.DeploymentUpdateWithWhereUniqueWithoutProjectInput + | Prisma.DeploymentUpdateWithWhereUniqueWithoutProjectInput[]; + updateMany?: + | Prisma.DeploymentUpdateManyWithWhereWithoutProjectInput + | Prisma.DeploymentUpdateManyWithWhereWithoutProjectInput[]; + deleteMany?: + | Prisma.DeploymentScalarWhereInput + | Prisma.DeploymentScalarWhereInput[]; +}; export type NullableDateTimeFieldUpdateOperationsInput = { - set?: Date | string | null -} + set?: Date | string | null; +}; export type DeploymentCreateWithoutProjectInput = { - branch: string - env?: string | null - status: string - commitHash?: string | null - commitMessage?: string | null - buildLog?: string | null - sparseCheckoutPaths?: string | null - startedAt?: Date | string - finishedAt?: Date | string | null - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - pipelineId: number -} + branch: string; + envVars?: string | null; + status: string; + commitHash?: string | null; + commitMessage?: string | null; + buildLog?: string | null; + sparseCheckoutPaths?: string | null; + startedAt?: Date | string; + finishedAt?: Date | string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + pipelineId: number; +}; export type DeploymentUncheckedCreateWithoutProjectInput = { - id?: number - branch: string - env?: string | null - status: string - commitHash?: string | null - commitMessage?: string | null - buildLog?: string | null - sparseCheckoutPaths?: string | null - startedAt?: Date | string - finishedAt?: Date | string | null - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - pipelineId: number -} + id?: number; + branch: string; + envVars?: string | null; + status: string; + commitHash?: string | null; + commitMessage?: string | null; + buildLog?: string | null; + sparseCheckoutPaths?: string | null; + startedAt?: Date | string; + finishedAt?: Date | string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + pipelineId: number; +}; export type DeploymentCreateOrConnectWithoutProjectInput = { - where: Prisma.DeploymentWhereUniqueInput - create: Prisma.XOR -} + where: Prisma.DeploymentWhereUniqueInput; + create: Prisma.XOR< + Prisma.DeploymentCreateWithoutProjectInput, + Prisma.DeploymentUncheckedCreateWithoutProjectInput + >; +}; export type DeploymentCreateManyProjectInputEnvelope = { - data: Prisma.DeploymentCreateManyProjectInput | Prisma.DeploymentCreateManyProjectInput[] -} + data: + | Prisma.DeploymentCreateManyProjectInput + | Prisma.DeploymentCreateManyProjectInput[]; +}; export type DeploymentUpsertWithWhereUniqueWithoutProjectInput = { - where: Prisma.DeploymentWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} + where: Prisma.DeploymentWhereUniqueInput; + update: Prisma.XOR< + Prisma.DeploymentUpdateWithoutProjectInput, + Prisma.DeploymentUncheckedUpdateWithoutProjectInput + >; + create: Prisma.XOR< + Prisma.DeploymentCreateWithoutProjectInput, + Prisma.DeploymentUncheckedCreateWithoutProjectInput + >; +}; export type DeploymentUpdateWithWhereUniqueWithoutProjectInput = { - where: Prisma.DeploymentWhereUniqueInput - data: Prisma.XOR -} + where: Prisma.DeploymentWhereUniqueInput; + data: Prisma.XOR< + Prisma.DeploymentUpdateWithoutProjectInput, + Prisma.DeploymentUncheckedUpdateWithoutProjectInput + >; +}; export type DeploymentUpdateManyWithWhereWithoutProjectInput = { - where: Prisma.DeploymentScalarWhereInput - data: Prisma.XOR -} + where: Prisma.DeploymentScalarWhereInput; + data: Prisma.XOR< + Prisma.DeploymentUpdateManyMutationInput, + Prisma.DeploymentUncheckedUpdateManyWithoutProjectInput + >; +}; export type DeploymentScalarWhereInput = { - AND?: Prisma.DeploymentScalarWhereInput | Prisma.DeploymentScalarWhereInput[] - OR?: Prisma.DeploymentScalarWhereInput[] - NOT?: Prisma.DeploymentScalarWhereInput | Prisma.DeploymentScalarWhereInput[] - id?: Prisma.IntFilter<"Deployment"> | number - branch?: Prisma.StringFilter<"Deployment"> | string - env?: Prisma.StringNullableFilter<"Deployment"> | string | null - status?: Prisma.StringFilter<"Deployment"> | string - commitHash?: Prisma.StringNullableFilter<"Deployment"> | string | null - commitMessage?: Prisma.StringNullableFilter<"Deployment"> | string | null - buildLog?: Prisma.StringNullableFilter<"Deployment"> | string | null - sparseCheckoutPaths?: Prisma.StringNullableFilter<"Deployment"> | string | null - startedAt?: Prisma.DateTimeFilter<"Deployment"> | Date | string - finishedAt?: Prisma.DateTimeNullableFilter<"Deployment"> | Date | string | null - valid?: Prisma.IntFilter<"Deployment"> | number - createdAt?: Prisma.DateTimeFilter<"Deployment"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Deployment"> | Date | string - createdBy?: Prisma.StringFilter<"Deployment"> | string - updatedBy?: Prisma.StringFilter<"Deployment"> | string - projectId?: Prisma.IntFilter<"Deployment"> | number - pipelineId?: Prisma.IntFilter<"Deployment"> | number -} + AND?: Prisma.DeploymentScalarWhereInput | Prisma.DeploymentScalarWhereInput[]; + OR?: Prisma.DeploymentScalarWhereInput[]; + NOT?: Prisma.DeploymentScalarWhereInput | Prisma.DeploymentScalarWhereInput[]; + id?: Prisma.IntFilter<'Deployment'> | number; + branch?: Prisma.StringFilter<'Deployment'> | string; + envVars?: Prisma.StringNullableFilter<'Deployment'> | string | null; + status?: Prisma.StringFilter<'Deployment'> | string; + commitHash?: Prisma.StringNullableFilter<'Deployment'> | string | null; + commitMessage?: Prisma.StringNullableFilter<'Deployment'> | string | null; + buildLog?: Prisma.StringNullableFilter<'Deployment'> | string | null; + sparseCheckoutPaths?: + | Prisma.StringNullableFilter<'Deployment'> + | string + | null; + startedAt?: Prisma.DateTimeFilter<'Deployment'> | Date | string; + finishedAt?: + | Prisma.DateTimeNullableFilter<'Deployment'> + | Date + | string + | null; + valid?: Prisma.IntFilter<'Deployment'> | number; + createdAt?: Prisma.DateTimeFilter<'Deployment'> | Date | string; + updatedAt?: Prisma.DateTimeFilter<'Deployment'> | Date | string; + createdBy?: Prisma.StringFilter<'Deployment'> | string; + updatedBy?: Prisma.StringFilter<'Deployment'> | string; + projectId?: Prisma.IntFilter<'Deployment'> | number; + pipelineId?: Prisma.IntFilter<'Deployment'> | number; +}; export type DeploymentCreateManyProjectInput = { - id?: number - branch: string - env?: string | null - status: string - commitHash?: string | null - commitMessage?: string | null - buildLog?: string | null - sparseCheckoutPaths?: string | null - startedAt?: Date | string - finishedAt?: Date | string | null - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - pipelineId: number -} + id?: number; + branch: string; + envVars?: string | null; + status: string; + commitHash?: string | null; + commitMessage?: string | null; + buildLog?: string | null; + sparseCheckoutPaths?: string | null; + startedAt?: Date | string; + finishedAt?: Date | string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + pipelineId: number; +}; export type DeploymentUpdateWithoutProjectInput = { - branch?: Prisma.StringFieldUpdateOperationsInput | string - env?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.StringFieldUpdateOperationsInput | string - commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - commitMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - sparseCheckoutPaths?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - 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 -} + branch?: Prisma.StringFieldUpdateOperationsInput | string; + envVars?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + status?: Prisma.StringFieldUpdateOperationsInput | string; + commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + commitMessage?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + sparseCheckoutPaths?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + finishedAt?: + | Prisma.NullableDateTimeFieldUpdateOperationsInput + | Date + | string + | null; + 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 DeploymentUncheckedUpdateWithoutProjectInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - branch?: Prisma.StringFieldUpdateOperationsInput | string - env?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.StringFieldUpdateOperationsInput | string - commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - commitMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - sparseCheckoutPaths?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - 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 -} + id?: Prisma.IntFieldUpdateOperationsInput | number; + branch?: Prisma.StringFieldUpdateOperationsInput | string; + envVars?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + status?: Prisma.StringFieldUpdateOperationsInput | string; + commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + commitMessage?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + sparseCheckoutPaths?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + finishedAt?: + | Prisma.NullableDateTimeFieldUpdateOperationsInput + | Date + | string + | null; + 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 DeploymentUncheckedUpdateManyWithoutProjectInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - branch?: Prisma.StringFieldUpdateOperationsInput | string - env?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - status?: Prisma.StringFieldUpdateOperationsInput | string - commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - commitMessage?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - sparseCheckoutPaths?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - finishedAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - 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 -} + id?: Prisma.IntFieldUpdateOperationsInput | number; + branch?: Prisma.StringFieldUpdateOperationsInput | string; + envVars?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + status?: Prisma.StringFieldUpdateOperationsInput | string; + commitHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + commitMessage?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + buildLog?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + sparseCheckoutPaths?: + | Prisma.NullableStringFieldUpdateOperationsInput + | string + | null; + startedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + finishedAt?: + | Prisma.NullableDateTimeFieldUpdateOperationsInput + | Date + | string + | null; + 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 DeploymentSelect< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean; + branch?: boolean; + envVars?: boolean; + status?: boolean; + commitHash?: boolean; + commitMessage?: boolean; + buildLog?: boolean; + sparseCheckoutPaths?: boolean; + startedAt?: boolean; + finishedAt?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + projectId?: boolean; + pipelineId?: boolean; + Project?: boolean | Prisma.Deployment$ProjectArgs; + }, + ExtArgs['result']['deployment'] +>; +export type DeploymentSelectCreateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean; + branch?: boolean; + envVars?: boolean; + status?: boolean; + commitHash?: boolean; + commitMessage?: boolean; + buildLog?: boolean; + sparseCheckoutPaths?: boolean; + startedAt?: boolean; + finishedAt?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + projectId?: boolean; + pipelineId?: boolean; + Project?: boolean | Prisma.Deployment$ProjectArgs; + }, + ExtArgs['result']['deployment'] +>; -export type DeploymentSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - branch?: boolean - env?: boolean - status?: boolean - commitHash?: boolean - commitMessage?: boolean - buildLog?: boolean - sparseCheckoutPaths?: boolean - startedAt?: boolean - finishedAt?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean - projectId?: boolean - pipelineId?: boolean - Project?: boolean | Prisma.Deployment$ProjectArgs -}, ExtArgs["result"]["deployment"]> - -export type DeploymentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - branch?: boolean - env?: boolean - status?: boolean - commitHash?: boolean - commitMessage?: boolean - buildLog?: boolean - sparseCheckoutPaths?: boolean - startedAt?: boolean - finishedAt?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean - projectId?: boolean - pipelineId?: boolean - Project?: boolean | Prisma.Deployment$ProjectArgs -}, ExtArgs["result"]["deployment"]> - -export type DeploymentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - branch?: boolean - env?: boolean - status?: boolean - commitHash?: boolean - commitMessage?: boolean - buildLog?: boolean - sparseCheckoutPaths?: boolean - startedAt?: boolean - finishedAt?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean - projectId?: boolean - pipelineId?: boolean - Project?: boolean | Prisma.Deployment$ProjectArgs -}, ExtArgs["result"]["deployment"]> +export type DeploymentSelectUpdateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean; + branch?: boolean; + envVars?: boolean; + status?: boolean; + commitHash?: boolean; + commitMessage?: boolean; + buildLog?: boolean; + sparseCheckoutPaths?: boolean; + startedAt?: boolean; + finishedAt?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + projectId?: boolean; + pipelineId?: boolean; + Project?: boolean | Prisma.Deployment$ProjectArgs; + }, + ExtArgs['result']['deployment'] +>; export type DeploymentSelectScalar = { - id?: boolean - branch?: boolean - env?: boolean - status?: boolean - commitHash?: boolean - commitMessage?: boolean - buildLog?: boolean - sparseCheckoutPaths?: boolean - startedAt?: boolean - finishedAt?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean - projectId?: boolean - pipelineId?: boolean -} + id?: boolean; + branch?: boolean; + envVars?: boolean; + status?: boolean; + commitHash?: boolean; + commitMessage?: boolean; + buildLog?: boolean; + sparseCheckoutPaths?: boolean; + startedAt?: boolean; + finishedAt?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + projectId?: boolean; + pipelineId?: boolean; +}; -export type DeploymentOmit = runtime.Types.Extensions.GetOmit<"id" | "branch" | "env" | "status" | "commitHash" | "commitMessage" | "buildLog" | "sparseCheckoutPaths" | "startedAt" | "finishedAt" | "valid" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "projectId" | "pipelineId", ExtArgs["result"]["deployment"]> -export type DeploymentInclude = { - Project?: boolean | Prisma.Deployment$ProjectArgs -} -export type DeploymentIncludeCreateManyAndReturn = { - Project?: boolean | Prisma.Deployment$ProjectArgs -} -export type DeploymentIncludeUpdateManyAndReturn = { - Project?: boolean | Prisma.Deployment$ProjectArgs -} +export type DeploymentOmit< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'branch' + | 'envVars' + | 'status' + | 'commitHash' + | 'commitMessage' + | 'buildLog' + | 'sparseCheckoutPaths' + | 'startedAt' + | 'finishedAt' + | 'valid' + | 'createdAt' + | 'updatedAt' + | 'createdBy' + | 'updatedBy' + | 'projectId' + | 'pipelineId', + ExtArgs['result']['deployment'] +>; +export type DeploymentInclude< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + Project?: boolean | Prisma.Deployment$ProjectArgs; +}; +export type DeploymentIncludeCreateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + Project?: boolean | Prisma.Deployment$ProjectArgs; +}; +export type DeploymentIncludeUpdateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + Project?: boolean | Prisma.Deployment$ProjectArgs; +}; -export type $DeploymentPayload = { - name: "Deployment" +export type $DeploymentPayload< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Deployment'; objects: { - Project: Prisma.$ProjectPayload | null - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: number - branch: string - env: string | null - status: string - commitHash: string | null - commitMessage: string | null - buildLog: string | null - sparseCheckoutPaths: string | null - startedAt: Date - finishedAt: Date | null - valid: number - createdAt: Date - updatedAt: Date - createdBy: string - updatedBy: string - projectId: number - pipelineId: number - }, ExtArgs["result"]["deployment"]> - composites: {} -} + Project: Prisma.$ProjectPayload | null; + }; + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: number; + branch: string; + envVars: string | null; + status: string; + commitHash: string | null; + commitMessage: string | null; + buildLog: string | null; + sparseCheckoutPaths: string | null; + startedAt: Date; + finishedAt: Date | null; + valid: number; + createdAt: Date; + updatedAt: Date; + createdBy: string; + updatedBy: string; + projectId: number; + pipelineId: number; + }, + ExtArgs['result']['deployment'] + >; + composites: {}; +}; -export type DeploymentGetPayload = runtime.Types.Result.GetResult +export type DeploymentGetPayload< + S extends boolean | null | undefined | DeploymentDefaultArgs, +> = runtime.Types.Result.GetResult; -export type DeploymentCountArgs = - Omit & { - select?: DeploymentCountAggregateInputType | true - } +export type DeploymentCountArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: DeploymentCountAggregateInputType | true; +}; -export interface DeploymentDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Deployment'], meta: { name: 'Deployment' } } +export interface DeploymentDelegate< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['Deployment']; + meta: { name: 'Deployment' }; + }; /** * Find zero or one Deployment that matches the filter. * @param {DeploymentFindUniqueArgs} args - Arguments to find a Deployment @@ -989,7 +1261,19 @@ export interface DeploymentDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__DeploymentClient< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find one Deployment that matches the filter or throw an error with `error.code='P2025'` @@ -1003,7 +1287,19 @@ export interface DeploymentDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__DeploymentClient< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first Deployment that matches the filter. @@ -1018,7 +1314,19 @@ export interface DeploymentDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__DeploymentClient< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first Deployment that matches the filter or @@ -1034,7 +1342,19 @@ export interface DeploymentDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__DeploymentClient< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find zero or more Deployments that matches the filter. @@ -1044,15 +1364,24 @@ export interface DeploymentDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'findMany', + GlobalOmitOptions + > + >; /** * Create a Deployment. @@ -1064,9 +1393,21 @@ export interface DeploymentDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__DeploymentClient< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Create many Deployments. @@ -1078,9 +1419,11 @@ export interface DeploymentDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Create many Deployments and returns the data saved in the database. @@ -1092,7 +1435,7 @@ export interface DeploymentDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + >; /** * Delete a Deployment. @@ -1116,9 +1468,21 @@ export interface DeploymentDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__DeploymentClient< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Update one Deployment. @@ -1133,9 +1497,21 @@ export interface DeploymentDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__DeploymentClient< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Delete zero or more Deployments. @@ -1147,9 +1523,11 @@ export interface DeploymentDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Deployments. @@ -1166,9 +1544,11 @@ export interface DeploymentDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Deployments and returns the data updated in the database. @@ -1183,7 +1563,7 @@ export interface DeploymentDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + >; /** * Create or update one Deployment. @@ -1217,8 +1606,19 @@ export interface DeploymentDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__DeploymentClient< + runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Count the number of Deployments. @@ -1232,7 +1632,7 @@ export interface DeploymentDelegate( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -1241,7 +1641,7 @@ export interface DeploymentDelegate : number - > + >; /** * Allows you to perform aggregations operations on a Deployment. @@ -1266,8 +1666,10 @@ export interface DeploymentDelegate(args: Prisma.Subset): Prisma.PrismaPromise> + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise>; /** * Group by Deployment. @@ -1285,8 +1687,8 @@ export interface DeploymentDelegate>>, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, 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 + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: 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 ? GetDeploymentGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Deployment model - */ -readonly fields: DeploymentFieldRefs; + : 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 + ? GetDeploymentGroupByPayload + : Prisma.PrismaPromise; + /** + * Fields of the Deployment model + */ + readonly fields: DeploymentFieldRefs; } /** @@ -1357,481 +1766,589 @@ readonly fields: DeploymentFieldRefs; * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ -export interface Prisma__DeploymentClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - Project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> +export interface Prisma__DeploymentClient< + T, + Null = never, + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise'; + Project = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + 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 + 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 + 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 + finally( + onfinally?: (() => void) | undefined | null, + ): runtime.Types.Utils.JsPromise; } - - - /** * Fields of the Deployment model */ export interface DeploymentFieldRefs { - readonly id: Prisma.FieldRef<"Deployment", 'Int'> - readonly branch: Prisma.FieldRef<"Deployment", 'String'> - readonly env: Prisma.FieldRef<"Deployment", 'String'> - readonly status: Prisma.FieldRef<"Deployment", 'String'> - readonly commitHash: Prisma.FieldRef<"Deployment", 'String'> - readonly commitMessage: Prisma.FieldRef<"Deployment", 'String'> - readonly buildLog: Prisma.FieldRef<"Deployment", 'String'> - readonly sparseCheckoutPaths: Prisma.FieldRef<"Deployment", 'String'> - readonly startedAt: Prisma.FieldRef<"Deployment", 'DateTime'> - readonly finishedAt: Prisma.FieldRef<"Deployment", 'DateTime'> - readonly valid: Prisma.FieldRef<"Deployment", 'Int'> - readonly createdAt: Prisma.FieldRef<"Deployment", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Deployment", 'DateTime'> - readonly createdBy: Prisma.FieldRef<"Deployment", 'String'> - readonly updatedBy: Prisma.FieldRef<"Deployment", 'String'> - readonly projectId: Prisma.FieldRef<"Deployment", 'Int'> - readonly pipelineId: Prisma.FieldRef<"Deployment", 'Int'> + readonly id: Prisma.FieldRef<'Deployment', 'Int'>; + readonly branch: Prisma.FieldRef<'Deployment', 'String'>; + readonly envVars: Prisma.FieldRef<'Deployment', 'String'>; + readonly status: Prisma.FieldRef<'Deployment', 'String'>; + readonly commitHash: Prisma.FieldRef<'Deployment', 'String'>; + readonly commitMessage: Prisma.FieldRef<'Deployment', 'String'>; + readonly buildLog: Prisma.FieldRef<'Deployment', 'String'>; + readonly sparseCheckoutPaths: Prisma.FieldRef<'Deployment', 'String'>; + readonly startedAt: Prisma.FieldRef<'Deployment', 'DateTime'>; + readonly finishedAt: Prisma.FieldRef<'Deployment', 'DateTime'>; + readonly valid: Prisma.FieldRef<'Deployment', 'Int'>; + readonly createdAt: Prisma.FieldRef<'Deployment', 'DateTime'>; + readonly updatedAt: Prisma.FieldRef<'Deployment', 'DateTime'>; + readonly createdBy: Prisma.FieldRef<'Deployment', 'String'>; + readonly updatedBy: Prisma.FieldRef<'Deployment', 'String'>; + readonly projectId: Prisma.FieldRef<'Deployment', 'Int'>; + readonly pipelineId: Prisma.FieldRef<'Deployment', 'Int'>; } - // Custom InputTypes /** * Deployment findUnique */ -export type DeploymentFindUniqueArgs = { +export type DeploymentFindUniqueArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null + include?: Prisma.DeploymentInclude | null; /** * Filter, which Deployment to fetch. */ - where: Prisma.DeploymentWhereUniqueInput -} + where: Prisma.DeploymentWhereUniqueInput; +}; /** * Deployment findUniqueOrThrow */ -export type DeploymentFindUniqueOrThrowArgs = { +export type DeploymentFindUniqueOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null + include?: Prisma.DeploymentInclude | null; /** * Filter, which Deployment to fetch. */ - where: Prisma.DeploymentWhereUniqueInput -} + where: Prisma.DeploymentWhereUniqueInput; +}; /** * Deployment findFirst */ -export type DeploymentFindFirstArgs = { +export type DeploymentFindFirstArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null + include?: Prisma.DeploymentInclude | null; /** * Filter, which Deployment to fetch. */ - where?: Prisma.DeploymentWhereInput + where?: Prisma.DeploymentWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Deployments to fetch. */ - orderBy?: Prisma.DeploymentOrderByWithRelationInput | Prisma.DeploymentOrderByWithRelationInput[] + orderBy?: + | Prisma.DeploymentOrderByWithRelationInput + | Prisma.DeploymentOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the position for searching for Deployments. */ - cursor?: Prisma.DeploymentWhereUniqueInput + cursor?: Prisma.DeploymentWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Deployments from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Deployments. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * + * * Filter by unique combinations of Deployments. */ - distinct?: Prisma.DeploymentScalarFieldEnum | Prisma.DeploymentScalarFieldEnum[] -} + distinct?: + | Prisma.DeploymentScalarFieldEnum + | Prisma.DeploymentScalarFieldEnum[]; +}; /** * Deployment findFirstOrThrow */ -export type DeploymentFindFirstOrThrowArgs = { +export type DeploymentFindFirstOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null + include?: Prisma.DeploymentInclude | null; /** * Filter, which Deployment to fetch. */ - where?: Prisma.DeploymentWhereInput + where?: Prisma.DeploymentWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Deployments to fetch. */ - orderBy?: Prisma.DeploymentOrderByWithRelationInput | Prisma.DeploymentOrderByWithRelationInput[] + orderBy?: + | Prisma.DeploymentOrderByWithRelationInput + | Prisma.DeploymentOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the position for searching for Deployments. */ - cursor?: Prisma.DeploymentWhereUniqueInput + cursor?: Prisma.DeploymentWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Deployments from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Deployments. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * + * * Filter by unique combinations of Deployments. */ - distinct?: Prisma.DeploymentScalarFieldEnum | Prisma.DeploymentScalarFieldEnum[] -} + distinct?: + | Prisma.DeploymentScalarFieldEnum + | Prisma.DeploymentScalarFieldEnum[]; +}; /** * Deployment findMany */ -export type DeploymentFindManyArgs = { +export type DeploymentFindManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null + include?: Prisma.DeploymentInclude | null; /** * Filter, which Deployments to fetch. */ - where?: Prisma.DeploymentWhereInput + where?: Prisma.DeploymentWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Deployments to fetch. */ - orderBy?: Prisma.DeploymentOrderByWithRelationInput | Prisma.DeploymentOrderByWithRelationInput[] + orderBy?: + | Prisma.DeploymentOrderByWithRelationInput + | Prisma.DeploymentOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the position for listing Deployments. */ - cursor?: Prisma.DeploymentWhereUniqueInput + cursor?: Prisma.DeploymentWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Deployments from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Deployments. */ - skip?: number - distinct?: Prisma.DeploymentScalarFieldEnum | Prisma.DeploymentScalarFieldEnum[] -} + skip?: number; + distinct?: + | Prisma.DeploymentScalarFieldEnum + | Prisma.DeploymentScalarFieldEnum[]; +}; /** * Deployment create */ -export type DeploymentCreateArgs = { +export type DeploymentCreateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null + include?: Prisma.DeploymentInclude | null; /** * The data needed to create a Deployment. */ - data: Prisma.XOR -} + data: Prisma.XOR< + Prisma.DeploymentCreateInput, + Prisma.DeploymentUncheckedCreateInput + >; +}; /** * Deployment createMany */ -export type DeploymentCreateManyArgs = { +export type DeploymentCreateManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * The data used to create many Deployments. */ - data: Prisma.DeploymentCreateManyInput | Prisma.DeploymentCreateManyInput[] -} + data: Prisma.DeploymentCreateManyInput | Prisma.DeploymentCreateManyInput[]; +}; /** * Deployment createManyAndReturn */ -export type DeploymentCreateManyAndReturnArgs = { +export type DeploymentCreateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelectCreateManyAndReturn | null + select?: Prisma.DeploymentSelectCreateManyAndReturn | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * The data used to create many Deployments. */ - data: Prisma.DeploymentCreateManyInput | Prisma.DeploymentCreateManyInput[] + data: Prisma.DeploymentCreateManyInput | Prisma.DeploymentCreateManyInput[]; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentIncludeCreateManyAndReturn | null -} + include?: Prisma.DeploymentIncludeCreateManyAndReturn | null; +}; /** * Deployment update */ -export type DeploymentUpdateArgs = { +export type DeploymentUpdateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null + include?: Prisma.DeploymentInclude | null; /** * The data needed to update a Deployment. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.DeploymentUpdateInput, + Prisma.DeploymentUncheckedUpdateInput + >; /** * Choose, which Deployment to update. */ - where: Prisma.DeploymentWhereUniqueInput -} + where: Prisma.DeploymentWhereUniqueInput; +}; /** * Deployment updateMany */ -export type DeploymentUpdateManyArgs = { +export type DeploymentUpdateManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * The data used to update Deployments. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.DeploymentUpdateManyMutationInput, + Prisma.DeploymentUncheckedUpdateManyInput + >; /** * Filter which Deployments to update */ - where?: Prisma.DeploymentWhereInput + where?: Prisma.DeploymentWhereInput; /** * Limit how many Deployments to update. */ - limit?: number -} + limit?: number; +}; /** * Deployment updateManyAndReturn */ -export type DeploymentUpdateManyAndReturnArgs = { +export type DeploymentUpdateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelectUpdateManyAndReturn | null + select?: Prisma.DeploymentSelectUpdateManyAndReturn | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * The data used to update Deployments. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.DeploymentUpdateManyMutationInput, + Prisma.DeploymentUncheckedUpdateManyInput + >; /** * Filter which Deployments to update */ - where?: Prisma.DeploymentWhereInput + where?: Prisma.DeploymentWhereInput; /** * Limit how many Deployments to update. */ - limit?: number + limit?: number; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentIncludeUpdateManyAndReturn | null -} + include?: Prisma.DeploymentIncludeUpdateManyAndReturn | null; +}; /** * Deployment upsert */ -export type DeploymentUpsertArgs = { +export type DeploymentUpsertArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null + include?: Prisma.DeploymentInclude | null; /** * The filter to search for the Deployment to update in case it exists. */ - where: Prisma.DeploymentWhereUniqueInput + where: Prisma.DeploymentWhereUniqueInput; /** * In case the Deployment found by the `where` argument doesn't exist, create a new Deployment with this data. */ - create: Prisma.XOR + create: Prisma.XOR< + Prisma.DeploymentCreateInput, + Prisma.DeploymentUncheckedCreateInput + >; /** * In case the Deployment was found with the provided `where` argument, update it with this data. */ - update: Prisma.XOR -} + update: Prisma.XOR< + Prisma.DeploymentUpdateInput, + Prisma.DeploymentUncheckedUpdateInput + >; +}; /** * Deployment delete */ -export type DeploymentDeleteArgs = { +export type DeploymentDeleteArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null + include?: Prisma.DeploymentInclude | null; /** * Filter which Deployment to delete. */ - where: Prisma.DeploymentWhereUniqueInput -} + where: Prisma.DeploymentWhereUniqueInput; +}; /** * Deployment deleteMany */ -export type DeploymentDeleteManyArgs = { +export type DeploymentDeleteManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which Deployments to delete */ - where?: Prisma.DeploymentWhereInput + where?: Prisma.DeploymentWhereInput; /** * Limit how many Deployments to delete. */ - limit?: number -} + limit?: number; +}; /** * Deployment.Project */ -export type Deployment$ProjectArgs = { +export type Deployment$ProjectArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null - where?: Prisma.ProjectWhereInput -} + include?: Prisma.ProjectInclude | null; + where?: Prisma.ProjectWhereInput; +}; /** * Deployment without action */ -export type DeploymentDefaultArgs = { +export type DeploymentDefaultArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null -} + include?: Prisma.DeploymentInclude | null; +}; diff --git a/apps/server/generated/models/Pipeline.ts b/apps/server/generated/models/Pipeline.ts index 9ae3e16..c73f3eb 100644 --- a/apps/server/generated/models/Pipeline.ts +++ b/apps/server/generated/models/Pipeline.ts @@ -1,835 +1,1016 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @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" +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 +export type PipelineModel = + runtime.Types.Result.DefaultSelection; export type AggregatePipeline = { - _count: PipelineCountAggregateOutputType | null - _avg: PipelineAvgAggregateOutputType | null - _sum: PipelineSumAggregateOutputType | null - _min: PipelineMinAggregateOutputType | null - _max: PipelineMaxAggregateOutputType | null -} + _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 -} + id: number | null; + valid: number | null; + projectId: number | null; +}; export type PipelineSumAggregateOutputType = { - id: number | null - valid: number | null - projectId: number | null -} + 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 -} + 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 -} + 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 -} - + 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 -} + id?: true; + valid?: true; + projectId?: true; +}; export type PipelineSumAggregateInputType = { - id?: true - valid?: true - projectId?: true -} + 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 -} + 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 -} + 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 -} + id?: true; + name?: true; + description?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; + projectId?: true; + _all?: true; +}; -export type PipelineAggregateArgs = { +export type PipelineAggregateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which Pipeline to aggregate. */ - where?: Prisma.PipelineWhereInput + 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[] + 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 + 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 + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Pipelines. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Count returned Pipelines - **/ - _count?: true | PipelineCountAggregateInputType + **/ + _count?: true | PipelineCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to average - **/ - _avg?: PipelineAvgAggregateInputType + **/ + _avg?: PipelineAvgAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to sum - **/ - _sum?: PipelineSumAggregateInputType + **/ + _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 + **/ + _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 -} + **/ + _max?: PipelineMaxAggregateInputType; +}; export type GetPipelineAggregateType = { - [P in keyof T & keyof AggregatePipeline]: P extends '_count' | 'count' + [P in keyof T & keyof AggregatePipeline]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType - : Prisma.GetScalarType -} + : Prisma.GetScalarType; +}; - - - -export type PipelineGroupByArgs = { - 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 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 -} + 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 = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof PipelineGroupByOutputType))]: P extends '_count' +type GetPipelineGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof PipelineGroupByOutputType]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType - : Prisma.GetScalarType + : Prisma.GetScalarType; } > - > - - + >; 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 | null - steps?: Prisma.StepListRelationFilter -} + 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 -} + 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 | null - steps?: Prisma.StepListRelationFilter -}, "id"> +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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + every?: Prisma.PipelineWhereInput; + some?: Prisma.PipelineWhereInput; + none?: Prisma.PipelineWhereInput; +}; export type PipelineOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} + _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 -} + 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 -} + 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 -} + 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 -} + 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 -} + id?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + projectId?: Prisma.SortOrder; +}; export type PipelineScalarRelationFilter = { - is?: Prisma.PipelineWhereInput - isNot?: Prisma.PipelineWhereInput -} + is?: Prisma.PipelineWhereInput; + isNot?: Prisma.PipelineWhereInput; +}; export type PipelineCreateNestedManyWithoutProjectInput = { - create?: Prisma.XOR | Prisma.PipelineCreateWithoutProjectInput[] | Prisma.PipelineUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.PipelineCreateOrConnectWithoutProjectInput | Prisma.PipelineCreateOrConnectWithoutProjectInput[] - createMany?: Prisma.PipelineCreateManyProjectInputEnvelope - connect?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[] -} + 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[] - connectOrCreate?: Prisma.PipelineCreateOrConnectWithoutProjectInput | Prisma.PipelineCreateOrConnectWithoutProjectInput[] - createMany?: Prisma.PipelineCreateManyProjectInputEnvelope - connect?: Prisma.PipelineWhereUniqueInput | Prisma.PipelineWhereUniqueInput[] -} + 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[] - 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[] -} + 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[] - 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[] -} + 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 -} + set?: number | null; + increment?: number; + decrement?: number; + multiply?: number; + divide?: number; +}; export type PipelineCreateNestedOneWithoutStepsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.PipelineCreateOrConnectWithoutStepsInput - connect?: Prisma.PipelineWhereUniqueInput -} + create?: Prisma.XOR< + Prisma.PipelineCreateWithoutStepsInput, + Prisma.PipelineUncheckedCreateWithoutStepsInput + >; + connectOrCreate?: Prisma.PipelineCreateOrConnectWithoutStepsInput; + connect?: Prisma.PipelineWhereUniqueInput; +}; export type PipelineUpdateOneRequiredWithoutStepsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.PipelineCreateOrConnectWithoutStepsInput - upsert?: Prisma.PipelineUpsertWithoutStepsInput - connect?: Prisma.PipelineWhereUniqueInput - update?: Prisma.XOR, Prisma.PipelineUncheckedUpdateWithoutStepsInput> -} + 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 -} + 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 -} + 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 -} + where: Prisma.PipelineWhereUniqueInput; + create: Prisma.XOR< + Prisma.PipelineCreateWithoutProjectInput, + Prisma.PipelineUncheckedCreateWithoutProjectInput + >; +}; export type PipelineCreateManyProjectInputEnvelope = { - data: Prisma.PipelineCreateManyProjectInput | Prisma.PipelineCreateManyProjectInput[] -} + data: + | Prisma.PipelineCreateManyProjectInput + | Prisma.PipelineCreateManyProjectInput[]; +}; export type PipelineUpsertWithWhereUniqueWithoutProjectInput = { - where: Prisma.PipelineWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} + 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 -} + where: Prisma.PipelineWhereUniqueInput; + data: Prisma.XOR< + Prisma.PipelineUpdateWithoutProjectInput, + Prisma.PipelineUncheckedUpdateWithoutProjectInput + >; +}; export type PipelineUpdateManyWithWhereWithoutProjectInput = { - where: Prisma.PipelineScalarWhereInput - data: Prisma.XOR -} + 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 -} + 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 -} + 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 -} + 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 -} + where: Prisma.PipelineWhereUniqueInput; + create: Prisma.XOR< + Prisma.PipelineCreateWithoutStepsInput, + Prisma.PipelineUncheckedCreateWithoutStepsInput + >; +}; export type PipelineUpsertWithoutStepsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.PipelineWhereInput -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} - + 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 -} + steps: number; +}; -export type PipelineCountOutputTypeSelect = { - steps?: boolean | PipelineCountOutputTypeCountStepsArgs -} +export type PipelineCountOutputTypeSelect< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + steps?: boolean | PipelineCountOutputTypeCountStepsArgs; +}; /** * PipelineCountOutputType without action */ -export type PipelineCountOutputTypeDefaultArgs = { +export type PipelineCountOutputTypeDefaultArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the PipelineCountOutputType */ - select?: Prisma.PipelineCountOutputTypeSelect | null -} + select?: Prisma.PipelineCountOutputTypeSelect | null; +}; /** * PipelineCountOutputType without action */ -export type PipelineCountOutputTypeCountStepsArgs = { - where?: Prisma.StepWhereInput -} +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; + steps?: boolean | Prisma.Pipeline$stepsArgs; + _count?: boolean | Prisma.PipelineCountOutputTypeDefaultArgs; + }, + ExtArgs['result']['pipeline'] +>; -export type PipelineSelect = 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 - steps?: boolean | Prisma.Pipeline$stepsArgs - _count?: boolean | Prisma.PipelineCountOutputTypeDefaultArgs -}, 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['result']['pipeline'] +>; -export type PipelineSelectCreateManyAndReturn = 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["result"]["pipeline"]> - -export type PipelineSelectUpdateManyAndReturn = 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["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['result']['pipeline'] +>; export type PipelineSelectScalar = { - id?: boolean - name?: boolean - description?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean - projectId?: boolean -} + id?: boolean; + name?: boolean; + description?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + projectId?: boolean; +}; -export type PipelineOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "valid" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "projectId", ExtArgs["result"]["pipeline"]> -export type PipelineInclude = { - Project?: boolean | Prisma.Pipeline$ProjectArgs - steps?: boolean | Prisma.Pipeline$stepsArgs - _count?: boolean | Prisma.PipelineCountOutputTypeDefaultArgs -} -export type PipelineIncludeCreateManyAndReturn = { - Project?: boolean | Prisma.Pipeline$ProjectArgs -} -export type PipelineIncludeUpdateManyAndReturn = { - Project?: boolean | Prisma.Pipeline$ProjectArgs -} +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; + steps?: boolean | Prisma.Pipeline$stepsArgs; + _count?: boolean | Prisma.PipelineCountOutputTypeDefaultArgs; +}; +export type PipelineIncludeCreateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + Project?: boolean | Prisma.Pipeline$ProjectArgs; +}; +export type PipelineIncludeUpdateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + Project?: boolean | Prisma.Pipeline$ProjectArgs; +}; -export type $PipelinePayload = { - name: "Pipeline" +export type $PipelinePayload< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Pipeline'; objects: { - Project: Prisma.$ProjectPayload | null - steps: Prisma.$StepPayload[] - } - 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: {} -} + Project: Prisma.$ProjectPayload | null; + steps: Prisma.$StepPayload[]; + }; + 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 = runtime.Types.Result.GetResult +export type PipelineGetPayload< + S extends boolean | null | undefined | PipelineDefaultArgs, +> = runtime.Types.Result.GetResult; -export type PipelineCountArgs = - Omit & { - select?: PipelineCountAggregateInputType | true - } +export type PipelineCountArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: PipelineCountAggregateInputType | true; +}; -export interface PipelineDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Pipeline'], meta: { name: 'Pipeline' } } +export interface PipelineDelegate< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['Pipeline']; + meta: { name: 'Pipeline' }; + }; /** * Find zero or one Pipeline that matches the filter. * @param {PipelineFindUniqueArgs} args - Arguments to find a Pipeline @@ -841,7 +1022,19 @@ export interface PipelineDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__PipelineClient< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find one Pipeline that matches the filter or throw an error with `error.code='P2025'` @@ -855,7 +1048,19 @@ export interface PipelineDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__PipelineClient< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first Pipeline that matches the filter. @@ -870,7 +1075,19 @@ export interface PipelineDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__PipelineClient< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first Pipeline that matches the filter or @@ -886,7 +1103,19 @@ export interface PipelineDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__PipelineClient< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find zero or more Pipelines that matches the filter. @@ -896,15 +1125,24 @@ export interface PipelineDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'findMany', + GlobalOmitOptions + > + >; /** * Create a Pipeline. @@ -916,9 +1154,21 @@ export interface PipelineDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__PipelineClient< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Create many Pipelines. @@ -930,9 +1180,11 @@ export interface PipelineDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Create many Pipelines and returns the data saved in the database. @@ -944,7 +1196,7 @@ export interface PipelineDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + >; /** * Delete a Pipeline. @@ -968,9 +1229,21 @@ export interface PipelineDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__PipelineClient< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Update one Pipeline. @@ -985,9 +1258,21 @@ export interface PipelineDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__PipelineClient< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Delete zero or more Pipelines. @@ -999,9 +1284,11 @@ export interface PipelineDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Pipelines. @@ -1018,9 +1305,11 @@ export interface PipelineDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Pipelines and returns the data updated in the database. @@ -1035,7 +1324,7 @@ export interface PipelineDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + >; /** * Create or update one Pipeline. @@ -1069,8 +1367,19 @@ export interface PipelineDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__PipelineClient< + runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Count the number of Pipelines. @@ -1084,7 +1393,7 @@ export interface PipelineDelegate( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -1093,7 +1402,7 @@ export interface PipelineDelegate : number - > + >; /** * Allows you to perform aggregations operations on a Pipeline. @@ -1118,8 +1427,10 @@ export interface PipelineDelegate(args: Prisma.Subset): Prisma.PrismaPromise> + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise>; /** * Group by Pipeline. @@ -1137,8 +1448,8 @@ export interface PipelineDelegate>>, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, 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 + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: 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 ? GetPipelineGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Pipeline model - */ -readonly fields: PipelineFieldRefs; + : 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 + ? GetPipelineGroupByPayload + : Prisma.PrismaPromise; + /** + * Fields of the Pipeline model + */ + readonly fields: PipelineFieldRefs; } /** @@ -1209,498 +1527,615 @@ readonly fields: PipelineFieldRefs; * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ -export interface Prisma__PipelineClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - Project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - steps = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> +export interface Prisma__PipelineClient< + T, + Null = never, + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise'; + Project = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; + steps = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + >; /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + 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 + 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 + finally( + onfinally?: (() => void) | undefined | null, + ): runtime.Types.Utils.JsPromise; } - - - /** * 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'> + 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 = { +export type PipelineFindUniqueArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null + include?: Prisma.PipelineInclude | null; /** * Filter, which Pipeline to fetch. */ - where: Prisma.PipelineWhereUniqueInput -} + where: Prisma.PipelineWhereUniqueInput; +}; /** * Pipeline findUniqueOrThrow */ -export type PipelineFindUniqueOrThrowArgs = { +export type PipelineFindUniqueOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null + include?: Prisma.PipelineInclude | null; /** * Filter, which Pipeline to fetch. */ - where: Prisma.PipelineWhereUniqueInput -} + where: Prisma.PipelineWhereUniqueInput; +}; /** * Pipeline findFirst */ -export type PipelineFindFirstArgs = { +export type PipelineFindFirstArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null + include?: Prisma.PipelineInclude | null; /** * Filter, which Pipeline to fetch. */ - where?: Prisma.PipelineWhereInput + 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[] + 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 + 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 + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Pipelines. */ - skip?: number + 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[] -} + distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[]; +}; /** * Pipeline findFirstOrThrow */ -export type PipelineFindFirstOrThrowArgs = { +export type PipelineFindFirstOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null + include?: Prisma.PipelineInclude | null; /** * Filter, which Pipeline to fetch. */ - where?: Prisma.PipelineWhereInput + 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[] + 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 + 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 + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Pipelines. */ - skip?: number + 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[] -} + distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[]; +}; /** * Pipeline findMany */ -export type PipelineFindManyArgs = { +export type PipelineFindManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null + include?: Prisma.PipelineInclude | null; /** * Filter, which Pipelines to fetch. */ - where?: Prisma.PipelineWhereInput + 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[] + 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 + 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 + 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[] -} + skip?: number; + distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[]; +}; /** * Pipeline create */ -export type PipelineCreateArgs = { +export type PipelineCreateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null + include?: Prisma.PipelineInclude | null; /** * The data needed to create a Pipeline. */ - data: Prisma.XOR -} + data: Prisma.XOR< + Prisma.PipelineCreateInput, + Prisma.PipelineUncheckedCreateInput + >; +}; /** * Pipeline createMany */ -export type PipelineCreateManyArgs = { +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[] -} + data: Prisma.PipelineCreateManyInput | Prisma.PipelineCreateManyInput[]; +}; /** * Pipeline createManyAndReturn */ -export type PipelineCreateManyAndReturnArgs = { +export type PipelineCreateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelectCreateManyAndReturn | null + select?: Prisma.PipelineSelectCreateManyAndReturn | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * The data used to create many Pipelines. */ - data: Prisma.PipelineCreateManyInput | Prisma.PipelineCreateManyInput[] + data: Prisma.PipelineCreateManyInput | Prisma.PipelineCreateManyInput[]; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineIncludeCreateManyAndReturn | null -} + include?: Prisma.PipelineIncludeCreateManyAndReturn | null; +}; /** * Pipeline update */ -export type PipelineUpdateArgs = { +export type PipelineUpdateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null + include?: Prisma.PipelineInclude | null; /** * The data needed to update a Pipeline. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.PipelineUpdateInput, + Prisma.PipelineUncheckedUpdateInput + >; /** * Choose, which Pipeline to update. */ - where: Prisma.PipelineWhereUniqueInput -} + where: Prisma.PipelineWhereUniqueInput; +}; /** * Pipeline updateMany */ -export type PipelineUpdateManyArgs = { +export type PipelineUpdateManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * The data used to update Pipelines. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.PipelineUpdateManyMutationInput, + Prisma.PipelineUncheckedUpdateManyInput + >; /** * Filter which Pipelines to update */ - where?: Prisma.PipelineWhereInput + where?: Prisma.PipelineWhereInput; /** * Limit how many Pipelines to update. */ - limit?: number -} + limit?: number; +}; /** * Pipeline updateManyAndReturn */ -export type PipelineUpdateManyAndReturnArgs = { +export type PipelineUpdateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelectUpdateManyAndReturn | null + select?: Prisma.PipelineSelectUpdateManyAndReturn | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * The data used to update Pipelines. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.PipelineUpdateManyMutationInput, + Prisma.PipelineUncheckedUpdateManyInput + >; /** * Filter which Pipelines to update */ - where?: Prisma.PipelineWhereInput + where?: Prisma.PipelineWhereInput; /** * Limit how many Pipelines to update. */ - limit?: number + limit?: number; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineIncludeUpdateManyAndReturn | null -} + include?: Prisma.PipelineIncludeUpdateManyAndReturn | null; +}; /** * Pipeline upsert */ -export type PipelineUpsertArgs = { +export type PipelineUpsertArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null + include?: Prisma.PipelineInclude | null; /** * The filter to search for the Pipeline to update in case it exists. */ - where: Prisma.PipelineWhereUniqueInput + 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 + 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 -} + update: Prisma.XOR< + Prisma.PipelineUpdateInput, + Prisma.PipelineUncheckedUpdateInput + >; +}; /** * Pipeline delete */ -export type PipelineDeleteArgs = { +export type PipelineDeleteArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null + include?: Prisma.PipelineInclude | null; /** * Filter which Pipeline to delete. */ - where: Prisma.PipelineWhereUniqueInput -} + where: Prisma.PipelineWhereUniqueInput; +}; /** * Pipeline deleteMany */ -export type PipelineDeleteManyArgs = { +export type PipelineDeleteManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which Pipelines to delete */ - where?: Prisma.PipelineWhereInput + where?: Prisma.PipelineWhereInput; /** * Limit how many Pipelines to delete. */ - limit?: number -} + limit?: number; +}; /** * Pipeline.Project */ -export type Pipeline$ProjectArgs = { +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 | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null - where?: Prisma.ProjectWhereInput -} + include?: Prisma.ProjectInclude | null; + where?: Prisma.ProjectWhereInput; +}; /** * Pipeline.steps */ -export type Pipeline$stepsArgs = { +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 | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null - where?: Prisma.StepWhereInput - orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[] - cursor?: Prisma.StepWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[] -} + include?: Prisma.StepInclude | 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 = { +export type PipelineDefaultArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null -} + include?: Prisma.PipelineInclude | null; +}; diff --git a/apps/server/generated/models/Project.ts b/apps/server/generated/models/Project.ts index 9caaedf..95d17c5 100644 --- a/apps/server/generated/models/Project.ts +++ b/apps/server/generated/models/Project.ts @@ -1,812 +1,982 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* * This file exports the `Project` 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" +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 Project - * + * */ -export type ProjectModel = runtime.Types.Result.DefaultSelection +export type ProjectModel = + runtime.Types.Result.DefaultSelection; export type AggregateProject = { - _count: ProjectCountAggregateOutputType | null - _avg: ProjectAvgAggregateOutputType | null - _sum: ProjectSumAggregateOutputType | null - _min: ProjectMinAggregateOutputType | null - _max: ProjectMaxAggregateOutputType | null -} + _count: ProjectCountAggregateOutputType | null; + _avg: ProjectAvgAggregateOutputType | null; + _sum: ProjectSumAggregateOutputType | null; + _min: ProjectMinAggregateOutputType | null; + _max: ProjectMaxAggregateOutputType | null; +}; export type ProjectAvgAggregateOutputType = { - id: number | null - valid: number | null -} + id: number | null; + valid: number | null; +}; export type ProjectSumAggregateOutputType = { - id: number | null - valid: number | null -} + id: number | null; + valid: number | null; +}; export type ProjectMinAggregateOutputType = { - id: number | null - name: string | null - description: string | null - repository: string | null - projectDir: string | null - valid: number | null - createdAt: Date | null - updatedAt: Date | null - createdBy: string | null - updatedBy: string | null -} + id: number | null; + name: string | null; + description: string | null; + repository: string | null; + projectDir: string | null; + envPresets: string | null; + valid: number | null; + createdAt: Date | null; + updatedAt: Date | null; + createdBy: string | null; + updatedBy: string | null; +}; export type ProjectMaxAggregateOutputType = { - id: number | null - name: string | null - description: string | null - repository: string | null - projectDir: string | null - valid: number | null - createdAt: Date | null - updatedAt: Date | null - createdBy: string | null - updatedBy: string | null -} + id: number | null; + name: string | null; + description: string | null; + repository: string | null; + projectDir: string | null; + envPresets: string | null; + valid: number | null; + createdAt: Date | null; + updatedAt: Date | null; + createdBy: string | null; + updatedBy: string | null; +}; export type ProjectCountAggregateOutputType = { - id: number - name: number - description: number - repository: number - projectDir: number - valid: number - createdAt: number - updatedAt: number - createdBy: number - updatedBy: number - _all: number -} - + id: number; + name: number; + description: number; + repository: number; + projectDir: number; + envPresets: number; + valid: number; + createdAt: number; + updatedAt: number; + createdBy: number; + updatedBy: number; + _all: number; +}; export type ProjectAvgAggregateInputType = { - id?: true - valid?: true -} + id?: true; + valid?: true; +}; export type ProjectSumAggregateInputType = { - id?: true - valid?: true -} + id?: true; + valid?: true; +}; export type ProjectMinAggregateInputType = { - id?: true - name?: true - description?: true - repository?: true - projectDir?: true - valid?: true - createdAt?: true - updatedAt?: true - createdBy?: true - updatedBy?: true -} + id?: true; + name?: true; + description?: true; + repository?: true; + projectDir?: true; + envPresets?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; +}; export type ProjectMaxAggregateInputType = { - id?: true - name?: true - description?: true - repository?: true - projectDir?: true - valid?: true - createdAt?: true - updatedAt?: true - createdBy?: true - updatedBy?: true -} + id?: true; + name?: true; + description?: true; + repository?: true; + projectDir?: true; + envPresets?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; +}; export type ProjectCountAggregateInputType = { - id?: true - name?: true - description?: true - repository?: true - projectDir?: true - valid?: true - createdAt?: true - updatedAt?: true - createdBy?: true - updatedBy?: true - _all?: true -} + id?: true; + name?: true; + description?: true; + repository?: true; + projectDir?: true; + envPresets?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; + _all?: true; +}; -export type ProjectAggregateArgs = { +export type ProjectAggregateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which Project to aggregate. */ - where?: Prisma.ProjectWhereInput + where?: Prisma.ProjectWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Projects to fetch. */ - orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + orderBy?: + | Prisma.ProjectOrderByWithRelationInput + | Prisma.ProjectOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the start position */ - cursor?: Prisma.ProjectWhereUniqueInput + cursor?: Prisma.ProjectWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Projects from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Projects. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Count returned Projects - **/ - _count?: true | ProjectCountAggregateInputType + **/ + _count?: true | ProjectCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to average - **/ - _avg?: ProjectAvgAggregateInputType + **/ + _avg?: ProjectAvgAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to sum - **/ - _sum?: ProjectSumAggregateInputType + **/ + _sum?: ProjectSumAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to find the minimum value - **/ - _min?: ProjectMinAggregateInputType + **/ + _min?: ProjectMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to find the maximum value - **/ - _max?: ProjectMaxAggregateInputType -} + **/ + _max?: ProjectMaxAggregateInputType; +}; export type GetProjectAggregateType = { - [P in keyof T & keyof AggregateProject]: P extends '_count' | 'count' + [P in keyof T & keyof AggregateProject]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType - : Prisma.GetScalarType -} + : Prisma.GetScalarType; +}; - - - -export type ProjectGroupByArgs = { - where?: Prisma.ProjectWhereInput - orderBy?: Prisma.ProjectOrderByWithAggregationInput | Prisma.ProjectOrderByWithAggregationInput[] - by: Prisma.ProjectScalarFieldEnum[] | Prisma.ProjectScalarFieldEnum - having?: Prisma.ProjectScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ProjectCountAggregateInputType | true - _avg?: ProjectAvgAggregateInputType - _sum?: ProjectSumAggregateInputType - _min?: ProjectMinAggregateInputType - _max?: ProjectMaxAggregateInputType -} +export type ProjectGroupByArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.ProjectWhereInput; + orderBy?: + | Prisma.ProjectOrderByWithAggregationInput + | Prisma.ProjectOrderByWithAggregationInput[]; + by: Prisma.ProjectScalarFieldEnum[] | Prisma.ProjectScalarFieldEnum; + having?: Prisma.ProjectScalarWhereWithAggregatesInput; + take?: number; + skip?: number; + _count?: ProjectCountAggregateInputType | true; + _avg?: ProjectAvgAggregateInputType; + _sum?: ProjectSumAggregateInputType; + _min?: ProjectMinAggregateInputType; + _max?: ProjectMaxAggregateInputType; +}; export type ProjectGroupByOutputType = { - id: number - name: string - description: string | null - repository: string - projectDir: string - valid: number - createdAt: Date - updatedAt: Date - createdBy: string - updatedBy: string - _count: ProjectCountAggregateOutputType | null - _avg: ProjectAvgAggregateOutputType | null - _sum: ProjectSumAggregateOutputType | null - _min: ProjectMinAggregateOutputType | null - _max: ProjectMaxAggregateOutputType | null -} + id: number; + name: string; + description: string | null; + repository: string; + projectDir: string; + envPresets: string | null; + valid: number; + createdAt: Date; + updatedAt: Date; + createdBy: string; + updatedBy: string; + _count: ProjectCountAggregateOutputType | null; + _avg: ProjectAvgAggregateOutputType | null; + _sum: ProjectSumAggregateOutputType | null; + _min: ProjectMinAggregateOutputType | null; + _max: ProjectMaxAggregateOutputType | null; +}; -type GetProjectGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof ProjectGroupByOutputType))]: P extends '_count' +type GetProjectGroupByPayload = + Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & { + [P in keyof T & keyof ProjectGroupByOutputType]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType - : Prisma.GetScalarType + : Prisma.GetScalarType; } > - > - - + >; export type ProjectWhereInput = { - AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] - OR?: Prisma.ProjectWhereInput[] - NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] - id?: Prisma.IntFilter<"Project"> | number - name?: Prisma.StringFilter<"Project"> | string - description?: Prisma.StringNullableFilter<"Project"> | string | null - repository?: Prisma.StringFilter<"Project"> | string - projectDir?: Prisma.StringFilter<"Project"> | string - valid?: Prisma.IntFilter<"Project"> | number - createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string - createdBy?: Prisma.StringFilter<"Project"> | string - updatedBy?: Prisma.StringFilter<"Project"> | string - deployments?: Prisma.DeploymentListRelationFilter - pipelines?: Prisma.PipelineListRelationFilter -} + AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]; + OR?: Prisma.ProjectWhereInput[]; + NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]; + id?: Prisma.IntFilter<'Project'> | number; + name?: Prisma.StringFilter<'Project'> | string; + description?: Prisma.StringNullableFilter<'Project'> | string | null; + repository?: Prisma.StringFilter<'Project'> | string; + projectDir?: Prisma.StringFilter<'Project'> | string; + envPresets?: Prisma.StringNullableFilter<'Project'> | string | null; + valid?: Prisma.IntFilter<'Project'> | number; + createdAt?: Prisma.DateTimeFilter<'Project'> | Date | string; + updatedAt?: Prisma.DateTimeFilter<'Project'> | Date | string; + createdBy?: Prisma.StringFilter<'Project'> | string; + updatedBy?: Prisma.StringFilter<'Project'> | string; + deployments?: Prisma.DeploymentListRelationFilter; + pipelines?: Prisma.PipelineListRelationFilter; +}; export type ProjectOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - repository?: Prisma.SortOrder - projectDir?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - deployments?: Prisma.DeploymentOrderByRelationAggregateInput - pipelines?: Prisma.PipelineOrderByRelationAggregateInput -} + id?: Prisma.SortOrder; + name?: Prisma.SortOrder; + description?: Prisma.SortOrderInput | Prisma.SortOrder; + repository?: Prisma.SortOrder; + projectDir?: Prisma.SortOrder; + envPresets?: Prisma.SortOrderInput | Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; + deployments?: Prisma.DeploymentOrderByRelationAggregateInput; + pipelines?: Prisma.PipelineOrderByRelationAggregateInput; +}; -export type ProjectWhereUniqueInput = Prisma.AtLeast<{ - id?: number - projectDir?: string - AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] - OR?: Prisma.ProjectWhereInput[] - NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] - name?: Prisma.StringFilter<"Project"> | string - description?: Prisma.StringNullableFilter<"Project"> | string | null - repository?: Prisma.StringFilter<"Project"> | string - valid?: Prisma.IntFilter<"Project"> | number - createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string - createdBy?: Prisma.StringFilter<"Project"> | string - updatedBy?: Prisma.StringFilter<"Project"> | string - deployments?: Prisma.DeploymentListRelationFilter - pipelines?: Prisma.PipelineListRelationFilter -}, "id" | "projectDir"> +export type ProjectWhereUniqueInput = Prisma.AtLeast< + { + id?: number; + projectDir?: string; + AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]; + OR?: Prisma.ProjectWhereInput[]; + NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[]; + name?: Prisma.StringFilter<'Project'> | string; + description?: Prisma.StringNullableFilter<'Project'> | string | null; + repository?: Prisma.StringFilter<'Project'> | string; + envPresets?: Prisma.StringNullableFilter<'Project'> | string | null; + valid?: Prisma.IntFilter<'Project'> | number; + createdAt?: Prisma.DateTimeFilter<'Project'> | Date | string; + updatedAt?: Prisma.DateTimeFilter<'Project'> | Date | string; + createdBy?: Prisma.StringFilter<'Project'> | string; + updatedBy?: Prisma.StringFilter<'Project'> | string; + deployments?: Prisma.DeploymentListRelationFilter; + pipelines?: Prisma.PipelineListRelationFilter; + }, + 'id' | 'projectDir' +>; export type ProjectOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - repository?: Prisma.SortOrder - projectDir?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - _count?: Prisma.ProjectCountOrderByAggregateInput - _avg?: Prisma.ProjectAvgOrderByAggregateInput - _max?: Prisma.ProjectMaxOrderByAggregateInput - _min?: Prisma.ProjectMinOrderByAggregateInput - _sum?: Prisma.ProjectSumOrderByAggregateInput -} + id?: Prisma.SortOrder; + name?: Prisma.SortOrder; + description?: Prisma.SortOrderInput | Prisma.SortOrder; + repository?: Prisma.SortOrder; + projectDir?: Prisma.SortOrder; + envPresets?: Prisma.SortOrderInput | Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; + _count?: Prisma.ProjectCountOrderByAggregateInput; + _avg?: Prisma.ProjectAvgOrderByAggregateInput; + _max?: Prisma.ProjectMaxOrderByAggregateInput; + _min?: Prisma.ProjectMinOrderByAggregateInput; + _sum?: Prisma.ProjectSumOrderByAggregateInput; +}; export type ProjectScalarWhereWithAggregatesInput = { - AND?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[] - OR?: Prisma.ProjectScalarWhereWithAggregatesInput[] - NOT?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[] - id?: Prisma.IntWithAggregatesFilter<"Project"> | number - name?: Prisma.StringWithAggregatesFilter<"Project"> | string - description?: Prisma.StringNullableWithAggregatesFilter<"Project"> | string | null - repository?: Prisma.StringWithAggregatesFilter<"Project"> | string - projectDir?: Prisma.StringWithAggregatesFilter<"Project"> | string - valid?: Prisma.IntWithAggregatesFilter<"Project"> | number - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string - createdBy?: Prisma.StringWithAggregatesFilter<"Project"> | string - updatedBy?: Prisma.StringWithAggregatesFilter<"Project"> | string -} + AND?: + | Prisma.ProjectScalarWhereWithAggregatesInput + | Prisma.ProjectScalarWhereWithAggregatesInput[]; + OR?: Prisma.ProjectScalarWhereWithAggregatesInput[]; + NOT?: + | Prisma.ProjectScalarWhereWithAggregatesInput + | Prisma.ProjectScalarWhereWithAggregatesInput[]; + id?: Prisma.IntWithAggregatesFilter<'Project'> | number; + name?: Prisma.StringWithAggregatesFilter<'Project'> | string; + description?: + | Prisma.StringNullableWithAggregatesFilter<'Project'> + | string + | null; + repository?: Prisma.StringWithAggregatesFilter<'Project'> | string; + projectDir?: Prisma.StringWithAggregatesFilter<'Project'> | string; + envPresets?: + | Prisma.StringNullableWithAggregatesFilter<'Project'> + | string + | null; + valid?: Prisma.IntWithAggregatesFilter<'Project'> | number; + createdAt?: Prisma.DateTimeWithAggregatesFilter<'Project'> | Date | string; + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'Project'> | Date | string; + createdBy?: Prisma.StringWithAggregatesFilter<'Project'> | string; + updatedBy?: Prisma.StringWithAggregatesFilter<'Project'> | string; +}; export type ProjectCreateInput = { - name: string - description?: string | null - repository: string - projectDir: string - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - deployments?: Prisma.DeploymentCreateNestedManyWithoutProjectInput - pipelines?: Prisma.PipelineCreateNestedManyWithoutProjectInput -} + name: string; + description?: string | null; + repository: string; + projectDir: string; + envPresets?: string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + deployments?: Prisma.DeploymentCreateNestedManyWithoutProjectInput; + pipelines?: Prisma.PipelineCreateNestedManyWithoutProjectInput; +}; export type ProjectUncheckedCreateInput = { - id?: number - name: string - description?: string | null - repository: string - projectDir: string - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - deployments?: Prisma.DeploymentUncheckedCreateNestedManyWithoutProjectInput - pipelines?: Prisma.PipelineUncheckedCreateNestedManyWithoutProjectInput -} + id?: number; + name: string; + description?: string | null; + repository: string; + projectDir: string; + envPresets?: string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + deployments?: Prisma.DeploymentUncheckedCreateNestedManyWithoutProjectInput; + pipelines?: Prisma.PipelineUncheckedCreateNestedManyWithoutProjectInput; +}; export type ProjectUpdateInput = { - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - repository?: Prisma.StringFieldUpdateOperationsInput | string - projectDir?: 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 - deployments?: Prisma.DeploymentUpdateManyWithoutProjectNestedInput - pipelines?: Prisma.PipelineUpdateManyWithoutProjectNestedInput -} + name?: Prisma.StringFieldUpdateOperationsInput | string; + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + repository?: Prisma.StringFieldUpdateOperationsInput | string; + projectDir?: Prisma.StringFieldUpdateOperationsInput | string; + envPresets?: 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; + deployments?: Prisma.DeploymentUpdateManyWithoutProjectNestedInput; + pipelines?: Prisma.PipelineUpdateManyWithoutProjectNestedInput; +}; export type ProjectUncheckedUpdateInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - repository?: Prisma.StringFieldUpdateOperationsInput | string - projectDir?: 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 - deployments?: Prisma.DeploymentUncheckedUpdateManyWithoutProjectNestedInput - pipelines?: Prisma.PipelineUncheckedUpdateManyWithoutProjectNestedInput -} + id?: Prisma.IntFieldUpdateOperationsInput | number; + name?: Prisma.StringFieldUpdateOperationsInput | string; + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + repository?: Prisma.StringFieldUpdateOperationsInput | string; + projectDir?: Prisma.StringFieldUpdateOperationsInput | string; + envPresets?: 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; + deployments?: Prisma.DeploymentUncheckedUpdateManyWithoutProjectNestedInput; + pipelines?: Prisma.PipelineUncheckedUpdateManyWithoutProjectNestedInput; +}; export type ProjectCreateManyInput = { - id?: number - name: string - description?: string | null - repository: string - projectDir: string - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string -} + id?: number; + name: string; + description?: string | null; + repository: string; + projectDir: string; + envPresets?: string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; +}; export type ProjectUpdateManyMutationInput = { - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - repository?: Prisma.StringFieldUpdateOperationsInput | string - projectDir?: 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 -} + name?: Prisma.StringFieldUpdateOperationsInput | string; + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + repository?: Prisma.StringFieldUpdateOperationsInput | string; + projectDir?: Prisma.StringFieldUpdateOperationsInput | string; + envPresets?: 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 ProjectUncheckedUpdateManyInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - repository?: Prisma.StringFieldUpdateOperationsInput | string - projectDir?: 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 -} + id?: Prisma.IntFieldUpdateOperationsInput | number; + name?: Prisma.StringFieldUpdateOperationsInput | string; + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + repository?: Prisma.StringFieldUpdateOperationsInput | string; + projectDir?: Prisma.StringFieldUpdateOperationsInput | string; + envPresets?: 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 ProjectCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrder - repository?: Prisma.SortOrder - projectDir?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + name?: Prisma.SortOrder; + description?: Prisma.SortOrder; + repository?: Prisma.SortOrder; + projectDir?: Prisma.SortOrder; + envPresets?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; +}; export type ProjectAvgOrderByAggregateInput = { - id?: Prisma.SortOrder - valid?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + valid?: Prisma.SortOrder; +}; export type ProjectMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrder - repository?: Prisma.SortOrder - projectDir?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + name?: Prisma.SortOrder; + description?: Prisma.SortOrder; + repository?: Prisma.SortOrder; + projectDir?: Prisma.SortOrder; + envPresets?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; +}; export type ProjectMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - description?: Prisma.SortOrder - repository?: Prisma.SortOrder - projectDir?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + name?: Prisma.SortOrder; + description?: Prisma.SortOrder; + repository?: Prisma.SortOrder; + projectDir?: Prisma.SortOrder; + envPresets?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; +}; export type ProjectSumOrderByAggregateInput = { - id?: Prisma.SortOrder - valid?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + valid?: Prisma.SortOrder; +}; export type ProjectNullableScalarRelationFilter = { - is?: Prisma.ProjectWhereInput | null - isNot?: Prisma.ProjectWhereInput | null -} + is?: Prisma.ProjectWhereInput | null; + isNot?: Prisma.ProjectWhereInput | null; +}; export type StringFieldUpdateOperationsInput = { - set?: string -} + set?: string; +}; export type NullableStringFieldUpdateOperationsInput = { - set?: string | null -} + set?: string | null; +}; export type IntFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number -} + set?: number; + increment?: number; + decrement?: number; + multiply?: number; + divide?: number; +}; export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string -} + set?: Date | string; +}; export type ProjectCreateNestedOneWithoutPipelinesInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutPipelinesInput - connect?: Prisma.ProjectWhereUniqueInput -} + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutPipelinesInput, + Prisma.ProjectUncheckedCreateWithoutPipelinesInput + >; + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutPipelinesInput; + connect?: Prisma.ProjectWhereUniqueInput; +}; export type ProjectUpdateOneWithoutPipelinesNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutPipelinesInput - upsert?: Prisma.ProjectUpsertWithoutPipelinesInput - disconnect?: Prisma.ProjectWhereInput | boolean - delete?: Prisma.ProjectWhereInput | boolean - connect?: Prisma.ProjectWhereUniqueInput - update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutPipelinesInput> -} + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutPipelinesInput, + Prisma.ProjectUncheckedCreateWithoutPipelinesInput + >; + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutPipelinesInput; + upsert?: Prisma.ProjectUpsertWithoutPipelinesInput; + disconnect?: Prisma.ProjectWhereInput | boolean; + delete?: Prisma.ProjectWhereInput | boolean; + connect?: Prisma.ProjectWhereUniqueInput; + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutPipelinesInput, + Prisma.ProjectUpdateWithoutPipelinesInput + >, + Prisma.ProjectUncheckedUpdateWithoutPipelinesInput + >; +}; export type ProjectCreateNestedOneWithoutDeploymentsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutDeploymentsInput - connect?: Prisma.ProjectWhereUniqueInput -} + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutDeploymentsInput, + Prisma.ProjectUncheckedCreateWithoutDeploymentsInput + >; + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutDeploymentsInput; + connect?: Prisma.ProjectWhereUniqueInput; +}; export type ProjectUpdateOneWithoutDeploymentsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutDeploymentsInput - upsert?: Prisma.ProjectUpsertWithoutDeploymentsInput - disconnect?: Prisma.ProjectWhereInput | boolean - delete?: Prisma.ProjectWhereInput | boolean - connect?: Prisma.ProjectWhereUniqueInput - update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutDeploymentsInput> -} + create?: Prisma.XOR< + Prisma.ProjectCreateWithoutDeploymentsInput, + Prisma.ProjectUncheckedCreateWithoutDeploymentsInput + >; + connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutDeploymentsInput; + upsert?: Prisma.ProjectUpsertWithoutDeploymentsInput; + disconnect?: Prisma.ProjectWhereInput | boolean; + delete?: Prisma.ProjectWhereInput | boolean; + connect?: Prisma.ProjectWhereUniqueInput; + update?: Prisma.XOR< + Prisma.XOR< + Prisma.ProjectUpdateToOneWithWhereWithoutDeploymentsInput, + Prisma.ProjectUpdateWithoutDeploymentsInput + >, + Prisma.ProjectUncheckedUpdateWithoutDeploymentsInput + >; +}; export type ProjectCreateWithoutPipelinesInput = { - name: string - description?: string | null - repository: string - projectDir: string - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - deployments?: Prisma.DeploymentCreateNestedManyWithoutProjectInput -} + name: string; + description?: string | null; + repository: string; + projectDir: string; + envPresets?: string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + deployments?: Prisma.DeploymentCreateNestedManyWithoutProjectInput; +}; export type ProjectUncheckedCreateWithoutPipelinesInput = { - id?: number - name: string - description?: string | null - repository: string - projectDir: string - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - deployments?: Prisma.DeploymentUncheckedCreateNestedManyWithoutProjectInput -} + id?: number; + name: string; + description?: string | null; + repository: string; + projectDir: string; + envPresets?: string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + deployments?: Prisma.DeploymentUncheckedCreateNestedManyWithoutProjectInput; +}; export type ProjectCreateOrConnectWithoutPipelinesInput = { - where: Prisma.ProjectWhereUniqueInput - create: Prisma.XOR -} + where: Prisma.ProjectWhereUniqueInput; + create: Prisma.XOR< + Prisma.ProjectCreateWithoutPipelinesInput, + Prisma.ProjectUncheckedCreateWithoutPipelinesInput + >; +}; export type ProjectUpsertWithoutPipelinesInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.ProjectWhereInput -} + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutPipelinesInput, + Prisma.ProjectUncheckedUpdateWithoutPipelinesInput + >; + create: Prisma.XOR< + Prisma.ProjectCreateWithoutPipelinesInput, + Prisma.ProjectUncheckedCreateWithoutPipelinesInput + >; + where?: Prisma.ProjectWhereInput; +}; export type ProjectUpdateToOneWithWhereWithoutPipelinesInput = { - where?: Prisma.ProjectWhereInput - data: Prisma.XOR -} + where?: Prisma.ProjectWhereInput; + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutPipelinesInput, + Prisma.ProjectUncheckedUpdateWithoutPipelinesInput + >; +}; export type ProjectUpdateWithoutPipelinesInput = { - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - repository?: Prisma.StringFieldUpdateOperationsInput | string - projectDir?: 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 - deployments?: Prisma.DeploymentUpdateManyWithoutProjectNestedInput -} + name?: Prisma.StringFieldUpdateOperationsInput | string; + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + repository?: Prisma.StringFieldUpdateOperationsInput | string; + projectDir?: Prisma.StringFieldUpdateOperationsInput | string; + envPresets?: 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; + deployments?: Prisma.DeploymentUpdateManyWithoutProjectNestedInput; +}; export type ProjectUncheckedUpdateWithoutPipelinesInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - repository?: Prisma.StringFieldUpdateOperationsInput | string - projectDir?: 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 - deployments?: Prisma.DeploymentUncheckedUpdateManyWithoutProjectNestedInput -} + id?: Prisma.IntFieldUpdateOperationsInput | number; + name?: Prisma.StringFieldUpdateOperationsInput | string; + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + repository?: Prisma.StringFieldUpdateOperationsInput | string; + projectDir?: Prisma.StringFieldUpdateOperationsInput | string; + envPresets?: 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; + deployments?: Prisma.DeploymentUncheckedUpdateManyWithoutProjectNestedInput; +}; export type ProjectCreateWithoutDeploymentsInput = { - name: string - description?: string | null - repository: string - projectDir: string - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - pipelines?: Prisma.PipelineCreateNestedManyWithoutProjectInput -} + name: string; + description?: string | null; + repository: string; + projectDir: string; + envPresets?: string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + pipelines?: Prisma.PipelineCreateNestedManyWithoutProjectInput; +}; export type ProjectUncheckedCreateWithoutDeploymentsInput = { - id?: number - name: string - description?: string | null - repository: string - projectDir: string - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy: string - updatedBy: string - pipelines?: Prisma.PipelineUncheckedCreateNestedManyWithoutProjectInput -} + id?: number; + name: string; + description?: string | null; + repository: string; + projectDir: string; + envPresets?: string | null; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy: string; + updatedBy: string; + pipelines?: Prisma.PipelineUncheckedCreateNestedManyWithoutProjectInput; +}; export type ProjectCreateOrConnectWithoutDeploymentsInput = { - where: Prisma.ProjectWhereUniqueInput - create: Prisma.XOR -} + where: Prisma.ProjectWhereUniqueInput; + create: Prisma.XOR< + Prisma.ProjectCreateWithoutDeploymentsInput, + Prisma.ProjectUncheckedCreateWithoutDeploymentsInput + >; +}; export type ProjectUpsertWithoutDeploymentsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.ProjectWhereInput -} + update: Prisma.XOR< + Prisma.ProjectUpdateWithoutDeploymentsInput, + Prisma.ProjectUncheckedUpdateWithoutDeploymentsInput + >; + create: Prisma.XOR< + Prisma.ProjectCreateWithoutDeploymentsInput, + Prisma.ProjectUncheckedCreateWithoutDeploymentsInput + >; + where?: Prisma.ProjectWhereInput; +}; export type ProjectUpdateToOneWithWhereWithoutDeploymentsInput = { - where?: Prisma.ProjectWhereInput - data: Prisma.XOR -} + where?: Prisma.ProjectWhereInput; + data: Prisma.XOR< + Prisma.ProjectUpdateWithoutDeploymentsInput, + Prisma.ProjectUncheckedUpdateWithoutDeploymentsInput + >; +}; export type ProjectUpdateWithoutDeploymentsInput = { - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - repository?: Prisma.StringFieldUpdateOperationsInput | string - projectDir?: 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 - pipelines?: Prisma.PipelineUpdateManyWithoutProjectNestedInput -} + name?: Prisma.StringFieldUpdateOperationsInput | string; + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + repository?: Prisma.StringFieldUpdateOperationsInput | string; + projectDir?: Prisma.StringFieldUpdateOperationsInput | string; + envPresets?: 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; + pipelines?: Prisma.PipelineUpdateManyWithoutProjectNestedInput; +}; export type ProjectUncheckedUpdateWithoutDeploymentsInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - name?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - repository?: Prisma.StringFieldUpdateOperationsInput | string - projectDir?: 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 - pipelines?: Prisma.PipelineUncheckedUpdateManyWithoutProjectNestedInput -} - + id?: Prisma.IntFieldUpdateOperationsInput | number; + name?: Prisma.StringFieldUpdateOperationsInput | string; + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + repository?: Prisma.StringFieldUpdateOperationsInput | string; + projectDir?: Prisma.StringFieldUpdateOperationsInput | string; + envPresets?: 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; + pipelines?: Prisma.PipelineUncheckedUpdateManyWithoutProjectNestedInput; +}; /** * Count Type ProjectCountOutputType */ export type ProjectCountOutputType = { - deployments: number - pipelines: number -} + deployments: number; + pipelines: number; +}; -export type ProjectCountOutputTypeSelect = { - deployments?: boolean | ProjectCountOutputTypeCountDeploymentsArgs - pipelines?: boolean | ProjectCountOutputTypeCountPipelinesArgs -} +export type ProjectCountOutputTypeSelect< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + deployments?: boolean | ProjectCountOutputTypeCountDeploymentsArgs; + pipelines?: boolean | ProjectCountOutputTypeCountPipelinesArgs; +}; /** * ProjectCountOutputType without action */ -export type ProjectCountOutputTypeDefaultArgs = { +export type ProjectCountOutputTypeDefaultArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the ProjectCountOutputType */ - select?: Prisma.ProjectCountOutputTypeSelect | null -} + select?: Prisma.ProjectCountOutputTypeSelect | null; +}; /** * ProjectCountOutputType without action */ -export type ProjectCountOutputTypeCountDeploymentsArgs = { - where?: Prisma.DeploymentWhereInput -} +export type ProjectCountOutputTypeCountDeploymentsArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.DeploymentWhereInput; +}; /** * ProjectCountOutputType without action */ -export type ProjectCountOutputTypeCountPipelinesArgs = { - where?: Prisma.PipelineWhereInput -} +export type ProjectCountOutputTypeCountPipelinesArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.PipelineWhereInput; +}; +export type ProjectSelect< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean; + name?: boolean; + description?: boolean; + repository?: boolean; + projectDir?: boolean; + envPresets?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + deployments?: boolean | Prisma.Project$deploymentsArgs; + pipelines?: boolean | Prisma.Project$pipelinesArgs; + _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs; + }, + ExtArgs['result']['project'] +>; -export type ProjectSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - description?: boolean - repository?: boolean - projectDir?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean - deployments?: boolean | Prisma.Project$deploymentsArgs - pipelines?: boolean | Prisma.Project$pipelinesArgs - _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs -}, ExtArgs["result"]["project"]> +export type ProjectSelectCreateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean; + name?: boolean; + description?: boolean; + repository?: boolean; + projectDir?: boolean; + envPresets?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + }, + ExtArgs['result']['project'] +>; -export type ProjectSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - description?: boolean - repository?: boolean - projectDir?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean -}, ExtArgs["result"]["project"]> - -export type ProjectSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - description?: boolean - repository?: boolean - projectDir?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean -}, ExtArgs["result"]["project"]> +export type ProjectSelectUpdateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean; + name?: boolean; + description?: boolean; + repository?: boolean; + projectDir?: boolean; + envPresets?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + }, + ExtArgs['result']['project'] +>; export type ProjectSelectScalar = { - id?: boolean - name?: boolean - description?: boolean - repository?: boolean - projectDir?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean -} + id?: boolean; + name?: boolean; + description?: boolean; + repository?: boolean; + projectDir?: boolean; + envPresets?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; +}; -export type ProjectOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "repository" | "projectDir" | "valid" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy", ExtArgs["result"]["project"]> -export type ProjectInclude = { - deployments?: boolean | Prisma.Project$deploymentsArgs - pipelines?: boolean | Prisma.Project$pipelinesArgs - _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs -} -export type ProjectIncludeCreateManyAndReturn = {} -export type ProjectIncludeUpdateManyAndReturn = {} +export type ProjectOmit< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'name' + | 'description' + | 'repository' + | 'projectDir' + | 'envPresets' + | 'valid' + | 'createdAt' + | 'updatedAt' + | 'createdBy' + | 'updatedBy', + ExtArgs['result']['project'] +>; +export type ProjectInclude< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + deployments?: boolean | Prisma.Project$deploymentsArgs; + pipelines?: boolean | Prisma.Project$pipelinesArgs; + _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs; +}; +export type ProjectIncludeCreateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = {}; +export type ProjectIncludeUpdateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = {}; -export type $ProjectPayload = { - name: "Project" +export type $ProjectPayload< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'Project'; objects: { - deployments: Prisma.$DeploymentPayload[] - pipelines: Prisma.$PipelinePayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: number - name: string - description: string | null - repository: string - projectDir: string - valid: number - createdAt: Date - updatedAt: Date - createdBy: string - updatedBy: string - }, ExtArgs["result"]["project"]> - composites: {} -} + deployments: Prisma.$DeploymentPayload[]; + pipelines: Prisma.$PipelinePayload[]; + }; + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: number; + name: string; + description: string | null; + repository: string; + projectDir: string; + envPresets: string | null; + valid: number; + createdAt: Date; + updatedAt: Date; + createdBy: string; + updatedBy: string; + }, + ExtArgs['result']['project'] + >; + composites: {}; +}; -export type ProjectGetPayload = runtime.Types.Result.GetResult +export type ProjectGetPayload< + S extends boolean | null | undefined | ProjectDefaultArgs, +> = runtime.Types.Result.GetResult; -export type ProjectCountArgs = - Omit & { - select?: ProjectCountAggregateInputType | true - } +export type ProjectCountArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: ProjectCountAggregateInputType | true; +}; -export interface ProjectDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Project'], meta: { name: 'Project' } } +export interface ProjectDelegate< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['Project']; + meta: { name: 'Project' }; + }; /** * Find zero or one Project that matches the filter. * @param {ProjectFindUniqueArgs} args - Arguments to find a Project @@ -818,7 +988,19 @@ export interface ProjectDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find one Project that matches the filter or throw an error with `error.code='P2025'` @@ -832,7 +1014,19 @@ export interface ProjectDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first Project that matches the filter. @@ -847,7 +1041,19 @@ export interface ProjectDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first Project that matches the filter or @@ -863,7 +1069,19 @@ export interface ProjectDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find zero or more Projects that matches the filter. @@ -873,15 +1091,24 @@ export interface ProjectDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'findMany', + GlobalOmitOptions + > + >; /** * Create a Project. @@ -893,9 +1120,21 @@ export interface ProjectDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Create many Projects. @@ -907,9 +1146,11 @@ export interface ProjectDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Create many Projects and returns the data saved in the database. @@ -921,7 +1162,7 @@ export interface ProjectDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + >; /** * Delete a Project. @@ -945,9 +1195,21 @@ export interface ProjectDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Update one Project. @@ -962,9 +1224,21 @@ export interface ProjectDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Delete zero or more Projects. @@ -976,9 +1250,11 @@ export interface ProjectDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Projects. @@ -995,9 +1271,11 @@ export interface ProjectDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Projects and returns the data updated in the database. @@ -1012,7 +1290,7 @@ export interface ProjectDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + >; /** * Create or update one Project. @@ -1046,8 +1333,19 @@ export interface ProjectDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__ProjectClient< + runtime.Types.Result.GetResult< + Prisma.$ProjectPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Count the number of Projects. @@ -1061,7 +1359,7 @@ export interface ProjectDelegate( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -1070,7 +1368,7 @@ export interface ProjectDelegate : number - > + >; /** * Allows you to perform aggregations operations on a Project. @@ -1095,8 +1393,10 @@ export interface ProjectDelegate(args: Prisma.Subset): Prisma.PrismaPromise> + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise>; /** * Group by Project. @@ -1114,8 +1414,8 @@ export interface ProjectDelegate>>, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, 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 + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: 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 ? GetProjectGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Project model - */ -readonly fields: ProjectFieldRefs; + : 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 + ? GetProjectGroupByPayload + : Prisma.PrismaPromise; + /** + * Fields of the Project model + */ + readonly fields: ProjectFieldRefs; } /** @@ -1186,496 +1493,616 @@ readonly fields: ProjectFieldRefs; * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ -export interface Prisma__ProjectClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - deployments = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - pipelines = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> +export interface Prisma__ProjectClient< + T, + Null = never, + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise'; + deployments = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$DeploymentPayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + >; + pipelines = {}>( + args?: Prisma.Subset>, + ): Prisma.PrismaPromise< + | runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + T, + 'findMany', + GlobalOmitOptions + > + | Null + >; /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. * @param onrejected The callback to execute when the Promise is rejected. * @returns A Promise for the completion of which ever callback is executed. */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + 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 + 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 + finally( + onfinally?: (() => void) | undefined | null, + ): runtime.Types.Utils.JsPromise; } - - - /** * Fields of the Project model */ export interface ProjectFieldRefs { - readonly id: Prisma.FieldRef<"Project", 'Int'> - readonly name: Prisma.FieldRef<"Project", 'String'> - readonly description: Prisma.FieldRef<"Project", 'String'> - readonly repository: Prisma.FieldRef<"Project", 'String'> - readonly projectDir: Prisma.FieldRef<"Project", 'String'> - readonly valid: Prisma.FieldRef<"Project", 'Int'> - readonly createdAt: Prisma.FieldRef<"Project", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Project", 'DateTime'> - readonly createdBy: Prisma.FieldRef<"Project", 'String'> - readonly updatedBy: Prisma.FieldRef<"Project", 'String'> + readonly id: Prisma.FieldRef<'Project', 'Int'>; + readonly name: Prisma.FieldRef<'Project', 'String'>; + readonly description: Prisma.FieldRef<'Project', 'String'>; + readonly repository: Prisma.FieldRef<'Project', 'String'>; + readonly projectDir: Prisma.FieldRef<'Project', 'String'>; + readonly envPresets: Prisma.FieldRef<'Project', 'String'>; + readonly valid: Prisma.FieldRef<'Project', 'Int'>; + readonly createdAt: Prisma.FieldRef<'Project', 'DateTime'>; + readonly updatedAt: Prisma.FieldRef<'Project', 'DateTime'>; + readonly createdBy: Prisma.FieldRef<'Project', 'String'>; + readonly updatedBy: Prisma.FieldRef<'Project', 'String'>; } - // Custom InputTypes /** * Project findUnique */ -export type ProjectFindUniqueArgs = { +export type ProjectFindUniqueArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null + include?: Prisma.ProjectInclude | null; /** * Filter, which Project to fetch. */ - where: Prisma.ProjectWhereUniqueInput -} + where: Prisma.ProjectWhereUniqueInput; +}; /** * Project findUniqueOrThrow */ -export type ProjectFindUniqueOrThrowArgs = { +export type ProjectFindUniqueOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null + include?: Prisma.ProjectInclude | null; /** * Filter, which Project to fetch. */ - where: Prisma.ProjectWhereUniqueInput -} + where: Prisma.ProjectWhereUniqueInput; +}; /** * Project findFirst */ -export type ProjectFindFirstArgs = { +export type ProjectFindFirstArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null + include?: Prisma.ProjectInclude | null; /** * Filter, which Project to fetch. */ - where?: Prisma.ProjectWhereInput + where?: Prisma.ProjectWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Projects to fetch. */ - orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + orderBy?: + | Prisma.ProjectOrderByWithRelationInput + | Prisma.ProjectOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the position for searching for Projects. */ - cursor?: Prisma.ProjectWhereUniqueInput + cursor?: Prisma.ProjectWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Projects from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Projects. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * + * * Filter by unique combinations of Projects. */ - distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] -} + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]; +}; /** * Project findFirstOrThrow */ -export type ProjectFindFirstOrThrowArgs = { +export type ProjectFindFirstOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null + include?: Prisma.ProjectInclude | null; /** * Filter, which Project to fetch. */ - where?: Prisma.ProjectWhereInput + where?: Prisma.ProjectWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Projects to fetch. */ - orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + orderBy?: + | Prisma.ProjectOrderByWithRelationInput + | Prisma.ProjectOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the position for searching for Projects. */ - cursor?: Prisma.ProjectWhereUniqueInput + cursor?: Prisma.ProjectWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Projects from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Projects. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * + * * Filter by unique combinations of Projects. */ - distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] -} + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]; +}; /** * Project findMany */ -export type ProjectFindManyArgs = { +export type ProjectFindManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null + include?: Prisma.ProjectInclude | null; /** * Filter, which Projects to fetch. */ - where?: Prisma.ProjectWhereInput + where?: Prisma.ProjectWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Projects to fetch. */ - orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] + orderBy?: + | Prisma.ProjectOrderByWithRelationInput + | Prisma.ProjectOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the position for listing Projects. */ - cursor?: Prisma.ProjectWhereUniqueInput + cursor?: Prisma.ProjectWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Projects from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Projects. */ - skip?: number - distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] -} + skip?: number; + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[]; +}; /** * Project create */ -export type ProjectCreateArgs = { +export type ProjectCreateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null + include?: Prisma.ProjectInclude | null; /** * The data needed to create a Project. */ - data: Prisma.XOR -} + data: Prisma.XOR< + Prisma.ProjectCreateInput, + Prisma.ProjectUncheckedCreateInput + >; +}; /** * Project createMany */ -export type ProjectCreateManyArgs = { +export type ProjectCreateManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * The data used to create many Projects. */ - data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] -} + data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[]; +}; /** * Project createManyAndReturn */ -export type ProjectCreateManyAndReturnArgs = { +export type ProjectCreateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelectCreateManyAndReturn | null + select?: Prisma.ProjectSelectCreateManyAndReturn | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * The data used to create many Projects. */ - data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] -} + data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[]; +}; /** * Project update */ -export type ProjectUpdateArgs = { +export type ProjectUpdateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null + include?: Prisma.ProjectInclude | null; /** * The data needed to update a Project. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.ProjectUpdateInput, + Prisma.ProjectUncheckedUpdateInput + >; /** * Choose, which Project to update. */ - where: Prisma.ProjectWhereUniqueInput -} + where: Prisma.ProjectWhereUniqueInput; +}; /** * Project updateMany */ -export type ProjectUpdateManyArgs = { +export type ProjectUpdateManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * The data used to update Projects. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.ProjectUpdateManyMutationInput, + Prisma.ProjectUncheckedUpdateManyInput + >; /** * Filter which Projects to update */ - where?: Prisma.ProjectWhereInput + where?: Prisma.ProjectWhereInput; /** * Limit how many Projects to update. */ - limit?: number -} + limit?: number; +}; /** * Project updateManyAndReturn */ -export type ProjectUpdateManyAndReturnArgs = { +export type ProjectUpdateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelectUpdateManyAndReturn | null + select?: Prisma.ProjectSelectUpdateManyAndReturn | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * The data used to update Projects. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.ProjectUpdateManyMutationInput, + Prisma.ProjectUncheckedUpdateManyInput + >; /** * Filter which Projects to update */ - where?: Prisma.ProjectWhereInput + where?: Prisma.ProjectWhereInput; /** * Limit how many Projects to update. */ - limit?: number -} + limit?: number; +}; /** * Project upsert */ -export type ProjectUpsertArgs = { +export type ProjectUpsertArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null + include?: Prisma.ProjectInclude | null; /** * The filter to search for the Project to update in case it exists. */ - where: Prisma.ProjectWhereUniqueInput + where: Prisma.ProjectWhereUniqueInput; /** * In case the Project found by the `where` argument doesn't exist, create a new Project with this data. */ - create: Prisma.XOR + create: Prisma.XOR< + Prisma.ProjectCreateInput, + Prisma.ProjectUncheckedCreateInput + >; /** * In case the Project was found with the provided `where` argument, update it with this data. */ - update: Prisma.XOR -} + update: Prisma.XOR< + Prisma.ProjectUpdateInput, + Prisma.ProjectUncheckedUpdateInput + >; +}; /** * Project delete */ -export type ProjectDeleteArgs = { +export type ProjectDeleteArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null + include?: Prisma.ProjectInclude | null; /** * Filter which Project to delete. */ - where: Prisma.ProjectWhereUniqueInput -} + where: Prisma.ProjectWhereUniqueInput; +}; /** * Project deleteMany */ -export type ProjectDeleteManyArgs = { +export type ProjectDeleteManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which Projects to delete */ - where?: Prisma.ProjectWhereInput + where?: Prisma.ProjectWhereInput; /** * Limit how many Projects to delete. */ - limit?: number -} + limit?: number; +}; /** * Project.deployments */ -export type Project$deploymentsArgs = { +export type Project$deploymentsArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Deployment */ - select?: Prisma.DeploymentSelect | null + select?: Prisma.DeploymentSelect | null; /** * Omit specific fields from the Deployment */ - omit?: Prisma.DeploymentOmit | null + omit?: Prisma.DeploymentOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.DeploymentInclude | null - where?: Prisma.DeploymentWhereInput - orderBy?: Prisma.DeploymentOrderByWithRelationInput | Prisma.DeploymentOrderByWithRelationInput[] - cursor?: Prisma.DeploymentWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.DeploymentScalarFieldEnum | Prisma.DeploymentScalarFieldEnum[] -} + include?: Prisma.DeploymentInclude | null; + where?: Prisma.DeploymentWhereInput; + orderBy?: + | Prisma.DeploymentOrderByWithRelationInput + | Prisma.DeploymentOrderByWithRelationInput[]; + cursor?: Prisma.DeploymentWhereUniqueInput; + take?: number; + skip?: number; + distinct?: + | Prisma.DeploymentScalarFieldEnum + | Prisma.DeploymentScalarFieldEnum[]; +}; /** * Project.pipelines */ -export type Project$pipelinesArgs = { +export type Project$pipelinesArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Pipeline */ - select?: Prisma.PipelineSelect | null + select?: Prisma.PipelineSelect | null; /** * Omit specific fields from the Pipeline */ - omit?: Prisma.PipelineOmit | null + omit?: Prisma.PipelineOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.PipelineInclude | null - where?: Prisma.PipelineWhereInput - orderBy?: Prisma.PipelineOrderByWithRelationInput | Prisma.PipelineOrderByWithRelationInput[] - cursor?: Prisma.PipelineWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[] -} + include?: Prisma.PipelineInclude | null; + where?: Prisma.PipelineWhereInput; + orderBy?: + | Prisma.PipelineOrderByWithRelationInput + | Prisma.PipelineOrderByWithRelationInput[]; + cursor?: Prisma.PipelineWhereUniqueInput; + take?: number; + skip?: number; + distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[]; +}; /** * Project without action */ -export type ProjectDefaultArgs = { +export type ProjectDefaultArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Project */ - select?: Prisma.ProjectSelect | null + select?: Prisma.ProjectSelect | null; /** * Omit specific fields from the Project */ - omit?: Prisma.ProjectOmit | null + omit?: Prisma.ProjectOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.ProjectInclude | null -} + include?: Prisma.ProjectInclude | null; +}; diff --git a/apps/server/generated/models/Step.ts b/apps/server/generated/models/Step.ts index 41b2e9d..82a9dc1 100644 --- a/apps/server/generated/models/Step.ts +++ b/apps/server/generated/models/Step.ts @@ -1,741 +1,875 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @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" +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 StepModel = + runtime.Types.Result.DefaultSelection; export type AggregateStep = { - _count: StepCountAggregateOutputType | null - _avg: StepAvgAggregateOutputType | null - _sum: StepSumAggregateOutputType | null - _min: StepMinAggregateOutputType | null - _max: StepMaxAggregateOutputType | null -} + _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 -} + 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 -} + 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 -} + 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 -} + 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 -} - + 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 -} + id?: true; + order?: true; + valid?: true; + pipelineId?: true; +}; export type StepSumAggregateInputType = { - id?: true - order?: true - valid?: true - pipelineId?: true -} + 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 -} + 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 -} + 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 -} + 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 = { +export type StepAggregateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which Step to aggregate. */ - where?: Prisma.StepWhereInput + 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[] + 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 + 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 + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Steps. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Count returned Steps - **/ - _count?: true | StepCountAggregateInputType + **/ + _count?: true | StepCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to average - **/ - _avg?: StepAvgAggregateInputType + **/ + _avg?: StepAvgAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to sum - **/ - _sum?: StepSumAggregateInputType + **/ + _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 + **/ + _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 -} + **/ + _max?: StepMaxAggregateInputType; +}; export type GetStepAggregateType = { - [P in keyof T & keyof AggregateStep]: P extends '_count' | 'count' + [P in keyof T & keyof AggregateStep]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType - : 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 StepGroupByArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + 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 -} + 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.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 -} + 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< + Prisma.PipelineScalarRelationFilter, + Prisma.PipelineWhereInput + >; +}; 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 -} + 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 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< + Prisma.PipelineScalarRelationFilter, + Prisma.PipelineWhereInput + >; + }, + '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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + every?: Prisma.StepWhereInput; + some?: Prisma.StepWhereInput; + none?: Prisma.StepWhereInput; +}; export type StepOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} + _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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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[] -} + create?: + | Prisma.XOR< + Prisma.StepCreateWithoutPipelineInput, + Prisma.StepUncheckedCreateWithoutPipelineInput + > + | 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[] -} + create?: + | Prisma.XOR< + Prisma.StepCreateWithoutPipelineInput, + Prisma.StepUncheckedCreateWithoutPipelineInput + > + | 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[] -} + create?: + | Prisma.XOR< + Prisma.StepCreateWithoutPipelineInput, + Prisma.StepUncheckedCreateWithoutPipelineInput + > + | 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[] -} + create?: + | Prisma.XOR< + Prisma.StepCreateWithoutPipelineInput, + Prisma.StepUncheckedCreateWithoutPipelineInput + > + | 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 -} + 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 -} + 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 -} + where: Prisma.StepWhereUniqueInput; + create: Prisma.XOR< + Prisma.StepCreateWithoutPipelineInput, + Prisma.StepUncheckedCreateWithoutPipelineInput + >; +}; export type StepCreateManyPipelineInputEnvelope = { - data: Prisma.StepCreateManyPipelineInput | Prisma.StepCreateManyPipelineInput[] -} + data: + | Prisma.StepCreateManyPipelineInput + | Prisma.StepCreateManyPipelineInput[]; +}; export type StepUpsertWithWhereUniqueWithoutPipelineInput = { - where: Prisma.StepWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} + where: Prisma.StepWhereUniqueInput; + update: Prisma.XOR< + Prisma.StepUpdateWithoutPipelineInput, + Prisma.StepUncheckedUpdateWithoutPipelineInput + >; + create: Prisma.XOR< + Prisma.StepCreateWithoutPipelineInput, + Prisma.StepUncheckedCreateWithoutPipelineInput + >; +}; export type StepUpdateWithWhereUniqueWithoutPipelineInput = { - where: Prisma.StepWhereUniqueInput - data: Prisma.XOR -} + where: Prisma.StepWhereUniqueInput; + data: Prisma.XOR< + Prisma.StepUpdateWithoutPipelineInput, + Prisma.StepUncheckedUpdateWithoutPipelineInput + >; +}; export type StepUpdateManyWithWhereWithoutPipelineInput = { - where: Prisma.StepScalarWhereInput - data: Prisma.XOR -} + where: Prisma.StepScalarWhereInput; + data: Prisma.XOR< + Prisma.StepUpdateManyMutationInput, + Prisma.StepUncheckedUpdateManyWithoutPipelineInput + >; +}; 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 -} + 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 -} + 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 -} + 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 -} + 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 -} + 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< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = 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< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = 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 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 StepSelectUpdateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = 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 -} + 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 StepOmit< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'name' + | 'order' + | 'script' + | 'valid' + | 'createdAt' + | 'updatedAt' + | 'createdBy' + | 'updatedBy' + | 'pipelineId', + ExtArgs['result']['step'] +>; +export type StepInclude< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + pipeline?: boolean | Prisma.PipelineDefaultArgs; +}; +export type StepIncludeCreateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + pipeline?: boolean | Prisma.PipelineDefaultArgs; +}; +export type StepIncludeUpdateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + pipeline?: boolean | Prisma.PipelineDefaultArgs; +}; -export type $StepPayload = { - name: "Step" +export type $StepPayload< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + 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: {} -} + 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 StepGetPayload< + S extends boolean | null | undefined | StepDefaultArgs, +> = runtime.Types.Result.GetResult; -export type StepCountArgs = - Omit & { - select?: StepCountAggregateInputType | true - } +export type StepCountArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: StepCountAggregateInputType | true; +}; -export interface StepDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Step'], meta: { name: 'Step' } } +export interface StepDelegate< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [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 @@ -747,7 +881,19 @@ export interface StepDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StepClient< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find one Step that matches the filter or throw an error with `error.code='P2025'` @@ -761,7 +907,19 @@ export interface StepDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StepClient< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first Step that matches the filter. @@ -776,7 +934,19 @@ export interface StepDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__StepClient< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first Step that matches the filter or @@ -792,7 +962,19 @@ export interface StepDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__StepClient< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find zero or more Steps that matches the filter. @@ -802,15 +984,24 @@ export interface StepDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'findMany', + GlobalOmitOptions + > + >; /** * Create a Step. @@ -822,9 +1013,21 @@ export interface StepDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StepClient< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Create many Steps. @@ -836,9 +1039,11 @@ export interface StepDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Create many Steps and returns the data saved in the database. @@ -850,7 +1055,7 @@ export interface StepDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + >; /** * Delete a Step. @@ -874,9 +1088,21 @@ export interface StepDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StepClient< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Update one Step. @@ -891,9 +1117,21 @@ export interface StepDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StepClient< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Delete zero or more Steps. @@ -905,9 +1143,11 @@ export interface StepDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Steps. @@ -924,9 +1164,11 @@ export interface StepDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Steps and returns the data updated in the database. @@ -941,7 +1183,7 @@ export interface StepDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + >; /** * Create or update one Step. @@ -975,8 +1226,19 @@ export interface StepDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__StepClient< + runtime.Types.Result.GetResult< + Prisma.$StepPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Count the number of Steps. @@ -990,7 +1252,7 @@ export interface StepDelegate( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -999,7 +1261,7 @@ export interface StepDelegate : number - > + >; /** * Allows you to perform aggregations operations on a Step. @@ -1024,8 +1286,10 @@ export interface StepDelegate(args: Prisma.Subset): Prisma.PrismaPromise> + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise>; /** * Group by Step. @@ -1043,8 +1307,8 @@ export interface StepDelegate>>, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, 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 + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: 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; + : 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; } /** @@ -1115,455 +1386,543 @@ readonly fields: StepFieldRefs; * 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> +export interface Prisma__StepClient< + T, + Null = never, + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise'; + pipeline = {}>( + args?: Prisma.Subset>, + ): Prisma.Prisma__PipelineClient< + | runtime.Types.Result.GetResult< + Prisma.$PipelinePayload, + 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 + 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 + 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 + 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'> + 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 = { +export type StepFindUniqueArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null + include?: Prisma.StepInclude | null; /** * Filter, which Step to fetch. */ - where: Prisma.StepWhereUniqueInput -} + where: Prisma.StepWhereUniqueInput; +}; /** * Step findUniqueOrThrow */ -export type StepFindUniqueOrThrowArgs = { +export type StepFindUniqueOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null + include?: Prisma.StepInclude | null; /** * Filter, which Step to fetch. */ - where: Prisma.StepWhereUniqueInput -} + where: Prisma.StepWhereUniqueInput; +}; /** * Step findFirst */ -export type StepFindFirstArgs = { +export type StepFindFirstArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null + include?: Prisma.StepInclude | null; /** * Filter, which Step to fetch. */ - where?: Prisma.StepWhereInput + 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[] + 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 + 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 + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Steps. */ - skip?: number + 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[] -} + distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[]; +}; /** * Step findFirstOrThrow */ -export type StepFindFirstOrThrowArgs = { +export type StepFindFirstOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null + include?: Prisma.StepInclude | null; /** * Filter, which Step to fetch. */ - where?: Prisma.StepWhereInput + 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[] + 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 + 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 + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Steps. */ - skip?: number + 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[] -} + distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[]; +}; /** * Step findMany */ -export type StepFindManyArgs = { +export type StepFindManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null + include?: Prisma.StepInclude | null; /** * Filter, which Steps to fetch. */ - where?: Prisma.StepWhereInput + 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[] + 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 + 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 + 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[] -} + skip?: number; + distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[]; +}; /** * Step create */ -export type StepCreateArgs = { +export type StepCreateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null + include?: Prisma.StepInclude | null; /** * The data needed to create a Step. */ - data: Prisma.XOR -} + data: Prisma.XOR; +}; /** * Step createMany */ -export type StepCreateManyArgs = { +export type StepCreateManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * The data used to create many Steps. */ - data: Prisma.StepCreateManyInput | Prisma.StepCreateManyInput[] -} + data: Prisma.StepCreateManyInput | Prisma.StepCreateManyInput[]; +}; /** * Step createManyAndReturn */ -export type StepCreateManyAndReturnArgs = { +export type StepCreateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelectCreateManyAndReturn | null + select?: Prisma.StepSelectCreateManyAndReturn | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * The data used to create many Steps. */ - data: Prisma.StepCreateManyInput | Prisma.StepCreateManyInput[] + data: Prisma.StepCreateManyInput | Prisma.StepCreateManyInput[]; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepIncludeCreateManyAndReturn | null -} + include?: Prisma.StepIncludeCreateManyAndReturn | null; +}; /** * Step update */ -export type StepUpdateArgs = { +export type StepUpdateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null + include?: Prisma.StepInclude | null; /** * The data needed to update a Step. */ - data: Prisma.XOR + data: Prisma.XOR; /** * Choose, which Step to update. */ - where: Prisma.StepWhereUniqueInput -} + where: Prisma.StepWhereUniqueInput; +}; /** * Step updateMany */ -export type StepUpdateManyArgs = { +export type StepUpdateManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * The data used to update Steps. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.StepUpdateManyMutationInput, + Prisma.StepUncheckedUpdateManyInput + >; /** * Filter which Steps to update */ - where?: Prisma.StepWhereInput + where?: Prisma.StepWhereInput; /** * Limit how many Steps to update. */ - limit?: number -} + limit?: number; +}; /** * Step updateManyAndReturn */ -export type StepUpdateManyAndReturnArgs = { +export type StepUpdateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelectUpdateManyAndReturn | null + select?: Prisma.StepSelectUpdateManyAndReturn | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * The data used to update Steps. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.StepUpdateManyMutationInput, + Prisma.StepUncheckedUpdateManyInput + >; /** * Filter which Steps to update */ - where?: Prisma.StepWhereInput + where?: Prisma.StepWhereInput; /** * Limit how many Steps to update. */ - limit?: number + limit?: number; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepIncludeUpdateManyAndReturn | null -} + include?: Prisma.StepIncludeUpdateManyAndReturn | null; +}; /** * Step upsert */ -export type StepUpsertArgs = { +export type StepUpsertArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null + include?: Prisma.StepInclude | null; /** * The filter to search for the Step to update in case it exists. */ - where: Prisma.StepWhereUniqueInput + 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 + create: Prisma.XOR; /** * In case the Step was found with the provided `where` argument, update it with this data. */ - update: Prisma.XOR -} + update: Prisma.XOR; +}; /** * Step delete */ -export type StepDeleteArgs = { +export type StepDeleteArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null + include?: Prisma.StepInclude | null; /** * Filter which Step to delete. */ - where: Prisma.StepWhereUniqueInput -} + where: Prisma.StepWhereUniqueInput; +}; /** * Step deleteMany */ -export type StepDeleteManyArgs = { +export type StepDeleteManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which Steps to delete */ - where?: Prisma.StepWhereInput + where?: Prisma.StepWhereInput; /** * Limit how many Steps to delete. */ - limit?: number -} + limit?: number; +}; /** * Step without action */ -export type StepDefaultArgs = { +export type StepDefaultArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the Step */ - select?: Prisma.StepSelect | null + select?: Prisma.StepSelect | null; /** * Omit specific fields from the Step */ - omit?: Prisma.StepOmit | null + omit?: Prisma.StepOmit | null; /** * Choose, which related nodes to fetch as well */ - include?: Prisma.StepInclude | null -} + include?: Prisma.StepInclude | null; +}; diff --git a/apps/server/generated/models/User.ts b/apps/server/generated/models/User.ts index 66c481a..a2e96ce 100644 --- a/apps/server/generated/models/User.ts +++ b/apps/server/generated/models/User.ts @@ -1,581 +1,643 @@ - /* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file -// @ts-nocheck +// @ts-nocheck /* * This file exports the `User` 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" +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 User - * + * */ -export type UserModel = runtime.Types.Result.DefaultSelection +export type UserModel = + runtime.Types.Result.DefaultSelection; export type AggregateUser = { - _count: UserCountAggregateOutputType | null - _avg: UserAvgAggregateOutputType | null - _sum: UserSumAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} + _count: UserCountAggregateOutputType | null; + _avg: UserAvgAggregateOutputType | null; + _sum: UserSumAggregateOutputType | null; + _min: UserMinAggregateOutputType | null; + _max: UserMaxAggregateOutputType | null; +}; export type UserAvgAggregateOutputType = { - id: number | null - valid: number | null -} + id: number | null; + valid: number | null; +}; export type UserSumAggregateOutputType = { - id: number | null - valid: number | null -} + id: number | null; + valid: number | null; +}; export type UserMinAggregateOutputType = { - id: number | null - username: string | null - login: string | null - email: string | null - avatar_url: string | null - active: boolean | null - valid: number | null - createdAt: Date | null - updatedAt: Date | null - createdBy: string | null - updatedBy: string | null -} + id: number | null; + username: string | null; + login: string | null; + email: string | null; + avatar_url: string | null; + active: boolean | null; + valid: number | null; + createdAt: Date | null; + updatedAt: Date | null; + createdBy: string | null; + updatedBy: string | null; +}; export type UserMaxAggregateOutputType = { - id: number | null - username: string | null - login: string | null - email: string | null - avatar_url: string | null - active: boolean | null - valid: number | null - createdAt: Date | null - updatedAt: Date | null - createdBy: string | null - updatedBy: string | null -} + id: number | null; + username: string | null; + login: string | null; + email: string | null; + avatar_url: string | null; + active: boolean | null; + valid: number | null; + createdAt: Date | null; + updatedAt: Date | null; + createdBy: string | null; + updatedBy: string | null; +}; export type UserCountAggregateOutputType = { - id: number - username: number - login: number - email: number - avatar_url: number - active: number - valid: number - createdAt: number - updatedAt: number - createdBy: number - updatedBy: number - _all: number -} - + id: number; + username: number; + login: number; + email: number; + avatar_url: number; + active: number; + valid: number; + createdAt: number; + updatedAt: number; + createdBy: number; + updatedBy: number; + _all: number; +}; export type UserAvgAggregateInputType = { - id?: true - valid?: true -} + id?: true; + valid?: true; +}; export type UserSumAggregateInputType = { - id?: true - valid?: true -} + id?: true; + valid?: true; +}; export type UserMinAggregateInputType = { - id?: true - username?: true - login?: true - email?: true - avatar_url?: true - active?: true - valid?: true - createdAt?: true - updatedAt?: true - createdBy?: true - updatedBy?: true -} + id?: true; + username?: true; + login?: true; + email?: true; + avatar_url?: true; + active?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; +}; export type UserMaxAggregateInputType = { - id?: true - username?: true - login?: true - email?: true - avatar_url?: true - active?: true - valid?: true - createdAt?: true - updatedAt?: true - createdBy?: true - updatedBy?: true -} + id?: true; + username?: true; + login?: true; + email?: true; + avatar_url?: true; + active?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; +}; export type UserCountAggregateInputType = { - id?: true - username?: true - login?: true - email?: true - avatar_url?: true - active?: true - valid?: true - createdAt?: true - updatedAt?: true - createdBy?: true - updatedBy?: true - _all?: true -} + id?: true; + username?: true; + login?: true; + email?: true; + avatar_url?: true; + active?: true; + valid?: true; + createdAt?: true; + updatedAt?: true; + createdBy?: true; + updatedBy?: true; + _all?: true; +}; -export type UserAggregateArgs = { +export type UserAggregateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which User to aggregate. */ - where?: Prisma.UserWhereInput + where?: Prisma.UserWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Users to fetch. */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + orderBy?: + | Prisma.UserOrderByWithRelationInput + | Prisma.UserOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the start position */ - cursor?: Prisma.UserWhereUniqueInput + cursor?: Prisma.UserWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Users from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Users. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Count returned Users - **/ - _count?: true | UserCountAggregateInputType + **/ + _count?: true | UserCountAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to average - **/ - _avg?: UserAvgAggregateInputType + **/ + _avg?: UserAvgAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to sum - **/ - _sum?: UserSumAggregateInputType + **/ + _sum?: UserSumAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to find the minimum value - **/ - _min?: UserMinAggregateInputType + **/ + _min?: UserMinAggregateInputType; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * + * * Select which fields to find the maximum value - **/ - _max?: UserMaxAggregateInputType -} + **/ + _max?: UserMaxAggregateInputType; +}; export type GetUserAggregateType = { - [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' + [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType - : Prisma.GetScalarType -} + : Prisma.GetScalarType; +}; - - - -export type UserGroupByArgs = { - where?: Prisma.UserWhereInput - orderBy?: Prisma.UserOrderByWithAggregationInput | Prisma.UserOrderByWithAggregationInput[] - by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum - having?: Prisma.UserScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: UserCountAggregateInputType | true - _avg?: UserAvgAggregateInputType - _sum?: UserSumAggregateInputType - _min?: UserMinAggregateInputType - _max?: UserMaxAggregateInputType -} +export type UserGroupByArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + where?: Prisma.UserWhereInput; + orderBy?: + | Prisma.UserOrderByWithAggregationInput + | Prisma.UserOrderByWithAggregationInput[]; + by: Prisma.UserScalarFieldEnum[] | Prisma.UserScalarFieldEnum; + having?: Prisma.UserScalarWhereWithAggregatesInput; + take?: number; + skip?: number; + _count?: UserCountAggregateInputType | true; + _avg?: UserAvgAggregateInputType; + _sum?: UserSumAggregateInputType; + _min?: UserMinAggregateInputType; + _max?: UserMaxAggregateInputType; +}; export type UserGroupByOutputType = { - id: number - username: string - login: string - email: string - avatar_url: string | null - active: boolean - valid: number - createdAt: Date - updatedAt: Date - createdBy: string - updatedBy: string - _count: UserCountAggregateOutputType | null - _avg: UserAvgAggregateOutputType | null - _sum: UserSumAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} + id: number; + username: string; + login: string; + email: string; + avatar_url: string | null; + active: boolean; + valid: number; + createdAt: Date; + updatedAt: Date; + createdBy: string; + updatedBy: string; + _count: UserCountAggregateOutputType | null; + _avg: UserAvgAggregateOutputType | null; + _sum: UserSumAggregateOutputType | null; + _min: UserMinAggregateOutputType | null; + _max: UserMaxAggregateOutputType | null; +}; type GetUserGroupByPayload = Prisma.PrismaPromise< Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof UserGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType + Prisma.PickEnumerable & { + [P in keyof T & keyof UserGroupByOutputType]: P extends '_count' + ? T[P] extends boolean + ? number : Prisma.GetScalarType - } - > + : Prisma.GetScalarType; + } > - - +>; export type UserWhereInput = { - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - id?: Prisma.IntFilter<"User"> | number - username?: Prisma.StringFilter<"User"> | string - login?: Prisma.StringFilter<"User"> | string - email?: Prisma.StringFilter<"User"> | string - avatar_url?: Prisma.StringNullableFilter<"User"> | string | null - active?: Prisma.BoolFilter<"User"> | boolean - valid?: Prisma.IntFilter<"User"> | number - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string - createdBy?: Prisma.StringFilter<"User"> | string - updatedBy?: Prisma.StringFilter<"User"> | string -} + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]; + OR?: Prisma.UserWhereInput[]; + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]; + id?: Prisma.IntFilter<'User'> | number; + username?: Prisma.StringFilter<'User'> | string; + login?: Prisma.StringFilter<'User'> | string; + email?: Prisma.StringFilter<'User'> | string; + avatar_url?: Prisma.StringNullableFilter<'User'> | string | null; + active?: Prisma.BoolFilter<'User'> | boolean; + valid?: Prisma.IntFilter<'User'> | number; + createdAt?: Prisma.DateTimeFilter<'User'> | Date | string; + updatedAt?: Prisma.DateTimeFilter<'User'> | Date | string; + createdBy?: Prisma.StringFilter<'User'> | string; + updatedBy?: Prisma.StringFilter<'User'> | string; +}; export type UserOrderByWithRelationInput = { - id?: Prisma.SortOrder - username?: Prisma.SortOrder - login?: Prisma.SortOrder - email?: Prisma.SortOrder - avatar_url?: Prisma.SortOrderInput | Prisma.SortOrder - active?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + username?: Prisma.SortOrder; + login?: Prisma.SortOrder; + email?: Prisma.SortOrder; + avatar_url?: Prisma.SortOrderInput | Prisma.SortOrder; + active?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; +}; -export type UserWhereUniqueInput = Prisma.AtLeast<{ - id?: number - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - username?: Prisma.StringFilter<"User"> | string - login?: Prisma.StringFilter<"User"> | string - email?: Prisma.StringFilter<"User"> | string - avatar_url?: Prisma.StringNullableFilter<"User"> | string | null - active?: Prisma.BoolFilter<"User"> | boolean - valid?: Prisma.IntFilter<"User"> | number - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string - createdBy?: Prisma.StringFilter<"User"> | string - updatedBy?: Prisma.StringFilter<"User"> | string -}, "id"> +export type UserWhereUniqueInput = Prisma.AtLeast< + { + id?: number; + AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[]; + OR?: Prisma.UserWhereInput[]; + NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[]; + username?: Prisma.StringFilter<'User'> | string; + login?: Prisma.StringFilter<'User'> | string; + email?: Prisma.StringFilter<'User'> | string; + avatar_url?: Prisma.StringNullableFilter<'User'> | string | null; + active?: Prisma.BoolFilter<'User'> | boolean; + valid?: Prisma.IntFilter<'User'> | number; + createdAt?: Prisma.DateTimeFilter<'User'> | Date | string; + updatedAt?: Prisma.DateTimeFilter<'User'> | Date | string; + createdBy?: Prisma.StringFilter<'User'> | string; + updatedBy?: Prisma.StringFilter<'User'> | string; + }, + 'id' +>; export type UserOrderByWithAggregationInput = { - id?: Prisma.SortOrder - username?: Prisma.SortOrder - login?: Prisma.SortOrder - email?: Prisma.SortOrder - avatar_url?: Prisma.SortOrderInput | Prisma.SortOrder - active?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder - _count?: Prisma.UserCountOrderByAggregateInput - _avg?: Prisma.UserAvgOrderByAggregateInput - _max?: Prisma.UserMaxOrderByAggregateInput - _min?: Prisma.UserMinOrderByAggregateInput - _sum?: Prisma.UserSumOrderByAggregateInput -} + id?: Prisma.SortOrder; + username?: Prisma.SortOrder; + login?: Prisma.SortOrder; + email?: Prisma.SortOrder; + avatar_url?: Prisma.SortOrderInput | Prisma.SortOrder; + active?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; + _count?: Prisma.UserCountOrderByAggregateInput; + _avg?: Prisma.UserAvgOrderByAggregateInput; + _max?: Prisma.UserMaxOrderByAggregateInput; + _min?: Prisma.UserMinOrderByAggregateInput; + _sum?: Prisma.UserSumOrderByAggregateInput; +}; export type UserScalarWhereWithAggregatesInput = { - AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - OR?: Prisma.UserScalarWhereWithAggregatesInput[] - NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - id?: Prisma.IntWithAggregatesFilter<"User"> | number - username?: Prisma.StringWithAggregatesFilter<"User"> | string - login?: Prisma.StringWithAggregatesFilter<"User"> | string - email?: Prisma.StringWithAggregatesFilter<"User"> | string - avatar_url?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - active?: Prisma.BoolWithAggregatesFilter<"User"> | boolean - valid?: Prisma.IntWithAggregatesFilter<"User"> | number - createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string - createdBy?: Prisma.StringWithAggregatesFilter<"User"> | string - updatedBy?: Prisma.StringWithAggregatesFilter<"User"> | string -} + AND?: + | Prisma.UserScalarWhereWithAggregatesInput + | Prisma.UserScalarWhereWithAggregatesInput[]; + OR?: Prisma.UserScalarWhereWithAggregatesInput[]; + NOT?: + | Prisma.UserScalarWhereWithAggregatesInput + | Prisma.UserScalarWhereWithAggregatesInput[]; + id?: Prisma.IntWithAggregatesFilter<'User'> | number; + username?: Prisma.StringWithAggregatesFilter<'User'> | string; + login?: Prisma.StringWithAggregatesFilter<'User'> | string; + email?: Prisma.StringWithAggregatesFilter<'User'> | string; + avatar_url?: + | Prisma.StringNullableWithAggregatesFilter<'User'> + | string + | null; + active?: Prisma.BoolWithAggregatesFilter<'User'> | boolean; + valid?: Prisma.IntWithAggregatesFilter<'User'> | number; + createdAt?: Prisma.DateTimeWithAggregatesFilter<'User'> | Date | string; + updatedAt?: Prisma.DateTimeWithAggregatesFilter<'User'> | Date | string; + createdBy?: Prisma.StringWithAggregatesFilter<'User'> | string; + updatedBy?: Prisma.StringWithAggregatesFilter<'User'> | string; +}; export type UserCreateInput = { - username: string - login: string - email: string - avatar_url?: string | null - active?: boolean - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy?: string - updatedBy?: string -} + username: string; + login: string; + email: string; + avatar_url?: string | null; + active?: boolean; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy?: string; + updatedBy?: string; +}; export type UserUncheckedCreateInput = { - id?: number - username: string - login: string - email: string - avatar_url?: string | null - active?: boolean - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy?: string - updatedBy?: string -} + id?: number; + username: string; + login: string; + email: string; + avatar_url?: string | null; + active?: boolean; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy?: string; + updatedBy?: string; +}; export type UserUpdateInput = { - username?: Prisma.StringFieldUpdateOperationsInput | string - login?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - avatar_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - active?: Prisma.BoolFieldUpdateOperationsInput | boolean - valid?: Prisma.IntFieldUpdateOperationsInput | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.StringFieldUpdateOperationsInput | string -} + username?: Prisma.StringFieldUpdateOperationsInput | string; + login?: Prisma.StringFieldUpdateOperationsInput | string; + email?: Prisma.StringFieldUpdateOperationsInput | string; + avatar_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + active?: Prisma.BoolFieldUpdateOperationsInput | boolean; + valid?: Prisma.IntFieldUpdateOperationsInput | number; + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + createdBy?: Prisma.StringFieldUpdateOperationsInput | string; + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string; +}; export type UserUncheckedUpdateInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - username?: Prisma.StringFieldUpdateOperationsInput | string - login?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - avatar_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - active?: Prisma.BoolFieldUpdateOperationsInput | boolean - valid?: Prisma.IntFieldUpdateOperationsInput | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.StringFieldUpdateOperationsInput | string -} + id?: Prisma.IntFieldUpdateOperationsInput | number; + username?: Prisma.StringFieldUpdateOperationsInput | string; + login?: Prisma.StringFieldUpdateOperationsInput | string; + email?: Prisma.StringFieldUpdateOperationsInput | string; + avatar_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + active?: Prisma.BoolFieldUpdateOperationsInput | boolean; + valid?: Prisma.IntFieldUpdateOperationsInput | number; + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + createdBy?: Prisma.StringFieldUpdateOperationsInput | string; + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string; +}; export type UserCreateManyInput = { - id?: number - username: string - login: string - email: string - avatar_url?: string | null - active?: boolean - valid?: number - createdAt?: Date | string - updatedAt?: Date | string - createdBy?: string - updatedBy?: string -} + id?: number; + username: string; + login: string; + email: string; + avatar_url?: string | null; + active?: boolean; + valid?: number; + createdAt?: Date | string; + updatedAt?: Date | string; + createdBy?: string; + updatedBy?: string; +}; export type UserUpdateManyMutationInput = { - username?: Prisma.StringFieldUpdateOperationsInput | string - login?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - avatar_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - active?: Prisma.BoolFieldUpdateOperationsInput | boolean - valid?: Prisma.IntFieldUpdateOperationsInput | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.StringFieldUpdateOperationsInput | string -} + username?: Prisma.StringFieldUpdateOperationsInput | string; + login?: Prisma.StringFieldUpdateOperationsInput | string; + email?: Prisma.StringFieldUpdateOperationsInput | string; + avatar_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + active?: Prisma.BoolFieldUpdateOperationsInput | boolean; + valid?: Prisma.IntFieldUpdateOperationsInput | number; + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + createdBy?: Prisma.StringFieldUpdateOperationsInput | string; + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string; +}; export type UserUncheckedUpdateManyInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - username?: Prisma.StringFieldUpdateOperationsInput | string - login?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - avatar_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - active?: Prisma.BoolFieldUpdateOperationsInput | boolean - valid?: Prisma.IntFieldUpdateOperationsInput | number - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdBy?: Prisma.StringFieldUpdateOperationsInput | string - updatedBy?: Prisma.StringFieldUpdateOperationsInput | string -} + id?: Prisma.IntFieldUpdateOperationsInput | number; + username?: Prisma.StringFieldUpdateOperationsInput | string; + login?: Prisma.StringFieldUpdateOperationsInput | string; + email?: Prisma.StringFieldUpdateOperationsInput | string; + avatar_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null; + active?: Prisma.BoolFieldUpdateOperationsInput | boolean; + valid?: Prisma.IntFieldUpdateOperationsInput | number; + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string; + createdBy?: Prisma.StringFieldUpdateOperationsInput | string; + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string; +}; export type UserCountOrderByAggregateInput = { - id?: Prisma.SortOrder - username?: Prisma.SortOrder - login?: Prisma.SortOrder - email?: Prisma.SortOrder - avatar_url?: Prisma.SortOrder - active?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + username?: Prisma.SortOrder; + login?: Prisma.SortOrder; + email?: Prisma.SortOrder; + avatar_url?: Prisma.SortOrder; + active?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; +}; export type UserAvgOrderByAggregateInput = { - id?: Prisma.SortOrder - valid?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + valid?: Prisma.SortOrder; +}; export type UserMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - username?: Prisma.SortOrder - login?: Prisma.SortOrder - email?: Prisma.SortOrder - avatar_url?: Prisma.SortOrder - active?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + username?: Prisma.SortOrder; + login?: Prisma.SortOrder; + email?: Prisma.SortOrder; + avatar_url?: Prisma.SortOrder; + active?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; +}; export type UserMinOrderByAggregateInput = { - id?: Prisma.SortOrder - username?: Prisma.SortOrder - login?: Prisma.SortOrder - email?: Prisma.SortOrder - avatar_url?: Prisma.SortOrder - active?: Prisma.SortOrder - valid?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - createdBy?: Prisma.SortOrder - updatedBy?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + username?: Prisma.SortOrder; + login?: Prisma.SortOrder; + email?: Prisma.SortOrder; + avatar_url?: Prisma.SortOrder; + active?: Prisma.SortOrder; + valid?: Prisma.SortOrder; + createdAt?: Prisma.SortOrder; + updatedAt?: Prisma.SortOrder; + createdBy?: Prisma.SortOrder; + updatedBy?: Prisma.SortOrder; +}; export type UserSumOrderByAggregateInput = { - id?: Prisma.SortOrder - valid?: Prisma.SortOrder -} + id?: Prisma.SortOrder; + valid?: Prisma.SortOrder; +}; export type BoolFieldUpdateOperationsInput = { - set?: boolean -} + set?: boolean; +}; +export type UserSelect< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean; + username?: boolean; + login?: boolean; + email?: boolean; + avatar_url?: boolean; + active?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + }, + ExtArgs['result']['user'] +>; +export type UserSelectCreateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean; + username?: boolean; + login?: boolean; + email?: boolean; + avatar_url?: boolean; + active?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + }, + ExtArgs['result']['user'] +>; -export type UserSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - username?: boolean - login?: boolean - email?: boolean - avatar_url?: boolean - active?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - username?: boolean - login?: boolean - email?: boolean - avatar_url?: boolean - active?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - username?: boolean - login?: boolean - email?: boolean - avatar_url?: boolean - active?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean -}, ExtArgs["result"]["user"]> +export type UserSelectUpdateManyAndReturn< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetSelect< + { + id?: boolean; + username?: boolean; + login?: boolean; + email?: boolean; + avatar_url?: boolean; + active?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + }, + ExtArgs['result']['user'] +>; export type UserSelectScalar = { - id?: boolean - username?: boolean - login?: boolean - email?: boolean - avatar_url?: boolean - active?: boolean - valid?: boolean - createdAt?: boolean - updatedAt?: boolean - createdBy?: boolean - updatedBy?: boolean -} + id?: boolean; + username?: boolean; + login?: boolean; + email?: boolean; + avatar_url?: boolean; + active?: boolean; + valid?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; +}; -export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "username" | "login" | "email" | "avatar_url" | "active" | "valid" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy", ExtArgs["result"]["user"]> +export type UserOmit< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = runtime.Types.Extensions.GetOmit< + | 'id' + | 'username' + | 'login' + | 'email' + | 'avatar_url' + | 'active' + | 'valid' + | 'createdAt' + | 'updatedAt' + | 'createdBy' + | 'updatedBy', + ExtArgs['result']['user'] +>; -export type $UserPayload = { - name: "User" - objects: {} - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: number - username: string - login: string - email: string - avatar_url: string | null - active: boolean - valid: number - createdAt: Date - updatedAt: Date - createdBy: string - updatedBy: string - }, ExtArgs["result"]["user"]> - composites: {} -} +export type $UserPayload< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { + name: 'User'; + objects: {}; + scalars: runtime.Types.Extensions.GetPayloadResult< + { + id: number; + username: string; + login: string; + email: string; + avatar_url: string | null; + active: boolean; + valid: number; + createdAt: Date; + updatedAt: Date; + createdBy: string; + updatedBy: string; + }, + ExtArgs['result']['user'] + >; + composites: {}; +}; -export type UserGetPayload = runtime.Types.Result.GetResult +export type UserGetPayload< + S extends boolean | null | undefined | UserDefaultArgs, +> = runtime.Types.Result.GetResult; -export type UserCountArgs = - Omit & { - select?: UserCountAggregateInputType | true - } +export type UserCountArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = Omit & { + select?: UserCountAggregateInputType | true; +}; -export interface UserDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['User'], meta: { name: 'User' } } +export interface UserDelegate< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> { + [K: symbol]: { + types: Prisma.TypeMap['model']['User']; + meta: { name: 'User' }; + }; /** * Find zero or one User that matches the filter. * @param {UserFindUniqueArgs} args - Arguments to find a User @@ -587,7 +649,19 @@ export interface UserDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findUnique( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUnique', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find one User that matches the filter or throw an error with `error.code='P2025'` @@ -601,7 +675,19 @@ export interface UserDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findUniqueOrThrow( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findUniqueOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first User that matches the filter. @@ -616,7 +702,19 @@ export interface UserDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + findFirst( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findFirst', + GlobalOmitOptions + > | null, + null, + ExtArgs, + GlobalOmitOptions + >; /** * Find the first User that matches the filter or @@ -632,7 +730,19 @@ export interface UserDelegate(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + findFirstOrThrow( + args?: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findFirstOrThrow', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Find zero or more Users that matches the filter. @@ -642,15 +752,24 @@ export interface UserDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + findMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'findMany', + GlobalOmitOptions + > + >; /** * Create a User. @@ -662,9 +781,21 @@ export interface UserDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + create( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'create', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Create many Users. @@ -676,9 +807,11 @@ export interface UserDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + createMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Create many Users and returns the data saved in the database. @@ -690,7 +823,7 @@ export interface UserDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + createManyAndReturn( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'createManyAndReturn', + GlobalOmitOptions + > + >; /** * Delete a User. @@ -714,9 +856,21 @@ export interface UserDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + delete( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'delete', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Update one User. @@ -731,9 +885,21 @@ export interface UserDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + update( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'update', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Delete zero or more Users. @@ -745,9 +911,11 @@ export interface UserDelegate(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + deleteMany( + args?: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Users. @@ -764,9 +932,11 @@ export interface UserDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise + updateMany( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise; /** * Update zero or more Users and returns the data updated in the database. @@ -781,7 +951,7 @@ export interface UserDelegate(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + updateManyAndReturn( + args: Prisma.SelectSubset>, + ): Prisma.PrismaPromise< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'updateManyAndReturn', + GlobalOmitOptions + > + >; /** * Create or update one User. @@ -815,8 +994,19 @@ export interface UserDelegate(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - + upsert( + args: Prisma.SelectSubset>, + ): Prisma.Prisma__UserClient< + runtime.Types.Result.GetResult< + Prisma.$UserPayload, + T, + 'upsert', + GlobalOmitOptions + >, + never, + ExtArgs, + GlobalOmitOptions + >; /** * Count the number of Users. @@ -830,7 +1020,7 @@ export interface UserDelegate( args?: Prisma.Subset, ): Prisma.PrismaPromise< @@ -839,7 +1029,7 @@ export interface UserDelegate : number - > + >; /** * Allows you to perform aggregations operations on a User. @@ -864,8 +1054,10 @@ export interface UserDelegate(args: Prisma.Subset): Prisma.PrismaPromise> + **/ + aggregate( + args: Prisma.Subset, + ): Prisma.PrismaPromise>; /** * Group by User. @@ -883,8 +1075,8 @@ export interface UserDelegate>>, + OrderFields extends Prisma.ExcludeUnderscoreKeys< + Prisma.Keys> + >, 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 + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: 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 ? GetUserGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the User model - */ -readonly fields: UserFieldRefs; + : 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 + ? GetUserGroupByPayload + : Prisma.PrismaPromise; + /** + * Fields of the User model + */ + readonly fields: UserFieldRefs; } /** @@ -955,407 +1154,482 @@ readonly fields: UserFieldRefs; * Because we want to prevent naming conflicts as mentioned in * https://github.com/prisma/prisma-client-js/issues/707 */ -export interface Prisma__UserClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" +export interface Prisma__UserClient< + T, + Null = never, + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, + GlobalOmitOptions = {}, +> extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: 'PrismaPromise'; /** * 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 + 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 + 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 + finally( + onfinally?: (() => void) | undefined | null, + ): runtime.Types.Utils.JsPromise; } - - - /** * Fields of the User model */ export interface UserFieldRefs { - readonly id: Prisma.FieldRef<"User", 'Int'> - readonly username: Prisma.FieldRef<"User", 'String'> - readonly login: Prisma.FieldRef<"User", 'String'> - readonly email: Prisma.FieldRef<"User", 'String'> - readonly avatar_url: Prisma.FieldRef<"User", 'String'> - readonly active: Prisma.FieldRef<"User", 'Boolean'> - readonly valid: Prisma.FieldRef<"User", 'Int'> - readonly createdAt: Prisma.FieldRef<"User", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'> - readonly createdBy: Prisma.FieldRef<"User", 'String'> - readonly updatedBy: Prisma.FieldRef<"User", 'String'> + readonly id: Prisma.FieldRef<'User', 'Int'>; + readonly username: Prisma.FieldRef<'User', 'String'>; + readonly login: Prisma.FieldRef<'User', 'String'>; + readonly email: Prisma.FieldRef<'User', 'String'>; + readonly avatar_url: Prisma.FieldRef<'User', 'String'>; + readonly active: Prisma.FieldRef<'User', 'Boolean'>; + readonly valid: Prisma.FieldRef<'User', 'Int'>; + readonly createdAt: Prisma.FieldRef<'User', 'DateTime'>; + readonly updatedAt: Prisma.FieldRef<'User', 'DateTime'>; + readonly createdBy: Prisma.FieldRef<'User', 'String'>; + readonly updatedBy: Prisma.FieldRef<'User', 'String'>; } - // Custom InputTypes /** * User findUnique */ -export type UserFindUniqueArgs = { +export type UserFindUniqueArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * Filter, which User to fetch. */ - where: Prisma.UserWhereUniqueInput -} + where: Prisma.UserWhereUniqueInput; +}; /** * User findUniqueOrThrow */ -export type UserFindUniqueOrThrowArgs = { +export type UserFindUniqueOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * Filter, which User to fetch. */ - where: Prisma.UserWhereUniqueInput -} + where: Prisma.UserWhereUniqueInput; +}; /** * User findFirst */ -export type UserFindFirstArgs = { +export type UserFindFirstArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * Filter, which User to fetch. */ - where?: Prisma.UserWhereInput + where?: Prisma.UserWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Users to fetch. */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + orderBy?: + | Prisma.UserOrderByWithRelationInput + | Prisma.UserOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the position for searching for Users. */ - cursor?: Prisma.UserWhereUniqueInput + cursor?: Prisma.UserWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Users from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Users. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * + * * Filter by unique combinations of Users. */ - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]; +}; /** * User findFirstOrThrow */ -export type UserFindFirstOrThrowArgs = { +export type UserFindFirstOrThrowArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * Filter, which User to fetch. */ - where?: Prisma.UserWhereInput + where?: Prisma.UserWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Users to fetch. */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + orderBy?: + | Prisma.UserOrderByWithRelationInput + | Prisma.UserOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the position for searching for Users. */ - cursor?: Prisma.UserWhereUniqueInput + cursor?: Prisma.UserWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Users from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Users. */ - skip?: number + skip?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * + * * Filter by unique combinations of Users. */ - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]; +}; /** * User findMany */ -export type UserFindManyArgs = { +export type UserFindManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * Filter, which Users to fetch. */ - where?: Prisma.UserWhereInput + where?: Prisma.UserWhereInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * + * * Determine the order of Users to fetch. */ - orderBy?: Prisma.UserOrderByWithRelationInput | Prisma.UserOrderByWithRelationInput[] + orderBy?: + | Prisma.UserOrderByWithRelationInput + | Prisma.UserOrderByWithRelationInput[]; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * + * * Sets the position for listing Users. */ - cursor?: Prisma.UserWhereUniqueInput + cursor?: Prisma.UserWhereUniqueInput; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Take `±n` Users from the position of the cursor. */ - take?: number + take?: number; /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * + * * Skip the first `n` Users. */ - skip?: number - distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] -} + skip?: number; + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[]; +}; /** * User create */ -export type UserCreateArgs = { +export type UserCreateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * The data needed to create a User. */ - data: Prisma.XOR -} + data: Prisma.XOR; +}; /** * User createMany */ -export type UserCreateManyArgs = { +export type UserCreateManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * The data used to create many Users. */ - data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] -} + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]; +}; /** * User createManyAndReturn */ -export type UserCreateManyAndReturnArgs = { +export type UserCreateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelectCreateManyAndReturn | null + select?: Prisma.UserSelectCreateManyAndReturn | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * The data used to create many Users. */ - data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] -} + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[]; +}; /** * User update */ -export type UserUpdateArgs = { +export type UserUpdateArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * The data needed to update a User. */ - data: Prisma.XOR + data: Prisma.XOR; /** * Choose, which User to update. */ - where: Prisma.UserWhereUniqueInput -} + where: Prisma.UserWhereUniqueInput; +}; /** * User updateMany */ -export type UserUpdateManyArgs = { +export type UserUpdateManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * The data used to update Users. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.UserUpdateManyMutationInput, + Prisma.UserUncheckedUpdateManyInput + >; /** * Filter which Users to update */ - where?: Prisma.UserWhereInput + where?: Prisma.UserWhereInput; /** * Limit how many Users to update. */ - limit?: number -} + limit?: number; +}; /** * User updateManyAndReturn */ -export type UserUpdateManyAndReturnArgs = { +export type UserUpdateManyAndReturnArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelectUpdateManyAndReturn | null + select?: Prisma.UserSelectUpdateManyAndReturn | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * The data used to update Users. */ - data: Prisma.XOR + data: Prisma.XOR< + Prisma.UserUpdateManyMutationInput, + Prisma.UserUncheckedUpdateManyInput + >; /** * Filter which Users to update */ - where?: Prisma.UserWhereInput + where?: Prisma.UserWhereInput; /** * Limit how many Users to update. */ - limit?: number -} + limit?: number; +}; /** * User upsert */ -export type UserUpsertArgs = { +export type UserUpsertArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * The filter to search for the User to update in case it exists. */ - where: Prisma.UserWhereUniqueInput + where: Prisma.UserWhereUniqueInput; /** * In case the User found by the `where` argument doesn't exist, create a new User with this data. */ - create: Prisma.XOR + create: Prisma.XOR; /** * In case the User was found with the provided `where` argument, update it with this data. */ - update: Prisma.XOR -} + update: Prisma.XOR; +}; /** * User delete */ -export type UserDeleteArgs = { +export type UserDeleteArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null + omit?: Prisma.UserOmit | null; /** * Filter which User to delete. */ - where: Prisma.UserWhereUniqueInput -} + where: Prisma.UserWhereUniqueInput; +}; /** * User deleteMany */ -export type UserDeleteManyArgs = { +export type UserDeleteManyArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Filter which Users to delete */ - where?: Prisma.UserWhereInput + where?: Prisma.UserWhereInput; /** * Limit how many Users to delete. */ - limit?: number -} + limit?: number; +}; /** * User without action */ -export type UserDefaultArgs = { +export type UserDefaultArgs< + ExtArgs extends + runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, +> = { /** * Select specific fields to fetch from the User */ - select?: Prisma.UserSelect | null + select?: Prisma.UserSelect | null; /** * Omit specific fields from the User */ - omit?: Prisma.UserOmit | null -} + omit?: Prisma.UserOmit | null; +}; diff --git a/apps/server/libs/git-manager.ts b/apps/server/libs/git-manager.ts index 2946bd1..bb70c7a 100644 --- a/apps/server/libs/git-manager.ts +++ b/apps/server/libs/git-manager.ts @@ -3,9 +3,9 @@ * 封装 Git 操作:克隆、更新、分支切换等 */ -import { $ } from 'zx'; import fs from 'node:fs/promises'; import path from 'node:path'; +import { $ } from 'zx'; import { log } from './logger'; /** diff --git a/apps/server/libs/gitea.ts b/apps/server/libs/gitea.ts index 7f8bc3b..1d22269 100644 --- a/apps/server/libs/gitea.ts +++ b/apps/server/libs/gitea.ts @@ -38,26 +38,23 @@ class Gitea { clientId: process.env.GITEA_CLIENT_ID!, clientSecret: process.env.GITEA_CLIENT_SECRET!, redirectUri: process.env.GITEA_REDIRECT_URI!, - } + }; } async getToken(code: string) { const { giteaUrl, clientId, clientSecret, redirectUri } = this.config; console.log('this.config', this.config); - const response = await fetch( - `${giteaUrl}/login/oauth/access_token`, - { - method: 'POST', - headers: this.getHeaders(), - body: JSON.stringify({ - client_id: clientId, - client_secret: clientSecret, - code, - grant_type: 'authorization_code', - redirect_uri: redirectUri, - }), - }, - ); + const response = await fetch(`${giteaUrl}/login/oauth/access_token`, { + method: 'POST', + headers: this.getHeaders(), + body: JSON.stringify({ + client_id: clientId, + client_secret: clientSecret, + code, + grant_type: 'authorization_code', + redirect_uri: redirectUri, + }), + }); if (!response.ok) { console.log(await response.json()); throw new Error(`Fetch failed: ${response.status}`); @@ -108,19 +105,23 @@ class Gitea { * @param accessToken 访问令牌 * @param sha 分支名称或提交SHA */ - async getCommits(owner: string, repo: string, accessToken: string, sha?: string) { - const url = new URL(`${this.config.giteaUrl}/api/v1/repos/${owner}/${repo}/commits`); + async getCommits( + owner: string, + repo: string, + accessToken: string, + sha?: string, + ) { + const url = new URL( + `${this.config.giteaUrl}/api/v1/repos/${owner}/${repo}/commits`, + ); if (sha) { url.searchParams.append('sha', sha); } - - const response = await fetch( - url.toString(), - { - method: 'GET', - headers: this.getHeaders(accessToken), - }, - ); + + const response = await fetch(url.toString(), { + method: 'GET', + headers: this.getHeaders(accessToken), + }); if (!response.ok) { throw new Error(`Fetch failed: ${response.status}`); } @@ -133,7 +134,7 @@ class Gitea { 'Content-Type': 'application/json', }; if (accessToken) { - headers['Authorization'] = `token ${accessToken}`; + headers.Authorization = `token ${accessToken}`; } return headers; } diff --git a/apps/server/libs/pipeline-template.ts b/apps/server/libs/pipeline-template.ts index 70dc2b5..cf84028 100644 --- a/apps/server/libs/pipeline-template.ts +++ b/apps/server/libs/pipeline-template.ts @@ -17,11 +17,6 @@ export const DEFAULT_PIPELINE_TEMPLATES: PipelineTemplate[] = [ name: 'Git Clone Pipeline', description: '默认的Git克隆流水线,用于从仓库克隆代码', steps: [ - { - name: 'Clone Repository', - order: 0, - script: '# 克隆指定commit的代码\ngit init\ngit remote add origin $REPOSITORY_URL\ngit fetch --depth 1 origin $COMMIT_HASH\ngit checkout -q FETCH_HEAD\n\n# 显示当前提交信息\ngit log --oneline -1', - }, { name: 'Install Dependencies', order: 1, @@ -36,51 +31,21 @@ export const DEFAULT_PIPELINE_TEMPLATES: PipelineTemplate[] = [ name: 'Build Project', order: 3, script: '# 构建项目\nnpm run build', - } - ] - }, - { - name: 'Sparse Checkout Pipeline', - description: '稀疏检出流水线,适用于monorepo项目,只获取指定目录的代码', - steps: [ - { - name: 'Sparse Checkout Repository', - order: 0, - script: '# 进行稀疏检出指定目录的代码\ngit init\ngit remote add origin $REPOSITORY_URL\ngit config core.sparseCheckout true\necho "$SPARSE_CHECKOUT_PATHS" > .git/info/sparse-checkout\ngit fetch --depth 1 origin $COMMIT_HASH\ngit checkout -q FETCH_HEAD\n\n# 显示当前提交信息\ngit log --oneline -1', }, - { - name: 'Install Dependencies', - order: 1, - script: '# 安装项目依赖\nnpm install', - }, - { - name: 'Run Tests', - order: 2, - script: '# 运行测试\nnpm test', - }, - { - name: 'Build Project', - order: 3, - script: '# 构建项目\nnpm run build', - } - ] + ], }, { name: 'Simple Deploy Pipeline', description: '简单的部署流水线,包含基本的构建和部署步骤', steps: [ - { - name: 'Clone Repository', - order: 0, - script: '# 克隆指定commit的代码\ngit init\ngit remote add origin $REPOSITORY_URL\ngit fetch --depth 1 origin $COMMIT_HASH\ngit checkout -q FETCH_HEAD', - }, { name: 'Build and Deploy', order: 1, - script: '# 构建并部署项目\nnpm run build\n\n# 部署到目标服务器\n# 这里可以添加具体的部署命令', - } - ] - } + script: + '# 构建并部署项目\nnpm run build\n\n# 部署到目标服务器\n# 这里可以添加具体的部署命令', + }, + ], + }, ]; /** @@ -94,10 +59,10 @@ export async function initializePipelineTemplates(): Promise { const existingTemplates = await prisma.pipeline.findMany({ where: { name: { - in: DEFAULT_PIPELINE_TEMPLATES.map(template => template.name) + in: DEFAULT_PIPELINE_TEMPLATES.map((template) => template.name), }, - valid: 1 - } + valid: 1, + }, }); // 如果没有现有的模板,则创建默认模板 @@ -113,8 +78,8 @@ export async function initializePipelineTemplates(): Promise { createdBy: 'system', updatedBy: 'system', valid: 1, - projectId: null // 模板不属于任何特定项目 - } + projectId: null, // 模板不属于任何特定项目 + }, }); // 创建模板步骤 @@ -127,8 +92,8 @@ export async function initializePipelineTemplates(): Promise { pipelineId: pipeline.id, createdBy: 'system', updatedBy: 'system', - valid: 1 - } + valid: 1, + }, }); } @@ -148,25 +113,27 @@ export async function initializePipelineTemplates(): Promise { /** * 获取所有可用的流水线模板 */ -export async function getAvailableTemplates(): Promise> { +export async function getAvailableTemplates(): Promise< + Array<{ id: number; name: string; description: string }> +> { try { const templates = await prisma.pipeline.findMany({ where: { projectId: null, // 模板流水线没有关联的项目 - valid: 1 + valid: 1, }, select: { id: true, name: true, - description: true - } + description: true, + }, }); // 处理可能为null的description字段 - return templates.map(template => ({ + return templates.map((template) => ({ id: template.id, name: template.name, - description: template.description || '' + description: template.description || '', })); } catch (error) { console.error('Failed to get pipeline templates:', error); @@ -185,7 +152,7 @@ export async function createPipelineFromTemplate( templateId: number, projectId: number, pipelineName: string, - pipelineDescription: string + pipelineDescription: string, ): Promise { try { // 获取模板流水线及其步骤 @@ -193,18 +160,18 @@ export async function createPipelineFromTemplate( where: { id: templateId, projectId: null, // 确保是模板流水线 - valid: 1 + valid: 1, }, include: { steps: { where: { - valid: 1 + valid: 1, }, orderBy: { - order: 'asc' - } - } - } + order: 'asc', + }, + }, + }, }); if (!templatePipeline) { @@ -219,8 +186,8 @@ export async function createPipelineFromTemplate( projectId: projectId, createdBy: 'system', updatedBy: 'system', - valid: 1 - } + valid: 1, + }, }); // 复制模板步骤到新流水线 @@ -233,12 +200,14 @@ export async function createPipelineFromTemplate( pipelineId: newPipeline.id, createdBy: 'system', updatedBy: 'system', - valid: 1 - } + valid: 1, + }, }); } - console.log(`Created pipeline from template ${templateId}: ${newPipeline.name}`); + console.log( + `Created pipeline from template ${templateId}: ${newPipeline.name}`, + ); return newPipeline.id; } catch (error) { console.error('Failed to create pipeline from template:', error); diff --git a/apps/server/libs/route-scanner.ts b/apps/server/libs/route-scanner.ts index c676abd..757f20d 100644 --- a/apps/server/libs/route-scanner.ts +++ b/apps/server/libs/route-scanner.ts @@ -1,6 +1,10 @@ -import type Koa from 'koa'; import KoaRouter from '@koa/router'; -import { getRouteMetadata, getControllerPrefix, type RouteMetadata } from '../decorators/route.ts'; +import type Koa from 'koa'; +import { + getControllerPrefix, + getRouteMetadata, + type RouteMetadata, +} from '../decorators/route.ts'; import { createSuccessResponse } from '../middlewares/exception.ts'; /** @@ -33,7 +37,7 @@ export class RouteScanner { * 注册多个控制器类 */ registerControllers(controllers: ControllerClass[]): void { - controllers.forEach(controller => this.registerController(controller)); + controllers.forEach((controller) => this.registerController(controller)); } /** @@ -50,9 +54,12 @@ export class RouteScanner { const routes: RouteMetadata[] = getRouteMetadata(ControllerClass); // 注册每个路由 - routes.forEach(route => { + routes.forEach((route) => { const fullPath = this.buildFullPath(controllerPrefix, route.path); - const handler = this.wrapControllerMethod(controllerInstance, route.propertyKey); + const handler = this.wrapControllerMethod( + controllerInstance, + route.propertyKey, + ); // 根据HTTP方法注册路由 switch (route.method) { @@ -87,10 +94,10 @@ export class RouteScanner { let fullPath = ''; if (cleanControllerPrefix) { - fullPath += '/' + cleanControllerPrefix; + fullPath += `/${cleanControllerPrefix}`; } if (cleanRoutePath) { - fullPath += '/' + cleanRoutePath; + fullPath += `/${cleanRoutePath}`; } // 如果路径为空,返回根路径 @@ -105,11 +112,11 @@ export class RouteScanner { // 调用控制器方法 const method = instance[methodName]; if (typeof method !== 'function') { - ctx.throw(401, 'Not Found') + ctx.throw(401, 'Not Found'); } // 绑定this并调用方法 - const result = await method.call(instance, ctx, next) ?? null; + const result = (await method.call(instance, ctx, next)) ?? null; ctx.body = createSuccessResponse(result); }; @@ -133,19 +140,29 @@ export class RouteScanner { /** * 获取已注册的路由信息(用于调试) */ - getRegisteredRoutes(): Array<{ method: string; path: string; controller: string; action: string }> { - const routes: Array<{ method: string; path: string; controller: string; action: string }> = []; + getRegisteredRoutes(): Array<{ + method: string; + path: string; + controller: string; + action: string; + }> { + const routes: Array<{ + method: string; + path: string; + controller: string; + action: string; + }> = []; - this.controllers.forEach(ControllerClass => { + this.controllers.forEach((ControllerClass) => { const controllerPrefix = getControllerPrefix(ControllerClass); const routeMetadata = getRouteMetadata(ControllerClass); - routeMetadata.forEach(route => { + routeMetadata.forEach((route) => { routes.push({ method: route.method, path: this.buildFullPath(controllerPrefix, route.path), controller: ControllerClass.name, - action: route.propertyKey + action: route.propertyKey, }); }); }); diff --git a/apps/server/middlewares/body-parser.ts b/apps/server/middlewares/body-parser.ts index ba2a918..0d39c2f 100644 --- a/apps/server/middlewares/body-parser.ts +++ b/apps/server/middlewares/body-parser.ts @@ -1,5 +1,5 @@ -import bodyParser from 'koa-bodyparser'; import type Koa from 'koa'; +import bodyParser from 'koa-bodyparser'; import type { Middleware } from './types.ts'; /** diff --git a/apps/server/middlewares/exception.ts b/apps/server/middlewares/exception.ts index fdd0273..3ccd0d0 100644 --- a/apps/server/middlewares/exception.ts +++ b/apps/server/middlewares/exception.ts @@ -1,7 +1,7 @@ import type Koa from 'koa'; import { z } from 'zod'; -import type { Middleware } from './types.ts'; import { log } from '../libs/logger.ts'; +import type { Middleware } from './types.ts'; /** * 统一响应体结构 @@ -58,15 +58,26 @@ export class Exception implements Middleware { const errorMessage = firstError?.message || '参数验证失败'; const fieldPath = firstError?.path?.join('.') || 'unknown'; - log.info('Exception', 'Zod validation failed: %s at %s', errorMessage, fieldPath); - this.sendResponse(ctx, 1003, errorMessage, { - field: fieldPath, - validationErrors: error.issues.map(issue => ({ - field: issue.path.join('.'), - message: issue.message, - code: issue.code, - })) - }, 400); + log.info( + 'Exception', + 'Zod validation failed: %s at %s', + errorMessage, + fieldPath, + ); + this.sendResponse( + ctx, + 1003, + errorMessage, + { + field: fieldPath, + validationErrors: error.issues.map((issue) => ({ + field: issue.path.join('.'), + message: issue.message, + code: issue.code, + })), + }, + 400, + ); } else if (error instanceof BusinessError) { // 业务异常 this.sendResponse(ctx, error.code, error.message, null, error.httpStatus); diff --git a/apps/server/middlewares/index.ts b/apps/server/middlewares/index.ts index 9103c5f..00564e1 100644 --- a/apps/server/middlewares/index.ts +++ b/apps/server/middlewares/index.ts @@ -1,11 +1,11 @@ -import { Router } from './router.ts'; -import { Exception } from './exception.ts'; -import { BodyParser } from './body-parser.ts'; -import { Session } from './session.ts'; -import { CORS } from './cors.ts'; -import { HttpLogger } from './logger.ts'; import type Koa from 'koa'; import { Authorization } from './authorization.ts'; +import { BodyParser } from './body-parser.ts'; +import { CORS } from './cors.ts'; +import { Exception } from './exception.ts'; +import { HttpLogger } from './logger.ts'; +import { Router } from './router.ts'; +import { Session } from './session.ts'; /** * 初始化中间件 diff --git a/apps/server/middlewares/logger.ts b/apps/server/middlewares/logger.ts index 60d194f..59532f4 100644 --- a/apps/server/middlewares/logger.ts +++ b/apps/server/middlewares/logger.ts @@ -1,4 +1,5 @@ -import Koa, { type Context } from 'koa'; +import type Koa from 'koa'; +import type { Context } from 'koa'; import { log } from '../libs/logger.ts'; import type { Middleware } from './types.ts'; @@ -8,7 +9,7 @@ export class HttpLogger implements Middleware { const start = Date.now(); await next(); const ms = Date.now() - start; - log.info('HTTP', `${ctx.method} ${ctx.url} - ${ms}ms`) + log.info('HTTP', `${ctx.method} ${ctx.url} - ${ms}ms`); }); } } diff --git a/apps/server/middlewares/router.ts b/apps/server/middlewares/router.ts index 8740c12..2df84d0 100644 --- a/apps/server/middlewares/router.ts +++ b/apps/server/middlewares/router.ts @@ -1,17 +1,17 @@ import KoaRouter from '@koa/router'; import type Koa from 'koa'; -import type { Middleware } from './types.ts'; -import { RouteScanner } from '../libs/route-scanner.ts'; import { - ProjectController, - UserController, AuthController, DeploymentController, + GitController, PipelineController, + ProjectController, StepController, - GitController + UserController, } from '../controllers/index.ts'; import { log } from '../libs/logger.ts'; +import { RouteScanner } from '../libs/route-scanner.ts'; +import type { Middleware } from './types.ts'; export class Router implements Middleware { private router: KoaRouter; @@ -45,7 +45,7 @@ export class Router implements Middleware { DeploymentController, PipelineController, StepController, - GitController + GitController, ]); // 输出注册的路由信息 diff --git a/apps/server/middlewares/session.ts b/apps/server/middlewares/session.ts index 2c7010f..ce9af3d 100644 --- a/apps/server/middlewares/session.ts +++ b/apps/server/middlewares/session.ts @@ -1,5 +1,5 @@ -import session from 'koa-session'; import type Koa from 'koa'; +import session from 'koa-session'; import type { Middleware } from './types.ts'; export class Session implements Middleware { diff --git a/apps/server/middlewares/types.ts b/apps/server/middlewares/types.ts index 15f4739..9815419 100644 --- a/apps/server/middlewares/types.ts +++ b/apps/server/middlewares/types.ts @@ -1,4 +1,4 @@ -import type Koa from 'koa'; +import type Koa from 'koa'; export abstract class Middleware { abstract apply(app: Koa, options?: unknown): void; diff --git a/apps/server/prisma/data/dev.db b/apps/server/prisma/data/dev.db index 8c2bc4207dc1ebd6461e8ae81fa0e6cec3aa5f21..ef1715fda95d953e679dfb1ed41a6152a5d2bfde 100644 GIT binary patch delta 976 zcmZoTz|^pSd4jayS_TFNULfWHVrCFMQO8(uErVWF0Z5dS$&Gu1&+PA5 zPqBtGxiJ}SY}~|X!N$b~RKmc}CdI|xCdS1suBpk`#s{Po6&btJOA?cEQe9FDa`G#4 zQ}ap?Ebhr~m`Yi~5{rsACo-2XO%7!$-h7ocj*ZiVnO$63nz7A(vklKoMqwQVrPRE# zfTGmm)RJN)g%H<>kjb0)-8Nt2z00^sfK`E&Pm6(1YqOw$0-suQFe5L6w05jJr@OnP zWJ`Ejes-d6a^~|jYo6?Ac(P;F%Y{3i&t5mV)IPi3IKnYB_D_7eqxpH?`lpMUfx;z~1*t&M;?$hf zDZ3^j!<5ANbGSk z<|bz5ZT{WG$|?m)UO>PE#NgxzPlHyVcxSQ$B|T8G>&^!!H&k0udECxHu8twD3L%b8 zKCTK%Aj!$Un9?ash?kp@I2-z;0y-3%9WGat}5Y_;(%nT`puV^s+st~83UAo Kpt-__wG#lOt2-zF delta 219 zcmZozz}#?vX@a!iVg?2VE+B>h_K7;i@{1Yt+O&B2e=u+|g);D7 line.trim() !== '') - .map((line) => this.addTimestamp(line, isError)) - .join('\n') + '\n' - ); + return `${content + .split('\n') + .filter((line) => line.trim() !== '') + .map((line) => this.addTimestamp(line, isError)) + .join('\n')}\n`; } /** @@ -270,7 +274,7 @@ export class PipelineRunner { try { // 添加步骤开始执行的时间戳 - logs += this.addTimestamp(`执行脚本: ${step.script}`) + '\n'; + logs += `${this.addTimestamp(`执行脚本: ${step.script}`)}\n`; // 使用zx执行脚本,设置项目目录为工作目录和环境变量 const script = step.script; @@ -291,10 +295,10 @@ export class PipelineRunner { logs += this.addTimestampToLines(result.stderr, true); } - logs += this.addTimestamp(`步骤执行完成`) + '\n'; + logs += `${this.addTimestamp(`步骤执行完成`)}\n`; } catch (error) { const errorMsg = `Error executing step "${step.name}": ${(error as Error).message}`; - logs += this.addTimestamp(errorMsg, true) + '\n'; + logs += `${this.addTimestamp(errorMsg, true)}\n`; log.error(this.TAG, errorMsg); throw error; } diff --git a/apps/web/src/hooks/useAsyncEffect.ts b/apps/web/src/hooks/useAsyncEffect.ts index 91cbdd9..2037d79 100644 --- a/apps/web/src/hooks/useAsyncEffect.ts +++ b/apps/web/src/hooks/useAsyncEffect.ts @@ -1,8 +1,8 @@ import type React from 'react'; -import { useEffect, useCallback } from 'react'; +import { useCallback, useEffect } from 'react'; export function useAsyncEffect( - effect: () => Promise void)>, + effect: () => Promise void)>, deps: React.DependencyList, ) { const callback = useCallback(effect, [...deps]); @@ -11,7 +11,7 @@ export function useAsyncEffect( const cleanupPromise = callback(); return () => { if (cleanupPromise instanceof Promise) { - cleanupPromise.then(cleanup => cleanup && cleanup()); + cleanupPromise.then((cleanup) => cleanup?.()); } }; }, [callback]); diff --git a/apps/web/src/index.tsx b/apps/web/src/index.tsx index 743ace8..caaaa77 100644 --- a/apps/web/src/index.tsx +++ b/apps/web/src/index.tsx @@ -2,7 +2,7 @@ import App from '@pages/App'; import ReactDOM from 'react-dom/client'; import { BrowserRouter } from 'react-router'; import { useGlobalStore } from './stores/global'; -import '@arco-design/web-react/es/_util/react-19-adapter' +import '@arco-design/web-react/es/_util/react-19-adapter'; const rootEl = document.getElementById('root'); diff --git a/apps/web/src/pages/project/detail/components/DeployModal.tsx b/apps/web/src/pages/project/detail/components/DeployModal.tsx index fe62066..cd875db 100644 --- a/apps/web/src/pages/project/detail/components/DeployModal.tsx +++ b/apps/web/src/pages/project/detail/components/DeployModal.tsx @@ -1,23 +1,24 @@ -import { - Button, - Form, - Input, - Message, - Modal, - Select, -} from '@arco-design/web-react'; -import { formatDateTime } from '../../../../utils/time'; -import { IconDelete, IconPlus } from '@arco-design/web-react/icon'; +import { Form, Input, Message, Modal, Select } from '@arco-design/web-react'; import { useCallback, useEffect, useState } from 'react'; -import type { Branch, Commit, Pipeline } from '../../types'; +import { formatDateTime } from '../../../../utils/time'; +import type { Branch, Commit, Pipeline, Project } from '../../types'; import { detailService } from '../service'; +interface EnvPreset { + key: string; + label: string; + type: 'select' | 'multiselect' | 'input'; + required?: boolean; + options?: Array<{ label: string; value: string }>; +} + interface DeployModalProps { visible: boolean; onCancel: () => void; onOk: () => void; pipelines: Pipeline[]; projectId: number; + project?: Project | null; } function DeployModal({ @@ -26,12 +27,29 @@ function DeployModal({ onOk, pipelines, projectId, + project, }: DeployModalProps) { const [form] = Form.useForm(); const [branches, setBranches] = useState([]); const [commits, setCommits] = useState([]); const [loading, setLoading] = useState(false); const [branchLoading, setBranchLoading] = useState(false); + const [envPresets, setEnvPresets] = useState([]); + + // 解析项目环境预设 + useEffect(() => { + if (project?.envPresets) { + try { + const presets = JSON.parse(project.envPresets); + setEnvPresets(presets); + } catch (error) { + console.error('解析环境预设失败:', error); + setEnvPresets([]); + } + } else { + setEnvPresets([]); + } + }, [project]); const fetchCommits = useCallback( async (branch: string) => { @@ -91,16 +109,27 @@ function DeployModal({ try { const values = await form.validate(); const selectedCommit = commits.find((c) => c.sha === values.commitHash); - const selectedPipeline = pipelines.find((p) => p.id === values.pipelineId); + const selectedPipeline = pipelines.find( + (p) => p.id === values.pipelineId, + ); if (!selectedCommit || !selectedPipeline) { return; } - // 格式化环境变量 - const env = values.envVars - ?.map((item: { key: string; value: string }) => `${item.key}=${item.value}`) - .join('\n'); + // 收集所有环境变量(从预设项中提取) + const envVars: Record = {}; + for (const preset of envPresets) { + const value = values[preset.key]; + if (value !== undefined && value !== null) { + // 对于 multiselect,将数组转为逗号分隔的字符串 + if (preset.type === 'multiselect' && Array.isArray(value)) { + envVars[preset.key] = value.join(','); + } else { + envVars[preset.key] = String(value); + } + } + } await detailService.createDeployment({ projectId, @@ -108,8 +137,7 @@ function DeployModal({ branch: values.branch, commitHash: selectedCommit.sha, commitMessage: selectedCommit.commit.message, - env: env, - sparseCheckoutPaths: values.sparseCheckoutPaths, + envVars, // 提交所有环境变量 }); Message.success('部署任务已创建'); @@ -128,126 +156,162 @@ function DeployModal({ onCancel={onCancel} autoFocus={false} focusLock={true} + style={{ width: 650 }} >

- - - + {/* 基本参数 */} +
+
+ 基本参数 +
- - - - - - - - - - - - -
环境变量
- - {(fields, { add, remove }) => ( -
- {fields.map((item, index) => ( -
- - - - = - - - -
+ + + + + + + + + + +
+ + {/* 环境变量预设 */} + {envPresets.length > 0 && ( +
+
+ 环境变量
- )} - + {envPresets.map((preset) => { + if (preset.type === 'select' && preset.options) { + return ( + + + + ); + } + + if (preset.type === 'multiselect' && preset.options) { + return ( + + + + ); + } + + if (preset.type === 'input') { + return ( + + + + ); + } + + return null; + })} +
+ )} ); diff --git a/apps/web/src/pages/project/detail/components/EnvPresetsEditor.tsx b/apps/web/src/pages/project/detail/components/EnvPresetsEditor.tsx new file mode 100644 index 0000000..e93ca13 --- /dev/null +++ b/apps/web/src/pages/project/detail/components/EnvPresetsEditor.tsx @@ -0,0 +1,214 @@ +import { Button, Checkbox, Input, Select, Space } from '@arco-design/web-react'; +import { IconDelete, IconPlus } from '@arco-design/web-react/icon'; +import { useEffect, useState } from 'react'; + +export interface EnvPreset { + key: string; + label: string; + type: 'select' | 'multiselect' | 'input'; + required?: boolean; // 是否必填 + options?: Array<{ label: string; value: string }>; +} + +interface EnvPresetsEditorProps { + value?: EnvPreset[]; + onChange?: (value: EnvPreset[]) => void; +} + +function EnvPresetsEditor({ value = [], onChange }: EnvPresetsEditorProps) { + const [presets, setPresets] = useState(value); + + // 当外部 value 变化时同步到内部状态 + useEffect(() => { + setPresets(value); + }, [value]); + + const handleAddPreset = () => { + const newPreset: EnvPreset = { + key: '', + label: '', + type: 'select', + options: [{ label: '', value: '' }], + }; + const newPresets = [...presets, newPreset]; + setPresets(newPresets); + onChange?.(newPresets); + }; + + const handleRemovePreset = (index: number) => { + const newPresets = presets.filter((_, i) => i !== index); + setPresets(newPresets); + onChange?.(newPresets); + }; + + const handlePresetChange = ( + index: number, + field: keyof EnvPreset, + val: string | boolean | EnvPreset['type'] | EnvPreset['options'], + ) => { + const newPresets = [...presets]; + newPresets[index] = { ...newPresets[index], [field]: val }; + setPresets(newPresets); + onChange?.(newPresets); + }; + + const handleAddOption = (presetIndex: number) => { + const newPresets = [...presets]; + if (!newPresets[presetIndex].options) { + newPresets[presetIndex].options = []; + } + newPresets[presetIndex].options?.push({ label: '', value: '' }); + setPresets(newPresets); + onChange?.(newPresets); + }; + + const handleRemoveOption = (presetIndex: number, optionIndex: number) => { + const newPresets = [...presets]; + newPresets[presetIndex].options = newPresets[presetIndex].options?.filter( + (_, i) => i !== optionIndex, + ); + setPresets(newPresets); + onChange?.(newPresets); + }; + + const handleOptionChange = ( + presetIndex: number, + optionIndex: number, + field: 'label' | 'value', + val: string, + ) => { + const newPresets = [...presets]; + if (newPresets[presetIndex].options) { + newPresets[presetIndex].options![optionIndex][field] = val; + setPresets(newPresets); + onChange?.(newPresets); + } + }; + + return ( +
+ {presets.map((preset, presetIndex) => ( +
+
+
+ 预设项 #{presetIndex + 1} +
+ +
+ + +
+ handlePresetChange(presetIndex, 'key', val)} + /> + + handlePresetChange(presetIndex, 'label', val) + } + /> +
+ +
+ + +
+ + handlePresetChange(presetIndex, 'required', checked) + } + > + 必填项 + +
+
+ + {(preset.type === 'select' || preset.type === 'multiselect') && ( +
+
选项:
+ {preset.options?.map((option, optionIndex) => ( +
+ + handleOptionChange( + presetIndex, + optionIndex, + 'label', + val, + ) + } + /> + + handleOptionChange( + presetIndex, + optionIndex, + 'value', + val, + ) + } + /> +
+ ))} + +
+ )} +
+
+ ))} + + +
+ ); +} + +export default EnvPresetsEditor; diff --git a/apps/web/src/pages/project/detail/index.tsx b/apps/web/src/pages/project/detail/index.tsx index 9babeff..e6ec46e 100644 --- a/apps/web/src/pages/project/detail/index.tsx +++ b/apps/web/src/pages/project/detail/index.tsx @@ -19,6 +19,7 @@ import { } from '@arco-design/web-react'; import { IconCode, + IconCommand, IconCopy, IconDelete, IconEdit, @@ -49,9 +50,12 @@ import { useEffect, useState } from 'react'; import { useNavigate, useParams } from 'react-router'; import { useAsyncEffect } from '../../../hooks/useAsyncEffect'; import { formatDateTime } from '../../../utils/time'; -import type { Deployment, Pipeline, Project, Step, WorkspaceDirStatus, WorkspaceStatus } from '../types'; +import type { Deployment, Pipeline, Project, Step } from '../types'; import DeployModal from './components/DeployModal'; import DeployRecordItem from './components/DeployRecordItem'; +import EnvPresetsEditor, { + type EnvPreset, +} from './components/EnvPresetsEditor'; import PipelineStepItem from './components/PipelineStepItem'; import { detailService } from './service'; @@ -84,7 +88,8 @@ function ProjectDetailPage() { null, ); const [pipelineModalVisible, setPipelineModalVisible] = useState(false); - const [editingPipeline, setEditingPipeline] = useState(null); + const [editingPipeline, setEditingPipeline] = + useState(null); const [form] = Form.useForm(); const [pipelineForm] = Form.useForm(); const [deployRecords, setDeployRecords] = useState([]); @@ -92,12 +97,18 @@ function ProjectDetailPage() { // 流水线模板相关状态 const [isCreatingFromTemplate, setIsCreatingFromTemplate] = useState(false); - const [selectedTemplateId, setSelectedTemplateId] = useState(null); - const [templates, setTemplates] = useState>([]); + const [selectedTemplateId, setSelectedTemplateId] = useState( + null, + ); + const [templates, setTemplates] = useState< + Array<{ id: number; name: string; description: string }> + >([]); // 项目设置相关状态 - const [projectEditModalVisible, setProjectEditModalVisible] = useState(false); + const [isEditingProject, setIsEditingProject] = useState(false); const [projectForm] = Form.useForm(); + const [envPresets, setEnvPresets] = useState([]); + const [envPresetsLoading, setEnvPresetsLoading] = useState(false); const { id } = useParams(); @@ -172,8 +183,14 @@ function ProjectDetailPage() { setDeployRecords(records); // 如果当前选中的记录正在运行,则更新选中记录 - const selectedRecord = records.find((r: Deployment) => r.id === selectedRecordId); - if (selectedRecord && (selectedRecord.status === 'running' || selectedRecord.status === 'pending')) { + const selectedRecord = records.find( + (r: Deployment) => r.id === selectedRecordId, + ); + if ( + selectedRecord && + (selectedRecord.status === 'running' || + selectedRecord.status === 'pending') + ) { // 保持当前选中状态,但更新数据 } } catch (error) { @@ -354,14 +371,15 @@ function ProjectDetailPage() { selectedTemplateId, Number(id), values.name, - values.description || '' + values.description || '', ); // 更新本地状态 - 需要转换步骤数据结构 - const transformedSteps = newPipeline.steps?.map(step => ({ - ...step, - enabled: step.valid === 1 - })) || []; + const transformedSteps = + newPipeline.steps?.map((step) => ({ + ...step, + enabled: step.valid === 1, + })) || []; const pipelineWithDefaults = { ...newPipeline, @@ -592,6 +610,21 @@ function ProjectDetailPage() { } }; + // 解析环境变量预设 + useEffect(() => { + if (detail?.envPresets) { + try { + const presets = JSON.parse(detail.envPresets); + setEnvPresets(presets); + } catch (error) { + console.error('解析环境变量预设失败:', error); + setEnvPresets([]); + } + } else { + setEnvPresets([]); + } + }, [detail]); + // 项目设置相关函数 const handleEditProject = () => { if (detail) { @@ -600,16 +633,21 @@ function ProjectDetailPage() { description: detail.description, repository: detail.repository, }); - setProjectEditModalVisible(true); + setIsEditingProject(true); } }; - const handleProjectEditSuccess = async () => { + const handleCancelEditProject = () => { + setIsEditingProject(false); + projectForm.resetFields(); + }; + + const handleSaveProject = async () => { try { const values = await projectForm.validate(); await detailService.updateProject(Number(id), values); Message.success('项目更新成功'); - setProjectEditModalVisible(false); + setIsEditingProject(false); // 刷新项目详情 if (id) { @@ -622,6 +660,27 @@ function ProjectDetailPage() { } }; + const handleSaveEnvPresets = async () => { + try { + setEnvPresetsLoading(true); + await detailService.updateProject(Number(id), { + envPresets: JSON.stringify(envPresets), + }); + Message.success('环境变量预设保存成功'); + + // 刷新项目详情 + if (id) { + const projectDetail = await detailService.getProjectDetail(Number(id)); + setDetail(projectDetail); + } + } catch (error) { + console.error('保存环境变量预设失败:', error); + Message.error('保存环境变量预设失败'); + } finally { + setEnvPresetsLoading(false); + } + }; + const handleDeleteProject = () => { Modal.confirm({ title: '删除项目', @@ -671,7 +730,7 @@ function ProjectDetailPage() { ); // 获取选中的流水线 - const selectedPipeline = pipelines.find( + const _selectedPipeline = pipelines.find( (pipeline) => pipeline.id === selectedPipelineId, ); @@ -681,11 +740,13 @@ function ProjectDetailPage() { const k = 1024; const sizes = ['B', 'KB', 'MB', 'GB']; const i = Math.floor(Math.log(bytes) / Math.log(k)); - return `${(bytes / Math.pow(k, i)).toFixed(2)} ${sizes[i]}`; + return `${(bytes / k ** i).toFixed(2)} ${sizes[i]}`; }; // 获取工作目录状态标签 - const getWorkspaceStatusTag = (status: string): { text: string; color: string } => { + const getWorkspaceStatusTag = ( + status: string, + ): { text: string; color: string } => { const statusMap: Record = { not_created: { text: '未创建', color: 'gray' }, empty: { text: '空目录', color: 'orange' }, @@ -703,7 +764,15 @@ function ProjectDetailPage() { const statusInfo = getWorkspaceStatusTag(workspaceStatus.status as string); return ( - 工作目录状态}> + + + 工作目录状态 + + } + > - {workspaceStatus.gitInfo.lastCommit} - {workspaceStatus.gitInfo.lastCommitMessage} + + {workspaceStatus.gitInfo.lastCommit} + + + {workspaceStatus.gitInfo.lastCommitMessage} + - ) : '-', + ) : ( + '-' + ), }, ]} /> {workspaceStatus.error && (
- {workspaceStatus.error} + + {workspaceStatus.error} +
)}
@@ -763,7 +842,15 @@ function ProjectDetailPage() { size="large" className="h-full flex flex-col [&>.arco-tabs-content]:flex-1 [&>.arco-tabs-content]:overflow-hidden [&>.arco-tabs-content_.arco-tabs-content-inner]:h-full [&>.arco-tabs-pane]:h-full" > - 部署记录} key="deployRecords"> + + + 部署记录 + + } + key="deployRecords" + >
{/* 左侧部署记录列表 */}
@@ -813,7 +900,9 @@ function ProjectDetailPage() { type="primary" icon={} size="small" - onClick={() => handleRetryDeployment(selectedRecord.id)} + onClick={() => + handleRetryDeployment(selectedRecord.id) + } > 重新执行 @@ -838,7 +927,15 @@ function ProjectDetailPage() {
- 流水线} key="pipeline"> + + + 流水线 + + } + key="pipeline" + >
{/* 左侧流水线列表 */}
@@ -951,9 +1048,7 @@ function ProjectDetailPage() { {pipeline.description}
- - {pipeline.steps?.length || 0} 个步骤 - + {pipeline.steps?.length || 0} 个步骤 {formatDateTime(pipeline.updatedAt)}
@@ -1005,7 +1100,11 @@ function ProjectDetailPage() { onDragEnd={handleDragEnd} > step.id) || []} + items={ + selectedPipeline.steps?.map( + (step) => step.id, + ) || [] + } strategy={verticalListSortingStrategy} >
@@ -1046,48 +1145,140 @@ function ProjectDetailPage() { {/* 项目设置标签页 */} - 项目设置}> + + + 项目设置 + + } + >
- -
- - -
+ {!isEditingProject ? ( + <> + +
+ + +
+ + ) : ( + <> +
+ + + + + + + + + +
+ 工作目录: {detail?.projectDir || '-'} +
+
+ 创建时间:{' '} + {formatDateTime(detail?.createdAt)} +
+
+
+ + +
+ + )}
{/* 工作目录状态 */} {renderWorkspaceStatus()}
+ + {/* 环境变量预设标签页 */} + + + 环境变量 + + } + > +
+ + 保存预设 + + } + > +
+ 配置项目的环境变量预设,在部署时可以选择这些预设值。支持单选、多选和输入框类型。 +
+ +
+
+
@@ -1139,7 +1330,9 @@ function ProjectDetailPage() {
{template.name}
-
{template.description}
+
+ {template.description} +
))} @@ -1155,10 +1348,7 @@ function ProjectDetailPage() { > - + - + - {/* 编辑项目模态框 */} - setProjectEditModalVisible(false)} - style={{ width: 500 }} - > -
- - - - - - - - - -
-
- setDeployModalVisible(false)} @@ -1286,6 +1432,7 @@ function ProjectDetailPage() { }} pipelines={pipelines} projectId={Number(id)} + project={detail} />
); diff --git a/apps/web/src/pages/project/detail/service.ts b/apps/web/src/pages/project/detail/service.ts index 554a0d6..8af91d6 100644 --- a/apps/web/src/pages/project/detail/service.ts +++ b/apps/web/src/pages/project/detail/service.ts @@ -1,5 +1,13 @@ import { type APIResponse, net } from '@shared'; -import type { Branch, Commit, Deployment, Pipeline, Project, Step, CreateDeploymentRequest } from '../types'; +import type { + Branch, + Commit, + CreateDeploymentRequest, + Deployment, + Pipeline, + Project, + Step, +} from '../types'; class DetailService { async getProject(id: string) { @@ -19,7 +27,9 @@ class DetailService { // 获取可用的流水线模板 async getPipelineTemplates() { - const { data } = await net.request>({ + const { data } = await net.request< + APIResponse<{ id: number; name: string; description: string }[]> + >({ url: '/api/pipelines/templates', }); return data; @@ -59,7 +69,7 @@ class DetailService { templateId: number, projectId: number, name: string, - description?: string + description?: string, ) { const { data } = await net.request>({ url: '/api/pipelines/from-template', @@ -68,7 +78,7 @@ class DetailService { templateId, projectId, name, - description + description, }, }); return data; diff --git a/apps/web/src/pages/project/list/components/CreateProjectModal.tsx b/apps/web/src/pages/project/list/components/CreateProjectModal.tsx index cfdab7a..685f146 100644 --- a/apps/web/src/pages/project/list/components/CreateProjectModal.tsx +++ b/apps/web/src/pages/project/list/components/CreateProjectModal.tsx @@ -1,7 +1,15 @@ -import { Button, Form, Input, Message, Modal } from '@arco-design/web-react'; +import { + Button, + Collapse, + Form, + Input, + Message, + Modal, +} from '@arco-design/web-react'; import { useState } from 'react'; -import { projectService } from '../service'; +import EnvPresetsEditor from '../../detail/components/EnvPresetsEditor'; import type { Project } from '../../types'; +import { projectService } from '../service'; interface CreateProjectModalProps { visible: boolean; @@ -22,7 +30,15 @@ function CreateProjectModal({ const values = await form.validate(); setLoading(true); - const newProject = await projectService.create(values); + // 序列化环境预设 + const submitData = { + ...values, + envPresets: values.envPresets + ? JSON.stringify(values.envPresets) + : undefined, + }; + + const newProject = await projectService.create(submitData); Message.success('项目创建成功'); onSuccess(newProject); @@ -114,7 +130,9 @@ function CreateProjectModal({ if (value.includes('..') || value.includes('~')) { return cb('不能包含路径遍历字符(.. 或 ~)'); } - if (/[<>:"|?*\x00-\x1f]/.test(value)) { + // 检查非法字符(控制字符 0x00-0x1F) + // biome-ignore lint/suspicious/noControlCharactersInRegex: 需要检测路径中的控制字符 + if (/[<>:"|?*\u0000-\u001f]/.test(value)) { return cb('路径包含非法字符'); } cb(); @@ -124,6 +142,14 @@ function CreateProjectModal({ > + + + + + + + + ); diff --git a/apps/web/src/pages/project/list/components/EditProjectModal.tsx b/apps/web/src/pages/project/list/components/EditProjectModal.tsx index 4ae8dd4..bb8005c 100644 --- a/apps/web/src/pages/project/list/components/EditProjectModal.tsx +++ b/apps/web/src/pages/project/list/components/EditProjectModal.tsx @@ -1,7 +1,17 @@ -import { Button, Form, Input, Message, Modal } from '@arco-design/web-react'; +import { + Button, + Collapse, + Form, + Input, + Message, + Modal, +} from '@arco-design/web-react'; import React, { useState } from 'react'; +import EnvPresetsEditor, { + type EnvPreset, +} from '../../detail/components/EnvPresetsEditor'; +import type { Project } from '../../types'; import { projectService } from '../service'; -import type { Project } from '../types'; interface EditProjectModalProps { visible: boolean; @@ -22,10 +32,20 @@ function EditProjectModal({ // 当项目信息变化时,更新表单数据 React.useEffect(() => { if (project && visible) { + let envPresets: EnvPreset[] = []; + try { + if (project.envPresets) { + envPresets = JSON.parse(project.envPresets); + } + } catch (error) { + console.error('解析环境预设失败:', error); + } + form.setFieldsValue({ name: project.name, description: project.description, repository: project.repository, + envPresets, }); } }, [project, visible, form]); @@ -37,7 +57,18 @@ function EditProjectModal({ if (!project) return; - const updatedProject = await projectService.update(project.id, values); + // 序列化环境预设 + const submitData = { + ...values, + envPresets: values.envPresets + ? JSON.stringify(values.envPresets) + : undefined, + }; + + const updatedProject = await projectService.update( + project.id, + submitData, + ); Message.success('项目更新成功'); onSuccess(updatedProject); @@ -111,6 +142,14 @@ function EditProjectModal({ > + + + + + + + + ); diff --git a/apps/web/src/pages/project/list/components/ProjectCard.tsx b/apps/web/src/pages/project/list/components/ProjectCard.tsx index 905cc8e..e52c16d 100644 --- a/apps/web/src/pages/project/list/components/ProjectCard.tsx +++ b/apps/web/src/pages/project/list/components/ProjectCard.tsx @@ -3,6 +3,7 @@ import { Card, Space, Tag, + Tooltip, Typography, } from '@arco-design/web-react'; import { diff --git a/apps/web/src/pages/project/list/index.tsx b/apps/web/src/pages/project/list/index.tsx index 1d2692e..322f26a 100644 --- a/apps/web/src/pages/project/list/index.tsx +++ b/apps/web/src/pages/project/list/index.tsx @@ -1,4 +1,4 @@ -import { Button, Grid, Message, Typography } from '@arco-design/web-react'; +import { Button, Grid, Typography } from '@arco-design/web-react'; import { IconPlus } from '@arco-design/web-react/icon'; import { useState } from 'react'; import { useAsyncEffect } from '../../../hooks/useAsyncEffect'; diff --git a/apps/web/src/pages/project/types.ts b/apps/web/src/pages/project/types.ts index 314f515..0c62075 100644 --- a/apps/web/src/pages/project/types.ts +++ b/apps/web/src/pages/project/types.ts @@ -36,6 +36,7 @@ export interface Project { description: string; repository: string; projectDir: string; // 项目工作目录路径(必填) + envPresets?: string; // 环境预设配置(JSON格式) valid: number; createdAt: string; updatedAt: string; @@ -77,12 +78,11 @@ export interface Pipeline { export interface Deployment { id: number; branch: string; - env?: string; + envVars?: string; // JSON 字符串 status: string; commitHash?: string; commitMessage?: string; buildLog?: string; - sparseCheckoutPaths?: string; // 稀疏检出路径,用于monorepo项目 startedAt: string; finishedAt?: string; valid: number; @@ -127,6 +127,5 @@ export interface CreateDeploymentRequest { branch: string; commitHash: string; commitMessage: string; - env?: string; - sparseCheckoutPaths?: string; // 稀疏检出路径,用于monorepo项目 + envVars?: Record; // 环境变量 key-value 对象 } diff --git a/apps/web/src/shared/request.ts b/apps/web/src/shared/request.ts index 70af1c2..83d31ba 100644 --- a/apps/web/src/shared/request.ts +++ b/apps/web/src/shared/request.ts @@ -20,7 +20,11 @@ class Net { (error) => { console.log('error', error); // 对于DELETE请求返回204状态码的情况,视为成功 - if (error.response && error.response.status === 204 && error.config.method === 'delete') { + if ( + error.response && + error.response.status === 204 && + error.config.method === 'delete' + ) { // 创建一个模拟的成功响应 return Promise.resolve({ ...error.response, diff --git a/docs/.meta/OWNERS.md b/docs/.meta/OWNERS.md new file mode 100644 index 0000000..c601752 --- /dev/null +++ b/docs/.meta/OWNERS.md @@ -0,0 +1,7 @@ +# 文档拥有者 + +- backend: backend-team@example.com +- ops: ops-team@example.com +- product: product-team@example.com + +每个文档请在 front-matter 中声明 `owners` 字段。 diff --git a/docs/.meta/templates/design-template.md b/docs/.meta/templates/design-template.md new file mode 100644 index 0000000..df8bb05 --- /dev/null +++ b/docs/.meta/templates/design-template.md @@ -0,0 +1,116 @@ +--- +title: 设计文档模板 +summary: 记录一个功能/模块的设计方案、权衡与落地计划(建议配套 ADR)。 +owners: + - team: +reviewers: + - +status: draft +date: 2026-01-03 +version: 0.1.0 +related: + - adr: docs/architecture/adr-xxxx-.md + - pr: + - issue: +--- + +# 设计文档:<标题> + +## 1. 背景(Context) + +- 当前问题是什么?为什么现在要做? +- 相关现状:已有模块/接口/数据模型(附链接) +- 约束:技术栈、部署方式、团队边界、时间/人力 + +## 2. 目标(Goals) + +- [ ] 目标 1(可验证) +- [ ] 目标 2(可验证) + +## 3. 非目标(Non-goals) + +- 不做什么(防止范围膨胀) + +## 4. 需求与范围(Requirements & Scope) + +- 用户/角色:谁会用?(例如:管理员、开发者、CI runner) +- 功能需求: + - R1: + - R2: +- 非功能需求:性能、可用性、可维护性、可观测性 + +## 5. 方案概览(High-level Design) + +- 用 5-10 行描述整体方案(模块、数据流、调用链) +- 关键选择:为什么选这个方案? + +## 6. 详细设计(Detailed Design) + +### 6.1 接口/API 设计 + +- 新增/变更端点(路径、方法、权限、请求/响应示例) +- 错误码与错误语义(与 `BusinessError` 对齐) + +### 6.2 数据模型/数据库 + +- Prisma model 变更(字段、索引、迁移策略) +- 数据一致性与幂等策略(例如:重试/重复提交) + +### 6.3 任务/队列/异步处理(如有) + +- 队列模型:入队、出队、并发、重试、死信/失败处理 +- 状态机:状态枚举与迁移 + +### 6.4 配置与环境变量 + +- 新增 env(默认值、是否敏感、是否需要重启) + +### 6.5 可观测性 + +- 日志:关键日志点、traceId/requestId(如有) +- 指标:成功率、延迟、队列长度、失败原因分布 +- 告警:P0/P1 触发条件 + +### 6.6 安全与权限 + +- 认证:是否要求登录(session) +- 授权:角色/资源权限(项目级、流水线级) +- 数据安全:敏感信息、token、日志脱敏 + +## 7. 影响与权衡(Trade-offs) + +- 性能影响 +- 运维影响 +- 对现有接口/调用方的影响 +- 技术债与后续演进 + +## 8. 兼容性与迁移(Compatibility & Migration) + +- 是否 breaking change? +- 迁移步骤(DB、配置、数据回填) +- 回滚策略 + +## 9. 测试计划(Test Plan) + +- 单测:覆盖哪些模块 +- 集成测试:关键链路(如:创建部署 -> 入队 -> 执行 -> 状态更新) +- 手工验证:步骤清单 + +## 10. 发布计划(Rollout Plan) + +- 分阶段:灰度/开关/逐步放量(如有) +- 监控指标与验收标准 + +## 11. 备选方案(Alternatives Considered) + +- 方案 A:为什么不用 +- 方案 B:为什么不用 + +## 12. 风险与开放问题(Risks & Open Questions) + +- 风险 1 +- 问题 1(需要谁来决定/何时决定) + +## 13. 附录(Appendix) + +- 相关链接:控制器、DTO、Prisma schema、PR 等 diff --git a/docs/.meta/templates/runbook-template.md b/docs/.meta/templates/runbook-template.md new file mode 100644 index 0000000..9c2e385 --- /dev/null +++ b/docs/.meta/templates/runbook-template.md @@ -0,0 +1,22 @@ +--- +title: Runbook 模板 +owners: + - ops: ops-team +status: draft +--- + +# Runbook 标题 + +## 触发条件 + +## 负责人 + +## 联系方式 + +## 暂时性缓解 + +## 恢复步骤 + +## 验证 + +## 回滚(如果适用) diff --git a/docs/api/README.md b/docs/api/README.md new file mode 100644 index 0000000..8386288 --- /dev/null +++ b/docs/api/README.md @@ -0,0 +1,14 @@ +--- +title: API 文档 +summary: 本目录存放 OpenAPI 定义与 API 使用说明。 +tags: [api] +owners: + - team: backend +status: stable +--- + +# API 文档 + +本目录包含 OpenAPI 规范与示例。可使用 Swagger UI 或 Redoc 渲染 `openapi.yaml`。 + +- OpenAPI: `openapi.yaml` diff --git a/docs/api/endpoints.md b/docs/api/endpoints.md new file mode 100644 index 0000000..e713876 --- /dev/null +++ b/docs/api/endpoints.md @@ -0,0 +1,78 @@ +--- +title: API 端点总览 +summary: 基于 `apps/server` 控制器实现的主要 REST API 端点汇总。 +owners: + - team: backend +status: stable +--- + +# API 端点总览 + +基础前缀:`/api` + +下面列出当前实现的主要控制器与常用端点。 + +## Projects (`/api/projects`) + +- GET `/api/projects` : 列表(支持分页与按 name 搜索) +- GET `/api/projects/:id` : 获取单个项目(包含 workspace 状态) +- POST `/api/projects` : 创建项目(body: `name`, `repository`, `projectDir` 等) +- PUT `/api/projects/:id` : 更新项目 +- DELETE `/api/projects/:id` : 软删除(将 `valid` 置为 0) + +示例: + +```http +GET /api/projects?page=1&limit=10 +``` + +## User (`/api/user`) + +- GET `/api/user/list` : 模拟用户列表 +- GET `/api/user/detail/:id` : 用户详情 +- POST `/api/user` : 创建用户 +- PUT `/api/user/:id` : 更新用户 +- DELETE `/api/user/:id` : 删除用户 +- GET `/api/user/search` : 搜索用户 + +## Auth (`/api/auth`) + +- GET `/api/auth/url` : 获取 Gitea OAuth 授权 URL +- POST `/api/auth/login` : 使用 OAuth code 登录(返回 session) +- GET `/api/auth/logout` : 登出 +- GET `/api/auth/info` : 当前会话用户信息 + +注意:需要配置 `GITEA_URL`、`GITEA_CLIENT_ID`、`GITEA_REDIRECT_URI`。 + +## Deployments (`/api/deployments`) + +- GET `/api/deployments` : 列表(支持 projectId 过滤) +- POST `/api/deployments` : 创建部署(会将任务加入执行队列) +- POST `/api/deployments/:id/retry` : 重新执行某次部署(复制记录并 requeue) + +## Pipelines (`/api/pipelines`) + +- GET `/api/pipelines` : 列表(含 steps) +- GET `/api/pipelines/templates` : 获取可用流水线模板 +- GET `/api/pipelines/:id` : 单个流水线(含步骤) +- POST `/api/pipelines` : 创建流水线 +- POST `/api/pipelines/from-template` : 基于模板创建流水线 +- PUT `/api/pipelines/:id` : 更新流水线 +- DELETE `/api/pipelines/:id` : 软删除 + +## Steps (`/api/steps`) + +- GET `/api/steps` : 列表(支持 pipelineId 过滤) +- GET `/api/steps/:id` : 单个步骤 +- POST `/api/steps` : 创建步骤(包含 `script` 字段) +- PUT `/api/steps/:id` : 更新步骤 +- DELETE `/api/steps/:id` : 软删除 + +## Git (`/api/git`) + +- GET `/api/git/commits?projectId=&branch=` : 获取指定项目的提交列表(调用 Gitea) +- GET `/api/git/branches?projectId=` : 获取分支列表 + +--- + +想要更详细的示例(请求 body、响应 schema),我可以为每个端点基于 `dto.ts` 自动生成示例请求/响应片段。是否需要我继续生成? diff --git a/docs/api/openapi.yaml b/docs/api/openapi.yaml new file mode 100644 index 0000000..1e6d8c4 --- /dev/null +++ b/docs/api/openapi.yaml @@ -0,0 +1,28 @@ +openapi: 3.0.1 +info: + title: Foka-CI 示例 API + version: '1.0.0' +paths: + /health: + get: + summary: 健康检查 + responses: + '200': + description: OK + /projects: + get: + summary: 列出项目 + responses: + '200': + description: 项目列表 + content: + application/json: + schema: + type: array + items: + type: object + properties: + id: + type: string + name: + type: string diff --git a/docs/architecture/adr-0001-service-design.md b/docs/architecture/adr-0001-service-design.md new file mode 100644 index 0000000..2d7fb3e --- /dev/null +++ b/docs/architecture/adr-0001-service-design.md @@ -0,0 +1,26 @@ +--- +title: ADR 0001 - 服务设计决策 +date: 2026-01-03 +authors: + - backend-team +status: accepted +--- + +# ADR 0001: 服务设计与部署模型 + +## 背景 + +需要选择微服务还是单体部署以便平衡开发速度与运维复杂度。 + +## 决策 + +采用模块化单体(modular monolith)作为初始阶段部署方式,关键模块解耦、接口明确,后续按需拆分服务。 + +## 影响 + +- 优点:降低初期运维成本,便于本地调试与 CI 集成。 +- 缺点:需要在代码边界设计中预留拆分点。 + +## 备注 + +在拆分时优先考虑数据库边界和独立部署能力。 diff --git a/docs/architecture/design-0001-product-prototype.md b/docs/architecture/design-0001-product-prototype.md new file mode 100644 index 0000000..2b177da --- /dev/null +++ b/docs/architecture/design-0001-product-prototype.md @@ -0,0 +1,175 @@ +--- +title: 设计文档 0001 - 产品原型 +summary: 产品的设计原型 +owners: + - team: backend +reviewers: + - ops-team +status: draft +date: 2026-01-03 +version: 0.1.0 +--- + +# 设计文档 0001:产品整体原型 + +## 1. 背景(Context) + +企业内部代码发布是非常频繁的事情,无论是测试环境还是生产环境,发布代码常常面临着一些痛点:频繁发布浪费开发时;手动发布代码可能漏掉某些步骤、造成环境报错。所以需要引入 CI/CD 工具让发布流程自动化,市场上已经存在很多解决类似问题的产品,例如 Drone CI、jenkins 等,但是这些工具不够灵活、不能满足全部场景,所以便有了 Foka-CI 这款产品。 + +## 2. 拆解需求 + +### 登录认证页面 + +仅提供 Gitea 的 OAuth 认证登录,方便获取仓库信息,简化密码登录过程 + +### 项目列表页面 + +查看所有项目,项目的基本信息有: + +- 项目名 +- 项目描述(可选) +- 代码仓库地址 +- 项目的工作目录,用于将代码克隆到该目录下,发布流水线脚本在该目录下执行 + +创建项目,需要填写基本信息 + +### 项目详情页 + + +## 2. 目标(Goals) + +- [ ] 明确“部署任务”从创建到执行的状态流转与约束 +- [ ] 明确重试语义(retry 会创建新 deployment,而不是复用原记录) +- [ ] 降低重复入队/重复执行的风险(幂等与并发边界清晰) +- [ ] 让运维/排障更容易:关键日志点与可观测性清单 + +## 3. 非目标(Non-goals) + +- 不引入外部消息队列(如 Redis/Kafka),仍以当前内存队列 + DB 恢复为基础 +- 不在本文直接实现大规模调度/分布式 runner(后续 ADR/设计再做) + +## 4. 需求与范围(Requirements & Scope) + +### 功能需求 + +- 创建部署:写入一条 Deployment 记录,初始状态为 `pending`,并加入执行队列 +- 重试部署:通过 `/deployments/:id/retry` 创建一条新的 Deployment 记录(复制必要字段),并加入执行队列 +- 服务重启恢复:服务启动后能从 DB 找回仍为 `pending` 的任务并继续执行 + +### 非功能需求 + +- 可靠性:服务重启不会“丢任务”(pending 的任务能恢复) +- 幂等性:避免同一个 deployment 被重复执行 +- 可观测性:能定位某次部署为何失败、何时开始/结束、队列长度 + +## 5. 方案概览(High-level Design) + +当前方案核心链路如下: + +1. API 创建 Deployment(status=pending) +2. `ExecutionQueue.addTask(deploymentId, pipelineId)` 入队 +3. `ExecutionQueue.processQueue()` 串行消费 `pendingQueue` +4. `executePipeline()` 会读取 Deployment 与关联 Project,获取 `projectDir`,然后创建 `PipelineRunner` 执行 +5. 定时轮询:每 30 秒扫描 DB 中的 pending 任务,若不在 `runningDeployments` 集合则补入队列 + +## 6. 详细设计(Detailed Design) + +### 6.1 接口/API 设计 + +#### 创建部署 + +- POST `/api/deployments` +- 行为:创建 Deployment 后立即入队 + +#### 重试部署 + +- POST `/api/deployments/:id/retry` +- 行为:读取原 deployment -> 创建新 deployment(status=pending)-> 入队 +- 语义:重试是“创建一个新的任务实例”,便于保留历史执行记录 + +### 6.2 数据模型/数据库 + +Deployment 当前关键字段(见 schema 注释): + +- `status`: pending/running/success/failed/cancelled(目前入队依赖 pending) +- `buildLog`: 执行日志(当前创建时写空字符串) +- `startedAt`/`finishedAt`: 时间标记(目前 created 时 startedAt 默认 now) + +建议补齐/明确(文档层面约束,代码后续落地): + +- 状态迁移: + - `pending` -> `running`(开始执行前) + - `running` -> `success|failed|cancelled`(结束后) +- 幂等控制: + - 以 deploymentId 为“单次执行唯一标识”,同一个 deploymentId 不允许重复开始执行 + +### 6.3 队列/轮询/并发 + +现状: + +- `runningDeployments` 同时承担“已入队/执行中”的去重集合 +- `pendingQueue` 为内存 FIFO +- 单实例串行消费(`processQueue` while 循环) +- 轮询间隔常量 30 秒 + +风险点(需要在文档中明确约束/后续逐步修正): + +- 多实例部署:如果将来启动多个 server 实例,每个实例都可能轮询到同一条 pending 记录并执行(需要 DB 锁/租约/状态原子更新) +- 状态更新缺口:当前 `ExecutionQueue` 代码中没有看到明确把 status 从 pending 改成 running/failed/success 的逻辑(可能在 `PipelineRunner` 内处理;若没有,需要补齐) + +建议(不改变整体架构前提): + +- 将轮询间隔改为可配置 env:`EXECUTION_POLL_INTERVAL_MS`(默认 30000) +- 在真正执行前做一次 DB 原子“抢占”:仅当 status=pending 时更新为 running(并记录开始时间);更新失败则放弃执行 + +### 6.4 可观测性 + +最低要求(建议后续落地到代码/日志规范): + +- 日志字段:deploymentId、pipelineId、projectId、projectDir、status +- 队列指标:pendingQueue length、runningDeployments size +- 失败记录:捕获异常 message/stack(避免泄露敏感信息) + +### 6.5 安全与权限 + +当前接口层面需要确认: + +- `/api/deployments` 与 `/api/deployments/:id/retry` 是否需要登录/鉴权(取决于 middleware 配置) +- 若需要鉴权:建议限制为有项目权限的用户才能创建/重试部署 + +## 7. 影响与权衡(Trade-offs) + +- 继续采用内存队列:实现简单,但天然不支持多实例并发安全 +- DB 轮询恢复:可靠性提升,但会带来额外 DB 查询压力 + +## 8. 兼容性与迁移(Compatibility & Migration) + +- 文档层面不破坏现有 API +- 若引入 status 原子抢占,需要确保旧数据/旧状态兼容(例如对历史 pending 记录仍可恢复) + +## 9. 测试计划(Test Plan) + +- 集成链路:创建 deployment -> 入队 -> 触发执行(可用假 runner) +- 重启恢复:插入 pending 记录 -> initialize() -> 任务被 addTask +- 重试接口:原记录存在/不存在的分支 + +## 10. 发布计划(Rollout Plan) + +- 先补齐文档 + 最小日志规范 +- 再逐步落地:status 原子抢占 + 轮询间隔 env + +## 11. 备选方案(Alternatives Considered) + +- 引入 Redis 队列(BullMQ 等):更可靠、支持多实例,但复杂度上升 +- 使用 DB 作为队列(表 + 锁/租约):更可靠,但需要严格的并发控制 + +## 12. 风险与开放问题(Risks & Open Questions) + +- Q1:`PipelineRunner` 是否负责更新 Deployment.status?如果没有,状态机应由谁维护? +- Q2:服务是否计划多实例部署?如果是,必须补齐“抢占执行”机制 + +## 13. 附录(Appendix) + +- 代码:`apps/server/libs/execution-queue.ts` +- 控制器:`apps/server/controllers/deployment/index.ts` +- Schema:`apps/server/prisma/schema.prisma` diff --git a/docs/architecture/design-0004-execution-queue.md b/docs/architecture/design-0004-execution-queue.md new file mode 100644 index 0000000..8d68bee --- /dev/null +++ b/docs/architecture/design-0004-execution-queue.md @@ -0,0 +1,166 @@ +--- +title: 设计文档 0001 - 部署执行队列与重试(基于当前实现) +summary: 记录当前 ExecutionQueue 的行为与下一步改进方向,便于团队对齐。 +owners: + - team: backend +reviewers: + - ops-team +status: draft +date: 2026-01-03 +version: 0.1.0 +related: + - code: apps/server/libs/execution-queue.ts + - code: apps/server/controllers/deployment/index.ts + - schema: apps/server/prisma/schema.prisma +--- + +# 设计文档 0001:部署执行队列与重试 + +## 1. 背景(Context) + +当前服务端在启动时会初始化执行队列(`ExecutionQueue.initialize()`),用于从数据库恢复 `status=pending` 的部署任务并按顺序执行流水线。 + +现有相关事实(来自当前代码): + +- 服务启动入口:`apps/server/app.ts` +- 路由:`/api/deployments`(创建部署后入队)与 `/api/deployments/:id/retry`(复制记录后入队) +- 数据库:SQLite + Prisma,Deployment 存在 `status` 字段(注释标明:pending/running/success/failed/cancelled) +- 队列实现:内存队列 `pendingQueue` + `runningDeployments` Set,并有轮询机制(默认 30 秒)把 DB 中的 pending 任务补进队列 + +## 2. 目标(Goals) + +- [ ] 明确“部署任务”从创建到执行的状态流转与约束 +- [ ] 明确重试语义(retry 会创建新 deployment,而不是复用原记录) +- [ ] 降低重复入队/重复执行的风险(幂等与并发边界清晰) +- [ ] 让运维/排障更容易:关键日志点与可观测性清单 + +## 3. 非目标(Non-goals) + +- 不引入外部消息队列(如 Redis/Kafka),仍以当前内存队列 + DB 恢复为基础 +- 不在本文直接实现大规模调度/分布式 runner(后续 ADR/设计再做) + +## 4. 需求与范围(Requirements & Scope) + +### 功能需求 + +- 创建部署:写入一条 Deployment 记录,初始状态为 `pending`,并加入执行队列 +- 重试部署:通过 `/deployments/:id/retry` 创建一条新的 Deployment 记录(复制必要字段),并加入执行队列 +- 服务重启恢复:服务启动后能从 DB 找回仍为 `pending` 的任务并继续执行 + +### 非功能需求 + +- 可靠性:服务重启不会“丢任务”(pending 的任务能恢复) +- 幂等性:避免同一个 deployment 被重复执行 +- 可观测性:能定位某次部署为何失败、何时开始/结束、队列长度 + +## 5. 方案概览(High-level Design) + +当前方案核心链路如下: + +1) API 创建 Deployment(status=pending) +2) `ExecutionQueue.addTask(deploymentId, pipelineId)` 入队 +3) `ExecutionQueue.processQueue()` 串行消费 `pendingQueue` +4) `executePipeline()` 会读取 Deployment 与关联 Project,获取 `projectDir`,然后创建 `PipelineRunner` 执行 +5) 定时轮询:每 30 秒扫描 DB 中的 pending 任务,若不在 `runningDeployments` 集合则补入队列 + +## 6. 详细设计(Detailed Design) + +### 6.1 接口/API 设计 + +#### 创建部署 + +- POST `/api/deployments` +- 行为:创建 Deployment 后立即入队 + +#### 重试部署 + +- POST `/api/deployments/:id/retry` +- 行为:读取原 deployment -> 创建新 deployment(status=pending)-> 入队 +- 语义:重试是“创建一个新的任务实例”,便于保留历史执行记录 + +### 6.2 数据模型/数据库 + +Deployment 当前关键字段(见 schema 注释): + +- `status`: pending/running/success/failed/cancelled(目前入队依赖 pending) +- `buildLog`: 执行日志(当前创建时写空字符串) +- `startedAt`/`finishedAt`: 时间标记(目前 created 时 startedAt 默认 now) + +建议补齐/明确(文档层面约束,代码后续落地): + +- 状态迁移: + - `pending` -> `running`(开始执行前) + - `running` -> `success|failed|cancelled`(结束后) +- 幂等控制: + - 以 deploymentId 为“单次执行唯一标识”,同一个 deploymentId 不允许重复开始执行 + +### 6.3 队列/轮询/并发 + +现状: + +- `runningDeployments` 同时承担“已入队/执行中”的去重集合 +- `pendingQueue` 为内存 FIFO +- 单实例串行消费(`processQueue` while 循环) +- 轮询间隔常量 30 秒 + +风险点(需要在文档中明确约束/后续逐步修正): + +- 多实例部署:如果将来启动多个 server 实例,每个实例都可能轮询到同一条 pending 记录并执行(需要 DB 锁/租约/状态原子更新) +- 状态更新缺口:当前 `ExecutionQueue` 代码中没有看到明确把 status 从 pending 改成 running/failed/success 的逻辑(可能在 `PipelineRunner` 内处理;若没有,需要补齐) + +建议(不改变整体架构前提): + +- 将轮询间隔改为可配置 env:`EXECUTION_POLL_INTERVAL_MS`(默认 30000) +- 在真正执行前做一次 DB 原子“抢占”:仅当 status=pending 时更新为 running(并记录开始时间);更新失败则放弃执行 + +### 6.4 可观测性 + +最低要求(建议后续落地到代码/日志规范): + +- 日志字段:deploymentId、pipelineId、projectId、projectDir、status +- 队列指标:pendingQueue length、runningDeployments size +- 失败记录:捕获异常 message/stack(避免泄露敏感信息) + +### 6.5 安全与权限 + +当前接口层面需要确认: + +- `/api/deployments` 与 `/api/deployments/:id/retry` 是否需要登录/鉴权(取决于 middleware 配置) +- 若需要鉴权:建议限制为有项目权限的用户才能创建/重试部署 + +## 7. 影响与权衡(Trade-offs) + +- 继续采用内存队列:实现简单,但天然不支持多实例并发安全 +- DB 轮询恢复:可靠性提升,但会带来额外 DB 查询压力 + +## 8. 兼容性与迁移(Compatibility & Migration) + +- 文档层面不破坏现有 API +- 若引入 status 原子抢占,需要确保旧数据/旧状态兼容(例如对历史 pending 记录仍可恢复) + +## 9. 测试计划(Test Plan) + +- 集成链路:创建 deployment -> 入队 -> 触发执行(可用假 runner) +- 重启恢复:插入 pending 记录 -> initialize() -> 任务被 addTask +- 重试接口:原记录存在/不存在的分支 + +## 10. 发布计划(Rollout Plan) + +- 先补齐文档 + 最小日志规范 +- 再逐步落地:status 原子抢占 + 轮询间隔 env + +## 11. 备选方案(Alternatives Considered) + +- 引入 Redis 队列(BullMQ 等):更可靠、支持多实例,但复杂度上升 +- 使用 DB 作为队列(表 + 锁/租约):更可靠,但需要严格的并发控制 + +## 12. 风险与开放问题(Risks & Open Questions) + +- Q1:`PipelineRunner` 是否负责更新 Deployment.status?如果没有,状态机应由谁维护? +- Q2:服务是否计划多实例部署?如果是,必须补齐“抢占执行”机制 + +## 13. 附录(Appendix) + +- 代码:`apps/server/libs/execution-queue.ts` +- 控制器:`apps/server/controllers/deployment/index.ts` +- Schema:`apps/server/prisma/schema.prisma` diff --git a/docs/architecture/design-0005-refactor-deply.md b/docs/architecture/design-0005-refactor-deply.md new file mode 100644 index 0000000..7cb75e9 --- /dev/null +++ b/docs/architecture/design-0005-refactor-deply.md @@ -0,0 +1,127 @@ +--- +title: 设计文档 0005 - 部署流程重构(移除稀疏检出 & 环境预设) +summary: 调整部署相关能力:移除稀疏检出;将部署环境从创建时输入改为在项目设置中预设。 +owners: + - team: backend +reviewers: + - team: frontend +status: draft +date: 2026-01-03 +version: 0.1.0 +related: + - docs: docs/api/endpoints.md + - schema: apps/server/prisma/schema.prisma +--- + +# 设计文档 0005:部署流程重构(移除稀疏检出 & 环境预设) + +## 1. 背景(Context) + +当前部署流程在“项目详情页发起部署”时包含“稀疏检出(sparse checkout)”表单项,并且流水线模板中也包含与稀疏检出相关的逻辑。 + +另外,部署时需要指定环境变量(例如 env),但目前是在“创建部署”时临时输入/选择。随着项目数量增加,这种方式容易造成不一致与误操作。 + +## 2. 目标(Goals) + +- [ ] 移除项目详情页部署表单中的“稀疏检出”相关输入项 +- [ ] 移除流水线模板中与稀疏检出相关的代码逻辑(后端模板/生成逻辑) +- [ ] 将“部署环境(env)”从创建部署时指定,调整为在“项目设置”中提前预设 +- [ ] 创建部署时仍需要选择/指定环境,但选项来源于项目设置中的预设项 + +## 3. 非目标(Non-goals) + +- 不新增多维度环境变量管理(仅覆盖本次提到的 env 单项预设) +- 不在本次引入复杂的环境权限、审批流 + +## 4. 需求与范围(Requirements & Scope) + +### 4.1 移除稀疏检出 + +#### 用户侧 + +- 项目详情页发起部署时:不再展示/提交稀疏检出字段 + +#### 系统侧 + +- 流水线模板:移除任何基于稀疏检出路径的生成/执行逻辑 + +> 说明:当前 DB 中 Deployment 仍存在 `sparseCheckoutPaths` 字段(见 `schema.prisma`),本次需求仅明确“功能不再需要”。字段是否删除/迁移由本设计后续章节确定。 + +### 4.2 部署环境 env 改为项目设置预设 + +#### 核心约束 + +- 环境变量预设需要支持多选、单选、输入框这几种类型 +- 在项目设置中新增可配置项(预设项): + 例如:指定env 环境变量 + - 类型:单选(single select) + - key:`env`,value 及时部署是选中的候选项的值 + - options:`staging`(测试环境)、`production`(生产环境) + +#### 行为 + +- 创建部署时仍需指定环境(env),但: + - 不再由用户自由输入 + - 只允许从该项目预设的 options 中选择 + +## 5. 影响面(Impact) + +### 5.1 前端 + +- 项目详情页部署表单:移除“稀疏检出”相关 UI 与字段提交 +- 项目设置页:新增“环境预设(env)”配置入口(单选 + 选项 staging/production) +- 创建部署交互:环境选项从项目设置读取(不再硬编码/临时输入) + +### 5.2 后端 + +- 部署创建接口:校验 env 必须来自项目预设(避免非法 env) +- 流水线模板:移除稀疏检出相关的模板字段/生成逻辑 + +### 5.3 数据库 + +- 需要新增“项目设置/项目配置”承载 env 预设(落库方案待定) +- 既有 Deployment 的 `sparseCheckoutPaths` 字段:后续决定是否保留(兼容历史)或迁移删除 + +## 6. 兼容性与迁移(Compatibility & Migration) + +- 对历史部署记录: + - 若存在 `sparseCheckoutPaths`,不影响查询展示,但新建部署不再写入该字段 +- 对创建部署: + - 若项目未配置 env 预设:创建部署应失败并提示先到项目设置配置(或提供默认值策略,待确认) + +## 7. 测试要点(Test Plan) + +- 前端: + - 项目详情页部署表单不再出现稀疏检出项 + - 项目设置可保存 env 预设(单选)并在创建部署时正确展示 +- 后端: + - 创建部署:env 不在项目预设 options 内时应拒绝 + - 流水线模板:移除稀疏检出后仍能正常创建并执行 + +## 8. 实施状态(Implementation Status) + +### 已完成(后端) + +- ✅ Prisma Schema:在 Project 表添加 `envPresets` 字段(String? 类型,存储 JSON) +- ✅ 移除部署创建/重试接口中的 `sparseCheckoutPaths` 写入 +- ✅ 在部署创建接口添加环境校验:验证 env 是否在项目 envPresets 的 options 中 +- ✅ 更新 project DTO 和 controller 支持 envPresets 读写 +- ✅ 移除 pipeline-runner 中的 `SPARSE_CHECKOUT_PATHS` 环境变量 +- ✅ 生成 Prisma Client + +### 已完成(前端) + +- ✅ 创建 EnvPresetsEditor 组件(支持单选、多选、输入框类型) +- ✅ 在 CreateProjectModal 和 EditProjectModal 中集成环境预设编辑器 +- ✅ 从 DeployModal 移除稀疏检出表单项 +- ✅ 在 DeployModal 中从项目 envPresets 读取环境选项并展示 +- ✅ 移除 DeployModal 中的动态环境变量列表(envVars Form.List) +- ✅ 从类型定义中移除 sparseCheckoutPaths 字段 +- ✅ 在项目详情页项目设置 tab 中添加环境变量预设的查看和编辑功能 + +### 待定问题 + +- Q1:项目设置存储方式 → **已决定**:使用 Project.envPresets JSON 字段 +- Q2:未配置 env 预设的默认行为 → **已实现**:若配置了预设则校验,否则允许任意值(向后兼容) +- Q3:Deployment.sparseCheckoutPaths 字段 → **已决定**:保留字段(兼容历史),但新建部署不再写入 + diff --git a/docs/changelogs/CHANGELOG.md b/docs/changelogs/CHANGELOG.md new file mode 100644 index 0000000..13d8aca --- /dev/null +++ b/docs/changelogs/CHANGELOG.md @@ -0,0 +1,9 @@ +# Changelog + +所有 notable 更改应在此记录。遵循 Keep a Changelog 格式。 + +## [Unreleased] +- 初始文档目录建立。 + +## [1.0.0] - 2026-01-03 +- 初始发布 diff --git a/docs/development/setup.md b/docs/development/setup.md new file mode 100644 index 0000000..0b45011 --- /dev/null +++ b/docs/development/setup.md @@ -0,0 +1,88 @@ +--- +title: 开发与本地环境搭建 +summary: 针对本项目的本地开发、数据库与调试指南。 +owners: + - team: backend +status: stable +--- + +# 开发与本地环境搭建 + +## 1. 安装依赖 + +建议使用 `pnpm` 管理工作区依赖: + +```bash +# 在仓库根 +pnpm install +``` + +或者只在 server 子包安装: + +```bash +cd apps/server +pnpm install +``` + +## 2. 生成 Prisma Client + +```bash +cd apps/server +npx prisma generate +``` + +如果需要执行迁移(开发场景): + +```bash +npx prisma migrate dev --name init +``` + +数据库:项目使用 SQLite(见 `apps/server/prisma/schema.prisma`),迁移会在本地创建 `.db` 文件。 + +## 3. 启动服务 + +并行启动 workspace 中所有 dev 脚本(推荐): + +```bash +pnpm dev +``` + +或单独启动 server: + +```bash +cd apps/server +pnpm dev +``` + +服务默认端口:`3001`。如需修改: + +```bash +PORT=4000 pnpm dev +``` + +## 4. 常见开发命令 + +- 运行测试脚本(仓库自带): + +```bash +cd apps/server +node test.js +``` + +- TypeScript 类型检查(本地可使用 `tsc`): + +```bash +npx tsc --noEmit +``` + +## 5. 环境变量与第三方集成 + +常见 env:`GITEA_URL`, `GITEA_CLIENT_ID`, `GITEA_REDIRECT_URI`, `PORT`, `NODE_ENV`。 + +登录采用 Gitea OAuth,未配置时某些 auth 接口会返回 401,需要先登录获取 session。 + +## 6. 运行与调试要点 + +- 代码通过装饰器注册路由(见 `apps/server/decorators/route.ts` 与 `apps/server/libs/route-scanner.ts`)。 +- Prisma client 生成路径:`apps/server/generated`。 +- 若变更 Prisma schema,请执行 `prisma generate` 并更新迁移。 diff --git a/docs/getting-started.md b/docs/getting-started.md new file mode 100644 index 0000000..03a3d17 --- /dev/null +++ b/docs/getting-started.md @@ -0,0 +1,79 @@ +--- +title: 快速开始 +summary: 本文档介绍如何在本地启动与运行项目的基础步骤。 +tags: [getting-started] +owners: + - team: backend +status: stable +version: 1.0.0 +--- + +# 快速开始 + +## 前置条件 + +- Node.js >= 18 +- pnpm +- 克隆权限(或访问仓库) + +## 克隆与依赖安装 + +```bash +git clone +cd foka-ci +pnpm install +``` + +说明:仓库使用 pnpm workspace,根目录脚本 `pnpm dev` 会并行启动工作区内的 `dev` 脚本。 + +## 运行服务(开发) + +- 从仓库根(并行运行所有 dev 脚本): + +```bash +pnpm dev +``` + +- 单独运行 server: + +```bash +cd apps/server +pnpm install +pnpm dev # 等同于: tsx watch ./app.ts +``` + +服务器默认监听端口 `3001`(可通过 `PORT` 环境变量覆盖)。API 前缀为 `/api`。 + +## Prisma 与数据库 + +项目使用 SQLite(见 `apps/server/prisma/schema.prisma`)。如果需要生成 Prisma Client 或运行迁移: + +```bash +cd apps/server +npx prisma generate +npx prisma migrate dev --name init # 本地开发使用 +``` + +生成的 Prisma Client 位于 `apps/server/generated`(由 schema 中的 generator 指定)。 + +## 环境变量(常用) + +- `GITEA_URL`、`GITEA_CLIENT_ID`、`GITEA_REDIRECT_URI`:用于 OAuth 登录(Gitea)。 +- `PORT`:服务监听端口,默认 `3001`。 +- `NODE_ENV`:环境(development/production)。 + +将敏感值放入 `.env`(不要将 `.env` 提交到仓库)。 + +## 运行脚本与测试 + +```bash +cd apps/server +node test.js # 运行仓库自带的简单测试脚本 +``` + +## 其他说明 + +- 文档目录位于 `docs/`,设计模板在 `docs/.meta/templates/`。 +- API 路由由装饰器注册,路由前缀为 `/api`,在 `apps/server/middlewares/router.ts` 中可查看。 + +更多开发细节请参见 `docs/development/setup.md` 与 `docs/api/endpoints.md`。 diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..0eb700a --- /dev/null +++ b/docs/index.md @@ -0,0 +1,22 @@ +--- +title: 项目文档总览 +summary: 项目文档的导航页,指向快速开始、架构、API、运维等部分。 +tags: [overview] +owners: + - team: backend +status: stable +version: 1.0.0 +--- + +# 文档总览 + +欢迎来到项目文档。下列是常用文档的入口: + +- Getting Started: ./getting-started.md +- Architecture: ./architecture/adr-0001-service-design.md +- API: ./api/README.md +- Runbooks: ./runbooks/incident-response.md +- Onboarding: ./onboarding/new-hire.md +- Changelog: ./changelogs/CHANGELOG.md + +维护说明:请在变更同时更新 `owners` 与 `version`,并通过 PR 提交。 diff --git a/docs/onboarding/new-hire.md b/docs/onboarding/new-hire.md new file mode 100644 index 0000000..3fb9597 --- /dev/null +++ b/docs/onboarding/new-hire.md @@ -0,0 +1,13 @@ +--- +title: 新成员入职指南 +owners: + - people-team +status: draft +--- + +# 新成员入职快速清单 + +1. 获取公司邮箱与账号 +2. 克隆仓库并运行 `pnpm install` +3. 阅读 `docs/getting-started.md` 与 `docs/architecture` 中关键 ADR +4. 约见导师并完成第一次 code walkthrough diff --git a/docs/runbooks/incident-response.md b/docs/runbooks/incident-response.md new file mode 100644 index 0000000..6f8bab1 --- /dev/null +++ b/docs/runbooks/incident-response.md @@ -0,0 +1,28 @@ +--- +title: 事故响应 Runbook +summary: 处理生产事故的步骤和联系方式。 +owners: + - ops-team +status: stable +--- + +# 事故响应(Incident Response) + +## 1. 识别与分级 + +- P0: 系统不可用或数据安全泄露 +- P1: 主要功能严重受损 + +## 2. 通知 + +- 联系人:`on-call@company.example`,电话:+86-10-12345678 + +## 3. 暂时性缓解 + +- 回滚最近的部署 +- 启用备用服务 + +## 4. 根因分析与恢复 + +- 记录时间线 +- 生成 RCA 并在 72 小时内发布 diff --git a/package.json b/package.json index 30d73b0..7917ce0 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,11 @@ "devDependencies": { "@biomejs/biome": "2.0.6" }, - "keywords": ["ci", "ark", "ark-ci"], + "keywords": [ + "ci", + "ark", + "ark-ci" + ], "author": "hurole", "license": "ISC", "packageManager": "pnpm@9.15.2+sha512.93e57b0126f0df74ce6bff29680394c0ba54ec47246b9cf321f0121d8d9bb03f750a705f24edc3c1180853afd7c2c3b94196d0a3d53d3e069d9e2793ef11f321"