From 02b7c3edb2ddfa523175e14ecd9e305a5777f2d8 Mon Sep 17 00:00:00 2001 From: hurole <1192163814@qq.com> Date: Sat, 22 Nov 2025 01:06:53 +0800 Subject: [PATCH] =?UTF-8?q?refactor(prisma):=20=E7=BB=9F=E4=B8=80=E5=AF=BC?= =?UTF-8?q?=E5=85=A5prisma=E5=AE=A2=E6=88=B7=E7=AB=AF=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 所有控制器中从libs/prisma.ts导入prisma替代旧的libs/db.ts - 规范了step模块中zod验证架构的格式与换行 - 生成Prisma客户端及类型定义文件,包含browser、client、commonInputTypes、enums和内部类文件 - 优化listStepsQuerySchema默认参数与链式调用格式 - 保持代码风格一致,提升可维护性和类型安全性 --- apps/server/controllers/auth/index.ts | 2 +- apps/server/controllers/deployment/index.ts | 2 +- apps/server/controllers/pipeline/index.ts | 4 +- apps/server/controllers/project/index.ts | 2 +- apps/server/controllers/step/index.ts | 115 +- apps/server/generated/browser.ts | 44 + apps/server/generated/client.ts | 66 + apps/server/generated/commonInputTypes.ts | 402 ++++ apps/server/generated/enums.ts | 15 + apps/server/generated/internal/class.ts | 230 +++ .../generated/internal/prismaNamespace.ts | 1104 ++++++++++ .../internal/prismaNamespaceBrowser.ts | 173 ++ apps/server/generated/models.ts | 16 + apps/server/generated/models/Deployment.ts | 1802 +++++++++++++++++ apps/server/generated/models/Pipeline.ts | 1706 ++++++++++++++++ apps/server/generated/models/Project.ts | 1645 +++++++++++++++ apps/server/generated/models/Step.ts | 1569 ++++++++++++++ apps/server/generated/models/User.ts | 1361 +++++++++++++ apps/server/libs/db.ts | 7 - apps/server/libs/prisma.ts | 8 + apps/server/package.json | 7 +- apps/server/prisma.config.ts | 19 + apps/server/prisma/data/dev.db | Bin 32768 -> 32768 bytes apps/server/prisma/schema.prisma | 5 +- apps/server/tsconfig.json | 7 +- apps/web/src/index.tsx | 1 + pnpm-lock.yaml | 757 ++++++- 27 files changed, 10954 insertions(+), 115 deletions(-) create mode 100644 apps/server/generated/browser.ts create mode 100644 apps/server/generated/client.ts create mode 100644 apps/server/generated/commonInputTypes.ts create mode 100644 apps/server/generated/enums.ts create mode 100644 apps/server/generated/internal/class.ts create mode 100644 apps/server/generated/internal/prismaNamespace.ts create mode 100644 apps/server/generated/internal/prismaNamespaceBrowser.ts create mode 100644 apps/server/generated/models.ts create mode 100644 apps/server/generated/models/Deployment.ts create mode 100644 apps/server/generated/models/Pipeline.ts create mode 100644 apps/server/generated/models/Project.ts create mode 100644 apps/server/generated/models/Step.ts create mode 100644 apps/server/generated/models/User.ts delete mode 100644 apps/server/libs/db.ts create mode 100644 apps/server/libs/prisma.ts create mode 100644 apps/server/prisma.config.ts diff --git a/apps/server/controllers/auth/index.ts b/apps/server/controllers/auth/index.ts index 46132b5..552c060 100644 --- a/apps/server/controllers/auth/index.ts +++ b/apps/server/controllers/auth/index.ts @@ -1,6 +1,6 @@ import type { Context } from 'koa'; import { Controller, Get, Post } from '../../decorators/route.ts'; -import prisma from '../../libs/db.ts'; +import { prisma } from '../../libs/prisma.ts'; import { log } from '../../libs/logger.ts'; import { gitea } from '../../libs/gitea.ts'; diff --git a/apps/server/controllers/deployment/index.ts b/apps/server/controllers/deployment/index.ts index 336b47a..1d16742 100644 --- a/apps/server/controllers/deployment/index.ts +++ b/apps/server/controllers/deployment/index.ts @@ -1,6 +1,6 @@ import { Controller, Get, Post } from '../../decorators/route.ts'; import type { Prisma } from '../../generated/prisma/index.js'; -import prisma from '../../libs/db.ts'; +import { prisma } from '../../libs/prisma.ts'; import type { Context } from 'koa'; @Controller('/deployments') diff --git a/apps/server/controllers/pipeline/index.ts b/apps/server/controllers/pipeline/index.ts index aa67fb1..bb1f977 100644 --- a/apps/server/controllers/pipeline/index.ts +++ b/apps/server/controllers/pipeline/index.ts @@ -1,13 +1,13 @@ import type { Context } from 'koa'; import { Controller, Get, Post, Put, Delete } from '../../decorators/route.ts'; -import prisma from '../../libs/db.ts'; +import { prisma } from '../../libs/prisma.ts'; import { log } from '../../libs/logger.ts'; import { BusinessError } from '../../middlewares/exception.ts'; import { createPipelineSchema, updatePipelineSchema, pipelineIdSchema, - listPipelinesQuerySchema + listPipelinesQuerySchema, } from './schema.ts'; @Controller('/pipelines') diff --git a/apps/server/controllers/project/index.ts b/apps/server/controllers/project/index.ts index c017d0f..17091b3 100644 --- a/apps/server/controllers/project/index.ts +++ b/apps/server/controllers/project/index.ts @@ -1,5 +1,5 @@ import type { Context } from 'koa'; -import prisma from '../../libs/db.ts'; +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'; diff --git a/apps/server/controllers/step/index.ts b/apps/server/controllers/step/index.ts index 2350209..7d33c6e 100644 --- a/apps/server/controllers/step/index.ts +++ b/apps/server/controllers/step/index.ts @@ -1,5 +1,5 @@ import type { Context } from 'koa'; -import prisma from '../../libs/db.ts'; +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'; @@ -7,54 +7,99 @@ import { z } from 'zod'; // 定义验证架构 const createStepSchema = 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(), - order: z.number({ - message: '步骤顺序必须是数字', - }).int().min(0, { message: '步骤顺序必须是非负整数' }), + order: z + .number({ + message: '步骤顺序必须是数字', + }) + .int() + .min(0, { message: '步骤顺序必须是非负整数' }), - script: z.string({ - message: '脚本命令必须是字符串', - }).min(1, { message: '脚本命令不能为空' }), + script: z + .string({ + message: '脚本命令必须是字符串', + }) + .min(1, { message: '脚本命令不能为空' }), - pipelineId: z.number({ - message: '流水线ID必须是数字', - }).int().positive({ message: '流水线ID必须是正整数' }), + pipelineId: z + .number({ + message: '流水线ID必须是数字', + }) + .int() + .positive({ message: '流水线ID必须是正整数' }), }); const updateStepSchema = 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(), - order: z.number({ - message: '步骤顺序必须是数字', - }).int().min(0, { message: '步骤顺序必须是非负整数' }).optional(), + order: z + .number({ + message: '步骤顺序必须是数字', + }) + .int() + .min(0, { message: '步骤顺序必须是非负整数' }) + .optional(), - script: z.string({ - message: '脚本命令必须是字符串', - }).min(1, { message: '脚本命令不能为空' }).optional(), + script: z + .string({ + message: '脚本命令必须是字符串', + }) + .min(1, { message: '脚本命令不能为空' }) + .optional(), }); const stepIdSchema = z.object({ id: z.coerce.number().int().positive({ message: '步骤 ID 必须是正整数' }), }); -const listStepsQuerySchema = z.object({ - pipelineId: z.coerce.number().int().positive({ message: '流水线ID必须是正整数' }).optional(), - 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), -}).optional(); +const listStepsQuerySchema = z + .object({ + pipelineId: z.coerce + .number() + .int() + .positive({ message: '流水线ID必须是正整数' }) + .optional(), + 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), + }) + .optional(); // TypeScript 类型 type CreateStepInput = z.infer; @@ -87,7 +132,7 @@ export class StepController { orderBy: { order: 'asc', }, - }) + }), ]); return { @@ -97,7 +142,7 @@ export class StepController { limit: query?.limit || 10, total, totalPages: Math.ceil(total / (query?.limit || 10)), - } + }, }; } diff --git a/apps/server/generated/browser.ts b/apps/server/generated/browser.ts new file mode 100644 index 0000000..259df35 --- /dev/null +++ b/apps/server/generated/browser.ts @@ -0,0 +1,44 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * 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' +export * from './enums.ts'; +/** + * Model Project + * + */ +export type Project = Prisma.ProjectModel +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Pipeline + * + */ +export type Pipeline = Prisma.PipelineModel +/** + * Model Step + * + */ +export type Step = Prisma.StepModel +/** + * Model Deployment + * + */ +export type Deployment = Prisma.DeploymentModel diff --git a/apps/server/generated/client.ts b/apps/server/generated/client.ts new file mode 100644 index 0000000..e6be9e0 --- /dev/null +++ b/apps/server/generated/client.ts @@ -0,0 +1,66 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @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. + * + * 🟢 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 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 + * ``` + * const prisma = new PrismaClient() + * // 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 } + +/** + * Model Project + * + */ +export type Project = Prisma.ProjectModel +/** + * Model User + * + */ +export type User = Prisma.UserModel +/** + * Model Pipeline + * + */ +export type Pipeline = Prisma.PipelineModel +/** + * Model Step + * + */ +export type Step = Prisma.StepModel +/** + * Model Deployment + * + */ +export type Deployment = Prisma.DeploymentModel diff --git a/apps/server/generated/commonInputTypes.ts b/apps/server/generated/commonInputTypes.ts new file mode 100644 index 0000000..b98c4cd --- /dev/null +++ b/apps/server/generated/commonInputTypes.ts @@ -0,0 +1,402 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @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" + + +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 +} + +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 +} + +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 +} + +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 +} + +export type SortOrderInput = { + 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> +} + +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> +} + +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> +} + +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> +} + +export type BoolFilter<$PrismaModel = never> = { + 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> +} + +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 +} + +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> +} + +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 +} + +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> +} + +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 +} + +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 +} + +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 +} + +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 +} + +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> +} + +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 +} + +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> +} + +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> +} + +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 +} + +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> +} + +export type NestedBoolFilter<$PrismaModel = never> = { + 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> +} + +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> +} + +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 +} + +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 +} + +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> +} + + diff --git a/apps/server/generated/enums.ts b/apps/server/generated/enums.ts new file mode 100644 index 0000000..043572d --- /dev/null +++ b/apps/server/generated/enums.ts @@ -0,0 +1,15 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* +* 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 {} diff --git a/apps/server/generated/internal/class.ts b/apps/server/generated/internal/class.ts new file mode 100644 index 0000000..e89a99a --- /dev/null +++ b/apps/server/generated/internal/class.ts @@ -0,0 +1,230 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * 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" + + +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 // 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 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\":\"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\":\"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) +} + +config.compilerWasm = { + 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) + } +} + + + +export type LogOptions = + 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array ? Prisma.GetEvents : never : never + +export interface PrismaClientConstructor { + /** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // 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 +} + +/** + * ## Prisma Client + * + * Type-safe database client for TypeScript + * @example + * ``` + * const prisma = new PrismaClient() + * // 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 +> { + [K: symbol]: { types: Prisma.TypeMap['other'] } + + $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; + + /** + * Connect with the database + */ + $connect(): runtime.Types.Utils.JsPromise; + + /** + * Disconnect from the database + */ + $disconnect(): runtime.Types.Utils.JsPromise; + +/** + * Executes a prepared raw query and returns the number of affected rows. + * @example + * ``` + * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` + * ``` + * + * 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; + + /** + * Executes a raw query and returns the number of affected rows. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com') + * ``` + * + * 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; + + /** + * Performs a prepared raw query and returns the `SELECT` data. + * @example + * ``` + * const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};` + * ``` + * + * 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; + + /** + * Performs a raw query and returns the `SELECT` data. + * Susceptible to SQL injections, see documentation. + * @example + * ``` + * const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com') + * ``` + * + * 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; + + + /** + * Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole. + * @example + * ``` + * const [george, bob, alice] = await prisma.$transaction([ + * prisma.user.create({ data: { name: 'George' } }), + * prisma.user.create({ data: { name: 'Bob' } }), + * 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(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 + }>> + + /** + * `prisma.project`: Exposes CRUD operations for the **Project** model. + * 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() + * ``` + */ + 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() + * ``` + */ + 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() + * ``` + */ + 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() + * ``` + */ + get deployment(): Prisma.DeploymentDelegate; +} + +export function getPrismaClientClass(): 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 new file mode 100644 index 0000000..af7e460 --- /dev/null +++ b/apps/server/generated/internal/prismaNamespace.ts @@ -0,0 +1,1104 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * 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" + +export type * from '../models.ts' + +export type DMMF = typeof runtime.DMMF + +export type PrismaPromise = runtime.Types.Public.PrismaPromise + +/** + * Prisma Errors + */ + +export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError +export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError + +export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError +export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError + +export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError +export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError + +export const PrismaClientInitializationError = runtime.PrismaClientInitializationError +export type PrismaClientInitializationError = runtime.PrismaClientInitializationError + +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 + + + +/** + * Decimal.js + */ +export const Decimal = runtime.Decimal +export type Decimal = runtime.Decimal + +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 + +export type PrismaVersion = { + 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" +} + +/** + * 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 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), +} +/** + * 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 + +/** + * 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 + +/** + * 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 + + +type SelectAndInclude = { + select: any + include: any +} + +type SelectAndOmit = { + 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]; +}; + +export type Enumerable = T | Array; + +/** + * Subset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection + */ +export type Subset = { + [key in keyof T]: key extends keyof U ? T[key] : never; +}; + +/** + * SelectSubset + * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. + * 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`.' + : {}) + +/** + * 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 + +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 + + +/** + * 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 + + +/** + * If it's T[], return T + */ +export type UnEnumerate = T extends Array ? U : T + +/** + * From ts-toolbelt + */ + +type __Either = Omit & + { + // Merge all but K + [P in K]: Prisma__Pick // With K possibilities + }[K] + +type EitherStrict = Strict<__Either> + +type EitherLoose = ComputeRaw<__Either> + +type _Either< + O extends object, + K extends Key, + strict extends Boolean +> = { + 1: EitherStrict + 0: EitherLoose +}[strict] + +export type Either< + O extends object, + K extends Key, + strict extends Boolean = 1 +> = O extends unknown ? _Either : never + +export type Union = any + +export type PatchUndefined = { + [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 +) extends (k: infer I) => void + ? I + : never + +export type Overwrite = { + [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; +} & {}; + +type _Merge = IntersectOf; +}>>; + +type Key = string | number | symbol; +type AtStrict = O[K & keyof O]; +type AtLoose = O extends unknown ? AtStrict : never; +export type At = { + 1: AtStrict; + 0: AtLoose; +}[strict]; + +export type ComputeRaw = A extends Function ? A : { + [K in keyof A]: A[K]; +} & {}; + +export type OptionalFlat = { + [K in keyof O]?: O[K]; +} & {}; + +type _Record = { + [P in K]: T; +}; + +// cause typescript not to expand types and preserve names +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>; + +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 True = 1 + +export type False = 0 + +export type Not = { + 0: 1 + 1: 0 +}[B] + +export type Extends = [A1] extends [never] + ? 0 // anything `never` is false + : A1 extends A2 + ? 1 + : 0 + +export type Has = Not< + Extends, U1> +> + +export type Or = { + 0: { + 0: 0 + 1: 1 + } + 1: { + 0: 1 + 1: 1 + } +}[B1][B2] + +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 + +type FieldPaths< + T, + U = Omit +> = IsObject extends True ? U : T + +export type GetHavingFields = { + [K in keyof T]: Or< + Or, Extends<'AND', K>>, + Extends<'NOT', K> + > extends True + ? // infer is only needed to not hit TS limit + // 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> + : never + : {} extends FieldPaths + ? 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 + +/** + * Like `Pick`, but additionally can also accept an array of keys + */ +export type PickEnumerable | keyof T> = Prisma__Pick> + +/** + * Exclude all keys with underscores + */ +export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T + + +export type FieldRef = runtime.FieldRef + +type FieldRefInputType = Model extends never ? never : FieldRef + + +export const ModelName = { + Project: 'Project', + User: 'User', + Pipeline: 'Pipeline', + Step: 'Step', + Deployment: 'Deployment' +} as const + +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 type TypeMap = { + globalOmitOptions: { + omit: GlobalOmitOptions + } + meta: { + modelProps: "project" | "user" | "pipeline" | "step" | "deployment" + txIsolationLevel: TransactionIsolationLevel + } + model: { + Project: { + payload: Prisma.$ProjectPayload + fields: Prisma.ProjectFieldRefs + operations: { + findUnique: { + args: Prisma.ProjectFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.ProjectFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.ProjectFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.ProjectFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.ProjectFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.ProjectCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.ProjectCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.ProjectCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.ProjectDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.ProjectUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.ProjectDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.ProjectUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.ProjectUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.ProjectUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.ProjectAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.ProjectGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.ProjectCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + User: { + payload: Prisma.$UserPayload + fields: Prisma.UserFieldRefs + operations: { + findUnique: { + args: Prisma.UserFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.UserFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.UserFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.UserFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.UserFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.UserCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.UserCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.UserCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.UserDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.UserUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.UserDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.UserUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.UserUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.UserUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.UserAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.UserGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.UserCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Pipeline: { + payload: Prisma.$PipelinePayload + fields: Prisma.PipelineFieldRefs + operations: { + findUnique: { + args: Prisma.PipelineFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.PipelineFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.PipelineFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.PipelineFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.PipelineFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.PipelineCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.PipelineCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.PipelineCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.PipelineDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.PipelineUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.PipelineDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.PipelineUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.PipelineUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.PipelineUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.PipelineAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.PipelineGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.PipelineCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Step: { + payload: Prisma.$StepPayload + fields: Prisma.StepFieldRefs + operations: { + findUnique: { + args: Prisma.StepFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.StepFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.StepFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.StepFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.StepFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.StepCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.StepCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.StepCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.StepDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.StepUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.StepDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.StepUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.StepUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.StepUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.StepAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.StepGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.StepCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + Deployment: { + payload: Prisma.$DeploymentPayload + fields: Prisma.DeploymentFieldRefs + operations: { + findUnique: { + args: Prisma.DeploymentFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.DeploymentFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.DeploymentFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.DeploymentFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.DeploymentFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.DeploymentCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.DeploymentCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.DeploymentCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.DeploymentDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.DeploymentUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.DeploymentDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.DeploymentUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.DeploymentUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.DeploymentUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.DeploymentAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.DeploymentGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.DeploymentCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } + } +} & { + other: { + payload: any + operations: { + $executeRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $executeRawUnsafe: { + args: [query: string, ...values: any[]], + result: any + } + $queryRaw: { + args: [query: TemplateStringsArray | Sql, ...values: any[]], + result: any + } + $queryRawUnsafe: { + 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] + + +export const ProjectScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + repository: 'repository', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy' +} as const + +export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + + +export const UserScalarFieldEnum = { + id: 'id', + username: 'username', + login: 'login', + email: 'email', + avatar_url: 'avatar_url', + active: 'active', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const PipelineScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy', + projectId: 'projectId' +} as const + +export type PipelineScalarFieldEnum = (typeof PipelineScalarFieldEnum)[keyof typeof PipelineScalarFieldEnum] + + +export const StepScalarFieldEnum = { + id: 'id', + name: 'name', + order: 'order', + script: 'script', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy', + pipelineId: 'pipelineId' +} as const + +export type StepScalarFieldEnum = (typeof StepScalarFieldEnum)[keyof typeof StepScalarFieldEnum] + + +export const DeploymentScalarFieldEnum = { + id: 'id', + branch: 'branch', + env: 'env', + status: 'status', + commitHash: 'commitHash', + commitMessage: 'commitMessage', + buildLog: 'buildLog', + startedAt: 'startedAt', + finishedAt: 'finishedAt', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy', + projectId: 'projectId', + 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] + + +export const NullsOrder = { + first: 'first', + 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'> + + + +/** + * Reference to a field of type 'String' + */ +export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> + + + +/** + * Reference to a field of type 'DateTime' + */ +export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> + + + +/** + * Reference to a field of type 'Boolean' + */ +export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> + + + +/** + * Reference to a field of type 'Float' + */ +export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> + + +/** + * Batch Payload for updateMany & deleteMany & createMany + */ +export type BatchPayload = { + 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 +}) & { + /** + * @default "colorless" + */ + errorFormat?: ErrorFormat + /** + * @example + * ``` + * // Shorthand for `emit: 'stdout'` + * log: ['query', 'info', 'warn', 'error'] + * + * // Emit as events only + * log: [ + * { emit: 'event', level: 'query' }, + * { emit: 'event', level: 'info' }, + * { 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)[] + /** + * The default values for transactionOptions + * maxWait ?= 2000 + * timeout ?= 5000 + */ + transactionOptions?: { + maxWait?: number + timeout?: number + isolationLevel?: TransactionIsolationLevel + } + /** + * Global configuration for omitting model fields by default. + * + * @example + * ``` + * const prisma = new PrismaClient({ + * omit: { + * user: { + * password: true + * } + * } + * }) + * ``` + */ + omit?: GlobalOmitConfig +} +export type GlobalOmitConfig = { + 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 LogDefinition = { + level: LogLevel + emit: 'stdout' | 'event' +} + +export type CheckIsLogLevel = T extends LogLevel ? T : never; + +export type GetLogType = CheckIsLogLevel< + T extends LogDefinition ? T['level'] : T +>; + +export type GetEvents = T extends Array + ? GetLogType + : never; + +export type QueryEvent = { + timestamp: Date + query: string + params: string + duration: number + target: string +} + +export type LogEvent = { + timestamp: Date + message: string + target: string +} +/* End Types for Logging */ + + +export type PrismaAction = + | 'findUnique' + | 'findUniqueOrThrow' + | 'findMany' + | 'findFirst' + | 'findFirstOrThrow' + | 'create' + | 'createMany' + | 'createManyAndReturn' + | 'update' + | 'updateMany' + | 'updateManyAndReturn' + | 'upsert' + | 'delete' + | 'deleteMany' + | 'executeRaw' + | 'queryRaw' + | 'aggregate' + | 'count' + | 'runCommandRaw' + | 'findRaw' + | 'groupBy' + +/** + * `PrismaClient` proxy available in interactive transactions. + */ +export type TransactionClient = Omit + diff --git a/apps/server/generated/internal/prismaNamespaceBrowser.ts b/apps/server/generated/internal/prismaNamespaceBrowser.ts new file mode 100644 index 0000000..80d50b7 --- /dev/null +++ b/apps/server/generated/internal/prismaNamespaceBrowser.ts @@ -0,0 +1,173 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * WARNING: This is an internal file that is subject to change! + * + * 🛑 Under no circumstances should you import this file directly! 🛑 + * + * All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file. + * While this enables partial backward compatibility, it is not part of the stable public API. + * + * If you are looking for your Models, Enums, and Input Types, please import them from the respective + * model files in the `model` directory! + */ + +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 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), +} +/** + * 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 + +/** + * 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 + +/** + * 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 ModelName = { + Project: 'Project', + User: 'User', + Pipeline: 'Pipeline', + Step: 'Step', + Deployment: 'Deployment' +} as const + +export type ModelName = (typeof ModelName)[keyof typeof ModelName] + +/* + * Enums + */ + +export const TransactionIsolationLevel = { + Serializable: 'Serializable' +} as const + +export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] + + +export const ProjectScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + repository: 'repository', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy' +} as const + +export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] + + +export const UserScalarFieldEnum = { + id: 'id', + username: 'username', + login: 'login', + email: 'email', + avatar_url: 'avatar_url', + active: 'active', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy' +} as const + +export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] + + +export const PipelineScalarFieldEnum = { + id: 'id', + name: 'name', + description: 'description', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy', + projectId: 'projectId' +} as const + +export type PipelineScalarFieldEnum = (typeof PipelineScalarFieldEnum)[keyof typeof PipelineScalarFieldEnum] + + +export const StepScalarFieldEnum = { + id: 'id', + name: 'name', + order: 'order', + script: 'script', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy', + pipelineId: 'pipelineId' +} as const + +export type StepScalarFieldEnum = (typeof StepScalarFieldEnum)[keyof typeof StepScalarFieldEnum] + + +export const DeploymentScalarFieldEnum = { + id: 'id', + branch: 'branch', + env: 'env', + status: 'status', + commitHash: 'commitHash', + commitMessage: 'commitMessage', + buildLog: 'buildLog', + startedAt: 'startedAt', + finishedAt: 'finishedAt', + valid: 'valid', + createdAt: 'createdAt', + updatedAt: 'updatedAt', + createdBy: 'createdBy', + updatedBy: 'updatedBy', + projectId: 'projectId', + 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] + + +export const NullsOrder = { + first: 'first', + 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 new file mode 100644 index 0000000..25adb1d --- /dev/null +++ b/apps/server/generated/models.ts @@ -0,0 +1,16 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @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 diff --git a/apps/server/generated/models/Deployment.ts b/apps/server/generated/models/Deployment.ts new file mode 100644 index 0000000..f41745a --- /dev/null +++ b/apps/server/generated/models/Deployment.ts @@ -0,0 +1,1802 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @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" + +/** + * Model Deployment + * + */ +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 +} + +export type DeploymentAvgAggregateOutputType = { + 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 +} + +export type DeploymentMinAggregateOutputType = { + id: number | null + branch: string | null + env: string | null + status: string | null + commitHash: string | null + commitMessage: string | null + buildLog: 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 + 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 + 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 +} + +export type DeploymentSumAggregateInputType = { + 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 + 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 + 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 + startedAt?: true + finishedAt?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true + projectId?: true + pipelineId?: true + _all?: true +} + +export type DeploymentAggregateArgs = { + /** + * Filter which Deployment to aggregate. + */ + 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[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + 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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Deployments. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Deployments + **/ + _count?: true | DeploymentCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: DeploymentAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: DeploymentMaxAggregateInputType +} + +export type GetDeploymentAggregateType = { + [P in keyof T & keyof AggregateDeployment]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : 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 DeploymentGroupByOutputType = { + id: number + branch: string + env: string | null + status: string + commitHash: string | null + commitMessage: string | null + buildLog: 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' + ? T[P] extends boolean + ? number + : 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 + 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 +} + +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 + 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 + 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 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 + 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 + 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 + 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 + 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 + 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 + 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 + 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 + 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 + 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 +} + +export type DeploymentOrderByRelationAggregateInput = { + _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 + 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 +} + +export type DeploymentMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + branch?: Prisma.SortOrder + env?: Prisma.SortOrder + status?: Prisma.SortOrder + commitHash?: Prisma.SortOrder + commitMessage?: Prisma.SortOrder + buildLog?: 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 + 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 +} + +export type DeploymentCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | 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[] +} + +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[] +} + +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[] +} + +export type NullableDateTimeFieldUpdateOperationsInput = { + set?: Date | string | null +} + +export type DeploymentCreateWithoutProjectInput = { + branch: string + env?: string | null + status: string + commitHash?: string | null + commitMessage?: string | null + buildLog?: 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 + 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 +} + +export type DeploymentCreateManyProjectInputEnvelope = { + data: Prisma.DeploymentCreateManyProjectInput | Prisma.DeploymentCreateManyProjectInput[] +} + +export type DeploymentUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.DeploymentWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type DeploymentUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.DeploymentWhereUniqueInput + data: Prisma.XOR +} + +export type DeploymentUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.DeploymentScalarWhereInput + data: Prisma.XOR +} + +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 + 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 + 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 + 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 + 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 + 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 = runtime.Types.Extensions.GetSelect<{ + id?: boolean + branch?: boolean + env?: boolean + status?: boolean + commitHash?: boolean + commitMessage?: boolean + buildLog?: 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 + 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 + 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 + 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" | "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 $DeploymentPayload = { + 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 + 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 DeploymentCountArgs = + Omit & { + select?: DeploymentCountAggregateInputType | true + } + +export interface DeploymentDelegate { + [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 + * @example + * // Get one Deployment + * const deployment = await prisma.deployment.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Deployment that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {DeploymentFindUniqueOrThrowArgs} args - Arguments to find a Deployment + * @example + * // Get one Deployment + * const deployment = await prisma.deployment.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Deployment that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeploymentFindFirstArgs} args - Arguments to find a Deployment + * @example + * // Get one Deployment + * const deployment = await prisma.deployment.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Deployment that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeploymentFindFirstOrThrowArgs} args - Arguments to find a Deployment + * @example + * // Get one Deployment + * const deployment = await prisma.deployment.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Deployments that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeploymentFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Deployments + * const deployments = await prisma.deployment.findMany() + * + * // Get first 10 Deployments + * const deployments = await prisma.deployment.findMany({ take: 10 }) + * + * // Only select the `id` + * const deploymentWithIdOnly = await prisma.deployment.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Deployment. + * @param {DeploymentCreateArgs} args - Arguments to create a Deployment. + * @example + * // Create one Deployment + * const Deployment = await prisma.deployment.create({ + * data: { + * // ... data to create a Deployment + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Deployments. + * @param {DeploymentCreateManyArgs} args - Arguments to create many Deployments. + * @example + * // Create many Deployments + * const deployment = await prisma.deployment.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Deployments and returns the data saved in the database. + * @param {DeploymentCreateManyAndReturnArgs} args - Arguments to create many Deployments. + * @example + * // Create many Deployments + * const deployment = await prisma.deployment.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Deployments and only return the `id` + * const deploymentWithIdOnly = await prisma.deployment.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Deployment. + * @param {DeploymentDeleteArgs} args - Arguments to delete one Deployment. + * @example + * // Delete one Deployment + * const Deployment = await prisma.deployment.delete({ + * where: { + * // ... filter to delete one Deployment + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Deployment. + * @param {DeploymentUpdateArgs} args - Arguments to update one Deployment. + * @example + * // Update one Deployment + * const deployment = await prisma.deployment.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Deployments. + * @param {DeploymentDeleteManyArgs} args - Arguments to filter Deployments to delete. + * @example + * // Delete a few Deployments + * const { count } = await prisma.deployment.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Deployments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeploymentUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Deployments + * const deployment = await prisma.deployment.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Deployments and returns the data updated in the database. + * @param {DeploymentUpdateManyAndReturnArgs} args - Arguments to update many Deployments. + * @example + * // Update many Deployments + * const deployment = await prisma.deployment.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Deployments and only return the `id` + * const deploymentWithIdOnly = await prisma.deployment.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Deployment. + * @param {DeploymentUpsertArgs} args - Arguments to update or create a Deployment. + * @example + * // Update or create a Deployment + * const deployment = await prisma.deployment.upsert({ + * create: { + * // ... data to create a Deployment + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Deployment we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__DeploymentClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Deployments. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeploymentCountArgs} args - Arguments to filter Deployments to count. + * @example + * // Count the number of Deployments + * const count = await prisma.deployment.count({ + * where: { + * // ... the filter for the Deployments we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Deployment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeploymentAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Deployment. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {DeploymentGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends DeploymentGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: DeploymentGroupByArgs['orderBy'] } + : { orderBy?: DeploymentGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetDeploymentGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Deployment model + */ +readonly fields: DeploymentFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Deployment. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__DeploymentClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + Project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the 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 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 = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null + /** + * Filter, which Deployment to fetch. + */ + where: Prisma.DeploymentWhereUniqueInput +} + +/** + * Deployment findUniqueOrThrow + */ +export type DeploymentFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null + /** + * Filter, which Deployment to fetch. + */ + where: Prisma.DeploymentWhereUniqueInput +} + +/** + * Deployment findFirst + */ +export type DeploymentFindFirstArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null + /** + * Filter, which Deployment to fetch. + */ + 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[] + /** + * {@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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Deployments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Deployments. + */ + 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[] +} + +/** + * Deployment findFirstOrThrow + */ +export type DeploymentFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null + /** + * Filter, which Deployment to fetch. + */ + 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[] + /** + * {@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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Deployments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Deployments. + */ + 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[] +} + +/** + * Deployment findMany + */ +export type DeploymentFindManyArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null + /** + * Filter, which Deployments to fetch. + */ + 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[] + /** + * {@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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Deployments from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Deployments. + */ + skip?: number + distinct?: Prisma.DeploymentScalarFieldEnum | Prisma.DeploymentScalarFieldEnum[] +} + +/** + * Deployment create + */ +export type DeploymentCreateArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null + /** + * The data needed to create a Deployment. + */ + data: Prisma.XOR +} + +/** + * Deployment createMany + */ +export type DeploymentCreateManyArgs = { + /** + * The data used to create many Deployments. + */ + data: Prisma.DeploymentCreateManyInput | Prisma.DeploymentCreateManyInput[] +} + +/** + * Deployment createManyAndReturn + */ +export type DeploymentCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * The data used to create many Deployments. + */ + data: Prisma.DeploymentCreateManyInput | Prisma.DeploymentCreateManyInput[] + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentIncludeCreateManyAndReturn | null +} + +/** + * Deployment update + */ +export type DeploymentUpdateArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null + /** + * The data needed to update a Deployment. + */ + data: Prisma.XOR + /** + * Choose, which Deployment to update. + */ + where: Prisma.DeploymentWhereUniqueInput +} + +/** + * Deployment updateMany + */ +export type DeploymentUpdateManyArgs = { + /** + * The data used to update Deployments. + */ + data: Prisma.XOR + /** + * Filter which Deployments to update + */ + where?: Prisma.DeploymentWhereInput + /** + * Limit how many Deployments to update. + */ + limit?: number +} + +/** + * Deployment updateManyAndReturn + */ +export type DeploymentUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * The data used to update Deployments. + */ + data: Prisma.XOR + /** + * Filter which Deployments to update + */ + where?: Prisma.DeploymentWhereInput + /** + * Limit how many Deployments to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentIncludeUpdateManyAndReturn | null +} + +/** + * Deployment upsert + */ +export type DeploymentUpsertArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null + /** + * The filter to search for the Deployment to update in case it exists. + */ + 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 + /** + * In case the Deployment was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Deployment delete + */ +export type DeploymentDeleteArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null + /** + * Filter which Deployment to delete. + */ + where: Prisma.DeploymentWhereUniqueInput +} + +/** + * Deployment deleteMany + */ +export type DeploymentDeleteManyArgs = { + /** + * Filter which Deployments to delete + */ + where?: Prisma.DeploymentWhereInput + /** + * Limit how many Deployments to delete. + */ + limit?: number +} + +/** + * Deployment.Project + */ +export type Deployment$ProjectArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + where?: Prisma.ProjectWhereInput +} + +/** + * Deployment without action + */ +export type DeploymentDefaultArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + omit?: Prisma.DeploymentOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.DeploymentInclude | null +} diff --git a/apps/server/generated/models/Pipeline.ts b/apps/server/generated/models/Pipeline.ts new file mode 100644 index 0000000..9ae3e16 --- /dev/null +++ b/apps/server/generated/models/Pipeline.ts @@ -0,0 +1,1706 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Pipeline` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Pipeline + * + */ +export type PipelineModel = runtime.Types.Result.DefaultSelection + +export type AggregatePipeline = { + _count: PipelineCountAggregateOutputType | null + _avg: PipelineAvgAggregateOutputType | null + _sum: PipelineSumAggregateOutputType | null + _min: PipelineMinAggregateOutputType | null + _max: PipelineMaxAggregateOutputType | null +} + +export type PipelineAvgAggregateOutputType = { + id: number | null + valid: number | null + projectId: number | null +} + +export type PipelineSumAggregateOutputType = { + id: number | null + valid: number | null + projectId: number | null +} + +export type PipelineMinAggregateOutputType = { + id: number | null + name: string | null + description: string | null + valid: number | null + createdAt: Date | null + updatedAt: Date | null + createdBy: string | null + updatedBy: string | null + projectId: number | null +} + +export type PipelineMaxAggregateOutputType = { + id: number | null + name: string | null + description: string | null + valid: number | null + createdAt: Date | null + updatedAt: Date | null + createdBy: string | null + updatedBy: string | null + projectId: number | null +} + +export type PipelineCountAggregateOutputType = { + id: number + name: number + description: number + valid: number + createdAt: number + updatedAt: number + createdBy: number + updatedBy: number + projectId: number + _all: number +} + + +export type PipelineAvgAggregateInputType = { + id?: true + valid?: true + projectId?: true +} + +export type PipelineSumAggregateInputType = { + id?: true + valid?: true + projectId?: true +} + +export type PipelineMinAggregateInputType = { + id?: true + name?: true + description?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true + projectId?: true +} + +export type PipelineMaxAggregateInputType = { + id?: true + name?: true + description?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true + projectId?: true +} + +export type PipelineCountAggregateInputType = { + id?: true + name?: true + description?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true + projectId?: true + _all?: true +} + +export type PipelineAggregateArgs = { + /** + * Filter which Pipeline to aggregate. + */ + where?: Prisma.PipelineWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Pipelines to fetch. + */ + orderBy?: Prisma.PipelineOrderByWithRelationInput | Prisma.PipelineOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.PipelineWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Pipelines from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Pipelines. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Pipelines + **/ + _count?: true | PipelineCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: PipelineAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: PipelineSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: PipelineMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: PipelineMaxAggregateInputType +} + +export type GetPipelineAggregateType = { + [P in keyof T & keyof AggregatePipeline]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : 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 PipelineGroupByOutputType = { + id: number + name: string + description: string | null + valid: number + createdAt: Date + updatedAt: Date + createdBy: string + updatedBy: string + projectId: number | null + _count: PipelineCountAggregateOutputType | null + _avg: PipelineAvgAggregateOutputType | null + _sum: PipelineSumAggregateOutputType | null + _min: PipelineMinAggregateOutputType | null + _max: PipelineMaxAggregateOutputType | null +} + +type GetPipelineGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof PipelineGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : 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 +} + +export type PipelineOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + Project?: Prisma.ProjectOrderByWithRelationInput + steps?: Prisma.StepOrderByRelationAggregateInput +} + +export type PipelineWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.PipelineWhereInput | Prisma.PipelineWhereInput[] + OR?: Prisma.PipelineWhereInput[] + NOT?: Prisma.PipelineWhereInput | Prisma.PipelineWhereInput[] + name?: Prisma.StringFilter<"Pipeline"> | string + description?: Prisma.StringNullableFilter<"Pipeline"> | string | null + valid?: Prisma.IntFilter<"Pipeline"> | number + createdAt?: Prisma.DateTimeFilter<"Pipeline"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Pipeline"> | Date | string + createdBy?: Prisma.StringFilter<"Pipeline"> | string + updatedBy?: Prisma.StringFilter<"Pipeline"> | string + projectId?: Prisma.IntNullableFilter<"Pipeline"> | number | null + Project?: Prisma.XOR | null + steps?: Prisma.StepListRelationFilter +}, "id"> + +export type PipelineOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + projectId?: Prisma.SortOrderInput | Prisma.SortOrder + _count?: Prisma.PipelineCountOrderByAggregateInput + _avg?: Prisma.PipelineAvgOrderByAggregateInput + _max?: Prisma.PipelineMaxOrderByAggregateInput + _min?: Prisma.PipelineMinOrderByAggregateInput + _sum?: Prisma.PipelineSumOrderByAggregateInput +} + +export type PipelineScalarWhereWithAggregatesInput = { + AND?: Prisma.PipelineScalarWhereWithAggregatesInput | Prisma.PipelineScalarWhereWithAggregatesInput[] + OR?: Prisma.PipelineScalarWhereWithAggregatesInput[] + NOT?: Prisma.PipelineScalarWhereWithAggregatesInput | Prisma.PipelineScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"Pipeline"> | number + name?: Prisma.StringWithAggregatesFilter<"Pipeline"> | string + description?: Prisma.StringNullableWithAggregatesFilter<"Pipeline"> | string | null + valid?: Prisma.IntWithAggregatesFilter<"Pipeline"> | number + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Pipeline"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Pipeline"> | Date | string + createdBy?: Prisma.StringWithAggregatesFilter<"Pipeline"> | string + updatedBy?: Prisma.StringWithAggregatesFilter<"Pipeline"> | string + projectId?: Prisma.IntNullableWithAggregatesFilter<"Pipeline"> | number | null +} + +export type PipelineCreateInput = { + name: string + description?: string | null + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + Project?: Prisma.ProjectCreateNestedOneWithoutPipelinesInput + steps?: Prisma.StepCreateNestedManyWithoutPipelineInput +} + +export type PipelineUncheckedCreateInput = { + id?: number + name: string + description?: string | null + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + projectId?: number | null + steps?: Prisma.StepUncheckedCreateNestedManyWithoutPipelineInput +} + +export type PipelineUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + Project?: Prisma.ProjectUpdateOneWithoutPipelinesNestedInput + steps?: Prisma.StepUpdateManyWithoutPipelineNestedInput +} + +export type PipelineUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null + steps?: Prisma.StepUncheckedUpdateManyWithoutPipelineNestedInput +} + +export type PipelineCreateManyInput = { + id?: number + name: string + description?: string | null + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + projectId?: number | null +} + +export type PipelineUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type PipelineUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type PipelineListRelationFilter = { + every?: Prisma.PipelineWhereInput + some?: Prisma.PipelineWhereInput + none?: Prisma.PipelineWhereInput +} + +export type PipelineOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type PipelineCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type PipelineAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + valid?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type PipelineMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type PipelineMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type PipelineSumOrderByAggregateInput = { + id?: Prisma.SortOrder + valid?: Prisma.SortOrder + projectId?: Prisma.SortOrder +} + +export type PipelineScalarRelationFilter = { + is?: Prisma.PipelineWhereInput + isNot?: Prisma.PipelineWhereInput +} + +export type PipelineCreateNestedManyWithoutProjectInput = { + create?: Prisma.XOR | Prisma.PipelineCreateWithoutProjectInput[] | Prisma.PipelineUncheckedCreateWithoutProjectInput[] + 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[] +} + +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[] +} + +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[] +} + +export type NullableIntFieldUpdateOperationsInput = { + set?: number | null + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type PipelineCreateNestedOneWithoutStepsInput = { + create?: Prisma.XOR + 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> +} + +export type PipelineCreateWithoutProjectInput = { + name: string + description?: string | null + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + steps?: Prisma.StepCreateNestedManyWithoutPipelineInput +} + +export type PipelineUncheckedCreateWithoutProjectInput = { + id?: number + name: string + description?: string | null + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + steps?: Prisma.StepUncheckedCreateNestedManyWithoutPipelineInput +} + +export type PipelineCreateOrConnectWithoutProjectInput = { + where: Prisma.PipelineWhereUniqueInput + create: Prisma.XOR +} + +export type PipelineCreateManyProjectInputEnvelope = { + data: Prisma.PipelineCreateManyProjectInput | Prisma.PipelineCreateManyProjectInput[] +} + +export type PipelineUpsertWithWhereUniqueWithoutProjectInput = { + where: Prisma.PipelineWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type PipelineUpdateWithWhereUniqueWithoutProjectInput = { + where: Prisma.PipelineWhereUniqueInput + data: Prisma.XOR +} + +export type PipelineUpdateManyWithWhereWithoutProjectInput = { + where: Prisma.PipelineScalarWhereInput + data: Prisma.XOR +} + +export type PipelineScalarWhereInput = { + AND?: Prisma.PipelineScalarWhereInput | Prisma.PipelineScalarWhereInput[] + OR?: Prisma.PipelineScalarWhereInput[] + NOT?: Prisma.PipelineScalarWhereInput | Prisma.PipelineScalarWhereInput[] + id?: Prisma.IntFilter<"Pipeline"> | number + name?: Prisma.StringFilter<"Pipeline"> | string + description?: Prisma.StringNullableFilter<"Pipeline"> | string | null + valid?: Prisma.IntFilter<"Pipeline"> | number + createdAt?: Prisma.DateTimeFilter<"Pipeline"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Pipeline"> | Date | string + createdBy?: Prisma.StringFilter<"Pipeline"> | string + updatedBy?: Prisma.StringFilter<"Pipeline"> | string + projectId?: Prisma.IntNullableFilter<"Pipeline"> | number | null +} + +export type PipelineCreateWithoutStepsInput = { + name: string + description?: string | null + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + Project?: Prisma.ProjectCreateNestedOneWithoutPipelinesInput +} + +export type PipelineUncheckedCreateWithoutStepsInput = { + id?: number + name: string + description?: string | null + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + projectId?: number | null +} + +export type PipelineCreateOrConnectWithoutStepsInput = { + where: Prisma.PipelineWhereUniqueInput + create: Prisma.XOR +} + +export type PipelineUpsertWithoutStepsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.PipelineWhereInput +} + +export type PipelineUpdateToOneWithWhereWithoutStepsInput = { + where?: Prisma.PipelineWhereInput + data: Prisma.XOR +} + +export type PipelineUpdateWithoutStepsInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + Project?: Prisma.ProjectUpdateOneWithoutPipelinesNestedInput +} + +export type PipelineUncheckedUpdateWithoutStepsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + projectId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null +} + +export type PipelineCreateManyProjectInput = { + id?: number + name: string + description?: string | null + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string +} + +export type PipelineUpdateWithoutProjectInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + steps?: Prisma.StepUpdateManyWithoutPipelineNestedInput +} + +export type PipelineUncheckedUpdateWithoutProjectInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + steps?: Prisma.StepUncheckedUpdateManyWithoutPipelineNestedInput +} + +export type PipelineUncheckedUpdateManyWithoutProjectInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string +} + + +/** + * Count Type PipelineCountOutputType + */ + +export type PipelineCountOutputType = { + steps: number +} + +export type PipelineCountOutputTypeSelect = { + steps?: boolean | PipelineCountOutputTypeCountStepsArgs +} + +/** + * PipelineCountOutputType without action + */ +export type PipelineCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the PipelineCountOutputType + */ + select?: Prisma.PipelineCountOutputTypeSelect | null +} + +/** + * PipelineCountOutputType without action + */ +export type PipelineCountOutputTypeCountStepsArgs = { + where?: Prisma.StepWhereInput +} + + +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 = 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 PipelineSelectScalar = { + 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 $PipelinePayload = { + 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: {} +} + +export type PipelineGetPayload = runtime.Types.Result.GetResult + +export type PipelineCountArgs = + Omit & { + select?: PipelineCountAggregateInputType | true + } + +export interface PipelineDelegate { + [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 + * @example + * // Get one Pipeline + * const pipeline = await prisma.pipeline.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Pipeline that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {PipelineFindUniqueOrThrowArgs} args - Arguments to find a Pipeline + * @example + * // Get one Pipeline + * const pipeline = await prisma.pipeline.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pipeline that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PipelineFindFirstArgs} args - Arguments to find a Pipeline + * @example + * // Get one Pipeline + * const pipeline = await prisma.pipeline.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Pipeline that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PipelineFindFirstOrThrowArgs} args - Arguments to find a Pipeline + * @example + * // Get one Pipeline + * const pipeline = await prisma.pipeline.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Pipelines that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PipelineFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Pipelines + * const pipelines = await prisma.pipeline.findMany() + * + * // Get first 10 Pipelines + * const pipelines = await prisma.pipeline.findMany({ take: 10 }) + * + * // Only select the `id` + * const pipelineWithIdOnly = await prisma.pipeline.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Pipeline. + * @param {PipelineCreateArgs} args - Arguments to create a Pipeline. + * @example + * // Create one Pipeline + * const Pipeline = await prisma.pipeline.create({ + * data: { + * // ... data to create a Pipeline + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Pipelines. + * @param {PipelineCreateManyArgs} args - Arguments to create many Pipelines. + * @example + * // Create many Pipelines + * const pipeline = await prisma.pipeline.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Pipelines and returns the data saved in the database. + * @param {PipelineCreateManyAndReturnArgs} args - Arguments to create many Pipelines. + * @example + * // Create many Pipelines + * const pipeline = await prisma.pipeline.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Pipelines and only return the `id` + * const pipelineWithIdOnly = await prisma.pipeline.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Pipeline. + * @param {PipelineDeleteArgs} args - Arguments to delete one Pipeline. + * @example + * // Delete one Pipeline + * const Pipeline = await prisma.pipeline.delete({ + * where: { + * // ... filter to delete one Pipeline + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Pipeline. + * @param {PipelineUpdateArgs} args - Arguments to update one Pipeline. + * @example + * // Update one Pipeline + * const pipeline = await prisma.pipeline.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Pipelines. + * @param {PipelineDeleteManyArgs} args - Arguments to filter Pipelines to delete. + * @example + * // Delete a few Pipelines + * const { count } = await prisma.pipeline.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Pipelines. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PipelineUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Pipelines + * const pipeline = await prisma.pipeline.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Pipelines and returns the data updated in the database. + * @param {PipelineUpdateManyAndReturnArgs} args - Arguments to update many Pipelines. + * @example + * // Update many Pipelines + * const pipeline = await prisma.pipeline.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Pipelines and only return the `id` + * const pipelineWithIdOnly = await prisma.pipeline.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Pipeline. + * @param {PipelineUpsertArgs} args - Arguments to update or create a Pipeline. + * @example + * // Update or create a Pipeline + * const pipeline = await prisma.pipeline.upsert({ + * create: { + * // ... data to create a Pipeline + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Pipeline we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__PipelineClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Pipelines. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PipelineCountArgs} args - Arguments to filter Pipelines to count. + * @example + * // Count the number of Pipelines + * const count = await prisma.pipeline.count({ + * where: { + * // ... the filter for the Pipelines we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Pipeline. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PipelineAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Pipeline. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {PipelineGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends PipelineGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: PipelineGroupByArgs['orderBy'] } + : { orderBy?: PipelineGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetPipelineGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Pipeline model + */ +readonly fields: PipelineFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Pipeline. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__PipelineClient 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> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the Pipeline model + */ +export interface PipelineFieldRefs { + readonly id: Prisma.FieldRef<"Pipeline", 'Int'> + readonly name: Prisma.FieldRef<"Pipeline", 'String'> + readonly description: Prisma.FieldRef<"Pipeline", 'String'> + readonly valid: Prisma.FieldRef<"Pipeline", 'Int'> + readonly createdAt: Prisma.FieldRef<"Pipeline", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Pipeline", 'DateTime'> + readonly createdBy: Prisma.FieldRef<"Pipeline", 'String'> + readonly updatedBy: Prisma.FieldRef<"Pipeline", 'String'> + readonly projectId: Prisma.FieldRef<"Pipeline", 'Int'> +} + + +// Custom InputTypes +/** + * Pipeline findUnique + */ +export type PipelineFindUniqueArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null + /** + * Filter, which Pipeline to fetch. + */ + where: Prisma.PipelineWhereUniqueInput +} + +/** + * Pipeline findUniqueOrThrow + */ +export type PipelineFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null + /** + * Filter, which Pipeline to fetch. + */ + where: Prisma.PipelineWhereUniqueInput +} + +/** + * Pipeline findFirst + */ +export type PipelineFindFirstArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null + /** + * Filter, which Pipeline to fetch. + */ + where?: Prisma.PipelineWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Pipelines to fetch. + */ + orderBy?: Prisma.PipelineOrderByWithRelationInput | Prisma.PipelineOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Pipelines. + */ + cursor?: Prisma.PipelineWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Pipelines from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Pipelines. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Pipelines. + */ + distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[] +} + +/** + * Pipeline findFirstOrThrow + */ +export type PipelineFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null + /** + * Filter, which Pipeline to fetch. + */ + where?: Prisma.PipelineWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Pipelines to fetch. + */ + orderBy?: Prisma.PipelineOrderByWithRelationInput | Prisma.PipelineOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Pipelines. + */ + cursor?: Prisma.PipelineWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Pipelines from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Pipelines. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Pipelines. + */ + distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[] +} + +/** + * Pipeline findMany + */ +export type PipelineFindManyArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null + /** + * Filter, which Pipelines to fetch. + */ + where?: Prisma.PipelineWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Pipelines to fetch. + */ + orderBy?: Prisma.PipelineOrderByWithRelationInput | Prisma.PipelineOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Pipelines. + */ + cursor?: Prisma.PipelineWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Pipelines from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Pipelines. + */ + skip?: number + distinct?: Prisma.PipelineScalarFieldEnum | Prisma.PipelineScalarFieldEnum[] +} + +/** + * Pipeline create + */ +export type PipelineCreateArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null + /** + * The data needed to create a Pipeline. + */ + data: Prisma.XOR +} + +/** + * Pipeline createMany + */ +export type PipelineCreateManyArgs = { + /** + * The data used to create many Pipelines. + */ + data: Prisma.PipelineCreateManyInput | Prisma.PipelineCreateManyInput[] +} + +/** + * Pipeline createManyAndReturn + */ +export type PipelineCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * The data used to create many Pipelines. + */ + data: Prisma.PipelineCreateManyInput | Prisma.PipelineCreateManyInput[] + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineIncludeCreateManyAndReturn | null +} + +/** + * Pipeline update + */ +export type PipelineUpdateArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null + /** + * The data needed to update a Pipeline. + */ + data: Prisma.XOR + /** + * Choose, which Pipeline to update. + */ + where: Prisma.PipelineWhereUniqueInput +} + +/** + * Pipeline updateMany + */ +export type PipelineUpdateManyArgs = { + /** + * The data used to update Pipelines. + */ + data: Prisma.XOR + /** + * Filter which Pipelines to update + */ + where?: Prisma.PipelineWhereInput + /** + * Limit how many Pipelines to update. + */ + limit?: number +} + +/** + * Pipeline updateManyAndReturn + */ +export type PipelineUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * The data used to update Pipelines. + */ + data: Prisma.XOR + /** + * Filter which Pipelines to update + */ + where?: Prisma.PipelineWhereInput + /** + * Limit how many Pipelines to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineIncludeUpdateManyAndReturn | null +} + +/** + * Pipeline upsert + */ +export type PipelineUpsertArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null + /** + * The filter to search for the Pipeline to update in case it exists. + */ + where: Prisma.PipelineWhereUniqueInput + /** + * In case the Pipeline found by the `where` argument doesn't exist, create a new Pipeline with this data. + */ + create: Prisma.XOR + /** + * In case the Pipeline was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Pipeline delete + */ +export type PipelineDeleteArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null + /** + * Filter which Pipeline to delete. + */ + where: Prisma.PipelineWhereUniqueInput +} + +/** + * Pipeline deleteMany + */ +export type PipelineDeleteManyArgs = { + /** + * Filter which Pipelines to delete + */ + where?: Prisma.PipelineWhereInput + /** + * Limit how many Pipelines to delete. + */ + limit?: number +} + +/** + * Pipeline.Project + */ +export type Pipeline$ProjectArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + where?: Prisma.ProjectWhereInput +} + +/** + * Pipeline.steps + */ +export type Pipeline$stepsArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + 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 = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + omit?: Prisma.PipelineOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.PipelineInclude | null +} diff --git a/apps/server/generated/models/Project.ts b/apps/server/generated/models/Project.ts new file mode 100644 index 0000000..8181589 --- /dev/null +++ b/apps/server/generated/models/Project.ts @@ -0,0 +1,1645 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @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" + +/** + * Model Project + * + */ +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 +} + +export type ProjectAvgAggregateOutputType = { + id: number | null + valid: number | null +} + +export type ProjectSumAggregateOutputType = { + id: number | null + valid: number | null +} + +export type ProjectMinAggregateOutputType = { + id: number | null + name: string | null + description: string | null + repository: 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 + 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 + valid: number + createdAt: number + updatedAt: number + createdBy: number + updatedBy: number + _all: number +} + + +export type ProjectAvgAggregateInputType = { + id?: true + valid?: true +} + +export type ProjectSumAggregateInputType = { + id?: true + valid?: true +} + +export type ProjectMinAggregateInputType = { + id?: true + name?: true + description?: true + repository?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true +} + +export type ProjectMaxAggregateInputType = { + id?: true + name?: true + description?: true + repository?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true +} + +export type ProjectCountAggregateInputType = { + id?: true + name?: true + description?: true + repository?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true + _all?: true +} + +export type ProjectAggregateArgs = { + /** + * Filter which Project to aggregate. + */ + 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[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + 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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Projects. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Projects + **/ + _count?: true | ProjectCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: ProjectAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: ProjectMaxAggregateInputType +} + +export type GetProjectAggregateType = { + [P in keyof T & keyof AggregateProject]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : 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 ProjectGroupByOutputType = { + id: number + name: string + description: string | null + repository: 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 +} + +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 + } + > + > + + + +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 + 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 + 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 + 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"> + +export type ProjectOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrderInput | Prisma.SortOrder + repository?: 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 + 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 + 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 + 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 + 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 + 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 + 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 + 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 + 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 + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder +} + +export type ProjectAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + valid?: Prisma.SortOrder +} + +export type ProjectMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + description?: Prisma.SortOrder + repository?: 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 + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder +} + +export type ProjectSumOrderByAggregateInput = { + id?: Prisma.SortOrder + valid?: Prisma.SortOrder +} + +export type ProjectNullableScalarRelationFilter = { + is?: Prisma.ProjectWhereInput | null + isNot?: Prisma.ProjectWhereInput | null +} + +export type StringFieldUpdateOperationsInput = { + set?: string +} + +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + +export type IntFieldUpdateOperationsInput = { + set?: number + increment?: number + decrement?: number + multiply?: number + divide?: number +} + +export type DateTimeFieldUpdateOperationsInput = { + set?: Date | string +} + +export type ProjectCreateNestedOneWithoutPipelinesInput = { + create?: Prisma.XOR + 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> +} + +export type ProjectCreateNestedOneWithoutDeploymentsInput = { + create?: Prisma.XOR + 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> +} + +export type ProjectCreateWithoutPipelinesInput = { + name: string + description?: string | null + repository: string + 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 + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + deployments?: Prisma.DeploymentUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutPipelinesInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR +} + +export type ProjectUpsertWithoutPipelinesInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutPipelinesInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR +} + +export type ProjectUpdateWithoutPipelinesInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + repository?: 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 +} + +export type ProjectUncheckedUpdateWithoutPipelinesInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + repository?: 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 +} + +export type ProjectCreateWithoutDeploymentsInput = { + name: string + description?: string | null + repository: string + 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 + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + pipelines?: Prisma.PipelineUncheckedCreateNestedManyWithoutProjectInput +} + +export type ProjectCreateOrConnectWithoutDeploymentsInput = { + where: Prisma.ProjectWhereUniqueInput + create: Prisma.XOR +} + +export type ProjectUpsertWithoutDeploymentsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.ProjectWhereInput +} + +export type ProjectUpdateToOneWithWhereWithoutDeploymentsInput = { + where?: Prisma.ProjectWhereInput + data: Prisma.XOR +} + +export type ProjectUpdateWithoutDeploymentsInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + repository?: 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 +} + +export type ProjectUncheckedUpdateWithoutDeploymentsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + repository?: 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 +} + + +/** + * Count Type ProjectCountOutputType + */ + +export type ProjectCountOutputType = { + deployments: number + pipelines: number +} + +export type ProjectCountOutputTypeSelect = { + deployments?: boolean | ProjectCountOutputTypeCountDeploymentsArgs + pipelines?: boolean | ProjectCountOutputTypeCountPipelinesArgs +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeDefaultArgs = { + /** + * Select specific fields to fetch from the ProjectCountOutputType + */ + select?: Prisma.ProjectCountOutputTypeSelect | null +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountDeploymentsArgs = { + where?: Prisma.DeploymentWhereInput +} + +/** + * ProjectCountOutputType without action + */ +export type ProjectCountOutputTypeCountPipelinesArgs = { + where?: Prisma.PipelineWhereInput +} + + +export type ProjectSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + repository?: 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 = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + description?: boolean + repository?: 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 + valid?: boolean + createdAt?: boolean + updatedAt?: boolean + createdBy?: boolean + updatedBy?: boolean +}, ExtArgs["result"]["project"]> + +export type ProjectSelectScalar = { + id?: boolean + name?: boolean + description?: boolean + repository?: boolean + valid?: boolean + createdAt?: boolean + updatedAt?: boolean + createdBy?: boolean + updatedBy?: boolean +} + +export type ProjectOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "description" | "repository" | "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 $ProjectPayload = { + name: "Project" + objects: { + deployments: Prisma.$DeploymentPayload[] + pipelines: Prisma.$PipelinePayload[] + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + description: string | null + repository: string + valid: number + createdAt: Date + updatedAt: Date + createdBy: string + updatedBy: string + }, ExtArgs["result"]["project"]> + composites: {} +} + +export type ProjectGetPayload = runtime.Types.Result.GetResult + +export type ProjectCountArgs = + Omit & { + select?: ProjectCountAggregateInputType | true + } + +export interface ProjectDelegate { + [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 + * @example + * // Get one Project + * const project = await prisma.project.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Project that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {ProjectFindUniqueOrThrowArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectFindFirstArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Project that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectFindFirstOrThrowArgs} args - Arguments to find a Project + * @example + * // Get one Project + * const project = await prisma.project.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Projects that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Projects + * const projects = await prisma.project.findMany() + * + * // Get first 10 Projects + * const projects = await prisma.project.findMany({ take: 10 }) + * + * // Only select the `id` + * const projectWithIdOnly = await prisma.project.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Project. + * @param {ProjectCreateArgs} args - Arguments to create a Project. + * @example + * // Create one Project + * const Project = await prisma.project.create({ + * data: { + * // ... data to create a Project + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Projects. + * @param {ProjectCreateManyArgs} args - Arguments to create many Projects. + * @example + * // Create many Projects + * const project = await prisma.project.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Projects and returns the data saved in the database. + * @param {ProjectCreateManyAndReturnArgs} args - Arguments to create many Projects. + * @example + * // Create many Projects + * const project = await prisma.project.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Projects and only return the `id` + * const projectWithIdOnly = await prisma.project.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Project. + * @param {ProjectDeleteArgs} args - Arguments to delete one Project. + * @example + * // Delete one Project + * const Project = await prisma.project.delete({ + * where: { + * // ... filter to delete one Project + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Project. + * @param {ProjectUpdateArgs} args - Arguments to update one Project. + * @example + * // Update one Project + * const project = await prisma.project.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Projects. + * @param {ProjectDeleteManyArgs} args - Arguments to filter Projects to delete. + * @example + * // Delete a few Projects + * const { count } = await prisma.project.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Projects. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Projects + * const project = await prisma.project.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Projects and returns the data updated in the database. + * @param {ProjectUpdateManyAndReturnArgs} args - Arguments to update many Projects. + * @example + * // Update many Projects + * const project = await prisma.project.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Projects and only return the `id` + * const projectWithIdOnly = await prisma.project.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Project. + * @param {ProjectUpsertArgs} args - Arguments to update or create a Project. + * @example + * // Update or create a Project + * const project = await prisma.project.upsert({ + * create: { + * // ... data to create a Project + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Project we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Projects. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectCountArgs} args - Arguments to filter Projects to count. + * @example + * // Count the number of Projects + * const count = await prisma.project.count({ + * where: { + * // ... the filter for the Projects we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Project. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Project. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {ProjectGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends ProjectGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: ProjectGroupByArgs['orderBy'] } + : { orderBy?: ProjectGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetProjectGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Project model + */ +readonly fields: ProjectFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Project. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__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> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the 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 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 = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project findUniqueOrThrow + */ +export type ProjectFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project findFirst + */ +export type ProjectFindFirstArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + 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[] + /** + * {@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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Projects. + */ + 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[] +} + +/** + * Project findFirstOrThrow + */ +export type ProjectFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Project to fetch. + */ + 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[] + /** + * {@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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Projects. + */ + 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[] +} + +/** + * Project findMany + */ +export type ProjectFindManyArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter, which Projects to fetch. + */ + 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[] + /** + * {@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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Projects from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Projects. + */ + skip?: number + distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] +} + +/** + * Project create + */ +export type ProjectCreateArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * The data needed to create a Project. + */ + data: Prisma.XOR +} + +/** + * Project createMany + */ +export type ProjectCreateManyArgs = { + /** + * The data used to create many Projects. + */ + data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] +} + +/** + * Project createManyAndReturn + */ +export type ProjectCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * The data used to create many Projects. + */ + data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] +} + +/** + * Project update + */ +export type ProjectUpdateArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * The data needed to update a Project. + */ + data: Prisma.XOR + /** + * Choose, which Project to update. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project updateMany + */ +export type ProjectUpdateManyArgs = { + /** + * The data used to update Projects. + */ + data: Prisma.XOR + /** + * Filter which Projects to update + */ + where?: Prisma.ProjectWhereInput + /** + * Limit how many Projects to update. + */ + limit?: number +} + +/** + * Project updateManyAndReturn + */ +export type ProjectUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * The data used to update Projects. + */ + data: Prisma.XOR + /** + * Filter which Projects to update + */ + where?: Prisma.ProjectWhereInput + /** + * Limit how many Projects to update. + */ + limit?: number +} + +/** + * Project upsert + */ +export type ProjectUpsertArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * The filter to search for the Project to update in case it exists. + */ + 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 + /** + * In case the Project was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Project delete + */ +export type ProjectDeleteArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null + /** + * Filter which Project to delete. + */ + where: Prisma.ProjectWhereUniqueInput +} + +/** + * Project deleteMany + */ +export type ProjectDeleteManyArgs = { + /** + * Filter which Projects to delete + */ + where?: Prisma.ProjectWhereInput + /** + * Limit how many Projects to delete. + */ + limit?: number +} + +/** + * Project.deployments + */ +export type Project$deploymentsArgs = { + /** + * Select specific fields to fetch from the Deployment + */ + select?: Prisma.DeploymentSelect | null + /** + * Omit specific fields from the Deployment + */ + 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[] +} + +/** + * Project.pipelines + */ +export type Project$pipelinesArgs = { + /** + * Select specific fields to fetch from the Pipeline + */ + select?: Prisma.PipelineSelect | null + /** + * Omit specific fields from the Pipeline + */ + 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[] +} + +/** + * Project without action + */ +export type ProjectDefaultArgs = { + /** + * Select specific fields to fetch from the Project + */ + select?: Prisma.ProjectSelect | null + /** + * Omit specific fields from the Project + */ + omit?: Prisma.ProjectOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.ProjectInclude | null +} diff --git a/apps/server/generated/models/Step.ts b/apps/server/generated/models/Step.ts new file mode 100644 index 0000000..41b2e9d --- /dev/null +++ b/apps/server/generated/models/Step.ts @@ -0,0 +1,1569 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `Step` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.ts" +import type * as Prisma from "../internal/prismaNamespace.ts" + +/** + * Model Step + * + */ +export type StepModel = runtime.Types.Result.DefaultSelection + +export type AggregateStep = { + _count: StepCountAggregateOutputType | null + _avg: StepAvgAggregateOutputType | null + _sum: StepSumAggregateOutputType | null + _min: StepMinAggregateOutputType | null + _max: StepMaxAggregateOutputType | null +} + +export type StepAvgAggregateOutputType = { + id: number | null + order: number | null + valid: number | null + pipelineId: number | null +} + +export type StepSumAggregateOutputType = { + id: number | null + order: number | null + valid: number | null + pipelineId: number | null +} + +export type StepMinAggregateOutputType = { + id: number | null + name: string | null + order: number | null + script: string | null + valid: number | null + createdAt: Date | null + updatedAt: Date | null + createdBy: string | null + updatedBy: string | null + pipelineId: number | null +} + +export type StepMaxAggregateOutputType = { + id: number | null + name: string | null + order: number | null + script: string | null + valid: number | null + createdAt: Date | null + updatedAt: Date | null + createdBy: string | null + updatedBy: string | null + pipelineId: number | null +} + +export type StepCountAggregateOutputType = { + id: number + name: number + order: number + script: number + valid: number + createdAt: number + updatedAt: number + createdBy: number + updatedBy: number + pipelineId: number + _all: number +} + + +export type StepAvgAggregateInputType = { + id?: true + order?: true + valid?: true + pipelineId?: true +} + +export type StepSumAggregateInputType = { + id?: true + order?: true + valid?: true + pipelineId?: true +} + +export type StepMinAggregateInputType = { + id?: true + name?: true + order?: true + script?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true + pipelineId?: true +} + +export type StepMaxAggregateInputType = { + id?: true + name?: true + order?: true + script?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true + pipelineId?: true +} + +export type StepCountAggregateInputType = { + id?: true + name?: true + order?: true + script?: true + valid?: true + createdAt?: true + updatedAt?: true + createdBy?: true + updatedBy?: true + pipelineId?: true + _all?: true +} + +export type StepAggregateArgs = { + /** + * Filter which Step to aggregate. + */ + where?: Prisma.StepWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Steps to fetch. + */ + orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.StepWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Steps from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Steps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Steps + **/ + _count?: true | StepCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: StepAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: StepSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: StepMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: StepMaxAggregateInputType +} + +export type GetStepAggregateType = { + [P in keyof T & keyof AggregateStep]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type StepGroupByArgs = { + where?: Prisma.StepWhereInput + orderBy?: Prisma.StepOrderByWithAggregationInput | Prisma.StepOrderByWithAggregationInput[] + by: Prisma.StepScalarFieldEnum[] | Prisma.StepScalarFieldEnum + having?: Prisma.StepScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: StepCountAggregateInputType | true + _avg?: StepAvgAggregateInputType + _sum?: StepSumAggregateInputType + _min?: StepMinAggregateInputType + _max?: StepMaxAggregateInputType +} + +export type StepGroupByOutputType = { + id: number + name: string + order: number + script: string + valid: number + createdAt: Date + updatedAt: Date + createdBy: string + updatedBy: string + pipelineId: number + _count: StepCountAggregateOutputType | null + _avg: StepAvgAggregateOutputType | null + _sum: StepSumAggregateOutputType | null + _min: StepMinAggregateOutputType | null + _max: StepMaxAggregateOutputType | null +} + +type GetStepGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof StepGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type StepWhereInput = { + AND?: Prisma.StepWhereInput | Prisma.StepWhereInput[] + OR?: Prisma.StepWhereInput[] + NOT?: Prisma.StepWhereInput | Prisma.StepWhereInput[] + id?: Prisma.IntFilter<"Step"> | number + name?: Prisma.StringFilter<"Step"> | string + order?: Prisma.IntFilter<"Step"> | number + script?: Prisma.StringFilter<"Step"> | string + valid?: Prisma.IntFilter<"Step"> | number + createdAt?: Prisma.DateTimeFilter<"Step"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Step"> | Date | string + createdBy?: Prisma.StringFilter<"Step"> | string + updatedBy?: Prisma.StringFilter<"Step"> | string + pipelineId?: Prisma.IntFilter<"Step"> | number + pipeline?: Prisma.XOR +} + +export type StepOrderByWithRelationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + order?: Prisma.SortOrder + script?: Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + pipelineId?: Prisma.SortOrder + pipeline?: Prisma.PipelineOrderByWithRelationInput +} + +export type StepWhereUniqueInput = Prisma.AtLeast<{ + id?: number + AND?: Prisma.StepWhereInput | Prisma.StepWhereInput[] + OR?: Prisma.StepWhereInput[] + NOT?: Prisma.StepWhereInput | Prisma.StepWhereInput[] + name?: Prisma.StringFilter<"Step"> | string + order?: Prisma.IntFilter<"Step"> | number + script?: Prisma.StringFilter<"Step"> | string + valid?: Prisma.IntFilter<"Step"> | number + createdAt?: Prisma.DateTimeFilter<"Step"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Step"> | Date | string + createdBy?: Prisma.StringFilter<"Step"> | string + updatedBy?: Prisma.StringFilter<"Step"> | string + pipelineId?: Prisma.IntFilter<"Step"> | number + pipeline?: Prisma.XOR +}, "id"> + +export type StepOrderByWithAggregationInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + order?: Prisma.SortOrder + script?: Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + pipelineId?: Prisma.SortOrder + _count?: Prisma.StepCountOrderByAggregateInput + _avg?: Prisma.StepAvgOrderByAggregateInput + _max?: Prisma.StepMaxOrderByAggregateInput + _min?: Prisma.StepMinOrderByAggregateInput + _sum?: Prisma.StepSumOrderByAggregateInput +} + +export type StepScalarWhereWithAggregatesInput = { + AND?: Prisma.StepScalarWhereWithAggregatesInput | Prisma.StepScalarWhereWithAggregatesInput[] + OR?: Prisma.StepScalarWhereWithAggregatesInput[] + NOT?: Prisma.StepScalarWhereWithAggregatesInput | Prisma.StepScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"Step"> | number + name?: Prisma.StringWithAggregatesFilter<"Step"> | string + order?: Prisma.IntWithAggregatesFilter<"Step"> | number + script?: Prisma.StringWithAggregatesFilter<"Step"> | string + valid?: Prisma.IntWithAggregatesFilter<"Step"> | number + createdAt?: Prisma.DateTimeWithAggregatesFilter<"Step"> | Date | string + updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Step"> | Date | string + createdBy?: Prisma.StringWithAggregatesFilter<"Step"> | string + updatedBy?: Prisma.StringWithAggregatesFilter<"Step"> | string + pipelineId?: Prisma.IntWithAggregatesFilter<"Step"> | number +} + +export type StepCreateInput = { + name: string + order: number + script: string + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + pipeline: Prisma.PipelineCreateNestedOneWithoutStepsInput +} + +export type StepUncheckedCreateInput = { + id?: number + name: string + order: number + script: string + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + pipelineId: number +} + +export type StepUpdateInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + order?: Prisma.IntFieldUpdateOperationsInput | number + script?: Prisma.StringFieldUpdateOperationsInput | string + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + pipeline?: Prisma.PipelineUpdateOneRequiredWithoutStepsNestedInput +} + +export type StepUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + order?: Prisma.IntFieldUpdateOperationsInput | number + script?: Prisma.StringFieldUpdateOperationsInput | string + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + pipelineId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type StepCreateManyInput = { + id?: number + name: string + order: number + script: string + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string + pipelineId: number +} + +export type StepUpdateManyMutationInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + order?: Prisma.IntFieldUpdateOperationsInput | number + script?: Prisma.StringFieldUpdateOperationsInput | string + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type StepUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + order?: Prisma.IntFieldUpdateOperationsInput | number + script?: Prisma.StringFieldUpdateOperationsInput | string + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string + pipelineId?: Prisma.IntFieldUpdateOperationsInput | number +} + +export type StepListRelationFilter = { + every?: Prisma.StepWhereInput + some?: Prisma.StepWhereInput + none?: Prisma.StepWhereInput +} + +export type StepOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type StepCountOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + order?: Prisma.SortOrder + script?: Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + pipelineId?: Prisma.SortOrder +} + +export type StepAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + order?: Prisma.SortOrder + valid?: Prisma.SortOrder + pipelineId?: Prisma.SortOrder +} + +export type StepMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + order?: Prisma.SortOrder + script?: Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + pipelineId?: Prisma.SortOrder +} + +export type StepMinOrderByAggregateInput = { + id?: Prisma.SortOrder + name?: Prisma.SortOrder + order?: Prisma.SortOrder + script?: Prisma.SortOrder + valid?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + updatedAt?: Prisma.SortOrder + createdBy?: Prisma.SortOrder + updatedBy?: Prisma.SortOrder + pipelineId?: Prisma.SortOrder +} + +export type StepSumOrderByAggregateInput = { + id?: Prisma.SortOrder + order?: Prisma.SortOrder + valid?: Prisma.SortOrder + pipelineId?: Prisma.SortOrder +} + +export type StepCreateNestedManyWithoutPipelineInput = { + create?: Prisma.XOR | Prisma.StepCreateWithoutPipelineInput[] | Prisma.StepUncheckedCreateWithoutPipelineInput[] + connectOrCreate?: Prisma.StepCreateOrConnectWithoutPipelineInput | Prisma.StepCreateOrConnectWithoutPipelineInput[] + createMany?: Prisma.StepCreateManyPipelineInputEnvelope + connect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] +} + +export type StepUncheckedCreateNestedManyWithoutPipelineInput = { + create?: Prisma.XOR | Prisma.StepCreateWithoutPipelineInput[] | Prisma.StepUncheckedCreateWithoutPipelineInput[] + connectOrCreate?: Prisma.StepCreateOrConnectWithoutPipelineInput | Prisma.StepCreateOrConnectWithoutPipelineInput[] + createMany?: Prisma.StepCreateManyPipelineInputEnvelope + connect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] +} + +export type StepUpdateManyWithoutPipelineNestedInput = { + create?: Prisma.XOR | Prisma.StepCreateWithoutPipelineInput[] | Prisma.StepUncheckedCreateWithoutPipelineInput[] + connectOrCreate?: Prisma.StepCreateOrConnectWithoutPipelineInput | Prisma.StepCreateOrConnectWithoutPipelineInput[] + upsert?: Prisma.StepUpsertWithWhereUniqueWithoutPipelineInput | Prisma.StepUpsertWithWhereUniqueWithoutPipelineInput[] + createMany?: Prisma.StepCreateManyPipelineInputEnvelope + set?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] + disconnect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] + delete?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] + connect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] + update?: Prisma.StepUpdateWithWhereUniqueWithoutPipelineInput | Prisma.StepUpdateWithWhereUniqueWithoutPipelineInput[] + updateMany?: Prisma.StepUpdateManyWithWhereWithoutPipelineInput | Prisma.StepUpdateManyWithWhereWithoutPipelineInput[] + deleteMany?: Prisma.StepScalarWhereInput | Prisma.StepScalarWhereInput[] +} + +export type StepUncheckedUpdateManyWithoutPipelineNestedInput = { + create?: Prisma.XOR | Prisma.StepCreateWithoutPipelineInput[] | Prisma.StepUncheckedCreateWithoutPipelineInput[] + connectOrCreate?: Prisma.StepCreateOrConnectWithoutPipelineInput | Prisma.StepCreateOrConnectWithoutPipelineInput[] + upsert?: Prisma.StepUpsertWithWhereUniqueWithoutPipelineInput | Prisma.StepUpsertWithWhereUniqueWithoutPipelineInput[] + createMany?: Prisma.StepCreateManyPipelineInputEnvelope + set?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] + disconnect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] + delete?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] + connect?: Prisma.StepWhereUniqueInput | Prisma.StepWhereUniqueInput[] + update?: Prisma.StepUpdateWithWhereUniqueWithoutPipelineInput | Prisma.StepUpdateWithWhereUniqueWithoutPipelineInput[] + updateMany?: Prisma.StepUpdateManyWithWhereWithoutPipelineInput | Prisma.StepUpdateManyWithWhereWithoutPipelineInput[] + deleteMany?: Prisma.StepScalarWhereInput | Prisma.StepScalarWhereInput[] +} + +export type StepCreateWithoutPipelineInput = { + name: string + order: number + script: string + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string +} + +export type StepUncheckedCreateWithoutPipelineInput = { + id?: number + name: string + order: number + script: string + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string +} + +export type StepCreateOrConnectWithoutPipelineInput = { + where: Prisma.StepWhereUniqueInput + create: Prisma.XOR +} + +export type StepCreateManyPipelineInputEnvelope = { + data: Prisma.StepCreateManyPipelineInput | Prisma.StepCreateManyPipelineInput[] +} + +export type StepUpsertWithWhereUniqueWithoutPipelineInput = { + where: Prisma.StepWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type StepUpdateWithWhereUniqueWithoutPipelineInput = { + where: Prisma.StepWhereUniqueInput + data: Prisma.XOR +} + +export type StepUpdateManyWithWhereWithoutPipelineInput = { + where: Prisma.StepScalarWhereInput + data: Prisma.XOR +} + +export type StepScalarWhereInput = { + AND?: Prisma.StepScalarWhereInput | Prisma.StepScalarWhereInput[] + OR?: Prisma.StepScalarWhereInput[] + NOT?: Prisma.StepScalarWhereInput | Prisma.StepScalarWhereInput[] + id?: Prisma.IntFilter<"Step"> | number + name?: Prisma.StringFilter<"Step"> | string + order?: Prisma.IntFilter<"Step"> | number + script?: Prisma.StringFilter<"Step"> | string + valid?: Prisma.IntFilter<"Step"> | number + createdAt?: Prisma.DateTimeFilter<"Step"> | Date | string + updatedAt?: Prisma.DateTimeFilter<"Step"> | Date | string + createdBy?: Prisma.StringFilter<"Step"> | string + updatedBy?: Prisma.StringFilter<"Step"> | string + pipelineId?: Prisma.IntFilter<"Step"> | number +} + +export type StepCreateManyPipelineInput = { + id?: number + name: string + order: number + script: string + valid?: number + createdAt?: Date | string + updatedAt?: Date | string + createdBy: string + updatedBy: string +} + +export type StepUpdateWithoutPipelineInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + order?: Prisma.IntFieldUpdateOperationsInput | number + script?: Prisma.StringFieldUpdateOperationsInput | string + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type StepUncheckedUpdateWithoutPipelineInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + order?: Prisma.IntFieldUpdateOperationsInput | number + script?: Prisma.StringFieldUpdateOperationsInput | string + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string +} + +export type StepUncheckedUpdateManyWithoutPipelineInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + order?: Prisma.IntFieldUpdateOperationsInput | number + script?: Prisma.StringFieldUpdateOperationsInput | string + valid?: Prisma.IntFieldUpdateOperationsInput | number + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + createdBy?: Prisma.StringFieldUpdateOperationsInput | string + updatedBy?: Prisma.StringFieldUpdateOperationsInput | string +} + + + +export type StepSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + order?: boolean + script?: boolean + valid?: boolean + createdAt?: boolean + updatedAt?: boolean + createdBy?: boolean + updatedBy?: boolean + pipelineId?: boolean + pipeline?: boolean | Prisma.PipelineDefaultArgs +}, ExtArgs["result"]["step"]> + +export type StepSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + order?: boolean + script?: boolean + valid?: boolean + createdAt?: boolean + updatedAt?: boolean + createdBy?: boolean + updatedBy?: boolean + pipelineId?: boolean + pipeline?: boolean | Prisma.PipelineDefaultArgs +}, ExtArgs["result"]["step"]> + +export type StepSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + name?: boolean + order?: boolean + script?: boolean + valid?: boolean + createdAt?: boolean + updatedAt?: boolean + createdBy?: boolean + updatedBy?: boolean + pipelineId?: boolean + pipeline?: boolean | Prisma.PipelineDefaultArgs +}, ExtArgs["result"]["step"]> + +export type StepSelectScalar = { + id?: boolean + name?: boolean + order?: boolean + script?: boolean + valid?: boolean + createdAt?: boolean + updatedAt?: boolean + createdBy?: boolean + updatedBy?: boolean + pipelineId?: boolean +} + +export type StepOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "order" | "script" | "valid" | "createdAt" | "updatedAt" | "createdBy" | "updatedBy" | "pipelineId", ExtArgs["result"]["step"]> +export type StepInclude = { + pipeline?: boolean | Prisma.PipelineDefaultArgs +} +export type StepIncludeCreateManyAndReturn = { + pipeline?: boolean | Prisma.PipelineDefaultArgs +} +export type StepIncludeUpdateManyAndReturn = { + pipeline?: boolean | Prisma.PipelineDefaultArgs +} + +export type $StepPayload = { + name: "Step" + objects: { + pipeline: Prisma.$PipelinePayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + name: string + order: number + script: string + valid: number + createdAt: Date + updatedAt: Date + createdBy: string + updatedBy: string + pipelineId: number + }, ExtArgs["result"]["step"]> + composites: {} +} + +export type StepGetPayload = runtime.Types.Result.GetResult + +export type StepCountArgs = + Omit & { + select?: StepCountAggregateInputType | true + } + +export interface StepDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['Step'], meta: { name: 'Step' } } + /** + * Find zero or one Step that matches the filter. + * @param {StepFindUniqueArgs} args - Arguments to find a Step + * @example + * // Get one Step + * const step = await prisma.step.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one Step that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {StepFindUniqueOrThrowArgs} args - Arguments to find a Step + * @example + * // Get one Step + * const step = await prisma.step.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Step that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StepFindFirstArgs} args - Arguments to find a Step + * @example + * // Get one Step + * const step = await prisma.step.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first Step that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StepFindFirstOrThrowArgs} args - Arguments to find a Step + * @example + * // Get one Step + * const step = await prisma.step.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Steps that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StepFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Steps + * const steps = await prisma.step.findMany() + * + * // Get first 10 Steps + * const steps = await prisma.step.findMany({ take: 10 }) + * + * // Only select the `id` + * const stepWithIdOnly = await prisma.step.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a Step. + * @param {StepCreateArgs} args - Arguments to create a Step. + * @example + * // Create one Step + * const Step = await prisma.step.create({ + * data: { + * // ... data to create a Step + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Steps. + * @param {StepCreateManyArgs} args - Arguments to create many Steps. + * @example + * // Create many Steps + * const step = await prisma.step.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Steps and returns the data saved in the database. + * @param {StepCreateManyAndReturnArgs} args - Arguments to create many Steps. + * @example + * // Create many Steps + * const step = await prisma.step.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Steps and only return the `id` + * const stepWithIdOnly = await prisma.step.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a Step. + * @param {StepDeleteArgs} args - Arguments to delete one Step. + * @example + * // Delete one Step + * const Step = await prisma.step.delete({ + * where: { + * // ... filter to delete one Step + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one Step. + * @param {StepUpdateArgs} args - Arguments to update one Step. + * @example + * // Update one Step + * const step = await prisma.step.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Steps. + * @param {StepDeleteManyArgs} args - Arguments to filter Steps to delete. + * @example + * // Delete a few Steps + * const { count } = await prisma.step.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Steps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StepUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Steps + * const step = await prisma.step.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Steps and returns the data updated in the database. + * @param {StepUpdateManyAndReturnArgs} args - Arguments to update many Steps. + * @example + * // Update many Steps + * const step = await prisma.step.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Steps and only return the `id` + * const stepWithIdOnly = await prisma.step.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one Step. + * @param {StepUpsertArgs} args - Arguments to update or create a Step. + * @example + * // Update or create a Step + * const step = await prisma.step.upsert({ + * create: { + * // ... data to create a Step + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the Step we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__StepClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Steps. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StepCountArgs} args - Arguments to filter Steps to count. + * @example + * // Count the number of Steps + * const count = await prisma.step.count({ + * where: { + * // ... the filter for the Steps we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a Step. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StepAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by Step. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {StepGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends StepGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: StepGroupByArgs['orderBy'] } + : { orderBy?: StepGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetStepGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the Step model + */ +readonly fields: StepFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for Step. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__StepClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + pipeline = {}>(args?: Prisma.Subset>): Prisma.Prisma__PipelineClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the Step model + */ +export interface StepFieldRefs { + readonly id: Prisma.FieldRef<"Step", 'Int'> + readonly name: Prisma.FieldRef<"Step", 'String'> + readonly order: Prisma.FieldRef<"Step", 'Int'> + readonly script: Prisma.FieldRef<"Step", 'String'> + readonly valid: Prisma.FieldRef<"Step", 'Int'> + readonly createdAt: Prisma.FieldRef<"Step", 'DateTime'> + readonly updatedAt: Prisma.FieldRef<"Step", 'DateTime'> + readonly createdBy: Prisma.FieldRef<"Step", 'String'> + readonly updatedBy: Prisma.FieldRef<"Step", 'String'> + readonly pipelineId: Prisma.FieldRef<"Step", 'Int'> +} + + +// Custom InputTypes +/** + * Step findUnique + */ +export type StepFindUniqueArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + /** + * Filter, which Step to fetch. + */ + where: Prisma.StepWhereUniqueInput +} + +/** + * Step findUniqueOrThrow + */ +export type StepFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + /** + * Filter, which Step to fetch. + */ + where: Prisma.StepWhereUniqueInput +} + +/** + * Step findFirst + */ +export type StepFindFirstArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + /** + * Filter, which Step to fetch. + */ + where?: Prisma.StepWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Steps to fetch. + */ + orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Steps. + */ + cursor?: Prisma.StepWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Steps from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Steps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Steps. + */ + distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[] +} + +/** + * Step findFirstOrThrow + */ +export type StepFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + /** + * Filter, which Step to fetch. + */ + where?: Prisma.StepWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Steps to fetch. + */ + orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for Steps. + */ + cursor?: Prisma.StepWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Steps from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Steps. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of Steps. + */ + distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[] +} + +/** + * Step findMany + */ +export type StepFindManyArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + /** + * Filter, which Steps to fetch. + */ + where?: Prisma.StepWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of Steps to fetch. + */ + orderBy?: Prisma.StepOrderByWithRelationInput | Prisma.StepOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing Steps. + */ + cursor?: Prisma.StepWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Steps from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Steps. + */ + skip?: number + distinct?: Prisma.StepScalarFieldEnum | Prisma.StepScalarFieldEnum[] +} + +/** + * Step create + */ +export type StepCreateArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + /** + * The data needed to create a Step. + */ + data: Prisma.XOR +} + +/** + * Step createMany + */ +export type StepCreateManyArgs = { + /** + * The data used to create many Steps. + */ + data: Prisma.StepCreateManyInput | Prisma.StepCreateManyInput[] +} + +/** + * Step createManyAndReturn + */ +export type StepCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelectCreateManyAndReturn | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * The data used to create many Steps. + */ + data: Prisma.StepCreateManyInput | Prisma.StepCreateManyInput[] + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepIncludeCreateManyAndReturn | null +} + +/** + * Step update + */ +export type StepUpdateArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + /** + * The data needed to update a Step. + */ + data: Prisma.XOR + /** + * Choose, which Step to update. + */ + where: Prisma.StepWhereUniqueInput +} + +/** + * Step updateMany + */ +export type StepUpdateManyArgs = { + /** + * The data used to update Steps. + */ + data: Prisma.XOR + /** + * Filter which Steps to update + */ + where?: Prisma.StepWhereInput + /** + * Limit how many Steps to update. + */ + limit?: number +} + +/** + * Step updateManyAndReturn + */ +export type StepUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * The data used to update Steps. + */ + data: Prisma.XOR + /** + * Filter which Steps to update + */ + where?: Prisma.StepWhereInput + /** + * Limit how many Steps to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepIncludeUpdateManyAndReturn | null +} + +/** + * Step upsert + */ +export type StepUpsertArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + /** + * The filter to search for the Step to update in case it exists. + */ + where: Prisma.StepWhereUniqueInput + /** + * In case the Step found by the `where` argument doesn't exist, create a new Step with this data. + */ + create: Prisma.XOR + /** + * In case the Step was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * Step delete + */ +export type StepDeleteArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null + /** + * Filter which Step to delete. + */ + where: Prisma.StepWhereUniqueInput +} + +/** + * Step deleteMany + */ +export type StepDeleteManyArgs = { + /** + * Filter which Steps to delete + */ + where?: Prisma.StepWhereInput + /** + * Limit how many Steps to delete. + */ + limit?: number +} + +/** + * Step without action + */ +export type StepDefaultArgs = { + /** + * Select specific fields to fetch from the Step + */ + select?: Prisma.StepSelect | null + /** + * Omit specific fields from the Step + */ + omit?: Prisma.StepOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.StepInclude | null +} diff --git a/apps/server/generated/models/User.ts b/apps/server/generated/models/User.ts new file mode 100644 index 0000000..66c481a --- /dev/null +++ b/apps/server/generated/models/User.ts @@ -0,0 +1,1361 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @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" + +/** + * Model User + * + */ +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 +} + +export type UserAvgAggregateOutputType = { + id: number | null + valid: number | null +} + +export type UserSumAggregateOutputType = { + 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 +} + +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 +} + +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 +} + + +export type UserAvgAggregateInputType = { + id?: true + valid?: true +} + +export type UserSumAggregateInputType = { + 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 +} + +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 +} + +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 +} + +export type UserAggregateArgs = { + /** + * Filter which User to aggregate. + */ + 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[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + 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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned Users + **/ + _count?: true | UserCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: UserAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: UserMaxAggregateInputType +} + +export type GetUserAggregateType = { + [P in keyof T & keyof AggregateUser]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : 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 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 +} + +type GetUserGroupByPayload = Prisma.PrismaPromise< + Array< + 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 +} + +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 +} + +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 +} + +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 +} + +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 +} + +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 +} + +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 +} + +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 +} + +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 +} + +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 +} + +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 +} + +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 +} + +export type UserAvgOrderByAggregateInput = { + 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 +} + +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 +} + +export type UserSumOrderByAggregateInput = { + id?: Prisma.SortOrder + valid?: Prisma.SortOrder +} + +export type BoolFieldUpdateOperationsInput = { + set?: boolean +} + + + +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 UserSelectScalar = { + 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 $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 UserGetPayload = runtime.Types.Result.GetResult + +export type UserCountArgs = + Omit & { + select?: UserCountAggregateInputType | true + } + +export interface UserDelegate { + [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 + * @example + * // Get one User + * const user = await prisma.user.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one User that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {UserFindUniqueOrThrowArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first User that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserFindFirstArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first User that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserFindFirstOrThrowArgs} args - Arguments to find a User + * @example + * // Get one User + * const user = await prisma.user.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more Users that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all Users + * const users = await prisma.user.findMany() + * + * // Get first 10 Users + * const users = await prisma.user.findMany({ take: 10 }) + * + * // Only select the `id` + * const userWithIdOnly = await prisma.user.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a User. + * @param {UserCreateArgs} args - Arguments to create a User. + * @example + * // Create one User + * const User = await prisma.user.create({ + * data: { + * // ... data to create a User + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many Users. + * @param {UserCreateManyArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const user = await prisma.user.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many Users and returns the data saved in the database. + * @param {UserCreateManyAndReturnArgs} args - Arguments to create many Users. + * @example + * // Create many Users + * const user = await prisma.user.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many Users and only return the `id` + * const userWithIdOnly = await prisma.user.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a User. + * @param {UserDeleteArgs} args - Arguments to delete one User. + * @example + * // Delete one User + * const User = await prisma.user.delete({ + * where: { + * // ... filter to delete one User + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one User. + * @param {UserUpdateArgs} args - Arguments to update one User. + * @example + * // Update one User + * const user = await prisma.user.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more Users. + * @param {UserDeleteManyArgs} args - Arguments to filter Users to delete. + * @example + * // Delete a few Users + * const { count } = await prisma.user.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many Users + * const user = await prisma.user.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more Users and returns the data updated in the database. + * @param {UserUpdateManyAndReturnArgs} args - Arguments to update many Users. + * @example + * // Update many Users + * const user = await prisma.user.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more Users and only return the `id` + * const userWithIdOnly = await prisma.user.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one User. + * @param {UserUpsertArgs} args - Arguments to update or create a User. + * @example + * // Update or create a User + * const user = await prisma.user.upsert({ + * create: { + * // ... data to create a User + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the User we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__UserClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of Users. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserCountArgs} args - Arguments to filter Users to count. + * @example + * // Count the number of Users + * const count = await prisma.user.count({ + * where: { + * // ... the filter for the Users we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a User. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by User. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {UserGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends UserGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: UserGroupByArgs['orderBy'] } + : { orderBy?: UserGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetUserGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the User model + */ +readonly fields: UserFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for User. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__UserClient 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 + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the 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'> +} + + +// Custom InputTypes +/** + * User findUnique + */ +export type UserFindUniqueArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findUniqueOrThrow + */ +export type UserFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Filter, which User to fetch. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User findFirst + */ +export type UserFindFirstArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Filter, which User to fetch. + */ + 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[] + /** + * {@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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + 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[] +} + +/** + * User findFirstOrThrow + */ +export type UserFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Filter, which User to fetch. + */ + 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[] + /** + * {@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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + 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[] +} + +/** + * User findMany + */ +export type UserFindManyArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Filter, which Users to fetch. + */ + 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[] + /** + * {@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 + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` Users from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` Users. + */ + skip?: number + distinct?: Prisma.UserScalarFieldEnum | Prisma.UserScalarFieldEnum[] +} + +/** + * User create + */ +export type UserCreateArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data needed to create a User. + */ + data: Prisma.XOR +} + +/** + * User createMany + */ +export type UserCreateManyArgs = { + /** + * The data used to create many Users. + */ + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] +} + +/** + * User createManyAndReturn + */ +export type UserCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelectCreateManyAndReturn | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data used to create many Users. + */ + data: Prisma.UserCreateManyInput | Prisma.UserCreateManyInput[] +} + +/** + * User update + */ +export type UserUpdateArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data needed to update a User. + */ + data: Prisma.XOR + /** + * Choose, which User to update. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User updateMany + */ +export type UserUpdateManyArgs = { + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * User updateManyAndReturn + */ +export type UserUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The data used to update Users. + */ + data: Prisma.XOR + /** + * Filter which Users to update + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to update. + */ + limit?: number +} + +/** + * User upsert + */ +export type UserUpsertArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * The filter to search for the User to update in case it exists. + */ + 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 + /** + * In case the User was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * User delete + */ +export type UserDeleteArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null + /** + * Filter which User to delete. + */ + where: Prisma.UserWhereUniqueInput +} + +/** + * User deleteMany + */ +export type UserDeleteManyArgs = { + /** + * Filter which Users to delete + */ + where?: Prisma.UserWhereInput + /** + * Limit how many Users to delete. + */ + limit?: number +} + +/** + * User without action + */ +export type UserDefaultArgs = { + /** + * Select specific fields to fetch from the User + */ + select?: Prisma.UserSelect | null + /** + * Omit specific fields from the User + */ + omit?: Prisma.UserOmit | null +} diff --git a/apps/server/libs/db.ts b/apps/server/libs/db.ts deleted file mode 100644 index fc4efa8..0000000 --- a/apps/server/libs/db.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { PrismaClient } from '../generated/prisma/index.js' - -const prismaClientSingleton = () => { - return new PrismaClient(); -}; - -export default prismaClientSingleton(); diff --git a/apps/server/libs/prisma.ts b/apps/server/libs/prisma.ts new file mode 100644 index 0000000..166838a --- /dev/null +++ b/apps/server/libs/prisma.ts @@ -0,0 +1,8 @@ +import 'dotenv/config'; +import { PrismaBetterSqlite3 } from '@prisma/adapter-better-sqlite3'; +import { PrismaClient } from '../generated/client.ts'; + +const connectionString = `${process.env.DATABASE_URL}`; + +const adapter = new PrismaBetterSqlite3({ url: connectionString }); +export const prisma = new PrismaClient({ adapter }); diff --git a/apps/server/package.json b/apps/server/package.json index adc536f..25ce952 100644 --- a/apps/server/package.json +++ b/apps/server/package.json @@ -12,7 +12,10 @@ "dependencies": { "@koa/cors": "^5.0.0", "@koa/router": "^14.0.0", - "@prisma/client": "^6.15.0", + "@prisma/adapter-better-sqlite3": "^7.0.0", + "@prisma/client": "^7.0.0", + "better-sqlite3": "^12.4.5", + "dotenv": "^17.2.3", "koa": "^3.0.1", "koa-bodyparser": "^4.4.1", "koa-session": "^7.0.2", @@ -29,7 +32,7 @@ "@types/koa__cors": "^5.0.0", "@types/koa__router": "^12.0.4", "@types/node": "^24.3.0", - "prisma": "^6.15.0", + "prisma": "^7.0.0", "tsx": "^4.20.5", "typescript": "^5.9.2" } diff --git a/apps/server/prisma.config.ts b/apps/server/prisma.config.ts new file mode 100644 index 0000000..34e5e8d --- /dev/null +++ b/apps/server/prisma.config.ts @@ -0,0 +1,19 @@ +import 'dotenv/config'; +import { defineConfig, env } from 'prisma/config'; + +export default defineConfig({ + // the main entry for your schema + schema: 'prisma/schema.prisma', + // where migrations should be generated + // what script to run for "prisma db seed" + migrations: { + path: 'prisma/migrations', + seed: 'tsx prisma/seed.ts', + }, + // The database URL + datasource: { + // Type Safe env() helper + // Does not replace the need for dotenv + url: env('DATABASE_URL'), + }, +}); diff --git a/apps/server/prisma/data/dev.db b/apps/server/prisma/data/dev.db index f70f1d61a202aa7e520be1b414652d23e6dc82f8..a34b14c2db4e155ea258c710f4ea4ad5893c07b6 100644 GIT binary patch delta 116 zcmZo@U}|V!njp<+GEv5v)r3K>O>1MyB7YWd27d3&iVBYWe2qqoybO|(`i+8|obK+E z+v5|hj0}uSbqy?a4UIz#jjT+~tc(ox3=9mk4GgRd48W3xhPpa@@U!$^3?M1V6ixsD diff --git a/apps/server/prisma/schema.prisma b/apps/server/prisma/schema.prisma index d751968..f56d18b 100644 --- a/apps/server/prisma/schema.prisma +++ b/apps/server/prisma/schema.prisma @@ -2,13 +2,12 @@ // learn more about it in the docs: https://pris.ly/d/prisma-schema generator client { - provider = "prisma-client-js" - output = "../generated/prisma" + provider = "prisma-client" + output = "../generated" } datasource db { provider = "sqlite" - url = env("DATABASE_URL") } model Project { diff --git a/apps/server/tsconfig.json b/apps/server/tsconfig.json index 1b18d80..b64d589 100644 --- a/apps/server/tsconfig.json +++ b/apps/server/tsconfig.json @@ -4,7 +4,10 @@ "@tsconfig/node-ts/tsconfig.json" ], "compilerOptions": { - "target": "ES2022", - "useDefineForClassFields": false + "module": "ESNext", + "moduleResolution": "node", + "target": "ES2023", + "strict": true, + "esModuleInterop": true } } diff --git a/apps/web/src/index.tsx b/apps/web/src/index.tsx index 9bd7d23..743ace8 100644 --- a/apps/web/src/index.tsx +++ b/apps/web/src/index.tsx @@ -2,6 +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' const rootEl = document.getElementById('root'); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 99ab578..d4f4a77 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,9 +20,18 @@ importers: '@koa/router': specifier: ^14.0.0 version: 14.0.0 + '@prisma/adapter-better-sqlite3': + specifier: ^7.0.0 + version: 7.0.0 '@prisma/client': - specifier: ^6.15.0 - version: 6.15.0(prisma@6.15.0(typescript@5.9.2))(typescript@5.9.2) + specifier: ^7.0.0 + version: 7.0.0(prisma@7.0.0(@types/react@18.3.27)(better-sqlite3@12.4.5)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)(typescript@5.9.2))(typescript@5.9.2) + better-sqlite3: + specifier: ^12.4.5 + version: 12.4.5 + dotenv: + specifier: ^17.2.3 + version: 17.2.3 koa: specifier: ^3.0.1 version: 3.0.1 @@ -67,8 +76,8 @@ importers: specifier: ^24.3.0 version: 24.3.0 prisma: - specifier: ^6.15.0 - version: 6.15.0(typescript@5.9.2) + specifier: ^7.0.0 + version: 7.0.0(@types/react@18.3.27)(better-sqlite3@12.4.5)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)(typescript@5.9.2) tsx: specifier: ^4.20.5 version: 4.20.5 @@ -285,6 +294,18 @@ packages: cpu: [x64] os: [win32] + '@chevrotain/cst-dts-gen@10.5.0': + resolution: {integrity: sha512-lhmC/FyqQ2o7pGK4Om+hzuDrm9rhFYIJ/AXoQBeongmn870Xeb0L6oGEiuR8nohFNL5sMaQEJWCxr1oIVIVXrw==} + + '@chevrotain/gast@10.5.0': + resolution: {integrity: sha512-pXdMJ9XeDAbgOWKuD1Fldz4ieCs6+nLNmyVhe2gZVqoO7v8HXuHYs5OV2EzUtbuai37TlOAQHrTDvxMnvMJz3A==} + + '@chevrotain/types@10.5.0': + resolution: {integrity: sha512-f1MAia0x/pAVPWH/T73BJVyO2XU5tI4/iE7cnxb7tqdNTNhQI3Uq3XkqcoteTmD4t1aM0LbHCJOhgIDn07kl2A==} + + '@chevrotain/utils@10.5.0': + resolution: {integrity: sha512-hBzuU5+JjB2cqNZyszkDHZgOSrUUT8V3dhgRl8Q9Gp6dAj/H5+KILGjbhDpc3Iy9qmqlm/akuOI2ut9VUtzJxQ==} + '@dnd-kit/accessibility@3.1.1': resolution: {integrity: sha512-2P+YgaXF+gRsIihwwY1gCsQSYnu9Zyj2py8kY5fFvUM1qm2WA2u639R6YNVfU4GWr+ZM5mqEsfHZZLoRONbemw==} peerDependencies: @@ -307,6 +328,20 @@ packages: peerDependencies: react: '>=16.8.0' + '@electric-sql/pglite-socket@0.0.6': + resolution: {integrity: sha512-6RjmgzphIHIBA4NrMGJsjNWK4pu+bCWJlEWlwcxFTVY3WT86dFpKwbZaGWZV6C5Rd7sCk1Z0CI76QEfukLAUXw==} + hasBin: true + peerDependencies: + '@electric-sql/pglite': 0.3.2 + + '@electric-sql/pglite-tools@0.2.7': + resolution: {integrity: sha512-9dAccClqxx4cZB+Ar9B+FZ5WgxDc/Xvl9DPrTWv+dYTf0YNubLzi4wHHRGRGhrJv15XwnyKcGOZAP1VXSneSUg==} + peerDependencies: + '@electric-sql/pglite': 0.3.2 + + '@electric-sql/pglite@0.3.2': + resolution: {integrity: sha512-zfWWa+V2ViDCY/cmUfRqeWY1yLto+EpxjXnZzenB1TyxsTiXaTWeZFIZw6mac52BsuQm0RjCnisjBtdBaXOI6w==} + '@emnapi/core@1.7.1': resolution: {integrity: sha512-o1uhUASyo921r2XtHYOHy7gdkGLge8ghBEQHMWmyJFoXlpU58kIrhhN3w26lpQb6dspetweapMn2CSNwQ8I4wg==} @@ -475,6 +510,12 @@ packages: '@hapi/bourne@3.0.0': resolution: {integrity: sha512-Waj1cwPXJDucOib4a3bAISsKJVb15MKi9IvmTI/7ssVEm6sywXGjVJDhl6/umt1pK1ZS7PacXU3A1PmFKHEZ2w==} + '@hono/node-server@1.14.2': + resolution: {integrity: sha512-GHjpOeHYbr9d1vkID2sNUYkl5IxumyhDrUJB7wBp7jvqYwPFt+oNKsAPBRcdSbV7kIrXhouLE199ks1QcK4r7A==} + engines: {node: '>=18.14.1'} + peerDependencies: + hono: ^4 + '@isaacs/fs-minipass@4.0.1': resolution: {integrity: sha512-wgm9Ehl2jpeqP3zw/7mo3kRHFp5MEDhqAdwy1fTGkHAwnkGOVsgpvQhL8B5n1qlb01jV3n/bI0ZfZp5lWA1k4w==} engines: {node: '>=18.0.0'} @@ -521,38 +562,70 @@ packages: '@module-federation/webpack-bundler-runtime@0.21.4': resolution: {integrity: sha512-dusmR3uPnQh9u9ChQo3M+GLOuGFthfvnh7WitF/a1eoeTfRmXqnMFsXtZCUK+f/uXf+64874Zj/bhAgbBcVHZA==} + '@mrleebo/prisma-ast@0.12.1': + resolution: {integrity: sha512-JwqeCQ1U3fvccttHZq7Tk0m/TMC6WcFAQZdukypW3AzlJYKYTGNVd1ANU2GuhKnv4UQuOFj3oAl0LLG/gxFN1w==} + engines: {node: '>=16'} + '@napi-rs/wasm-runtime@1.0.7': resolution: {integrity: sha512-SeDnOO0Tk7Okiq6DbXmmBODgOAb9dp9gjlphokTUxmt8U3liIP1ZsozBahH69j/RJv+Rfs6IwUKHTgQYJ/HBAw==} - '@prisma/client@6.15.0': - resolution: {integrity: sha512-wR2LXUbOH4cL/WToatI/Y2c7uzni76oNFND7+23ypLllBmIS8e3ZHhO+nud9iXSXKFt1SoM3fTZvHawg63emZw==} - engines: {node: '>=18.18'} + '@prisma/adapter-better-sqlite3@7.0.0': + resolution: {integrity: sha512-a0ltJcisHuudnzgD822TwTrvxpQ84ZXUk/3WJLOIGrAM/tysLMb7Q4n0uZeCofvh+UMRoGcT2B6TS3T9/TLMUA==} + + '@prisma/client-runtime-utils@7.0.0': + resolution: {integrity: sha512-PAiFgMBPrLSaakBwUpML5NevipuKSL3rtNr8pZ8CZ3OBXo0BFcdeGcBIKw/CxJP6H4GNa4+l5bzJPrk8Iq6tDw==} + + '@prisma/client@7.0.0': + resolution: {integrity: sha512-FM1NtJezl0zH3CybLxcbJwShJt7xFGSRg+1tGhy3sCB8goUDnxnBR+RC/P35EAW8gjkzx7kgz7bvb0MerY2VSw==} + engines: {node: ^20.19 || ^22.12 || ^24.0} peerDependencies: prisma: '*' - typescript: '>=5.1.0' + typescript: '>=5.4.0' peerDependenciesMeta: prisma: optional: true typescript: optional: true - '@prisma/config@6.15.0': - resolution: {integrity: sha512-KMEoec9b2u6zX0EbSEx/dRpx1oNLjqJEBZYyK0S3TTIbZ7GEGoVyGyFRk4C72+A38cuPLbfQGQvgOD+gBErKlA==} + '@prisma/config@7.0.0': + resolution: {integrity: sha512-TDASB57hyGUwHB0IPCSkoJcXFrJOKA1+R/1o4np4PbS+E0F5MiY5aAyUttO0mSuNQaX7t8VH/GkDemffF1mQzg==} - '@prisma/debug@6.15.0': - resolution: {integrity: sha512-y7cSeLuQmyt+A3hstAs6tsuAiVXSnw9T55ra77z0nbNkA8Lcq9rNcQg6PI00by/+WnE/aMRJ/W7sZWn2cgIy1g==} + '@prisma/debug@6.8.2': + resolution: {integrity: sha512-4muBSSUwJJ9BYth5N8tqts8JtiLT8QI/RSAzEogwEfpbYGFo9mYsInsVo8dqXdPO2+Rm5OG5q0qWDDE3nyUbVg==} - '@prisma/engines-version@6.15.0-5.85179d7826409ee107a6ba334b5e305ae3fba9fb': - resolution: {integrity: sha512-a/46aK5j6L3ePwilZYEgYDPrhBQ/n4gYjLxT5YncUTJJNRnTCVjPF86QdzUOLRdYjCLfhtZp9aum90W0J+trrg==} + '@prisma/debug@7.0.0': + resolution: {integrity: sha512-SdS3qzfMASHtWimywtkiRcJtrHzacbmMVhElko3DYUZSB0TTLqRYWpddRBJdeGgSLmy1FD55p7uGzIJ+MtfhMg==} - '@prisma/engines@6.15.0': - resolution: {integrity: sha512-opITiR5ddFJ1N2iqa7mkRlohCZqVSsHhRcc29QXeldMljOf4FSellLT0J5goVb64EzRTKcIDeIsJBgmilNcKxA==} + '@prisma/dev@0.13.0': + resolution: {integrity: sha512-QMmF6zFeUF78yv1HYbHvod83AQnl7u6NtKyDhTRZOJup3h1icWs8R7RUVxBJZvM2tBXNAMpLQYYM/8kPlOPegA==} - '@prisma/fetch-engine@6.15.0': - resolution: {integrity: sha512-xcT5f6b+OWBq6vTUnRCc7qL+Im570CtwvgSj+0MTSGA1o9UDSKZ/WANvwtiRXdbYWECpyC3CukoG3A04VTAPHw==} + '@prisma/driver-adapter-utils@7.0.0': + resolution: {integrity: sha512-ZEvzFaIapnfNKFPgZu/Zy4g6jfO5C0ZmMp+IjO9hNKNDwVKrDlBKw7F3Y9oRK0U0kfb9lKWP4Dz7DgtKs4TTbA==} - '@prisma/get-platform@6.15.0': - resolution: {integrity: sha512-Jbb+Xbxyp05NSR1x2epabetHiXvpO8tdN2YNoWoA/ZsbYyxxu/CO/ROBauIFuMXs3Ti+W7N7SJtWsHGaWte9Rg==} + '@prisma/engines-version@6.20.0-16.next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513': + resolution: {integrity: sha512-7bzyN8Gp9GbDFbTDzVUH9nFcgRWvsWmjrGgBJvIC/zEoAuv/lx62gZXgAKfjn/HoPkxz/dS+TtsnduFx8WA+cw==} + + '@prisma/engines@7.0.0': + resolution: {integrity: sha512-ojCL3OFLMCz33UbU9XwH32jwaeM+dWb8cysTuY8eK6ZlMKXJdy6ogrdG3MGB3meKLGdQBmOpUUGJ7eLIaxbrcg==} + + '@prisma/fetch-engine@7.0.0': + resolution: {integrity: sha512-qcyWTeWDjVDaDQSrVIymZU1xCYlvmwCzjA395lIuFjUESOH3YQCb8i/hpd4vopfq3fUR4v6+MjjtIGvnmErQgw==} + + '@prisma/get-platform@6.8.2': + resolution: {integrity: sha512-vXSxyUgX3vm1Q70QwzwkjeYfRryIvKno1SXbIqwSptKwqKzskINnDUcx85oX+ys6ooN2ATGSD0xN2UTfg6Zcow==} + + '@prisma/get-platform@7.0.0': + resolution: {integrity: sha512-zyhzrAa+y/GfyCzTnuk0D9lfkvDzo7IbsNyuhTqhPu/AN0txm0x26HAR4tJLismla/fHf5fBzYwSivYSzkpakg==} + + '@prisma/query-plan-executor@6.18.0': + resolution: {integrity: sha512-jZ8cfzFgL0jReE1R10gT8JLHtQxjWYLiQ//wHmVYZ2rVkFHoh0DT8IXsxcKcFlfKN7ak7k6j0XMNn2xVNyr5cA==} + + '@prisma/studio-core-licensed@0.8.0': + resolution: {integrity: sha512-SXCcgFvo/SC6/11kEOaQghJgCWNEWZUvPYKn/gpvMB9HLSG/5M8If7dWZtEQHhchvl8bh9A89Hw6mEKpsXFimA==} + peerDependencies: + '@types/react': ^18.0.0 || ^19.0.0 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 '@rsbuild/core@1.6.7': resolution: {integrity: sha512-V0INbMrT/LwyhzKmvpupe2oSvPFWaivz7sdriFRp381BJvD0d2pYcq9iRW91bxgMRX78MgTzFYAu868hMAzoSw==} @@ -916,6 +989,10 @@ packages: resolution: {integrity: sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==} engines: {node: '>=8.0.0'} + aws-ssl-profiles@1.1.2: + resolution: {integrity: sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==} + engines: {node: '>= 6.0.0'} + axios@1.11.0: resolution: {integrity: sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==} @@ -931,6 +1008,19 @@ packages: base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} + better-sqlite3@11.10.0: + resolution: {integrity: sha512-EwhOpyXiOEL/lKzHz9AW1msWFNzGc/z+LzeB3/jnFJpxu+th2yqvzsSWas1v9jgs9+xiXJcD5A8CJxAG2TaghQ==} + + better-sqlite3@12.4.5: + resolution: {integrity: sha512-4NejwX2llfdKYK7Tzwwre/qKzTXiqcbycIagtqMH9oE7Es3LCUGGGXvhw8rWbZ2alx1C/Nh0MeJyYEZKUFs4sw==} + engines: {node: 20.x || 22.x || 23.x || 24.x || 25.x} + + bindings@1.5.0: + resolution: {integrity: sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==} + + bl@4.1.0: + resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} + boolbase@1.0.0: resolution: {integrity: sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==} @@ -976,10 +1066,16 @@ packages: caniuse-lite@1.0.30001737: resolution: {integrity: sha512-BiloLiXtQNrY5UyF0+1nSJLXUENuhka2pzy2Fx5pGxqavdrxSCW4U6Pn/PoG3Efspi2frRbHpBV2XsrPE6EDlw==} + chevrotain@10.5.0: + resolution: {integrity: sha512-Pkv5rBY3+CsHOYfV5g/Vs5JY9WTHHDEKOlohI2XeygaZhUeqhAlldZ8Hz9cRmxu709bvS08YzxHdTPHhffc13A==} + chokidar@4.0.3: resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} engines: {node: '>= 14.16.0'} + chownr@1.1.4: + resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} + chownr@3.0.0: resolution: {integrity: sha512-+IxzY9BZOQd/XuYPRmrvEVjF/nqj5kgT4kEq7VofrDoM1MxoRjEWkrCC3EtLi59TVawxTAn+orJwFQcrqEN1+g==} engines: {node: '>=18'} @@ -1064,6 +1160,10 @@ packages: crc@3.8.0: resolution: {integrity: sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==} + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + css-select@5.2.2: resolution: {integrity: sha512-TizTzUddG/xYLA3NXodFM0fSbNizXjOKhqiQQwvhlspadZokn1KDy0NZFS0wuEubIYAV5/c1/lAr0TaaFXEXzw==} @@ -1101,9 +1201,17 @@ packages: supports-color: optional: true + decompress-response@6.0.0: + resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} + engines: {node: '>=10'} + deep-equal@1.0.1: resolution: {integrity: sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw==} + deep-extend@0.6.0: + resolution: {integrity: sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==} + engines: {node: '>=4.0.0'} + deepmerge-ts@7.1.5: resolution: {integrity: sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw==} engines: {node: '>=16.0.0'} @@ -1122,6 +1230,10 @@ packages: delegates@1.0.0: resolution: {integrity: sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==} + denque@2.1.0: + resolution: {integrity: sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==} + engines: {node: '>=0.10'} + depd@1.1.2: resolution: {integrity: sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==} engines: {node: '>= 0.6'} @@ -1167,6 +1279,10 @@ packages: resolution: {integrity: sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==} engines: {node: '>=12'} + dotenv@17.2.3: + resolution: {integrity: sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==} + engines: {node: '>=12'} + dunder-proto@1.0.1: resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} engines: {node: '>= 0.4'} @@ -1174,8 +1290,8 @@ packages: ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - effect@3.16.12: - resolution: {integrity: sha512-N39iBk0K71F9nb442TLbTkjl24FLUzuvx2i1I2RsEAQsdAdUTuUoW0vlfUXgkMTUOnYqKnWcFfqw4hK4Pw27hg==} + effect@3.18.4: + resolution: {integrity: sha512-b1LXQJLe9D11wfnOKAk3PKxuqYshQ0Heez+y5pnkd3jLj1yx9QhM72zZ9uUrOQyNvrs2GZZd/3maL0ZV18YuDA==} electron-to-chromium@1.5.211: resolution: {integrity: sha512-IGBvimJkotaLzFnwIVgW9/UD/AOJ2tByUmeOrtqBfACSbAw5b1G0XpvdaieKyc7ULmbwXVx+4e4Be8pOPBrYkw==} @@ -1233,8 +1349,12 @@ packages: escape-html@1.0.3: resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} - exsolve@1.0.7: - resolution: {integrity: sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw==} + expand-template@2.0.3: + resolution: {integrity: sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==} + engines: {node: '>=6'} + + exsolve@1.0.8: + resolution: {integrity: sha512-LmDxfWXwcTArk8fUEnOfSZpHOJ6zOMUJKOtFLFqJLoKJetuQG874Uc7/Kki7zFLzYybmZhp1M7+98pfMqeX8yA==} fast-check@3.23.2: resolution: {integrity: sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==} @@ -1250,6 +1370,9 @@ packages: fast-safe-stringify@2.1.1: resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} + file-uri-to-path@1.0.0: + resolution: {integrity: sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==} + focus-lock@1.3.6: resolution: {integrity: sha512-Ik/6OCk9RQQ0T5Xw+hKNLWrjSMtv51dD4GRmJjbD5a58TIEpI5a5iXagKVl3Z5UuyslMCA8Xwnu76jQob62Yhg==} engines: {node: '>=10'} @@ -1263,6 +1386,10 @@ packages: debug: optional: true + foreground-child@3.3.1: + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} + engines: {node: '>=14'} + form-data@4.0.4: resolution: {integrity: sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==} engines: {node: '>= 6'} @@ -1271,6 +1398,9 @@ packages: resolution: {integrity: sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==} engines: {node: '>= 0.6'} + fs-constants@1.0.0: + resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -1279,6 +1409,9 @@ packages: function-bind@1.1.2: resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + generate-function@2.3.1: + resolution: {integrity: sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==} + gensync@1.0.0-beta.2: resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==} engines: {node: '>=6.9.0'} @@ -1287,6 +1420,9 @@ packages: resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} engines: {node: '>= 0.4'} + get-port-please@3.1.2: + resolution: {integrity: sha512-Gxc29eLs1fbn6LQ4jSU4vXjlwyZhF5HsGuMAa7gqBP4Rw4yxxltyDUuF5MBclFzDTXO+ACchGQoeela4DSfzdQ==} + get-proto@1.0.1: resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} engines: {node: '>= 0.4'} @@ -1298,6 +1434,9 @@ packages: resolution: {integrity: sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA==} hasBin: true + github-from-package@0.0.0: + resolution: {integrity: sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==} + gopd@1.2.0: resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} engines: {node: '>= 0.4'} @@ -1305,6 +1444,9 @@ packages: graceful-fs@4.2.11: resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==} + grammex@3.1.11: + resolution: {integrity: sha512-HNwLkgRg9SqTAd1N3Uh/MnKwTBTzwBxTOPbXQ8pb0tpwydjk90k4zRE8JUn9fMUiRwKtXFZ1TWFmms3dZHN+Fg==} + has-symbols@1.1.0: resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} engines: {node: '>= 0.4'} @@ -1320,6 +1462,10 @@ packages: help-me@5.0.0: resolution: {integrity: sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==} + hono@4.7.10: + resolution: {integrity: sha512-QkACju9MiN59CKSY5JsGZCYmPZkA6sIW6OFCUp7qDjZu6S6KHtJHhAc9Uy9mV9F8PJ1/HQ3ybZF2yjCa/73fvQ==} + engines: {node: '>=16.9.0'} + html-entities@2.6.0: resolution: {integrity: sha512-kig+rMn/QOVRvr7c86gQ8lWXq+Hkv6CbAH1hLu+RG338StTpE8Z0b44SDVaqVu7HGKf27frdmUYEs9hTUX/cLQ==} @@ -1335,10 +1481,17 @@ packages: resolution: {integrity: sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==} engines: {node: '>= 0.8'} + http-status-codes@2.3.0: + resolution: {integrity: sha512-RJ8XvFvpPM/Dmc5SV+dC4y5PCeOhT3x1Hq0NU3rjGeg5a/CqlhZ7uudknPwZFz4aeAXDcbAyaeP7GAo9lvngtA==} + iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} + iconv-lite@0.7.0: + resolution: {integrity: sha512-cf6L2Ds3h57VVmkZe+Pn+5APsT7FpqJtEhhieDCvrE2MK5Qk9MyffgQyuxQTm6BChfeZNtcOLHp9IcWRVcIcBQ==} + engines: {node: '>=0.10.0'} + ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} @@ -1353,15 +1506,24 @@ packages: inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + ini@1.3.8: + resolution: {integrity: sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==} + is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} is-arrayish@0.3.2: resolution: {integrity: sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==} + is-property@1.0.2: + resolution: {integrity: sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==} + is-type-of@2.2.0: resolution: {integrity: sha512-72axShMJMnMy5HSU/jLGNOonZD5rWM0MwJSCYpKCTQCbggQZBJO/CLMMVP5HgS8kPSYFBkTysJexsD6NMvGKDQ==} + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + jiti@2.5.1: resolution: {integrity: sha512-twQoecYPiVA5K/h6SxtORw/Bs3ar+mLUtoPSc7iMXzQzK8d7eJ/R09wmTwAjiamETn1cXYPGfNnu7DMoHgu12w==} hasBin: true @@ -1477,6 +1639,10 @@ packages: resolution: {integrity: sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==} engines: {node: '>= 12.0.0'} + lilconfig@2.1.0: + resolution: {integrity: sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ==} + engines: {node: '>=10'} + lines-and-columns@1.2.4: resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} @@ -1487,6 +1653,9 @@ packages: lodash@4.17.21: resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + long@5.3.2: + resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==} + loose-envify@1.4.0: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true @@ -1497,6 +1666,14 @@ packages: lru-cache@5.1.1: resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==} + lru-cache@7.18.3: + resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==} + engines: {node: '>=12'} + + lru.min@1.1.3: + resolution: {integrity: sha512-Lkk/vx6ak3rYkRR0Nhu4lFUT2VDnQSxBe8Hbl7f36358p6ow8Bnvr8lrLt98H8J1aGxfhbX4Fs5tYg2+FTwr5Q==} + engines: {bun: '>=1.0.0', deno: '>=1.30.0', node: '>=8.0.0'} + magic-string@0.30.18: resolution: {integrity: sha512-yi8swmWbO17qHhwIBNeeZxTceJMeBvWJaId6dyvTSOwTipqeHhMhOrz6513r1sOKnpvQ7zkhlG8tPrpilwTxHQ==} @@ -1534,6 +1711,10 @@ packages: resolution: {integrity: sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==} engines: {node: '>= 0.6'} + mimic-response@3.1.0: + resolution: {integrity: sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==} + engines: {node: '>=10'} + minimatch@9.0.5: resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} engines: {node: '>=16 || 14 >=14.17'} @@ -1549,6 +1730,9 @@ packages: resolution: {integrity: sha512-oG62iEk+CYt5Xj2YqI5Xi9xWUeZhDI8jjQmC5oThVH5JGCTgIjr7ciJDzC7MBzYd//WvR1OTmP5Q38Q8ShQtVA==} engines: {node: '>= 18'} + mkdirp-classic@0.5.3: + resolution: {integrity: sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==} + mkdirp@3.0.1: resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} engines: {node: '>=10'} @@ -1557,11 +1741,22 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + mysql2@3.15.3: + resolution: {integrity: sha512-FBrGau0IXmuqg4haEZRBfHNWB5mUARw6hNwPDXXGg0XzVJ50mr/9hb267lvpVMnhZ1FON3qNd4Xfcez1rbFwSg==} + engines: {node: '>= 8.0'} + + named-placeholders@1.1.3: + resolution: {integrity: sha512-eLoBxg6wE/rZkJPhU/xRX1WTpkFEwDJEN96oxFrTsqBdbT5ec295Q+CoHrL9IT0DipqKhmGcaZmwOt8OON5x1w==} + engines: {node: '>=12.0.0'} + nanoid@3.3.11: resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + napi-build-utils@2.0.0: + resolution: {integrity: sha512-GEbrYkbfF7MoNaoh2iGG84Mnf/WZfB0GdGEsM8wz7Expx/LlWf5U8t9nvJKXSp3qr5IsEbK04cBGhol/KwOsWA==} + negotiator@0.6.3: resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} engines: {node: '>= 0.6'} @@ -1569,6 +1764,10 @@ packages: no-case@3.0.4: resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} + node-abi@3.85.0: + resolution: {integrity: sha512-zsFhmbkAzwhTft6nd3VxcG0cvJsT70rL+BIGHWVq5fi6MwGrHwzqKaxXE+Hl2GmnGItnDKPPkO5/LQqjVkIdFg==} + engines: {node: '>=10'} + node-fetch-native@1.6.7: resolution: {integrity: sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q==} @@ -1581,8 +1780,8 @@ packages: number-precision@1.6.0: resolution: {integrity: sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ==} - nypm@0.6.1: - resolution: {integrity: sha512-hlacBiRiv1k9hZFiphPUkfSQ/ZfQzZDzC+8z0wL3lvDAOUu/2NnChkKuMoMjNur/9OpKuz2QsIeiPVN0xM5Q0w==} + nypm@0.6.2: + resolution: {integrity: sha512-7eM+hpOtrKrBDCh7Ypu2lJ9Z7PNZBdi/8AT3AX8xoCj43BBVHD0hPSTEvMtkMpfs8FCqBGhxB+uToIQimA111g==} engines: {node: ^14.16.0 || >=16.10.0} hasBin: true @@ -1620,6 +1819,10 @@ packages: resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} engines: {node: '>= 0.8'} + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + path-to-regexp@8.2.0: resolution: {integrity: sha512-TdrF7fW9Rphjq4RjrW0Kp2AW0Ahwu9sRGTkS6bvDi0SCwZlEZYmcfDbEsTz8RVk0EHIS/Vd1bv3JhG+1xZuAyQ==} engines: {node: '>=16'} @@ -1658,13 +1861,25 @@ packages: resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} engines: {node: ^10 || ^12 || >=14} - prisma@6.15.0: - resolution: {integrity: sha512-E6RCgOt+kUVtjtZgLQDBJ6md2tDItLJNExwI0XJeBc1FKL+Vwb+ovxXxuok9r8oBgsOXBA33fGDuE/0qDdCWqQ==} - engines: {node: '>=18.18'} + postgres@3.4.7: + resolution: {integrity: sha512-Jtc2612XINuBjIl/QTWsV5UvE8UHuNblcO3vVADSrKsrc6RqGX6lOW1cEo3CM2v0XG4Nat8nI+YM7/f26VxXLw==} + engines: {node: '>=12'} + + prebuild-install@7.1.3: + resolution: {integrity: sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==} + engines: {node: '>=10'} + hasBin: true + + prisma@7.0.0: + resolution: {integrity: sha512-VZObZ1pQV/OScarYg68RYUx61GpFLH2mJGf9fUX4XxQxTst/6ZK7nkY86CSZ3zBW6U9lKRTsBrZWVz20X5G/KQ==} + engines: {node: ^20.19 || ^22.12 || ^24.0} hasBin: true peerDependencies: - typescript: '>=5.1.0' + better-sqlite3: '>=9.0.0' + typescript: '>=5.4.0' peerDependenciesMeta: + better-sqlite3: + optional: true typescript: optional: true @@ -1674,6 +1889,9 @@ packages: prop-types@15.8.1: resolution: {integrity: sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==} + proper-lockfile@4.1.2: + resolution: {integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==} + proxy-from-env@1.1.0: resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} @@ -1697,6 +1915,10 @@ packages: rc9@2.1.2: resolution: {integrity: sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg==} + rc@1.2.8: + resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} + hasBin: true + react-clientside-effect@1.2.8: resolution: {integrity: sha512-ma2FePH0z3px2+WOu6h+YycZcEvFmmxIlAb62cF52bG86eMySciO/EQZeQMXd07kPCYB0a1dWDT5J+KE9mCDUw==} peerDependencies: @@ -1746,6 +1968,10 @@ packages: resolution: {integrity: sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==} engines: {node: '>=0.10.0'} + readable-stream@3.6.2: + resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} + engines: {node: '>= 6'} + readdirp@4.1.2: resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} engines: {node: '>= 14.18.0'} @@ -1757,6 +1983,12 @@ packages: reduce-configs@1.1.1: resolution: {integrity: sha512-EYtsVGAQarE8daT54cnaY1PIknF2VB78ug6Zre2rs36EsJfC40EG6hmTU2A2P1ZuXnKAt2KI0fzOGHcX7wzdPw==} + regexp-to-ast@0.5.0: + resolution: {integrity: sha512-tlbJqcMHnPKI9zSrystikWKwHkBqu2a/Sgw01h3zFjvYrMxEDYHzzoMZnUrbIfpTFEsoRnnviOXNCzFiSc54Qw==} + + remeda@2.21.3: + resolution: {integrity: sha512-XXrZdLA10oEOQhLLzEJEiFFSKi21REGAkHdImIb4rt/XXy8ORGXh5HCcpUOsElfPNDb+X6TA/+wkh+p2KffYmg==} + resize-observer-polyfill@1.5.1: resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==} @@ -1767,6 +1999,10 @@ packages: resolve-pkg-maps@1.0.0: resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + retry@0.12.0: + resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} + engines: {node: '>= 4'} + safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} @@ -1790,6 +2026,14 @@ packages: resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==} hasBin: true + semver@7.7.3: + resolution: {integrity: sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==} + engines: {node: '>=10'} + hasBin: true + + seq-queue@0.0.5: + resolution: {integrity: sha512-hr3Wtp/GZIc/6DAGPDcV4/9WoZhjrkXsi5B/07QgX8tsdc6ilr7BFM6PM6rbdAX1kFSDYeZGLipIZZKyQP0O5Q==} + set-cookie-parser@2.7.1: resolution: {integrity: sha512-IOc8uWeOZgnb3ptbCURJWNjWUPcO3ZnTTdzsurqERrP6nPyv+paC55vJM0LpOlT2ne+Ix+9+CRG1MNLlyZ4GjQ==} @@ -1799,6 +2043,14 @@ packages: shallowequal@1.1.0: resolution: {integrity: sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==} + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + side-channel-list@1.0.0: resolution: {integrity: sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==} engines: {node: '>= 0.4'} @@ -1815,6 +2067,19 @@ packages: resolution: {integrity: sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==} engines: {node: '>= 0.4'} + signal-exit@3.0.7: + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + simple-concat@1.0.1: + resolution: {integrity: sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==} + + simple-get@4.0.1: + resolution: {integrity: sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==} + simple-swizzle@0.2.2: resolution: {integrity: sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==} @@ -1832,6 +2097,10 @@ packages: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} + sqlstring@2.3.3: + resolution: {integrity: sha512-qC9iz2FlN7DQl3+wjwn3802RTyjCx7sDvfQEXchwa6CWOx07/WVfh91gBmQ9fahw8snwGEWU3xGzOt4tFyHLxg==} + engines: {node: '>= 0.6'} + stackframe@1.3.4: resolution: {integrity: sha512-oeVtt7eWQS+Na6F//S4kJ2K2VbRlS9D43mAlMyVpVWovy9o+jfgH8O9agzANzaiLjclA0oYzUXEM4PurhSUChw==} @@ -1847,6 +2116,16 @@ packages: resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} engines: {node: '>= 0.8'} + std-env@3.9.0: + resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==} + + string_decoder@1.3.0: + resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} + + strip-json-comments@2.0.1: + resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} + engines: {node: '>=0.10.0'} + strip-json-comments@5.0.3: resolution: {integrity: sha512-1tB5mhVo7U+ETBKNf92xT4hrQa3pm0MZ0PQvuDnWgAAGHDsfp4lPSpiS6psrSiet87wyGPh9ft6wmhOMQ0hDiw==} engines: {node: '>=14.16'} @@ -1866,6 +2145,13 @@ packages: resolution: {integrity: sha512-ZL6DDuAlRlLGghwcfmSn9sK3Hr6ArtyudlSAiCqQ6IfE+b+HHbydbYDIG15IfS5do+7XQQBdBiubF/cV2dnDzg==} engines: {node: '>=6'} + tar-fs@2.1.4: + resolution: {integrity: sha512-mDAjwmZdh7LTT6pNleZ05Yt65HC3E+NiQzl672vQG38jIrehtJk/J3mNwIg+vShQPcLF/LV7CMnDW6vjj6sfYQ==} + + tar-stream@2.2.0: + resolution: {integrity: sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==} + engines: {node: '>=6'} + tar@7.4.3: resolution: {integrity: sha512-5S7Va8hKfV7W5U6g3aYxXmlPoZVAwUMy9AOKyF2fVuZa2UD3qZjg578OrLRt8PcNN1PleVaL/5/yYATNL0ICUw==} engines: {node: '>=18'} @@ -1873,8 +2159,9 @@ packages: thread-stream@3.1.0: resolution: {integrity: sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==} - tinyexec@1.0.1: - resolution: {integrity: sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw==} + tinyexec@1.0.2: + resolution: {integrity: sha512-W/KYk+NFhkmsYpuHq5JykngiOCnxeVL8v8dFnqxSD8qEEdRfXk1SDM6JzNqcERbcGYj9tMrDQBYV9cjgnunFIg==} + engines: {node: '>=18'} toidentifier@1.0.1: resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} @@ -1892,6 +2179,13 @@ packages: engines: {node: '>=18.0.0'} hasBin: true + tunnel-agent@0.6.0: + resolution: {integrity: sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==} + + type-fest@4.41.0: + resolution: {integrity: sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==} + engines: {node: '>=16'} + type-is@1.6.18: resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} engines: {node: '>= 0.6'} @@ -1938,10 +2232,26 @@ packages: '@types/react': optional: true + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + valibot@1.1.0: + resolution: {integrity: sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==} + peerDependencies: + typescript: '>=5' + peerDependenciesMeta: + typescript: + optional: true + vary@1.1.2: resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} engines: {node: '>= 0.8'} + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} @@ -1952,6 +2262,9 @@ packages: resolution: {integrity: sha512-YgvUTfwqyc7UXVMrB+SImsVYSmTS8X/tSrtdNZMImM+n7+QTriRXyXim0mBrTXNeqzVF0KWGgHPeiyViFFrNDw==} engines: {node: '>=18'} + zeptomatch@2.0.2: + resolution: {integrity: sha512-H33jtSKf8Ijtb5BW6wua3G5DhnFjbFML36eFu+VdOoVY4HD9e7ggjqdM6639B+L87rjnR6Y+XeRzBXZdy52B/g==} + zod@3.25.76: resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} @@ -2157,6 +2470,21 @@ snapshots: '@biomejs/cli-win32-x64@2.0.6': optional: true + '@chevrotain/cst-dts-gen@10.5.0': + dependencies: + '@chevrotain/gast': 10.5.0 + '@chevrotain/types': 10.5.0 + lodash: 4.17.21 + + '@chevrotain/gast@10.5.0': + dependencies: + '@chevrotain/types': 10.5.0 + lodash: 4.17.21 + + '@chevrotain/types@10.5.0': {} + + '@chevrotain/utils@10.5.0': {} + '@dnd-kit/accessibility@3.1.1(react@19.2.0)': dependencies: react: 19.2.0 @@ -2182,6 +2510,16 @@ snapshots: react: 19.2.0 tslib: 2.8.1 + '@electric-sql/pglite-socket@0.0.6(@electric-sql/pglite@0.3.2)': + dependencies: + '@electric-sql/pglite': 0.3.2 + + '@electric-sql/pglite-tools@0.2.7(@electric-sql/pglite@0.3.2)': + dependencies: + '@electric-sql/pglite': 0.3.2 + + '@electric-sql/pglite@0.3.2': {} + '@emnapi/core@1.7.1': dependencies: '@emnapi/wasi-threads': 1.1.0 @@ -2278,6 +2616,10 @@ snapshots: '@hapi/bourne@3.0.0': {} + '@hono/node-server@1.14.2(hono@4.7.10)': + dependencies: + hono: 4.7.10 + '@isaacs/fs-minipass@4.0.1': dependencies: minipass: 7.1.2 @@ -2339,6 +2681,11 @@ snapshots: '@module-federation/runtime': 0.21.4 '@module-federation/sdk': 0.21.4 + '@mrleebo/prisma-ast@0.12.1': + dependencies: + chevrotain: 10.5.0 + lilconfig: 2.1.0 + '@napi-rs/wasm-runtime@1.0.7': dependencies: '@emnapi/core': 1.7.1 @@ -2346,40 +2693,89 @@ snapshots: '@tybys/wasm-util': 0.10.1 optional: true - '@prisma/client@6.15.0(prisma@6.15.0(typescript@5.9.2))(typescript@5.9.2)': + '@prisma/adapter-better-sqlite3@7.0.0': + dependencies: + '@prisma/driver-adapter-utils': 7.0.0 + better-sqlite3: 11.10.0 + + '@prisma/client-runtime-utils@7.0.0': {} + + '@prisma/client@7.0.0(prisma@7.0.0(@types/react@18.3.27)(better-sqlite3@12.4.5)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)(typescript@5.9.2))(typescript@5.9.2)': + dependencies: + '@prisma/client-runtime-utils': 7.0.0 optionalDependencies: - prisma: 6.15.0(typescript@5.9.2) + prisma: 7.0.0(@types/react@18.3.27)(better-sqlite3@12.4.5)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)(typescript@5.9.2) typescript: 5.9.2 - '@prisma/config@6.15.0': + '@prisma/config@7.0.0': dependencies: c12: 3.1.0 deepmerge-ts: 7.1.5 - effect: 3.16.12 + effect: 3.18.4 empathic: 2.0.0 transitivePeerDependencies: - magicast - '@prisma/debug@6.15.0': {} + '@prisma/debug@6.8.2': {} - '@prisma/engines-version@6.15.0-5.85179d7826409ee107a6ba334b5e305ae3fba9fb': {} + '@prisma/debug@7.0.0': {} - '@prisma/engines@6.15.0': + '@prisma/dev@0.13.0(typescript@5.9.2)': dependencies: - '@prisma/debug': 6.15.0 - '@prisma/engines-version': 6.15.0-5.85179d7826409ee107a6ba334b5e305ae3fba9fb - '@prisma/fetch-engine': 6.15.0 - '@prisma/get-platform': 6.15.0 + '@electric-sql/pglite': 0.3.2 + '@electric-sql/pglite-socket': 0.0.6(@electric-sql/pglite@0.3.2) + '@electric-sql/pglite-tools': 0.2.7(@electric-sql/pglite@0.3.2) + '@hono/node-server': 1.14.2(hono@4.7.10) + '@mrleebo/prisma-ast': 0.12.1 + '@prisma/get-platform': 6.8.2 + '@prisma/query-plan-executor': 6.18.0 + foreground-child: 3.3.1 + get-port-please: 3.1.2 + hono: 4.7.10 + http-status-codes: 2.3.0 + pathe: 2.0.3 + proper-lockfile: 4.1.2 + remeda: 2.21.3 + std-env: 3.9.0 + valibot: 1.1.0(typescript@5.9.2) + zeptomatch: 2.0.2 + transitivePeerDependencies: + - typescript - '@prisma/fetch-engine@6.15.0': + '@prisma/driver-adapter-utils@7.0.0': dependencies: - '@prisma/debug': 6.15.0 - '@prisma/engines-version': 6.15.0-5.85179d7826409ee107a6ba334b5e305ae3fba9fb - '@prisma/get-platform': 6.15.0 + '@prisma/debug': 7.0.0 - '@prisma/get-platform@6.15.0': + '@prisma/engines-version@6.20.0-16.next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513': {} + + '@prisma/engines@7.0.0': dependencies: - '@prisma/debug': 6.15.0 + '@prisma/debug': 7.0.0 + '@prisma/engines-version': 6.20.0-16.next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513 + '@prisma/fetch-engine': 7.0.0 + '@prisma/get-platform': 7.0.0 + + '@prisma/fetch-engine@7.0.0': + dependencies: + '@prisma/debug': 7.0.0 + '@prisma/engines-version': 6.20.0-16.next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513 + '@prisma/get-platform': 7.0.0 + + '@prisma/get-platform@6.8.2': + dependencies: + '@prisma/debug': 6.8.2 + + '@prisma/get-platform@7.0.0': + dependencies: + '@prisma/debug': 7.0.0 + + '@prisma/query-plan-executor@6.18.0': {} + + '@prisma/studio-core-licensed@0.8.0(@types/react@18.3.27)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)': + dependencies: + '@types/react': 18.3.27 + react: 19.2.0 + react-dom: 19.2.0(react@19.2.0) '@rsbuild/core@1.6.7': dependencies: @@ -2757,6 +3153,8 @@ snapshots: atomic-sleep@1.0.0: {} + aws-ssl-profiles@1.1.2: {} + axios@1.11.0: dependencies: follow-redirects: 1.15.11 @@ -2773,6 +3171,26 @@ snapshots: base64-js@1.5.1: {} + better-sqlite3@11.10.0: + dependencies: + bindings: 1.5.0 + prebuild-install: 7.1.3 + + better-sqlite3@12.4.5: + dependencies: + bindings: 1.5.0 + prebuild-install: 7.1.3 + + bindings@1.5.0: + dependencies: + file-uri-to-path: 1.0.0 + + bl@4.1.0: + dependencies: + buffer: 5.7.1 + inherits: 2.0.4 + readable-stream: 3.6.2 + boolbase@1.0.0: {} brace-expansion@2.0.2: @@ -2799,9 +3217,9 @@ snapshots: confbox: 0.2.2 defu: 6.1.4 dotenv: 16.6.1 - exsolve: 1.0.7 + exsolve: 1.0.8 giget: 2.0.0 - jiti: 2.5.1 + jiti: 2.6.1 ohash: 2.0.11 pathe: 2.0.3 perfect-debounce: 1.0.0 @@ -2824,10 +3242,21 @@ snapshots: caniuse-lite@1.0.30001737: {} + chevrotain@10.5.0: + dependencies: + '@chevrotain/cst-dts-gen': 10.5.0 + '@chevrotain/gast': 10.5.0 + '@chevrotain/types': 10.5.0 + '@chevrotain/utils': 10.5.0 + lodash: 4.17.21 + regexp-to-ast: 0.5.0 + chokidar@4.0.3: dependencies: readdirp: 4.1.2 + chownr@1.1.4: {} + chownr@3.0.0: {} citty@0.1.6: @@ -2906,6 +3335,12 @@ snapshots: dependencies: buffer: 5.7.1 + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + css-select@5.2.2: dependencies: boolbase: 1.0.0 @@ -2940,8 +3375,14 @@ snapshots: dependencies: ms: 2.1.3 + decompress-response@6.0.0: + dependencies: + mimic-response: 3.1.0 + deep-equal@1.0.1: {} + deep-extend@0.6.0: {} + deepmerge-ts@7.1.5: {} deepmerge@4.3.1: {} @@ -2952,6 +3393,8 @@ snapshots: delegates@1.0.0: {} + denque@2.1.0: {} + depd@1.1.2: {} depd@2.0.0: {} @@ -2994,6 +3437,8 @@ snapshots: dotenv@16.6.1: {} + dotenv@17.2.3: {} + dunder-proto@1.0.1: dependencies: call-bind-apply-helpers: 1.0.2 @@ -3002,7 +3447,7 @@ snapshots: ee-first@1.1.1: {} - effect@3.16.12: + effect@3.18.4: dependencies: '@standard-schema/spec': 1.0.0 fast-check: 3.23.2 @@ -3080,7 +3525,9 @@ snapshots: escape-html@1.0.3: {} - exsolve@1.0.7: {} + expand-template@2.0.3: {} + + exsolve@1.0.8: {} fast-check@3.23.2: dependencies: @@ -3092,12 +3539,19 @@ snapshots: fast-safe-stringify@2.1.1: {} + file-uri-to-path@1.0.0: {} + focus-lock@1.3.6: dependencies: tslib: 2.8.1 follow-redirects@1.15.11: {} + foreground-child@3.3.1: + dependencies: + cross-spawn: 7.0.6 + signal-exit: 4.1.0 + form-data@4.0.4: dependencies: asynckit: 0.4.0 @@ -3108,11 +3562,17 @@ snapshots: fresh@0.5.2: {} + fs-constants@1.0.0: {} + fsevents@2.3.3: optional: true function-bind@1.1.2: {} + generate-function@2.3.1: + dependencies: + is-property: 1.0.2 + gensync@1.0.0-beta.2: {} get-intrinsic@1.3.0: @@ -3128,6 +3588,8 @@ snapshots: hasown: 2.0.2 math-intrinsics: 1.1.0 + get-port-please@3.1.2: {} + get-proto@1.0.1: dependencies: dunder-proto: 1.0.1 @@ -3143,13 +3605,17 @@ snapshots: consola: 3.4.2 defu: 6.1.4 node-fetch-native: 1.6.7 - nypm: 0.6.1 + nypm: 0.6.2 pathe: 2.0.3 + github-from-package@0.0.0: {} + gopd@1.2.0: {} graceful-fs@4.2.11: {} + grammex@3.1.11: {} + has-symbols@1.1.0: {} has-tostringtag@1.0.2: @@ -3162,6 +3628,8 @@ snapshots: help-me@5.0.0: {} + hono@4.7.10: {} + html-entities@2.6.0: {} http-assert@1.5.0: @@ -3185,10 +3653,16 @@ snapshots: statuses: 2.0.1 toidentifier: 1.0.1 + http-status-codes@2.3.0: {} + iconv-lite@0.4.24: dependencies: safer-buffer: 2.1.2 + iconv-lite@0.7.0: + dependencies: + safer-buffer: 2.1.2 + ieee754@1.2.1: {} import-fresh@3.3.1: @@ -3200,12 +3674,18 @@ snapshots: inherits@2.0.4: {} + ini@1.3.8: {} + is-arrayish@0.2.1: {} is-arrayish@0.3.2: {} + is-property@1.0.2: {} + is-type-of@2.2.0: {} + isexe@2.0.0: {} + jiti@2.5.1: {} jiti@2.6.1: {} @@ -3308,12 +3788,16 @@ snapshots: lightningcss-win32-arm64-msvc: 1.30.1 lightningcss-win32-x64-msvc: 1.30.1 + lilconfig@2.1.0: {} + lines-and-columns@1.2.4: {} loader-utils@3.3.1: {} lodash@4.17.21: {} + long@5.3.2: {} + loose-envify@1.4.0: dependencies: js-tokens: 4.0.0 @@ -3326,6 +3810,10 @@ snapshots: dependencies: yallist: 3.1.1 + lru-cache@7.18.3: {} + + lru.min@1.1.3: {} + magic-string@0.30.18: dependencies: '@jridgewell/sourcemap-codec': 1.5.5 @@ -3352,6 +3840,8 @@ snapshots: dependencies: mime-db: 1.54.0 + mimic-response@3.1.0: {} + minimatch@9.0.5: dependencies: brace-expansion: 2.0.2 @@ -3364,12 +3854,32 @@ snapshots: dependencies: minipass: 7.1.2 + mkdirp-classic@0.5.3: {} + mkdirp@3.0.1: {} ms@2.1.3: {} + mysql2@3.15.3: + dependencies: + aws-ssl-profiles: 1.1.2 + denque: 2.1.0 + generate-function: 2.3.1 + iconv-lite: 0.7.0 + long: 5.3.2 + lru.min: 1.1.3 + named-placeholders: 1.1.3 + seq-queue: 0.0.5 + sqlstring: 2.3.3 + + named-placeholders@1.1.3: + dependencies: + lru-cache: 7.18.3 + nanoid@3.3.11: {} + napi-build-utils@2.0.0: {} + negotiator@0.6.3: {} no-case@3.0.4: @@ -3377,6 +3887,10 @@ snapshots: lower-case: 2.0.2 tslib: 2.8.1 + node-abi@3.85.0: + dependencies: + semver: 7.7.3 + node-fetch-native@1.6.7: {} node-releases@2.0.19: {} @@ -3387,13 +3901,13 @@ snapshots: number-precision@1.6.0: {} - nypm@0.6.1: + nypm@0.6.2: dependencies: citty: 0.1.6 consola: 3.4.2 pathe: 2.0.3 pkg-types: 2.3.0 - tinyexec: 1.0.1 + tinyexec: 1.0.2 object-assign@4.1.1: {} @@ -3424,6 +3938,8 @@ snapshots: parseurl@1.3.3: {} + path-key@3.1.1: {} + path-to-regexp@8.2.0: {} path-type@4.0.0: {} @@ -3473,7 +3989,7 @@ snapshots: pkg-types@2.3.0: dependencies: confbox: 0.2.2 - exsolve: 1.0.7 + exsolve: 1.0.8 pathe: 2.0.3 postcss@8.5.6: @@ -3482,14 +3998,39 @@ snapshots: picocolors: 1.1.1 source-map-js: 1.2.1 - prisma@6.15.0(typescript@5.9.2): + postgres@3.4.7: {} + + prebuild-install@7.1.3: dependencies: - '@prisma/config': 6.15.0 - '@prisma/engines': 6.15.0 + detect-libc: 2.0.4 + expand-template: 2.0.3 + github-from-package: 0.0.0 + minimist: 1.2.8 + mkdirp-classic: 0.5.3 + napi-build-utils: 2.0.0 + node-abi: 3.85.0 + pump: 3.0.3 + rc: 1.2.8 + simple-get: 4.0.1 + tar-fs: 2.1.4 + tunnel-agent: 0.6.0 + + prisma@7.0.0(@types/react@18.3.27)(better-sqlite3@12.4.5)(react-dom@19.2.0(react@19.2.0))(react@19.2.0)(typescript@5.9.2): + dependencies: + '@prisma/config': 7.0.0 + '@prisma/dev': 0.13.0(typescript@5.9.2) + '@prisma/engines': 7.0.0 + '@prisma/studio-core-licensed': 0.8.0(@types/react@18.3.27)(react-dom@19.2.0(react@19.2.0))(react@19.2.0) + mysql2: 3.15.3 + postgres: 3.4.7 optionalDependencies: + better-sqlite3: 12.4.5 typescript: 5.9.2 transitivePeerDependencies: + - '@types/react' - magicast + - react + - react-dom process-warning@5.0.0: {} @@ -3499,6 +4040,12 @@ snapshots: object-assign: 4.1.1 react-is: 16.13.1 + proper-lockfile@4.1.2: + dependencies: + graceful-fs: 4.2.11 + retry: 0.12.0 + signal-exit: 3.0.7 + proxy-from-env@1.1.0: {} pump@3.0.3: @@ -3526,6 +4073,13 @@ snapshots: defu: 6.1.4 destr: 2.0.5 + rc@1.2.8: + dependencies: + deep-extend: 0.6.0 + ini: 1.3.8 + minimist: 1.2.8 + strip-json-comments: 2.0.1 + react-clientside-effect@1.2.8(react@19.2.0): dependencies: '@babel/runtime': 7.28.3 @@ -3573,18 +4127,32 @@ snapshots: react@19.2.0: {} + readable-stream@3.6.2: + dependencies: + inherits: 2.0.4 + string_decoder: 1.3.0 + util-deprecate: 1.0.2 + readdirp@4.1.2: {} real-require@0.2.0: {} reduce-configs@1.1.1: {} + regexp-to-ast@0.5.0: {} + + remeda@2.21.3: + dependencies: + type-fest: 4.41.0 + resize-observer-polyfill@1.5.1: {} resolve-from@4.0.0: {} resolve-pkg-maps@1.0.0: {} + retry@0.12.0: {} + safe-buffer@5.2.1: {} safe-stable-stringify@2.5.0: {} @@ -3601,12 +4169,22 @@ snapshots: semver@6.3.1: {} + semver@7.7.3: {} + + seq-queue@0.0.5: {} + set-cookie-parser@2.7.1: {} setprototypeof@1.2.0: {} shallowequal@1.1.0: {} + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + side-channel-list@1.0.0: dependencies: es-errors: 1.3.0 @@ -3635,6 +4213,18 @@ snapshots: side-channel-map: 1.0.1 side-channel-weakmap: 1.0.2 + signal-exit@3.0.7: {} + + signal-exit@4.1.0: {} + + simple-concat@1.0.1: {} + + simple-get@4.0.1: + dependencies: + decompress-response: 6.0.0 + once: 1.4.0 + simple-concat: 1.0.1 + simple-swizzle@0.2.2: dependencies: is-arrayish: 0.3.2 @@ -3652,6 +4242,8 @@ snapshots: split2@4.2.0: {} + sqlstring@2.3.3: {} + stackframe@1.3.4: {} statuses@1.5.0: {} @@ -3660,6 +4252,14 @@ snapshots: statuses@2.0.2: {} + std-env@3.9.0: {} + + string_decoder@1.3.0: + dependencies: + safe-buffer: 5.2.1 + + strip-json-comments@2.0.1: {} + strip-json-comments@5.0.3: {} svg-parser@2.0.4: {} @@ -3678,6 +4278,21 @@ snapshots: tapable@2.2.3: {} + tar-fs@2.1.4: + dependencies: + chownr: 1.1.4 + mkdirp-classic: 0.5.3 + pump: 3.0.3 + tar-stream: 2.2.0 + + tar-stream@2.2.0: + dependencies: + bl: 4.1.0 + end-of-stream: 1.4.5 + fs-constants: 1.0.0 + inherits: 2.0.4 + readable-stream: 3.6.2 + tar@7.4.3: dependencies: '@isaacs/fs-minipass': 4.0.1 @@ -3691,7 +4306,7 @@ snapshots: dependencies: real-require: 0.2.0 - tinyexec@1.0.1: {} + tinyexec@1.0.2: {} toidentifier@1.0.1: {} @@ -3706,6 +4321,12 @@ snapshots: optionalDependencies: fsevents: 2.3.3 + tunnel-agent@0.6.0: + dependencies: + safe-buffer: 5.2.1 + + type-fest@4.41.0: {} + type-is@1.6.18: dependencies: media-typer: 0.3.0 @@ -3744,14 +4365,28 @@ snapshots: optionalDependencies: '@types/react': 18.3.27 + util-deprecate@1.0.2: {} + + valibot@1.1.0(typescript@5.9.2): + optionalDependencies: + typescript: 5.9.2 + vary@1.1.2: {} + which@2.0.2: + dependencies: + isexe: 2.0.0 + wrappy@1.0.2: {} yallist@3.1.1: {} yallist@5.0.0: {} + zeptomatch@2.0.2: + dependencies: + grammex: 3.1.11 + zod@3.25.76: {} zod@4.1.5: {}