From f2fcde85fcf23992798fba6ba1209f70a1e33f12 Mon Sep 17 00:00:00 2001 From: Vamsi_0 Date: Sun, 23 Nov 2025 19:03:59 +0530 Subject: [PATCH] Fixed --- .vscode/settings.json | 3 +- packages/db/package.json | 3 +- packages/db/prisma.config.ts | 16 +- packages/db/prisma/schema.prisma | 117 +- packages/db/src/generated/browser.ts | 49 - packages/db/src/generated/client.ts | 76 - packages/db/src/generated/commonInputTypes.ts | 385 ---- packages/db/src/generated/enums.ts | 21 - packages/db/src/generated/internal/class.ts | 269 --- .../src/generated/internal/prismaNamespace.ts | 1254 ------------ .../internal/prismaNamespaceBrowser.ts | 183 -- packages/db/src/generated/models.ts | 17 - .../db/src/generated/models/AvailableNodes.ts | 1284 ------------ .../src/generated/models/AvailableTriggers.ts | 1284 ------------ packages/db/src/generated/models/Nodes.ts | 1487 -------------- packages/db/src/generated/models/Triggers.ts | 1396 ------------- packages/db/src/generated/models/User.ts | 1366 ------------- packages/db/src/generated/models/workflow.ts | 1730 ----------------- packages/db/tsconfig.tsbuildinfo | 2 +- 19 files changed, 77 insertions(+), 10865 deletions(-) delete mode 100644 packages/db/src/generated/browser.ts delete mode 100644 packages/db/src/generated/client.ts delete mode 100644 packages/db/src/generated/commonInputTypes.ts delete mode 100644 packages/db/src/generated/enums.ts delete mode 100644 packages/db/src/generated/internal/class.ts delete mode 100644 packages/db/src/generated/internal/prismaNamespace.ts delete mode 100644 packages/db/src/generated/internal/prismaNamespaceBrowser.ts delete mode 100644 packages/db/src/generated/models.ts delete mode 100644 packages/db/src/generated/models/AvailableNodes.ts delete mode 100644 packages/db/src/generated/models/AvailableTriggers.ts delete mode 100644 packages/db/src/generated/models/Nodes.ts delete mode 100644 packages/db/src/generated/models/Triggers.ts delete mode 100644 packages/db/src/generated/models/User.ts delete mode 100644 packages/db/src/generated/models/workflow.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index 61683dd..88b85c9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,4 @@ { - "tailwindCSS.experimental.configFile": "packages/ui/src/styles/globals.css" + "tailwindCSS.experimental.configFile": "packages/ui/src/styles/globals.css", + "prisma.pinToPrisma6": true } diff --git a/packages/db/package.json b/packages/db/package.json index ff50a33..86308a0 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -5,7 +5,8 @@ "main": "./dist/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "prisma generate && tsc -b && cp src/generated/*.node dist/generated/ && cp -r src/generated/runtime dist/generated/", + "build": "prisma generate && tsc -b && mkdir -p dist/generated/runtime && cp src/generated/*.node dist/generated/ || true && cp -r src/generated/runtime/. dist/generated/runtime/", + "dev": "node dist/index.js", "run": "npm run build && npm run dev" }, diff --git a/packages/db/prisma.config.ts b/packages/db/prisma.config.ts index 29ea418..d6eee16 100644 --- a/packages/db/prisma.config.ts +++ b/packages/db/prisma.config.ts @@ -1,9 +1,15 @@ import { defineConfig, env } from "prisma/config"; -import 'dotenv/config'; +import dotenv from "dotenv"; -// Load .env when present so env("DATABASE_URL") in schema.prisma resolves -// while using a custom Prisma config file. -// try { require('dotenv/config'); } catch {} +// Explicitly load environment variables from .env if present +dotenv.config(); + +// Retrieve DATABASE_URL from environment or .env file +const databaseUrl = process.env.DATABASE_URL ?? env("DATABASE_URL"); + +if (!databaseUrl) { + throw new Error("DATABASE_URL is not defined in environment variables or .env file"); +} export default defineConfig({ schema: "prisma/schema.prisma", @@ -12,6 +18,6 @@ export default defineConfig({ }, engine: "classic", datasource: { - url: env("DATABASE_URL"), + url: databaseUrl, }, }); diff --git a/packages/db/prisma/schema.prisma b/packages/db/prisma/schema.prisma index 3baf1f3..97bfb23 100644 --- a/packages/db/prisma/schema.prisma +++ b/packages/db/prisma/schema.prisma @@ -1,62 +1,31 @@ -// This is your Prisma schema file, -// learn more about it in the docs: https://pris.ly/d/prisma-schema - -// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? -// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init - generator client { provider = "prisma-client-js" output = "../src/generated" - } datasource db { - provider = "postgresql" - url = env("DATABASE_URL") + provider = "postgresql" + url = env("DATABASE_URL") } model User { - id String @id @default(cuid()) - name String? - email String @unique - password String - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt - workflow workflow[] -} - -model workflow { - id String @id @default(cuid()) - name String - createdAt DateTime @default(now()) - updateAt DateTime @default(now()) - description String - status WorkFlowStatus - userId String - config Json - user User @relation(fields: [userId], references: [id]) - TriggerId String @unique - Trigger Triggers @relation(fields: [TriggerId], references: [id]) - NodeId String @unique - Node Nodes @relation(fields: [NodeId], references: [id]) -} - -enum WorkFlowStatus { - Start - Pending - InProgress - ReConnecting - Failed - Completed + id String @id @default(cuid()) + name String? + email String @unique + password String + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + Credentials Credentials[] + Workflow Workflow[] } model Triggers { id String @id @default(cuid()) name String - typeID String - config Json + typeID String + config Json type AvailableTriggers @relation(fields: [typeID], references: [id]) - workflow workflow? + Workflow Workflow? } model AvailableTriggers { @@ -68,19 +37,55 @@ model AvailableTriggers { } model AvailableNodes { - id String @id @default(cuid()) - name String - typeId String @unique - config Json - Node Nodes[] + id String @id @default(cuid()) + name String + typeId String @unique + config Json + Node Nodes[] } model Nodes { - id String @id @default(cuid()) - name String - workflow workflow? - typeId String - type AvailableNodes @relation(fields: [typeId], references: [id]) - config Json - position Int + id String @id @default(cuid()) + name String + typeId String + config Json + position Int + Credentials Credentials[] + type AvailableNodes @relation(fields: [typeId], references: [id]) + Workflow Workflow? +} + +model Credentials { + id String @id + userId String + type String + config Json + nodeId String? + Nodes Nodes? @relation(fields: [nodeId], references: [id]) + User User @relation(fields: [userId], references: [id]) +} + +model Workflow { + id String @id + name String + createdAt DateTime @default(now()) + updateAt DateTime @default(now()) + description String + status WorkFlowStatus + userId String + config Json + TriggerId String @unique + NodeId String @unique + Nodes Nodes @relation(fields: [NodeId], references: [id]) + Triggers Triggers @relation(fields: [TriggerId], references: [id]) + User User @relation(fields: [userId], references: [id]) +} + +enum WorkFlowStatus { + Start + Pending + InProgress + ReConnecting + Failed + Completed } diff --git a/packages/db/src/generated/browser.ts b/packages/db/src/generated/browser.ts deleted file mode 100644 index 34d77fb..0000000 --- a/packages/db/src/generated/browser.ts +++ /dev/null @@ -1,49 +0,0 @@ - -/* !!! 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.js' -export { Prisma } -export * as $Enums from './enums.js' -export * from './enums.js'; -/** - * Model User - * - */ -export type User = Prisma.UserModel -/** - * Model workflow - * - */ -export type workflow = Prisma.workflowModel -/** - * Model Triggers - * - */ -export type Triggers = Prisma.TriggersModel -/** - * Model AvailableTriggers - * - */ -export type AvailableTriggers = Prisma.AvailableTriggersModel -/** - * Model AvailableNodes - * - */ -export type AvailableNodes = Prisma.AvailableNodesModel -/** - * Model Nodes - * - */ -export type Nodes = Prisma.NodesModel diff --git a/packages/db/src/generated/client.ts b/packages/db/src/generated/client.ts deleted file mode 100644 index 4832c01..0000000 --- a/packages/db/src/generated/client.ts +++ /dev/null @@ -1,76 +0,0 @@ - -/* !!! 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/library" -import * as $Enums from "./enums.js" -import * as $Class from "./internal/class.js" -import * as Prisma from "./internal/prismaNamespace.js" - -export * as $Enums from './enums.js' -export * from "./enums.js" -/** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient() - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client). - */ -export const PrismaClient = $Class.getPrismaClientClass(__dirname) -export type PrismaClient = $Class.PrismaClient -export { Prisma } - - -// file annotations for bundling tools to include these files -path.join(__dirname, "libquery_engine-debian-openssl-3.0.x.so.node") -path.join(process.cwd(), "src/generated/libquery_engine-debian-openssl-3.0.x.so.node") - -/** - * Model User - * - */ -export type User = Prisma.UserModel -/** - * Model workflow - * - */ -export type workflow = Prisma.workflowModel -/** - * Model Triggers - * - */ -export type Triggers = Prisma.TriggersModel -/** - * Model AvailableTriggers - * - */ -export type AvailableTriggers = Prisma.AvailableTriggersModel -/** - * Model AvailableNodes - * - */ -export type AvailableNodes = Prisma.AvailableNodesModel -/** - * Model Nodes - * - */ -export type Nodes = Prisma.NodesModel diff --git a/packages/db/src/generated/commonInputTypes.ts b/packages/db/src/generated/commonInputTypes.ts deleted file mode 100644 index 5fb7a24..0000000 --- a/packages/db/src/generated/commonInputTypes.ts +++ /dev/null @@ -1,385 +0,0 @@ - -/* !!! 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/library" -import * as $Enums from "./enums.js" -import type * as Prisma from "./internal/prismaNamespace.js" - - -export type StringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - 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> - mode?: Prisma.QueryMode - not?: Prisma.NestedStringFilter<$PrismaModel> | string -} - -export type StringNullableFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | 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> - mode?: Prisma.QueryMode - not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null -} - -export type DateTimeFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - 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 StringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - 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> - mode?: Prisma.QueryMode - 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[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | 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> - mode?: Prisma.QueryMode - 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[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - 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 EnumWorkFlowStatusFilter<$PrismaModel = never> = { - equals?: $Enums.WorkFlowStatus | Prisma.EnumWorkFlowStatusFieldRefInput<$PrismaModel> - in?: $Enums.WorkFlowStatus[] | Prisma.ListEnumWorkFlowStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.WorkFlowStatus[] | Prisma.ListEnumWorkFlowStatusFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumWorkFlowStatusFilter<$PrismaModel> | $Enums.WorkFlowStatus -} - -export type JsonFilter<$PrismaModel = never> = -| Prisma.PatchUndefined< - Prisma.Either>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, 'path'>> - -export type JsonFilterBase<$PrismaModel = never> = { - equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter - path?: string[] - mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> - string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> - string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> - array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null - array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null - array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null - lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter -} - -export type EnumWorkFlowStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.WorkFlowStatus | Prisma.EnumWorkFlowStatusFieldRefInput<$PrismaModel> - in?: $Enums.WorkFlowStatus[] | Prisma.ListEnumWorkFlowStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.WorkFlowStatus[] | Prisma.ListEnumWorkFlowStatusFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumWorkFlowStatusWithAggregatesFilter<$PrismaModel> | $Enums.WorkFlowStatus - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedEnumWorkFlowStatusFilter<$PrismaModel> - _max?: Prisma.NestedEnumWorkFlowStatusFilter<$PrismaModel> -} - -export type JsonWithAggregatesFilter<$PrismaModel = never> = -| Prisma.PatchUndefined< - Prisma.Either>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, 'path'>> - -export type JsonWithAggregatesFilterBase<$PrismaModel = never> = { - equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter - path?: string[] - mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> - string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> - string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> - array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null - array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null - array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null - lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedJsonFilter<$PrismaModel> - _max?: Prisma.NestedJsonFilter<$PrismaModel> -} - -export type IntFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - 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 IntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - 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 NestedStringFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - 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[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | 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[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - 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 NestedStringWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> - 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 NestedIntFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - 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 NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | 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[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | 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[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - 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 NestedEnumWorkFlowStatusFilter<$PrismaModel = never> = { - equals?: $Enums.WorkFlowStatus | Prisma.EnumWorkFlowStatusFieldRefInput<$PrismaModel> - in?: $Enums.WorkFlowStatus[] | Prisma.ListEnumWorkFlowStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.WorkFlowStatus[] | Prisma.ListEnumWorkFlowStatusFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumWorkFlowStatusFilter<$PrismaModel> | $Enums.WorkFlowStatus -} - -export type NestedEnumWorkFlowStatusWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.WorkFlowStatus | Prisma.EnumWorkFlowStatusFieldRefInput<$PrismaModel> - in?: $Enums.WorkFlowStatus[] | Prisma.ListEnumWorkFlowStatusFieldRefInput<$PrismaModel> - notIn?: $Enums.WorkFlowStatus[] | Prisma.ListEnumWorkFlowStatusFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumWorkFlowStatusWithAggregatesFilter<$PrismaModel> | $Enums.WorkFlowStatus - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedEnumWorkFlowStatusFilter<$PrismaModel> - _max?: Prisma.NestedEnumWorkFlowStatusFilter<$PrismaModel> -} - -export type NestedJsonFilter<$PrismaModel = never> = -| Prisma.PatchUndefined< - Prisma.Either>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, 'path'>> - -export type NestedJsonFilterBase<$PrismaModel = never> = { - equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter - path?: string[] - mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel> - string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel> - string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel> - array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null - array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null - array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null - lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> - not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter -} - -export type NestedIntWithAggregatesFilter<$PrismaModel = never> = { - equals?: number | Prisma.IntFieldRefInput<$PrismaModel> - in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> - 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[] | Prisma.ListFloatFieldRefInput<$PrismaModel> - notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> - 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 -} - - diff --git a/packages/db/src/generated/enums.ts b/packages/db/src/generated/enums.ts deleted file mode 100644 index b4774c5..0000000 --- a/packages/db/src/generated/enums.ts +++ /dev/null @@ -1,21 +0,0 @@ - -/* !!! 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. -*/ - -export const WorkFlowStatus = { - Start: 'Start', - Pending: 'Pending', - InProgress: 'InProgress', - ReConnecting: 'ReConnecting', - Failed: 'Failed', - Completed: 'Completed' -} as const - -export type WorkFlowStatus = (typeof WorkFlowStatus)[keyof typeof WorkFlowStatus] diff --git a/packages/db/src/generated/internal/class.ts b/packages/db/src/generated/internal/class.ts deleted file mode 100644 index 418f065..0000000 --- a/packages/db/src/generated/internal/class.ts +++ /dev/null @@ -1,269 +0,0 @@ - -/* !!! 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/library" -import type * as Prisma from "./prismaNamespace.js" - - -const config: runtime.GetPrismaClientConfig = { - "generator": { - "name": "client", - "provider": { - "fromEnvVar": null, - "value": "prisma-client" - }, - "output": { - "value": "/home/vamsi/Projects/WEB DEV/BuildFlow/packages/db/src/generated", - "fromEnvVar": null - }, - "config": { - "engineType": "library" - }, - "binaryTargets": [ - { - "fromEnvVar": null, - "value": "debian-openssl-3.0.x", - "native": true - } - ], - "previewFeatures": [], - "sourceFilePath": "/home/vamsi/Projects/WEB DEV/BuildFlow/packages/db/prisma/schema.prisma", - "isCustomOutput": true - }, - "relativePath": "../../prisma", - "clientVersion": "6.19.0", - "engineVersion": "2ba551f319ab1df4bc874a89965d8b3641056773", - "datasourceNames": [ - "db" - ], - "activeProvider": "postgresql", - "postinstall": false, - "inlineDatasources": { - "db": { - "url": { - "fromEnvVar": "DATABASE_URL", - "value": null - } - } - }, - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../src/generated\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n // directUrl = env(\"DIRECT_URL\")\n}\n\nmodel User {\n id String @id @default(cuid())\n name String?\n email String @unique\n password String\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n workflow workflow[]\n}\n\nmodel workflow {\n id String @id @default(cuid())\n name String\n createdAt DateTime @default(now())\n updateAt DateTime @default(now())\n description String\n status WorkFlowStatus\n userId String\n config Json\n user User @relation(fields: [userId], references: [id])\n TriggerId String @unique\n Trigger Triggers @relation(fields: [TriggerId], references: [id])\n NodeId String @unique\n Node Nodes @relation(fields: [NodeId], references: [id])\n}\n\nenum WorkFlowStatus {\n Start\n Pending\n InProgress\n ReConnecting\n Failed\n Completed\n}\n\nmodel Triggers {\n id String @id @default(cuid())\n name String\n typeID String\n config Json\n type AvailableTriggers @relation(fields: [typeID], references: [id])\n workflow workflow?\n}\n\nmodel AvailableTriggers {\n id String @id @default(cuid())\n name String\n type String @unique\n config Json\n Trigger Triggers[]\n}\n\nmodel AvailableNodes {\n id String @id @default(cuid())\n name String\n typeId String @unique\n config Json\n Node Nodes[]\n}\n\nmodel Nodes {\n id String @id @default(cuid())\n name String\n workflow workflow?\n typeId String\n type AvailableNodes @relation(fields: [typeId], references: [id])\n config Json\n position Int\n}\n", - "inlineSchemaHash": "e684bdc9d161ccd4842c34df343d13a56bfdc1b0f43dfd368bec6fa440a07c3b", - "copyEngine": true, - "runtimeDataModel": { - "models": {}, - "enums": {}, - "types": {} - }, - "dirname": "" -} - -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"email\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"password\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"DateTime\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":true},{\"name\":\"workflow\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"workflow\",\"nativeType\":null,\"relationName\":\"UserToworkflow\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"workflow\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"updateAt\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"DateTime\",\"nativeType\":null,\"default\":{\"name\":\"now\",\"args\":[]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"description\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"status\",\"kind\":\"enum\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"WorkFlowStatus\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"userId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"user\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"User\",\"nativeType\":null,\"relationName\":\"UserToworkflow\",\"relationFromFields\":[\"userId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"TriggerId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"Trigger\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Triggers\",\"nativeType\":null,\"relationName\":\"TriggersToworkflow\",\"relationFromFields\":[\"TriggerId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"NodeId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"Node\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Nodes\",\"nativeType\":null,\"relationName\":\"NodesToworkflow\",\"relationFromFields\":[\"NodeId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Triggers\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"typeID\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AvailableTriggers\",\"nativeType\":null,\"relationName\":\"AvailableTriggersToTriggers\",\"relationFromFields\":[\"typeID\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"workflow\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"workflow\",\"nativeType\":null,\"relationName\":\"TriggersToworkflow\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AvailableTriggers\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"Trigger\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Triggers\",\"nativeType\":null,\"relationName\":\"AvailableTriggersToTriggers\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"AvailableNodes\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"typeId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":true,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"Node\",\"kind\":\"object\",\"isList\":true,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Nodes\",\"nativeType\":null,\"relationName\":\"AvailableNodesToNodes\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false},\"Nodes\":{\"dbName\":null,\"schema\":null,\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":true,\"isReadOnly\":false,\"hasDefaultValue\":true,\"type\":\"String\",\"nativeType\":null,\"default\":{\"name\":\"cuid\",\"args\":[1]},\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"name\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"workflow\",\"kind\":\"object\",\"isList\":false,\"isRequired\":false,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"workflow\",\"nativeType\":null,\"relationName\":\"NodesToworkflow\",\"relationFromFields\":[],\"relationToFields\":[],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"typeId\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":true,\"hasDefaultValue\":false,\"type\":\"String\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"type\",\"kind\":\"object\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"AvailableNodes\",\"nativeType\":null,\"relationName\":\"AvailableNodesToNodes\",\"relationFromFields\":[\"typeId\"],\"relationToFields\":[\"id\"],\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"config\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Json\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false},{\"name\":\"position\",\"kind\":\"scalar\",\"isList\":false,\"isRequired\":true,\"isUnique\":false,\"isId\":false,\"isReadOnly\":false,\"hasDefaultValue\":false,\"type\":\"Int\",\"nativeType\":null,\"isGenerated\":false,\"isUpdatedAt\":false}],\"primaryKey\":null,\"uniqueFields\":[],\"uniqueIndexes\":[],\"isGenerated\":false}},\"enums\":{\"WorkFlowStatus\":{\"values\":[{\"name\":\"Start\",\"dbName\":null},{\"name\":\"Pending\",\"dbName\":null},{\"name\":\"InProgress\",\"dbName\":null},{\"name\":\"ReConnecting\",\"dbName\":null},{\"name\":\"Failed\",\"dbName\":null},{\"name\":\"Completed\",\"dbName\":null}],\"dbName\":null}},\"types\":{}}") -config.engineWasm = undefined -config.compilerWasm = undefined - - - - -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 Users - * const users = await prisma.user.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 Users - * const users = await prisma.user.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'] = Prisma.PrismaClientOptions['omit'], - 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.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.workflow`: Exposes CRUD operations for the **workflow** model. - * Example usage: - * ```ts - * // Fetch zero or more Workflows - * const workflows = await prisma.workflow.findMany() - * ``` - */ - get workflow(): Prisma.workflowDelegate; - - /** - * `prisma.triggers`: Exposes CRUD operations for the **Triggers** model. - * Example usage: - * ```ts - * // Fetch zero or more Triggers - * const triggers = await prisma.triggers.findMany() - * ``` - */ - get triggers(): Prisma.TriggersDelegate; - - /** - * `prisma.availableTriggers`: Exposes CRUD operations for the **AvailableTriggers** model. - * Example usage: - * ```ts - * // Fetch zero or more AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.findMany() - * ``` - */ - get availableTriggers(): Prisma.AvailableTriggersDelegate; - - /** - * `prisma.availableNodes`: Exposes CRUD operations for the **AvailableNodes** model. - * Example usage: - * ```ts - * // Fetch zero or more AvailableNodes - * const availableNodes = await prisma.availableNodes.findMany() - * ``` - */ - get availableNodes(): Prisma.AvailableNodesDelegate; - - /** - * `prisma.nodes`: Exposes CRUD operations for the **Nodes** model. - * Example usage: - * ```ts - * // Fetch zero or more Nodes - * const nodes = await prisma.nodes.findMany() - * ``` - */ - get nodes(): Prisma.NodesDelegate; -} - -export function getPrismaClientClass(dirname: string): PrismaClientConstructor { - config.dirname = dirname - return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor -} diff --git a/packages/db/src/generated/internal/prismaNamespace.ts b/packages/db/src/generated/internal/prismaNamespace.ts deleted file mode 100644 index 8f203ef..0000000 --- a/packages/db/src/generated/internal/prismaNamespace.ts +++ /dev/null @@ -1,1254 +0,0 @@ - -/* !!! 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/library" -import type * as Prisma from "../models.js" -import { type PrismaClient } from "./class.js" - -export type * from '../models.js' - -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 - -/** - * Metrics - */ -export type Metrics = runtime.Metrics -export type Metric = runtime.Metric -export type MetricHistogram = runtime.MetricHistogram -export type MetricHistogramBucket = runtime.MetricHistogramBucket - -/** -* 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: 6.19.0 - * Query Engine version: 2ba551f319ab1df4bc874a89965d8b3641056773 - */ -export const prismaVersion: PrismaVersion = { - client: "6.19.0", - engine: "2ba551f319ab1df4bc874a89965d8b3641056773" -} - -/** - * 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.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), - JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), - AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.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 = { - User: 'User', - workflow: 'workflow', - Triggers: 'Triggers', - AvailableTriggers: 'AvailableTriggers', - AvailableNodes: 'AvailableNodes', - Nodes: 'Nodes' -} 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: "user" | "workflow" | "triggers" | "availableTriggers" | "availableNodes" | "nodes" - txIsolationLevel: TransactionIsolationLevel - } - model: { - 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 - } - } - } - workflow: { - payload: Prisma.$workflowPayload - fields: Prisma.workflowFieldRefs - operations: { - findUnique: { - args: Prisma.workflowFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.workflowFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.workflowFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.workflowFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.workflowFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.workflowCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.workflowCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.workflowCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.workflowDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.workflowUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.workflowDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.workflowUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.workflowUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.workflowUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.WorkflowAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.workflowGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.workflowCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Triggers: { - payload: Prisma.$TriggersPayload - fields: Prisma.TriggersFieldRefs - operations: { - findUnique: { - args: Prisma.TriggersFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.TriggersFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.TriggersFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.TriggersFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.TriggersFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.TriggersCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.TriggersCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.TriggersCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.TriggersDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.TriggersUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.TriggersDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.TriggersUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.TriggersUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.TriggersUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.TriggersAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.TriggersGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.TriggersCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - AvailableTriggers: { - payload: Prisma.$AvailableTriggersPayload - fields: Prisma.AvailableTriggersFieldRefs - operations: { - findUnique: { - args: Prisma.AvailableTriggersFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AvailableTriggersFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AvailableTriggersFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AvailableTriggersFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AvailableTriggersFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AvailableTriggersCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AvailableTriggersCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AvailableTriggersCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AvailableTriggersDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AvailableTriggersUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AvailableTriggersDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AvailableTriggersUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AvailableTriggersUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AvailableTriggersUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AvailableTriggersAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AvailableTriggersGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AvailableTriggersCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - AvailableNodes: { - payload: Prisma.$AvailableNodesPayload - fields: Prisma.AvailableNodesFieldRefs - operations: { - findUnique: { - args: Prisma.AvailableNodesFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AvailableNodesFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AvailableNodesFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AvailableNodesFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AvailableNodesFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AvailableNodesCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AvailableNodesCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AvailableNodesCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AvailableNodesDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AvailableNodesUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AvailableNodesDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AvailableNodesUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AvailableNodesUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AvailableNodesUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AvailableNodesAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AvailableNodesGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AvailableNodesCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Nodes: { - payload: Prisma.$NodesPayload - fields: Prisma.NodesFieldRefs - operations: { - findUnique: { - args: Prisma.NodesFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.NodesFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.NodesFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.NodesFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.NodesFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.NodesCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.NodesCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.NodesCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.NodesDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.NodesUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.NodesDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.NodesUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.NodesUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.NodesUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.NodesAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.NodesGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.NodesCountArgs - 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({ - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' -} as const) - -export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - -export const UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - password: 'password', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - -export const WorkflowScalarFieldEnum = { - id: 'id', - name: 'name', - createdAt: 'createdAt', - updateAt: 'updateAt', - description: 'description', - status: 'status', - userId: 'userId', - config: 'config', - TriggerId: 'TriggerId', - NodeId: 'NodeId' -} as const - -export type WorkflowScalarFieldEnum = (typeof WorkflowScalarFieldEnum)[keyof typeof WorkflowScalarFieldEnum] - - -export const TriggersScalarFieldEnum = { - id: 'id', - name: 'name', - typeID: 'typeID', - config: 'config' -} as const - -export type TriggersScalarFieldEnum = (typeof TriggersScalarFieldEnum)[keyof typeof TriggersScalarFieldEnum] - - -export const AvailableTriggersScalarFieldEnum = { - id: 'id', - name: 'name', - type: 'type', - config: 'config' -} as const - -export type AvailableTriggersScalarFieldEnum = (typeof AvailableTriggersScalarFieldEnum)[keyof typeof AvailableTriggersScalarFieldEnum] - - -export const AvailableNodesScalarFieldEnum = { - id: 'id', - name: 'name', - typeId: 'typeId', - config: 'config' -} as const - -export type AvailableNodesScalarFieldEnum = (typeof AvailableNodesScalarFieldEnum)[keyof typeof AvailableNodesScalarFieldEnum] - - -export const NodesScalarFieldEnum = { - id: 'id', - name: 'name', - typeId: 'typeId', - config: 'config', - position: 'position' -} as const - -export type NodesScalarFieldEnum = (typeof NodesScalarFieldEnum)[keyof typeof NodesScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const JsonNullValueInput = { - JsonNull: JsonNull -} as const - -export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] - - -export const QueryMode = { - default: 'default', - insensitive: 'insensitive' -} as const - -export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] - - -export const NullsOrder = { - first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - - -export const JsonNullValueFilter = { - DbNull: DbNull, - JsonNull: JsonNull, - AnyNull: AnyNull -} as const - -export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] - - - -/** - * Field references - */ - - -/** - * Reference to a field of type 'String' - */ -export type StringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String'> - - - -/** - * Reference to a field of type 'String[]' - */ -export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'String[]'> - - - -/** - * Reference to a field of type 'DateTime' - */ -export type DateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime'> - - - -/** - * Reference to a field of type 'DateTime[]' - */ -export type ListDateTimeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'DateTime[]'> - - - -/** - * Reference to a field of type 'WorkFlowStatus' - */ -export type EnumWorkFlowStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkFlowStatus'> - - - -/** - * Reference to a field of type 'WorkFlowStatus[]' - */ -export type ListEnumWorkFlowStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'WorkFlowStatus[]'> - - - -/** - * Reference to a field of type 'Json' - */ -export type JsonFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Json'> - - - -/** - * Reference to a field of type 'QueryMode' - */ -export type EnumQueryModeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'QueryMode'> - - - -/** - * Reference to a field of type 'Int' - */ -export type IntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int'> - - - -/** - * Reference to a field of type 'Int[]' - */ -export type ListIntFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Int[]'> - - - -/** - * Reference to a field of type 'Float' - */ -export type FloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float'> - - - -/** - * Reference to a field of type 'Float[]' - */ -export type ListFloatFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Float[]'> - - -/** - * Batch Payload for updateMany & deleteMany & createMany - */ -export type BatchPayload = { - count: number -} - - -export type Datasource = { - url?: string -} -export type Datasources = { - db?: Datasource -} - -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 interface PrismaClientOptions { - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasources?: Datasources - /** - * Overwrites the datasource url from your schema.prisma file - */ - datasourceUrl?: string - /** - * @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 - } - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale` - */ - adapter?: runtime.SqlDriverAdapterFactory | null - /** - * Global configuration for omitting model fields by default. - * - * @example - * ``` - * const prisma = new PrismaClient({ - * omit: { - * user: { - * password: true - * } - * } - * }) - * ``` - */ - omit?: GlobalOmitConfig -} -export type GlobalOmitConfig = { - user?: Prisma.UserOmit - workflow?: Prisma.workflowOmit - triggers?: Prisma.TriggersOmit - availableTriggers?: Prisma.AvailableTriggersOmit - availableNodes?: Prisma.AvailableNodesOmit - nodes?: Prisma.NodesOmit -} - -/* 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/packages/db/src/generated/internal/prismaNamespaceBrowser.ts b/packages/db/src/generated/internal/prismaNamespaceBrowser.ts deleted file mode 100644 index 2b0d603..0000000 --- a/packages/db/src/generated/internal/prismaNamespaceBrowser.ts +++ /dev/null @@ -1,183 +0,0 @@ - -/* !!! 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.js' -export type * from './prismaNamespace.js' - -export const Decimal = runtime.Decimal - - -export const NullTypes = { - DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull), - JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull), - AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.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.objectEnumValues.instances.AnyNull - - -export const ModelName = { - User: 'User', - workflow: 'workflow', - Triggers: 'Triggers', - AvailableTriggers: 'AvailableTriggers', - AvailableNodes: 'AvailableNodes', - Nodes: 'Nodes' -} as const - -export type ModelName = (typeof ModelName)[keyof typeof ModelName] - -/* - * Enums - */ - -export const TransactionIsolationLevel = runtime.makeStrictEnum({ - ReadUncommitted: 'ReadUncommitted', - ReadCommitted: 'ReadCommitted', - RepeatableRead: 'RepeatableRead', - Serializable: 'Serializable' -} as const) - -export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel] - - -export const UserScalarFieldEnum = { - id: 'id', - name: 'name', - email: 'email', - password: 'password', - createdAt: 'createdAt', - updatedAt: 'updatedAt' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - -export const WorkflowScalarFieldEnum = { - id: 'id', - name: 'name', - createdAt: 'createdAt', - updateAt: 'updateAt', - description: 'description', - status: 'status', - userId: 'userId', - config: 'config', - TriggerId: 'TriggerId', - NodeId: 'NodeId' -} as const - -export type WorkflowScalarFieldEnum = (typeof WorkflowScalarFieldEnum)[keyof typeof WorkflowScalarFieldEnum] - - -export const TriggersScalarFieldEnum = { - id: 'id', - name: 'name', - typeID: 'typeID', - config: 'config' -} as const - -export type TriggersScalarFieldEnum = (typeof TriggersScalarFieldEnum)[keyof typeof TriggersScalarFieldEnum] - - -export const AvailableTriggersScalarFieldEnum = { - id: 'id', - name: 'name', - type: 'type', - config: 'config' -} as const - -export type AvailableTriggersScalarFieldEnum = (typeof AvailableTriggersScalarFieldEnum)[keyof typeof AvailableTriggersScalarFieldEnum] - - -export const AvailableNodesScalarFieldEnum = { - id: 'id', - name: 'name', - typeId: 'typeId', - config: 'config' -} as const - -export type AvailableNodesScalarFieldEnum = (typeof AvailableNodesScalarFieldEnum)[keyof typeof AvailableNodesScalarFieldEnum] - - -export const NodesScalarFieldEnum = { - id: 'id', - name: 'name', - typeId: 'typeId', - config: 'config', - position: 'position' -} as const - -export type NodesScalarFieldEnum = (typeof NodesScalarFieldEnum)[keyof typeof NodesScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const JsonNullValueInput = { - JsonNull: JsonNull -} as const - -export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput] - - -export const QueryMode = { - default: 'default', - insensitive: 'insensitive' -} as const - -export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] - - -export const NullsOrder = { - first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - - -export const JsonNullValueFilter = { - DbNull: DbNull, - JsonNull: JsonNull, - AnyNull: AnyNull -} as const - -export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] - diff --git a/packages/db/src/generated/models.ts b/packages/db/src/generated/models.ts deleted file mode 100644 index aa54c26..0000000 --- a/packages/db/src/generated/models.ts +++ /dev/null @@ -1,17 +0,0 @@ - -/* !!! 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/User.js' -export type * from './models/workflow.js' -export type * from './models/Triggers.js' -export type * from './models/AvailableTriggers.js' -export type * from './models/AvailableNodes.js' -export type * from './models/Nodes.js' -export type * from './commonInputTypes.js' \ No newline at end of file diff --git a/packages/db/src/generated/models/AvailableNodes.ts b/packages/db/src/generated/models/AvailableNodes.ts deleted file mode 100644 index e603bb3..0000000 --- a/packages/db/src/generated/models/AvailableNodes.ts +++ /dev/null @@ -1,1284 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `AvailableNodes` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/library" -import type * as $Enums from "../enums.js" -import type * as Prisma from "../internal/prismaNamespace.js" - -/** - * Model AvailableNodes - * - */ -export type AvailableNodesModel = runtime.Types.Result.DefaultSelection - -export type AggregateAvailableNodes = { - _count: AvailableNodesCountAggregateOutputType | null - _min: AvailableNodesMinAggregateOutputType | null - _max: AvailableNodesMaxAggregateOutputType | null -} - -export type AvailableNodesMinAggregateOutputType = { - id: string | null - name: string | null - typeId: string | null -} - -export type AvailableNodesMaxAggregateOutputType = { - id: string | null - name: string | null - typeId: string | null -} - -export type AvailableNodesCountAggregateOutputType = { - id: number - name: number - typeId: number - config: number - _all: number -} - - -export type AvailableNodesMinAggregateInputType = { - id?: true - name?: true - typeId?: true -} - -export type AvailableNodesMaxAggregateInputType = { - id?: true - name?: true - typeId?: true -} - -export type AvailableNodesCountAggregateInputType = { - id?: true - name?: true - typeId?: true - config?: true - _all?: true -} - -export type AvailableNodesAggregateArgs = { - /** - * Filter which AvailableNodes to aggregate. - */ - where?: Prisma.AvailableNodesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AvailableNodes to fetch. - */ - orderBy?: Prisma.AvailableNodesOrderByWithRelationInput | Prisma.AvailableNodesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AvailableNodesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AvailableNodes 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` AvailableNodes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AvailableNodes - **/ - _count?: true | AvailableNodesCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AvailableNodesMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AvailableNodesMaxAggregateInputType -} - -export type GetAvailableNodesAggregateType = { - [P in keyof T & keyof AggregateAvailableNodes]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AvailableNodesGroupByArgs = { - where?: Prisma.AvailableNodesWhereInput - orderBy?: Prisma.AvailableNodesOrderByWithAggregationInput | Prisma.AvailableNodesOrderByWithAggregationInput[] - by: Prisma.AvailableNodesScalarFieldEnum[] | Prisma.AvailableNodesScalarFieldEnum - having?: Prisma.AvailableNodesScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AvailableNodesCountAggregateInputType | true - _min?: AvailableNodesMinAggregateInputType - _max?: AvailableNodesMaxAggregateInputType -} - -export type AvailableNodesGroupByOutputType = { - id: string - name: string - typeId: string - config: runtime.JsonValue - _count: AvailableNodesCountAggregateOutputType | null - _min: AvailableNodesMinAggregateOutputType | null - _max: AvailableNodesMaxAggregateOutputType | null -} - -type GetAvailableNodesGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AvailableNodesGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AvailableNodesWhereInput = { - AND?: Prisma.AvailableNodesWhereInput | Prisma.AvailableNodesWhereInput[] - OR?: Prisma.AvailableNodesWhereInput[] - NOT?: Prisma.AvailableNodesWhereInput | Prisma.AvailableNodesWhereInput[] - id?: Prisma.StringFilter<"AvailableNodes"> | string - name?: Prisma.StringFilter<"AvailableNodes"> | string - typeId?: Prisma.StringFilter<"AvailableNodes"> | string - config?: Prisma.JsonFilter<"AvailableNodes"> - Node?: Prisma.NodesListRelationFilter -} - -export type AvailableNodesOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder - config?: Prisma.SortOrder - Node?: Prisma.NodesOrderByRelationAggregateInput -} - -export type AvailableNodesWhereUniqueInput = Prisma.AtLeast<{ - id?: string - typeId?: string - AND?: Prisma.AvailableNodesWhereInput | Prisma.AvailableNodesWhereInput[] - OR?: Prisma.AvailableNodesWhereInput[] - NOT?: Prisma.AvailableNodesWhereInput | Prisma.AvailableNodesWhereInput[] - name?: Prisma.StringFilter<"AvailableNodes"> | string - config?: Prisma.JsonFilter<"AvailableNodes"> - Node?: Prisma.NodesListRelationFilter -}, "id" | "typeId"> - -export type AvailableNodesOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder - config?: Prisma.SortOrder - _count?: Prisma.AvailableNodesCountOrderByAggregateInput - _max?: Prisma.AvailableNodesMaxOrderByAggregateInput - _min?: Prisma.AvailableNodesMinOrderByAggregateInput -} - -export type AvailableNodesScalarWhereWithAggregatesInput = { - AND?: Prisma.AvailableNodesScalarWhereWithAggregatesInput | Prisma.AvailableNodesScalarWhereWithAggregatesInput[] - OR?: Prisma.AvailableNodesScalarWhereWithAggregatesInput[] - NOT?: Prisma.AvailableNodesScalarWhereWithAggregatesInput | Prisma.AvailableNodesScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"AvailableNodes"> | string - name?: Prisma.StringWithAggregatesFilter<"AvailableNodes"> | string - typeId?: Prisma.StringWithAggregatesFilter<"AvailableNodes"> | string - config?: Prisma.JsonWithAggregatesFilter<"AvailableNodes"> -} - -export type AvailableNodesCreateInput = { - id?: string - name: string - typeId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - Node?: Prisma.NodesCreateNestedManyWithoutTypeInput -} - -export type AvailableNodesUncheckedCreateInput = { - id?: string - name: string - typeId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - Node?: Prisma.NodesUncheckedCreateNestedManyWithoutTypeInput -} - -export type AvailableNodesUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - Node?: Prisma.NodesUpdateManyWithoutTypeNestedInput -} - -export type AvailableNodesUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - Node?: Prisma.NodesUncheckedUpdateManyWithoutTypeNestedInput -} - -export type AvailableNodesCreateManyInput = { - id?: string - name: string - typeId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableNodesUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableNodesUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableNodesCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder - config?: Prisma.SortOrder -} - -export type AvailableNodesMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder -} - -export type AvailableNodesMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder -} - -export type AvailableNodesScalarRelationFilter = { - is?: Prisma.AvailableNodesWhereInput - isNot?: Prisma.AvailableNodesWhereInput -} - -export type AvailableNodesCreateNestedOneWithoutNodeInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AvailableNodesCreateOrConnectWithoutNodeInput - connect?: Prisma.AvailableNodesWhereUniqueInput -} - -export type AvailableNodesUpdateOneRequiredWithoutNodeNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AvailableNodesCreateOrConnectWithoutNodeInput - upsert?: Prisma.AvailableNodesUpsertWithoutNodeInput - connect?: Prisma.AvailableNodesWhereUniqueInput - update?: Prisma.XOR, Prisma.AvailableNodesUncheckedUpdateWithoutNodeInput> -} - -export type AvailableNodesCreateWithoutNodeInput = { - id?: string - name: string - typeId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableNodesUncheckedCreateWithoutNodeInput = { - id?: string - name: string - typeId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableNodesCreateOrConnectWithoutNodeInput = { - where: Prisma.AvailableNodesWhereUniqueInput - create: Prisma.XOR -} - -export type AvailableNodesUpsertWithoutNodeInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.AvailableNodesWhereInput -} - -export type AvailableNodesUpdateToOneWithWhereWithoutNodeInput = { - where?: Prisma.AvailableNodesWhereInput - data: Prisma.XOR -} - -export type AvailableNodesUpdateWithoutNodeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableNodesUncheckedUpdateWithoutNodeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - - -/** - * Count Type AvailableNodesCountOutputType - */ - -export type AvailableNodesCountOutputType = { - Node: number -} - -export type AvailableNodesCountOutputTypeSelect = { - Node?: boolean | AvailableNodesCountOutputTypeCountNodeArgs -} - -/** - * AvailableNodesCountOutputType without action - */ -export type AvailableNodesCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the AvailableNodesCountOutputType - */ - select?: Prisma.AvailableNodesCountOutputTypeSelect | null -} - -/** - * AvailableNodesCountOutputType without action - */ -export type AvailableNodesCountOutputTypeCountNodeArgs = { - where?: Prisma.NodesWhereInput -} - - -export type AvailableNodesSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - typeId?: boolean - config?: boolean - Node?: boolean | Prisma.AvailableNodes$NodeArgs - _count?: boolean | Prisma.AvailableNodesCountOutputTypeDefaultArgs -}, ExtArgs["result"]["availableNodes"]> - -export type AvailableNodesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - typeId?: boolean - config?: boolean -}, ExtArgs["result"]["availableNodes"]> - -export type AvailableNodesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - typeId?: boolean - config?: boolean -}, ExtArgs["result"]["availableNodes"]> - -export type AvailableNodesSelectScalar = { - id?: boolean - name?: boolean - typeId?: boolean - config?: boolean -} - -export type AvailableNodesOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "typeId" | "config", ExtArgs["result"]["availableNodes"]> -export type AvailableNodesInclude = { - Node?: boolean | Prisma.AvailableNodes$NodeArgs - _count?: boolean | Prisma.AvailableNodesCountOutputTypeDefaultArgs -} -export type AvailableNodesIncludeCreateManyAndReturn = {} -export type AvailableNodesIncludeUpdateManyAndReturn = {} - -export type $AvailableNodesPayload = { - name: "AvailableNodes" - objects: { - Node: Prisma.$NodesPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - name: string - typeId: string - config: runtime.JsonValue - }, ExtArgs["result"]["availableNodes"]> - composites: {} -} - -export type AvailableNodesGetPayload = runtime.Types.Result.GetResult - -export type AvailableNodesCountArgs = - Omit & { - select?: AvailableNodesCountAggregateInputType | true - } - -export interface AvailableNodesDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AvailableNodes'], meta: { name: 'AvailableNodes' } } - /** - * Find zero or one AvailableNodes that matches the filter. - * @param {AvailableNodesFindUniqueArgs} args - Arguments to find a AvailableNodes - * @example - * // Get one AvailableNodes - * const availableNodes = await prisma.availableNodes.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableNodesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one AvailableNodes that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AvailableNodesFindUniqueOrThrowArgs} args - Arguments to find a AvailableNodes - * @example - * // Get one AvailableNodes - * const availableNodes = await prisma.availableNodes.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableNodesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AvailableNodes 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 {AvailableNodesFindFirstArgs} args - Arguments to find a AvailableNodes - * @example - * // Get one AvailableNodes - * const availableNodes = await prisma.availableNodes.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AvailableNodesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AvailableNodes 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 {AvailableNodesFindFirstOrThrowArgs} args - Arguments to find a AvailableNodes - * @example - * // Get one AvailableNodes - * const availableNodes = await prisma.availableNodes.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AvailableNodesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more AvailableNodes 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 {AvailableNodesFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AvailableNodes - * const availableNodes = await prisma.availableNodes.findMany() - * - * // Get first 10 AvailableNodes - * const availableNodes = await prisma.availableNodes.findMany({ take: 10 }) - * - * // Only select the `id` - * const availableNodesWithIdOnly = await prisma.availableNodes.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a AvailableNodes. - * @param {AvailableNodesCreateArgs} args - Arguments to create a AvailableNodes. - * @example - * // Create one AvailableNodes - * const AvailableNodes = await prisma.availableNodes.create({ - * data: { - * // ... data to create a AvailableNodes - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableNodesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many AvailableNodes. - * @param {AvailableNodesCreateManyArgs} args - Arguments to create many AvailableNodes. - * @example - * // Create many AvailableNodes - * const availableNodes = await prisma.availableNodes.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AvailableNodes and returns the data saved in the database. - * @param {AvailableNodesCreateManyAndReturnArgs} args - Arguments to create many AvailableNodes. - * @example - * // Create many AvailableNodes - * const availableNodes = await prisma.availableNodes.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AvailableNodes and only return the `id` - * const availableNodesWithIdOnly = await prisma.availableNodes.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 AvailableNodes. - * @param {AvailableNodesDeleteArgs} args - Arguments to delete one AvailableNodes. - * @example - * // Delete one AvailableNodes - * const AvailableNodes = await prisma.availableNodes.delete({ - * where: { - * // ... filter to delete one AvailableNodes - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableNodesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one AvailableNodes. - * @param {AvailableNodesUpdateArgs} args - Arguments to update one AvailableNodes. - * @example - * // Update one AvailableNodes - * const availableNodes = await prisma.availableNodes.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableNodesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more AvailableNodes. - * @param {AvailableNodesDeleteManyArgs} args - Arguments to filter AvailableNodes to delete. - * @example - * // Delete a few AvailableNodes - * const { count } = await prisma.availableNodes.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AvailableNodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AvailableNodesUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AvailableNodes - * const availableNodes = await prisma.availableNodes.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AvailableNodes and returns the data updated in the database. - * @param {AvailableNodesUpdateManyAndReturnArgs} args - Arguments to update many AvailableNodes. - * @example - * // Update many AvailableNodes - * const availableNodes = await prisma.availableNodes.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more AvailableNodes and only return the `id` - * const availableNodesWithIdOnly = await prisma.availableNodes.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 AvailableNodes. - * @param {AvailableNodesUpsertArgs} args - Arguments to update or create a AvailableNodes. - * @example - * // Update or create a AvailableNodes - * const availableNodes = await prisma.availableNodes.upsert({ - * create: { - * // ... data to create a AvailableNodes - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AvailableNodes we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableNodesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of AvailableNodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AvailableNodesCountArgs} args - Arguments to filter AvailableNodes to count. - * @example - * // Count the number of AvailableNodes - * const count = await prisma.availableNodes.count({ - * where: { - * // ... the filter for the AvailableNodes 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 AvailableNodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AvailableNodesAggregateArgs} 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 AvailableNodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AvailableNodesGroupByArgs} 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 AvailableNodesGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AvailableNodesGroupByArgs['orderBy'] } - : { orderBy?: AvailableNodesGroupByArgs['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 ? GetAvailableNodesGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the AvailableNodes model - */ -readonly fields: AvailableNodesFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for AvailableNodes. - * 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__AvailableNodesClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - Node = {}>(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 AvailableNodes model - */ -export interface AvailableNodesFieldRefs { - readonly id: Prisma.FieldRef<"AvailableNodes", 'String'> - readonly name: Prisma.FieldRef<"AvailableNodes", 'String'> - readonly typeId: Prisma.FieldRef<"AvailableNodes", 'String'> - readonly config: Prisma.FieldRef<"AvailableNodes", 'Json'> -} - - -// Custom InputTypes -/** - * AvailableNodes findUnique - */ -export type AvailableNodesFindUniqueArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null - /** - * Filter, which AvailableNodes to fetch. - */ - where: Prisma.AvailableNodesWhereUniqueInput -} - -/** - * AvailableNodes findUniqueOrThrow - */ -export type AvailableNodesFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null - /** - * Filter, which AvailableNodes to fetch. - */ - where: Prisma.AvailableNodesWhereUniqueInput -} - -/** - * AvailableNodes findFirst - */ -export type AvailableNodesFindFirstArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null - /** - * Filter, which AvailableNodes to fetch. - */ - where?: Prisma.AvailableNodesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AvailableNodes to fetch. - */ - orderBy?: Prisma.AvailableNodesOrderByWithRelationInput | Prisma.AvailableNodesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AvailableNodes. - */ - cursor?: Prisma.AvailableNodesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AvailableNodes 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` AvailableNodes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AvailableNodes. - */ - distinct?: Prisma.AvailableNodesScalarFieldEnum | Prisma.AvailableNodesScalarFieldEnum[] -} - -/** - * AvailableNodes findFirstOrThrow - */ -export type AvailableNodesFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null - /** - * Filter, which AvailableNodes to fetch. - */ - where?: Prisma.AvailableNodesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AvailableNodes to fetch. - */ - orderBy?: Prisma.AvailableNodesOrderByWithRelationInput | Prisma.AvailableNodesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AvailableNodes. - */ - cursor?: Prisma.AvailableNodesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AvailableNodes 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` AvailableNodes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AvailableNodes. - */ - distinct?: Prisma.AvailableNodesScalarFieldEnum | Prisma.AvailableNodesScalarFieldEnum[] -} - -/** - * AvailableNodes findMany - */ -export type AvailableNodesFindManyArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null - /** - * Filter, which AvailableNodes to fetch. - */ - where?: Prisma.AvailableNodesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AvailableNodes to fetch. - */ - orderBy?: Prisma.AvailableNodesOrderByWithRelationInput | Prisma.AvailableNodesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AvailableNodes. - */ - cursor?: Prisma.AvailableNodesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AvailableNodes 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` AvailableNodes. - */ - skip?: number - distinct?: Prisma.AvailableNodesScalarFieldEnum | Prisma.AvailableNodesScalarFieldEnum[] -} - -/** - * AvailableNodes create - */ -export type AvailableNodesCreateArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null - /** - * The data needed to create a AvailableNodes. - */ - data: Prisma.XOR -} - -/** - * AvailableNodes createMany - */ -export type AvailableNodesCreateManyArgs = { - /** - * The data used to create many AvailableNodes. - */ - data: Prisma.AvailableNodesCreateManyInput | Prisma.AvailableNodesCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * AvailableNodes createManyAndReturn - */ -export type AvailableNodesCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelectCreateManyAndReturn | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * The data used to create many AvailableNodes. - */ - data: Prisma.AvailableNodesCreateManyInput | Prisma.AvailableNodesCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * AvailableNodes update - */ -export type AvailableNodesUpdateArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null - /** - * The data needed to update a AvailableNodes. - */ - data: Prisma.XOR - /** - * Choose, which AvailableNodes to update. - */ - where: Prisma.AvailableNodesWhereUniqueInput -} - -/** - * AvailableNodes updateMany - */ -export type AvailableNodesUpdateManyArgs = { - /** - * The data used to update AvailableNodes. - */ - data: Prisma.XOR - /** - * Filter which AvailableNodes to update - */ - where?: Prisma.AvailableNodesWhereInput - /** - * Limit how many AvailableNodes to update. - */ - limit?: number -} - -/** - * AvailableNodes updateManyAndReturn - */ -export type AvailableNodesUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * The data used to update AvailableNodes. - */ - data: Prisma.XOR - /** - * Filter which AvailableNodes to update - */ - where?: Prisma.AvailableNodesWhereInput - /** - * Limit how many AvailableNodes to update. - */ - limit?: number -} - -/** - * AvailableNodes upsert - */ -export type AvailableNodesUpsertArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null - /** - * The filter to search for the AvailableNodes to update in case it exists. - */ - where: Prisma.AvailableNodesWhereUniqueInput - /** - * In case the AvailableNodes found by the `where` argument doesn't exist, create a new AvailableNodes with this data. - */ - create: Prisma.XOR - /** - * In case the AvailableNodes was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * AvailableNodes delete - */ -export type AvailableNodesDeleteArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null - /** - * Filter which AvailableNodes to delete. - */ - where: Prisma.AvailableNodesWhereUniqueInput -} - -/** - * AvailableNodes deleteMany - */ -export type AvailableNodesDeleteManyArgs = { - /** - * Filter which AvailableNodes to delete - */ - where?: Prisma.AvailableNodesWhereInput - /** - * Limit how many AvailableNodes to delete. - */ - limit?: number -} - -/** - * AvailableNodes.Node - */ -export type AvailableNodes$NodeArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - where?: Prisma.NodesWhereInput - orderBy?: Prisma.NodesOrderByWithRelationInput | Prisma.NodesOrderByWithRelationInput[] - cursor?: Prisma.NodesWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.NodesScalarFieldEnum | Prisma.NodesScalarFieldEnum[] -} - -/** - * AvailableNodes without action - */ -export type AvailableNodesDefaultArgs = { - /** - * Select specific fields to fetch from the AvailableNodes - */ - select?: Prisma.AvailableNodesSelect | null - /** - * Omit specific fields from the AvailableNodes - */ - omit?: Prisma.AvailableNodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableNodesInclude | null -} diff --git a/packages/db/src/generated/models/AvailableTriggers.ts b/packages/db/src/generated/models/AvailableTriggers.ts deleted file mode 100644 index 2fdebb6..0000000 --- a/packages/db/src/generated/models/AvailableTriggers.ts +++ /dev/null @@ -1,1284 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `AvailableTriggers` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/library" -import type * as $Enums from "../enums.js" -import type * as Prisma from "../internal/prismaNamespace.js" - -/** - * Model AvailableTriggers - * - */ -export type AvailableTriggersModel = runtime.Types.Result.DefaultSelection - -export type AggregateAvailableTriggers = { - _count: AvailableTriggersCountAggregateOutputType | null - _min: AvailableTriggersMinAggregateOutputType | null - _max: AvailableTriggersMaxAggregateOutputType | null -} - -export type AvailableTriggersMinAggregateOutputType = { - id: string | null - name: string | null - type: string | null -} - -export type AvailableTriggersMaxAggregateOutputType = { - id: string | null - name: string | null - type: string | null -} - -export type AvailableTriggersCountAggregateOutputType = { - id: number - name: number - type: number - config: number - _all: number -} - - -export type AvailableTriggersMinAggregateInputType = { - id?: true - name?: true - type?: true -} - -export type AvailableTriggersMaxAggregateInputType = { - id?: true - name?: true - type?: true -} - -export type AvailableTriggersCountAggregateInputType = { - id?: true - name?: true - type?: true - config?: true - _all?: true -} - -export type AvailableTriggersAggregateArgs = { - /** - * Filter which AvailableTriggers to aggregate. - */ - where?: Prisma.AvailableTriggersWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AvailableTriggers to fetch. - */ - orderBy?: Prisma.AvailableTriggersOrderByWithRelationInput | Prisma.AvailableTriggersOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AvailableTriggersWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AvailableTriggers 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` AvailableTriggers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned AvailableTriggers - **/ - _count?: true | AvailableTriggersCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AvailableTriggersMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AvailableTriggersMaxAggregateInputType -} - -export type GetAvailableTriggersAggregateType = { - [P in keyof T & keyof AggregateAvailableTriggers]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AvailableTriggersGroupByArgs = { - where?: Prisma.AvailableTriggersWhereInput - orderBy?: Prisma.AvailableTriggersOrderByWithAggregationInput | Prisma.AvailableTriggersOrderByWithAggregationInput[] - by: Prisma.AvailableTriggersScalarFieldEnum[] | Prisma.AvailableTriggersScalarFieldEnum - having?: Prisma.AvailableTriggersScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AvailableTriggersCountAggregateInputType | true - _min?: AvailableTriggersMinAggregateInputType - _max?: AvailableTriggersMaxAggregateInputType -} - -export type AvailableTriggersGroupByOutputType = { - id: string - name: string - type: string - config: runtime.JsonValue - _count: AvailableTriggersCountAggregateOutputType | null - _min: AvailableTriggersMinAggregateOutputType | null - _max: AvailableTriggersMaxAggregateOutputType | null -} - -type GetAvailableTriggersGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AvailableTriggersGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AvailableTriggersWhereInput = { - AND?: Prisma.AvailableTriggersWhereInput | Prisma.AvailableTriggersWhereInput[] - OR?: Prisma.AvailableTriggersWhereInput[] - NOT?: Prisma.AvailableTriggersWhereInput | Prisma.AvailableTriggersWhereInput[] - id?: Prisma.StringFilter<"AvailableTriggers"> | string - name?: Prisma.StringFilter<"AvailableTriggers"> | string - type?: Prisma.StringFilter<"AvailableTriggers"> | string - config?: Prisma.JsonFilter<"AvailableTriggers"> - Trigger?: Prisma.TriggersListRelationFilter -} - -export type AvailableTriggersOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - type?: Prisma.SortOrder - config?: Prisma.SortOrder - Trigger?: Prisma.TriggersOrderByRelationAggregateInput -} - -export type AvailableTriggersWhereUniqueInput = Prisma.AtLeast<{ - id?: string - type?: string - AND?: Prisma.AvailableTriggersWhereInput | Prisma.AvailableTriggersWhereInput[] - OR?: Prisma.AvailableTriggersWhereInput[] - NOT?: Prisma.AvailableTriggersWhereInput | Prisma.AvailableTriggersWhereInput[] - name?: Prisma.StringFilter<"AvailableTriggers"> | string - config?: Prisma.JsonFilter<"AvailableTriggers"> - Trigger?: Prisma.TriggersListRelationFilter -}, "id" | "type"> - -export type AvailableTriggersOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - type?: Prisma.SortOrder - config?: Prisma.SortOrder - _count?: Prisma.AvailableTriggersCountOrderByAggregateInput - _max?: Prisma.AvailableTriggersMaxOrderByAggregateInput - _min?: Prisma.AvailableTriggersMinOrderByAggregateInput -} - -export type AvailableTriggersScalarWhereWithAggregatesInput = { - AND?: Prisma.AvailableTriggersScalarWhereWithAggregatesInput | Prisma.AvailableTriggersScalarWhereWithAggregatesInput[] - OR?: Prisma.AvailableTriggersScalarWhereWithAggregatesInput[] - NOT?: Prisma.AvailableTriggersScalarWhereWithAggregatesInput | Prisma.AvailableTriggersScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"AvailableTriggers"> | string - name?: Prisma.StringWithAggregatesFilter<"AvailableTriggers"> | string - type?: Prisma.StringWithAggregatesFilter<"AvailableTriggers"> | string - config?: Prisma.JsonWithAggregatesFilter<"AvailableTriggers"> -} - -export type AvailableTriggersCreateInput = { - id?: string - name: string - type: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - Trigger?: Prisma.TriggersCreateNestedManyWithoutTypeInput -} - -export type AvailableTriggersUncheckedCreateInput = { - id?: string - name: string - type: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - Trigger?: Prisma.TriggersUncheckedCreateNestedManyWithoutTypeInput -} - -export type AvailableTriggersUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - Trigger?: Prisma.TriggersUpdateManyWithoutTypeNestedInput -} - -export type AvailableTriggersUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - Trigger?: Prisma.TriggersUncheckedUpdateManyWithoutTypeNestedInput -} - -export type AvailableTriggersCreateManyInput = { - id?: string - name: string - type: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableTriggersUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableTriggersUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableTriggersScalarRelationFilter = { - is?: Prisma.AvailableTriggersWhereInput - isNot?: Prisma.AvailableTriggersWhereInput -} - -export type AvailableTriggersCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - type?: Prisma.SortOrder - config?: Prisma.SortOrder -} - -export type AvailableTriggersMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - type?: Prisma.SortOrder -} - -export type AvailableTriggersMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - type?: Prisma.SortOrder -} - -export type AvailableTriggersCreateNestedOneWithoutTriggerInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AvailableTriggersCreateOrConnectWithoutTriggerInput - connect?: Prisma.AvailableTriggersWhereUniqueInput -} - -export type AvailableTriggersUpdateOneRequiredWithoutTriggerNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.AvailableTriggersCreateOrConnectWithoutTriggerInput - upsert?: Prisma.AvailableTriggersUpsertWithoutTriggerInput - connect?: Prisma.AvailableTriggersWhereUniqueInput - update?: Prisma.XOR, Prisma.AvailableTriggersUncheckedUpdateWithoutTriggerInput> -} - -export type AvailableTriggersCreateWithoutTriggerInput = { - id?: string - name: string - type: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableTriggersUncheckedCreateWithoutTriggerInput = { - id?: string - name: string - type: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableTriggersCreateOrConnectWithoutTriggerInput = { - where: Prisma.AvailableTriggersWhereUniqueInput - create: Prisma.XOR -} - -export type AvailableTriggersUpsertWithoutTriggerInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.AvailableTriggersWhereInput -} - -export type AvailableTriggersUpdateToOneWithWhereWithoutTriggerInput = { - where?: Prisma.AvailableTriggersWhereInput - data: Prisma.XOR -} - -export type AvailableTriggersUpdateWithoutTriggerInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type AvailableTriggersUncheckedUpdateWithoutTriggerInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - - -/** - * Count Type AvailableTriggersCountOutputType - */ - -export type AvailableTriggersCountOutputType = { - Trigger: number -} - -export type AvailableTriggersCountOutputTypeSelect = { - Trigger?: boolean | AvailableTriggersCountOutputTypeCountTriggerArgs -} - -/** - * AvailableTriggersCountOutputType without action - */ -export type AvailableTriggersCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the AvailableTriggersCountOutputType - */ - select?: Prisma.AvailableTriggersCountOutputTypeSelect | null -} - -/** - * AvailableTriggersCountOutputType without action - */ -export type AvailableTriggersCountOutputTypeCountTriggerArgs = { - where?: Prisma.TriggersWhereInput -} - - -export type AvailableTriggersSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - type?: boolean - config?: boolean - Trigger?: boolean | Prisma.AvailableTriggers$TriggerArgs - _count?: boolean | Prisma.AvailableTriggersCountOutputTypeDefaultArgs -}, ExtArgs["result"]["availableTriggers"]> - -export type AvailableTriggersSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - type?: boolean - config?: boolean -}, ExtArgs["result"]["availableTriggers"]> - -export type AvailableTriggersSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - type?: boolean - config?: boolean -}, ExtArgs["result"]["availableTriggers"]> - -export type AvailableTriggersSelectScalar = { - id?: boolean - name?: boolean - type?: boolean - config?: boolean -} - -export type AvailableTriggersOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "type" | "config", ExtArgs["result"]["availableTriggers"]> -export type AvailableTriggersInclude = { - Trigger?: boolean | Prisma.AvailableTriggers$TriggerArgs - _count?: boolean | Prisma.AvailableTriggersCountOutputTypeDefaultArgs -} -export type AvailableTriggersIncludeCreateManyAndReturn = {} -export type AvailableTriggersIncludeUpdateManyAndReturn = {} - -export type $AvailableTriggersPayload = { - name: "AvailableTriggers" - objects: { - Trigger: Prisma.$TriggersPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - name: string - type: string - config: runtime.JsonValue - }, ExtArgs["result"]["availableTriggers"]> - composites: {} -} - -export type AvailableTriggersGetPayload = runtime.Types.Result.GetResult - -export type AvailableTriggersCountArgs = - Omit & { - select?: AvailableTriggersCountAggregateInputType | true - } - -export interface AvailableTriggersDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['AvailableTriggers'], meta: { name: 'AvailableTriggers' } } - /** - * Find zero or one AvailableTriggers that matches the filter. - * @param {AvailableTriggersFindUniqueArgs} args - Arguments to find a AvailableTriggers - * @example - * // Get one AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableTriggersClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one AvailableTriggers that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AvailableTriggersFindUniqueOrThrowArgs} args - Arguments to find a AvailableTriggers - * @example - * // Get one AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableTriggersClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AvailableTriggers 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 {AvailableTriggersFindFirstArgs} args - Arguments to find a AvailableTriggers - * @example - * // Get one AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AvailableTriggersClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first AvailableTriggers 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 {AvailableTriggersFindFirstOrThrowArgs} args - Arguments to find a AvailableTriggers - * @example - * // Get one AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AvailableTriggersClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more AvailableTriggers 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 {AvailableTriggersFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.findMany() - * - * // Get first 10 AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.findMany({ take: 10 }) - * - * // Only select the `id` - * const availableTriggersWithIdOnly = await prisma.availableTriggers.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a AvailableTriggers. - * @param {AvailableTriggersCreateArgs} args - Arguments to create a AvailableTriggers. - * @example - * // Create one AvailableTriggers - * const AvailableTriggers = await prisma.availableTriggers.create({ - * data: { - * // ... data to create a AvailableTriggers - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableTriggersClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many AvailableTriggers. - * @param {AvailableTriggersCreateManyArgs} args - Arguments to create many AvailableTriggers. - * @example - * // Create many AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many AvailableTriggers and returns the data saved in the database. - * @param {AvailableTriggersCreateManyAndReturnArgs} args - Arguments to create many AvailableTriggers. - * @example - * // Create many AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many AvailableTriggers and only return the `id` - * const availableTriggersWithIdOnly = await prisma.availableTriggers.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 AvailableTriggers. - * @param {AvailableTriggersDeleteArgs} args - Arguments to delete one AvailableTriggers. - * @example - * // Delete one AvailableTriggers - * const AvailableTriggers = await prisma.availableTriggers.delete({ - * where: { - * // ... filter to delete one AvailableTriggers - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableTriggersClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one AvailableTriggers. - * @param {AvailableTriggersUpdateArgs} args - Arguments to update one AvailableTriggers. - * @example - * // Update one AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableTriggersClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more AvailableTriggers. - * @param {AvailableTriggersDeleteManyArgs} args - Arguments to filter AvailableTriggers to delete. - * @example - * // Delete a few AvailableTriggers - * const { count } = await prisma.availableTriggers.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AvailableTriggers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AvailableTriggersUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more AvailableTriggers and returns the data updated in the database. - * @param {AvailableTriggersUpdateManyAndReturnArgs} args - Arguments to update many AvailableTriggers. - * @example - * // Update many AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more AvailableTriggers and only return the `id` - * const availableTriggersWithIdOnly = await prisma.availableTriggers.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 AvailableTriggers. - * @param {AvailableTriggersUpsertArgs} args - Arguments to update or create a AvailableTriggers. - * @example - * // Update or create a AvailableTriggers - * const availableTriggers = await prisma.availableTriggers.upsert({ - * create: { - * // ... data to create a AvailableTriggers - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the AvailableTriggers we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AvailableTriggersClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of AvailableTriggers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AvailableTriggersCountArgs} args - Arguments to filter AvailableTriggers to count. - * @example - * // Count the number of AvailableTriggers - * const count = await prisma.availableTriggers.count({ - * where: { - * // ... the filter for the AvailableTriggers 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 AvailableTriggers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AvailableTriggersAggregateArgs} 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 AvailableTriggers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AvailableTriggersGroupByArgs} 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 AvailableTriggersGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AvailableTriggersGroupByArgs['orderBy'] } - : { orderBy?: AvailableTriggersGroupByArgs['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 ? GetAvailableTriggersGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the AvailableTriggers model - */ -readonly fields: AvailableTriggersFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for AvailableTriggers. - * 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__AvailableTriggersClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - Trigger = {}>(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 AvailableTriggers model - */ -export interface AvailableTriggersFieldRefs { - readonly id: Prisma.FieldRef<"AvailableTriggers", 'String'> - readonly name: Prisma.FieldRef<"AvailableTriggers", 'String'> - readonly type: Prisma.FieldRef<"AvailableTriggers", 'String'> - readonly config: Prisma.FieldRef<"AvailableTriggers", 'Json'> -} - - -// Custom InputTypes -/** - * AvailableTriggers findUnique - */ -export type AvailableTriggersFindUniqueArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null - /** - * Filter, which AvailableTriggers to fetch. - */ - where: Prisma.AvailableTriggersWhereUniqueInput -} - -/** - * AvailableTriggers findUniqueOrThrow - */ -export type AvailableTriggersFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null - /** - * Filter, which AvailableTriggers to fetch. - */ - where: Prisma.AvailableTriggersWhereUniqueInput -} - -/** - * AvailableTriggers findFirst - */ -export type AvailableTriggersFindFirstArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null - /** - * Filter, which AvailableTriggers to fetch. - */ - where?: Prisma.AvailableTriggersWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AvailableTriggers to fetch. - */ - orderBy?: Prisma.AvailableTriggersOrderByWithRelationInput | Prisma.AvailableTriggersOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AvailableTriggers. - */ - cursor?: Prisma.AvailableTriggersWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AvailableTriggers 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` AvailableTriggers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AvailableTriggers. - */ - distinct?: Prisma.AvailableTriggersScalarFieldEnum | Prisma.AvailableTriggersScalarFieldEnum[] -} - -/** - * AvailableTriggers findFirstOrThrow - */ -export type AvailableTriggersFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null - /** - * Filter, which AvailableTriggers to fetch. - */ - where?: Prisma.AvailableTriggersWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AvailableTriggers to fetch. - */ - orderBy?: Prisma.AvailableTriggersOrderByWithRelationInput | Prisma.AvailableTriggersOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for AvailableTriggers. - */ - cursor?: Prisma.AvailableTriggersWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AvailableTriggers 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` AvailableTriggers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of AvailableTriggers. - */ - distinct?: Prisma.AvailableTriggersScalarFieldEnum | Prisma.AvailableTriggersScalarFieldEnum[] -} - -/** - * AvailableTriggers findMany - */ -export type AvailableTriggersFindManyArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null - /** - * Filter, which AvailableTriggers to fetch. - */ - where?: Prisma.AvailableTriggersWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of AvailableTriggers to fetch. - */ - orderBy?: Prisma.AvailableTriggersOrderByWithRelationInput | Prisma.AvailableTriggersOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing AvailableTriggers. - */ - cursor?: Prisma.AvailableTriggersWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` AvailableTriggers 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` AvailableTriggers. - */ - skip?: number - distinct?: Prisma.AvailableTriggersScalarFieldEnum | Prisma.AvailableTriggersScalarFieldEnum[] -} - -/** - * AvailableTriggers create - */ -export type AvailableTriggersCreateArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null - /** - * The data needed to create a AvailableTriggers. - */ - data: Prisma.XOR -} - -/** - * AvailableTriggers createMany - */ -export type AvailableTriggersCreateManyArgs = { - /** - * The data used to create many AvailableTriggers. - */ - data: Prisma.AvailableTriggersCreateManyInput | Prisma.AvailableTriggersCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * AvailableTriggers createManyAndReturn - */ -export type AvailableTriggersCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelectCreateManyAndReturn | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * The data used to create many AvailableTriggers. - */ - data: Prisma.AvailableTriggersCreateManyInput | Prisma.AvailableTriggersCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * AvailableTriggers update - */ -export type AvailableTriggersUpdateArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null - /** - * The data needed to update a AvailableTriggers. - */ - data: Prisma.XOR - /** - * Choose, which AvailableTriggers to update. - */ - where: Prisma.AvailableTriggersWhereUniqueInput -} - -/** - * AvailableTriggers updateMany - */ -export type AvailableTriggersUpdateManyArgs = { - /** - * The data used to update AvailableTriggers. - */ - data: Prisma.XOR - /** - * Filter which AvailableTriggers to update - */ - where?: Prisma.AvailableTriggersWhereInput - /** - * Limit how many AvailableTriggers to update. - */ - limit?: number -} - -/** - * AvailableTriggers updateManyAndReturn - */ -export type AvailableTriggersUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * The data used to update AvailableTriggers. - */ - data: Prisma.XOR - /** - * Filter which AvailableTriggers to update - */ - where?: Prisma.AvailableTriggersWhereInput - /** - * Limit how many AvailableTriggers to update. - */ - limit?: number -} - -/** - * AvailableTriggers upsert - */ -export type AvailableTriggersUpsertArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null - /** - * The filter to search for the AvailableTriggers to update in case it exists. - */ - where: Prisma.AvailableTriggersWhereUniqueInput - /** - * In case the AvailableTriggers found by the `where` argument doesn't exist, create a new AvailableTriggers with this data. - */ - create: Prisma.XOR - /** - * In case the AvailableTriggers was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * AvailableTriggers delete - */ -export type AvailableTriggersDeleteArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null - /** - * Filter which AvailableTriggers to delete. - */ - where: Prisma.AvailableTriggersWhereUniqueInput -} - -/** - * AvailableTriggers deleteMany - */ -export type AvailableTriggersDeleteManyArgs = { - /** - * Filter which AvailableTriggers to delete - */ - where?: Prisma.AvailableTriggersWhereInput - /** - * Limit how many AvailableTriggers to delete. - */ - limit?: number -} - -/** - * AvailableTriggers.Trigger - */ -export type AvailableTriggers$TriggerArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - where?: Prisma.TriggersWhereInput - orderBy?: Prisma.TriggersOrderByWithRelationInput | Prisma.TriggersOrderByWithRelationInput[] - cursor?: Prisma.TriggersWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TriggersScalarFieldEnum | Prisma.TriggersScalarFieldEnum[] -} - -/** - * AvailableTriggers without action - */ -export type AvailableTriggersDefaultArgs = { - /** - * Select specific fields to fetch from the AvailableTriggers - */ - select?: Prisma.AvailableTriggersSelect | null - /** - * Omit specific fields from the AvailableTriggers - */ - omit?: Prisma.AvailableTriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AvailableTriggersInclude | null -} diff --git a/packages/db/src/generated/models/Nodes.ts b/packages/db/src/generated/models/Nodes.ts deleted file mode 100644 index b328ecf..0000000 --- a/packages/db/src/generated/models/Nodes.ts +++ /dev/null @@ -1,1487 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `Nodes` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/library" -import type * as $Enums from "../enums.js" -import type * as Prisma from "../internal/prismaNamespace.js" - -/** - * Model Nodes - * - */ -export type NodesModel = runtime.Types.Result.DefaultSelection - -export type AggregateNodes = { - _count: NodesCountAggregateOutputType | null - _avg: NodesAvgAggregateOutputType | null - _sum: NodesSumAggregateOutputType | null - _min: NodesMinAggregateOutputType | null - _max: NodesMaxAggregateOutputType | null -} - -export type NodesAvgAggregateOutputType = { - position: number | null -} - -export type NodesSumAggregateOutputType = { - position: number | null -} - -export type NodesMinAggregateOutputType = { - id: string | null - name: string | null - typeId: string | null - position: number | null -} - -export type NodesMaxAggregateOutputType = { - id: string | null - name: string | null - typeId: string | null - position: number | null -} - -export type NodesCountAggregateOutputType = { - id: number - name: number - typeId: number - config: number - position: number - _all: number -} - - -export type NodesAvgAggregateInputType = { - position?: true -} - -export type NodesSumAggregateInputType = { - position?: true -} - -export type NodesMinAggregateInputType = { - id?: true - name?: true - typeId?: true - position?: true -} - -export type NodesMaxAggregateInputType = { - id?: true - name?: true - typeId?: true - position?: true -} - -export type NodesCountAggregateInputType = { - id?: true - name?: true - typeId?: true - config?: true - position?: true - _all?: true -} - -export type NodesAggregateArgs = { - /** - * Filter which Nodes to aggregate. - */ - where?: Prisma.NodesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Nodes to fetch. - */ - orderBy?: Prisma.NodesOrderByWithRelationInput | Prisma.NodesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.NodesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Nodes 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` Nodes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Nodes - **/ - _count?: true | NodesCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: NodesAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: NodesSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: NodesMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: NodesMaxAggregateInputType -} - -export type GetNodesAggregateType = { - [P in keyof T & keyof AggregateNodes]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type NodesGroupByArgs = { - where?: Prisma.NodesWhereInput - orderBy?: Prisma.NodesOrderByWithAggregationInput | Prisma.NodesOrderByWithAggregationInput[] - by: Prisma.NodesScalarFieldEnum[] | Prisma.NodesScalarFieldEnum - having?: Prisma.NodesScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: NodesCountAggregateInputType | true - _avg?: NodesAvgAggregateInputType - _sum?: NodesSumAggregateInputType - _min?: NodesMinAggregateInputType - _max?: NodesMaxAggregateInputType -} - -export type NodesGroupByOutputType = { - id: string - name: string - typeId: string - config: runtime.JsonValue - position: number - _count: NodesCountAggregateOutputType | null - _avg: NodesAvgAggregateOutputType | null - _sum: NodesSumAggregateOutputType | null - _min: NodesMinAggregateOutputType | null - _max: NodesMaxAggregateOutputType | null -} - -type GetNodesGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof NodesGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type NodesWhereInput = { - AND?: Prisma.NodesWhereInput | Prisma.NodesWhereInput[] - OR?: Prisma.NodesWhereInput[] - NOT?: Prisma.NodesWhereInput | Prisma.NodesWhereInput[] - id?: Prisma.StringFilter<"Nodes"> | string - name?: Prisma.StringFilter<"Nodes"> | string - typeId?: Prisma.StringFilter<"Nodes"> | string - config?: Prisma.JsonFilter<"Nodes"> - position?: Prisma.IntFilter<"Nodes"> | number - workflow?: Prisma.XOR | null - type?: Prisma.XOR -} - -export type NodesOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder - config?: Prisma.SortOrder - position?: Prisma.SortOrder - workflow?: Prisma.workflowOrderByWithRelationInput - type?: Prisma.AvailableNodesOrderByWithRelationInput -} - -export type NodesWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.NodesWhereInput | Prisma.NodesWhereInput[] - OR?: Prisma.NodesWhereInput[] - NOT?: Prisma.NodesWhereInput | Prisma.NodesWhereInput[] - name?: Prisma.StringFilter<"Nodes"> | string - typeId?: Prisma.StringFilter<"Nodes"> | string - config?: Prisma.JsonFilter<"Nodes"> - position?: Prisma.IntFilter<"Nodes"> | number - workflow?: Prisma.XOR | null - type?: Prisma.XOR -}, "id"> - -export type NodesOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder - config?: Prisma.SortOrder - position?: Prisma.SortOrder - _count?: Prisma.NodesCountOrderByAggregateInput - _avg?: Prisma.NodesAvgOrderByAggregateInput - _max?: Prisma.NodesMaxOrderByAggregateInput - _min?: Prisma.NodesMinOrderByAggregateInput - _sum?: Prisma.NodesSumOrderByAggregateInput -} - -export type NodesScalarWhereWithAggregatesInput = { - AND?: Prisma.NodesScalarWhereWithAggregatesInput | Prisma.NodesScalarWhereWithAggregatesInput[] - OR?: Prisma.NodesScalarWhereWithAggregatesInput[] - NOT?: Prisma.NodesScalarWhereWithAggregatesInput | Prisma.NodesScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Nodes"> | string - name?: Prisma.StringWithAggregatesFilter<"Nodes"> | string - typeId?: Prisma.StringWithAggregatesFilter<"Nodes"> | string - config?: Prisma.JsonWithAggregatesFilter<"Nodes"> - position?: Prisma.IntWithAggregatesFilter<"Nodes"> | number -} - -export type NodesCreateInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - position: number - workflow?: Prisma.workflowCreateNestedOneWithoutNodeInput - type: Prisma.AvailableNodesCreateNestedOneWithoutNodeInput -} - -export type NodesUncheckedCreateInput = { - id?: string - name: string - typeId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - position: number - workflow?: Prisma.workflowUncheckedCreateNestedOneWithoutNodeInput -} - -export type NodesUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - position?: Prisma.IntFieldUpdateOperationsInput | number - workflow?: Prisma.workflowUpdateOneWithoutNodeNestedInput - type?: Prisma.AvailableNodesUpdateOneRequiredWithoutNodeNestedInput -} - -export type NodesUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - position?: Prisma.IntFieldUpdateOperationsInput | number - workflow?: Prisma.workflowUncheckedUpdateOneWithoutNodeNestedInput -} - -export type NodesCreateManyInput = { - id?: string - name: string - typeId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - position: number -} - -export type NodesUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - position?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type NodesUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - position?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type NodesScalarRelationFilter = { - is?: Prisma.NodesWhereInput - isNot?: Prisma.NodesWhereInput -} - -export type NodesListRelationFilter = { - every?: Prisma.NodesWhereInput - some?: Prisma.NodesWhereInput - none?: Prisma.NodesWhereInput -} - -export type NodesOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type NodesCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder - config?: Prisma.SortOrder - position?: Prisma.SortOrder -} - -export type NodesAvgOrderByAggregateInput = { - position?: Prisma.SortOrder -} - -export type NodesMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder - position?: Prisma.SortOrder -} - -export type NodesMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeId?: Prisma.SortOrder - position?: Prisma.SortOrder -} - -export type NodesSumOrderByAggregateInput = { - position?: Prisma.SortOrder -} - -export type NodesCreateNestedOneWithoutWorkflowInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.NodesCreateOrConnectWithoutWorkflowInput - connect?: Prisma.NodesWhereUniqueInput -} - -export type NodesUpdateOneRequiredWithoutWorkflowNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.NodesCreateOrConnectWithoutWorkflowInput - upsert?: Prisma.NodesUpsertWithoutWorkflowInput - connect?: Prisma.NodesWhereUniqueInput - update?: Prisma.XOR, Prisma.NodesUncheckedUpdateWithoutWorkflowInput> -} - -export type NodesCreateNestedManyWithoutTypeInput = { - create?: Prisma.XOR | Prisma.NodesCreateWithoutTypeInput[] | Prisma.NodesUncheckedCreateWithoutTypeInput[] - connectOrCreate?: Prisma.NodesCreateOrConnectWithoutTypeInput | Prisma.NodesCreateOrConnectWithoutTypeInput[] - createMany?: Prisma.NodesCreateManyTypeInputEnvelope - connect?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] -} - -export type NodesUncheckedCreateNestedManyWithoutTypeInput = { - create?: Prisma.XOR | Prisma.NodesCreateWithoutTypeInput[] | Prisma.NodesUncheckedCreateWithoutTypeInput[] - connectOrCreate?: Prisma.NodesCreateOrConnectWithoutTypeInput | Prisma.NodesCreateOrConnectWithoutTypeInput[] - createMany?: Prisma.NodesCreateManyTypeInputEnvelope - connect?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] -} - -export type NodesUpdateManyWithoutTypeNestedInput = { - create?: Prisma.XOR | Prisma.NodesCreateWithoutTypeInput[] | Prisma.NodesUncheckedCreateWithoutTypeInput[] - connectOrCreate?: Prisma.NodesCreateOrConnectWithoutTypeInput | Prisma.NodesCreateOrConnectWithoutTypeInput[] - upsert?: Prisma.NodesUpsertWithWhereUniqueWithoutTypeInput | Prisma.NodesUpsertWithWhereUniqueWithoutTypeInput[] - createMany?: Prisma.NodesCreateManyTypeInputEnvelope - set?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] - disconnect?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] - delete?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] - connect?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] - update?: Prisma.NodesUpdateWithWhereUniqueWithoutTypeInput | Prisma.NodesUpdateWithWhereUniqueWithoutTypeInput[] - updateMany?: Prisma.NodesUpdateManyWithWhereWithoutTypeInput | Prisma.NodesUpdateManyWithWhereWithoutTypeInput[] - deleteMany?: Prisma.NodesScalarWhereInput | Prisma.NodesScalarWhereInput[] -} - -export type NodesUncheckedUpdateManyWithoutTypeNestedInput = { - create?: Prisma.XOR | Prisma.NodesCreateWithoutTypeInput[] | Prisma.NodesUncheckedCreateWithoutTypeInput[] - connectOrCreate?: Prisma.NodesCreateOrConnectWithoutTypeInput | Prisma.NodesCreateOrConnectWithoutTypeInput[] - upsert?: Prisma.NodesUpsertWithWhereUniqueWithoutTypeInput | Prisma.NodesUpsertWithWhereUniqueWithoutTypeInput[] - createMany?: Prisma.NodesCreateManyTypeInputEnvelope - set?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] - disconnect?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] - delete?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] - connect?: Prisma.NodesWhereUniqueInput | Prisma.NodesWhereUniqueInput[] - update?: Prisma.NodesUpdateWithWhereUniqueWithoutTypeInput | Prisma.NodesUpdateWithWhereUniqueWithoutTypeInput[] - updateMany?: Prisma.NodesUpdateManyWithWhereWithoutTypeInput | Prisma.NodesUpdateManyWithWhereWithoutTypeInput[] - deleteMany?: Prisma.NodesScalarWhereInput | Prisma.NodesScalarWhereInput[] -} - -export type IntFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number -} - -export type NodesCreateWithoutWorkflowInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - position: number - type: Prisma.AvailableNodesCreateNestedOneWithoutNodeInput -} - -export type NodesUncheckedCreateWithoutWorkflowInput = { - id?: string - name: string - typeId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - position: number -} - -export type NodesCreateOrConnectWithoutWorkflowInput = { - where: Prisma.NodesWhereUniqueInput - create: Prisma.XOR -} - -export type NodesUpsertWithoutWorkflowInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.NodesWhereInput -} - -export type NodesUpdateToOneWithWhereWithoutWorkflowInput = { - where?: Prisma.NodesWhereInput - data: Prisma.XOR -} - -export type NodesUpdateWithoutWorkflowInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - position?: Prisma.IntFieldUpdateOperationsInput | number - type?: Prisma.AvailableNodesUpdateOneRequiredWithoutNodeNestedInput -} - -export type NodesUncheckedUpdateWithoutWorkflowInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - position?: Prisma.IntFieldUpdateOperationsInput | number -} - -export type NodesCreateWithoutTypeInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - position: number - workflow?: Prisma.workflowCreateNestedOneWithoutNodeInput -} - -export type NodesUncheckedCreateWithoutTypeInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - position: number - workflow?: Prisma.workflowUncheckedCreateNestedOneWithoutNodeInput -} - -export type NodesCreateOrConnectWithoutTypeInput = { - where: Prisma.NodesWhereUniqueInput - create: Prisma.XOR -} - -export type NodesCreateManyTypeInputEnvelope = { - data: Prisma.NodesCreateManyTypeInput | Prisma.NodesCreateManyTypeInput[] - skipDuplicates?: boolean -} - -export type NodesUpsertWithWhereUniqueWithoutTypeInput = { - where: Prisma.NodesWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type NodesUpdateWithWhereUniqueWithoutTypeInput = { - where: Prisma.NodesWhereUniqueInput - data: Prisma.XOR -} - -export type NodesUpdateManyWithWhereWithoutTypeInput = { - where: Prisma.NodesScalarWhereInput - data: Prisma.XOR -} - -export type NodesScalarWhereInput = { - AND?: Prisma.NodesScalarWhereInput | Prisma.NodesScalarWhereInput[] - OR?: Prisma.NodesScalarWhereInput[] - NOT?: Prisma.NodesScalarWhereInput | Prisma.NodesScalarWhereInput[] - id?: Prisma.StringFilter<"Nodes"> | string - name?: Prisma.StringFilter<"Nodes"> | string - typeId?: Prisma.StringFilter<"Nodes"> | string - config?: Prisma.JsonFilter<"Nodes"> - position?: Prisma.IntFilter<"Nodes"> | number -} - -export type NodesCreateManyTypeInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - position: number -} - -export type NodesUpdateWithoutTypeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - position?: Prisma.IntFieldUpdateOperationsInput | number - workflow?: Prisma.workflowUpdateOneWithoutNodeNestedInput -} - -export type NodesUncheckedUpdateWithoutTypeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - position?: Prisma.IntFieldUpdateOperationsInput | number - workflow?: Prisma.workflowUncheckedUpdateOneWithoutNodeNestedInput -} - -export type NodesUncheckedUpdateManyWithoutTypeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - position?: Prisma.IntFieldUpdateOperationsInput | number -} - - - -export type NodesSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - typeId?: boolean - config?: boolean - position?: boolean - workflow?: boolean | Prisma.Nodes$workflowArgs - type?: boolean | Prisma.AvailableNodesDefaultArgs -}, ExtArgs["result"]["nodes"]> - -export type NodesSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - typeId?: boolean - config?: boolean - position?: boolean - type?: boolean | Prisma.AvailableNodesDefaultArgs -}, ExtArgs["result"]["nodes"]> - -export type NodesSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - typeId?: boolean - config?: boolean - position?: boolean - type?: boolean | Prisma.AvailableNodesDefaultArgs -}, ExtArgs["result"]["nodes"]> - -export type NodesSelectScalar = { - id?: boolean - name?: boolean - typeId?: boolean - config?: boolean - position?: boolean -} - -export type NodesOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "typeId" | "config" | "position", ExtArgs["result"]["nodes"]> -export type NodesInclude = { - workflow?: boolean | Prisma.Nodes$workflowArgs - type?: boolean | Prisma.AvailableNodesDefaultArgs -} -export type NodesIncludeCreateManyAndReturn = { - type?: boolean | Prisma.AvailableNodesDefaultArgs -} -export type NodesIncludeUpdateManyAndReturn = { - type?: boolean | Prisma.AvailableNodesDefaultArgs -} - -export type $NodesPayload = { - name: "Nodes" - objects: { - workflow: Prisma.$workflowPayload | null - type: Prisma.$AvailableNodesPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - name: string - typeId: string - config: runtime.JsonValue - position: number - }, ExtArgs["result"]["nodes"]> - composites: {} -} - -export type NodesGetPayload = runtime.Types.Result.GetResult - -export type NodesCountArgs = - Omit & { - select?: NodesCountAggregateInputType | true - } - -export interface NodesDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Nodes'], meta: { name: 'Nodes' } } - /** - * Find zero or one Nodes that matches the filter. - * @param {NodesFindUniqueArgs} args - Arguments to find a Nodes - * @example - * // Get one Nodes - * const nodes = await prisma.nodes.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__NodesClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Nodes that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {NodesFindUniqueOrThrowArgs} args - Arguments to find a Nodes - * @example - * // Get one Nodes - * const nodes = await prisma.nodes.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__NodesClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Nodes 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 {NodesFindFirstArgs} args - Arguments to find a Nodes - * @example - * // Get one Nodes - * const nodes = await prisma.nodes.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__NodesClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Nodes 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 {NodesFindFirstOrThrowArgs} args - Arguments to find a Nodes - * @example - * // Get one Nodes - * const nodes = await prisma.nodes.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__NodesClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Nodes 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 {NodesFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Nodes - * const nodes = await prisma.nodes.findMany() - * - * // Get first 10 Nodes - * const nodes = await prisma.nodes.findMany({ take: 10 }) - * - * // Only select the `id` - * const nodesWithIdOnly = await prisma.nodes.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Nodes. - * @param {NodesCreateArgs} args - Arguments to create a Nodes. - * @example - * // Create one Nodes - * const Nodes = await prisma.nodes.create({ - * data: { - * // ... data to create a Nodes - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__NodesClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Nodes. - * @param {NodesCreateManyArgs} args - Arguments to create many Nodes. - * @example - * // Create many Nodes - * const nodes = await prisma.nodes.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Nodes and returns the data saved in the database. - * @param {NodesCreateManyAndReturnArgs} args - Arguments to create many Nodes. - * @example - * // Create many Nodes - * const nodes = await prisma.nodes.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Nodes and only return the `id` - * const nodesWithIdOnly = await prisma.nodes.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 Nodes. - * @param {NodesDeleteArgs} args - Arguments to delete one Nodes. - * @example - * // Delete one Nodes - * const Nodes = await prisma.nodes.delete({ - * where: { - * // ... filter to delete one Nodes - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__NodesClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Nodes. - * @param {NodesUpdateArgs} args - Arguments to update one Nodes. - * @example - * // Update one Nodes - * const nodes = await prisma.nodes.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__NodesClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Nodes. - * @param {NodesDeleteManyArgs} args - Arguments to filter Nodes to delete. - * @example - * // Delete a few Nodes - * const { count } = await prisma.nodes.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Nodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NodesUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Nodes - * const nodes = await prisma.nodes.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Nodes and returns the data updated in the database. - * @param {NodesUpdateManyAndReturnArgs} args - Arguments to update many Nodes. - * @example - * // Update many Nodes - * const nodes = await prisma.nodes.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Nodes and only return the `id` - * const nodesWithIdOnly = await prisma.nodes.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 Nodes. - * @param {NodesUpsertArgs} args - Arguments to update or create a Nodes. - * @example - * // Update or create a Nodes - * const nodes = await prisma.nodes.upsert({ - * create: { - * // ... data to create a Nodes - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Nodes we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__NodesClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Nodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NodesCountArgs} args - Arguments to filter Nodes to count. - * @example - * // Count the number of Nodes - * const count = await prisma.nodes.count({ - * where: { - * // ... the filter for the Nodes 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 Nodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NodesAggregateArgs} 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 Nodes. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {NodesGroupByArgs} 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 NodesGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: NodesGroupByArgs['orderBy'] } - : { orderBy?: NodesGroupByArgs['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 ? GetNodesGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Nodes model - */ -readonly fields: NodesFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Nodes. - * 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__NodesClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - workflow = {}>(args?: Prisma.Subset>): Prisma.Prisma__workflowClient, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - type = {}>(args?: Prisma.Subset>): Prisma.Prisma__AvailableNodesClient, 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 Nodes model - */ -export interface NodesFieldRefs { - readonly id: Prisma.FieldRef<"Nodes", 'String'> - readonly name: Prisma.FieldRef<"Nodes", 'String'> - readonly typeId: Prisma.FieldRef<"Nodes", 'String'> - readonly config: Prisma.FieldRef<"Nodes", 'Json'> - readonly position: Prisma.FieldRef<"Nodes", 'Int'> -} - - -// Custom InputTypes -/** - * Nodes findUnique - */ -export type NodesFindUniqueArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - /** - * Filter, which Nodes to fetch. - */ - where: Prisma.NodesWhereUniqueInput -} - -/** - * Nodes findUniqueOrThrow - */ -export type NodesFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - /** - * Filter, which Nodes to fetch. - */ - where: Prisma.NodesWhereUniqueInput -} - -/** - * Nodes findFirst - */ -export type NodesFindFirstArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - /** - * Filter, which Nodes to fetch. - */ - where?: Prisma.NodesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Nodes to fetch. - */ - orderBy?: Prisma.NodesOrderByWithRelationInput | Prisma.NodesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Nodes. - */ - cursor?: Prisma.NodesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Nodes 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` Nodes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Nodes. - */ - distinct?: Prisma.NodesScalarFieldEnum | Prisma.NodesScalarFieldEnum[] -} - -/** - * Nodes findFirstOrThrow - */ -export type NodesFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - /** - * Filter, which Nodes to fetch. - */ - where?: Prisma.NodesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Nodes to fetch. - */ - orderBy?: Prisma.NodesOrderByWithRelationInput | Prisma.NodesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Nodes. - */ - cursor?: Prisma.NodesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Nodes 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` Nodes. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Nodes. - */ - distinct?: Prisma.NodesScalarFieldEnum | Prisma.NodesScalarFieldEnum[] -} - -/** - * Nodes findMany - */ -export type NodesFindManyArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - /** - * Filter, which Nodes to fetch. - */ - where?: Prisma.NodesWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Nodes to fetch. - */ - orderBy?: Prisma.NodesOrderByWithRelationInput | Prisma.NodesOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Nodes. - */ - cursor?: Prisma.NodesWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Nodes 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` Nodes. - */ - skip?: number - distinct?: Prisma.NodesScalarFieldEnum | Prisma.NodesScalarFieldEnum[] -} - -/** - * Nodes create - */ -export type NodesCreateArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - /** - * The data needed to create a Nodes. - */ - data: Prisma.XOR -} - -/** - * Nodes createMany - */ -export type NodesCreateManyArgs = { - /** - * The data used to create many Nodes. - */ - data: Prisma.NodesCreateManyInput | Prisma.NodesCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * Nodes createManyAndReturn - */ -export type NodesCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * The data used to create many Nodes. - */ - data: Prisma.NodesCreateManyInput | Prisma.NodesCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesIncludeCreateManyAndReturn | null -} - -/** - * Nodes update - */ -export type NodesUpdateArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - /** - * The data needed to update a Nodes. - */ - data: Prisma.XOR - /** - * Choose, which Nodes to update. - */ - where: Prisma.NodesWhereUniqueInput -} - -/** - * Nodes updateMany - */ -export type NodesUpdateManyArgs = { - /** - * The data used to update Nodes. - */ - data: Prisma.XOR - /** - * Filter which Nodes to update - */ - where?: Prisma.NodesWhereInput - /** - * Limit how many Nodes to update. - */ - limit?: number -} - -/** - * Nodes updateManyAndReturn - */ -export type NodesUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * The data used to update Nodes. - */ - data: Prisma.XOR - /** - * Filter which Nodes to update - */ - where?: Prisma.NodesWhereInput - /** - * Limit how many Nodes to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesIncludeUpdateManyAndReturn | null -} - -/** - * Nodes upsert - */ -export type NodesUpsertArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - /** - * The filter to search for the Nodes to update in case it exists. - */ - where: Prisma.NodesWhereUniqueInput - /** - * In case the Nodes found by the `where` argument doesn't exist, create a new Nodes with this data. - */ - create: Prisma.XOR - /** - * In case the Nodes was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Nodes delete - */ -export type NodesDeleteArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null - /** - * Filter which Nodes to delete. - */ - where: Prisma.NodesWhereUniqueInput -} - -/** - * Nodes deleteMany - */ -export type NodesDeleteManyArgs = { - /** - * Filter which Nodes to delete - */ - where?: Prisma.NodesWhereInput - /** - * Limit how many Nodes to delete. - */ - limit?: number -} - -/** - * Nodes.workflow - */ -export type Nodes$workflowArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - where?: Prisma.workflowWhereInput -} - -/** - * Nodes without action - */ -export type NodesDefaultArgs = { - /** - * Select specific fields to fetch from the Nodes - */ - select?: Prisma.NodesSelect | null - /** - * Omit specific fields from the Nodes - */ - omit?: Prisma.NodesOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.NodesInclude | null -} diff --git a/packages/db/src/generated/models/Triggers.ts b/packages/db/src/generated/models/Triggers.ts deleted file mode 100644 index 69c3143..0000000 --- a/packages/db/src/generated/models/Triggers.ts +++ /dev/null @@ -1,1396 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `Triggers` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/library" -import type * as $Enums from "../enums.js" -import type * as Prisma from "../internal/prismaNamespace.js" - -/** - * Model Triggers - * - */ -export type TriggersModel = runtime.Types.Result.DefaultSelection - -export type AggregateTriggers = { - _count: TriggersCountAggregateOutputType | null - _min: TriggersMinAggregateOutputType | null - _max: TriggersMaxAggregateOutputType | null -} - -export type TriggersMinAggregateOutputType = { - id: string | null - name: string | null - typeID: string | null -} - -export type TriggersMaxAggregateOutputType = { - id: string | null - name: string | null - typeID: string | null -} - -export type TriggersCountAggregateOutputType = { - id: number - name: number - typeID: number - config: number - _all: number -} - - -export type TriggersMinAggregateInputType = { - id?: true - name?: true - typeID?: true -} - -export type TriggersMaxAggregateInputType = { - id?: true - name?: true - typeID?: true -} - -export type TriggersCountAggregateInputType = { - id?: true - name?: true - typeID?: true - config?: true - _all?: true -} - -export type TriggersAggregateArgs = { - /** - * Filter which Triggers to aggregate. - */ - where?: Prisma.TriggersWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Triggers to fetch. - */ - orderBy?: Prisma.TriggersOrderByWithRelationInput | Prisma.TriggersOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.TriggersWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Triggers 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` Triggers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Triggers - **/ - _count?: true | TriggersCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: TriggersMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: TriggersMaxAggregateInputType -} - -export type GetTriggersAggregateType = { - [P in keyof T & keyof AggregateTriggers]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type TriggersGroupByArgs = { - where?: Prisma.TriggersWhereInput - orderBy?: Prisma.TriggersOrderByWithAggregationInput | Prisma.TriggersOrderByWithAggregationInput[] - by: Prisma.TriggersScalarFieldEnum[] | Prisma.TriggersScalarFieldEnum - having?: Prisma.TriggersScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: TriggersCountAggregateInputType | true - _min?: TriggersMinAggregateInputType - _max?: TriggersMaxAggregateInputType -} - -export type TriggersGroupByOutputType = { - id: string - name: string - typeID: string - config: runtime.JsonValue - _count: TriggersCountAggregateOutputType | null - _min: TriggersMinAggregateOutputType | null - _max: TriggersMaxAggregateOutputType | null -} - -type GetTriggersGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof TriggersGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type TriggersWhereInput = { - AND?: Prisma.TriggersWhereInput | Prisma.TriggersWhereInput[] - OR?: Prisma.TriggersWhereInput[] - NOT?: Prisma.TriggersWhereInput | Prisma.TriggersWhereInput[] - id?: Prisma.StringFilter<"Triggers"> | string - name?: Prisma.StringFilter<"Triggers"> | string - typeID?: Prisma.StringFilter<"Triggers"> | string - config?: Prisma.JsonFilter<"Triggers"> - type?: Prisma.XOR - workflow?: Prisma.XOR | null -} - -export type TriggersOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeID?: Prisma.SortOrder - config?: Prisma.SortOrder - type?: Prisma.AvailableTriggersOrderByWithRelationInput - workflow?: Prisma.workflowOrderByWithRelationInput -} - -export type TriggersWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.TriggersWhereInput | Prisma.TriggersWhereInput[] - OR?: Prisma.TriggersWhereInput[] - NOT?: Prisma.TriggersWhereInput | Prisma.TriggersWhereInput[] - name?: Prisma.StringFilter<"Triggers"> | string - typeID?: Prisma.StringFilter<"Triggers"> | string - config?: Prisma.JsonFilter<"Triggers"> - type?: Prisma.XOR - workflow?: Prisma.XOR | null -}, "id"> - -export type TriggersOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeID?: Prisma.SortOrder - config?: Prisma.SortOrder - _count?: Prisma.TriggersCountOrderByAggregateInput - _max?: Prisma.TriggersMaxOrderByAggregateInput - _min?: Prisma.TriggersMinOrderByAggregateInput -} - -export type TriggersScalarWhereWithAggregatesInput = { - AND?: Prisma.TriggersScalarWhereWithAggregatesInput | Prisma.TriggersScalarWhereWithAggregatesInput[] - OR?: Prisma.TriggersScalarWhereWithAggregatesInput[] - NOT?: Prisma.TriggersScalarWhereWithAggregatesInput | Prisma.TriggersScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Triggers"> | string - name?: Prisma.StringWithAggregatesFilter<"Triggers"> | string - typeID?: Prisma.StringWithAggregatesFilter<"Triggers"> | string - config?: Prisma.JsonWithAggregatesFilter<"Triggers"> -} - -export type TriggersCreateInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - type: Prisma.AvailableTriggersCreateNestedOneWithoutTriggerInput - workflow?: Prisma.workflowCreateNestedOneWithoutTriggerInput -} - -export type TriggersUncheckedCreateInput = { - id?: string - name: string - typeID: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - workflow?: Prisma.workflowUncheckedCreateNestedOneWithoutTriggerInput -} - -export type TriggersUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - type?: Prisma.AvailableTriggersUpdateOneRequiredWithoutTriggerNestedInput - workflow?: Prisma.workflowUpdateOneWithoutTriggerNestedInput -} - -export type TriggersUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeID?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - workflow?: Prisma.workflowUncheckedUpdateOneWithoutTriggerNestedInput -} - -export type TriggersCreateManyInput = { - id?: string - name: string - typeID: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type TriggersUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type TriggersUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeID?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type TriggersScalarRelationFilter = { - is?: Prisma.TriggersWhereInput - isNot?: Prisma.TriggersWhereInput -} - -export type TriggersCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeID?: Prisma.SortOrder - config?: Prisma.SortOrder -} - -export type TriggersMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeID?: Prisma.SortOrder -} - -export type TriggersMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - typeID?: Prisma.SortOrder -} - -export type TriggersListRelationFilter = { - every?: Prisma.TriggersWhereInput - some?: Prisma.TriggersWhereInput - none?: Prisma.TriggersWhereInput -} - -export type TriggersOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type TriggersCreateNestedOneWithoutWorkflowInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TriggersCreateOrConnectWithoutWorkflowInput - connect?: Prisma.TriggersWhereUniqueInput -} - -export type TriggersUpdateOneRequiredWithoutWorkflowNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.TriggersCreateOrConnectWithoutWorkflowInput - upsert?: Prisma.TriggersUpsertWithoutWorkflowInput - connect?: Prisma.TriggersWhereUniqueInput - update?: Prisma.XOR, Prisma.TriggersUncheckedUpdateWithoutWorkflowInput> -} - -export type TriggersCreateNestedManyWithoutTypeInput = { - create?: Prisma.XOR | Prisma.TriggersCreateWithoutTypeInput[] | Prisma.TriggersUncheckedCreateWithoutTypeInput[] - connectOrCreate?: Prisma.TriggersCreateOrConnectWithoutTypeInput | Prisma.TriggersCreateOrConnectWithoutTypeInput[] - createMany?: Prisma.TriggersCreateManyTypeInputEnvelope - connect?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] -} - -export type TriggersUncheckedCreateNestedManyWithoutTypeInput = { - create?: Prisma.XOR | Prisma.TriggersCreateWithoutTypeInput[] | Prisma.TriggersUncheckedCreateWithoutTypeInput[] - connectOrCreate?: Prisma.TriggersCreateOrConnectWithoutTypeInput | Prisma.TriggersCreateOrConnectWithoutTypeInput[] - createMany?: Prisma.TriggersCreateManyTypeInputEnvelope - connect?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] -} - -export type TriggersUpdateManyWithoutTypeNestedInput = { - create?: Prisma.XOR | Prisma.TriggersCreateWithoutTypeInput[] | Prisma.TriggersUncheckedCreateWithoutTypeInput[] - connectOrCreate?: Prisma.TriggersCreateOrConnectWithoutTypeInput | Prisma.TriggersCreateOrConnectWithoutTypeInput[] - upsert?: Prisma.TriggersUpsertWithWhereUniqueWithoutTypeInput | Prisma.TriggersUpsertWithWhereUniqueWithoutTypeInput[] - createMany?: Prisma.TriggersCreateManyTypeInputEnvelope - set?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] - disconnect?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] - delete?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] - connect?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] - update?: Prisma.TriggersUpdateWithWhereUniqueWithoutTypeInput | Prisma.TriggersUpdateWithWhereUniqueWithoutTypeInput[] - updateMany?: Prisma.TriggersUpdateManyWithWhereWithoutTypeInput | Prisma.TriggersUpdateManyWithWhereWithoutTypeInput[] - deleteMany?: Prisma.TriggersScalarWhereInput | Prisma.TriggersScalarWhereInput[] -} - -export type TriggersUncheckedUpdateManyWithoutTypeNestedInput = { - create?: Prisma.XOR | Prisma.TriggersCreateWithoutTypeInput[] | Prisma.TriggersUncheckedCreateWithoutTypeInput[] - connectOrCreate?: Prisma.TriggersCreateOrConnectWithoutTypeInput | Prisma.TriggersCreateOrConnectWithoutTypeInput[] - upsert?: Prisma.TriggersUpsertWithWhereUniqueWithoutTypeInput | Prisma.TriggersUpsertWithWhereUniqueWithoutTypeInput[] - createMany?: Prisma.TriggersCreateManyTypeInputEnvelope - set?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] - disconnect?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] - delete?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] - connect?: Prisma.TriggersWhereUniqueInput | Prisma.TriggersWhereUniqueInput[] - update?: Prisma.TriggersUpdateWithWhereUniqueWithoutTypeInput | Prisma.TriggersUpdateWithWhereUniqueWithoutTypeInput[] - updateMany?: Prisma.TriggersUpdateManyWithWhereWithoutTypeInput | Prisma.TriggersUpdateManyWithWhereWithoutTypeInput[] - deleteMany?: Prisma.TriggersScalarWhereInput | Prisma.TriggersScalarWhereInput[] -} - -export type TriggersCreateWithoutWorkflowInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - type: Prisma.AvailableTriggersCreateNestedOneWithoutTriggerInput -} - -export type TriggersUncheckedCreateWithoutWorkflowInput = { - id?: string - name: string - typeID: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type TriggersCreateOrConnectWithoutWorkflowInput = { - where: Prisma.TriggersWhereUniqueInput - create: Prisma.XOR -} - -export type TriggersUpsertWithoutWorkflowInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.TriggersWhereInput -} - -export type TriggersUpdateToOneWithWhereWithoutWorkflowInput = { - where?: Prisma.TriggersWhereInput - data: Prisma.XOR -} - -export type TriggersUpdateWithoutWorkflowInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - type?: Prisma.AvailableTriggersUpdateOneRequiredWithoutTriggerNestedInput -} - -export type TriggersUncheckedUpdateWithoutWorkflowInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - typeID?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type TriggersCreateWithoutTypeInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - workflow?: Prisma.workflowCreateNestedOneWithoutTriggerInput -} - -export type TriggersUncheckedCreateWithoutTypeInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - workflow?: Prisma.workflowUncheckedCreateNestedOneWithoutTriggerInput -} - -export type TriggersCreateOrConnectWithoutTypeInput = { - where: Prisma.TriggersWhereUniqueInput - create: Prisma.XOR -} - -export type TriggersCreateManyTypeInputEnvelope = { - data: Prisma.TriggersCreateManyTypeInput | Prisma.TriggersCreateManyTypeInput[] - skipDuplicates?: boolean -} - -export type TriggersUpsertWithWhereUniqueWithoutTypeInput = { - where: Prisma.TriggersWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TriggersUpdateWithWhereUniqueWithoutTypeInput = { - where: Prisma.TriggersWhereUniqueInput - data: Prisma.XOR -} - -export type TriggersUpdateManyWithWhereWithoutTypeInput = { - where: Prisma.TriggersScalarWhereInput - data: Prisma.XOR -} - -export type TriggersScalarWhereInput = { - AND?: Prisma.TriggersScalarWhereInput | Prisma.TriggersScalarWhereInput[] - OR?: Prisma.TriggersScalarWhereInput[] - NOT?: Prisma.TriggersScalarWhereInput | Prisma.TriggersScalarWhereInput[] - id?: Prisma.StringFilter<"Triggers"> | string - name?: Prisma.StringFilter<"Triggers"> | string - typeID?: Prisma.StringFilter<"Triggers"> | string - config?: Prisma.JsonFilter<"Triggers"> -} - -export type TriggersCreateManyTypeInput = { - id?: string - name: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type TriggersUpdateWithoutTypeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - workflow?: Prisma.workflowUpdateOneWithoutTriggerNestedInput -} - -export type TriggersUncheckedUpdateWithoutTypeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - workflow?: Prisma.workflowUncheckedUpdateOneWithoutTriggerNestedInput -} - -export type TriggersUncheckedUpdateManyWithoutTypeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - - - -export type TriggersSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - typeID?: boolean - config?: boolean - type?: boolean | Prisma.AvailableTriggersDefaultArgs - workflow?: boolean | Prisma.Triggers$workflowArgs -}, ExtArgs["result"]["triggers"]> - -export type TriggersSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - typeID?: boolean - config?: boolean - type?: boolean | Prisma.AvailableTriggersDefaultArgs -}, ExtArgs["result"]["triggers"]> - -export type TriggersSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - typeID?: boolean - config?: boolean - type?: boolean | Prisma.AvailableTriggersDefaultArgs -}, ExtArgs["result"]["triggers"]> - -export type TriggersSelectScalar = { - id?: boolean - name?: boolean - typeID?: boolean - config?: boolean -} - -export type TriggersOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "typeID" | "config", ExtArgs["result"]["triggers"]> -export type TriggersInclude = { - type?: boolean | Prisma.AvailableTriggersDefaultArgs - workflow?: boolean | Prisma.Triggers$workflowArgs -} -export type TriggersIncludeCreateManyAndReturn = { - type?: boolean | Prisma.AvailableTriggersDefaultArgs -} -export type TriggersIncludeUpdateManyAndReturn = { - type?: boolean | Prisma.AvailableTriggersDefaultArgs -} - -export type $TriggersPayload = { - name: "Triggers" - objects: { - type: Prisma.$AvailableTriggersPayload - workflow: Prisma.$workflowPayload | null - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - name: string - typeID: string - config: runtime.JsonValue - }, ExtArgs["result"]["triggers"]> - composites: {} -} - -export type TriggersGetPayload = runtime.Types.Result.GetResult - -export type TriggersCountArgs = - Omit & { - select?: TriggersCountAggregateInputType | true - } - -export interface TriggersDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Triggers'], meta: { name: 'Triggers' } } - /** - * Find zero or one Triggers that matches the filter. - * @param {TriggersFindUniqueArgs} args - Arguments to find a Triggers - * @example - * // Get one Triggers - * const triggers = await prisma.triggers.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TriggersClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Triggers that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {TriggersFindUniqueOrThrowArgs} args - Arguments to find a Triggers - * @example - * // Get one Triggers - * const triggers = await prisma.triggers.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TriggersClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Triggers 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 {TriggersFindFirstArgs} args - Arguments to find a Triggers - * @example - * // Get one Triggers - * const triggers = await prisma.triggers.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TriggersClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Triggers 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 {TriggersFindFirstOrThrowArgs} args - Arguments to find a Triggers - * @example - * // Get one Triggers - * const triggers = await prisma.triggers.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TriggersClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Triggers 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 {TriggersFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Triggers - * const triggers = await prisma.triggers.findMany() - * - * // Get first 10 Triggers - * const triggers = await prisma.triggers.findMany({ take: 10 }) - * - * // Only select the `id` - * const triggersWithIdOnly = await prisma.triggers.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Triggers. - * @param {TriggersCreateArgs} args - Arguments to create a Triggers. - * @example - * // Create one Triggers - * const Triggers = await prisma.triggers.create({ - * data: { - * // ... data to create a Triggers - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__TriggersClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Triggers. - * @param {TriggersCreateManyArgs} args - Arguments to create many Triggers. - * @example - * // Create many Triggers - * const triggers = await prisma.triggers.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Triggers and returns the data saved in the database. - * @param {TriggersCreateManyAndReturnArgs} args - Arguments to create many Triggers. - * @example - * // Create many Triggers - * const triggers = await prisma.triggers.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Triggers and only return the `id` - * const triggersWithIdOnly = await prisma.triggers.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 Triggers. - * @param {TriggersDeleteArgs} args - Arguments to delete one Triggers. - * @example - * // Delete one Triggers - * const Triggers = await prisma.triggers.delete({ - * where: { - * // ... filter to delete one Triggers - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__TriggersClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Triggers. - * @param {TriggersUpdateArgs} args - Arguments to update one Triggers. - * @example - * // Update one Triggers - * const triggers = await prisma.triggers.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__TriggersClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Triggers. - * @param {TriggersDeleteManyArgs} args - Arguments to filter Triggers to delete. - * @example - * // Delete a few Triggers - * const { count } = await prisma.triggers.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Triggers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TriggersUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Triggers - * const triggers = await prisma.triggers.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Triggers and returns the data updated in the database. - * @param {TriggersUpdateManyAndReturnArgs} args - Arguments to update many Triggers. - * @example - * // Update many Triggers - * const triggers = await prisma.triggers.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Triggers and only return the `id` - * const triggersWithIdOnly = await prisma.triggers.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 Triggers. - * @param {TriggersUpsertArgs} args - Arguments to update or create a Triggers. - * @example - * // Update or create a Triggers - * const triggers = await prisma.triggers.upsert({ - * create: { - * // ... data to create a Triggers - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Triggers we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TriggersClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Triggers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TriggersCountArgs} args - Arguments to filter Triggers to count. - * @example - * // Count the number of Triggers - * const count = await prisma.triggers.count({ - * where: { - * // ... the filter for the Triggers 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 Triggers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TriggersAggregateArgs} 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 Triggers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TriggersGroupByArgs} 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 TriggersGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: TriggersGroupByArgs['orderBy'] } - : { orderBy?: TriggersGroupByArgs['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 ? GetTriggersGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Triggers model - */ -readonly fields: TriggersFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Triggers. - * 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__TriggersClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - type = {}>(args?: Prisma.Subset>): Prisma.Prisma__AvailableTriggersClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - workflow = {}>(args?: Prisma.Subset>): Prisma.Prisma__workflowClient, 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 Triggers model - */ -export interface TriggersFieldRefs { - readonly id: Prisma.FieldRef<"Triggers", 'String'> - readonly name: Prisma.FieldRef<"Triggers", 'String'> - readonly typeID: Prisma.FieldRef<"Triggers", 'String'> - readonly config: Prisma.FieldRef<"Triggers", 'Json'> -} - - -// Custom InputTypes -/** - * Triggers findUnique - */ -export type TriggersFindUniqueArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - /** - * Filter, which Triggers to fetch. - */ - where: Prisma.TriggersWhereUniqueInput -} - -/** - * Triggers findUniqueOrThrow - */ -export type TriggersFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - /** - * Filter, which Triggers to fetch. - */ - where: Prisma.TriggersWhereUniqueInput -} - -/** - * Triggers findFirst - */ -export type TriggersFindFirstArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - /** - * Filter, which Triggers to fetch. - */ - where?: Prisma.TriggersWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Triggers to fetch. - */ - orderBy?: Prisma.TriggersOrderByWithRelationInput | Prisma.TriggersOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Triggers. - */ - cursor?: Prisma.TriggersWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Triggers 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` Triggers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Triggers. - */ - distinct?: Prisma.TriggersScalarFieldEnum | Prisma.TriggersScalarFieldEnum[] -} - -/** - * Triggers findFirstOrThrow - */ -export type TriggersFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - /** - * Filter, which Triggers to fetch. - */ - where?: Prisma.TriggersWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Triggers to fetch. - */ - orderBy?: Prisma.TriggersOrderByWithRelationInput | Prisma.TriggersOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Triggers. - */ - cursor?: Prisma.TriggersWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Triggers 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` Triggers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Triggers. - */ - distinct?: Prisma.TriggersScalarFieldEnum | Prisma.TriggersScalarFieldEnum[] -} - -/** - * Triggers findMany - */ -export type TriggersFindManyArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - /** - * Filter, which Triggers to fetch. - */ - where?: Prisma.TriggersWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Triggers to fetch. - */ - orderBy?: Prisma.TriggersOrderByWithRelationInput | Prisma.TriggersOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Triggers. - */ - cursor?: Prisma.TriggersWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Triggers 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` Triggers. - */ - skip?: number - distinct?: Prisma.TriggersScalarFieldEnum | Prisma.TriggersScalarFieldEnum[] -} - -/** - * Triggers create - */ -export type TriggersCreateArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - /** - * The data needed to create a Triggers. - */ - data: Prisma.XOR -} - -/** - * Triggers createMany - */ -export type TriggersCreateManyArgs = { - /** - * The data used to create many Triggers. - */ - data: Prisma.TriggersCreateManyInput | Prisma.TriggersCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * Triggers createManyAndReturn - */ -export type TriggersCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * The data used to create many Triggers. - */ - data: Prisma.TriggersCreateManyInput | Prisma.TriggersCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersIncludeCreateManyAndReturn | null -} - -/** - * Triggers update - */ -export type TriggersUpdateArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - /** - * The data needed to update a Triggers. - */ - data: Prisma.XOR - /** - * Choose, which Triggers to update. - */ - where: Prisma.TriggersWhereUniqueInput -} - -/** - * Triggers updateMany - */ -export type TriggersUpdateManyArgs = { - /** - * The data used to update Triggers. - */ - data: Prisma.XOR - /** - * Filter which Triggers to update - */ - where?: Prisma.TriggersWhereInput - /** - * Limit how many Triggers to update. - */ - limit?: number -} - -/** - * Triggers updateManyAndReturn - */ -export type TriggersUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * The data used to update Triggers. - */ - data: Prisma.XOR - /** - * Filter which Triggers to update - */ - where?: Prisma.TriggersWhereInput - /** - * Limit how many Triggers to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersIncludeUpdateManyAndReturn | null -} - -/** - * Triggers upsert - */ -export type TriggersUpsertArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - /** - * The filter to search for the Triggers to update in case it exists. - */ - where: Prisma.TriggersWhereUniqueInput - /** - * In case the Triggers found by the `where` argument doesn't exist, create a new Triggers with this data. - */ - create: Prisma.XOR - /** - * In case the Triggers was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Triggers delete - */ -export type TriggersDeleteArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null - /** - * Filter which Triggers to delete. - */ - where: Prisma.TriggersWhereUniqueInput -} - -/** - * Triggers deleteMany - */ -export type TriggersDeleteManyArgs = { - /** - * Filter which Triggers to delete - */ - where?: Prisma.TriggersWhereInput - /** - * Limit how many Triggers to delete. - */ - limit?: number -} - -/** - * Triggers.workflow - */ -export type Triggers$workflowArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - where?: Prisma.workflowWhereInput -} - -/** - * Triggers without action - */ -export type TriggersDefaultArgs = { - /** - * Select specific fields to fetch from the Triggers - */ - select?: Prisma.TriggersSelect | null - /** - * Omit specific fields from the Triggers - */ - omit?: Prisma.TriggersOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TriggersInclude | null -} diff --git a/packages/db/src/generated/models/User.ts b/packages/db/src/generated/models/User.ts deleted file mode 100644 index bd675ed..0000000 --- a/packages/db/src/generated/models/User.ts +++ /dev/null @@ -1,1366 +0,0 @@ - -/* !!! 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/library" -import type * as $Enums from "../enums.js" -import type * as Prisma from "../internal/prismaNamespace.js" - -/** - * Model User - * - */ -export type UserModel = runtime.Types.Result.DefaultSelection - -export type AggregateUser = { - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} - -export type UserMinAggregateOutputType = { - id: string | null - name: string | null - email: string | null - password: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type UserMaxAggregateOutputType = { - id: string | null - name: string | null - email: string | null - password: string | null - createdAt: Date | null - updatedAt: Date | null -} - -export type UserCountAggregateOutputType = { - id: number - name: number - email: number - password: number - createdAt: number - updatedAt: number - _all: number -} - - -export type UserMinAggregateInputType = { - id?: true - name?: true - email?: true - password?: true - createdAt?: true - updatedAt?: true -} - -export type UserMaxAggregateInputType = { - id?: true - name?: true - email?: true - password?: true - createdAt?: true - updatedAt?: true -} - -export type UserCountAggregateInputType = { - id?: true - name?: true - email?: true - password?: true - createdAt?: true - updatedAt?: 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 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 - _min?: UserMinAggregateInputType - _max?: UserMaxAggregateInputType -} - -export type UserGroupByOutputType = { - id: string - name: string | null - email: string - password: string - createdAt: Date - updatedAt: Date - _count: UserCountAggregateOutputType | 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.StringFilter<"User"> | string - name?: Prisma.StringNullableFilter<"User"> | string | null - email?: Prisma.StringFilter<"User"> | string - password?: Prisma.StringFilter<"User"> | string - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string - workflow?: Prisma.WorkflowListRelationFilter -} - -export type UserOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - email?: Prisma.SortOrder - password?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - workflow?: Prisma.workflowOrderByRelationAggregateInput -} - -export type UserWhereUniqueInput = Prisma.AtLeast<{ - id?: string - email?: string - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - name?: Prisma.StringNullableFilter<"User"> | string | null - password?: Prisma.StringFilter<"User"> | string - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"User"> | Date | string - workflow?: Prisma.WorkflowListRelationFilter -}, "id" | "email"> - -export type UserOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrderInput | Prisma.SortOrder - email?: Prisma.SortOrder - password?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - _count?: Prisma.UserCountOrderByAggregateInput - _max?: Prisma.UserMaxOrderByAggregateInput - _min?: Prisma.UserMinOrderByAggregateInput -} - -export type UserScalarWhereWithAggregatesInput = { - AND?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - OR?: Prisma.UserScalarWhereWithAggregatesInput[] - NOT?: Prisma.UserScalarWhereWithAggregatesInput | Prisma.UserScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"User"> | string - name?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - email?: Prisma.StringWithAggregatesFilter<"User"> | string - password?: Prisma.StringWithAggregatesFilter<"User"> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string -} - -export type UserCreateInput = { - id?: string - name?: string | null - email: string - password: string - createdAt?: Date | string - updatedAt?: Date | string - workflow?: Prisma.workflowCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateInput = { - id?: string - name?: string | null - email: string - password: string - createdAt?: Date | string - updatedAt?: Date | string - workflow?: Prisma.workflowUncheckedCreateNestedManyWithoutUserInput -} - -export type UserUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - password?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - workflow?: Prisma.workflowUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - password?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - workflow?: Prisma.workflowUncheckedUpdateManyWithoutUserNestedInput -} - -export type UserCreateManyInput = { - id?: string - name?: string | null - email: string - password: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type UserUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - password?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type UserUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - password?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type UserCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - password?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type UserMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - password?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type UserMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - email?: Prisma.SortOrder - password?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder -} - -export type UserScalarRelationFilter = { - is?: Prisma.UserWhereInput - isNot?: Prisma.UserWhereInput -} - -export type StringFieldUpdateOperationsInput = { - set?: string -} - -export type NullableStringFieldUpdateOperationsInput = { - set?: string | null -} - -export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string -} - -export type UserCreateNestedOneWithoutWorkflowInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutWorkflowInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutWorkflowNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutWorkflowInput - upsert?: Prisma.UserUpsertWithoutWorkflowInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutWorkflowInput> -} - -export type UserCreateWithoutWorkflowInput = { - id?: string - name?: string | null - email: string - password: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type UserUncheckedCreateWithoutWorkflowInput = { - id?: string - name?: string | null - email: string - password: string - createdAt?: Date | string - updatedAt?: Date | string -} - -export type UserCreateOrConnectWithoutWorkflowInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutWorkflowInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutWorkflowInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutWorkflowInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - password?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type UserUncheckedUpdateWithoutWorkflowInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - email?: Prisma.StringFieldUpdateOperationsInput | string - password?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - -/** - * Count Type UserCountOutputType - */ - -export type UserCountOutputType = { - workflow: number -} - -export type UserCountOutputTypeSelect = { - workflow?: boolean | UserCountOutputTypeCountWorkflowArgs -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the UserCountOutputType - */ - select?: Prisma.UserCountOutputTypeSelect | null -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountWorkflowArgs = { - where?: Prisma.workflowWhereInput -} - - -export type UserSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - password?: boolean - createdAt?: boolean - updatedAt?: boolean - workflow?: boolean | Prisma.User$workflowArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -}, ExtArgs["result"]["user"]> - -export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - password?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - email?: boolean - password?: boolean - createdAt?: boolean - updatedAt?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectScalar = { - id?: boolean - name?: boolean - email?: boolean - password?: boolean - createdAt?: boolean - updatedAt?: boolean -} - -export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "email" | "password" | "createdAt" | "updatedAt", ExtArgs["result"]["user"]> -export type UserInclude = { - workflow?: boolean | Prisma.User$workflowArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -} -export type UserIncludeCreateManyAndReturn = {} -export type UserIncludeUpdateManyAndReturn = {} - -export type $UserPayload = { - name: "User" - objects: { - workflow: Prisma.$workflowPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - name: string | null - email: string - password: string - createdAt: Date - updatedAt: Date - }, 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" - workflow = {}>(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 User model - */ -export interface UserFieldRefs { - readonly id: Prisma.FieldRef<"User", 'String'> - readonly name: Prisma.FieldRef<"User", 'String'> - readonly email: Prisma.FieldRef<"User", 'String'> - readonly password: Prisma.FieldRef<"User", 'String'> - readonly createdAt: Prisma.FieldRef<"User", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"User", 'DateTime'> -} - - -// 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | 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[] - skipDuplicates?: boolean -} - -/** - * 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[] - skipDuplicates?: boolean -} - -/** - * 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | 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.workflow - */ -export type User$workflowArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - where?: Prisma.workflowWhereInput - orderBy?: Prisma.workflowOrderByWithRelationInput | Prisma.workflowOrderByWithRelationInput[] - cursor?: Prisma.workflowWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.WorkflowScalarFieldEnum | Prisma.WorkflowScalarFieldEnum[] -} - -/** - * 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 - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.UserInclude | null -} diff --git a/packages/db/src/generated/models/workflow.ts b/packages/db/src/generated/models/workflow.ts deleted file mode 100644 index 17251ff..0000000 --- a/packages/db/src/generated/models/workflow.ts +++ /dev/null @@ -1,1730 +0,0 @@ - -/* !!! This is code generated by Prisma. Do not edit directly. !!! */ -/* eslint-disable */ -// biome-ignore-all lint: generated file -// @ts-nocheck -/* - * This file exports the `workflow` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/library" -import type * as $Enums from "../enums.js" -import type * as Prisma from "../internal/prismaNamespace.js" - -/** - * Model workflow - * - */ -export type workflowModel = runtime.Types.Result.DefaultSelection - -export type AggregateWorkflow = { - _count: WorkflowCountAggregateOutputType | null - _min: WorkflowMinAggregateOutputType | null - _max: WorkflowMaxAggregateOutputType | null -} - -export type WorkflowMinAggregateOutputType = { - id: string | null - name: string | null - createdAt: Date | null - updateAt: Date | null - description: string | null - status: $Enums.WorkFlowStatus | null - userId: string | null - TriggerId: string | null - NodeId: string | null -} - -export type WorkflowMaxAggregateOutputType = { - id: string | null - name: string | null - createdAt: Date | null - updateAt: Date | null - description: string | null - status: $Enums.WorkFlowStatus | null - userId: string | null - TriggerId: string | null - NodeId: string | null -} - -export type WorkflowCountAggregateOutputType = { - id: number - name: number - createdAt: number - updateAt: number - description: number - status: number - userId: number - config: number - TriggerId: number - NodeId: number - _all: number -} - - -export type WorkflowMinAggregateInputType = { - id?: true - name?: true - createdAt?: true - updateAt?: true - description?: true - status?: true - userId?: true - TriggerId?: true - NodeId?: true -} - -export type WorkflowMaxAggregateInputType = { - id?: true - name?: true - createdAt?: true - updateAt?: true - description?: true - status?: true - userId?: true - TriggerId?: true - NodeId?: true -} - -export type WorkflowCountAggregateInputType = { - id?: true - name?: true - createdAt?: true - updateAt?: true - description?: true - status?: true - userId?: true - config?: true - TriggerId?: true - NodeId?: true - _all?: true -} - -export type WorkflowAggregateArgs = { - /** - * Filter which workflow to aggregate. - */ - where?: Prisma.workflowWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of workflows to fetch. - */ - orderBy?: Prisma.workflowOrderByWithRelationInput | Prisma.workflowOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.workflowWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` workflows 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` workflows. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned workflows - **/ - _count?: true | WorkflowCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: WorkflowMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: WorkflowMaxAggregateInputType -} - -export type GetWorkflowAggregateType = { - [P in keyof T & keyof AggregateWorkflow]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type workflowGroupByArgs = { - where?: Prisma.workflowWhereInput - orderBy?: Prisma.workflowOrderByWithAggregationInput | Prisma.workflowOrderByWithAggregationInput[] - by: Prisma.WorkflowScalarFieldEnum[] | Prisma.WorkflowScalarFieldEnum - having?: Prisma.workflowScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: WorkflowCountAggregateInputType | true - _min?: WorkflowMinAggregateInputType - _max?: WorkflowMaxAggregateInputType -} - -export type WorkflowGroupByOutputType = { - id: string - name: string - createdAt: Date - updateAt: Date - description: string - status: $Enums.WorkFlowStatus - userId: string - config: runtime.JsonValue - TriggerId: string - NodeId: string - _count: WorkflowCountAggregateOutputType | null - _min: WorkflowMinAggregateOutputType | null - _max: WorkflowMaxAggregateOutputType | null -} - -type GetWorkflowGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof WorkflowGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type workflowWhereInput = { - AND?: Prisma.workflowWhereInput | Prisma.workflowWhereInput[] - OR?: Prisma.workflowWhereInput[] - NOT?: Prisma.workflowWhereInput | Prisma.workflowWhereInput[] - id?: Prisma.StringFilter<"workflow"> | string - name?: Prisma.StringFilter<"workflow"> | string - createdAt?: Prisma.DateTimeFilter<"workflow"> | Date | string - updateAt?: Prisma.DateTimeFilter<"workflow"> | Date | string - description?: Prisma.StringFilter<"workflow"> | string - status?: Prisma.EnumWorkFlowStatusFilter<"workflow"> | $Enums.WorkFlowStatus - userId?: Prisma.StringFilter<"workflow"> | string - config?: Prisma.JsonFilter<"workflow"> - TriggerId?: Prisma.StringFilter<"workflow"> | string - NodeId?: Prisma.StringFilter<"workflow"> | string - user?: Prisma.XOR - Trigger?: Prisma.XOR - Node?: Prisma.XOR -} - -export type workflowOrderByWithRelationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updateAt?: Prisma.SortOrder - description?: Prisma.SortOrder - status?: Prisma.SortOrder - userId?: Prisma.SortOrder - config?: Prisma.SortOrder - TriggerId?: Prisma.SortOrder - NodeId?: Prisma.SortOrder - user?: Prisma.UserOrderByWithRelationInput - Trigger?: Prisma.TriggersOrderByWithRelationInput - Node?: Prisma.NodesOrderByWithRelationInput -} - -export type workflowWhereUniqueInput = Prisma.AtLeast<{ - id?: string - TriggerId?: string - NodeId?: string - AND?: Prisma.workflowWhereInput | Prisma.workflowWhereInput[] - OR?: Prisma.workflowWhereInput[] - NOT?: Prisma.workflowWhereInput | Prisma.workflowWhereInput[] - name?: Prisma.StringFilter<"workflow"> | string - createdAt?: Prisma.DateTimeFilter<"workflow"> | Date | string - updateAt?: Prisma.DateTimeFilter<"workflow"> | Date | string - description?: Prisma.StringFilter<"workflow"> | string - status?: Prisma.EnumWorkFlowStatusFilter<"workflow"> | $Enums.WorkFlowStatus - userId?: Prisma.StringFilter<"workflow"> | string - config?: Prisma.JsonFilter<"workflow"> - user?: Prisma.XOR - Trigger?: Prisma.XOR - Node?: Prisma.XOR -}, "id" | "TriggerId" | "NodeId"> - -export type workflowOrderByWithAggregationInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updateAt?: Prisma.SortOrder - description?: Prisma.SortOrder - status?: Prisma.SortOrder - userId?: Prisma.SortOrder - config?: Prisma.SortOrder - TriggerId?: Prisma.SortOrder - NodeId?: Prisma.SortOrder - _count?: Prisma.workflowCountOrderByAggregateInput - _max?: Prisma.workflowMaxOrderByAggregateInput - _min?: Prisma.workflowMinOrderByAggregateInput -} - -export type workflowScalarWhereWithAggregatesInput = { - AND?: Prisma.workflowScalarWhereWithAggregatesInput | Prisma.workflowScalarWhereWithAggregatesInput[] - OR?: Prisma.workflowScalarWhereWithAggregatesInput[] - NOT?: Prisma.workflowScalarWhereWithAggregatesInput | Prisma.workflowScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"workflow"> | string - name?: Prisma.StringWithAggregatesFilter<"workflow"> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<"workflow"> | Date | string - updateAt?: Prisma.DateTimeWithAggregatesFilter<"workflow"> | Date | string - description?: Prisma.StringWithAggregatesFilter<"workflow"> | string - status?: Prisma.EnumWorkFlowStatusWithAggregatesFilter<"workflow"> | $Enums.WorkFlowStatus - userId?: Prisma.StringWithAggregatesFilter<"workflow"> | string - config?: Prisma.JsonWithAggregatesFilter<"workflow"> - TriggerId?: Prisma.StringWithAggregatesFilter<"workflow"> | string - NodeId?: Prisma.StringWithAggregatesFilter<"workflow"> | string -} - -export type workflowCreateInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - user: Prisma.UserCreateNestedOneWithoutWorkflowInput - Trigger: Prisma.TriggersCreateNestedOneWithoutWorkflowInput - Node: Prisma.NodesCreateNestedOneWithoutWorkflowInput -} - -export type workflowUncheckedCreateInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - userId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId: string - NodeId: string -} - -export type workflowUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - user?: Prisma.UserUpdateOneRequiredWithoutWorkflowNestedInput - Trigger?: Prisma.TriggersUpdateOneRequiredWithoutWorkflowNestedInput - Node?: Prisma.NodesUpdateOneRequiredWithoutWorkflowNestedInput -} - -export type workflowUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - userId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId?: Prisma.StringFieldUpdateOperationsInput | string - NodeId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type workflowCreateManyInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - userId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId: string - NodeId: string -} - -export type workflowUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue -} - -export type workflowUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - userId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId?: Prisma.StringFieldUpdateOperationsInput | string - NodeId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type WorkflowListRelationFilter = { - every?: Prisma.workflowWhereInput - some?: Prisma.workflowWhereInput - none?: Prisma.workflowWhereInput -} - -export type workflowOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type workflowCountOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updateAt?: Prisma.SortOrder - description?: Prisma.SortOrder - status?: Prisma.SortOrder - userId?: Prisma.SortOrder - config?: Prisma.SortOrder - TriggerId?: Prisma.SortOrder - NodeId?: Prisma.SortOrder -} - -export type workflowMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updateAt?: Prisma.SortOrder - description?: Prisma.SortOrder - status?: Prisma.SortOrder - userId?: Prisma.SortOrder - TriggerId?: Prisma.SortOrder - NodeId?: Prisma.SortOrder -} - -export type workflowMinOrderByAggregateInput = { - id?: Prisma.SortOrder - name?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updateAt?: Prisma.SortOrder - description?: Prisma.SortOrder - status?: Prisma.SortOrder - userId?: Prisma.SortOrder - TriggerId?: Prisma.SortOrder - NodeId?: Prisma.SortOrder -} - -export type WorkflowNullableScalarRelationFilter = { - is?: Prisma.workflowWhereInput | null - isNot?: Prisma.workflowWhereInput | null -} - -export type workflowCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.workflowCreateWithoutUserInput[] | Prisma.workflowUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutUserInput | Prisma.workflowCreateOrConnectWithoutUserInput[] - createMany?: Prisma.workflowCreateManyUserInputEnvelope - connect?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] -} - -export type workflowUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.workflowCreateWithoutUserInput[] | Prisma.workflowUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutUserInput | Prisma.workflowCreateOrConnectWithoutUserInput[] - createMany?: Prisma.workflowCreateManyUserInputEnvelope - connect?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] -} - -export type workflowUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.workflowCreateWithoutUserInput[] | Prisma.workflowUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutUserInput | Prisma.workflowCreateOrConnectWithoutUserInput[] - upsert?: Prisma.workflowUpsertWithWhereUniqueWithoutUserInput | Prisma.workflowUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.workflowCreateManyUserInputEnvelope - set?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] - disconnect?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] - delete?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] - connect?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] - update?: Prisma.workflowUpdateWithWhereUniqueWithoutUserInput | Prisma.workflowUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.workflowUpdateManyWithWhereWithoutUserInput | Prisma.workflowUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.workflowScalarWhereInput | Prisma.workflowScalarWhereInput[] -} - -export type workflowUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.workflowCreateWithoutUserInput[] | Prisma.workflowUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutUserInput | Prisma.workflowCreateOrConnectWithoutUserInput[] - upsert?: Prisma.workflowUpsertWithWhereUniqueWithoutUserInput | Prisma.workflowUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.workflowCreateManyUserInputEnvelope - set?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] - disconnect?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] - delete?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] - connect?: Prisma.workflowWhereUniqueInput | Prisma.workflowWhereUniqueInput[] - update?: Prisma.workflowUpdateWithWhereUniqueWithoutUserInput | Prisma.workflowUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.workflowUpdateManyWithWhereWithoutUserInput | Prisma.workflowUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.workflowScalarWhereInput | Prisma.workflowScalarWhereInput[] -} - -export type EnumWorkFlowStatusFieldUpdateOperationsInput = { - set?: $Enums.WorkFlowStatus -} - -export type workflowCreateNestedOneWithoutTriggerInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutTriggerInput - connect?: Prisma.workflowWhereUniqueInput -} - -export type workflowUncheckedCreateNestedOneWithoutTriggerInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutTriggerInput - connect?: Prisma.workflowWhereUniqueInput -} - -export type workflowUpdateOneWithoutTriggerNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutTriggerInput - upsert?: Prisma.workflowUpsertWithoutTriggerInput - disconnect?: Prisma.workflowWhereInput | boolean - delete?: Prisma.workflowWhereInput | boolean - connect?: Prisma.workflowWhereUniqueInput - update?: Prisma.XOR, Prisma.workflowUncheckedUpdateWithoutTriggerInput> -} - -export type workflowUncheckedUpdateOneWithoutTriggerNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutTriggerInput - upsert?: Prisma.workflowUpsertWithoutTriggerInput - disconnect?: Prisma.workflowWhereInput | boolean - delete?: Prisma.workflowWhereInput | boolean - connect?: Prisma.workflowWhereUniqueInput - update?: Prisma.XOR, Prisma.workflowUncheckedUpdateWithoutTriggerInput> -} - -export type workflowCreateNestedOneWithoutNodeInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutNodeInput - connect?: Prisma.workflowWhereUniqueInput -} - -export type workflowUncheckedCreateNestedOneWithoutNodeInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutNodeInput - connect?: Prisma.workflowWhereUniqueInput -} - -export type workflowUpdateOneWithoutNodeNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutNodeInput - upsert?: Prisma.workflowUpsertWithoutNodeInput - disconnect?: Prisma.workflowWhereInput | boolean - delete?: Prisma.workflowWhereInput | boolean - connect?: Prisma.workflowWhereUniqueInput - update?: Prisma.XOR, Prisma.workflowUncheckedUpdateWithoutNodeInput> -} - -export type workflowUncheckedUpdateOneWithoutNodeNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.workflowCreateOrConnectWithoutNodeInput - upsert?: Prisma.workflowUpsertWithoutNodeInput - disconnect?: Prisma.workflowWhereInput | boolean - delete?: Prisma.workflowWhereInput | boolean - connect?: Prisma.workflowWhereUniqueInput - update?: Prisma.XOR, Prisma.workflowUncheckedUpdateWithoutNodeInput> -} - -export type workflowCreateWithoutUserInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - Trigger: Prisma.TriggersCreateNestedOneWithoutWorkflowInput - Node: Prisma.NodesCreateNestedOneWithoutWorkflowInput -} - -export type workflowUncheckedCreateWithoutUserInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId: string - NodeId: string -} - -export type workflowCreateOrConnectWithoutUserInput = { - where: Prisma.workflowWhereUniqueInput - create: Prisma.XOR -} - -export type workflowCreateManyUserInputEnvelope = { - data: Prisma.workflowCreateManyUserInput | Prisma.workflowCreateManyUserInput[] - skipDuplicates?: boolean -} - -export type workflowUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.workflowWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type workflowUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.workflowWhereUniqueInput - data: Prisma.XOR -} - -export type workflowUpdateManyWithWhereWithoutUserInput = { - where: Prisma.workflowScalarWhereInput - data: Prisma.XOR -} - -export type workflowScalarWhereInput = { - AND?: Prisma.workflowScalarWhereInput | Prisma.workflowScalarWhereInput[] - OR?: Prisma.workflowScalarWhereInput[] - NOT?: Prisma.workflowScalarWhereInput | Prisma.workflowScalarWhereInput[] - id?: Prisma.StringFilter<"workflow"> | string - name?: Prisma.StringFilter<"workflow"> | string - createdAt?: Prisma.DateTimeFilter<"workflow"> | Date | string - updateAt?: Prisma.DateTimeFilter<"workflow"> | Date | string - description?: Prisma.StringFilter<"workflow"> | string - status?: Prisma.EnumWorkFlowStatusFilter<"workflow"> | $Enums.WorkFlowStatus - userId?: Prisma.StringFilter<"workflow"> | string - config?: Prisma.JsonFilter<"workflow"> - TriggerId?: Prisma.StringFilter<"workflow"> | string - NodeId?: Prisma.StringFilter<"workflow"> | string -} - -export type workflowCreateWithoutTriggerInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - user: Prisma.UserCreateNestedOneWithoutWorkflowInput - Node: Prisma.NodesCreateNestedOneWithoutWorkflowInput -} - -export type workflowUncheckedCreateWithoutTriggerInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - userId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - NodeId: string -} - -export type workflowCreateOrConnectWithoutTriggerInput = { - where: Prisma.workflowWhereUniqueInput - create: Prisma.XOR -} - -export type workflowUpsertWithoutTriggerInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.workflowWhereInput -} - -export type workflowUpdateToOneWithWhereWithoutTriggerInput = { - where?: Prisma.workflowWhereInput - data: Prisma.XOR -} - -export type workflowUpdateWithoutTriggerInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - user?: Prisma.UserUpdateOneRequiredWithoutWorkflowNestedInput - Node?: Prisma.NodesUpdateOneRequiredWithoutWorkflowNestedInput -} - -export type workflowUncheckedUpdateWithoutTriggerInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - userId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - NodeId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type workflowCreateWithoutNodeInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - user: Prisma.UserCreateNestedOneWithoutWorkflowInput - Trigger: Prisma.TriggersCreateNestedOneWithoutWorkflowInput -} - -export type workflowUncheckedCreateWithoutNodeInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - userId: string - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId: string -} - -export type workflowCreateOrConnectWithoutNodeInput = { - where: Prisma.workflowWhereUniqueInput - create: Prisma.XOR -} - -export type workflowUpsertWithoutNodeInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.workflowWhereInput -} - -export type workflowUpdateToOneWithWhereWithoutNodeInput = { - where?: Prisma.workflowWhereInput - data: Prisma.XOR -} - -export type workflowUpdateWithoutNodeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - user?: Prisma.UserUpdateOneRequiredWithoutWorkflowNestedInput - Trigger?: Prisma.TriggersUpdateOneRequiredWithoutWorkflowNestedInput -} - -export type workflowUncheckedUpdateWithoutNodeInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - userId?: Prisma.StringFieldUpdateOperationsInput | string - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type workflowCreateManyUserInput = { - id?: string - name: string - createdAt?: Date | string - updateAt?: Date | string - description: string - status: $Enums.WorkFlowStatus - config: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId: string - NodeId: string -} - -export type workflowUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - Trigger?: Prisma.TriggersUpdateOneRequiredWithoutWorkflowNestedInput - Node?: Prisma.NodesUpdateOneRequiredWithoutWorkflowNestedInput -} - -export type workflowUncheckedUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId?: Prisma.StringFieldUpdateOperationsInput | string - NodeId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type workflowUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - name?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updateAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - description?: Prisma.StringFieldUpdateOperationsInput | string - status?: Prisma.EnumWorkFlowStatusFieldUpdateOperationsInput | $Enums.WorkFlowStatus - config?: Prisma.JsonNullValueInput | runtime.InputJsonValue - TriggerId?: Prisma.StringFieldUpdateOperationsInput | string - NodeId?: Prisma.StringFieldUpdateOperationsInput | string -} - - - -export type workflowSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - createdAt?: boolean - updateAt?: boolean - description?: boolean - status?: boolean - userId?: boolean - config?: boolean - TriggerId?: boolean - NodeId?: boolean - user?: boolean | Prisma.UserDefaultArgs - Trigger?: boolean | Prisma.TriggersDefaultArgs - Node?: boolean | Prisma.NodesDefaultArgs -}, ExtArgs["result"]["workflow"]> - -export type workflowSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - createdAt?: boolean - updateAt?: boolean - description?: boolean - status?: boolean - userId?: boolean - config?: boolean - TriggerId?: boolean - NodeId?: boolean - user?: boolean | Prisma.UserDefaultArgs - Trigger?: boolean | Prisma.TriggersDefaultArgs - Node?: boolean | Prisma.NodesDefaultArgs -}, ExtArgs["result"]["workflow"]> - -export type workflowSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - name?: boolean - createdAt?: boolean - updateAt?: boolean - description?: boolean - status?: boolean - userId?: boolean - config?: boolean - TriggerId?: boolean - NodeId?: boolean - user?: boolean | Prisma.UserDefaultArgs - Trigger?: boolean | Prisma.TriggersDefaultArgs - Node?: boolean | Prisma.NodesDefaultArgs -}, ExtArgs["result"]["workflow"]> - -export type workflowSelectScalar = { - id?: boolean - name?: boolean - createdAt?: boolean - updateAt?: boolean - description?: boolean - status?: boolean - userId?: boolean - config?: boolean - TriggerId?: boolean - NodeId?: boolean -} - -export type workflowOmit = runtime.Types.Extensions.GetOmit<"id" | "name" | "createdAt" | "updateAt" | "description" | "status" | "userId" | "config" | "TriggerId" | "NodeId", ExtArgs["result"]["workflow"]> -export type workflowInclude = { - user?: boolean | Prisma.UserDefaultArgs - Trigger?: boolean | Prisma.TriggersDefaultArgs - Node?: boolean | Prisma.NodesDefaultArgs -} -export type workflowIncludeCreateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs - Trigger?: boolean | Prisma.TriggersDefaultArgs - Node?: boolean | Prisma.NodesDefaultArgs -} -export type workflowIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs - Trigger?: boolean | Prisma.TriggersDefaultArgs - Node?: boolean | Prisma.NodesDefaultArgs -} - -export type $workflowPayload = { - name: "workflow" - objects: { - user: Prisma.$UserPayload - Trigger: Prisma.$TriggersPayload - Node: Prisma.$NodesPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - name: string - createdAt: Date - updateAt: Date - description: string - status: $Enums.WorkFlowStatus - userId: string - config: runtime.JsonValue - TriggerId: string - NodeId: string - }, ExtArgs["result"]["workflow"]> - composites: {} -} - -export type workflowGetPayload = runtime.Types.Result.GetResult - -export type workflowCountArgs = - Omit & { - select?: WorkflowCountAggregateInputType | true - } - -export interface workflowDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['workflow'], meta: { name: 'workflow' } } - /** - * Find zero or one Workflow that matches the filter. - * @param {workflowFindUniqueArgs} args - Arguments to find a Workflow - * @example - * // Get one Workflow - * const workflow = await prisma.workflow.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__workflowClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Workflow that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {workflowFindUniqueOrThrowArgs} args - Arguments to find a Workflow - * @example - * // Get one Workflow - * const workflow = await prisma.workflow.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__workflowClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Workflow 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 {workflowFindFirstArgs} args - Arguments to find a Workflow - * @example - * // Get one Workflow - * const workflow = await prisma.workflow.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__workflowClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Workflow 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 {workflowFindFirstOrThrowArgs} args - Arguments to find a Workflow - * @example - * // Get one Workflow - * const workflow = await prisma.workflow.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__workflowClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Workflows 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 {workflowFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Workflows - * const workflows = await prisma.workflow.findMany() - * - * // Get first 10 Workflows - * const workflows = await prisma.workflow.findMany({ take: 10 }) - * - * // Only select the `id` - * const workflowWithIdOnly = await prisma.workflow.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Workflow. - * @param {workflowCreateArgs} args - Arguments to create a Workflow. - * @example - * // Create one Workflow - * const Workflow = await prisma.workflow.create({ - * data: { - * // ... data to create a Workflow - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__workflowClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Workflows. - * @param {workflowCreateManyArgs} args - Arguments to create many Workflows. - * @example - * // Create many Workflows - * const workflow = await prisma.workflow.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Workflows and returns the data saved in the database. - * @param {workflowCreateManyAndReturnArgs} args - Arguments to create many Workflows. - * @example - * // Create many Workflows - * const workflow = await prisma.workflow.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Workflows and only return the `id` - * const workflowWithIdOnly = await prisma.workflow.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 Workflow. - * @param {workflowDeleteArgs} args - Arguments to delete one Workflow. - * @example - * // Delete one Workflow - * const Workflow = await prisma.workflow.delete({ - * where: { - * // ... filter to delete one Workflow - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__workflowClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Workflow. - * @param {workflowUpdateArgs} args - Arguments to update one Workflow. - * @example - * // Update one Workflow - * const workflow = await prisma.workflow.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__workflowClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Workflows. - * @param {workflowDeleteManyArgs} args - Arguments to filter Workflows to delete. - * @example - * // Delete a few Workflows - * const { count } = await prisma.workflow.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Workflows. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {workflowUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Workflows - * const workflow = await prisma.workflow.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Workflows and returns the data updated in the database. - * @param {workflowUpdateManyAndReturnArgs} args - Arguments to update many Workflows. - * @example - * // Update many Workflows - * const workflow = await prisma.workflow.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Workflows and only return the `id` - * const workflowWithIdOnly = await prisma.workflow.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 Workflow. - * @param {workflowUpsertArgs} args - Arguments to update or create a Workflow. - * @example - * // Update or create a Workflow - * const workflow = await prisma.workflow.upsert({ - * create: { - * // ... data to create a Workflow - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Workflow we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__workflowClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Workflows. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {workflowCountArgs} args - Arguments to filter Workflows to count. - * @example - * // Count the number of Workflows - * const count = await prisma.workflow.count({ - * where: { - * // ... the filter for the Workflows 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 Workflow. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {WorkflowAggregateArgs} 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 Workflow. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {workflowGroupByArgs} 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 workflowGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: workflowGroupByArgs['orderBy'] } - : { orderBy?: workflowGroupByArgs['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 ? GetWorkflowGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the workflow model - */ -readonly fields: workflowFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for workflow. - * 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__workflowClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - Trigger = {}>(args?: Prisma.Subset>): Prisma.Prisma__TriggersClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - Node = {}>(args?: Prisma.Subset>): Prisma.Prisma__NodesClient, 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 workflow model - */ -export interface workflowFieldRefs { - readonly id: Prisma.FieldRef<"workflow", 'String'> - readonly name: Prisma.FieldRef<"workflow", 'String'> - readonly createdAt: Prisma.FieldRef<"workflow", 'DateTime'> - readonly updateAt: Prisma.FieldRef<"workflow", 'DateTime'> - readonly description: Prisma.FieldRef<"workflow", 'String'> - readonly status: Prisma.FieldRef<"workflow", 'WorkFlowStatus'> - readonly userId: Prisma.FieldRef<"workflow", 'String'> - readonly config: Prisma.FieldRef<"workflow", 'Json'> - readonly TriggerId: Prisma.FieldRef<"workflow", 'String'> - readonly NodeId: Prisma.FieldRef<"workflow", 'String'> -} - - -// Custom InputTypes -/** - * workflow findUnique - */ -export type workflowFindUniqueArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - /** - * Filter, which workflow to fetch. - */ - where: Prisma.workflowWhereUniqueInput -} - -/** - * workflow findUniqueOrThrow - */ -export type workflowFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - /** - * Filter, which workflow to fetch. - */ - where: Prisma.workflowWhereUniqueInput -} - -/** - * workflow findFirst - */ -export type workflowFindFirstArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - /** - * Filter, which workflow to fetch. - */ - where?: Prisma.workflowWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of workflows to fetch. - */ - orderBy?: Prisma.workflowOrderByWithRelationInput | Prisma.workflowOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for workflows. - */ - cursor?: Prisma.workflowWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` workflows 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` workflows. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of workflows. - */ - distinct?: Prisma.WorkflowScalarFieldEnum | Prisma.WorkflowScalarFieldEnum[] -} - -/** - * workflow findFirstOrThrow - */ -export type workflowFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - /** - * Filter, which workflow to fetch. - */ - where?: Prisma.workflowWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of workflows to fetch. - */ - orderBy?: Prisma.workflowOrderByWithRelationInput | Prisma.workflowOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for workflows. - */ - cursor?: Prisma.workflowWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` workflows 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` workflows. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of workflows. - */ - distinct?: Prisma.WorkflowScalarFieldEnum | Prisma.WorkflowScalarFieldEnum[] -} - -/** - * workflow findMany - */ -export type workflowFindManyArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - /** - * Filter, which workflows to fetch. - */ - where?: Prisma.workflowWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of workflows to fetch. - */ - orderBy?: Prisma.workflowOrderByWithRelationInput | Prisma.workflowOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing workflows. - */ - cursor?: Prisma.workflowWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` workflows 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` workflows. - */ - skip?: number - distinct?: Prisma.WorkflowScalarFieldEnum | Prisma.WorkflowScalarFieldEnum[] -} - -/** - * workflow create - */ -export type workflowCreateArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - /** - * The data needed to create a workflow. - */ - data: Prisma.XOR -} - -/** - * workflow createMany - */ -export type workflowCreateManyArgs = { - /** - * The data used to create many workflows. - */ - data: Prisma.workflowCreateManyInput | Prisma.workflowCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * workflow createManyAndReturn - */ -export type workflowCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelectCreateManyAndReturn | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * The data used to create many workflows. - */ - data: Prisma.workflowCreateManyInput | Prisma.workflowCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowIncludeCreateManyAndReturn | null -} - -/** - * workflow update - */ -export type workflowUpdateArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - /** - * The data needed to update a workflow. - */ - data: Prisma.XOR - /** - * Choose, which workflow to update. - */ - where: Prisma.workflowWhereUniqueInput -} - -/** - * workflow updateMany - */ -export type workflowUpdateManyArgs = { - /** - * The data used to update workflows. - */ - data: Prisma.XOR - /** - * Filter which workflows to update - */ - where?: Prisma.workflowWhereInput - /** - * Limit how many workflows to update. - */ - limit?: number -} - -/** - * workflow updateManyAndReturn - */ -export type workflowUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * The data used to update workflows. - */ - data: Prisma.XOR - /** - * Filter which workflows to update - */ - where?: Prisma.workflowWhereInput - /** - * Limit how many workflows to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowIncludeUpdateManyAndReturn | null -} - -/** - * workflow upsert - */ -export type workflowUpsertArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - /** - * The filter to search for the workflow to update in case it exists. - */ - where: Prisma.workflowWhereUniqueInput - /** - * In case the workflow found by the `where` argument doesn't exist, create a new workflow with this data. - */ - create: Prisma.XOR - /** - * In case the workflow was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * workflow delete - */ -export type workflowDeleteArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null - /** - * Filter which workflow to delete. - */ - where: Prisma.workflowWhereUniqueInput -} - -/** - * workflow deleteMany - */ -export type workflowDeleteManyArgs = { - /** - * Filter which workflows to delete - */ - where?: Prisma.workflowWhereInput - /** - * Limit how many workflows to delete. - */ - limit?: number -} - -/** - * workflow without action - */ -export type workflowDefaultArgs = { - /** - * Select specific fields to fetch from the workflow - */ - select?: Prisma.workflowSelect | null - /** - * Omit specific fields from the workflow - */ - omit?: Prisma.workflowOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.workflowInclude | null -} diff --git a/packages/db/tsconfig.tsbuildinfo b/packages/db/tsconfig.tsbuildinfo index ecad400..aed5af1 100644 --- a/packages/db/tsconfig.tsbuildinfo +++ b/packages/db/tsconfig.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/index.ts","./src/generated/browser.ts","./src/generated/client.ts","./src/generated/commonInputTypes.ts","./src/generated/default.d.ts","./src/generated/edge.d.ts","./src/generated/enums.ts","./src/generated/index.d.ts","./src/generated/models.ts","./src/generated/wasm.d.ts","./src/generated/internal/class.ts","./src/generated/internal/prismaNamespace.ts","./src/generated/internal/prismaNamespaceBrowser.ts","./src/generated/models/AvailableNodes.ts","./src/generated/models/AvailableTriggers.ts","./src/generated/models/Nodes.ts","./src/generated/models/Triggers.ts","./src/generated/models/User.ts","./src/generated/models/workflow.ts","./src/generated/runtime/index-browser.d.ts","./src/generated/runtime/library.d.ts"],"version":"5.7.3"} \ No newline at end of file +{"root":["./src/index.ts","./src/generated/client.d.ts","./src/generated/default.d.ts","./src/generated/edge.d.ts","./src/generated/index.d.ts","./src/generated/wasm.d.ts","./src/generated/runtime/index-browser.d.ts","./src/generated/runtime/library.d.ts"],"version":"5.7.3"} \ No newline at end of file