diff --git a/.gitignore b/.gitignore index d3c18813..a2ee5728 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,7 @@ .pnp.js # collaboration -/src/lib/collaboration/node_modules +/src/lib/cloud/node_modules .wrangler/ # testing @@ -21,6 +21,7 @@ next-env.d.ts # production /build /target +/src/generated # misc .DS_Store diff --git a/package-lock.json b/package-lock.json index 8ff438d4..2b2ac927 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1192,6 +1192,7 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", @@ -3033,7 +3034,8 @@ "resolved": "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20260210.0.tgz", "integrity": "sha512-zHaF0RZVYUQwNCJCECnNAJdMur72Lk3FMiD6wU78Dx3Bv7DQRcuXNmPNuJmsGnosVZCcWintHlPTQ/4BEiDG5w==", "dev": true, - "license": "MIT OR Apache-2.0" + "license": "MIT OR Apache-2.0", + "peer": true }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", @@ -3064,7 +3066,8 @@ "resolved": "https://registry.npmjs.org/@electric-sql/pglite/-/pglite-0.4.1.tgz", "integrity": "sha512-mZ9NzzUSYPOCnxHH1oAHPRzoMFJHY472raDKwXl/+6oPbpdJ7g8LsCN4FSaIIfkiCKHhb3iF/Zqo3NYxaIhU7Q==", "devOptional": true, - "license": "Apache-2.0" + "license": "Apache-2.0", + "peer": true }, "node_modules/@electric-sql/pglite-socket": { "version": "0.1.1", @@ -3105,6 +3108,7 @@ "version": "1.7.1", "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.7.1.tgz", "integrity": "sha512-PVtJr5CmLwYAU9PZDMITZoR5iAOShYREoR45EyyLrbntV50mdePTgUn4AmOw90Ifcj+x2kRjdzr1HP3RrNiHGA==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -3763,17 +3767,6 @@ "@floating-ui/utils": "^0.2.11" } }, - "node_modules/@floating-ui/dom": { - "version": "1.7.6", - "resolved": "https://registry.npmjs.org/@floating-ui/dom/-/dom-1.7.6.tgz", - "integrity": "sha512-9gZSAI5XM36880PPMm//9dfiEngYoC6Am2izES1FF406YFsjvyBMmeJ2g4SAju3xWwtuynNRFL2s9hgxpLI5SQ==", - "license": "MIT", - "optional": true, - "dependencies": { - "@floating-ui/core": "^1.7.5", - "@floating-ui/utils": "^0.2.11" - } - }, "node_modules/@floating-ui/utils": { "version": "0.2.11", "resolved": "https://registry.npmjs.org/@floating-ui/utils/-/utils-0.2.11.tgz", @@ -4019,6 +4012,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4041,6 +4035,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4063,6 +4058,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4079,6 +4075,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4095,6 +4092,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4111,6 +4109,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4127,6 +4126,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4143,6 +4143,7 @@ "cpu": [ "riscv64" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4159,6 +4160,7 @@ "cpu": [ "s390x" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4175,6 +4177,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4191,6 +4194,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4207,6 +4211,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "LGPL-3.0-or-later", "optional": true, "os": [ @@ -4223,6 +4228,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4245,6 +4251,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4267,6 +4274,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4289,6 +4297,7 @@ "cpu": [ "riscv64" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4311,6 +4320,7 @@ "cpu": [ "s390x" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4333,6 +4343,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4355,6 +4366,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4377,6 +4389,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "Apache-2.0", "optional": true, "os": [ @@ -4399,6 +4412,7 @@ "cpu": [ "wasm32" ], + "dev": true, "license": "Apache-2.0 AND LGPL-3.0-or-later AND MIT", "optional": true, "dependencies": { @@ -4418,6 +4432,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "Apache-2.0 AND LGPL-3.0-or-later", "optional": true, "os": [ @@ -4437,6 +4452,7 @@ "cpu": [ "ia32" ], + "dev": true, "license": "Apache-2.0 AND LGPL-3.0-or-later", "optional": true, "os": [ @@ -4456,6 +4472,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "Apache-2.0 AND LGPL-3.0-or-later", "optional": true, "os": [ @@ -5371,6 +5388,7 @@ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.1.tgz", "integrity": "sha512-gLyJlPHPZYdAk1JENA9LeHejZe1Ti77/pTeFm/nMXmQH/HFZlcS/O2XJB+L8fkbrNSqhdtlvjBVjxwUYanNH5Q==", "license": "Apache-2.0", + "peer": true, "engines": { "node": ">=8.0.0" } @@ -5763,6 +5781,7 @@ "resolved": "https://registry.npmjs.org/@prisma/client/-/client-7.7.0.tgz", "integrity": "sha512-5Ar4OsZpJ54s21sy5oDNNW9gQtd4NuxCaiM7+JDTOU07D6VvlpLjYzAVCMB1+JzokN+08dAVomlx+b7bhJd3ww==", "license": "Apache-2.0", + "peer": true, "dependencies": { "@prisma/client-runtime-utils": "7.7.0" }, @@ -6145,8 +6164,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/@remirror/core-constants/-/core-constants-3.0.0.tgz", "integrity": "sha512-42aWfPrimMfDKDi4YegyS7x+/0tlzaqwPQCULLanv3DMIlu96KTJR0fM5isWX2UViOqlGnX6YFgqWepcX+XMNg==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { "version": "4.60.0", @@ -7429,6 +7447,7 @@ "resolved": "https://registry.npmjs.org/@svgr/core/-/core-8.1.0.tgz", "integrity": "sha512-8QqtOQT5ACVlmsvKOJNEaWmRPmcojMOzCz4Hs2BGG/toAp/K38LcsMRyLp349glq5AzJbCEeimEoxaX6v/fLrA==", "license": "MIT", + "peer": true, "dependencies": { "@babel/core": "^7.21.3", "@svgr/babel-preset": "8.1.0", @@ -8391,15 +8410,13 @@ "version": "5.0.0", "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-5.0.0.tgz", "integrity": "sha512-sVDA58zAw4eWAffKOaQH5/5j3XeayukzDk+ewSsnv3p4yJEZHCCzMDiZM8e0OUrRvmpGZ85jf4yDHkHsgBNr9Q==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@types/markdown-it": { "version": "14.1.2", "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz", "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==", "license": "MIT", - "peer": true, "dependencies": { "@types/linkify-it": "^5", "@types/mdurl": "^2" @@ -8409,14 +8426,14 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-2.0.0.tgz", "integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/@types/node": { "version": "20.11.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-20.11.0.tgz", "integrity": "sha512-o9bjXmDNcF7GbM4CNQpmi+TutCgap/K3w1JyKgxAjqx41zp9qlIAVFi0IhCNsJcXolEqLWhbFbEeL0PvYm4pcQ==", "license": "MIT", + "peer": true, "dependencies": { "undici-types": "~5.26.4" } @@ -8508,6 +8525,7 @@ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.27.tgz", "integrity": "sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w==", "license": "MIT", + "peer": true, "dependencies": { "@types/prop-types": "*", "csstype": "^3.2.2" @@ -8518,6 +8536,7 @@ "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz", "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==", "license": "MIT", + "peer": true, "peerDependencies": { "@types/react": "^18.0.0" } @@ -8577,6 +8596,7 @@ "integrity": "sha512-hM5faZwg7aVNa819m/5r7D0h0c9yC4DUlWAOvHAtISdFTc8xB86VmX5Xqabrama3wIPJ/q9RbGS1worb6JfnMg==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@typescript-eslint/scope-manager": "8.50.1", "@typescript-eslint/types": "8.50.1", @@ -9262,6 +9282,7 @@ "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", "dev": true, "license": "MIT", + "peer": true, "bin": { "acorn": "bin/acorn" }, @@ -9774,6 +9795,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "baseline-browser-mapping": "^2.9.0", "caniuse-lite": "^1.0.30001759", @@ -9999,6 +10021,7 @@ "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.5.1.tgz", "integrity": "sha512-GIjfiT9dbmHRiYi6Nl2yFCq7kkwdkp1W/lp2J99rX0yo9tgJGn3lKQATztIjb5tVtevcBtIdICNWqlq5+E8/Pw==", "license": "MIT", + "peer": true, "dependencies": { "@kurkle/color": "^0.3.0" }, @@ -10265,8 +10288,7 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.6.tgz", "integrity": "sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/cross-env": { "version": "7.0.3", @@ -11171,6 +11193,7 @@ "integrity": "sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@eslint-community/eslint-utils": "^4.8.0", "@eslint-community/regexpp": "^4.12.1", @@ -11369,6 +11392,7 @@ "integrity": "sha512-whOE1HFo/qJDyX4SnXzP4N6zOWn79WhnCUY/iDR0mPfQZO8wcYE4JClzI2oZrhBnnMUCBCHZhO6VQyoBU95mZA==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@rtsao/scc": "^1.1.0", "array-includes": "^3.1.9", @@ -12601,6 +12625,7 @@ "integrity": "sha512-am5zfg3yu6sqn5yjKBNqhnTX7Cv+m00ox+7jbaKkrLMRJ4rAdldd1xPd/JzbBWspqaQv6RSTrgFN95EsfhC+7w==", "devOptional": true, "license": "MIT", + "peer": true, "engines": { "node": ">=16.9.0" } @@ -13457,6 +13482,7 @@ "integrity": "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==", "devOptional": true, "license": "MIT", + "peer": true, "bin": { "jiti": "lib/jiti-cli.mjs" } @@ -13775,7 +13801,6 @@ "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", "license": "MIT", - "peer": true, "dependencies": { "uc.micro": "^2.0.0" } @@ -14008,7 +14033,6 @@ "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.0.tgz", "integrity": "sha512-a54IwgWPaeBCAAsv13YgmALOF1elABB08FxO9i+r4VFk5Vl4pKokRPeX8u5TCgSsPi6ec1otfLjdOpVcgbpshg==", "license": "MIT", - "peer": true, "dependencies": { "argparse": "^2.0.1", "entities": "^4.4.0", @@ -14041,8 +14065,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/mediaquery-text": { "version": "1.2.0", @@ -14328,6 +14351,7 @@ "resolved": "https://registry.npmjs.org/next/-/next-16.1.6.tgz", "integrity": "sha512-hkyRkcu5x/41KoqnROkfTm2pZVbKxvbZRuNvKXLRXxs3VfyO0WhY50TQS40EuKO9SW3rBj/sF3WbVwDACeMZyw==", "license": "MIT", + "peer": true, "dependencies": { "@next/env": "16.1.6", "@swc/helpers": "0.5.15", @@ -14556,6 +14580,7 @@ "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-7.0.12.tgz", "integrity": "sha512-H+rnK5bX2Pi/6ms3sN4/jRQvYSMltV6vqup/0SFOrxYYY/qoNvhXPlYq3e+Pm9RFJRwrMGbMIwi81M4dxpomhA==", "license": "MIT-0", + "peer": true, "engines": { "node": ">=6.0.0" } @@ -14835,8 +14860,7 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz", "integrity": "sha512-TvAWxi0nDe1j/rtMcWcIj94+Ffe6n7zhow33h40SKxmsmozs6dz/e+EajymfoFcHd7sxNn8yHM8839uixMOV6g==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/own-keys": { "version": "1.0.1", @@ -15197,6 +15221,7 @@ "resolved": "https://registry.npmjs.org/pg/-/pg-8.20.0.tgz", "integrity": "sha512-ldhMxz2r8fl/6QkXnBD3CR9/xg694oT6DZQ2s6c/RI28OjtSOpxnPrUCGOBJ46RCUxcWdx3p6kw/xnDHjKvaRA==", "license": "MIT", + "peer": true, "dependencies": { "pg-connection-string": "^2.12.0", "pg-pool": "^3.13.0", @@ -15460,6 +15485,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", @@ -15613,6 +15639,7 @@ "resolved": "https://registry.npmjs.org/preact/-/preact-10.24.3.tgz", "integrity": "sha512-Z2dPnBnMUfyQfSQ+GBdsGa16hz35YmLmtTLhM169uW944hYL6xzTYkJjC07j+Wosz733pMWx0fgON3JNw1jJQA==", "license": "MIT", + "peer": true, "funding": { "type": "opencollective", "url": "https://opencollective.com/preact" @@ -15679,6 +15706,7 @@ "devOptional": true, "hasInstallScript": true, "license": "Apache-2.0", + "peer": true, "dependencies": { "@prisma/config": "7.7.0", "@prisma/dev": "0.24.3", @@ -15765,7 +15793,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-changeset/-/prosemirror-changeset-2.3.1.tgz", "integrity": "sha512-j0kORIBm8ayJNl3zQvD1TTPHJX3g042et6y/KQhZhnPrruO8exkTgG8X+NRpj7kIyMMEx74Xb3DyMIBtO0IKkQ==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-transform": "^1.0.0" } @@ -15775,7 +15802,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-collab/-/prosemirror-collab-1.3.1.tgz", "integrity": "sha512-4SnynYR9TTYaQVXd/ieUvsVV4PDMBzrq2xPUWutHivDuOshZXqQ5rGbZM84HEaXKbLdItse7weMGOUdDVcLKEQ==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-state": "^1.0.0" } @@ -15785,7 +15811,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-commands/-/prosemirror-commands-1.7.1.tgz", "integrity": "sha512-rT7qZnQtx5c0/y/KlYaGvtG411S97UaL6gdp6RIZ23DLHanMYLyfGBV5DtSnZdthQql7W+lEVbpSfwtO8T+L2w==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-model": "^1.0.0", "prosemirror-state": "^1.0.0", @@ -15797,7 +15822,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-dropcursor/-/prosemirror-dropcursor-1.8.2.tgz", "integrity": "sha512-CCk6Gyx9+Tt2sbYk5NK0nB1ukHi2ryaRgadV/LvyNuO3ena1payM2z6Cg0vO1ebK8cxbzo41ku2DE5Axj1Zuiw==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-state": "^1.0.0", "prosemirror-transform": "^1.1.0", @@ -15809,7 +15833,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-gapcursor/-/prosemirror-gapcursor-1.4.0.tgz", "integrity": "sha512-z00qvurSdCEWUIulij/isHaqu4uLS8r/Fi61IbjdIPJEonQgggbJsLnstW7Lgdk4zQ68/yr6B6bf7sJXowIgdQ==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-keymap": "^1.0.0", "prosemirror-model": "^1.0.0", @@ -15822,7 +15845,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-history/-/prosemirror-history-1.5.0.tgz", "integrity": "sha512-zlzTiH01eKA55UAf1MEjtssJeHnGxO0j4K4Dpx+gnmX9n+SHNlDqI2oO1Kv1iPN5B1dm5fsljCfqKF9nFL6HRg==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-state": "^1.2.2", "prosemirror-transform": "^1.0.0", @@ -15835,7 +15857,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-inputrules/-/prosemirror-inputrules-1.5.1.tgz", "integrity": "sha512-7wj4uMjKaXWAQ1CDgxNzNtR9AlsuwzHfdFH1ygEHA2KHF2DOEaXl1CJfNPAKCg9qNEh4rum975QLaCiQPyY6Fw==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-state": "^1.0.0", "prosemirror-transform": "^1.0.0" @@ -15846,7 +15867,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-keymap/-/prosemirror-keymap-1.2.3.tgz", "integrity": "sha512-4HucRlpiLd1IPQQXNqeo81BGtkY8Ai5smHhKW9jjPKRc2wQIxksg7Hl1tTI2IfT2B/LgX6bfYvXxEpJl7aKYKw==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-state": "^1.0.0", "w3c-keyname": "^2.2.0" @@ -15857,7 +15877,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-markdown/-/prosemirror-markdown-1.13.2.tgz", "integrity": "sha512-FPD9rHPdA9fqzNmIIDhhnYQ6WgNoSWX9StUZ8LEKapaXU9i6XgykaHKhp6XMyXlOWetmaFgGDS/nu/w9/vUc5g==", "license": "MIT", - "peer": true, "dependencies": { "@types/markdown-it": "^14.0.0", "markdown-it": "^14.0.0", @@ -15869,7 +15888,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-menu/-/prosemirror-menu-1.2.5.tgz", "integrity": "sha512-qwXzynnpBIeg1D7BAtjOusR+81xCp53j7iWu/IargiRZqRjGIlQuu1f3jFi+ehrHhWMLoyOQTSRx/IWZJqOYtQ==", "license": "MIT", - "peer": true, "dependencies": { "crelt": "^1.0.0", "prosemirror-commands": "^1.0.0", @@ -15892,7 +15910,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-schema-basic/-/prosemirror-schema-basic-1.2.4.tgz", "integrity": "sha512-ELxP4TlX3yr2v5rM7Sb70SqStq5NvI15c0j9j/gjsrO5vaw+fnnpovCLEGIcpeGfifkuqJwl4fon6b+KdrODYQ==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-model": "^1.25.0" } @@ -15902,7 +15919,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-schema-list/-/prosemirror-schema-list-1.5.1.tgz", "integrity": "sha512-927lFx/uwyQaGwJxLWCZRkjXG0p48KpMj6ueoYiu4JX05GGuGcgzAy62dfiV8eFZftgyBUvLx76RsMe20fJl+Q==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-model": "^1.0.0", "prosemirror-state": "^1.0.0", @@ -15926,7 +15942,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-tables/-/prosemirror-tables-1.8.4.tgz", "integrity": "sha512-CGr2BK5sLdZx+ARbeLO4HBZYa3qSG3FmwOVmzYs0Zp7n5SkrGqj+1CeNuubFNZEr64yMAQ20SanbFyIyHWZc8w==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-keymap": "^1.2.3", "prosemirror-model": "^1.25.4", @@ -15940,7 +15955,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-trailing-node/-/prosemirror-trailing-node-3.0.0.tgz", "integrity": "sha512-xiun5/3q0w5eRnGYfNlW1uU9W6x5MoFKWwq/0TIRgt09lv7Hcser2QYV8t4muXbEr+Fwo0geYn79Xs4GKywrRQ==", "license": "MIT", - "peer": true, "dependencies": { "@remirror/core-constants": "3.0.0", "escape-string-regexp": "^4.0.0" @@ -15956,7 +15970,6 @@ "resolved": "https://registry.npmjs.org/prosemirror-transform/-/prosemirror-transform-1.10.5.tgz", "integrity": "sha512-RPDQCxIDhIBb1o36xxwsaeAvivO8VLJcgBtzmOwQ64bMtsVFh5SSuJ6dWSxO1UsHTiTXPCgQm3PDJt7p6IOLbw==", "license": "MIT", - "peer": true, "dependencies": { "prosemirror-model": "^1.21.0" } @@ -16002,7 +16015,6 @@ "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", "license": "MIT", - "peer": true, "engines": { "node": ">=6" } @@ -16080,6 +16092,7 @@ "resolved": "https://registry.npmjs.org/react/-/react-19.2.4.tgz", "integrity": "sha512-9nfp2hYpCwOjAN+8TZFGhtWEwgvWHXqESH8qT89AT/lWklpLON22Lc8pEtnpsZz7VmawabSU0gCjnj8aC0euHQ==", "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -16099,6 +16112,7 @@ "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.4.tgz", "integrity": "sha512-AXJdLo8kgMbimY95O2aKQqsz2iWi9jMgKJhRBAxECE4IFxfcazB2LmzloIoibJI3C12IlY20+KFaLv+71bUJeQ==", "license": "MIT", + "peer": true, "dependencies": { "scheduler": "^0.27.0" }, @@ -16440,8 +16454,7 @@ "version": "1.3.4", "resolved": "https://registry.npmjs.org/rope-sequence/-/rope-sequence-1.3.4.tgz", "integrity": "sha512-UT5EDe2cu2E/6O4igUr5PSFs23nvvukicWHx6GnOPlHAiiYbzNuCRQCuiUdHJQcqKalLKlrYJnjY0ySGsXNQXQ==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/run-parallel": { "version": "1.2.0", @@ -16565,6 +16578,7 @@ "integrity": "sha512-uf6HoO8fy6ClsrShvMgaKUn14f2EHQLQRtpsZZLeU/Mv0Q1K5P0+x2uvH6Cub39TVVbWNSrraUhDAoFph6vh0A==", "devOptional": true, "license": "MIT", + "peer": true, "dependencies": { "chokidar": "^4.0.0", "immutable": "^5.0.2", @@ -17440,6 +17454,7 @@ "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -17584,6 +17599,7 @@ "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "~0.27.0", "get-tsconfig": "^4.7.5" @@ -17695,6 +17711,7 @@ "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "devOptional": true, "license": "Apache-2.0", + "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -17796,6 +17813,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", @@ -17864,8 +17882,7 @@ "version": "2.1.0", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/unbox-primitive": { "version": "1.1.0", @@ -17907,6 +17924,7 @@ "integrity": "sha512-i7qRCmY42zmCwnYlh9H2SvLEypEFGye5iRmEMKjcGi7zk9UquigRjFtTLz0TYqr0ZGLZhaMHl/foy1bZR+Cwlw==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "pathe": "^2.0.3" } @@ -18170,6 +18188,7 @@ "integrity": "sha512-+Oxm7q9hDoLMyJOYfUYBuHQo+dkAloi33apOPP56pzj+vsdJDzr+j1NISE5pyaAuKL4A3UD34qd0lx5+kfKp2g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "esbuild": "^0.25.0", "fdir": "^6.4.4", @@ -18789,6 +18808,7 @@ "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", "dev": true, "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -18831,6 +18851,7 @@ "integrity": "sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "@types/chai": "^5.2.2", "@vitest/expect": "3.2.4", @@ -18949,8 +18970,7 @@ "version": "2.2.8", "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz", "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/wait-on": { "version": "9.0.3", @@ -19133,6 +19153,7 @@ "dev": true, "hasInstallScript": true, "license": "Apache-2.0", + "peer": true, "bin": { "workerd": "bin/workerd" }, @@ -19310,6 +19331,7 @@ "resolved": "https://registry.npmjs.org/y-protocols/-/y-protocols-1.0.7.tgz", "integrity": "sha512-YSVsLoXxO67J6eE/nV4AtFtT3QEotZf5sK5BHxFBXso7VDUT3Tx07IfA6hsu5Q5OmBdMkQVmFZ9QOA7fikWvnw==", "license": "MIT", + "peer": true, "dependencies": { "lib0": "^0.2.85" }, @@ -19373,6 +19395,7 @@ "resolved": "https://registry.npmjs.org/yjs/-/yjs-13.6.28.tgz", "integrity": "sha512-EgnDOXs8+hBVm6mq3/S89Kiwzh5JRbn7w2wXwbrMRyKy/8dOFsLvuIfC+x19ZdtaDc0tA9rQmdZzbqqNHG44wA==", "license": "MIT", + "peer": true, "dependencies": { "lib0": "^0.2.99" }, @@ -19453,6 +19476,7 @@ "resolved": "https://registry.npmjs.org/zod/-/zod-4.2.1.tgz", "integrity": "sha512-0wZ1IRqGGhMP76gLqz8EyfBXKk0J2qo2+H3fi4mcUP/KtTocoX08nmIAHl1Z2kJIZbZee8KOpBCSNPRgauucjw==", "license": "MIT", + "peer": true, "funding": { "url": "https://github.com/sponsors/colinhacks" } diff --git a/src/app/api/auth/magic-link/verify/route.ts b/src/app/api/auth/magic-link/verify/route.ts index 43fa70c9..10e11a30 100644 --- a/src/app/api/auth/magic-link/verify/route.ts +++ b/src/app/api/auth/magic-link/verify/route.ts @@ -2,7 +2,6 @@ import { ERROR_MAGIC_LINK_EXPIRED } from "@src/lib/messages"; import { apiHandler } from "@src/lib/utils/api-handler"; import { BodyFieldError, Success, validate } from "@src/lib/utils/api-utils"; import { NextResponse, type NextRequest } from "next/server"; -import { encode } from "next-auth/jwt"; import * as SecretService from "@src/lib/utils/secrets"; import * as UserService from "@src/server/service/user-service"; @@ -10,13 +9,16 @@ import * as ProjectService from "@src/server/service/project-service"; import * as MagicLinkService from "@src/server/service/magic-link-service"; import * as Misc from "@src/lib/utils/misc"; import { putBridgeToken } from "@src/lib/desktop-bridge"; -import { DESKTOP_BEARER_SALT, getWebSessionCookie } from "@src/lib/auth-cookies"; +import { + encodeDesktopBearer, + encodeWebSessionCookie, + SESSION_TTL_SECONDS, + type EncodedTokenPayload, +} from "@src/lib/auth-tokens"; import { VerifyMagicLinkBodySchema } from "@src/lib/utils/api-bodies"; export type { VerifyMagicLinkBody } from "@src/lib/utils/api-bodies"; -const SESSION_TTL_SECONDS = 30 * 24 * 60 * 60; // mirrors auth.ts maxAge - /** * POST `/api/auth/magic-link/verify` * @@ -33,9 +35,6 @@ async function verifyMagicLinkRoute(req: NextRequest) { const body = await req.json(); const { token } = validate(VerifyMagicLinkBodySchema, body); - const secret = process.env.AUTH_SECRET; - if (!secret) throw new BodyFieldError("Server is missing AUTH_SECRET"); - const tokenHash = SecretService.hashToken(token); // Atomically claim the token: deleteMany on the unique hash either deletes one row @@ -72,9 +71,10 @@ async function verifyMagicLinkRoute(req: NextRequest) { } } - const tokenPayload = { + const tokenPayload: EncodedTokenPayload = { id: user.id, email: user.email, + role: user.role, createdAt: user.createdAt.toISOString(), }; @@ -82,32 +82,20 @@ async function verifyMagicLinkRoute(req: NextRequest) { // Desktop flow: hand the JWE to the bridge for the polling client to pick up. // Do NOT set a session cookie on whichever browser opened the magic link, since // it may not be the same machine running the desktop app. - const desktopJwe = await encode({ - token: tokenPayload, - secret, - salt: DESKTOP_BEARER_SALT, - maxAge: SESSION_TTL_SECONDS, - }); + const desktopJwe = await encodeDesktopBearer(tokenPayload); putBridgeToken(record.desktopNonce, desktopJwe); return Success({ mode: "desktop" }); } // Web flow: set the NextAuth session cookie directly so the browser is signed in. - // The salt MUST equal the cookie name — that's what Auth.js's internal decoder uses. - const { name, secure } = getWebSessionCookie(); - const webJwe = await encode({ - token: tokenPayload, - secret, - salt: name, - maxAge: SESSION_TTL_SECONDS, - }); + const { jwe, name, secure } = await encodeWebSessionCookie(tokenPayload); const response = NextResponse.json( { status: "success", data: { mode: "web" } }, { status: 200 }, ); response.cookies.set({ name, - value: webJwe, + value: jwe, httpOnly: true, sameSite: "lax", secure, diff --git a/src/app/api/desktop/token/route.ts b/src/app/api/desktop/token/route.ts index b08face6..42e37799 100644 --- a/src/app/api/desktop/token/route.ts +++ b/src/app/api/desktop/token/route.ts @@ -1,14 +1,11 @@ import { NextRequest } from "next/server"; -import { encode } from "next-auth/jwt"; import z from "zod"; import { auth } from "@src/auth"; import { apiHandler } from "@src/lib/utils/api-handler"; -import { ForbiddenError, BodyFieldError, Success, validate } from "@src/lib/utils/api-utils"; +import { ForbiddenError, Success, validate } from "@src/lib/utils/api-utils"; import { putBridgeToken } from "@src/lib/desktop-bridge"; -import { DESKTOP_BEARER_SALT } from "@src/lib/auth-cookies"; - -const DESKTOP_TOKEN_TTL_SECONDS = 30 * 24 * 60 * 60; // 30 days, mirrors auth.ts maxAge. +import { encodeDesktopBearer } from "@src/lib/auth-tokens"; const BodySchema = z.object({ nonce: z.string().min(16), @@ -27,28 +24,21 @@ async function desktopTokenRoute(req: NextRequest) { const { nonce } = validate(BodySchema, body); const session = await auth(); - const user = session?.user as { id?: string; email?: string; createdAt?: Date | string } | undefined; + const user = session?.user as + | { id?: string; email?: string; createdAt?: Date | string; role?: string } + | undefined; if (!user?.id) { throw new ForbiddenError("Not authenticated"); } - const secret = process.env.AUTH_SECRET; - if (!secret) { - throw new BodyFieldError("Server is missing AUTH_SECRET"); - } - - const token = await encode({ - token: { - id: user.id, - email: user.email, - createdAt: - user.createdAt instanceof Date - ? user.createdAt.toISOString() - : (user.createdAt ?? new Date().toISOString()), - }, - secret, - salt: DESKTOP_BEARER_SALT, - maxAge: DESKTOP_TOKEN_TTL_SECONDS, + const token = await encodeDesktopBearer({ + id: user.id, + email: user.email ?? "", + role: user.role ?? "USER", + createdAt: + user.createdAt instanceof Date + ? user.createdAt.toISOString() + : (user.createdAt ?? new Date().toISOString()), }); putBridgeToken(nonce, token); diff --git a/src/auth.ts b/src/auth.ts index 18b64de3..cc8cdfa7 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -8,7 +8,7 @@ * 4. Desktop OAuth — browser OAuth here, then /api/desktop/token mints * a fresh JWE for Tauri to pick up via the bridge. * - * The desktop bearer JWEs all use `DESKTOP_BEARER_SALT` (lib/auth-cookies.ts) + * The desktop bearer JWEs all use `DESKTOP_BEARER_SALT` (lib/auth-tokens.ts) * so lib/session.ts can decrypt them in middleware. The web cookie uses Auth.js's * default salt (= cookie name) and is never encoded by us directly except in the * magic-link verify route, which uses `getWebSessionCookie()` to stay aligned. @@ -22,10 +22,11 @@ import { UserRole } from "./generated/client/client"; import prisma from "@src/server/db"; import * as UserService from "@src/server/service/user-service"; +import { SESSION_TTL_SECONDS } from "@src/lib/auth-tokens"; export const { handlers, auth, signIn, signOut } = NextAuth({ adapter: PrismaAdapter(prisma), - session: { strategy: "jwt", maxAge: 30 * 24 * 60 * 60 }, + session: { strategy: "jwt", maxAge: SESSION_TTL_SECONDS }, pages: { signIn: "/" }, providers: [ Google({ diff --git a/src/generated/client/browser.ts b/src/generated/client/browser.ts deleted file mode 100644 index 67c129be..00000000 --- a/src/generated/client/browser.ts +++ /dev/null @@ -1,64 +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' -export { Prisma } -export * as $Enums from './enums' -export * from './enums'; -/** - * Model User - * - */ -export type User = Prisma.UserModel -/** - * Model Account - * - */ -export type Account = Prisma.AccountModel -/** - * Model Session - * - */ -export type Session = Prisma.SessionModel -/** - * Model VerificationToken - * - */ -export type VerificationToken = Prisma.VerificationTokenModel -/** - * Model MagicLinkToken - * - */ -export type MagicLinkToken = Prisma.MagicLinkTokenModel -/** - * Model Transaction - * - */ -export type Transaction = Prisma.TransactionModel -/** - * Model Project - * - */ -export type Project = Prisma.ProjectModel -/** - * Model ProjectMember - * - */ -export type ProjectMember = Prisma.ProjectMemberModel -/** - * Model ProjectInvitation - * - */ -export type ProjectInvitation = Prisma.ProjectInvitationModel diff --git a/src/generated/client/client.ts b/src/generated/client/client.ts deleted file mode 100644 index 659230b0..00000000 --- a/src/generated/client/client.ts +++ /dev/null @@ -1,88 +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/client" -import * as $Enums from "./enums" -import * as $Class from "./internal/class" -import * as Prisma from "./internal/prismaNamespace" - -export * as $Enums from './enums' -export * from "./enums" -/** - * ## Prisma Client - * - * Type-safe database client for TypeScript - * @example - * ``` - * const prisma = new PrismaClient({ - * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) - * }) - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://pris.ly/d/client). - */ -export const PrismaClient = $Class.getPrismaClientClass() -export type PrismaClient = $Class.PrismaClient -export { Prisma } - -/** - * Model User - * - */ -export type User = Prisma.UserModel -/** - * Model Account - * - */ -export type Account = Prisma.AccountModel -/** - * Model Session - * - */ -export type Session = Prisma.SessionModel -/** - * Model VerificationToken - * - */ -export type VerificationToken = Prisma.VerificationTokenModel -/** - * Model MagicLinkToken - * - */ -export type MagicLinkToken = Prisma.MagicLinkTokenModel -/** - * Model Transaction - * - */ -export type Transaction = Prisma.TransactionModel -/** - * Model Project - * - */ -export type Project = Prisma.ProjectModel -/** - * Model ProjectMember - * - */ -export type ProjectMember = Prisma.ProjectMemberModel -/** - * Model ProjectInvitation - * - */ -export type ProjectInvitation = Prisma.ProjectInvitationModel diff --git a/src/generated/client/commonInputTypes.ts b/src/generated/client/commonInputTypes.ts deleted file mode 100644 index fa37c0df..00000000 --- a/src/generated/client/commonInputTypes.ts +++ /dev/null @@ -1,617 +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/client" -import * as $Enums from "./enums" -import type * as Prisma from "./internal/prismaNamespace" - - -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 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 DateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null -} - -export type 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 EnumUserRoleFilter<$PrismaModel = never> = { - equals?: $Enums.UserRole | Prisma.EnumUserRoleFieldRefInput<$PrismaModel> - in?: $Enums.UserRole[] | Prisma.ListEnumUserRoleFieldRefInput<$PrismaModel> - notIn?: $Enums.UserRole[] | Prisma.ListEnumUserRoleFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumUserRoleFilter<$PrismaModel> | $Enums.UserRole -} - -export type BoolFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean -} - -export type EnumSubscriptionProviderNullableFilter<$PrismaModel = never> = { - equals?: $Enums.SubscriptionProvider | Prisma.EnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - in?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - notIn?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - not?: Prisma.NestedEnumSubscriptionProviderNullableFilter<$PrismaModel> | $Enums.SubscriptionProvider | null -} - -export type JsonNullableFilter<$PrismaModel = never> = -| Prisma.PatchUndefined< - Prisma.Either>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, 'path'>> - -export type JsonNullableFilterBase<$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 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 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 DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> -} - -export type 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 EnumUserRoleWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.UserRole | Prisma.EnumUserRoleFieldRefInput<$PrismaModel> - in?: $Enums.UserRole[] | Prisma.ListEnumUserRoleFieldRefInput<$PrismaModel> - notIn?: $Enums.UserRole[] | Prisma.ListEnumUserRoleFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumUserRoleWithAggregatesFilter<$PrismaModel> | $Enums.UserRole - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedEnumUserRoleFilter<$PrismaModel> - _max?: Prisma.NestedEnumUserRoleFilter<$PrismaModel> -} - -export type BoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedBoolFilter<$PrismaModel> - _max?: Prisma.NestedBoolFilter<$PrismaModel> -} - -export type EnumSubscriptionProviderNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.SubscriptionProvider | Prisma.EnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - in?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - notIn?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - not?: Prisma.NestedEnumSubscriptionProviderNullableWithAggregatesFilter<$PrismaModel> | $Enums.SubscriptionProvider | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedEnumSubscriptionProviderNullableFilter<$PrismaModel> - _max?: Prisma.NestedEnumSubscriptionProviderNullableFilter<$PrismaModel> -} - -export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = -| Prisma.PatchUndefined< - Prisma.Either>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, 'path'>> - -export type JsonNullableWithAggregatesFilterBase<$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.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedJsonNullableFilter<$PrismaModel> - _max?: Prisma.NestedJsonNullableFilter<$PrismaModel> -} - -export type IntNullableFilter<$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 IntNullableWithAggregatesFilter<$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.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> - _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedIntNullableFilter<$PrismaModel> - _max?: Prisma.NestedIntNullableFilter<$PrismaModel> -} - -export type 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 EnumSubscriptionProviderFilter<$PrismaModel = never> = { - equals?: $Enums.SubscriptionProvider | Prisma.EnumSubscriptionProviderFieldRefInput<$PrismaModel> - in?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> - notIn?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumSubscriptionProviderFilter<$PrismaModel> | $Enums.SubscriptionProvider -} - -export type EnumSubscriptionProviderWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.SubscriptionProvider | Prisma.EnumSubscriptionProviderFieldRefInput<$PrismaModel> - in?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> - notIn?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumSubscriptionProviderWithAggregatesFilter<$PrismaModel> | $Enums.SubscriptionProvider - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedEnumSubscriptionProviderFilter<$PrismaModel> - _max?: Prisma.NestedEnumSubscriptionProviderFilter<$PrismaModel> -} - -export type EnumProjectRoleFilter<$PrismaModel = never> = { - equals?: $Enums.ProjectRole | Prisma.EnumProjectRoleFieldRefInput<$PrismaModel> - in?: $Enums.ProjectRole[] | Prisma.ListEnumProjectRoleFieldRefInput<$PrismaModel> - notIn?: $Enums.ProjectRole[] | Prisma.ListEnumProjectRoleFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumProjectRoleFilter<$PrismaModel> | $Enums.ProjectRole -} - -export type EnumProjectRoleWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.ProjectRole | Prisma.EnumProjectRoleFieldRefInput<$PrismaModel> - in?: $Enums.ProjectRole[] | Prisma.ListEnumProjectRoleFieldRefInput<$PrismaModel> - notIn?: $Enums.ProjectRole[] | Prisma.ListEnumProjectRoleFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumProjectRoleWithAggregatesFilter<$PrismaModel> | $Enums.ProjectRole - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedEnumProjectRoleFilter<$PrismaModel> - _max?: Prisma.NestedEnumProjectRoleFilter<$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 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 NestedDateTimeNullableFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null -} - -export type 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 NestedEnumUserRoleFilter<$PrismaModel = never> = { - equals?: $Enums.UserRole | Prisma.EnumUserRoleFieldRefInput<$PrismaModel> - in?: $Enums.UserRole[] | Prisma.ListEnumUserRoleFieldRefInput<$PrismaModel> - notIn?: $Enums.UserRole[] | Prisma.ListEnumUserRoleFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumUserRoleFilter<$PrismaModel> | $Enums.UserRole -} - -export type NestedBoolFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolFilter<$PrismaModel> | boolean -} - -export type NestedEnumSubscriptionProviderNullableFilter<$PrismaModel = never> = { - equals?: $Enums.SubscriptionProvider | Prisma.EnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - in?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - notIn?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - not?: Prisma.NestedEnumSubscriptionProviderNullableFilter<$PrismaModel> | $Enums.SubscriptionProvider | null -} - -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 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 NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> | null - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> -} - -export type 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 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 NestedEnumUserRoleWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.UserRole | Prisma.EnumUserRoleFieldRefInput<$PrismaModel> - in?: $Enums.UserRole[] | Prisma.ListEnumUserRoleFieldRefInput<$PrismaModel> - notIn?: $Enums.UserRole[] | Prisma.ListEnumUserRoleFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumUserRoleWithAggregatesFilter<$PrismaModel> | $Enums.UserRole - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedEnumUserRoleFilter<$PrismaModel> - _max?: Prisma.NestedEnumUserRoleFilter<$PrismaModel> -} - -export type NestedBoolWithAggregatesFilter<$PrismaModel = never> = { - equals?: boolean | Prisma.BooleanFieldRefInput<$PrismaModel> - not?: Prisma.NestedBoolWithAggregatesFilter<$PrismaModel> | boolean - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedBoolFilter<$PrismaModel> - _max?: Prisma.NestedBoolFilter<$PrismaModel> -} - -export type NestedEnumSubscriptionProviderNullableWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.SubscriptionProvider | Prisma.EnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - in?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - notIn?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> | null - not?: Prisma.NestedEnumSubscriptionProviderNullableWithAggregatesFilter<$PrismaModel> | $Enums.SubscriptionProvider | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedEnumSubscriptionProviderNullableFilter<$PrismaModel> - _max?: Prisma.NestedEnumSubscriptionProviderNullableFilter<$PrismaModel> -} - -export type NestedJsonNullableFilter<$PrismaModel = never> = -| Prisma.PatchUndefined< - Prisma.Either>, Exclude>, 'path'>>, - Required> - > -| Prisma.OptionalFlat>, 'path'>> - -export type NestedJsonNullableFilterBase<$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 NestedIntNullableWithAggregatesFilter<$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.NestedIntNullableWithAggregatesFilter<$PrismaModel> | number | null - _count?: Prisma.NestedIntNullableFilter<$PrismaModel> - _avg?: Prisma.NestedFloatNullableFilter<$PrismaModel> - _sum?: Prisma.NestedIntNullableFilter<$PrismaModel> - _min?: Prisma.NestedIntNullableFilter<$PrismaModel> - _max?: Prisma.NestedIntNullableFilter<$PrismaModel> -} - -export type NestedFloatNullableFilter<$PrismaModel = never> = { - equals?: number | Prisma.FloatFieldRefInput<$PrismaModel> | null - in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null - notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel> | null - lt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - lte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gt?: number | Prisma.FloatFieldRefInput<$PrismaModel> - gte?: number | Prisma.FloatFieldRefInput<$PrismaModel> - not?: Prisma.NestedFloatNullableFilter<$PrismaModel> | number | null -} - -export type 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 -} - -export type NestedEnumSubscriptionProviderFilter<$PrismaModel = never> = { - equals?: $Enums.SubscriptionProvider | Prisma.EnumSubscriptionProviderFieldRefInput<$PrismaModel> - in?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> - notIn?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumSubscriptionProviderFilter<$PrismaModel> | $Enums.SubscriptionProvider -} - -export type NestedEnumSubscriptionProviderWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.SubscriptionProvider | Prisma.EnumSubscriptionProviderFieldRefInput<$PrismaModel> - in?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> - notIn?: $Enums.SubscriptionProvider[] | Prisma.ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumSubscriptionProviderWithAggregatesFilter<$PrismaModel> | $Enums.SubscriptionProvider - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedEnumSubscriptionProviderFilter<$PrismaModel> - _max?: Prisma.NestedEnumSubscriptionProviderFilter<$PrismaModel> -} - -export type NestedEnumProjectRoleFilter<$PrismaModel = never> = { - equals?: $Enums.ProjectRole | Prisma.EnumProjectRoleFieldRefInput<$PrismaModel> - in?: $Enums.ProjectRole[] | Prisma.ListEnumProjectRoleFieldRefInput<$PrismaModel> - notIn?: $Enums.ProjectRole[] | Prisma.ListEnumProjectRoleFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumProjectRoleFilter<$PrismaModel> | $Enums.ProjectRole -} - -export type NestedEnumProjectRoleWithAggregatesFilter<$PrismaModel = never> = { - equals?: $Enums.ProjectRole | Prisma.EnumProjectRoleFieldRefInput<$PrismaModel> - in?: $Enums.ProjectRole[] | Prisma.ListEnumProjectRoleFieldRefInput<$PrismaModel> - notIn?: $Enums.ProjectRole[] | Prisma.ListEnumProjectRoleFieldRefInput<$PrismaModel> - not?: Prisma.NestedEnumProjectRoleWithAggregatesFilter<$PrismaModel> | $Enums.ProjectRole - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedEnumProjectRoleFilter<$PrismaModel> - _max?: Prisma.NestedEnumProjectRoleFilter<$PrismaModel> -} - - diff --git a/src/generated/client/enums.ts b/src/generated/client/enums.ts deleted file mode 100644 index fa949563..00000000 --- a/src/generated/client/enums.ts +++ /dev/null @@ -1,35 +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 ProjectRole = { - OWNER: 'OWNER', - ADMIN: 'ADMIN', - EDITOR: 'EDITOR', - VIEWER: 'VIEWER' -} as const - -export type ProjectRole = (typeof ProjectRole)[keyof typeof ProjectRole] - - -export const UserRole = { - USER: 'USER', - ADMIN: 'ADMIN' -} as const - -export type UserRole = (typeof UserRole)[keyof typeof UserRole] - - -export const SubscriptionProvider = { - STRIPE: 'STRIPE', - APPLE: 'APPLE' -} as const - -export type SubscriptionProvider = (typeof SubscriptionProvider)[keyof typeof SubscriptionProvider] diff --git a/src/generated/client/internal/class.ts b/src/generated/client/internal/class.ts deleted file mode 100644 index e46d9c76..00000000 --- a/src/generated/client/internal/class.ts +++ /dev/null @@ -1,284 +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/client" -import type * as Prisma from "./prismaNamespace" - - -const config: runtime.GetPrismaClientConfig = { - "previewFeatures": [], - "clientVersion": "7.7.0", - "engineVersion": "75cbdc1eb7150937890ad5465d861175c6624711", - "activeProvider": "postgresql", - "inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../src/generated/client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nenum ProjectRole {\n OWNER\n ADMIN\n EDITOR\n VIEWER\n}\n\nenum UserRole {\n USER\n ADMIN\n}\n\nenum SubscriptionProvider {\n STRIPE\n APPLE\n}\n\nmodel User {\n id String @id @default(uuid(7))\n createdAt DateTime @default(now())\n email String @unique\n emailVerified DateTime?\n username String?\n color String?\n role UserRole @default(USER)\n\n isProUntil DateTime?\n isSubscriptionCancelled Boolean @default(false)\n subscriptionProvider SubscriptionProvider?\n\n settings Json?\n\n accounts Account[]\n sessions Session[]\n projects ProjectMember[]\n transactions Transaction[]\n}\n\nmodel Account {\n id String @id @default(cuid())\n userId String\n type String\n provider String\n providerAccountId String\n refresh_token String? @db.Text\n access_token String? @db.Text\n expires_at Int?\n token_type String?\n scope String?\n id_token String? @db.Text\n session_state String?\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@unique([provider, providerAccountId])\n}\n\nmodel Session {\n id String @id @default(cuid())\n sessionToken String @unique\n userId String\n expires DateTime\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n}\n\nmodel VerificationToken {\n identifier String\n token String @unique\n expires DateTime\n\n @@unique([identifier, token])\n}\n\nmodel MagicLinkToken {\n id Int @id @default(autoincrement())\n email String\n tokenHash String @unique\n expiresAt DateTime\n createdAt DateTime @default(now())\n\n desktopNonce String?\n inviteToken String?\n\n @@index([email, createdAt])\n}\n\nmodel Transaction {\n id Int @id @default(autoincrement())\n userId String\n provider SubscriptionProvider\n transactionId String @unique\n createdAt DateTime @default(now())\n\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n @@index([userId])\n}\n\nmodel Project {\n id String @id @default(uuid(7))\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n title String\n description String?\n author String?\n hasPoster Boolean @default(false)\n\n members ProjectMember[]\n invitations ProjectInvitation[]\n}\n\nmodel ProjectMember {\n id Int @id @default(autoincrement())\n role ProjectRole @default(VIEWER)\n\n user User @relation(fields: [userId], references: [id])\n userId String\n project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)\n projectId String\n\n @@unique([userId, projectId])\n}\n\nmodel ProjectInvitation {\n id Int @id @default(autoincrement())\n token String @unique\n email String\n createdAt DateTime @default(now())\n\n project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)\n projectId String\n\n @@unique([email, projectId])\n}\n", - "runtimeDataModel": { - "models": {}, - "enums": {}, - "types": {} - }, - "parameterizationSchema": { - "strings": [], - "graph": "" - } -} - -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"emailVerified\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"username\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"color\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"UserRole\"},{\"name\":\"isProUntil\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"isSubscriptionCancelled\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"subscriptionProvider\",\"kind\":\"enum\",\"type\":\"SubscriptionProvider\"},{\"name\":\"settings\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"accounts\",\"kind\":\"object\",\"type\":\"Account\",\"relationName\":\"AccountToUser\"},{\"name\":\"sessions\",\"kind\":\"object\",\"type\":\"Session\",\"relationName\":\"SessionToUser\"},{\"name\":\"projects\",\"kind\":\"object\",\"type\":\"ProjectMember\",\"relationName\":\"ProjectMemberToUser\"},{\"name\":\"transactions\",\"kind\":\"object\",\"type\":\"Transaction\",\"relationName\":\"TransactionToUser\"}],\"dbName\":null},\"Account\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"provider\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"providerAccountId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"refresh_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"access_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires_at\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"token_type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"scope\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"id_token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"session_state\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"AccountToUser\"}],\"dbName\":null},\"Session\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"sessionToken\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"SessionToUser\"}],\"dbName\":null},\"VerificationToken\":{\"fields\":[{\"name\":\"identifier\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expires\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"MagicLinkToken\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"tokenHash\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"expiresAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"desktopNonce\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"inviteToken\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"Transaction\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"provider\",\"kind\":\"enum\",\"type\":\"SubscriptionProvider\"},{\"name\":\"transactionId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"TransactionToUser\"}],\"dbName\":null},\"Project\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"title\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"description\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"author\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"hasPoster\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"members\",\"kind\":\"object\",\"type\":\"ProjectMember\",\"relationName\":\"ProjectToProjectMember\"},{\"name\":\"invitations\",\"kind\":\"object\",\"type\":\"ProjectInvitation\",\"relationName\":\"ProjectToProjectInvitation\"}],\"dbName\":null},\"ProjectMember\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"role\",\"kind\":\"enum\",\"type\":\"ProjectRole\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"ProjectMemberToUser\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"project\",\"kind\":\"object\",\"type\":\"Project\",\"relationName\":\"ProjectToProjectMember\"},{\"name\":\"projectId\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"ProjectInvitation\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"token\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"project\",\"kind\":\"object\",\"type\":\"Project\",\"relationName\":\"ProjectToProjectInvitation\"},{\"name\":\"projectId\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") -config.parameterizationSchema = { - strings: JSON.parse("[\"where\",\"orderBy\",\"cursor\",\"user\",\"accounts\",\"sessions\",\"members\",\"project\",\"invitations\",\"_count\",\"projects\",\"transactions\",\"User.findUnique\",\"User.findUniqueOrThrow\",\"User.findFirst\",\"User.findFirstOrThrow\",\"User.findMany\",\"data\",\"User.createOne\",\"User.createMany\",\"User.createManyAndReturn\",\"User.updateOne\",\"User.updateMany\",\"User.updateManyAndReturn\",\"create\",\"update\",\"User.upsertOne\",\"User.deleteOne\",\"User.deleteMany\",\"having\",\"_min\",\"_max\",\"User.groupBy\",\"User.aggregate\",\"Account.findUnique\",\"Account.findUniqueOrThrow\",\"Account.findFirst\",\"Account.findFirstOrThrow\",\"Account.findMany\",\"Account.createOne\",\"Account.createMany\",\"Account.createManyAndReturn\",\"Account.updateOne\",\"Account.updateMany\",\"Account.updateManyAndReturn\",\"Account.upsertOne\",\"Account.deleteOne\",\"Account.deleteMany\",\"_avg\",\"_sum\",\"Account.groupBy\",\"Account.aggregate\",\"Session.findUnique\",\"Session.findUniqueOrThrow\",\"Session.findFirst\",\"Session.findFirstOrThrow\",\"Session.findMany\",\"Session.createOne\",\"Session.createMany\",\"Session.createManyAndReturn\",\"Session.updateOne\",\"Session.updateMany\",\"Session.updateManyAndReturn\",\"Session.upsertOne\",\"Session.deleteOne\",\"Session.deleteMany\",\"Session.groupBy\",\"Session.aggregate\",\"VerificationToken.findUnique\",\"VerificationToken.findUniqueOrThrow\",\"VerificationToken.findFirst\",\"VerificationToken.findFirstOrThrow\",\"VerificationToken.findMany\",\"VerificationToken.createOne\",\"VerificationToken.createMany\",\"VerificationToken.createManyAndReturn\",\"VerificationToken.updateOne\",\"VerificationToken.updateMany\",\"VerificationToken.updateManyAndReturn\",\"VerificationToken.upsertOne\",\"VerificationToken.deleteOne\",\"VerificationToken.deleteMany\",\"VerificationToken.groupBy\",\"VerificationToken.aggregate\",\"MagicLinkToken.findUnique\",\"MagicLinkToken.findUniqueOrThrow\",\"MagicLinkToken.findFirst\",\"MagicLinkToken.findFirstOrThrow\",\"MagicLinkToken.findMany\",\"MagicLinkToken.createOne\",\"MagicLinkToken.createMany\",\"MagicLinkToken.createManyAndReturn\",\"MagicLinkToken.updateOne\",\"MagicLinkToken.updateMany\",\"MagicLinkToken.updateManyAndReturn\",\"MagicLinkToken.upsertOne\",\"MagicLinkToken.deleteOne\",\"MagicLinkToken.deleteMany\",\"MagicLinkToken.groupBy\",\"MagicLinkToken.aggregate\",\"Transaction.findUnique\",\"Transaction.findUniqueOrThrow\",\"Transaction.findFirst\",\"Transaction.findFirstOrThrow\",\"Transaction.findMany\",\"Transaction.createOne\",\"Transaction.createMany\",\"Transaction.createManyAndReturn\",\"Transaction.updateOne\",\"Transaction.updateMany\",\"Transaction.updateManyAndReturn\",\"Transaction.upsertOne\",\"Transaction.deleteOne\",\"Transaction.deleteMany\",\"Transaction.groupBy\",\"Transaction.aggregate\",\"Project.findUnique\",\"Project.findUniqueOrThrow\",\"Project.findFirst\",\"Project.findFirstOrThrow\",\"Project.findMany\",\"Project.createOne\",\"Project.createMany\",\"Project.createManyAndReturn\",\"Project.updateOne\",\"Project.updateMany\",\"Project.updateManyAndReturn\",\"Project.upsertOne\",\"Project.deleteOne\",\"Project.deleteMany\",\"Project.groupBy\",\"Project.aggregate\",\"ProjectMember.findUnique\",\"ProjectMember.findUniqueOrThrow\",\"ProjectMember.findFirst\",\"ProjectMember.findFirstOrThrow\",\"ProjectMember.findMany\",\"ProjectMember.createOne\",\"ProjectMember.createMany\",\"ProjectMember.createManyAndReturn\",\"ProjectMember.updateOne\",\"ProjectMember.updateMany\",\"ProjectMember.updateManyAndReturn\",\"ProjectMember.upsertOne\",\"ProjectMember.deleteOne\",\"ProjectMember.deleteMany\",\"ProjectMember.groupBy\",\"ProjectMember.aggregate\",\"ProjectInvitation.findUnique\",\"ProjectInvitation.findUniqueOrThrow\",\"ProjectInvitation.findFirst\",\"ProjectInvitation.findFirstOrThrow\",\"ProjectInvitation.findMany\",\"ProjectInvitation.createOne\",\"ProjectInvitation.createMany\",\"ProjectInvitation.createManyAndReturn\",\"ProjectInvitation.updateOne\",\"ProjectInvitation.updateMany\",\"ProjectInvitation.updateManyAndReturn\",\"ProjectInvitation.upsertOne\",\"ProjectInvitation.deleteOne\",\"ProjectInvitation.deleteMany\",\"ProjectInvitation.groupBy\",\"ProjectInvitation.aggregate\",\"AND\",\"OR\",\"NOT\",\"id\",\"token\",\"email\",\"createdAt\",\"projectId\",\"equals\",\"in\",\"notIn\",\"lt\",\"lte\",\"gt\",\"gte\",\"not\",\"contains\",\"startsWith\",\"endsWith\",\"ProjectRole\",\"role\",\"userId\",\"updatedAt\",\"title\",\"description\",\"author\",\"hasPoster\",\"every\",\"some\",\"none\",\"SubscriptionProvider\",\"provider\",\"transactionId\",\"tokenHash\",\"expiresAt\",\"desktopNonce\",\"inviteToken\",\"identifier\",\"expires\",\"identifier_token\",\"sessionToken\",\"type\",\"providerAccountId\",\"refresh_token\",\"access_token\",\"expires_at\",\"token_type\",\"scope\",\"id_token\",\"session_state\",\"emailVerified\",\"username\",\"color\",\"UserRole\",\"isProUntil\",\"isSubscriptionCancelled\",\"subscriptionProvider\",\"settings\",\"string_contains\",\"string_starts_with\",\"string_ends_with\",\"array_starts_with\",\"array_ends_with\",\"array_contains\",\"email_projectId\",\"userId_projectId\",\"provider_providerAccountId\",\"is\",\"isNot\",\"connectOrCreate\",\"upsert\",\"createMany\",\"set\",\"disconnect\",\"delete\",\"connect\",\"updateMany\",\"deleteMany\",\"increment\",\"decrement\",\"multiply\",\"divide\"]"), - graph: "9ANVkAESBAAArAIAIAUAAK0CACAKAACKAgAgCwAArgIAIKQBAACnAgAwpQEAAB8AEKYBAACnAgAwpwEBAAAAAakBAQAAAAGqAUAAhwIAIbgBAACpAtoBItYBQACoAgAh1wEBAIgCACHYAQEAiAIAIdoBQACoAgAh2wEgAIkCACHcAQAAqgLDASPdAQAAqwIAIAEAAAABACAQAwAAsQIAIKQBAAC6AgAwpQEAAAMAEKYBAAC6AgAwpwEBAIYCACG5AQEAhgIAIcMBAQCGAgAhzQEBAIYCACHOAQEAhgIAIc8BAQCIAgAh0AEBAIgCACHRAQIAuwIAIdIBAQCIAgAh0wEBAIgCACHUAQEAiAIAIdUBAQCIAgAhCAMAAM8DACDPAQAA0AIAINABAADQAgAg0QEAANACACDSAQAA0AIAINMBAADQAgAg1AEAANACACDVAQAA0AIAIBEDAACxAgAgpAEAALoCADClAQAAAwAQpgEAALoCADCnAQEAAAABuQEBAIYCACHDAQEAhgIAIc0BAQCGAgAhzgEBAIYCACHPAQEAiAIAIdABAQCIAgAh0QECALsCACHSAQEAiAIAIdMBAQCIAgAh1AEBAIgCACHVAQEAiAIAIeYBAAC5AgAgAwAAAAMAIAEAAAQAMAIAAAUAIAgDAACxAgAgpAEAALgCADClAQAABwAQpgEAALgCADCnAQEAhgIAIbkBAQCGAgAhygFAAIcCACHMAQEAhgIAIQEDAADPAwAgCAMAALECACCkAQAAuAIAMKUBAAAHABCmAQAAuAIAMKcBAQAAAAG5AQEAhgIAIcoBQACHAgAhzAEBAAAAAQMAAAAHACABAAAIADACAAAJACAJAwAAsQIAIAcAALQCACCkAQAAtgIAMKUBAAALABCmAQAAtgIAMKcBAgCSAgAhqwEBAIYCACG4AQAAtwK4ASK5AQEAhgIAIQIDAADPAwAgBwAA0AMAIAoDAACxAgAgBwAAtAIAIKQBAAC2AgAwpQEAAAsAEKYBAAC2AgAwpwECAAAAAasBAQCGAgAhuAEAALcCuAEiuQEBAIYCACHlAQAAtQIAIAMAAAALACABAAAMADACAAANACADAAAACwAgAQAADAAwAgAADQAgCQcAALQCACCkAQAAswIAMKUBAAAQABCmAQAAswIAMKcBAgCSAgAhqAEBAIYCACGpAQEAhgIAIaoBQACHAgAhqwEBAIYCACEBBwAA0AMAIAoHAAC0AgAgpAEAALMCADClAQAAEAAQpgEAALMCADCnAQIAAAABqAEBAAAAAakBAQCGAgAhqgFAAIcCACGrAQEAhgIAIeQBAACyAgAgAwAAABAAIAEAABEAMAIAABIAIAEAAAALACABAAAAEAAgCQMAALECACCkAQAArwIAMKUBAAAWABCmAQAArwIAMKcBAgCSAgAhqgFAAIcCACG5AQEAhgIAIcMBAACwAsMBIsQBAQCGAgAhAQMAAM8DACAJAwAAsQIAIKQBAACvAgAwpQEAABYAEKYBAACvAgAwpwECAAAAAaoBQACHAgAhuQEBAIYCACHDAQAAsALDASLEAQEAAAABAwAAABYAIAEAABcAMAIAABgAIAEAAAADACABAAAABwAgAQAAAAsAIAEAAAAWACABAAAAAQAgEgQAAKwCACAFAACtAgAgCgAAigIAIAsAAK4CACCkAQAApwIAMKUBAAAfABCmAQAApwIAMKcBAQCGAgAhqQEBAIYCACGqAUAAhwIAIbgBAACpAtoBItYBQACoAgAh1wEBAIgCACHYAQEAiAIAIdoBQACoAgAh2wEgAIkCACHcAQAAqgLDASPdAQAAqwIAIAoEAADMAwAgBQAAzQMAIAoAAPICACALAADOAwAg1gEAANACACDXAQAA0AIAINgBAADQAgAg2gEAANACACDcAQAA0AIAIN0BAADQAgAgAwAAAB8AIAEAACAAMAIAAAEAIAMAAAAfACABAAAgADACAAABACADAAAAHwAgAQAAIAAwAgAAAQAgDwQAAMgDACAFAADJAwAgCgAAygMAIAsAAMsDACCnAQEAAAABqQEBAAAAAaoBQAAAAAG4AQAAANoBAtYBQAAAAAHXAQEAAAAB2AEBAAAAAdoBQAAAAAHbASAAAAAB3AEAAADDAQPdAYAAAAABAREAACQAIAunAQEAAAABqQEBAAAAAaoBQAAAAAG4AQAAANoBAtYBQAAAAAHXAQEAAAAB2AEBAAAAAdoBQAAAAAHbASAAAAAB3AEAAADDAQPdAYAAAAABAREAACYAMAERAAAmADAPBAAAlwMAIAUAAJgDACAKAACZAwAgCwAAmgMAIKcBAQDBAgAhqQEBAMECACGqAUAAwgIAIbgBAACVA9oBItYBQACUAwAh1wEBANQCACHYAQEA1AIAIdoBQACUAwAh2wEgANUCACHcAQAAlgPDASPdAYAAAAABAgAAAAEAIBEAACkAIAunAQEAwQIAIakBAQDBAgAhqgFAAMICACG4AQAAlQPaASLWAUAAlAMAIdcBAQDUAgAh2AEBANQCACHaAUAAlAMAIdsBIADVAgAh3AEAAJYDwwEj3QGAAAAAAQIAAAAfACARAAArACACAAAAHwAgEQAAKwAgAwAAAAEAIBgAACQAIBkAACkAIAEAAAABACABAAAAHwAgCQkAAJEDACAeAACTAwAgHwAAkgMAINYBAADQAgAg1wEAANACACDYAQAA0AIAINoBAADQAgAg3AEAANACACDdAQAA0AIAIA6kAQAAmwIAMKUBAAAyABCmAQAAmwIAMKcBAQDwAQAhqQEBAPABACGqAUAA8QEAIbgBAACdAtoBItYBQACcAgAh1wEBAP4BACHYAQEA_gEAIdoBQACcAgAh2wEgAP8BACHcAQAAngLDASPdAQAAnwIAIAMAAAAfACABAAAxADAdAAAyACADAAAAHwAgAQAAIAAwAgAAAQAgAQAAAAUAIAEAAAAFACADAAAAAwAgAQAABAAwAgAABQAgAwAAAAMAIAEAAAQAMAIAAAUAIAMAAAADACABAAAEADACAAAFACANAwAAkAMAIKcBAQAAAAG5AQEAAAABwwEBAAAAAc0BAQAAAAHOAQEAAAABzwEBAAAAAdABAQAAAAHRAQIAAAAB0gEBAAAAAdMBAQAAAAHUAQEAAAAB1QEBAAAAAQERAAA6ACAMpwEBAAAAAbkBAQAAAAHDAQEAAAABzQEBAAAAAc4BAQAAAAHPAQEAAAAB0AEBAAAAAdEBAgAAAAHSAQEAAAAB0wEBAAAAAdQBAQAAAAHVAQEAAAABAREAADwAMAERAAA8ADANAwAAjwMAIKcBAQDBAgAhuQEBAMECACHDAQEAwQIAIc0BAQDBAgAhzgEBAMECACHPAQEA1AIAIdABAQDUAgAh0QECAI4DACHSAQEA1AIAIdMBAQDUAgAh1AEBANQCACHVAQEA1AIAIQIAAAAFACARAAA_ACAMpwEBAMECACG5AQEAwQIAIcMBAQDBAgAhzQEBAMECACHOAQEAwQIAIc8BAQDUAgAh0AEBANQCACHRAQIAjgMAIdIBAQDUAgAh0wEBANQCACHUAQEA1AIAIdUBAQDUAgAhAgAAAAMAIBEAAEEAIAIAAAADACARAABBACADAAAABQAgGAAAOgAgGQAAPwAgAQAAAAUAIAEAAAADACAMCQAAiQMAIB4AAIwDACAfAACLAwAgMAAAigMAIDEAAI0DACDPAQAA0AIAINABAADQAgAg0QEAANACACDSAQAA0AIAINMBAADQAgAg1AEAANACACDVAQAA0AIAIA-kAQAAlwIAMKUBAABIABCmAQAAlwIAMKcBAQDwAQAhuQEBAPABACHDAQEA8AEAIc0BAQDwAQAhzgEBAPABACHPAQEA_gEAIdABAQD-AQAh0QECAJgCACHSAQEA_gEAIdMBAQD-AQAh1AEBAP4BACHVAQEA_gEAIQMAAAADACABAABHADAdAABIACADAAAAAwAgAQAABAAwAgAABQAgAQAAAAkAIAEAAAAJACADAAAABwAgAQAACAAwAgAACQAgAwAAAAcAIAEAAAgAMAIAAAkAIAMAAAAHACABAAAIADACAAAJACAFAwAAiAMAIKcBAQAAAAG5AQEAAAABygFAAAAAAcwBAQAAAAEBEQAAUAAgBKcBAQAAAAG5AQEAAAABygFAAAAAAcwBAQAAAAEBEQAAUgAwAREAAFIAMAUDAACHAwAgpwEBAMECACG5AQEAwQIAIcoBQADCAgAhzAEBAMECACECAAAACQAgEQAAVQAgBKcBAQDBAgAhuQEBAMECACHKAUAAwgIAIcwBAQDBAgAhAgAAAAcAIBEAAFcAIAIAAAAHACARAABXACADAAAACQAgGAAAUAAgGQAAVQAgAQAAAAkAIAEAAAAHACADCQAAhAMAIB4AAIYDACAfAACFAwAgB6QBAACWAgAwpQEAAF4AEKYBAACWAgAwpwEBAPABACG5AQEA8AEAIcoBQADxAQAhzAEBAPABACEDAAAABwAgAQAAXQAwHQAAXgAgAwAAAAcAIAEAAAgAMAIAAAkAIAekAQAAlAIAMKUBAABkABCmAQAAlAIAMKgBAQAAAAHJAQEAhgIAIcoBQACHAgAhywEAAJUCACABAAAAYQAgAQAAAGEAIAakAQAAlAIAMKUBAABkABCmAQAAlAIAMKgBAQCGAgAhyQEBAIYCACHKAUAAhwIAIQADAAAAZAAgAQAAZQAwAgAAYQAgAwAAAGQAIAEAAGUAMAIAAGEAIAMAAABkACABAABlADACAABhACADqAEBAAAAAckBAQAAAAHKAUAAAAABAREAAGkAIAOoAQEAAAAByQEBAAAAAcoBQAAAAAEBEQAAawAwAREAAGsAMAOoAQEAwQIAIckBAQDBAgAhygFAAMICACECAAAAYQAgEQAAbgAgA6gBAQDBAgAhyQEBAMECACHKAUAAwgIAIQIAAABkACARAABwACACAAAAZAAgEQAAcAAgAwAAAGEAIBgAAGkAIBkAAG4AIAEAAABhACABAAAAZAAgAwkAAIEDACAeAACDAwAgHwAAggMAIAakAQAAkwIAMKUBAAB3ABCmAQAAkwIAMKgBAQDwAQAhyQEBAPABACHKAUAA8QEAIQMAAABkACABAAB2ADAdAAB3ACADAAAAZAAgAQAAZQAwAgAAYQAgCqQBAACRAgAwpQEAAH0AEKYBAACRAgAwpwECAAAAAakBAQCGAgAhqgFAAIcCACHFAQEAAAABxgFAAIcCACHHAQEAiAIAIcgBAQCIAgAhAQAAAHoAIAEAAAB6ACAKpAEAAJECADClAQAAfQAQpgEAAJECADCnAQIAkgIAIakBAQCGAgAhqgFAAIcCACHFAQEAhgIAIcYBQACHAgAhxwEBAIgCACHIAQEAiAIAIQLHAQAA0AIAIMgBAADQAgAgAwAAAH0AIAEAAH4AMAIAAHoAIAMAAAB9ACABAAB-ADACAAB6ACADAAAAfQAgAQAAfgAwAgAAegAgB6cBAgAAAAGpAQEAAAABqgFAAAAAAcUBAQAAAAHGAUAAAAABxwEBAAAAAcgBAQAAAAEBEQAAggEAIAenAQIAAAABqQEBAAAAAaoBQAAAAAHFAQEAAAABxgFAAAAAAccBAQAAAAHIAQEAAAABAREAAIQBADABEQAAhAEAMAenAQIAwwIAIakBAQDBAgAhqgFAAMICACHFAQEAwQIAIcYBQADCAgAhxwEBANQCACHIAQEA1AIAIQIAAAB6ACARAACHAQAgB6cBAgDDAgAhqQEBAMECACGqAUAAwgIAIcUBAQDBAgAhxgFAAMICACHHAQEA1AIAIcgBAQDUAgAhAgAAAH0AIBEAAIkBACACAAAAfQAgEQAAiQEAIAMAAAB6ACAYAACCAQAgGQAAhwEAIAEAAAB6ACABAAAAfQAgBwkAAPwCACAeAAD_AgAgHwAA_gIAIDAAAP0CACAxAACAAwAgxwEAANACACDIAQAA0AIAIAqkAQAAkAIAMKUBAACQAQAQpgEAAJACADCnAQIA7wEAIakBAQDwAQAhqgFAAPEBACHFAQEA8AEAIcYBQADxAQAhxwEBAP4BACHIAQEA_gEAIQMAAAB9ACABAACPAQAwHQAAkAEAIAMAAAB9ACABAAB-ADACAAB6ACABAAAAGAAgAQAAABgAIAMAAAAWACABAAAXADACAAAYACADAAAAFgAgAQAAFwAwAgAAGAAgAwAAABYAIAEAABcAMAIAABgAIAYDAAD7AgAgpwECAAAAAaoBQAAAAAG5AQEAAAABwwEAAADDAQLEAQEAAAABAREAAJgBACAFpwECAAAAAaoBQAAAAAG5AQEAAAABwwEAAADDAQLEAQEAAAABAREAAJoBADABEQAAmgEAMAYDAAD6AgAgpwECAMMCACGqAUAAwgIAIbkBAQDBAgAhwwEAAPkCwwEixAEBAMECACECAAAAGAAgEQAAnQEAIAWnAQIAwwIAIaoBQADCAgAhuQEBAMECACHDAQAA-QLDASLEAQEAwQIAIQIAAAAWACARAACfAQAgAgAAABYAIBEAAJ8BACADAAAAGAAgGAAAmAEAIBkAAJ0BACABAAAAGAAgAQAAABYAIAUJAAD0AgAgHgAA9wIAIB8AAPYCACAwAAD1AgAgMQAA-AIAIAikAQAAjAIAMKUBAACmAQAQpgEAAIwCADCnAQIA7wEAIaoBQADxAQAhuQEBAPABACHDAQAAjQLDASLEAQEA8AEAIQMAAAAWACABAAClAQAwHQAApgEAIAMAAAAWACABAAAXADACAAAYACAMBgAAigIAIAgAAIsCACCkAQAAhQIAMKUBAACsAQAQpgEAAIUCADCnAQEAAAABqgFAAIcCACG6AUAAhwIAIbsBAQCGAgAhvAEBAIgCACG9AQEAiAIAIb4BIACJAgAhAQAAAKkBACABAAAAqQEAIAwGAACKAgAgCAAAiwIAIKQBAACFAgAwpQEAAKwBABCmAQAAhQIAMKcBAQCGAgAhqgFAAIcCACG6AUAAhwIAIbsBAQCGAgAhvAEBAIgCACG9AQEAiAIAIb4BIACJAgAhBAYAAPICACAIAADzAgAgvAEAANACACC9AQAA0AIAIAMAAACsAQAgAQAArQEAMAIAAKkBACADAAAArAEAIAEAAK0BADACAACpAQAgAwAAAKwBACABAACtAQAwAgAAqQEAIAkGAADwAgAgCAAA8QIAIKcBAQAAAAGqAUAAAAABugFAAAAAAbsBAQAAAAG8AQEAAAABvQEBAAAAAb4BIAAAAAEBEQAAsQEAIAenAQEAAAABqgFAAAAAAboBQAAAAAG7AQEAAAABvAEBAAAAAb0BAQAAAAG-ASAAAAABAREAALMBADABEQAAswEAMAkGAADWAgAgCAAA1wIAIKcBAQDBAgAhqgFAAMICACG6AUAAwgIAIbsBAQDBAgAhvAEBANQCACG9AQEA1AIAIb4BIADVAgAhAgAAAKkBACARAAC2AQAgB6cBAQDBAgAhqgFAAMICACG6AUAAwgIAIbsBAQDBAgAhvAEBANQCACG9AQEA1AIAIb4BIADVAgAhAgAAAKwBACARAAC4AQAgAgAAAKwBACARAAC4AQAgAwAAAKkBACAYAACxAQAgGQAAtgEAIAEAAACpAQAgAQAAAKwBACAFCQAA0QIAIB4AANMCACAfAADSAgAgvAEAANACACC9AQAA0AIAIAqkAQAA_QEAMKUBAAC_AQAQpgEAAP0BADCnAQEA8AEAIaoBQADxAQAhugFAAPEBACG7AQEA8AEAIbwBAQD-AQAhvQEBAP4BACG-ASAA_wEAIQMAAACsAQAgAQAAvgEAMB0AAL8BACADAAAArAEAIAEAAK0BADACAACpAQAgAQAAAA0AIAEAAAANACADAAAACwAgAQAADAAwAgAADQAgAwAAAAsAIAEAAAwAMAIAAA0AIAMAAAALACABAAAMADACAAANACAGAwAAzgIAIAcAAM8CACCnAQIAAAABqwEBAAAAAbgBAAAAuAECuQEBAAAAAQERAADHAQAgBKcBAgAAAAGrAQEAAAABuAEAAAC4AQK5AQEAAAABAREAAMkBADABEQAAyQEAMAYDAADMAgAgBwAAzQIAIKcBAgDDAgAhqwEBAMECACG4AQAAywK4ASK5AQEAwQIAIQIAAAANACARAADMAQAgBKcBAgDDAgAhqwEBAMECACG4AQAAywK4ASK5AQEAwQIAIQIAAAALACARAADOAQAgAgAAAAsAIBEAAM4BACADAAAADQAgGAAAxwEAIBkAAMwBACABAAAADQAgAQAAAAsAIAUJAADGAgAgHgAAyQIAIB8AAMgCACAwAADHAgAgMQAAygIAIAekAQAA-QEAMKUBAADVAQAQpgEAAPkBADCnAQIA7wEAIasBAQDwAQAhuAEAAPoBuAEiuQEBAPABACEDAAAACwAgAQAA1AEAMB0AANUBACADAAAACwAgAQAADAAwAgAADQAgAQAAABIAIAEAAAASACADAAAAEAAgAQAAEQAwAgAAEgAgAwAAABAAIAEAABEAMAIAABIAIAMAAAAQACABAAARADACAAASACAGBwAAxQIAIKcBAgAAAAGoAQEAAAABqQEBAAAAAaoBQAAAAAGrAQEAAAABAREAAN0BACAFpwECAAAAAagBAQAAAAGpAQEAAAABqgFAAAAAAasBAQAAAAEBEQAA3wEAMAERAADfAQAwBgcAAMQCACCnAQIAwwIAIagBAQDBAgAhqQEBAMECACGqAUAAwgIAIasBAQDBAgAhAgAAABIAIBEAAOIBACAFpwECAMMCACGoAQEAwQIAIakBAQDBAgAhqgFAAMICACGrAQEAwQIAIQIAAAAQACARAADkAQAgAgAAABAAIBEAAOQBACADAAAAEgAgGAAA3QEAIBkAAOIBACABAAAAEgAgAQAAABAAIAUJAAC8AgAgHgAAvwIAIB8AAL4CACAwAAC9AgAgMQAAwAIAIAikAQAA7gEAMKUBAADrAQAQpgEAAO4BADCnAQIA7wEAIagBAQDwAQAhqQEBAPABACGqAUAA8QEAIasBAQDwAQAhAwAAABAAIAEAAOoBADAdAADrAQAgAwAAABAAIAEAABEAMAIAABIAIAikAQAA7gEAMKUBAADrAQAQpgEAAO4BADCnAQIA7wEAIagBAQDwAQAhqQEBAPABACGqAUAA8QEAIasBAQDwAQAhDQkAAPMBACAeAADzAQAgHwAA8wEAIDAAAPgBACAxAADzAQAgrAECAAAAAa0BAgAAAASuAQIAAAAErwECAAAAAbABAgAAAAGxAQIAAAABsgECAAAAAbMBAgD3AQAhDgkAAPMBACAeAAD2AQAgHwAA9gEAIKwBAQAAAAGtAQEAAAAErgEBAAAABK8BAQAAAAGwAQEAAAABsQEBAAAAAbIBAQAAAAGzAQEA9QEAIbQBAQAAAAG1AQEAAAABtgEBAAAAAQsJAADzAQAgHgAA9AEAIB8AAPQBACCsAUAAAAABrQFAAAAABK4BQAAAAASvAUAAAAABsAFAAAAAAbEBQAAAAAGyAUAAAAABswFAAPIBACELCQAA8wEAIB4AAPQBACAfAAD0AQAgrAFAAAAAAa0BQAAAAASuAUAAAAAErwFAAAAAAbABQAAAAAGxAUAAAAABsgFAAAAAAbMBQADyAQAhCKwBAgAAAAGtAQIAAAAErgECAAAABK8BAgAAAAGwAQIAAAABsQECAAAAAbIBAgAAAAGzAQIA8wEAIQisAUAAAAABrQFAAAAABK4BQAAAAASvAUAAAAABsAFAAAAAAbEBQAAAAAGyAUAAAAABswFAAPQBACEOCQAA8wEAIB4AAPYBACAfAAD2AQAgrAEBAAAAAa0BAQAAAASuAQEAAAAErwEBAAAAAbABAQAAAAGxAQEAAAABsgEBAAAAAbMBAQD1AQAhtAEBAAAAAbUBAQAAAAG2AQEAAAABC6wBAQAAAAGtAQEAAAAErgEBAAAABK8BAQAAAAGwAQEAAAABsQEBAAAAAbIBAQAAAAGzAQEA9gEAIbQBAQAAAAG1AQEAAAABtgEBAAAAAQ0JAADzAQAgHgAA8wEAIB8AAPMBACAwAAD4AQAgMQAA8wEAIKwBAgAAAAGtAQIAAAAErgECAAAABK8BAgAAAAGwAQIAAAABsQECAAAAAbIBAgAAAAGzAQIA9wEAIQisAQgAAAABrQEIAAAABK4BCAAAAASvAQgAAAABsAEIAAAAAbEBCAAAAAGyAQgAAAABswEIAPgBACEHpAEAAPkBADClAQAA1QEAEKYBAAD5AQAwpwECAO8BACGrAQEA8AEAIbgBAAD6AbgBIrkBAQDwAQAhBwkAAPMBACAeAAD8AQAgHwAA_AEAIKwBAAAAuAECrQEAAAC4AQiuAQAAALgBCLMBAAD7AbgBIgcJAADzAQAgHgAA_AEAIB8AAPwBACCsAQAAALgBAq0BAAAAuAEIrgEAAAC4AQizAQAA-wG4ASIErAEAAAC4AQKtAQAAALgBCK4BAAAAuAEIswEAAPwBuAEiCqQBAAD9AQAwpQEAAL8BABCmAQAA_QEAMKcBAQDwAQAhqgFAAPEBACG6AUAA8QEAIbsBAQDwAQAhvAEBAP4BACG9AQEA_gEAIb4BIAD_AQAhDgkAAIMCACAeAACEAgAgHwAAhAIAIKwBAQAAAAGtAQEAAAAFrgEBAAAABa8BAQAAAAGwAQEAAAABsQEBAAAAAbIBAQAAAAGzAQEAggIAIbQBAQAAAAG1AQEAAAABtgEBAAAAAQUJAADzAQAgHgAAgQIAIB8AAIECACCsASAAAAABswEgAIACACEFCQAA8wEAIB4AAIECACAfAACBAgAgrAEgAAAAAbMBIACAAgAhAqwBIAAAAAGzASAAgQIAIQ4JAACDAgAgHgAAhAIAIB8AAIQCACCsAQEAAAABrQEBAAAABa4BAQAAAAWvAQEAAAABsAEBAAAAAbEBAQAAAAGyAQEAAAABswEBAIICACG0AQEAAAABtQEBAAAAAbYBAQAAAAEIrAECAAAAAa0BAgAAAAWuAQIAAAAFrwECAAAAAbABAgAAAAGxAQIAAAABsgECAAAAAbMBAgCDAgAhC6wBAQAAAAGtAQEAAAAFrgEBAAAABa8BAQAAAAGwAQEAAAABsQEBAAAAAbIBAQAAAAGzAQEAhAIAIbQBAQAAAAG1AQEAAAABtgEBAAAAAQwGAACKAgAgCAAAiwIAIKQBAACFAgAwpQEAAKwBABCmAQAAhQIAMKcBAQCGAgAhqgFAAIcCACG6AUAAhwIAIbsBAQCGAgAhvAEBAIgCACG9AQEAiAIAIb4BIACJAgAhC6wBAQAAAAGtAQEAAAAErgEBAAAABK8BAQAAAAGwAQEAAAABsQEBAAAAAbIBAQAAAAGzAQEA9gEAIbQBAQAAAAG1AQEAAAABtgEBAAAAAQisAUAAAAABrQFAAAAABK4BQAAAAASvAUAAAAABsAFAAAAAAbEBQAAAAAGyAUAAAAABswFAAPQBACELrAEBAAAAAa0BAQAAAAWuAQEAAAAFrwEBAAAAAbABAQAAAAGxAQEAAAABsgEBAAAAAbMBAQCEAgAhtAEBAAAAAbUBAQAAAAG2AQEAAAABAqwBIAAAAAGzASAAgQIAIQO_AQAACwAgwAEAAAsAIMEBAAALACADvwEAABAAIMABAAAQACDBAQAAEAAgCKQBAACMAgAwpQEAAKYBABCmAQAAjAIAMKcBAgDvAQAhqgFAAPEBACG5AQEA8AEAIcMBAACNAsMBIsQBAQDwAQAhBwkAAPMBACAeAACPAgAgHwAAjwIAIKwBAAAAwwECrQEAAADDAQiuAQAAAMMBCLMBAACOAsMBIgcJAADzAQAgHgAAjwIAIB8AAI8CACCsAQAAAMMBAq0BAAAAwwEIrgEAAADDAQizAQAAjgLDASIErAEAAADDAQKtAQAAAMMBCK4BAAAAwwEIswEAAI8CwwEiCqQBAACQAgAwpQEAAJABABCmAQAAkAIAMKcBAgDvAQAhqQEBAPABACGqAUAA8QEAIcUBAQDwAQAhxgFAAPEBACHHAQEA_gEAIcgBAQD-AQAhCqQBAACRAgAwpQEAAH0AEKYBAACRAgAwpwECAJICACGpAQEAhgIAIaoBQACHAgAhxQEBAIYCACHGAUAAhwIAIccBAQCIAgAhyAEBAIgCACEIrAECAAAAAa0BAgAAAASuAQIAAAAErwECAAAAAbABAgAAAAGxAQIAAAABsgECAAAAAbMBAgDzAQAhBqQBAACTAgAwpQEAAHcAEKYBAACTAgAwqAEBAPABACHJAQEA8AEAIcoBQADxAQAhBqQBAACUAgAwpQEAAGQAEKYBAACUAgAwqAEBAIYCACHJAQEAhgIAIcoBQACHAgAhAqgBAQAAAAHJAQEAAAABB6QBAACWAgAwpQEAAF4AEKYBAACWAgAwpwEBAPABACG5AQEA8AEAIcoBQADxAQAhzAEBAPABACEPpAEAAJcCADClAQAASAAQpgEAAJcCADCnAQEA8AEAIbkBAQDwAQAhwwEBAPABACHNAQEA8AEAIc4BAQDwAQAhzwEBAP4BACHQAQEA_gEAIdEBAgCYAgAh0gEBAP4BACHTAQEA_gEAIdQBAQD-AQAh1QEBAP4BACENCQAAgwIAIB4AAIMCACAfAACDAgAgMAAAmgIAIDEAAIMCACCsAQIAAAABrQECAAAABa4BAgAAAAWvAQIAAAABsAECAAAAAbEBAgAAAAGyAQIAAAABswECAJkCACENCQAAgwIAIB4AAIMCACAfAACDAgAgMAAAmgIAIDEAAIMCACCsAQIAAAABrQECAAAABa4BAgAAAAWvAQIAAAABsAECAAAAAbEBAgAAAAGyAQIAAAABswECAJkCACEIrAEIAAAAAa0BCAAAAAWuAQgAAAAFrwEIAAAAAbABCAAAAAGxAQgAAAABsgEIAAAAAbMBCACaAgAhDqQBAACbAgAwpQEAADIAEKYBAACbAgAwpwEBAPABACGpAQEA8AEAIaoBQADxAQAhuAEAAJ0C2gEi1gFAAJwCACHXAQEA_gEAIdgBAQD-AQAh2gFAAJwCACHbASAA_wEAIdwBAACeAsMBI90BAACfAgAgCwkAAIMCACAeAACmAgAgHwAApgIAIKwBQAAAAAGtAUAAAAAFrgFAAAAABa8BQAAAAAGwAUAAAAABsQFAAAAAAbIBQAAAAAGzAUAApQIAIQcJAADzAQAgHgAApAIAIB8AAKQCACCsAQAAANoBAq0BAAAA2gEIrgEAAADaAQizAQAAowLaASIHCQAAgwIAIB4AAKICACAfAACiAgAgrAEAAADDAQOtAQAAAMMBCa4BAAAAwwEJswEAAKECwwEjDwkAAIMCACAeAACgAgAgHwAAoAIAIKwBgAAAAAGvAYAAAAABsAGAAAAAAbEBgAAAAAGyAYAAAAABswGAAAAAAd4BAQAAAAHfAQEAAAAB4AEBAAAAAeEBgAAAAAHiAYAAAAAB4wGAAAAAAQysAYAAAAABrwGAAAAAAbABgAAAAAGxAYAAAAABsgGAAAAAAbMBgAAAAAHeAQEAAAAB3wEBAAAAAeABAQAAAAHhAYAAAAAB4gGAAAAAAeMBgAAAAAEHCQAAgwIAIB4AAKICACAfAACiAgAgrAEAAADDAQOtAQAAAMMBCa4BAAAAwwEJswEAAKECwwEjBKwBAAAAwwEDrQEAAADDAQmuAQAAAMMBCbMBAACiAsMBIwcJAADzAQAgHgAApAIAIB8AAKQCACCsAQAAANoBAq0BAAAA2gEIrgEAAADaAQizAQAAowLaASIErAEAAADaAQKtAQAAANoBCK4BAAAA2gEIswEAAKQC2gEiCwkAAIMCACAeAACmAgAgHwAApgIAIKwBQAAAAAGtAUAAAAAFrgFAAAAABa8BQAAAAAGwAUAAAAABsQFAAAAAAbIBQAAAAAGzAUAApQIAIQisAUAAAAABrQFAAAAABa4BQAAAAAWvAUAAAAABsAFAAAAAAbEBQAAAAAGyAUAAAAABswFAAKYCACESBAAArAIAIAUAAK0CACAKAACKAgAgCwAArgIAIKQBAACnAgAwpQEAAB8AEKYBAACnAgAwpwEBAIYCACGpAQEAhgIAIaoBQACHAgAhuAEAAKkC2gEi1gFAAKgCACHXAQEAiAIAIdgBAQCIAgAh2gFAAKgCACHbASAAiQIAIdwBAACqAsMBI90BAACrAgAgCKwBQAAAAAGtAUAAAAAFrgFAAAAABa8BQAAAAAGwAUAAAAABsQFAAAAAAbIBQAAAAAGzAUAApgIAIQSsAQAAANoBAq0BAAAA2gEIrgEAAADaAQizAQAApALaASIErAEAAADDAQOtAQAAAMMBCa4BAAAAwwEJswEAAKICwwEjDKwBgAAAAAGvAYAAAAABsAGAAAAAAbEBgAAAAAGyAYAAAAABswGAAAAAAd4BAQAAAAHfAQEAAAAB4AEBAAAAAeEBgAAAAAHiAYAAAAAB4wGAAAAAAQO_AQAAAwAgwAEAAAMAIMEBAAADACADvwEAAAcAIMABAAAHACDBAQAABwAgA78BAAAWACDAAQAAFgAgwQEAABYAIAkDAACxAgAgpAEAAK8CADClAQAAFgAQpgEAAK8CADCnAQIAkgIAIaoBQACHAgAhuQEBAIYCACHDAQAAsALDASLEAQEAhgIAIQSsAQAAAMMBAq0BAAAAwwEIrgEAAADDAQizAQAAjwLDASIUBAAArAIAIAUAAK0CACAKAACKAgAgCwAArgIAIKQBAACnAgAwpQEAAB8AEKYBAACnAgAwpwEBAIYCACGpAQEAhgIAIaoBQACHAgAhuAEAAKkC2gEi1gFAAKgCACHXAQEAiAIAIdgBAQCIAgAh2gFAAKgCACHbASAAiQIAIdwBAACqAsMBI90BAACrAgAg5wEAAB8AIOgBAAAfACACqQEBAAAAAasBAQAAAAEJBwAAtAIAIKQBAACzAgAwpQEAABAAEKYBAACzAgAwpwECAJICACGoAQEAhgIAIakBAQCGAgAhqgFAAIcCACGrAQEAhgIAIQ4GAACKAgAgCAAAiwIAIKQBAACFAgAwpQEAAKwBABCmAQAAhQIAMKcBAQCGAgAhqgFAAIcCACG6AUAAhwIAIbsBAQCGAgAhvAEBAIgCACG9AQEAiAIAIb4BIACJAgAh5wEAAKwBACDoAQAArAEAIAKrAQEAAAABuQEBAAAAAQkDAACxAgAgBwAAtAIAIKQBAAC2AgAwpQEAAAsAEKYBAAC2AgAwpwECAJICACGrAQEAhgIAIbgBAAC3ArgBIrkBAQCGAgAhBKwBAAAAuAECrQEAAAC4AQiuAQAAALgBCLMBAAD8AbgBIggDAACxAgAgpAEAALgCADClAQAABwAQpgEAALgCADCnAQEAhgIAIbkBAQCGAgAhygFAAIcCACHMAQEAhgIAIQLDAQEAAAABzgEBAAAAARADAACxAgAgpAEAALoCADClAQAAAwAQpgEAALoCADCnAQEAhgIAIbkBAQCGAgAhwwEBAIYCACHNAQEAhgIAIc4BAQCGAgAhzwEBAIgCACHQAQEAiAIAIdEBAgC7AgAh0gEBAIgCACHTAQEAiAIAIdQBAQCIAgAh1QEBAIgCACEIrAECAAAAAa0BAgAAAAWuAQIAAAAFrwECAAAAAbABAgAAAAGxAQIAAAABsgECAAAAAbMBAgCDAgAhAAAAAAAB7AEBAAAAAQHsAUAAAAABBewBAgAAAAHyAQIAAAAB8wECAAAAAfQBAgAAAAH1AQIAAAABBRgAAPADACAZAADzAwAg6QEAAPEDACDqAQAA8gMAIO8BAACpAQAgAxgAAPADACDpAQAA8QMAIO8BAACpAQAgAAAAAAAB7AEAAAC4AQIFGAAA6AMAIBkAAO4DACDpAQAA6QMAIOoBAADtAwAg7wEAAAEAIAUYAADmAwAgGQAA6wMAIOkBAADnAwAg6gEAAOoDACDvAQAAqQEAIAMYAADoAwAg6QEAAOkDACDvAQAAAQAgAxgAAOYDACDpAQAA5wMAIO8BAACpAQAgAAAAAAHsAQEAAAABAewBIAAAAAELGAAA5AIAMBkAAOkCADDpAQAA5QIAMOoBAADmAgAw6wEAAOcCACDsAQAA6AIAMO0BAADoAgAw7gEAAOgCADDvAQAA6AIAMPABAADqAgAw8QEAAOsCADALGAAA2AIAMBkAAN0CADDpAQAA2QIAMOoBAADaAgAw6wEAANsCACDsAQAA3AIAMO0BAADcAgAw7gEAANwCADDvAQAA3AIAMPABAADeAgAw8QEAAN8CADAEpwECAAAAAagBAQAAAAGpAQEAAAABqgFAAAAAAQIAAAASACAYAADjAgAgAwAAABIAIBgAAOMCACAZAADiAgAgAREAAOUDADAKBwAAtAIAIKQBAACzAgAwpQEAABAAEKYBAACzAgAwpwECAAAAAagBAQAAAAGpAQEAhgIAIaoBQACHAgAhqwEBAIYCACHkAQAAsgIAIAIAAAASACARAADiAgAgAgAAAOACACARAADhAgAgCKQBAADfAgAwpQEAAOACABCmAQAA3wIAMKcBAgCSAgAhqAEBAIYCACGpAQEAhgIAIaoBQACHAgAhqwEBAIYCACEIpAEAAN8CADClAQAA4AIAEKYBAADfAgAwpwECAJICACGoAQEAhgIAIakBAQCGAgAhqgFAAIcCACGrAQEAhgIAIQSnAQIAwwIAIagBAQDBAgAhqQEBAMECACGqAUAAwgIAIQSnAQIAwwIAIagBAQDBAgAhqQEBAMECACGqAUAAwgIAIQSnAQIAAAABqAEBAAAAAakBAQAAAAGqAUAAAAABBAMAAM4CACCnAQIAAAABuAEAAAC4AQK5AQEAAAABAgAAAA0AIBgAAO8CACADAAAADQAgGAAA7wIAIBkAAO4CACABEQAA5AMAMAoDAACxAgAgBwAAtAIAIKQBAAC2AgAwpQEAAAsAEKYBAAC2AgAwpwECAAAAAasBAQCGAgAhuAEAALcCuAEiuQEBAIYCACHlAQAAtQIAIAIAAAANACARAADuAgAgAgAAAOwCACARAADtAgAgB6QBAADrAgAwpQEAAOwCABCmAQAA6wIAMKcBAgCSAgAhqwEBAIYCACG4AQAAtwK4ASK5AQEAhgIAIQekAQAA6wIAMKUBAADsAgAQpgEAAOsCADCnAQIAkgIAIasBAQCGAgAhuAEAALcCuAEiuQEBAIYCACEDpwECAMMCACG4AQAAywK4ASK5AQEAwQIAIQQDAADMAgAgpwECAMMCACG4AQAAywK4ASK5AQEAwQIAIQQDAADOAgAgpwECAAAAAbgBAAAAuAECuQEBAAAAAQQYAADkAgAw6QEAAOUCADDrAQAA5wIAIO8BAADoAgAwBBgAANgCADDpAQAA2QIAMOsBAADbAgAg7wEAANwCADAAAAAAAAAAAewBAAAAwwECBRgAAN8DACAZAADiAwAg6QEAAOADACDqAQAA4QMAIO8BAAABACADGAAA3wMAIOkBAADgAwAg7wEAAAEAIAAAAAAAAAAAAAAABRgAANoDACAZAADdAwAg6QEAANsDACDqAQAA3AMAIO8BAAABACADGAAA2gMAIOkBAADbAwAg7wEAAAEAIAAAAAAABewBAgAAAAHyAQIAAAAB8wECAAAAAfQBAgAAAAH1AQIAAAABBRgAANUDACAZAADYAwAg6QEAANYDACDqAQAA1wMAIO8BAAABACADGAAA1QMAIOkBAADWAwAg7wEAAAEAIAAAAAHsAUAAAAABAewBAAAA2gECAewBAAAAwwEDCxgAALwDADAZAADBAwAw6QEAAL0DADDqAQAAvgMAMOsBAAC_AwAg7AEAAMADADDtAQAAwAMAMO4BAADAAwAw7wEAAMADADDwAQAAwgMAMPEBAADDAwAwCxgAALADADAZAAC1AwAw6QEAALEDADDqAQAAsgMAMOsBAACzAwAg7AEAALQDADDtAQAAtAMAMO4BAAC0AwAw7wEAALQDADDwAQAAtgMAMPEBAAC3AwAwCxgAAKcDADAZAACrAwAw6QEAAKgDADDqAQAAqQMAMOsBAACqAwAg7AEAAOgCADDtAQAA6AIAMO4BAADoAgAw7wEAAOgCADDwAQAArAMAMPEBAADrAgAwCxgAAJsDADAZAACgAwAw6QEAAJwDADDqAQAAnQMAMOsBAACeAwAg7AEAAJ8DADDtAQAAnwMAMO4BAACfAwAw7wEAAJ8DADDwAQAAoQMAMPEBAACiAwAwBKcBAgAAAAGqAUAAAAABwwEAAADDAQLEAQEAAAABAgAAABgAIBgAAKYDACADAAAAGAAgGAAApgMAIBkAAKUDACABEQAA1AMAMAkDAACxAgAgpAEAAK8CADClAQAAFgAQpgEAAK8CADCnAQIAAAABqgFAAIcCACG5AQEAhgIAIcMBAACwAsMBIsQBAQAAAAECAAAAGAAgEQAApQMAIAIAAACjAwAgEQAApAMAIAikAQAAogMAMKUBAACjAwAQpgEAAKIDADCnAQIAkgIAIaoBQACHAgAhuQEBAIYCACHDAQAAsALDASLEAQEAhgIAIQikAQAAogMAMKUBAACjAwAQpgEAAKIDADCnAQIAkgIAIaoBQACHAgAhuQEBAIYCACHDAQAAsALDASLEAQEAhgIAIQSnAQIAwwIAIaoBQADCAgAhwwEAAPkCwwEixAEBAMECACEEpwECAMMCACGqAUAAwgIAIcMBAAD5AsMBIsQBAQDBAgAhBKcBAgAAAAGqAUAAAAABwwEAAADDAQLEAQEAAAABBAcAAM8CACCnAQIAAAABqwEBAAAAAbgBAAAAuAECAgAAAA0AIBgAAK8DACADAAAADQAgGAAArwMAIBkAAK4DACABEQAA0wMAMAIAAAANACARAACuAwAgAgAAAOwCACARAACtAwAgA6cBAgDDAgAhqwEBAMECACG4AQAAywK4ASIEBwAAzQIAIKcBAgDDAgAhqwEBAMECACG4AQAAywK4ASIEBwAAzwIAIKcBAgAAAAGrAQEAAAABuAEAAAC4AQIDpwEBAAAAAcoBQAAAAAHMAQEAAAABAgAAAAkAIBgAALsDACADAAAACQAgGAAAuwMAIBkAALoDACABEQAA0gMAMAgDAACxAgAgpAEAALgCADClAQAABwAQpgEAALgCADCnAQEAAAABuQEBAIYCACHKAUAAhwIAIcwBAQAAAAECAAAACQAgEQAAugMAIAIAAAC4AwAgEQAAuQMAIAekAQAAtwMAMKUBAAC4AwAQpgEAALcDADCnAQEAhgIAIbkBAQCGAgAhygFAAIcCACHMAQEAhgIAIQekAQAAtwMAMKUBAAC4AwAQpgEAALcDADCnAQEAhgIAIbkBAQCGAgAhygFAAIcCACHMAQEAhgIAIQOnAQEAwQIAIcoBQADCAgAhzAEBAMECACEDpwEBAMECACHKAUAAwgIAIcwBAQDBAgAhA6cBAQAAAAHKAUAAAAABzAEBAAAAAQunAQEAAAABwwEBAAAAAc0BAQAAAAHOAQEAAAABzwEBAAAAAdABAQAAAAHRAQIAAAAB0gEBAAAAAdMBAQAAAAHUAQEAAAAB1QEBAAAAAQIAAAAFACAYAADHAwAgAwAAAAUAIBgAAMcDACAZAADGAwAgAREAANEDADARAwAAsQIAIKQBAAC6AgAwpQEAAAMAEKYBAAC6AgAwpwEBAAAAAbkBAQCGAgAhwwEBAIYCACHNAQEAhgIAIc4BAQCGAgAhzwEBAIgCACHQAQEAiAIAIdEBAgC7AgAh0gEBAIgCACHTAQEAiAIAIdQBAQCIAgAh1QEBAIgCACHmAQAAuQIAIAIAAAAFACARAADGAwAgAgAAAMQDACARAADFAwAgD6QBAADDAwAwpQEAAMQDABCmAQAAwwMAMKcBAQCGAgAhuQEBAIYCACHDAQEAhgIAIc0BAQCGAgAhzgEBAIYCACHPAQEAiAIAIdABAQCIAgAh0QECALsCACHSAQEAiAIAIdMBAQCIAgAh1AEBAIgCACHVAQEAiAIAIQ-kAQAAwwMAMKUBAADEAwAQpgEAAMMDADCnAQEAhgIAIbkBAQCGAgAhwwEBAIYCACHNAQEAhgIAIc4BAQCGAgAhzwEBAIgCACHQAQEAiAIAIdEBAgC7AgAh0gEBAIgCACHTAQEAiAIAIdQBAQCIAgAh1QEBAIgCACELpwEBAMECACHDAQEAwQIAIc0BAQDBAgAhzgEBAMECACHPAQEA1AIAIdABAQDUAgAh0QECAI4DACHSAQEA1AIAIdMBAQDUAgAh1AEBANQCACHVAQEA1AIAIQunAQEAwQIAIcMBAQDBAgAhzQEBAMECACHOAQEAwQIAIc8BAQDUAgAh0AEBANQCACHRAQIAjgMAIdIBAQDUAgAh0wEBANQCACHUAQEA1AIAIdUBAQDUAgAhC6cBAQAAAAHDAQEAAAABzQEBAAAAAc4BAQAAAAHPAQEAAAAB0AEBAAAAAdEBAgAAAAHSAQEAAAAB0wEBAAAAAdQBAQAAAAHVAQEAAAABBBgAALwDADDpAQAAvQMAMOsBAAC_AwAg7wEAAMADADAEGAAAsAMAMOkBAACxAwAw6wEAALMDACDvAQAAtAMAMAQYAACnAwAw6QEAAKgDADDrAQAAqgMAIO8BAADoAgAwBBgAAJsDADDpAQAAnAMAMOsBAACeAwAg7wEAAJ8DADAAAAAKBAAAzAMAIAUAAM0DACAKAADyAgAgCwAAzgMAINYBAADQAgAg1wEAANACACDYAQAA0AIAINoBAADQAgAg3AEAANACACDdAQAA0AIAIAQGAADyAgAgCAAA8wIAILwBAADQAgAgvQEAANACACALpwEBAAAAAcMBAQAAAAHNAQEAAAABzgEBAAAAAc8BAQAAAAHQAQEAAAAB0QECAAAAAdIBAQAAAAHTAQEAAAAB1AEBAAAAAdUBAQAAAAEDpwEBAAAAAcoBQAAAAAHMAQEAAAABA6cBAgAAAAGrAQEAAAABuAEAAAC4AQIEpwECAAAAAaoBQAAAAAHDAQAAAMMBAsQBAQAAAAEOBQAAyQMAIAoAAMoDACALAADLAwAgpwEBAAAAAakBAQAAAAGqAUAAAAABuAEAAADaAQLWAUAAAAAB1wEBAAAAAdgBAQAAAAHaAUAAAAAB2wEgAAAAAdwBAAAAwwED3QGAAAAAAQIAAAABACAYAADVAwAgAwAAAB8AIBgAANUDACAZAADZAwAgEAAAAB8AIAUAAJgDACAKAACZAwAgCwAAmgMAIBEAANkDACCnAQEAwQIAIakBAQDBAgAhqgFAAMICACG4AQAAlQPaASLWAUAAlAMAIdcBAQDUAgAh2AEBANQCACHaAUAAlAMAIdsBIADVAgAh3AEAAJYDwwEj3QGAAAAAAQ4FAACYAwAgCgAAmQMAIAsAAJoDACCnAQEAwQIAIakBAQDBAgAhqgFAAMICACG4AQAAlQPaASLWAUAAlAMAIdcBAQDUAgAh2AEBANQCACHaAUAAlAMAIdsBIADVAgAh3AEAAJYDwwEj3QGAAAAAAQ4EAADIAwAgCgAAygMAIAsAAMsDACCnAQEAAAABqQEBAAAAAaoBQAAAAAG4AQAAANoBAtYBQAAAAAHXAQEAAAAB2AEBAAAAAdoBQAAAAAHbASAAAAAB3AEAAADDAQPdAYAAAAABAgAAAAEAIBgAANoDACADAAAAHwAgGAAA2gMAIBkAAN4DACAQAAAAHwAgBAAAlwMAIAoAAJkDACALAACaAwAgEQAA3gMAIKcBAQDBAgAhqQEBAMECACGqAUAAwgIAIbgBAACVA9oBItYBQACUAwAh1wEBANQCACHYAQEA1AIAIdoBQACUAwAh2wEgANUCACHcAQAAlgPDASPdAYAAAAABDgQAAJcDACAKAACZAwAgCwAAmgMAIKcBAQDBAgAhqQEBAMECACGqAUAAwgIAIbgBAACVA9oBItYBQACUAwAh1wEBANQCACHYAQEA1AIAIdoBQACUAwAh2wEgANUCACHcAQAAlgPDASPdAYAAAAABDgQAAMgDACAFAADJAwAgCgAAygMAIKcBAQAAAAGpAQEAAAABqgFAAAAAAbgBAAAA2gEC1gFAAAAAAdcBAQAAAAHYAQEAAAAB2gFAAAAAAdsBIAAAAAHcAQAAAMMBA90BgAAAAAECAAAAAQAgGAAA3wMAIAMAAAAfACAYAADfAwAgGQAA4wMAIBAAAAAfACAEAACXAwAgBQAAmAMAIAoAAJkDACARAADjAwAgpwEBAMECACGpAQEAwQIAIaoBQADCAgAhuAEAAJUD2gEi1gFAAJQDACHXAQEA1AIAIdgBAQDUAgAh2gFAAJQDACHbASAA1QIAIdwBAACWA8MBI90BgAAAAAEOBAAAlwMAIAUAAJgDACAKAACZAwAgpwEBAMECACGpAQEAwQIAIaoBQADCAgAhuAEAAJUD2gEi1gFAAJQDACHXAQEA1AIAIdgBAQDUAgAh2gFAAJQDACHbASAA1QIAIdwBAACWA8MBI90BgAAAAAEDpwECAAAAAbgBAAAAuAECuQEBAAAAAQSnAQIAAAABqAEBAAAAAakBAQAAAAGqAUAAAAABCAgAAPECACCnAQEAAAABqgFAAAAAAboBQAAAAAG7AQEAAAABvAEBAAAAAb0BAQAAAAG-ASAAAAABAgAAAKkBACAYAADmAwAgDgQAAMgDACAFAADJAwAgCwAAywMAIKcBAQAAAAGpAQEAAAABqgFAAAAAAbgBAAAA2gEC1gFAAAAAAdcBAQAAAAHYAQEAAAAB2gFAAAAAAdsBIAAAAAHcAQAAAMMBA90BgAAAAAECAAAAAQAgGAAA6AMAIAMAAACsAQAgGAAA5gMAIBkAAOwDACAKAAAArAEAIAgAANcCACARAADsAwAgpwEBAMECACGqAUAAwgIAIboBQADCAgAhuwEBAMECACG8AQEA1AIAIb0BAQDUAgAhvgEgANUCACEICAAA1wIAIKcBAQDBAgAhqgFAAMICACG6AUAAwgIAIbsBAQDBAgAhvAEBANQCACG9AQEA1AIAIb4BIADVAgAhAwAAAB8AIBgAAOgDACAZAADvAwAgEAAAAB8AIAQAAJcDACAFAACYAwAgCwAAmgMAIBEAAO8DACCnAQEAwQIAIakBAQDBAgAhqgFAAMICACG4AQAAlQPaASLWAUAAlAMAIdcBAQDUAgAh2AEBANQCACHaAUAAlAMAIdsBIADVAgAh3AEAAJYDwwEj3QGAAAAAAQ4EAACXAwAgBQAAmAMAIAsAAJoDACCnAQEAwQIAIakBAQDBAgAhqgFAAMICACG4AQAAlQPaASLWAUAAlAMAIdcBAQDUAgAh2AEBANQCACHaAUAAlAMAIdsBIADVAgAh3AEAAJYDwwEj3QGAAAAAAQgGAADwAgAgpwEBAAAAAaoBQAAAAAG6AUAAAAABuwEBAAAAAbwBAQAAAAG9AQEAAAABvgEgAAAAAQIAAACpAQAgGAAA8AMAIAMAAACsAQAgGAAA8AMAIBkAAPQDACAKAAAArAEAIAYAANYCACARAAD0AwAgpwEBAMECACGqAUAAwgIAIboBQADCAgAhuwEBAMECACG8AQEA1AIAIb0BAQDUAgAhvgEgANUCACEIBgAA1gIAIKcBAQDBAgAhqgFAAMICACG6AUAAwgIAIbsBAQDBAgAhvAEBANQCACG9AQEA1AIAIb4BIADVAgAhBQQGAgUKAwkACQoOBAsZCAEDAAEBAwABAgMAAQcABQMGDwQIEwYJAAcBBwAFAgYUAAgVAAEDAAEEBBoABRsAChwACx0AAAAAAwkADh4ADx8AEAAAAAMJAA4eAA8fABABAwABAQMAAQUJABUeABgfABkwABYxABcAAAAAAAUJABUeABgfABkwABYxABcBAwABAQMAAQMJAB4eAB8fACAAAAADCQAeHgAfHwAgAAAAAwkAJh4AJx8AKAAAAAMJACYeACcfACgAAAAFCQAuHgAxHwAyMAAvMQAwAAAAAAAFCQAuHgAxHwAyMAAvMQAwAQMAAQEDAAEFCQA3HgA6HwA7MAA4MQA5AAAAAAAFCQA3HgA6HwA7MAA4MQA5AAADCQBAHgBBHwBCAAAAAwkAQB4AQR8AQgIDAAEHAAUCAwABBwAFBQkARx4ASh8ASzAASDEASQAAAAAABQkARx4ASh8ASzAASDEASQEHAAUBBwAFBQkAUB4AUx8AVDAAUTEAUgAAAAAABQkAUB4AUx8AVDAAUTEAUgwCAQ0eAQ4hAQ8iARAjARIlARMnChQoCxUqARYsChctDBouARsvARwwCiAzDSE0ESI1AiM2AiQ3AiU4AiY5Aic7Aig9Cik-EipAAitCCixDEy1EAi5FAi9GCjJJFDNKGjRLAzVMAzZNAzdOAzhPAzlRAzpTCjtUGzxWAz1YCj5ZHD9aA0BbA0FcCkJfHUNgIURiIkVjIkZmIkdnIkhoIklqIkpsCkttI0xvIk1xCk5yJE9zIlB0IlF1ClJ4JVN5KVR7KlV8KlZ_KleAASpYgQEqWYMBKlqFAQpbhgErXIgBKl2KAQpeiwEsX4wBKmCNASphjgEKYpEBLWOSATNkkwEIZZQBCGaVAQhnlgEIaJcBCGmZAQhqmwEKa5wBNGyeAQhtoAEKbqEBNW-iAQhwowEIcaQBCnKnATZzqAE8dKoBBXWrAQV2rgEFd68BBXiwAQV5sgEFerQBCnu1AT18twEFfbkBCn66AT5_uwEFgAG8AQWBAb0BCoIBwAE_gwHBAUOEAcIBBIUBwwEEhgHEAQSHAcUBBIgBxgEEiQHIAQSKAcoBCosBywFEjAHNAQSNAc8BCo4B0AFFjwHRAQSQAdIBBJEB0wEKkgHWAUaTAdcBTJQB2AEGlQHZAQaWAdoBBpcB2wEGmAHcAQaZAd4BBpoB4AEKmwHhAU2cAeMBBp0B5QEKngHmAU6fAecBBqAB6AEGoQHpAQqiAewBT6MB7QFV" -} - -async function decodeBase64AsWasm(wasmBase64: string): Promise { - const { Buffer } = await import('node:buffer') - const wasmArray = Buffer.from(wasmBase64, 'base64') - return new WebAssembly.Module(wasmArray) -} - -config.compilerWasm = { - getRuntime: async () => await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.mjs"), - - getQueryCompilerWasmModule: async () => { - const { wasm } = await import("@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.mjs") - return await decodeBase64AsWasm(wasm) - }, - - importName: "./query_compiler_fast_bg.js" -} - - - -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({ - * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) - * }) - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://pris.ly/d/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({ - * adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL }) - * }) - * // Fetch zero or more Users - * const users = await prisma.user.findMany() - * ``` - * - * Read more in our [docs](https://pris.ly/d/client). - */ - -export interface PrismaClient< - in LogOpts extends Prisma.LogLevel = never, - in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, - in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs -> { - [K: symbol]: { types: Prisma.TypeMap['other'] } - - $on(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient; - - /** - * Connect with the database - */ - $connect(): runtime.Types.Utils.JsPromise; - - /** - * Disconnect from the database - */ - $disconnect(): runtime.Types.Utils.JsPromise; - -/** - * Executes a prepared raw query and returns the number of affected rows. - * @example - * ``` - * const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};` - * ``` - * - * Read more in our [docs](https://pris.ly/d/raw-queries). - */ - $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://pris.ly/d/raw-queries). - */ - $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://pris.ly/d/raw-queries). - */ - $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://pris.ly/d/raw-queries). - */ - $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/orm/prisma-client/queries/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.account`: Exposes CRUD operations for the **Account** model. - * Example usage: - * ```ts - * // Fetch zero or more Accounts - * const accounts = await prisma.account.findMany() - * ``` - */ - get account(): Prisma.AccountDelegate; - - /** - * `prisma.session`: Exposes CRUD operations for the **Session** model. - * Example usage: - * ```ts - * // Fetch zero or more Sessions - * const sessions = await prisma.session.findMany() - * ``` - */ - get session(): Prisma.SessionDelegate; - - /** - * `prisma.verificationToken`: Exposes CRUD operations for the **VerificationToken** model. - * Example usage: - * ```ts - * // Fetch zero or more VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany() - * ``` - */ - get verificationToken(): Prisma.VerificationTokenDelegate; - - /** - * `prisma.magicLinkToken`: Exposes CRUD operations for the **MagicLinkToken** model. - * Example usage: - * ```ts - * // Fetch zero or more MagicLinkTokens - * const magicLinkTokens = await prisma.magicLinkToken.findMany() - * ``` - */ - get magicLinkToken(): Prisma.MagicLinkTokenDelegate; - - /** - * `prisma.transaction`: Exposes CRUD operations for the **Transaction** model. - * Example usage: - * ```ts - * // Fetch zero or more Transactions - * const transactions = await prisma.transaction.findMany() - * ``` - */ - get transaction(): Prisma.TransactionDelegate; - - /** - * `prisma.project`: Exposes CRUD operations for the **Project** model. - * Example usage: - * ```ts - * // Fetch zero or more Projects - * const projects = await prisma.project.findMany() - * ``` - */ - get project(): Prisma.ProjectDelegate; - - /** - * `prisma.projectMember`: Exposes CRUD operations for the **ProjectMember** model. - * Example usage: - * ```ts - * // Fetch zero or more ProjectMembers - * const projectMembers = await prisma.projectMember.findMany() - * ``` - */ - get projectMember(): Prisma.ProjectMemberDelegate; - - /** - * `prisma.projectInvitation`: Exposes CRUD operations for the **ProjectInvitation** model. - * Example usage: - * ```ts - * // Fetch zero or more ProjectInvitations - * const projectInvitations = await prisma.projectInvitation.findMany() - * ``` - */ - get projectInvitation(): Prisma.ProjectInvitationDelegate; -} - -export function getPrismaClientClass(): PrismaClientConstructor { - return runtime.getPrismaClient(config) as unknown as PrismaClientConstructor -} diff --git a/src/generated/client/internal/prismaNamespace.ts b/src/generated/client/internal/prismaNamespace.ts deleted file mode 100644 index 9e34c497..00000000 --- a/src/generated/client/internal/prismaNamespace.ts +++ /dev/null @@ -1,1563 +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/client" -import type * as Prisma from "../models" -import { type PrismaClient } from "./class" - -export type * from '../models' - -export type DMMF = typeof runtime.DMMF - -export type PrismaPromise = runtime.Types.Public.PrismaPromise - -/** - * Prisma Errors - */ - -export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError -export type PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError - -export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError -export type PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError - -export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError -export type PrismaClientRustPanicError = runtime.PrismaClientRustPanicError - -export const PrismaClientInitializationError = runtime.PrismaClientInitializationError -export type PrismaClientInitializationError = runtime.PrismaClientInitializationError - -export const PrismaClientValidationError = runtime.PrismaClientValidationError -export type PrismaClientValidationError = runtime.PrismaClientValidationError - -/** - * Re-export of sql-template-tag - */ -export const sql = runtime.sqltag -export const empty = runtime.empty -export const join = runtime.join -export const raw = runtime.raw -export const Sql = runtime.Sql -export type Sql = runtime.Sql - - - -/** - * Decimal.js - */ -export const Decimal = runtime.Decimal -export type Decimal = runtime.Decimal - -export type DecimalJsLike = runtime.DecimalJsLike - -/** -* Extensions -*/ -export type Extension = runtime.Types.Extensions.UserArgs -export const getExtensionContext = runtime.Extensions.getExtensionContext -export type Args = runtime.Types.Public.Args -export type Payload = runtime.Types.Public.Payload -export type Result = runtime.Types.Public.Result -export type Exact = runtime.Types.Public.Exact - -export type PrismaVersion = { - client: string - engine: string -} - -/** - * Prisma Client JS version: 7.7.0 - * Query Engine version: 75cbdc1eb7150937890ad5465d861175c6624711 - */ -export const prismaVersion: PrismaVersion = { - client: "7.7.0", - engine: "75cbdc1eb7150937890ad5465d861175c6624711" -} - -/** - * Utility Types - */ - -export type Bytes = runtime.Bytes -export type JsonObject = runtime.JsonObject -export type JsonArray = runtime.JsonArray -export type JsonValue = runtime.JsonValue -export type InputJsonObject = runtime.InputJsonObject -export type InputJsonArray = runtime.InputJsonArray -export type InputJsonValue = runtime.InputJsonValue - - -export const NullTypes = { - DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), - JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), - AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), -} -/** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const DbNull = runtime.DbNull - -/** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const JsonNull = runtime.JsonNull - -/** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const AnyNull = runtime.AnyNull - - -type SelectAndInclude = { - select: any - include: any -} - -type SelectAndOmit = { - select: any - omit: any -} - -/** - * From T, pick a set of properties whose keys are in the union K - */ -type Prisma__Pick = { - [P in K]: T[P]; -}; - -export type Enumerable = T | Array; - -/** - * Subset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection - */ -export type Subset = { - [key in keyof T]: key extends keyof U ? T[key] : never; -}; - -/** - * SelectSubset - * @desc From `T` pick properties that exist in `U`. Simple version of Intersection. - * Additionally, it validates, if both select and include are present. If the case, it errors. - */ -export type SelectSubset = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - (T extends SelectAndInclude - ? 'Please either choose `select` or `include`.' - : T extends SelectAndOmit - ? 'Please either choose `select` or `omit`.' - : {}) - -/** - * Subset + Intersection - * @desc From `T` pick properties that exist in `U` and intersect `K` - */ -export type SubsetIntersection = { - [key in keyof T]: key extends keyof U ? T[key] : never -} & - K - -type Without = { [P in Exclude]?: never }; - -/** - * XOR is needed to have a real mutually exclusive union type - * https://stackoverflow.com/questions/42123407/does-typescript-support-mutually-exclusive-types - */ -export type XOR = - T extends object ? - U extends object ? - (Without & U) | (Without & T) - : U : T - - -/** - * Is T a Record? - */ -type IsObject = T extends Array -? False -: T extends Date -? False -: T extends Uint8Array -? False -: T extends BigInt -? False -: T extends object -? True -: False - - -/** - * If it's T[], return T - */ -export type UnEnumerate = T extends Array ? U : T - -/** - * From ts-toolbelt - */ - -type __Either = Omit & - { - // Merge all but K - [P in K]: Prisma__Pick // With K possibilities - }[K] - -type EitherStrict = Strict<__Either> - -type EitherLoose = ComputeRaw<__Either> - -type _Either< - O extends object, - K extends Key, - strict extends Boolean -> = { - 1: EitherStrict - 0: EitherLoose -}[strict] - -export type Either< - O extends object, - K extends Key, - strict extends Boolean = 1 -> = O extends unknown ? _Either : never - -export type Union = any - -export type PatchUndefined = { - [K in keyof O]: O[K] extends undefined ? At : O[K] -} & {} - -/** Helper Types for "Merge" **/ -export type IntersectOf = ( - U extends unknown ? (k: U) => void : never -) extends (k: infer I) => void - ? I - : never - -export type Overwrite = { - [K in keyof O]: K extends keyof O1 ? O1[K] : O[K]; -} & {}; - -type _Merge = IntersectOf; -}>>; - -type Key = string | number | symbol; -type AtStrict = O[K & keyof O]; -type AtLoose = O extends unknown ? AtStrict : never; -export type At = { - 1: AtStrict; - 0: AtLoose; -}[strict]; - -export type ComputeRaw = A extends Function ? A : { - [K in keyof A]: A[K]; -} & {}; - -export type OptionalFlat = { - [K in keyof O]?: O[K]; -} & {}; - -type _Record = { - [P in K]: T; -}; - -// cause typescript not to expand types and preserve names -type NoExpand = T extends unknown ? T : never; - -// this type assumes the passed object is entirely optional -export type AtLeast = NoExpand< - O extends unknown - ? | (K extends keyof O ? { [P in K]: O[P] } & O : O) - | {[P in keyof O as P extends K ? P : never]-?: O[P]} & O - : never>; - -type _Strict = U extends unknown ? U & OptionalFlat<_Record, keyof U>, never>> : never; - -export type Strict = ComputeRaw<_Strict>; -/** End Helper Types for "Merge" **/ - -export type Merge = ComputeRaw<_Merge>>; - -export type Boolean = True | False - -export type True = 1 - -export type False = 0 - -export type Not = { - 0: 1 - 1: 0 -}[B] - -export type Extends = [A1] extends [never] - ? 0 // anything `never` is false - : A1 extends A2 - ? 1 - : 0 - -export type Has = Not< - Extends, U1> -> - -export type Or = { - 0: { - 0: 0 - 1: 1 - } - 1: { - 0: 1 - 1: 1 - } -}[B1][B2] - -export type Keys = U extends unknown ? keyof U : never - -export type GetScalarType = O extends object ? { - [P in keyof T]: P extends keyof O - ? O[P] - : never -} : never - -type FieldPaths< - T, - U = Omit -> = IsObject extends True ? U : T - -export type GetHavingFields = { - [K in keyof T]: Or< - Or, Extends<'AND', K>>, - Extends<'NOT', K> - > extends True - ? // infer is only needed to not hit TS limit - // based on the brilliant idea of Pierre-Antoine Mills - // https://github.com/microsoft/TypeScript/issues/30188#issuecomment-478938437 - T[K] extends infer TK - ? GetHavingFields extends object ? Merge> : never> - : never - : {} extends FieldPaths - ? never - : K -}[keyof T] - -/** - * Convert tuple to union - */ -type _TupleToUnion = T extends (infer E)[] ? E : never -type TupleToUnion = _TupleToUnion -export type MaybeTupleToUnion = T extends any[] ? TupleToUnion : T - -/** - * Like `Pick`, but additionally can also accept an array of keys - */ -export type PickEnumerable | keyof T> = Prisma__Pick> - -/** - * Exclude all keys with underscores - */ -export type ExcludeUnderscoreKeys = T extends `_${string}` ? never : T - - -export type FieldRef = runtime.FieldRef - -type FieldRefInputType = Model extends never ? never : FieldRef - - -export const ModelName = { - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - MagicLinkToken: 'MagicLinkToken', - Transaction: 'Transaction', - Project: 'Project', - ProjectMember: 'ProjectMember', - ProjectInvitation: 'ProjectInvitation' -} 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" | "account" | "session" | "verificationToken" | "magicLinkToken" | "transaction" | "project" | "projectMember" | "projectInvitation" - 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 - } - } - } - Account: { - payload: Prisma.$AccountPayload - fields: Prisma.AccountFieldRefs - operations: { - findUnique: { - args: Prisma.AccountFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.AccountFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.AccountFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.AccountFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.AccountFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.AccountCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.AccountCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.AccountCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.AccountDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.AccountUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.AccountDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.AccountUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.AccountUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.AccountUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.AccountAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.AccountGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.AccountCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Session: { - payload: Prisma.$SessionPayload - fields: Prisma.SessionFieldRefs - operations: { - findUnique: { - args: Prisma.SessionFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.SessionFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.SessionFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.SessionFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.SessionFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.SessionCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.SessionCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.SessionCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.SessionDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.SessionUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.SessionDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.SessionUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.SessionUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.SessionUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.SessionAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.SessionGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.SessionCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - VerificationToken: { - payload: Prisma.$VerificationTokenPayload - fields: Prisma.VerificationTokenFieldRefs - operations: { - findUnique: { - args: Prisma.VerificationTokenFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.VerificationTokenFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.VerificationTokenFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.VerificationTokenFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.VerificationTokenFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.VerificationTokenCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.VerificationTokenCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.VerificationTokenCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.VerificationTokenDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.VerificationTokenUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.VerificationTokenDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.VerificationTokenUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.VerificationTokenUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.VerificationTokenUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.VerificationTokenAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.VerificationTokenGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.VerificationTokenCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - MagicLinkToken: { - payload: Prisma.$MagicLinkTokenPayload - fields: Prisma.MagicLinkTokenFieldRefs - operations: { - findUnique: { - args: Prisma.MagicLinkTokenFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.MagicLinkTokenFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.MagicLinkTokenFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.MagicLinkTokenFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.MagicLinkTokenFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.MagicLinkTokenCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.MagicLinkTokenCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.MagicLinkTokenCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.MagicLinkTokenDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.MagicLinkTokenUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.MagicLinkTokenDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.MagicLinkTokenUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.MagicLinkTokenUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.MagicLinkTokenUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.MagicLinkTokenAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.MagicLinkTokenGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.MagicLinkTokenCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Transaction: { - payload: Prisma.$TransactionPayload - fields: Prisma.TransactionFieldRefs - operations: { - findUnique: { - args: Prisma.TransactionFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.TransactionFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.TransactionFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.TransactionFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.TransactionFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.TransactionCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.TransactionCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.TransactionCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.TransactionDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.TransactionUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.TransactionDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.TransactionUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.TransactionUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.TransactionUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.TransactionAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.TransactionGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.TransactionCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - Project: { - payload: Prisma.$ProjectPayload - fields: Prisma.ProjectFieldRefs - operations: { - findUnique: { - args: Prisma.ProjectFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.ProjectFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.ProjectFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.ProjectFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.ProjectFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.ProjectCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.ProjectCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.ProjectCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.ProjectDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.ProjectUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.ProjectDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.ProjectUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.ProjectUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.ProjectUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.ProjectAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.ProjectGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.ProjectCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - ProjectMember: { - payload: Prisma.$ProjectMemberPayload - fields: Prisma.ProjectMemberFieldRefs - operations: { - findUnique: { - args: Prisma.ProjectMemberFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.ProjectMemberFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.ProjectMemberFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.ProjectMemberFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.ProjectMemberFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.ProjectMemberCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.ProjectMemberCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.ProjectMemberCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.ProjectMemberDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.ProjectMemberUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.ProjectMemberDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.ProjectMemberUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.ProjectMemberUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.ProjectMemberUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.ProjectMemberAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.ProjectMemberGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.ProjectMemberCountArgs - result: runtime.Types.Utils.Optional | number - } - } - } - ProjectInvitation: { - payload: Prisma.$ProjectInvitationPayload - fields: Prisma.ProjectInvitationFieldRefs - operations: { - findUnique: { - args: Prisma.ProjectInvitationFindUniqueArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findUniqueOrThrow: { - args: Prisma.ProjectInvitationFindUniqueOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findFirst: { - args: Prisma.ProjectInvitationFindFirstArgs - result: runtime.Types.Utils.PayloadToResult | null - } - findFirstOrThrow: { - args: Prisma.ProjectInvitationFindFirstOrThrowArgs - result: runtime.Types.Utils.PayloadToResult - } - findMany: { - args: Prisma.ProjectInvitationFindManyArgs - result: runtime.Types.Utils.PayloadToResult[] - } - create: { - args: Prisma.ProjectInvitationCreateArgs - result: runtime.Types.Utils.PayloadToResult - } - createMany: { - args: Prisma.ProjectInvitationCreateManyArgs - result: BatchPayload - } - createManyAndReturn: { - args: Prisma.ProjectInvitationCreateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - delete: { - args: Prisma.ProjectInvitationDeleteArgs - result: runtime.Types.Utils.PayloadToResult - } - update: { - args: Prisma.ProjectInvitationUpdateArgs - result: runtime.Types.Utils.PayloadToResult - } - deleteMany: { - args: Prisma.ProjectInvitationDeleteManyArgs - result: BatchPayload - } - updateMany: { - args: Prisma.ProjectInvitationUpdateManyArgs - result: BatchPayload - } - updateManyAndReturn: { - args: Prisma.ProjectInvitationUpdateManyAndReturnArgs - result: runtime.Types.Utils.PayloadToResult[] - } - upsert: { - args: Prisma.ProjectInvitationUpsertArgs - result: runtime.Types.Utils.PayloadToResult - } - aggregate: { - args: Prisma.ProjectInvitationAggregateArgs - result: runtime.Types.Utils.Optional - } - groupBy: { - args: Prisma.ProjectInvitationGroupByArgs - result: runtime.Types.Utils.Optional[] - } - count: { - args: Prisma.ProjectInvitationCountArgs - 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', - createdAt: 'createdAt', - email: 'email', - emailVerified: 'emailVerified', - username: 'username', - color: 'color', - role: 'role', - isProUntil: 'isProUntil', - isSubscriptionCancelled: 'isSubscriptionCancelled', - subscriptionProvider: 'subscriptionProvider', - settings: 'settings' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - -export const AccountScalarFieldEnum = { - id: 'id', - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state' -} as const - -export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] - - -export const SessionScalarFieldEnum = { - id: 'id', - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires' -} as const - -export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] - - -export const VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -} as const - -export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum] - - -export const MagicLinkTokenScalarFieldEnum = { - id: 'id', - email: 'email', - tokenHash: 'tokenHash', - expiresAt: 'expiresAt', - createdAt: 'createdAt', - desktopNonce: 'desktopNonce', - inviteToken: 'inviteToken' -} as const - -export type MagicLinkTokenScalarFieldEnum = (typeof MagicLinkTokenScalarFieldEnum)[keyof typeof MagicLinkTokenScalarFieldEnum] - - -export const TransactionScalarFieldEnum = { - id: 'id', - userId: 'userId', - provider: 'provider', - transactionId: 'transactionId', - createdAt: 'createdAt' -} as const - -export type TransactionScalarFieldEnum = (typeof TransactionScalarFieldEnum)[keyof typeof TransactionScalarFieldEnum] - - -export const ProjectScalarFieldEnum = { - id: 'id', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - title: 'title', - description: 'description', - author: 'author', - hasPoster: 'hasPoster' -} as const - -export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] - - -export const ProjectMemberScalarFieldEnum = { - id: 'id', - role: 'role', - userId: 'userId', - projectId: 'projectId' -} as const - -export type ProjectMemberScalarFieldEnum = (typeof ProjectMemberScalarFieldEnum)[keyof typeof ProjectMemberScalarFieldEnum] - - -export const ProjectInvitationScalarFieldEnum = { - id: 'id', - token: 'token', - email: 'email', - createdAt: 'createdAt', - projectId: 'projectId' -} as const - -export type ProjectInvitationScalarFieldEnum = (typeof ProjectInvitationScalarFieldEnum)[keyof typeof ProjectInvitationScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const NullableJsonNullValueInput = { - DbNull: DbNull, - JsonNull: JsonNull -} as const - -export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] - - -export const QueryMode = { - default: 'default', - insensitive: 'insensitive' -} as const - -export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] - - -export const JsonNullValueFilter = { - DbNull: DbNull, - JsonNull: JsonNull, - AnyNull: AnyNull -} as const - -export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] - - -export const NullsOrder = { - first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - - - -/** - * Field references - */ - - -/** - * Reference to a field of type '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 'UserRole' - */ -export type EnumUserRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UserRole'> - - - -/** - * Reference to a field of type 'UserRole[]' - */ -export type ListEnumUserRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'UserRole[]'> - - - -/** - * Reference to a field of type 'Boolean' - */ -export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'> - - - -/** - * Reference to a field of type 'SubscriptionProvider' - */ -export type EnumSubscriptionProviderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'SubscriptionProvider'> - - - -/** - * Reference to a field of type 'SubscriptionProvider[]' - */ -export type ListEnumSubscriptionProviderFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'SubscriptionProvider[]'> - - - -/** - * 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 'ProjectRole' - */ -export type EnumProjectRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProjectRole'> - - - -/** - * Reference to a field of type 'ProjectRole[]' - */ -export type ListEnumProjectRoleFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'ProjectRole[]'> - - - -/** - * 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 const defineExtension = runtime.Extensions.defineExtension as unknown as runtime.Types.Extensions.ExtendsHook<"define", TypeMapCb, runtime.Types.Extensions.DefaultArgs> -export type DefaultPrismaClient = PrismaClient -export type ErrorFormat = 'pretty' | 'colorless' | 'minimal' -export type PrismaClientOptions = ({ - /** - * Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`. - */ - adapter: runtime.SqlDriverAdapterFactory - accelerateUrl?: never -} | { - /** - * Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database. - */ - accelerateUrl: string - adapter?: never -}) & { - /** - * @default "colorless" - */ - errorFormat?: ErrorFormat - /** - * @example - * ``` - * // Shorthand for `emit: 'stdout'` - * log: ['query', 'info', 'warn', 'error'] - * - * // Emit as events only - * log: [ - * { emit: 'event', level: 'query' }, - * { emit: 'event', level: 'info' }, - * { emit: 'event', level: 'warn' } - * { emit: 'event', level: 'error' } - * ] - * - * / Emit as events and log to stdout - * og: [ - * { emit: 'stdout', level: 'query' }, - * { emit: 'stdout', level: 'info' }, - * { emit: 'stdout', level: 'warn' } - * { emit: 'stdout', level: 'error' } - * - * ``` - * Read more in our [docs](https://pris.ly/d/logging). - */ - log?: (LogLevel | LogDefinition)[] - /** - * The default values for transactionOptions - * maxWait ?= 2000 - * timeout ?= 5000 - */ - transactionOptions?: { - maxWait?: number - timeout?: number - isolationLevel?: TransactionIsolationLevel - } - /** - * Global configuration for omitting model fields by default. - * - * @example - * ``` - * const prisma = new PrismaClient({ - * omit: { - * user: { - * password: true - * } - * } - * }) - * ``` - */ - omit?: GlobalOmitConfig - /** - * SQL commenter plugins that add metadata to SQL queries as comments. - * Comments follow the sqlcommenter format: https://google.github.io/sqlcommenter/ - * - * @example - * ``` - * const prisma = new PrismaClient({ - * adapter, - * comments: [ - * traceContext(), - * queryInsights(), - * ], - * }) - * ``` - */ - comments?: runtime.SqlCommenterPlugin[] -} -export type GlobalOmitConfig = { - user?: Prisma.UserOmit - account?: Prisma.AccountOmit - session?: Prisma.SessionOmit - verificationToken?: Prisma.VerificationTokenOmit - magicLinkToken?: Prisma.MagicLinkTokenOmit - transaction?: Prisma.TransactionOmit - project?: Prisma.ProjectOmit - projectMember?: Prisma.ProjectMemberOmit - projectInvitation?: Prisma.ProjectInvitationOmit -} - -/* 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/src/generated/client/internal/prismaNamespaceBrowser.ts b/src/generated/client/internal/prismaNamespaceBrowser.ts deleted file mode 100644 index c67ed3f2..00000000 --- a/src/generated/client/internal/prismaNamespaceBrowser.ts +++ /dev/null @@ -1,232 +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' -export type * from './prismaNamespace' - -export const Decimal = runtime.Decimal - - -export const NullTypes = { - DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull), - JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull), - AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull), -} -/** - * Helper for filtering JSON entries that have `null` on the database (empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const DbNull = runtime.DbNull - -/** - * Helper for filtering JSON entries that have JSON `null` values (not empty on the db) - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const JsonNull = runtime.JsonNull - -/** - * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull` - * - * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field - */ -export const AnyNull = runtime.AnyNull - - -export const ModelName = { - User: 'User', - Account: 'Account', - Session: 'Session', - VerificationToken: 'VerificationToken', - MagicLinkToken: 'MagicLinkToken', - Transaction: 'Transaction', - Project: 'Project', - ProjectMember: 'ProjectMember', - ProjectInvitation: 'ProjectInvitation' -} 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', - createdAt: 'createdAt', - email: 'email', - emailVerified: 'emailVerified', - username: 'username', - color: 'color', - role: 'role', - isProUntil: 'isProUntil', - isSubscriptionCancelled: 'isSubscriptionCancelled', - subscriptionProvider: 'subscriptionProvider', - settings: 'settings' -} as const - -export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum] - - -export const AccountScalarFieldEnum = { - id: 'id', - userId: 'userId', - type: 'type', - provider: 'provider', - providerAccountId: 'providerAccountId', - refresh_token: 'refresh_token', - access_token: 'access_token', - expires_at: 'expires_at', - token_type: 'token_type', - scope: 'scope', - id_token: 'id_token', - session_state: 'session_state' -} as const - -export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum] - - -export const SessionScalarFieldEnum = { - id: 'id', - sessionToken: 'sessionToken', - userId: 'userId', - expires: 'expires' -} as const - -export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum] - - -export const VerificationTokenScalarFieldEnum = { - identifier: 'identifier', - token: 'token', - expires: 'expires' -} as const - -export type VerificationTokenScalarFieldEnum = (typeof VerificationTokenScalarFieldEnum)[keyof typeof VerificationTokenScalarFieldEnum] - - -export const MagicLinkTokenScalarFieldEnum = { - id: 'id', - email: 'email', - tokenHash: 'tokenHash', - expiresAt: 'expiresAt', - createdAt: 'createdAt', - desktopNonce: 'desktopNonce', - inviteToken: 'inviteToken' -} as const - -export type MagicLinkTokenScalarFieldEnum = (typeof MagicLinkTokenScalarFieldEnum)[keyof typeof MagicLinkTokenScalarFieldEnum] - - -export const TransactionScalarFieldEnum = { - id: 'id', - userId: 'userId', - provider: 'provider', - transactionId: 'transactionId', - createdAt: 'createdAt' -} as const - -export type TransactionScalarFieldEnum = (typeof TransactionScalarFieldEnum)[keyof typeof TransactionScalarFieldEnum] - - -export const ProjectScalarFieldEnum = { - id: 'id', - createdAt: 'createdAt', - updatedAt: 'updatedAt', - title: 'title', - description: 'description', - author: 'author', - hasPoster: 'hasPoster' -} as const - -export type ProjectScalarFieldEnum = (typeof ProjectScalarFieldEnum)[keyof typeof ProjectScalarFieldEnum] - - -export const ProjectMemberScalarFieldEnum = { - id: 'id', - role: 'role', - userId: 'userId', - projectId: 'projectId' -} as const - -export type ProjectMemberScalarFieldEnum = (typeof ProjectMemberScalarFieldEnum)[keyof typeof ProjectMemberScalarFieldEnum] - - -export const ProjectInvitationScalarFieldEnum = { - id: 'id', - token: 'token', - email: 'email', - createdAt: 'createdAt', - projectId: 'projectId' -} as const - -export type ProjectInvitationScalarFieldEnum = (typeof ProjectInvitationScalarFieldEnum)[keyof typeof ProjectInvitationScalarFieldEnum] - - -export const SortOrder = { - asc: 'asc', - desc: 'desc' -} as const - -export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder] - - -export const NullableJsonNullValueInput = { - DbNull: DbNull, - JsonNull: JsonNull -} as const - -export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput] - - -export const QueryMode = { - default: 'default', - insensitive: 'insensitive' -} as const - -export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode] - - -export const JsonNullValueFilter = { - DbNull: DbNull, - JsonNull: JsonNull, - AnyNull: AnyNull -} as const - -export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter] - - -export const NullsOrder = { - first: 'first', - last: 'last' -} as const - -export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder] - diff --git a/src/generated/client/models.ts b/src/generated/client/models.ts deleted file mode 100644 index 2db97a39..00000000 --- a/src/generated/client/models.ts +++ /dev/null @@ -1,20 +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' -export type * from './models/Account' -export type * from './models/Session' -export type * from './models/VerificationToken' -export type * from './models/MagicLinkToken' -export type * from './models/Transaction' -export type * from './models/Project' -export type * from './models/ProjectMember' -export type * from './models/ProjectInvitation' -export type * from './commonInputTypes' \ No newline at end of file diff --git a/src/generated/client/models/Account.ts b/src/generated/client/models/Account.ts deleted file mode 100644 index 068b2bd1..00000000 --- a/src/generated/client/models/Account.ts +++ /dev/null @@ -1,1648 +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 `Account` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model Account - * - */ -export type AccountModel = runtime.Types.Result.DefaultSelection - -export type AggregateAccount = { - _count: AccountCountAggregateOutputType | null - _avg: AccountAvgAggregateOutputType | null - _sum: AccountSumAggregateOutputType | null - _min: AccountMinAggregateOutputType | null - _max: AccountMaxAggregateOutputType | null -} - -export type AccountAvgAggregateOutputType = { - expires_at: number | null -} - -export type AccountSumAggregateOutputType = { - expires_at: number | null -} - -export type AccountMinAggregateOutputType = { - id: string | null - userId: string | null - type: string | null - provider: string | null - providerAccountId: string | null - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null -} - -export type AccountMaxAggregateOutputType = { - id: string | null - userId: string | null - type: string | null - provider: string | null - providerAccountId: string | null - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null -} - -export type AccountCountAggregateOutputType = { - id: number - userId: number - type: number - provider: number - providerAccountId: number - refresh_token: number - access_token: number - expires_at: number - token_type: number - scope: number - id_token: number - session_state: number - _all: number -} - - -export type AccountAvgAggregateInputType = { - expires_at?: true -} - -export type AccountSumAggregateInputType = { - expires_at?: true -} - -export type AccountMinAggregateInputType = { - id?: true - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true -} - -export type AccountMaxAggregateInputType = { - id?: true - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true -} - -export type AccountCountAggregateInputType = { - id?: true - userId?: true - type?: true - provider?: true - providerAccountId?: true - refresh_token?: true - access_token?: true - expires_at?: true - token_type?: true - scope?: true - id_token?: true - session_state?: true - _all?: true -} - -export type AccountAggregateArgs = { - /** - * Filter which Account to aggregate. - */ - where?: Prisma.AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts 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` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Accounts - **/ - _count?: true | AccountCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: AccountAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: AccountSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: AccountMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: AccountMaxAggregateInputType -} - -export type GetAccountAggregateType = { - [P in keyof T & keyof AggregateAccount]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type AccountGroupByArgs = { - where?: Prisma.AccountWhereInput - orderBy?: Prisma.AccountOrderByWithAggregationInput | Prisma.AccountOrderByWithAggregationInput[] - by: Prisma.AccountScalarFieldEnum[] | Prisma.AccountScalarFieldEnum - having?: Prisma.AccountScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: AccountCountAggregateInputType | true - _avg?: AccountAvgAggregateInputType - _sum?: AccountSumAggregateInputType - _min?: AccountMinAggregateInputType - _max?: AccountMaxAggregateInputType -} - -export type AccountGroupByOutputType = { - id: string - userId: string - type: string - provider: string - providerAccountId: string - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - _count: AccountCountAggregateOutputType | null - _avg: AccountAvgAggregateOutputType | null - _sum: AccountSumAggregateOutputType | null - _min: AccountMinAggregateOutputType | null - _max: AccountMaxAggregateOutputType | null -} - -export type GetAccountGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof AccountGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type AccountWhereInput = { - AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] - OR?: Prisma.AccountWhereInput[] - NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] - id?: Prisma.StringFilter<"Account"> | string - userId?: Prisma.StringFilter<"Account"> | string - type?: Prisma.StringFilter<"Account"> | string - provider?: Prisma.StringFilter<"Account"> | string - providerAccountId?: Prisma.StringFilter<"Account"> | string - refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null - access_token?: Prisma.StringNullableFilter<"Account"> | string | null - expires_at?: Prisma.IntNullableFilter<"Account"> | number | null - token_type?: Prisma.StringNullableFilter<"Account"> | string | null - scope?: Prisma.StringNullableFilter<"Account"> | string | null - id_token?: Prisma.StringNullableFilter<"Account"> | string | null - session_state?: Prisma.StringNullableFilter<"Account"> | string | null - user?: Prisma.XOR -} - -export type AccountOrderByWithRelationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder - access_token?: Prisma.SortOrderInput | Prisma.SortOrder - expires_at?: Prisma.SortOrderInput | Prisma.SortOrder - token_type?: Prisma.SortOrderInput | Prisma.SortOrder - scope?: Prisma.SortOrderInput | Prisma.SortOrder - id_token?: Prisma.SortOrderInput | Prisma.SortOrder - session_state?: Prisma.SortOrderInput | Prisma.SortOrder - user?: Prisma.UserOrderByWithRelationInput -} - -export type AccountWhereUniqueInput = Prisma.AtLeast<{ - id?: string - provider_providerAccountId?: Prisma.AccountProviderProviderAccountIdCompoundUniqueInput - AND?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] - OR?: Prisma.AccountWhereInput[] - NOT?: Prisma.AccountWhereInput | Prisma.AccountWhereInput[] - userId?: Prisma.StringFilter<"Account"> | string - type?: Prisma.StringFilter<"Account"> | string - provider?: Prisma.StringFilter<"Account"> | string - providerAccountId?: Prisma.StringFilter<"Account"> | string - refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null - access_token?: Prisma.StringNullableFilter<"Account"> | string | null - expires_at?: Prisma.IntNullableFilter<"Account"> | number | null - token_type?: Prisma.StringNullableFilter<"Account"> | string | null - scope?: Prisma.StringNullableFilter<"Account"> | string | null - id_token?: Prisma.StringNullableFilter<"Account"> | string | null - session_state?: Prisma.StringNullableFilter<"Account"> | string | null - user?: Prisma.XOR -}, "id" | "provider_providerAccountId"> - -export type AccountOrderByWithAggregationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrderInput | Prisma.SortOrder - access_token?: Prisma.SortOrderInput | Prisma.SortOrder - expires_at?: Prisma.SortOrderInput | Prisma.SortOrder - token_type?: Prisma.SortOrderInput | Prisma.SortOrder - scope?: Prisma.SortOrderInput | Prisma.SortOrder - id_token?: Prisma.SortOrderInput | Prisma.SortOrder - session_state?: Prisma.SortOrderInput | Prisma.SortOrder - _count?: Prisma.AccountCountOrderByAggregateInput - _avg?: Prisma.AccountAvgOrderByAggregateInput - _max?: Prisma.AccountMaxOrderByAggregateInput - _min?: Prisma.AccountMinOrderByAggregateInput - _sum?: Prisma.AccountSumOrderByAggregateInput -} - -export type AccountScalarWhereWithAggregatesInput = { - AND?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[] - OR?: Prisma.AccountScalarWhereWithAggregatesInput[] - NOT?: Prisma.AccountScalarWhereWithAggregatesInput | Prisma.AccountScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Account"> | string - userId?: Prisma.StringWithAggregatesFilter<"Account"> | string - type?: Prisma.StringWithAggregatesFilter<"Account"> | string - provider?: Prisma.StringWithAggregatesFilter<"Account"> | string - providerAccountId?: Prisma.StringWithAggregatesFilter<"Account"> | string - refresh_token?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - access_token?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - expires_at?: Prisma.IntNullableWithAggregatesFilter<"Account"> | number | null - token_type?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - scope?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - id_token?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null - session_state?: Prisma.StringNullableWithAggregatesFilter<"Account"> | string | null -} - -export type AccountCreateInput = { - id?: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null - user: Prisma.UserCreateNestedOneWithoutAccountsInput -} - -export type AccountUncheckedCreateInput = { - id?: string - userId: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - user?: Prisma.UserUpdateOneRequiredWithoutAccountsNestedInput -} - -export type AccountUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountCreateManyInput = { - id?: string - userId: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountListRelationFilter = { - every?: Prisma.AccountWhereInput - some?: Prisma.AccountWhereInput - none?: Prisma.AccountWhereInput -} - -export type AccountOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type AccountProviderProviderAccountIdCompoundUniqueInput = { - provider: string - providerAccountId: string -} - -export type AccountCountOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrder - access_token?: Prisma.SortOrder - expires_at?: Prisma.SortOrder - token_type?: Prisma.SortOrder - scope?: Prisma.SortOrder - id_token?: Prisma.SortOrder - session_state?: Prisma.SortOrder -} - -export type AccountAvgOrderByAggregateInput = { - expires_at?: Prisma.SortOrder -} - -export type AccountMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrder - access_token?: Prisma.SortOrder - expires_at?: Prisma.SortOrder - token_type?: Prisma.SortOrder - scope?: Prisma.SortOrder - id_token?: Prisma.SortOrder - session_state?: Prisma.SortOrder -} - -export type AccountMinOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - type?: Prisma.SortOrder - provider?: Prisma.SortOrder - providerAccountId?: Prisma.SortOrder - refresh_token?: Prisma.SortOrder - access_token?: Prisma.SortOrder - expires_at?: Prisma.SortOrder - token_type?: Prisma.SortOrder - scope?: Prisma.SortOrder - id_token?: Prisma.SortOrder - session_state?: Prisma.SortOrder -} - -export type AccountSumOrderByAggregateInput = { - expires_at?: Prisma.SortOrder -} - -export type AccountCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] - createMany?: Prisma.AccountCreateManyUserInputEnvelope - connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] -} - -export type AccountUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] - createMany?: Prisma.AccountCreateManyUserInputEnvelope - connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] -} - -export type AccountUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] - upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.AccountCreateManyUserInputEnvelope - set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] -} - -export type AccountUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.AccountCreateWithoutUserInput[] | Prisma.AccountUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.AccountCreateOrConnectWithoutUserInput | Prisma.AccountCreateOrConnectWithoutUserInput[] - upsert?: Prisma.AccountUpsertWithWhereUniqueWithoutUserInput | Prisma.AccountUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.AccountCreateManyUserInputEnvelope - set?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - disconnect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - delete?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - connect?: Prisma.AccountWhereUniqueInput | Prisma.AccountWhereUniqueInput[] - update?: Prisma.AccountUpdateWithWhereUniqueWithoutUserInput | Prisma.AccountUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.AccountUpdateManyWithWhereWithoutUserInput | Prisma.AccountUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] -} - -export type NullableIntFieldUpdateOperationsInput = { - set?: number | null - increment?: number - decrement?: number - multiply?: number - divide?: number -} - -export type AccountCreateWithoutUserInput = { - id?: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountUncheckedCreateWithoutUserInput = { - id?: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountCreateOrConnectWithoutUserInput = { - where: Prisma.AccountWhereUniqueInput - create: Prisma.XOR -} - -export type AccountCreateManyUserInputEnvelope = { - data: Prisma.AccountCreateManyUserInput | Prisma.AccountCreateManyUserInput[] - skipDuplicates?: boolean -} - -export type AccountUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.AccountWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type AccountUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.AccountWhereUniqueInput - data: Prisma.XOR -} - -export type AccountUpdateManyWithWhereWithoutUserInput = { - where: Prisma.AccountScalarWhereInput - data: Prisma.XOR -} - -export type AccountScalarWhereInput = { - AND?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] - OR?: Prisma.AccountScalarWhereInput[] - NOT?: Prisma.AccountScalarWhereInput | Prisma.AccountScalarWhereInput[] - id?: Prisma.StringFilter<"Account"> | string - userId?: Prisma.StringFilter<"Account"> | string - type?: Prisma.StringFilter<"Account"> | string - provider?: Prisma.StringFilter<"Account"> | string - providerAccountId?: Prisma.StringFilter<"Account"> | string - refresh_token?: Prisma.StringNullableFilter<"Account"> | string | null - access_token?: Prisma.StringNullableFilter<"Account"> | string | null - expires_at?: Prisma.IntNullableFilter<"Account"> | number | null - token_type?: Prisma.StringNullableFilter<"Account"> | string | null - scope?: Prisma.StringNullableFilter<"Account"> | string | null - id_token?: Prisma.StringNullableFilter<"Account"> | string | null - session_state?: Prisma.StringNullableFilter<"Account"> | string | null -} - -export type AccountCreateManyUserInput = { - id?: string - type: string - provider: string - providerAccountId: string - refresh_token?: string | null - access_token?: string | null - expires_at?: number | null - token_type?: string | null - scope?: string | null - id_token?: string | null - session_state?: string | null -} - -export type AccountUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountUncheckedUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type AccountUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - type?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.StringFieldUpdateOperationsInput | string - providerAccountId?: Prisma.StringFieldUpdateOperationsInput | string - refresh_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - access_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - expires_at?: Prisma.NullableIntFieldUpdateOperationsInput | number | null - token_type?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - scope?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - id_token?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - session_state?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - - - -export type AccountSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["account"]> - -export type AccountSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["account"]> - -export type AccountSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["account"]> - -export type AccountSelectScalar = { - id?: boolean - userId?: boolean - type?: boolean - provider?: boolean - providerAccountId?: boolean - refresh_token?: boolean - access_token?: boolean - expires_at?: boolean - token_type?: boolean - scope?: boolean - id_token?: boolean - session_state?: boolean -} - -export type AccountOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "type" | "provider" | "providerAccountId" | "refresh_token" | "access_token" | "expires_at" | "token_type" | "scope" | "id_token" | "session_state", ExtArgs["result"]["account"]> -export type AccountInclude = { - user?: boolean | Prisma.UserDefaultArgs -} -export type AccountIncludeCreateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} -export type AccountIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} - -export type $AccountPayload = { - name: "Account" - objects: { - user: Prisma.$UserPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - userId: string - type: string - provider: string - providerAccountId: string - refresh_token: string | null - access_token: string | null - expires_at: number | null - token_type: string | null - scope: string | null - id_token: string | null - session_state: string | null - }, ExtArgs["result"]["account"]> - composites: {} -} - -export type AccountGetPayload = runtime.Types.Result.GetResult - -export type AccountCountArgs = - Omit & { - select?: AccountCountAggregateInputType | true - } - -export interface AccountDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Account'], meta: { name: 'Account' } } - /** - * Find zero or one Account that matches the filter. - * @param {AccountFindUniqueArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Account that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {AccountFindUniqueOrThrowArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Account 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 {AccountFindFirstArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Account 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 {AccountFindFirstOrThrowArgs} args - Arguments to find a Account - * @example - * // Get one Account - * const account = await prisma.account.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Accounts 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 {AccountFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Accounts - * const accounts = await prisma.account.findMany() - * - * // Get first 10 Accounts - * const accounts = await prisma.account.findMany({ take: 10 }) - * - * // Only select the `id` - * const accountWithIdOnly = await prisma.account.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Account. - * @param {AccountCreateArgs} args - Arguments to create a Account. - * @example - * // Create one Account - * const Account = await prisma.account.create({ - * data: { - * // ... data to create a Account - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Accounts. - * @param {AccountCreateManyArgs} args - Arguments to create many Accounts. - * @example - * // Create many Accounts - * const account = await prisma.account.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Accounts and returns the data saved in the database. - * @param {AccountCreateManyAndReturnArgs} args - Arguments to create many Accounts. - * @example - * // Create many Accounts - * const account = await prisma.account.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Accounts and only return the `id` - * const accountWithIdOnly = await prisma.account.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 Account. - * @param {AccountDeleteArgs} args - Arguments to delete one Account. - * @example - * // Delete one Account - * const Account = await prisma.account.delete({ - * where: { - * // ... filter to delete one Account - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Account. - * @param {AccountUpdateArgs} args - Arguments to update one Account. - * @example - * // Update one Account - * const account = await prisma.account.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Accounts. - * @param {AccountDeleteManyArgs} args - Arguments to filter Accounts to delete. - * @example - * // Delete a few Accounts - * const { count } = await prisma.account.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Accounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Accounts - * const account = await prisma.account.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Accounts and returns the data updated in the database. - * @param {AccountUpdateManyAndReturnArgs} args - Arguments to update many Accounts. - * @example - * // Update many Accounts - * const account = await prisma.account.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Accounts and only return the `id` - * const accountWithIdOnly = await prisma.account.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 Account. - * @param {AccountUpsertArgs} args - Arguments to update or create a Account. - * @example - * // Update or create a Account - * const account = await prisma.account.upsert({ - * create: { - * // ... data to create a Account - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Account we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__AccountClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Accounts. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountCountArgs} args - Arguments to filter Accounts to count. - * @example - * // Count the number of Accounts - * const count = await prisma.account.count({ - * where: { - * // ... the filter for the Accounts 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 Account. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountAggregateArgs} 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 Account. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {AccountGroupByArgs} 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 AccountGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: AccountGroupByArgs['orderBy'] } - : { orderBy?: AccountGroupByArgs['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 ? GetAccountGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Account model - */ -readonly fields: AccountFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Account. - * 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__AccountClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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 Account model - */ -export interface AccountFieldRefs { - readonly id: Prisma.FieldRef<"Account", 'String'> - readonly userId: Prisma.FieldRef<"Account", 'String'> - readonly type: Prisma.FieldRef<"Account", 'String'> - readonly provider: Prisma.FieldRef<"Account", 'String'> - readonly providerAccountId: Prisma.FieldRef<"Account", 'String'> - readonly refresh_token: Prisma.FieldRef<"Account", 'String'> - readonly access_token: Prisma.FieldRef<"Account", 'String'> - readonly expires_at: Prisma.FieldRef<"Account", 'Int'> - readonly token_type: Prisma.FieldRef<"Account", 'String'> - readonly scope: Prisma.FieldRef<"Account", 'String'> - readonly id_token: Prisma.FieldRef<"Account", 'String'> - readonly session_state: Prisma.FieldRef<"Account", 'String'> -} - - -// Custom InputTypes -/** - * Account findUnique - */ -export type AccountFindUniqueArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where: Prisma.AccountWhereUniqueInput -} - -/** - * Account findUniqueOrThrow - */ -export type AccountFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where: Prisma.AccountWhereUniqueInput -} - -/** - * Account findFirst - */ -export type AccountFindFirstArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where?: Prisma.AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Accounts. - */ - cursor?: Prisma.AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts 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` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Accounts. - */ - distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] -} - -/** - * Account findFirstOrThrow - */ -export type AccountFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Account to fetch. - */ - where?: Prisma.AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Accounts. - */ - cursor?: Prisma.AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts 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` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Accounts. - */ - distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] -} - -/** - * Account findMany - */ -export type AccountFindManyArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter, which Accounts to fetch. - */ - where?: Prisma.AccountWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Accounts to fetch. - */ - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Accounts. - */ - cursor?: Prisma.AccountWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Accounts 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` Accounts. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Accounts. - */ - distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] -} - -/** - * Account create - */ -export type AccountCreateArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * The data needed to create a Account. - */ - data: Prisma.XOR -} - -/** - * Account createMany - */ -export type AccountCreateManyArgs = { - /** - * The data used to create many Accounts. - */ - data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * Account createManyAndReturn - */ -export type AccountCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * The data used to create many Accounts. - */ - data: Prisma.AccountCreateManyInput | Prisma.AccountCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountIncludeCreateManyAndReturn | null -} - -/** - * Account update - */ -export type AccountUpdateArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * The data needed to update a Account. - */ - data: Prisma.XOR - /** - * Choose, which Account to update. - */ - where: Prisma.AccountWhereUniqueInput -} - -/** - * Account updateMany - */ -export type AccountUpdateManyArgs = { - /** - * The data used to update Accounts. - */ - data: Prisma.XOR - /** - * Filter which Accounts to update - */ - where?: Prisma.AccountWhereInput - /** - * Limit how many Accounts to update. - */ - limit?: number -} - -/** - * Account updateManyAndReturn - */ -export type AccountUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * The data used to update Accounts. - */ - data: Prisma.XOR - /** - * Filter which Accounts to update - */ - where?: Prisma.AccountWhereInput - /** - * Limit how many Accounts to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountIncludeUpdateManyAndReturn | null -} - -/** - * Account upsert - */ -export type AccountUpsertArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * The filter to search for the Account to update in case it exists. - */ - where: Prisma.AccountWhereUniqueInput - /** - * In case the Account found by the `where` argument doesn't exist, create a new Account with this data. - */ - create: Prisma.XOR - /** - * In case the Account was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Account delete - */ -export type AccountDeleteArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - /** - * Filter which Account to delete. - */ - where: Prisma.AccountWhereUniqueInput -} - -/** - * Account deleteMany - */ -export type AccountDeleteManyArgs = { - /** - * Filter which Accounts to delete - */ - where?: Prisma.AccountWhereInput - /** - * Limit how many Accounts to delete. - */ - limit?: number -} - -/** - * Account without action - */ -export type AccountDefaultArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null -} diff --git a/src/generated/client/models/MagicLinkToken.ts b/src/generated/client/models/MagicLinkToken.ts deleted file mode 100644 index 9e3a2234..00000000 --- a/src/generated/client/models/MagicLinkToken.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 -/* - * This file exports the `MagicLinkToken` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model MagicLinkToken - * - */ -export type MagicLinkTokenModel = runtime.Types.Result.DefaultSelection - -export type AggregateMagicLinkToken = { - _count: MagicLinkTokenCountAggregateOutputType | null - _avg: MagicLinkTokenAvgAggregateOutputType | null - _sum: MagicLinkTokenSumAggregateOutputType | null - _min: MagicLinkTokenMinAggregateOutputType | null - _max: MagicLinkTokenMaxAggregateOutputType | null -} - -export type MagicLinkTokenAvgAggregateOutputType = { - id: number | null -} - -export type MagicLinkTokenSumAggregateOutputType = { - id: number | null -} - -export type MagicLinkTokenMinAggregateOutputType = { - id: number | null - email: string | null - tokenHash: string | null - expiresAt: Date | null - createdAt: Date | null - desktopNonce: string | null - inviteToken: string | null -} - -export type MagicLinkTokenMaxAggregateOutputType = { - id: number | null - email: string | null - tokenHash: string | null - expiresAt: Date | null - createdAt: Date | null - desktopNonce: string | null - inviteToken: string | null -} - -export type MagicLinkTokenCountAggregateOutputType = { - id: number - email: number - tokenHash: number - expiresAt: number - createdAt: number - desktopNonce: number - inviteToken: number - _all: number -} - - -export type MagicLinkTokenAvgAggregateInputType = { - id?: true -} - -export type MagicLinkTokenSumAggregateInputType = { - id?: true -} - -export type MagicLinkTokenMinAggregateInputType = { - id?: true - email?: true - tokenHash?: true - expiresAt?: true - createdAt?: true - desktopNonce?: true - inviteToken?: true -} - -export type MagicLinkTokenMaxAggregateInputType = { - id?: true - email?: true - tokenHash?: true - expiresAt?: true - createdAt?: true - desktopNonce?: true - inviteToken?: true -} - -export type MagicLinkTokenCountAggregateInputType = { - id?: true - email?: true - tokenHash?: true - expiresAt?: true - createdAt?: true - desktopNonce?: true - inviteToken?: true - _all?: true -} - -export type MagicLinkTokenAggregateArgs = { - /** - * Filter which MagicLinkToken to aggregate. - */ - where?: Prisma.MagicLinkTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MagicLinkTokens to fetch. - */ - orderBy?: Prisma.MagicLinkTokenOrderByWithRelationInput | Prisma.MagicLinkTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.MagicLinkTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MagicLinkTokens 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` MagicLinkTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned MagicLinkTokens - **/ - _count?: true | MagicLinkTokenCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: MagicLinkTokenAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: MagicLinkTokenSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: MagicLinkTokenMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: MagicLinkTokenMaxAggregateInputType -} - -export type GetMagicLinkTokenAggregateType = { - [P in keyof T & keyof AggregateMagicLinkToken]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type MagicLinkTokenGroupByArgs = { - where?: Prisma.MagicLinkTokenWhereInput - orderBy?: Prisma.MagicLinkTokenOrderByWithAggregationInput | Prisma.MagicLinkTokenOrderByWithAggregationInput[] - by: Prisma.MagicLinkTokenScalarFieldEnum[] | Prisma.MagicLinkTokenScalarFieldEnum - having?: Prisma.MagicLinkTokenScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: MagicLinkTokenCountAggregateInputType | true - _avg?: MagicLinkTokenAvgAggregateInputType - _sum?: MagicLinkTokenSumAggregateInputType - _min?: MagicLinkTokenMinAggregateInputType - _max?: MagicLinkTokenMaxAggregateInputType -} - -export type MagicLinkTokenGroupByOutputType = { - id: number - email: string - tokenHash: string - expiresAt: Date - createdAt: Date - desktopNonce: string | null - inviteToken: string | null - _count: MagicLinkTokenCountAggregateOutputType | null - _avg: MagicLinkTokenAvgAggregateOutputType | null - _sum: MagicLinkTokenSumAggregateOutputType | null - _min: MagicLinkTokenMinAggregateOutputType | null - _max: MagicLinkTokenMaxAggregateOutputType | null -} - -export type GetMagicLinkTokenGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof MagicLinkTokenGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type MagicLinkTokenWhereInput = { - AND?: Prisma.MagicLinkTokenWhereInput | Prisma.MagicLinkTokenWhereInput[] - OR?: Prisma.MagicLinkTokenWhereInput[] - NOT?: Prisma.MagicLinkTokenWhereInput | Prisma.MagicLinkTokenWhereInput[] - id?: Prisma.IntFilter<"MagicLinkToken"> | number - email?: Prisma.StringFilter<"MagicLinkToken"> | string - tokenHash?: Prisma.StringFilter<"MagicLinkToken"> | string - expiresAt?: Prisma.DateTimeFilter<"MagicLinkToken"> | Date | string - createdAt?: Prisma.DateTimeFilter<"MagicLinkToken"> | Date | string - desktopNonce?: Prisma.StringNullableFilter<"MagicLinkToken"> | string | null - inviteToken?: Prisma.StringNullableFilter<"MagicLinkToken"> | string | null -} - -export type MagicLinkTokenOrderByWithRelationInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - tokenHash?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - desktopNonce?: Prisma.SortOrderInput | Prisma.SortOrder - inviteToken?: Prisma.SortOrderInput | Prisma.SortOrder -} - -export type MagicLinkTokenWhereUniqueInput = Prisma.AtLeast<{ - id?: number - tokenHash?: string - AND?: Prisma.MagicLinkTokenWhereInput | Prisma.MagicLinkTokenWhereInput[] - OR?: Prisma.MagicLinkTokenWhereInput[] - NOT?: Prisma.MagicLinkTokenWhereInput | Prisma.MagicLinkTokenWhereInput[] - email?: Prisma.StringFilter<"MagicLinkToken"> | string - expiresAt?: Prisma.DateTimeFilter<"MagicLinkToken"> | Date | string - createdAt?: Prisma.DateTimeFilter<"MagicLinkToken"> | Date | string - desktopNonce?: Prisma.StringNullableFilter<"MagicLinkToken"> | string | null - inviteToken?: Prisma.StringNullableFilter<"MagicLinkToken"> | string | null -}, "id" | "tokenHash"> - -export type MagicLinkTokenOrderByWithAggregationInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - tokenHash?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - desktopNonce?: Prisma.SortOrderInput | Prisma.SortOrder - inviteToken?: Prisma.SortOrderInput | Prisma.SortOrder - _count?: Prisma.MagicLinkTokenCountOrderByAggregateInput - _avg?: Prisma.MagicLinkTokenAvgOrderByAggregateInput - _max?: Prisma.MagicLinkTokenMaxOrderByAggregateInput - _min?: Prisma.MagicLinkTokenMinOrderByAggregateInput - _sum?: Prisma.MagicLinkTokenSumOrderByAggregateInput -} - -export type MagicLinkTokenScalarWhereWithAggregatesInput = { - AND?: Prisma.MagicLinkTokenScalarWhereWithAggregatesInput | Prisma.MagicLinkTokenScalarWhereWithAggregatesInput[] - OR?: Prisma.MagicLinkTokenScalarWhereWithAggregatesInput[] - NOT?: Prisma.MagicLinkTokenScalarWhereWithAggregatesInput | Prisma.MagicLinkTokenScalarWhereWithAggregatesInput[] - id?: Prisma.IntWithAggregatesFilter<"MagicLinkToken"> | number - email?: Prisma.StringWithAggregatesFilter<"MagicLinkToken"> | string - tokenHash?: Prisma.StringWithAggregatesFilter<"MagicLinkToken"> | string - expiresAt?: Prisma.DateTimeWithAggregatesFilter<"MagicLinkToken"> | Date | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<"MagicLinkToken"> | Date | string - desktopNonce?: Prisma.StringNullableWithAggregatesFilter<"MagicLinkToken"> | string | null - inviteToken?: Prisma.StringNullableWithAggregatesFilter<"MagicLinkToken"> | string | null -} - -export type MagicLinkTokenCreateInput = { - email: string - tokenHash: string - expiresAt: Date | string - createdAt?: Date | string - desktopNonce?: string | null - inviteToken?: string | null -} - -export type MagicLinkTokenUncheckedCreateInput = { - id?: number - email: string - tokenHash: string - expiresAt: Date | string - createdAt?: Date | string - desktopNonce?: string | null - inviteToken?: string | null -} - -export type MagicLinkTokenUpdateInput = { - email?: Prisma.StringFieldUpdateOperationsInput | string - tokenHash?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - desktopNonce?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - inviteToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type MagicLinkTokenUncheckedUpdateInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - email?: Prisma.StringFieldUpdateOperationsInput | string - tokenHash?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - desktopNonce?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - inviteToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type MagicLinkTokenCreateManyInput = { - id?: number - email: string - tokenHash: string - expiresAt: Date | string - createdAt?: Date | string - desktopNonce?: string | null - inviteToken?: string | null -} - -export type MagicLinkTokenUpdateManyMutationInput = { - email?: Prisma.StringFieldUpdateOperationsInput | string - tokenHash?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - desktopNonce?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - inviteToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type MagicLinkTokenUncheckedUpdateManyInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - email?: Prisma.StringFieldUpdateOperationsInput | string - tokenHash?: Prisma.StringFieldUpdateOperationsInput | string - expiresAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - desktopNonce?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - inviteToken?: Prisma.NullableStringFieldUpdateOperationsInput | string | null -} - -export type MagicLinkTokenCountOrderByAggregateInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - tokenHash?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - desktopNonce?: Prisma.SortOrder - inviteToken?: Prisma.SortOrder -} - -export type MagicLinkTokenAvgOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type MagicLinkTokenMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - tokenHash?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - desktopNonce?: Prisma.SortOrder - inviteToken?: Prisma.SortOrder -} - -export type MagicLinkTokenMinOrderByAggregateInput = { - id?: Prisma.SortOrder - email?: Prisma.SortOrder - tokenHash?: Prisma.SortOrder - expiresAt?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - desktopNonce?: Prisma.SortOrder - inviteToken?: Prisma.SortOrder -} - -export type MagicLinkTokenSumOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type IntFieldUpdateOperationsInput = { - set?: number - increment?: number - decrement?: number - multiply?: number - divide?: number -} - - - -export type MagicLinkTokenSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - email?: boolean - tokenHash?: boolean - expiresAt?: boolean - createdAt?: boolean - desktopNonce?: boolean - inviteToken?: boolean -}, ExtArgs["result"]["magicLinkToken"]> - -export type MagicLinkTokenSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - email?: boolean - tokenHash?: boolean - expiresAt?: boolean - createdAt?: boolean - desktopNonce?: boolean - inviteToken?: boolean -}, ExtArgs["result"]["magicLinkToken"]> - -export type MagicLinkTokenSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - email?: boolean - tokenHash?: boolean - expiresAt?: boolean - createdAt?: boolean - desktopNonce?: boolean - inviteToken?: boolean -}, ExtArgs["result"]["magicLinkToken"]> - -export type MagicLinkTokenSelectScalar = { - id?: boolean - email?: boolean - tokenHash?: boolean - expiresAt?: boolean - createdAt?: boolean - desktopNonce?: boolean - inviteToken?: boolean -} - -export type MagicLinkTokenOmit = runtime.Types.Extensions.GetOmit<"id" | "email" | "tokenHash" | "expiresAt" | "createdAt" | "desktopNonce" | "inviteToken", ExtArgs["result"]["magicLinkToken"]> - -export type $MagicLinkTokenPayload = { - name: "MagicLinkToken" - objects: {} - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: number - email: string - tokenHash: string - expiresAt: Date - createdAt: Date - desktopNonce: string | null - inviteToken: string | null - }, ExtArgs["result"]["magicLinkToken"]> - composites: {} -} - -export type MagicLinkTokenGetPayload = runtime.Types.Result.GetResult - -export type MagicLinkTokenCountArgs = - Omit & { - select?: MagicLinkTokenCountAggregateInputType | true - } - -export interface MagicLinkTokenDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['MagicLinkToken'], meta: { name: 'MagicLinkToken' } } - /** - * Find zero or one MagicLinkToken that matches the filter. - * @param {MagicLinkTokenFindUniqueArgs} args - Arguments to find a MagicLinkToken - * @example - * // Get one MagicLinkToken - * const magicLinkToken = await prisma.magicLinkToken.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__MagicLinkTokenClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one MagicLinkToken that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {MagicLinkTokenFindUniqueOrThrowArgs} args - Arguments to find a MagicLinkToken - * @example - * // Get one MagicLinkToken - * const magicLinkToken = await prisma.magicLinkToken.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__MagicLinkTokenClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first MagicLinkToken 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 {MagicLinkTokenFindFirstArgs} args - Arguments to find a MagicLinkToken - * @example - * // Get one MagicLinkToken - * const magicLinkToken = await prisma.magicLinkToken.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__MagicLinkTokenClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first MagicLinkToken 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 {MagicLinkTokenFindFirstOrThrowArgs} args - Arguments to find a MagicLinkToken - * @example - * // Get one MagicLinkToken - * const magicLinkToken = await prisma.magicLinkToken.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__MagicLinkTokenClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more MagicLinkTokens 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 {MagicLinkTokenFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all MagicLinkTokens - * const magicLinkTokens = await prisma.magicLinkToken.findMany() - * - * // Get first 10 MagicLinkTokens - * const magicLinkTokens = await prisma.magicLinkToken.findMany({ take: 10 }) - * - * // Only select the `id` - * const magicLinkTokenWithIdOnly = await prisma.magicLinkToken.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a MagicLinkToken. - * @param {MagicLinkTokenCreateArgs} args - Arguments to create a MagicLinkToken. - * @example - * // Create one MagicLinkToken - * const MagicLinkToken = await prisma.magicLinkToken.create({ - * data: { - * // ... data to create a MagicLinkToken - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__MagicLinkTokenClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many MagicLinkTokens. - * @param {MagicLinkTokenCreateManyArgs} args - Arguments to create many MagicLinkTokens. - * @example - * // Create many MagicLinkTokens - * const magicLinkToken = await prisma.magicLinkToken.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many MagicLinkTokens and returns the data saved in the database. - * @param {MagicLinkTokenCreateManyAndReturnArgs} args - Arguments to create many MagicLinkTokens. - * @example - * // Create many MagicLinkTokens - * const magicLinkToken = await prisma.magicLinkToken.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many MagicLinkTokens and only return the `id` - * const magicLinkTokenWithIdOnly = await prisma.magicLinkToken.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 MagicLinkToken. - * @param {MagicLinkTokenDeleteArgs} args - Arguments to delete one MagicLinkToken. - * @example - * // Delete one MagicLinkToken - * const MagicLinkToken = await prisma.magicLinkToken.delete({ - * where: { - * // ... filter to delete one MagicLinkToken - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__MagicLinkTokenClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one MagicLinkToken. - * @param {MagicLinkTokenUpdateArgs} args - Arguments to update one MagicLinkToken. - * @example - * // Update one MagicLinkToken - * const magicLinkToken = await prisma.magicLinkToken.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__MagicLinkTokenClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more MagicLinkTokens. - * @param {MagicLinkTokenDeleteManyArgs} args - Arguments to filter MagicLinkTokens to delete. - * @example - * // Delete a few MagicLinkTokens - * const { count } = await prisma.magicLinkToken.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more MagicLinkTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MagicLinkTokenUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many MagicLinkTokens - * const magicLinkToken = await prisma.magicLinkToken.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more MagicLinkTokens and returns the data updated in the database. - * @param {MagicLinkTokenUpdateManyAndReturnArgs} args - Arguments to update many MagicLinkTokens. - * @example - * // Update many MagicLinkTokens - * const magicLinkToken = await prisma.magicLinkToken.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more MagicLinkTokens and only return the `id` - * const magicLinkTokenWithIdOnly = await prisma.magicLinkToken.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 MagicLinkToken. - * @param {MagicLinkTokenUpsertArgs} args - Arguments to update or create a MagicLinkToken. - * @example - * // Update or create a MagicLinkToken - * const magicLinkToken = await prisma.magicLinkToken.upsert({ - * create: { - * // ... data to create a MagicLinkToken - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the MagicLinkToken we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__MagicLinkTokenClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of MagicLinkTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MagicLinkTokenCountArgs} args - Arguments to filter MagicLinkTokens to count. - * @example - * // Count the number of MagicLinkTokens - * const count = await prisma.magicLinkToken.count({ - * where: { - * // ... the filter for the MagicLinkTokens 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 MagicLinkToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MagicLinkTokenAggregateArgs} 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 MagicLinkToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {MagicLinkTokenGroupByArgs} 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 MagicLinkTokenGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: MagicLinkTokenGroupByArgs['orderBy'] } - : { orderBy?: MagicLinkTokenGroupByArgs['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 ? GetMagicLinkTokenGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the MagicLinkToken model - */ -readonly fields: MagicLinkTokenFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for MagicLinkToken. - * 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__MagicLinkTokenClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the MagicLinkToken model - */ -export interface MagicLinkTokenFieldRefs { - readonly id: Prisma.FieldRef<"MagicLinkToken", 'Int'> - readonly email: Prisma.FieldRef<"MagicLinkToken", 'String'> - readonly tokenHash: Prisma.FieldRef<"MagicLinkToken", 'String'> - readonly expiresAt: Prisma.FieldRef<"MagicLinkToken", 'DateTime'> - readonly createdAt: Prisma.FieldRef<"MagicLinkToken", 'DateTime'> - readonly desktopNonce: Prisma.FieldRef<"MagicLinkToken", 'String'> - readonly inviteToken: Prisma.FieldRef<"MagicLinkToken", 'String'> -} - - -// Custom InputTypes -/** - * MagicLinkToken findUnique - */ -export type MagicLinkTokenFindUniqueArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * Filter, which MagicLinkToken to fetch. - */ - where: Prisma.MagicLinkTokenWhereUniqueInput -} - -/** - * MagicLinkToken findUniqueOrThrow - */ -export type MagicLinkTokenFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * Filter, which MagicLinkToken to fetch. - */ - where: Prisma.MagicLinkTokenWhereUniqueInput -} - -/** - * MagicLinkToken findFirst - */ -export type MagicLinkTokenFindFirstArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * Filter, which MagicLinkToken to fetch. - */ - where?: Prisma.MagicLinkTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MagicLinkTokens to fetch. - */ - orderBy?: Prisma.MagicLinkTokenOrderByWithRelationInput | Prisma.MagicLinkTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for MagicLinkTokens. - */ - cursor?: Prisma.MagicLinkTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MagicLinkTokens 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` MagicLinkTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of MagicLinkTokens. - */ - distinct?: Prisma.MagicLinkTokenScalarFieldEnum | Prisma.MagicLinkTokenScalarFieldEnum[] -} - -/** - * MagicLinkToken findFirstOrThrow - */ -export type MagicLinkTokenFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * Filter, which MagicLinkToken to fetch. - */ - where?: Prisma.MagicLinkTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MagicLinkTokens to fetch. - */ - orderBy?: Prisma.MagicLinkTokenOrderByWithRelationInput | Prisma.MagicLinkTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for MagicLinkTokens. - */ - cursor?: Prisma.MagicLinkTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MagicLinkTokens 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` MagicLinkTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of MagicLinkTokens. - */ - distinct?: Prisma.MagicLinkTokenScalarFieldEnum | Prisma.MagicLinkTokenScalarFieldEnum[] -} - -/** - * MagicLinkToken findMany - */ -export type MagicLinkTokenFindManyArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * Filter, which MagicLinkTokens to fetch. - */ - where?: Prisma.MagicLinkTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of MagicLinkTokens to fetch. - */ - orderBy?: Prisma.MagicLinkTokenOrderByWithRelationInput | Prisma.MagicLinkTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing MagicLinkTokens. - */ - cursor?: Prisma.MagicLinkTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` MagicLinkTokens 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` MagicLinkTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of MagicLinkTokens. - */ - distinct?: Prisma.MagicLinkTokenScalarFieldEnum | Prisma.MagicLinkTokenScalarFieldEnum[] -} - -/** - * MagicLinkToken create - */ -export type MagicLinkTokenCreateArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * The data needed to create a MagicLinkToken. - */ - data: Prisma.XOR -} - -/** - * MagicLinkToken createMany - */ -export type MagicLinkTokenCreateManyArgs = { - /** - * The data used to create many MagicLinkTokens. - */ - data: Prisma.MagicLinkTokenCreateManyInput | Prisma.MagicLinkTokenCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * MagicLinkToken createManyAndReturn - */ -export type MagicLinkTokenCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelectCreateManyAndReturn | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * The data used to create many MagicLinkTokens. - */ - data: Prisma.MagicLinkTokenCreateManyInput | Prisma.MagicLinkTokenCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * MagicLinkToken update - */ -export type MagicLinkTokenUpdateArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * The data needed to update a MagicLinkToken. - */ - data: Prisma.XOR - /** - * Choose, which MagicLinkToken to update. - */ - where: Prisma.MagicLinkTokenWhereUniqueInput -} - -/** - * MagicLinkToken updateMany - */ -export type MagicLinkTokenUpdateManyArgs = { - /** - * The data used to update MagicLinkTokens. - */ - data: Prisma.XOR - /** - * Filter which MagicLinkTokens to update - */ - where?: Prisma.MagicLinkTokenWhereInput - /** - * Limit how many MagicLinkTokens to update. - */ - limit?: number -} - -/** - * MagicLinkToken updateManyAndReturn - */ -export type MagicLinkTokenUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * The data used to update MagicLinkTokens. - */ - data: Prisma.XOR - /** - * Filter which MagicLinkTokens to update - */ - where?: Prisma.MagicLinkTokenWhereInput - /** - * Limit how many MagicLinkTokens to update. - */ - limit?: number -} - -/** - * MagicLinkToken upsert - */ -export type MagicLinkTokenUpsertArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * The filter to search for the MagicLinkToken to update in case it exists. - */ - where: Prisma.MagicLinkTokenWhereUniqueInput - /** - * In case the MagicLinkToken found by the `where` argument doesn't exist, create a new MagicLinkToken with this data. - */ - create: Prisma.XOR - /** - * In case the MagicLinkToken was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * MagicLinkToken delete - */ -export type MagicLinkTokenDeleteArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null - /** - * Filter which MagicLinkToken to delete. - */ - where: Prisma.MagicLinkTokenWhereUniqueInput -} - -/** - * MagicLinkToken deleteMany - */ -export type MagicLinkTokenDeleteManyArgs = { - /** - * Filter which MagicLinkTokens to delete - */ - where?: Prisma.MagicLinkTokenWhereInput - /** - * Limit how many MagicLinkTokens to delete. - */ - limit?: number -} - -/** - * MagicLinkToken without action - */ -export type MagicLinkTokenDefaultArgs = { - /** - * Select specific fields to fetch from the MagicLinkToken - */ - select?: Prisma.MagicLinkTokenSelect | null - /** - * Omit specific fields from the MagicLinkToken - */ - omit?: Prisma.MagicLinkTokenOmit | null -} diff --git a/src/generated/client/models/Project.ts b/src/generated/client/models/Project.ts deleted file mode 100644 index 5b8fe942..00000000 --- a/src/generated/client/models/Project.ts +++ /dev/null @@ -1,1513 +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 `Project` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model Project - * - */ -export type ProjectModel = runtime.Types.Result.DefaultSelection - -export type AggregateProject = { - _count: ProjectCountAggregateOutputType | null - _min: ProjectMinAggregateOutputType | null - _max: ProjectMaxAggregateOutputType | null -} - -export type ProjectMinAggregateOutputType = { - id: string | null - createdAt: Date | null - updatedAt: Date | null - title: string | null - description: string | null - author: string | null - hasPoster: boolean | null -} - -export type ProjectMaxAggregateOutputType = { - id: string | null - createdAt: Date | null - updatedAt: Date | null - title: string | null - description: string | null - author: string | null - hasPoster: boolean | null -} - -export type ProjectCountAggregateOutputType = { - id: number - createdAt: number - updatedAt: number - title: number - description: number - author: number - hasPoster: number - _all: number -} - - -export type ProjectMinAggregateInputType = { - id?: true - createdAt?: true - updatedAt?: true - title?: true - description?: true - author?: true - hasPoster?: true -} - -export type ProjectMaxAggregateInputType = { - id?: true - createdAt?: true - updatedAt?: true - title?: true - description?: true - author?: true - hasPoster?: true -} - -export type ProjectCountAggregateInputType = { - id?: true - createdAt?: true - updatedAt?: true - title?: true - description?: true - author?: true - hasPoster?: true - _all?: true -} - -export type ProjectAggregateArgs = { - /** - * Filter which Project to aggregate. - */ - where?: Prisma.ProjectWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Projects to fetch. - */ - orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.ProjectWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Projects from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Projects. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Projects - **/ - _count?: true | ProjectCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: ProjectMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: ProjectMaxAggregateInputType -} - -export type GetProjectAggregateType = { - [P in keyof T & keyof AggregateProject]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type ProjectGroupByArgs = { - where?: Prisma.ProjectWhereInput - orderBy?: Prisma.ProjectOrderByWithAggregationInput | Prisma.ProjectOrderByWithAggregationInput[] - by: Prisma.ProjectScalarFieldEnum[] | Prisma.ProjectScalarFieldEnum - having?: Prisma.ProjectScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ProjectCountAggregateInputType | true - _min?: ProjectMinAggregateInputType - _max?: ProjectMaxAggregateInputType -} - -export type ProjectGroupByOutputType = { - id: string - createdAt: Date - updatedAt: Date - title: string - description: string | null - author: string | null - hasPoster: boolean - _count: ProjectCountAggregateOutputType | null - _min: ProjectMinAggregateOutputType | null - _max: ProjectMaxAggregateOutputType | null -} - -export type GetProjectGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof ProjectGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type ProjectWhereInput = { - AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] - OR?: Prisma.ProjectWhereInput[] - NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] - id?: Prisma.StringFilter<"Project"> | string - createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string - title?: Prisma.StringFilter<"Project"> | string - description?: Prisma.StringNullableFilter<"Project"> | string | null - author?: Prisma.StringNullableFilter<"Project"> | string | null - hasPoster?: Prisma.BoolFilter<"Project"> | boolean - members?: Prisma.ProjectMemberListRelationFilter - invitations?: Prisma.ProjectInvitationListRelationFilter -} - -export type ProjectOrderByWithRelationInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - author?: Prisma.SortOrderInput | Prisma.SortOrder - hasPoster?: Prisma.SortOrder - members?: Prisma.ProjectMemberOrderByRelationAggregateInput - invitations?: Prisma.ProjectInvitationOrderByRelationAggregateInput -} - -export type ProjectWhereUniqueInput = Prisma.AtLeast<{ - id?: string - AND?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] - OR?: Prisma.ProjectWhereInput[] - NOT?: Prisma.ProjectWhereInput | Prisma.ProjectWhereInput[] - createdAt?: Prisma.DateTimeFilter<"Project"> | Date | string - updatedAt?: Prisma.DateTimeFilter<"Project"> | Date | string - title?: Prisma.StringFilter<"Project"> | string - description?: Prisma.StringNullableFilter<"Project"> | string | null - author?: Prisma.StringNullableFilter<"Project"> | string | null - hasPoster?: Prisma.BoolFilter<"Project"> | boolean - members?: Prisma.ProjectMemberListRelationFilter - invitations?: Prisma.ProjectInvitationListRelationFilter -}, "id"> - -export type ProjectOrderByWithAggregationInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrderInput | Prisma.SortOrder - author?: Prisma.SortOrderInput | Prisma.SortOrder - hasPoster?: Prisma.SortOrder - _count?: Prisma.ProjectCountOrderByAggregateInput - _max?: Prisma.ProjectMaxOrderByAggregateInput - _min?: Prisma.ProjectMinOrderByAggregateInput -} - -export type ProjectScalarWhereWithAggregatesInput = { - AND?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[] - OR?: Prisma.ProjectScalarWhereWithAggregatesInput[] - NOT?: Prisma.ProjectScalarWhereWithAggregatesInput | Prisma.ProjectScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Project"> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string - updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Project"> | Date | string - title?: Prisma.StringWithAggregatesFilter<"Project"> | string - description?: Prisma.StringNullableWithAggregatesFilter<"Project"> | string | null - author?: Prisma.StringNullableWithAggregatesFilter<"Project"> | string | null - hasPoster?: Prisma.BoolWithAggregatesFilter<"Project"> | boolean -} - -export type ProjectCreateInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - title: string - description?: string | null - author?: string | null - hasPoster?: boolean - members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput - invitations?: Prisma.ProjectInvitationCreateNestedManyWithoutProjectInput -} - -export type ProjectUncheckedCreateInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - title: string - description?: string | null - author?: string | null - hasPoster?: boolean - members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput - invitations?: Prisma.ProjectInvitationUncheckedCreateNestedManyWithoutProjectInput -} - -export type ProjectUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - author?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - hasPoster?: Prisma.BoolFieldUpdateOperationsInput | boolean - members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput - invitations?: Prisma.ProjectInvitationUpdateManyWithoutProjectNestedInput -} - -export type ProjectUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - author?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - hasPoster?: Prisma.BoolFieldUpdateOperationsInput | boolean - members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput - invitations?: Prisma.ProjectInvitationUncheckedUpdateManyWithoutProjectNestedInput -} - -export type ProjectCreateManyInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - title: string - description?: string | null - author?: string | null - hasPoster?: boolean -} - -export type ProjectUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - author?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - hasPoster?: Prisma.BoolFieldUpdateOperationsInput | boolean -} - -export type ProjectUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - author?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - hasPoster?: Prisma.BoolFieldUpdateOperationsInput | boolean -} - -export type ProjectCountOrderByAggregateInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrder - author?: Prisma.SortOrder - hasPoster?: Prisma.SortOrder -} - -export type ProjectMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrder - author?: Prisma.SortOrder - hasPoster?: Prisma.SortOrder -} - -export type ProjectMinOrderByAggregateInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - updatedAt?: Prisma.SortOrder - title?: Prisma.SortOrder - description?: Prisma.SortOrder - author?: Prisma.SortOrder - hasPoster?: Prisma.SortOrder -} - -export type ProjectScalarRelationFilter = { - is?: Prisma.ProjectWhereInput - isNot?: Prisma.ProjectWhereInput -} - -export type ProjectCreateNestedOneWithoutMembersInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembersInput - connect?: Prisma.ProjectWhereUniqueInput -} - -export type ProjectUpdateOneRequiredWithoutMembersNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutMembersInput - upsert?: Prisma.ProjectUpsertWithoutMembersInput - connect?: Prisma.ProjectWhereUniqueInput - update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutMembersInput> -} - -export type ProjectCreateNestedOneWithoutInvitationsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutInvitationsInput - connect?: Prisma.ProjectWhereUniqueInput -} - -export type ProjectUpdateOneRequiredWithoutInvitationsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.ProjectCreateOrConnectWithoutInvitationsInput - upsert?: Prisma.ProjectUpsertWithoutInvitationsInput - connect?: Prisma.ProjectWhereUniqueInput - update?: Prisma.XOR, Prisma.ProjectUncheckedUpdateWithoutInvitationsInput> -} - -export type ProjectCreateWithoutMembersInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - title: string - description?: string | null - author?: string | null - hasPoster?: boolean - invitations?: Prisma.ProjectInvitationCreateNestedManyWithoutProjectInput -} - -export type ProjectUncheckedCreateWithoutMembersInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - title: string - description?: string | null - author?: string | null - hasPoster?: boolean - invitations?: Prisma.ProjectInvitationUncheckedCreateNestedManyWithoutProjectInput -} - -export type ProjectCreateOrConnectWithoutMembersInput = { - where: Prisma.ProjectWhereUniqueInput - create: Prisma.XOR -} - -export type ProjectUpsertWithoutMembersInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.ProjectWhereInput -} - -export type ProjectUpdateToOneWithWhereWithoutMembersInput = { - where?: Prisma.ProjectWhereInput - data: Prisma.XOR -} - -export type ProjectUpdateWithoutMembersInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - author?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - hasPoster?: Prisma.BoolFieldUpdateOperationsInput | boolean - invitations?: Prisma.ProjectInvitationUpdateManyWithoutProjectNestedInput -} - -export type ProjectUncheckedUpdateWithoutMembersInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - author?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - hasPoster?: Prisma.BoolFieldUpdateOperationsInput | boolean - invitations?: Prisma.ProjectInvitationUncheckedUpdateManyWithoutProjectNestedInput -} - -export type ProjectCreateWithoutInvitationsInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - title: string - description?: string | null - author?: string | null - hasPoster?: boolean - members?: Prisma.ProjectMemberCreateNestedManyWithoutProjectInput -} - -export type ProjectUncheckedCreateWithoutInvitationsInput = { - id?: string - createdAt?: Date | string - updatedAt?: Date | string - title: string - description?: string | null - author?: string | null - hasPoster?: boolean - members?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutProjectInput -} - -export type ProjectCreateOrConnectWithoutInvitationsInput = { - where: Prisma.ProjectWhereUniqueInput - create: Prisma.XOR -} - -export type ProjectUpsertWithoutInvitationsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.ProjectWhereInput -} - -export type ProjectUpdateToOneWithWhereWithoutInvitationsInput = { - where?: Prisma.ProjectWhereInput - data: Prisma.XOR -} - -export type ProjectUpdateWithoutInvitationsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - author?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - hasPoster?: Prisma.BoolFieldUpdateOperationsInput | boolean - members?: Prisma.ProjectMemberUpdateManyWithoutProjectNestedInput -} - -export type ProjectUncheckedUpdateWithoutInvitationsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - title?: Prisma.StringFieldUpdateOperationsInput | string - description?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - author?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - hasPoster?: Prisma.BoolFieldUpdateOperationsInput | boolean - members?: Prisma.ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput -} - - -/** - * Count Type ProjectCountOutputType - */ - -export type ProjectCountOutputType = { - members: number - invitations: number -} - -export type ProjectCountOutputTypeSelect = { - members?: boolean | ProjectCountOutputTypeCountMembersArgs - invitations?: boolean | ProjectCountOutputTypeCountInvitationsArgs -} - -/** - * ProjectCountOutputType without action - */ -export type ProjectCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the ProjectCountOutputType - */ - select?: Prisma.ProjectCountOutputTypeSelect | null -} - -/** - * ProjectCountOutputType without action - */ -export type ProjectCountOutputTypeCountMembersArgs = { - where?: Prisma.ProjectMemberWhereInput -} - -/** - * ProjectCountOutputType without action - */ -export type ProjectCountOutputTypeCountInvitationsArgs = { - where?: Prisma.ProjectInvitationWhereInput -} - - -export type ProjectSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - updatedAt?: boolean - title?: boolean - description?: boolean - author?: boolean - hasPoster?: boolean - members?: boolean | Prisma.Project$membersArgs - invitations?: boolean | Prisma.Project$invitationsArgs - _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs -}, ExtArgs["result"]["project"]> - -export type ProjectSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - updatedAt?: boolean - title?: boolean - description?: boolean - author?: boolean - hasPoster?: boolean -}, ExtArgs["result"]["project"]> - -export type ProjectSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - updatedAt?: boolean - title?: boolean - description?: boolean - author?: boolean - hasPoster?: boolean -}, ExtArgs["result"]["project"]> - -export type ProjectSelectScalar = { - id?: boolean - createdAt?: boolean - updatedAt?: boolean - title?: boolean - description?: boolean - author?: boolean - hasPoster?: boolean -} - -export type ProjectOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "title" | "description" | "author" | "hasPoster", ExtArgs["result"]["project"]> -export type ProjectInclude = { - members?: boolean | Prisma.Project$membersArgs - invitations?: boolean | Prisma.Project$invitationsArgs - _count?: boolean | Prisma.ProjectCountOutputTypeDefaultArgs -} -export type ProjectIncludeCreateManyAndReturn = {} -export type ProjectIncludeUpdateManyAndReturn = {} - -export type $ProjectPayload = { - name: "Project" - objects: { - members: Prisma.$ProjectMemberPayload[] - invitations: Prisma.$ProjectInvitationPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - createdAt: Date - updatedAt: Date - title: string - description: string | null - author: string | null - hasPoster: boolean - }, ExtArgs["result"]["project"]> - composites: {} -} - -export type ProjectGetPayload = runtime.Types.Result.GetResult - -export type ProjectCountArgs = - Omit & { - select?: ProjectCountAggregateInputType | true - } - -export interface ProjectDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Project'], meta: { name: 'Project' } } - /** - * Find zero or one Project that matches the filter. - * @param {ProjectFindUniqueArgs} args - Arguments to find a Project - * @example - * // Get one Project - * const project = await prisma.project.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Project that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {ProjectFindUniqueOrThrowArgs} args - Arguments to find a Project - * @example - * // Get one Project - * const project = await prisma.project.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Project that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectFindFirstArgs} args - Arguments to find a Project - * @example - * // Get one Project - * const project = await prisma.project.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Project that matches the filter or - * throw `PrismaKnownClientError` with `P2025` code if no matches were found. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectFindFirstOrThrowArgs} args - Arguments to find a Project - * @example - * // Get one Project - * const project = await prisma.project.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Projects that matches the filter. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Projects - * const projects = await prisma.project.findMany() - * - * // Get first 10 Projects - * const projects = await prisma.project.findMany({ take: 10 }) - * - * // Only select the `id` - * const projectWithIdOnly = await prisma.project.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Project. - * @param {ProjectCreateArgs} args - Arguments to create a Project. - * @example - * // Create one Project - * const Project = await prisma.project.create({ - * data: { - * // ... data to create a Project - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Projects. - * @param {ProjectCreateManyArgs} args - Arguments to create many Projects. - * @example - * // Create many Projects - * const project = await prisma.project.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Projects and returns the data saved in the database. - * @param {ProjectCreateManyAndReturnArgs} args - Arguments to create many Projects. - * @example - * // Create many Projects - * const project = await prisma.project.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Projects and only return the `id` - * const projectWithIdOnly = await prisma.project.createManyAndReturn({ - * select: { id: true }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> - - /** - * Delete a Project. - * @param {ProjectDeleteArgs} args - Arguments to delete one Project. - * @example - * // Delete one Project - * const Project = await prisma.project.delete({ - * where: { - * // ... filter to delete one Project - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Project. - * @param {ProjectUpdateArgs} args - Arguments to update one Project. - * @example - * // Update one Project - * const project = await prisma.project.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Projects. - * @param {ProjectDeleteManyArgs} args - Arguments to filter Projects to delete. - * @example - * // Delete a few Projects - * const { count } = await prisma.project.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Projects. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Projects - * const project = await prisma.project.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Projects and returns the data updated in the database. - * @param {ProjectUpdateManyAndReturnArgs} args - Arguments to update many Projects. - * @example - * // Update many Projects - * const project = await prisma.project.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Projects and only return the `id` - * const projectWithIdOnly = await prisma.project.updateManyAndReturn({ - * select: { id: true }, - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * - */ - updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> - - /** - * Create or update one Project. - * @param {ProjectUpsertArgs} args - Arguments to update or create a Project. - * @example - * // Update or create a Project - * const project = await prisma.project.upsert({ - * create: { - * // ... data to create a Project - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Project we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Projects. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectCountArgs} args - Arguments to filter Projects to count. - * @example - * // Count the number of Projects - * const count = await prisma.project.count({ - * where: { - * // ... the filter for the Projects we want to count - * } - * }) - **/ - count( - args?: Prisma.Subset, - ): Prisma.PrismaPromise< - T extends runtime.Types.Utils.Record<'select', any> - ? T['select'] extends true - ? number - : Prisma.GetScalarType - : number - > - - /** - * Allows you to perform aggregations operations on a Project. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectAggregateArgs} args - Select which aggregations you would like to apply and on what fields. - * @example - * // Ordered by age ascending - * // Where email contains prisma.io - * // Limited to the 10 users - * const aggregations = await prisma.user.aggregate({ - * _avg: { - * age: true, - * }, - * where: { - * email: { - * contains: "prisma.io", - * }, - * }, - * orderBy: { - * age: "asc", - * }, - * take: 10, - * }) - **/ - aggregate(args: Prisma.Subset): Prisma.PrismaPromise> - - /** - * Group by Project. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectGroupByArgs} args - Group by arguments. - * @example - * // Group by city, order by createdAt, get count - * const result = await prisma.user.groupBy({ - * by: ['city', 'createdAt'], - * orderBy: { - * createdAt: true - * }, - * _count: { - * _all: true - * }, - * }) - * - **/ - groupBy< - T extends ProjectGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: ProjectGroupByArgs['orderBy'] } - : { orderBy?: ProjectGroupByArgs['orderBy'] }, - OrderFields extends Prisma.ExcludeUnderscoreKeys>>, - ByFields extends Prisma.MaybeTupleToUnion, - ByValid extends Prisma.Has, - HavingFields extends Prisma.GetHavingFields, - HavingValid extends Prisma.Has, - ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, - InputErrors extends ByEmpty extends Prisma.True - ? `Error: "by" must not be empty.` - : HavingValid extends Prisma.False - ? { - [P in HavingFields]: P extends ByFields - ? never - : P extends string - ? `Error: Field "${P}" used in "having" needs to be provided in "by".` - : [ - Error, - 'Field ', - P, - ` in "having" needs to be provided in "by"`, - ] - }[HavingFields] - : 'take' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "take", you also need to provide "orderBy"' - : 'skip' extends Prisma.Keys - ? 'orderBy' extends Prisma.Keys - ? ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - : 'Error: If you provide "skip", you also need to provide "orderBy"' - : ByValid extends Prisma.True - ? {} - : { - [P in OrderFields]: P extends ByFields - ? never - : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` - }[OrderFields] - >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetProjectGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Project model - */ -readonly fields: ProjectFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Project. - * Why is this prefixed with `Prisma__`? - * Because we want to prevent naming conflicts as mentioned in - * https://github.com/prisma/prisma-client-js/issues/707 - */ -export interface Prisma__ProjectClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - members = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - invitations = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the Project model - */ -export interface ProjectFieldRefs { - readonly id: Prisma.FieldRef<"Project", 'String'> - readonly createdAt: Prisma.FieldRef<"Project", 'DateTime'> - readonly updatedAt: Prisma.FieldRef<"Project", 'DateTime'> - readonly title: Prisma.FieldRef<"Project", 'String'> - readonly description: Prisma.FieldRef<"Project", 'String'> - readonly author: Prisma.FieldRef<"Project", 'String'> - readonly hasPoster: Prisma.FieldRef<"Project", 'Boolean'> -} - - -// Custom InputTypes -/** - * Project findUnique - */ -export type ProjectFindUniqueArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null - /** - * Filter, which Project to fetch. - */ - where: Prisma.ProjectWhereUniqueInput -} - -/** - * Project findUniqueOrThrow - */ -export type ProjectFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null - /** - * Filter, which Project to fetch. - */ - where: Prisma.ProjectWhereUniqueInput -} - -/** - * Project findFirst - */ -export type ProjectFindFirstArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null - /** - * Filter, which Project to fetch. - */ - where?: Prisma.ProjectWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Projects to fetch. - */ - orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Projects. - */ - cursor?: Prisma.ProjectWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Projects from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Projects. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Projects. - */ - distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] -} - -/** - * Project findFirstOrThrow - */ -export type ProjectFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null - /** - * Filter, which Project to fetch. - */ - where?: Prisma.ProjectWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Projects to fetch. - */ - orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Projects. - */ - cursor?: Prisma.ProjectWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Projects from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Projects. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Projects. - */ - distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] -} - -/** - * Project findMany - */ -export type ProjectFindManyArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null - /** - * Filter, which Projects to fetch. - */ - where?: Prisma.ProjectWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Projects to fetch. - */ - orderBy?: Prisma.ProjectOrderByWithRelationInput | Prisma.ProjectOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Projects. - */ - cursor?: Prisma.ProjectWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Projects from the position of the cursor. - */ - take?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Skip the first `n` Projects. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Projects. - */ - distinct?: Prisma.ProjectScalarFieldEnum | Prisma.ProjectScalarFieldEnum[] -} - -/** - * Project create - */ -export type ProjectCreateArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null - /** - * The data needed to create a Project. - */ - data: Prisma.XOR -} - -/** - * Project createMany - */ -export type ProjectCreateManyArgs = { - /** - * The data used to create many Projects. - */ - data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * Project createManyAndReturn - */ -export type ProjectCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * The data used to create many Projects. - */ - data: Prisma.ProjectCreateManyInput | Prisma.ProjectCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * Project update - */ -export type ProjectUpdateArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null - /** - * The data needed to update a Project. - */ - data: Prisma.XOR - /** - * Choose, which Project to update. - */ - where: Prisma.ProjectWhereUniqueInput -} - -/** - * Project updateMany - */ -export type ProjectUpdateManyArgs = { - /** - * The data used to update Projects. - */ - data: Prisma.XOR - /** - * Filter which Projects to update - */ - where?: Prisma.ProjectWhereInput - /** - * Limit how many Projects to update. - */ - limit?: number -} - -/** - * Project updateManyAndReturn - */ -export type ProjectUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * The data used to update Projects. - */ - data: Prisma.XOR - /** - * Filter which Projects to update - */ - where?: Prisma.ProjectWhereInput - /** - * Limit how many Projects to update. - */ - limit?: number -} - -/** - * Project upsert - */ -export type ProjectUpsertArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null - /** - * The filter to search for the Project to update in case it exists. - */ - where: Prisma.ProjectWhereUniqueInput - /** - * In case the Project found by the `where` argument doesn't exist, create a new Project with this data. - */ - create: Prisma.XOR - /** - * In case the Project was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Project delete - */ -export type ProjectDeleteArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null - /** - * Filter which Project to delete. - */ - where: Prisma.ProjectWhereUniqueInput -} - -/** - * Project deleteMany - */ -export type ProjectDeleteManyArgs = { - /** - * Filter which Projects to delete - */ - where?: Prisma.ProjectWhereInput - /** - * Limit how many Projects to delete. - */ - limit?: number -} - -/** - * Project.members - */ -export type Project$membersArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - where?: Prisma.ProjectMemberWhereInput - orderBy?: Prisma.ProjectMemberOrderByWithRelationInput | Prisma.ProjectMemberOrderByWithRelationInput[] - cursor?: Prisma.ProjectMemberWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] -} - -/** - * Project.invitations - */ -export type Project$invitationsArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - where?: Prisma.ProjectInvitationWhereInput - orderBy?: Prisma.ProjectInvitationOrderByWithRelationInput | Prisma.ProjectInvitationOrderByWithRelationInput[] - cursor?: Prisma.ProjectInvitationWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.ProjectInvitationScalarFieldEnum | Prisma.ProjectInvitationScalarFieldEnum[] -} - -/** - * Project without action - */ -export type ProjectDefaultArgs = { - /** - * Select specific fields to fetch from the Project - */ - select?: Prisma.ProjectSelect | null - /** - * Omit specific fields from the Project - */ - omit?: Prisma.ProjectOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInclude | null -} diff --git a/src/generated/client/models/ProjectInvitation.ts b/src/generated/client/models/ProjectInvitation.ts deleted file mode 100644 index 3d15a96d..00000000 --- a/src/generated/client/models/ProjectInvitation.ts +++ /dev/null @@ -1,1390 +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 `ProjectInvitation` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model ProjectInvitation - * - */ -export type ProjectInvitationModel = runtime.Types.Result.DefaultSelection - -export type AggregateProjectInvitation = { - _count: ProjectInvitationCountAggregateOutputType | null - _avg: ProjectInvitationAvgAggregateOutputType | null - _sum: ProjectInvitationSumAggregateOutputType | null - _min: ProjectInvitationMinAggregateOutputType | null - _max: ProjectInvitationMaxAggregateOutputType | null -} - -export type ProjectInvitationAvgAggregateOutputType = { - id: number | null -} - -export type ProjectInvitationSumAggregateOutputType = { - id: number | null -} - -export type ProjectInvitationMinAggregateOutputType = { - id: number | null - token: string | null - email: string | null - createdAt: Date | null - projectId: string | null -} - -export type ProjectInvitationMaxAggregateOutputType = { - id: number | null - token: string | null - email: string | null - createdAt: Date | null - projectId: string | null -} - -export type ProjectInvitationCountAggregateOutputType = { - id: number - token: number - email: number - createdAt: number - projectId: number - _all: number -} - - -export type ProjectInvitationAvgAggregateInputType = { - id?: true -} - -export type ProjectInvitationSumAggregateInputType = { - id?: true -} - -export type ProjectInvitationMinAggregateInputType = { - id?: true - token?: true - email?: true - createdAt?: true - projectId?: true -} - -export type ProjectInvitationMaxAggregateInputType = { - id?: true - token?: true - email?: true - createdAt?: true - projectId?: true -} - -export type ProjectInvitationCountAggregateInputType = { - id?: true - token?: true - email?: true - createdAt?: true - projectId?: true - _all?: true -} - -export type ProjectInvitationAggregateArgs = { - /** - * Filter which ProjectInvitation to aggregate. - */ - where?: Prisma.ProjectInvitationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ProjectInvitations to fetch. - */ - orderBy?: Prisma.ProjectInvitationOrderByWithRelationInput | Prisma.ProjectInvitationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.ProjectInvitationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ProjectInvitations 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` ProjectInvitations. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned ProjectInvitations - **/ - _count?: true | ProjectInvitationCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: ProjectInvitationAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: ProjectInvitationSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: ProjectInvitationMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: ProjectInvitationMaxAggregateInputType -} - -export type GetProjectInvitationAggregateType = { - [P in keyof T & keyof AggregateProjectInvitation]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type ProjectInvitationGroupByArgs = { - where?: Prisma.ProjectInvitationWhereInput - orderBy?: Prisma.ProjectInvitationOrderByWithAggregationInput | Prisma.ProjectInvitationOrderByWithAggregationInput[] - by: Prisma.ProjectInvitationScalarFieldEnum[] | Prisma.ProjectInvitationScalarFieldEnum - having?: Prisma.ProjectInvitationScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ProjectInvitationCountAggregateInputType | true - _avg?: ProjectInvitationAvgAggregateInputType - _sum?: ProjectInvitationSumAggregateInputType - _min?: ProjectInvitationMinAggregateInputType - _max?: ProjectInvitationMaxAggregateInputType -} - -export type ProjectInvitationGroupByOutputType = { - id: number - token: string - email: string - createdAt: Date - projectId: string - _count: ProjectInvitationCountAggregateOutputType | null - _avg: ProjectInvitationAvgAggregateOutputType | null - _sum: ProjectInvitationSumAggregateOutputType | null - _min: ProjectInvitationMinAggregateOutputType | null - _max: ProjectInvitationMaxAggregateOutputType | null -} - -export type GetProjectInvitationGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof ProjectInvitationGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type ProjectInvitationWhereInput = { - AND?: Prisma.ProjectInvitationWhereInput | Prisma.ProjectInvitationWhereInput[] - OR?: Prisma.ProjectInvitationWhereInput[] - NOT?: Prisma.ProjectInvitationWhereInput | Prisma.ProjectInvitationWhereInput[] - id?: Prisma.IntFilter<"ProjectInvitation"> | number - token?: Prisma.StringFilter<"ProjectInvitation"> | string - email?: Prisma.StringFilter<"ProjectInvitation"> | string - createdAt?: Prisma.DateTimeFilter<"ProjectInvitation"> | Date | string - projectId?: Prisma.StringFilter<"ProjectInvitation"> | string - project?: Prisma.XOR -} - -export type ProjectInvitationOrderByWithRelationInput = { - id?: Prisma.SortOrder - token?: Prisma.SortOrder - email?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - projectId?: Prisma.SortOrder - project?: Prisma.ProjectOrderByWithRelationInput -} - -export type ProjectInvitationWhereUniqueInput = Prisma.AtLeast<{ - id?: number - token?: string - email_projectId?: Prisma.ProjectInvitationEmailProjectIdCompoundUniqueInput - AND?: Prisma.ProjectInvitationWhereInput | Prisma.ProjectInvitationWhereInput[] - OR?: Prisma.ProjectInvitationWhereInput[] - NOT?: Prisma.ProjectInvitationWhereInput | Prisma.ProjectInvitationWhereInput[] - email?: Prisma.StringFilter<"ProjectInvitation"> | string - createdAt?: Prisma.DateTimeFilter<"ProjectInvitation"> | Date | string - projectId?: Prisma.StringFilter<"ProjectInvitation"> | string - project?: Prisma.XOR -}, "id" | "token" | "email_projectId"> - -export type ProjectInvitationOrderByWithAggregationInput = { - id?: Prisma.SortOrder - token?: Prisma.SortOrder - email?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - projectId?: Prisma.SortOrder - _count?: Prisma.ProjectInvitationCountOrderByAggregateInput - _avg?: Prisma.ProjectInvitationAvgOrderByAggregateInput - _max?: Prisma.ProjectInvitationMaxOrderByAggregateInput - _min?: Prisma.ProjectInvitationMinOrderByAggregateInput - _sum?: Prisma.ProjectInvitationSumOrderByAggregateInput -} - -export type ProjectInvitationScalarWhereWithAggregatesInput = { - AND?: Prisma.ProjectInvitationScalarWhereWithAggregatesInput | Prisma.ProjectInvitationScalarWhereWithAggregatesInput[] - OR?: Prisma.ProjectInvitationScalarWhereWithAggregatesInput[] - NOT?: Prisma.ProjectInvitationScalarWhereWithAggregatesInput | Prisma.ProjectInvitationScalarWhereWithAggregatesInput[] - id?: Prisma.IntWithAggregatesFilter<"ProjectInvitation"> | number - token?: Prisma.StringWithAggregatesFilter<"ProjectInvitation"> | string - email?: Prisma.StringWithAggregatesFilter<"ProjectInvitation"> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<"ProjectInvitation"> | Date | string - projectId?: Prisma.StringWithAggregatesFilter<"ProjectInvitation"> | string -} - -export type ProjectInvitationCreateInput = { - token: string - email: string - createdAt?: Date | string - project: Prisma.ProjectCreateNestedOneWithoutInvitationsInput -} - -export type ProjectInvitationUncheckedCreateInput = { - id?: number - token: string - email: string - createdAt?: Date | string - projectId: string -} - -export type ProjectInvitationUpdateInput = { - token?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - project?: Prisma.ProjectUpdateOneRequiredWithoutInvitationsNestedInput -} - -export type ProjectInvitationUncheckedUpdateInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - token?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - projectId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type ProjectInvitationCreateManyInput = { - id?: number - token: string - email: string - createdAt?: Date | string - projectId: string -} - -export type ProjectInvitationUpdateManyMutationInput = { - token?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ProjectInvitationUncheckedUpdateManyInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - token?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - projectId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type ProjectInvitationListRelationFilter = { - every?: Prisma.ProjectInvitationWhereInput - some?: Prisma.ProjectInvitationWhereInput - none?: Prisma.ProjectInvitationWhereInput -} - -export type ProjectInvitationOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type ProjectInvitationEmailProjectIdCompoundUniqueInput = { - email: string - projectId: string -} - -export type ProjectInvitationCountOrderByAggregateInput = { - id?: Prisma.SortOrder - token?: Prisma.SortOrder - email?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - projectId?: Prisma.SortOrder -} - -export type ProjectInvitationAvgOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type ProjectInvitationMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - token?: Prisma.SortOrder - email?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - projectId?: Prisma.SortOrder -} - -export type ProjectInvitationMinOrderByAggregateInput = { - id?: Prisma.SortOrder - token?: Prisma.SortOrder - email?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - projectId?: Prisma.SortOrder -} - -export type ProjectInvitationSumOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type ProjectInvitationCreateNestedManyWithoutProjectInput = { - create?: Prisma.XOR | Prisma.ProjectInvitationCreateWithoutProjectInput[] | Prisma.ProjectInvitationUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.ProjectInvitationCreateOrConnectWithoutProjectInput | Prisma.ProjectInvitationCreateOrConnectWithoutProjectInput[] - createMany?: Prisma.ProjectInvitationCreateManyProjectInputEnvelope - connect?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] -} - -export type ProjectInvitationUncheckedCreateNestedManyWithoutProjectInput = { - create?: Prisma.XOR | Prisma.ProjectInvitationCreateWithoutProjectInput[] | Prisma.ProjectInvitationUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.ProjectInvitationCreateOrConnectWithoutProjectInput | Prisma.ProjectInvitationCreateOrConnectWithoutProjectInput[] - createMany?: Prisma.ProjectInvitationCreateManyProjectInputEnvelope - connect?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] -} - -export type ProjectInvitationUpdateManyWithoutProjectNestedInput = { - create?: Prisma.XOR | Prisma.ProjectInvitationCreateWithoutProjectInput[] | Prisma.ProjectInvitationUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.ProjectInvitationCreateOrConnectWithoutProjectInput | Prisma.ProjectInvitationCreateOrConnectWithoutProjectInput[] - upsert?: Prisma.ProjectInvitationUpsertWithWhereUniqueWithoutProjectInput | Prisma.ProjectInvitationUpsertWithWhereUniqueWithoutProjectInput[] - createMany?: Prisma.ProjectInvitationCreateManyProjectInputEnvelope - set?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] - disconnect?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] - delete?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] - connect?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] - update?: Prisma.ProjectInvitationUpdateWithWhereUniqueWithoutProjectInput | Prisma.ProjectInvitationUpdateWithWhereUniqueWithoutProjectInput[] - updateMany?: Prisma.ProjectInvitationUpdateManyWithWhereWithoutProjectInput | Prisma.ProjectInvitationUpdateManyWithWhereWithoutProjectInput[] - deleteMany?: Prisma.ProjectInvitationScalarWhereInput | Prisma.ProjectInvitationScalarWhereInput[] -} - -export type ProjectInvitationUncheckedUpdateManyWithoutProjectNestedInput = { - create?: Prisma.XOR | Prisma.ProjectInvitationCreateWithoutProjectInput[] | Prisma.ProjectInvitationUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.ProjectInvitationCreateOrConnectWithoutProjectInput | Prisma.ProjectInvitationCreateOrConnectWithoutProjectInput[] - upsert?: Prisma.ProjectInvitationUpsertWithWhereUniqueWithoutProjectInput | Prisma.ProjectInvitationUpsertWithWhereUniqueWithoutProjectInput[] - createMany?: Prisma.ProjectInvitationCreateManyProjectInputEnvelope - set?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] - disconnect?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] - delete?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] - connect?: Prisma.ProjectInvitationWhereUniqueInput | Prisma.ProjectInvitationWhereUniqueInput[] - update?: Prisma.ProjectInvitationUpdateWithWhereUniqueWithoutProjectInput | Prisma.ProjectInvitationUpdateWithWhereUniqueWithoutProjectInput[] - updateMany?: Prisma.ProjectInvitationUpdateManyWithWhereWithoutProjectInput | Prisma.ProjectInvitationUpdateManyWithWhereWithoutProjectInput[] - deleteMany?: Prisma.ProjectInvitationScalarWhereInput | Prisma.ProjectInvitationScalarWhereInput[] -} - -export type ProjectInvitationCreateWithoutProjectInput = { - token: string - email: string - createdAt?: Date | string -} - -export type ProjectInvitationUncheckedCreateWithoutProjectInput = { - id?: number - token: string - email: string - createdAt?: Date | string -} - -export type ProjectInvitationCreateOrConnectWithoutProjectInput = { - where: Prisma.ProjectInvitationWhereUniqueInput - create: Prisma.XOR -} - -export type ProjectInvitationCreateManyProjectInputEnvelope = { - data: Prisma.ProjectInvitationCreateManyProjectInput | Prisma.ProjectInvitationCreateManyProjectInput[] - skipDuplicates?: boolean -} - -export type ProjectInvitationUpsertWithWhereUniqueWithoutProjectInput = { - where: Prisma.ProjectInvitationWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type ProjectInvitationUpdateWithWhereUniqueWithoutProjectInput = { - where: Prisma.ProjectInvitationWhereUniqueInput - data: Prisma.XOR -} - -export type ProjectInvitationUpdateManyWithWhereWithoutProjectInput = { - where: Prisma.ProjectInvitationScalarWhereInput - data: Prisma.XOR -} - -export type ProjectInvitationScalarWhereInput = { - AND?: Prisma.ProjectInvitationScalarWhereInput | Prisma.ProjectInvitationScalarWhereInput[] - OR?: Prisma.ProjectInvitationScalarWhereInput[] - NOT?: Prisma.ProjectInvitationScalarWhereInput | Prisma.ProjectInvitationScalarWhereInput[] - id?: Prisma.IntFilter<"ProjectInvitation"> | number - token?: Prisma.StringFilter<"ProjectInvitation"> | string - email?: Prisma.StringFilter<"ProjectInvitation"> | string - createdAt?: Prisma.DateTimeFilter<"ProjectInvitation"> | Date | string - projectId?: Prisma.StringFilter<"ProjectInvitation"> | string -} - -export type ProjectInvitationCreateManyProjectInput = { - id?: number - token: string - email: string - createdAt?: Date | string -} - -export type ProjectInvitationUpdateWithoutProjectInput = { - token?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ProjectInvitationUncheckedUpdateWithoutProjectInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - token?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type ProjectInvitationUncheckedUpdateManyWithoutProjectInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - token?: Prisma.StringFieldUpdateOperationsInput | string - email?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type ProjectInvitationSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - token?: boolean - email?: boolean - createdAt?: boolean - projectId?: boolean - project?: boolean | Prisma.ProjectDefaultArgs -}, ExtArgs["result"]["projectInvitation"]> - -export type ProjectInvitationSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - token?: boolean - email?: boolean - createdAt?: boolean - projectId?: boolean - project?: boolean | Prisma.ProjectDefaultArgs -}, ExtArgs["result"]["projectInvitation"]> - -export type ProjectInvitationSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - token?: boolean - email?: boolean - createdAt?: boolean - projectId?: boolean - project?: boolean | Prisma.ProjectDefaultArgs -}, ExtArgs["result"]["projectInvitation"]> - -export type ProjectInvitationSelectScalar = { - id?: boolean - token?: boolean - email?: boolean - createdAt?: boolean - projectId?: boolean -} - -export type ProjectInvitationOmit = runtime.Types.Extensions.GetOmit<"id" | "token" | "email" | "createdAt" | "projectId", ExtArgs["result"]["projectInvitation"]> -export type ProjectInvitationInclude = { - project?: boolean | Prisma.ProjectDefaultArgs -} -export type ProjectInvitationIncludeCreateManyAndReturn = { - project?: boolean | Prisma.ProjectDefaultArgs -} -export type ProjectInvitationIncludeUpdateManyAndReturn = { - project?: boolean | Prisma.ProjectDefaultArgs -} - -export type $ProjectInvitationPayload = { - name: "ProjectInvitation" - objects: { - project: Prisma.$ProjectPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: number - token: string - email: string - createdAt: Date - projectId: string - }, ExtArgs["result"]["projectInvitation"]> - composites: {} -} - -export type ProjectInvitationGetPayload = runtime.Types.Result.GetResult - -export type ProjectInvitationCountArgs = - Omit & { - select?: ProjectInvitationCountAggregateInputType | true - } - -export interface ProjectInvitationDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['ProjectInvitation'], meta: { name: 'ProjectInvitation' } } - /** - * Find zero or one ProjectInvitation that matches the filter. - * @param {ProjectInvitationFindUniqueArgs} args - Arguments to find a ProjectInvitation - * @example - * // Get one ProjectInvitation - * const projectInvitation = await prisma.projectInvitation.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectInvitationClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one ProjectInvitation that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {ProjectInvitationFindUniqueOrThrowArgs} args - Arguments to find a ProjectInvitation - * @example - * // Get one ProjectInvitation - * const projectInvitation = await prisma.projectInvitation.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectInvitationClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ProjectInvitation 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 {ProjectInvitationFindFirstArgs} args - Arguments to find a ProjectInvitation - * @example - * // Get one ProjectInvitation - * const projectInvitation = await prisma.projectInvitation.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectInvitationClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ProjectInvitation 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 {ProjectInvitationFindFirstOrThrowArgs} args - Arguments to find a ProjectInvitation - * @example - * // Get one ProjectInvitation - * const projectInvitation = await prisma.projectInvitation.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectInvitationClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more ProjectInvitations 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 {ProjectInvitationFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all ProjectInvitations - * const projectInvitations = await prisma.projectInvitation.findMany() - * - * // Get first 10 ProjectInvitations - * const projectInvitations = await prisma.projectInvitation.findMany({ take: 10 }) - * - * // Only select the `id` - * const projectInvitationWithIdOnly = await prisma.projectInvitation.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a ProjectInvitation. - * @param {ProjectInvitationCreateArgs} args - Arguments to create a ProjectInvitation. - * @example - * // Create one ProjectInvitation - * const ProjectInvitation = await prisma.projectInvitation.create({ - * data: { - * // ... data to create a ProjectInvitation - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectInvitationClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many ProjectInvitations. - * @param {ProjectInvitationCreateManyArgs} args - Arguments to create many ProjectInvitations. - * @example - * // Create many ProjectInvitations - * const projectInvitation = await prisma.projectInvitation.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many ProjectInvitations and returns the data saved in the database. - * @param {ProjectInvitationCreateManyAndReturnArgs} args - Arguments to create many ProjectInvitations. - * @example - * // Create many ProjectInvitations - * const projectInvitation = await prisma.projectInvitation.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many ProjectInvitations and only return the `id` - * const projectInvitationWithIdOnly = await prisma.projectInvitation.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 ProjectInvitation. - * @param {ProjectInvitationDeleteArgs} args - Arguments to delete one ProjectInvitation. - * @example - * // Delete one ProjectInvitation - * const ProjectInvitation = await prisma.projectInvitation.delete({ - * where: { - * // ... filter to delete one ProjectInvitation - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectInvitationClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one ProjectInvitation. - * @param {ProjectInvitationUpdateArgs} args - Arguments to update one ProjectInvitation. - * @example - * // Update one ProjectInvitation - * const projectInvitation = await prisma.projectInvitation.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectInvitationClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more ProjectInvitations. - * @param {ProjectInvitationDeleteManyArgs} args - Arguments to filter ProjectInvitations to delete. - * @example - * // Delete a few ProjectInvitations - * const { count } = await prisma.projectInvitation.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ProjectInvitations. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectInvitationUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many ProjectInvitations - * const projectInvitation = await prisma.projectInvitation.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ProjectInvitations and returns the data updated in the database. - * @param {ProjectInvitationUpdateManyAndReturnArgs} args - Arguments to update many ProjectInvitations. - * @example - * // Update many ProjectInvitations - * const projectInvitation = await prisma.projectInvitation.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more ProjectInvitations and only return the `id` - * const projectInvitationWithIdOnly = await prisma.projectInvitation.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 ProjectInvitation. - * @param {ProjectInvitationUpsertArgs} args - Arguments to update or create a ProjectInvitation. - * @example - * // Update or create a ProjectInvitation - * const projectInvitation = await prisma.projectInvitation.upsert({ - * create: { - * // ... data to create a ProjectInvitation - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the ProjectInvitation we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectInvitationClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of ProjectInvitations. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectInvitationCountArgs} args - Arguments to filter ProjectInvitations to count. - * @example - * // Count the number of ProjectInvitations - * const count = await prisma.projectInvitation.count({ - * where: { - * // ... the filter for the ProjectInvitations 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 ProjectInvitation. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectInvitationAggregateArgs} 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 ProjectInvitation. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectInvitationGroupByArgs} 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 ProjectInvitationGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: ProjectInvitationGroupByArgs['orderBy'] } - : { orderBy?: ProjectInvitationGroupByArgs['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 ? GetProjectInvitationGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the ProjectInvitation model - */ -readonly fields: ProjectInvitationFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for ProjectInvitation. - * 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__ProjectInvitationClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the ProjectInvitation model - */ -export interface ProjectInvitationFieldRefs { - readonly id: Prisma.FieldRef<"ProjectInvitation", 'Int'> - readonly token: Prisma.FieldRef<"ProjectInvitation", 'String'> - readonly email: Prisma.FieldRef<"ProjectInvitation", 'String'> - readonly createdAt: Prisma.FieldRef<"ProjectInvitation", 'DateTime'> - readonly projectId: Prisma.FieldRef<"ProjectInvitation", 'String'> -} - - -// Custom InputTypes -/** - * ProjectInvitation findUnique - */ -export type ProjectInvitationFindUniqueArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - /** - * Filter, which ProjectInvitation to fetch. - */ - where: Prisma.ProjectInvitationWhereUniqueInput -} - -/** - * ProjectInvitation findUniqueOrThrow - */ -export type ProjectInvitationFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - /** - * Filter, which ProjectInvitation to fetch. - */ - where: Prisma.ProjectInvitationWhereUniqueInput -} - -/** - * ProjectInvitation findFirst - */ -export type ProjectInvitationFindFirstArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - /** - * Filter, which ProjectInvitation to fetch. - */ - where?: Prisma.ProjectInvitationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ProjectInvitations to fetch. - */ - orderBy?: Prisma.ProjectInvitationOrderByWithRelationInput | Prisma.ProjectInvitationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ProjectInvitations. - */ - cursor?: Prisma.ProjectInvitationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ProjectInvitations 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` ProjectInvitations. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ProjectInvitations. - */ - distinct?: Prisma.ProjectInvitationScalarFieldEnum | Prisma.ProjectInvitationScalarFieldEnum[] -} - -/** - * ProjectInvitation findFirstOrThrow - */ -export type ProjectInvitationFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - /** - * Filter, which ProjectInvitation to fetch. - */ - where?: Prisma.ProjectInvitationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ProjectInvitations to fetch. - */ - orderBy?: Prisma.ProjectInvitationOrderByWithRelationInput | Prisma.ProjectInvitationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ProjectInvitations. - */ - cursor?: Prisma.ProjectInvitationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ProjectInvitations 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` ProjectInvitations. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ProjectInvitations. - */ - distinct?: Prisma.ProjectInvitationScalarFieldEnum | Prisma.ProjectInvitationScalarFieldEnum[] -} - -/** - * ProjectInvitation findMany - */ -export type ProjectInvitationFindManyArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - /** - * Filter, which ProjectInvitations to fetch. - */ - where?: Prisma.ProjectInvitationWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ProjectInvitations to fetch. - */ - orderBy?: Prisma.ProjectInvitationOrderByWithRelationInput | Prisma.ProjectInvitationOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing ProjectInvitations. - */ - cursor?: Prisma.ProjectInvitationWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ProjectInvitations 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` ProjectInvitations. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ProjectInvitations. - */ - distinct?: Prisma.ProjectInvitationScalarFieldEnum | Prisma.ProjectInvitationScalarFieldEnum[] -} - -/** - * ProjectInvitation create - */ -export type ProjectInvitationCreateArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - /** - * The data needed to create a ProjectInvitation. - */ - data: Prisma.XOR -} - -/** - * ProjectInvitation createMany - */ -export type ProjectInvitationCreateManyArgs = { - /** - * The data used to create many ProjectInvitations. - */ - data: Prisma.ProjectInvitationCreateManyInput | Prisma.ProjectInvitationCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * ProjectInvitation createManyAndReturn - */ -export type ProjectInvitationCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelectCreateManyAndReturn | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * The data used to create many ProjectInvitations. - */ - data: Prisma.ProjectInvitationCreateManyInput | Prisma.ProjectInvitationCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationIncludeCreateManyAndReturn | null -} - -/** - * ProjectInvitation update - */ -export type ProjectInvitationUpdateArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - /** - * The data needed to update a ProjectInvitation. - */ - data: Prisma.XOR - /** - * Choose, which ProjectInvitation to update. - */ - where: Prisma.ProjectInvitationWhereUniqueInput -} - -/** - * ProjectInvitation updateMany - */ -export type ProjectInvitationUpdateManyArgs = { - /** - * The data used to update ProjectInvitations. - */ - data: Prisma.XOR - /** - * Filter which ProjectInvitations to update - */ - where?: Prisma.ProjectInvitationWhereInput - /** - * Limit how many ProjectInvitations to update. - */ - limit?: number -} - -/** - * ProjectInvitation updateManyAndReturn - */ -export type ProjectInvitationUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * The data used to update ProjectInvitations. - */ - data: Prisma.XOR - /** - * Filter which ProjectInvitations to update - */ - where?: Prisma.ProjectInvitationWhereInput - /** - * Limit how many ProjectInvitations to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationIncludeUpdateManyAndReturn | null -} - -/** - * ProjectInvitation upsert - */ -export type ProjectInvitationUpsertArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - /** - * The filter to search for the ProjectInvitation to update in case it exists. - */ - where: Prisma.ProjectInvitationWhereUniqueInput - /** - * In case the ProjectInvitation found by the `where` argument doesn't exist, create a new ProjectInvitation with this data. - */ - create: Prisma.XOR - /** - * In case the ProjectInvitation was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * ProjectInvitation delete - */ -export type ProjectInvitationDeleteArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null - /** - * Filter which ProjectInvitation to delete. - */ - where: Prisma.ProjectInvitationWhereUniqueInput -} - -/** - * ProjectInvitation deleteMany - */ -export type ProjectInvitationDeleteManyArgs = { - /** - * Filter which ProjectInvitations to delete - */ - where?: Prisma.ProjectInvitationWhereInput - /** - * Limit how many ProjectInvitations to delete. - */ - limit?: number -} - -/** - * ProjectInvitation without action - */ -export type ProjectInvitationDefaultArgs = { - /** - * Select specific fields to fetch from the ProjectInvitation - */ - select?: Prisma.ProjectInvitationSelect | null - /** - * Omit specific fields from the ProjectInvitation - */ - omit?: Prisma.ProjectInvitationOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectInvitationInclude | null -} diff --git a/src/generated/client/models/ProjectMember.ts b/src/generated/client/models/ProjectMember.ts deleted file mode 100644 index bac15c15..00000000 --- a/src/generated/client/models/ProjectMember.ts +++ /dev/null @@ -1,1471 +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 `ProjectMember` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model ProjectMember - * - */ -export type ProjectMemberModel = runtime.Types.Result.DefaultSelection - -export type AggregateProjectMember = { - _count: ProjectMemberCountAggregateOutputType | null - _avg: ProjectMemberAvgAggregateOutputType | null - _sum: ProjectMemberSumAggregateOutputType | null - _min: ProjectMemberMinAggregateOutputType | null - _max: ProjectMemberMaxAggregateOutputType | null -} - -export type ProjectMemberAvgAggregateOutputType = { - id: number | null -} - -export type ProjectMemberSumAggregateOutputType = { - id: number | null -} - -export type ProjectMemberMinAggregateOutputType = { - id: number | null - role: $Enums.ProjectRole | null - userId: string | null - projectId: string | null -} - -export type ProjectMemberMaxAggregateOutputType = { - id: number | null - role: $Enums.ProjectRole | null - userId: string | null - projectId: string | null -} - -export type ProjectMemberCountAggregateOutputType = { - id: number - role: number - userId: number - projectId: number - _all: number -} - - -export type ProjectMemberAvgAggregateInputType = { - id?: true -} - -export type ProjectMemberSumAggregateInputType = { - id?: true -} - -export type ProjectMemberMinAggregateInputType = { - id?: true - role?: true - userId?: true - projectId?: true -} - -export type ProjectMemberMaxAggregateInputType = { - id?: true - role?: true - userId?: true - projectId?: true -} - -export type ProjectMemberCountAggregateInputType = { - id?: true - role?: true - userId?: true - projectId?: true - _all?: true -} - -export type ProjectMemberAggregateArgs = { - /** - * Filter which ProjectMember to aggregate. - */ - where?: Prisma.ProjectMemberWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ProjectMembers to fetch. - */ - orderBy?: Prisma.ProjectMemberOrderByWithRelationInput | Prisma.ProjectMemberOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.ProjectMemberWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ProjectMembers 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` ProjectMembers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned ProjectMembers - **/ - _count?: true | ProjectMemberCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: ProjectMemberAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: ProjectMemberSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: ProjectMemberMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: ProjectMemberMaxAggregateInputType -} - -export type GetProjectMemberAggregateType = { - [P in keyof T & keyof AggregateProjectMember]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type ProjectMemberGroupByArgs = { - where?: Prisma.ProjectMemberWhereInput - orderBy?: Prisma.ProjectMemberOrderByWithAggregationInput | Prisma.ProjectMemberOrderByWithAggregationInput[] - by: Prisma.ProjectMemberScalarFieldEnum[] | Prisma.ProjectMemberScalarFieldEnum - having?: Prisma.ProjectMemberScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: ProjectMemberCountAggregateInputType | true - _avg?: ProjectMemberAvgAggregateInputType - _sum?: ProjectMemberSumAggregateInputType - _min?: ProjectMemberMinAggregateInputType - _max?: ProjectMemberMaxAggregateInputType -} - -export type ProjectMemberGroupByOutputType = { - id: number - role: $Enums.ProjectRole - userId: string - projectId: string - _count: ProjectMemberCountAggregateOutputType | null - _avg: ProjectMemberAvgAggregateOutputType | null - _sum: ProjectMemberSumAggregateOutputType | null - _min: ProjectMemberMinAggregateOutputType | null - _max: ProjectMemberMaxAggregateOutputType | null -} - -export type GetProjectMemberGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof ProjectMemberGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type ProjectMemberWhereInput = { - AND?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[] - OR?: Prisma.ProjectMemberWhereInput[] - NOT?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[] - id?: Prisma.IntFilter<"ProjectMember"> | number - role?: Prisma.EnumProjectRoleFilter<"ProjectMember"> | $Enums.ProjectRole - userId?: Prisma.StringFilter<"ProjectMember"> | string - projectId?: Prisma.StringFilter<"ProjectMember"> | string - user?: Prisma.XOR - project?: Prisma.XOR -} - -export type ProjectMemberOrderByWithRelationInput = { - id?: Prisma.SortOrder - role?: Prisma.SortOrder - userId?: Prisma.SortOrder - projectId?: Prisma.SortOrder - user?: Prisma.UserOrderByWithRelationInput - project?: Prisma.ProjectOrderByWithRelationInput -} - -export type ProjectMemberWhereUniqueInput = Prisma.AtLeast<{ - id?: number - userId_projectId?: Prisma.ProjectMemberUserIdProjectIdCompoundUniqueInput - AND?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[] - OR?: Prisma.ProjectMemberWhereInput[] - NOT?: Prisma.ProjectMemberWhereInput | Prisma.ProjectMemberWhereInput[] - role?: Prisma.EnumProjectRoleFilter<"ProjectMember"> | $Enums.ProjectRole - userId?: Prisma.StringFilter<"ProjectMember"> | string - projectId?: Prisma.StringFilter<"ProjectMember"> | string - user?: Prisma.XOR - project?: Prisma.XOR -}, "id" | "userId_projectId"> - -export type ProjectMemberOrderByWithAggregationInput = { - id?: Prisma.SortOrder - role?: Prisma.SortOrder - userId?: Prisma.SortOrder - projectId?: Prisma.SortOrder - _count?: Prisma.ProjectMemberCountOrderByAggregateInput - _avg?: Prisma.ProjectMemberAvgOrderByAggregateInput - _max?: Prisma.ProjectMemberMaxOrderByAggregateInput - _min?: Prisma.ProjectMemberMinOrderByAggregateInput - _sum?: Prisma.ProjectMemberSumOrderByAggregateInput -} - -export type ProjectMemberScalarWhereWithAggregatesInput = { - AND?: Prisma.ProjectMemberScalarWhereWithAggregatesInput | Prisma.ProjectMemberScalarWhereWithAggregatesInput[] - OR?: Prisma.ProjectMemberScalarWhereWithAggregatesInput[] - NOT?: Prisma.ProjectMemberScalarWhereWithAggregatesInput | Prisma.ProjectMemberScalarWhereWithAggregatesInput[] - id?: Prisma.IntWithAggregatesFilter<"ProjectMember"> | number - role?: Prisma.EnumProjectRoleWithAggregatesFilter<"ProjectMember"> | $Enums.ProjectRole - userId?: Prisma.StringWithAggregatesFilter<"ProjectMember"> | string - projectId?: Prisma.StringWithAggregatesFilter<"ProjectMember"> | string -} - -export type ProjectMemberCreateInput = { - role?: $Enums.ProjectRole - user: Prisma.UserCreateNestedOneWithoutProjectsInput - project: Prisma.ProjectCreateNestedOneWithoutMembersInput -} - -export type ProjectMemberUncheckedCreateInput = { - id?: number - role?: $Enums.ProjectRole - userId: string - projectId: string -} - -export type ProjectMemberUpdateInput = { - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole - user?: Prisma.UserUpdateOneRequiredWithoutProjectsNestedInput - project?: Prisma.ProjectUpdateOneRequiredWithoutMembersNestedInput -} - -export type ProjectMemberUncheckedUpdateInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole - userId?: Prisma.StringFieldUpdateOperationsInput | string - projectId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type ProjectMemberCreateManyInput = { - id?: number - role?: $Enums.ProjectRole - userId: string - projectId: string -} - -export type ProjectMemberUpdateManyMutationInput = { - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole -} - -export type ProjectMemberUncheckedUpdateManyInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole - userId?: Prisma.StringFieldUpdateOperationsInput | string - projectId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type ProjectMemberListRelationFilter = { - every?: Prisma.ProjectMemberWhereInput - some?: Prisma.ProjectMemberWhereInput - none?: Prisma.ProjectMemberWhereInput -} - -export type ProjectMemberOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type ProjectMemberUserIdProjectIdCompoundUniqueInput = { - userId: string - projectId: string -} - -export type ProjectMemberCountOrderByAggregateInput = { - id?: Prisma.SortOrder - role?: Prisma.SortOrder - userId?: Prisma.SortOrder - projectId?: Prisma.SortOrder -} - -export type ProjectMemberAvgOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type ProjectMemberMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - role?: Prisma.SortOrder - userId?: Prisma.SortOrder - projectId?: Prisma.SortOrder -} - -export type ProjectMemberMinOrderByAggregateInput = { - id?: Prisma.SortOrder - role?: Prisma.SortOrder - userId?: Prisma.SortOrder - projectId?: Prisma.SortOrder -} - -export type ProjectMemberSumOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type ProjectMemberCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.ProjectMemberCreateWithoutUserInput[] | Prisma.ProjectMemberUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.ProjectMemberCreateOrConnectWithoutUserInput | Prisma.ProjectMemberCreateOrConnectWithoutUserInput[] - createMany?: Prisma.ProjectMemberCreateManyUserInputEnvelope - connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] -} - -export type ProjectMemberUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.ProjectMemberCreateWithoutUserInput[] | Prisma.ProjectMemberUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.ProjectMemberCreateOrConnectWithoutUserInput | Prisma.ProjectMemberCreateOrConnectWithoutUserInput[] - createMany?: Prisma.ProjectMemberCreateManyUserInputEnvelope - connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] -} - -export type ProjectMemberUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.ProjectMemberCreateWithoutUserInput[] | Prisma.ProjectMemberUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.ProjectMemberCreateOrConnectWithoutUserInput | Prisma.ProjectMemberCreateOrConnectWithoutUserInput[] - upsert?: Prisma.ProjectMemberUpsertWithWhereUniqueWithoutUserInput | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.ProjectMemberCreateManyUserInputEnvelope - set?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - disconnect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - delete?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - update?: Prisma.ProjectMemberUpdateWithWhereUniqueWithoutUserInput | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.ProjectMemberUpdateManyWithWhereWithoutUserInput | Prisma.ProjectMemberUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] -} - -export type ProjectMemberUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.ProjectMemberCreateWithoutUserInput[] | Prisma.ProjectMemberUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.ProjectMemberCreateOrConnectWithoutUserInput | Prisma.ProjectMemberCreateOrConnectWithoutUserInput[] - upsert?: Prisma.ProjectMemberUpsertWithWhereUniqueWithoutUserInput | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.ProjectMemberCreateManyUserInputEnvelope - set?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - disconnect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - delete?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - update?: Prisma.ProjectMemberUpdateWithWhereUniqueWithoutUserInput | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.ProjectMemberUpdateManyWithWhereWithoutUserInput | Prisma.ProjectMemberUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] -} - -export type ProjectMemberCreateNestedManyWithoutProjectInput = { - create?: Prisma.XOR | Prisma.ProjectMemberCreateWithoutProjectInput[] | Prisma.ProjectMemberUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.ProjectMemberCreateOrConnectWithoutProjectInput | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput[] - createMany?: Prisma.ProjectMemberCreateManyProjectInputEnvelope - connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] -} - -export type ProjectMemberUncheckedCreateNestedManyWithoutProjectInput = { - create?: Prisma.XOR | Prisma.ProjectMemberCreateWithoutProjectInput[] | Prisma.ProjectMemberUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.ProjectMemberCreateOrConnectWithoutProjectInput | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput[] - createMany?: Prisma.ProjectMemberCreateManyProjectInputEnvelope - connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] -} - -export type ProjectMemberUpdateManyWithoutProjectNestedInput = { - create?: Prisma.XOR | Prisma.ProjectMemberCreateWithoutProjectInput[] | Prisma.ProjectMemberUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.ProjectMemberCreateOrConnectWithoutProjectInput | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput[] - upsert?: Prisma.ProjectMemberUpsertWithWhereUniqueWithoutProjectInput | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutProjectInput[] - createMany?: Prisma.ProjectMemberCreateManyProjectInputEnvelope - set?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - disconnect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - delete?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - update?: Prisma.ProjectMemberUpdateWithWhereUniqueWithoutProjectInput | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutProjectInput[] - updateMany?: Prisma.ProjectMemberUpdateManyWithWhereWithoutProjectInput | Prisma.ProjectMemberUpdateManyWithWhereWithoutProjectInput[] - deleteMany?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] -} - -export type ProjectMemberUncheckedUpdateManyWithoutProjectNestedInput = { - create?: Prisma.XOR | Prisma.ProjectMemberCreateWithoutProjectInput[] | Prisma.ProjectMemberUncheckedCreateWithoutProjectInput[] - connectOrCreate?: Prisma.ProjectMemberCreateOrConnectWithoutProjectInput | Prisma.ProjectMemberCreateOrConnectWithoutProjectInput[] - upsert?: Prisma.ProjectMemberUpsertWithWhereUniqueWithoutProjectInput | Prisma.ProjectMemberUpsertWithWhereUniqueWithoutProjectInput[] - createMany?: Prisma.ProjectMemberCreateManyProjectInputEnvelope - set?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - disconnect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - delete?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - connect?: Prisma.ProjectMemberWhereUniqueInput | Prisma.ProjectMemberWhereUniqueInput[] - update?: Prisma.ProjectMemberUpdateWithWhereUniqueWithoutProjectInput | Prisma.ProjectMemberUpdateWithWhereUniqueWithoutProjectInput[] - updateMany?: Prisma.ProjectMemberUpdateManyWithWhereWithoutProjectInput | Prisma.ProjectMemberUpdateManyWithWhereWithoutProjectInput[] - deleteMany?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] -} - -export type EnumProjectRoleFieldUpdateOperationsInput = { - set?: $Enums.ProjectRole -} - -export type ProjectMemberCreateWithoutUserInput = { - role?: $Enums.ProjectRole - project: Prisma.ProjectCreateNestedOneWithoutMembersInput -} - -export type ProjectMemberUncheckedCreateWithoutUserInput = { - id?: number - role?: $Enums.ProjectRole - projectId: string -} - -export type ProjectMemberCreateOrConnectWithoutUserInput = { - where: Prisma.ProjectMemberWhereUniqueInput - create: Prisma.XOR -} - -export type ProjectMemberCreateManyUserInputEnvelope = { - data: Prisma.ProjectMemberCreateManyUserInput | Prisma.ProjectMemberCreateManyUserInput[] - skipDuplicates?: boolean -} - -export type ProjectMemberUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.ProjectMemberWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type ProjectMemberUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.ProjectMemberWhereUniqueInput - data: Prisma.XOR -} - -export type ProjectMemberUpdateManyWithWhereWithoutUserInput = { - where: Prisma.ProjectMemberScalarWhereInput - data: Prisma.XOR -} - -export type ProjectMemberScalarWhereInput = { - AND?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] - OR?: Prisma.ProjectMemberScalarWhereInput[] - NOT?: Prisma.ProjectMemberScalarWhereInput | Prisma.ProjectMemberScalarWhereInput[] - id?: Prisma.IntFilter<"ProjectMember"> | number - role?: Prisma.EnumProjectRoleFilter<"ProjectMember"> | $Enums.ProjectRole - userId?: Prisma.StringFilter<"ProjectMember"> | string - projectId?: Prisma.StringFilter<"ProjectMember"> | string -} - -export type ProjectMemberCreateWithoutProjectInput = { - role?: $Enums.ProjectRole - user: Prisma.UserCreateNestedOneWithoutProjectsInput -} - -export type ProjectMemberUncheckedCreateWithoutProjectInput = { - id?: number - role?: $Enums.ProjectRole - userId: string -} - -export type ProjectMemberCreateOrConnectWithoutProjectInput = { - where: Prisma.ProjectMemberWhereUniqueInput - create: Prisma.XOR -} - -export type ProjectMemberCreateManyProjectInputEnvelope = { - data: Prisma.ProjectMemberCreateManyProjectInput | Prisma.ProjectMemberCreateManyProjectInput[] - skipDuplicates?: boolean -} - -export type ProjectMemberUpsertWithWhereUniqueWithoutProjectInput = { - where: Prisma.ProjectMemberWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type ProjectMemberUpdateWithWhereUniqueWithoutProjectInput = { - where: Prisma.ProjectMemberWhereUniqueInput - data: Prisma.XOR -} - -export type ProjectMemberUpdateManyWithWhereWithoutProjectInput = { - where: Prisma.ProjectMemberScalarWhereInput - data: Prisma.XOR -} - -export type ProjectMemberCreateManyUserInput = { - id?: number - role?: $Enums.ProjectRole - projectId: string -} - -export type ProjectMemberUpdateWithoutUserInput = { - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole - project?: Prisma.ProjectUpdateOneRequiredWithoutMembersNestedInput -} - -export type ProjectMemberUncheckedUpdateWithoutUserInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole - projectId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type ProjectMemberUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole - projectId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type ProjectMemberCreateManyProjectInput = { - id?: number - role?: $Enums.ProjectRole - userId: string -} - -export type ProjectMemberUpdateWithoutProjectInput = { - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole - user?: Prisma.UserUpdateOneRequiredWithoutProjectsNestedInput -} - -export type ProjectMemberUncheckedUpdateWithoutProjectInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole - userId?: Prisma.StringFieldUpdateOperationsInput | string -} - -export type ProjectMemberUncheckedUpdateManyWithoutProjectInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - role?: Prisma.EnumProjectRoleFieldUpdateOperationsInput | $Enums.ProjectRole - userId?: Prisma.StringFieldUpdateOperationsInput | string -} - - - -export type ProjectMemberSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - role?: boolean - userId?: boolean - projectId?: boolean - user?: boolean | Prisma.UserDefaultArgs - project?: boolean | Prisma.ProjectDefaultArgs -}, ExtArgs["result"]["projectMember"]> - -export type ProjectMemberSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - role?: boolean - userId?: boolean - projectId?: boolean - user?: boolean | Prisma.UserDefaultArgs - project?: boolean | Prisma.ProjectDefaultArgs -}, ExtArgs["result"]["projectMember"]> - -export type ProjectMemberSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - role?: boolean - userId?: boolean - projectId?: boolean - user?: boolean | Prisma.UserDefaultArgs - project?: boolean | Prisma.ProjectDefaultArgs -}, ExtArgs["result"]["projectMember"]> - -export type ProjectMemberSelectScalar = { - id?: boolean - role?: boolean - userId?: boolean - projectId?: boolean -} - -export type ProjectMemberOmit = runtime.Types.Extensions.GetOmit<"id" | "role" | "userId" | "projectId", ExtArgs["result"]["projectMember"]> -export type ProjectMemberInclude = { - user?: boolean | Prisma.UserDefaultArgs - project?: boolean | Prisma.ProjectDefaultArgs -} -export type ProjectMemberIncludeCreateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs - project?: boolean | Prisma.ProjectDefaultArgs -} -export type ProjectMemberIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs - project?: boolean | Prisma.ProjectDefaultArgs -} - -export type $ProjectMemberPayload = { - name: "ProjectMember" - objects: { - user: Prisma.$UserPayload - project: Prisma.$ProjectPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: number - role: $Enums.ProjectRole - userId: string - projectId: string - }, ExtArgs["result"]["projectMember"]> - composites: {} -} - -export type ProjectMemberGetPayload = runtime.Types.Result.GetResult - -export type ProjectMemberCountArgs = - Omit & { - select?: ProjectMemberCountAggregateInputType | true - } - -export interface ProjectMemberDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['ProjectMember'], meta: { name: 'ProjectMember' } } - /** - * Find zero or one ProjectMember that matches the filter. - * @param {ProjectMemberFindUniqueArgs} args - Arguments to find a ProjectMember - * @example - * // Get one ProjectMember - * const projectMember = await prisma.projectMember.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectMemberClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one ProjectMember that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {ProjectMemberFindUniqueOrThrowArgs} args - Arguments to find a ProjectMember - * @example - * // Get one ProjectMember - * const projectMember = await prisma.projectMember.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectMemberClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ProjectMember 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 {ProjectMemberFindFirstArgs} args - Arguments to find a ProjectMember - * @example - * // Get one ProjectMember - * const projectMember = await prisma.projectMember.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectMemberClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first ProjectMember 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 {ProjectMemberFindFirstOrThrowArgs} args - Arguments to find a ProjectMember - * @example - * // Get one ProjectMember - * const projectMember = await prisma.projectMember.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__ProjectMemberClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more ProjectMembers 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 {ProjectMemberFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all ProjectMembers - * const projectMembers = await prisma.projectMember.findMany() - * - * // Get first 10 ProjectMembers - * const projectMembers = await prisma.projectMember.findMany({ take: 10 }) - * - * // Only select the `id` - * const projectMemberWithIdOnly = await prisma.projectMember.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a ProjectMember. - * @param {ProjectMemberCreateArgs} args - Arguments to create a ProjectMember. - * @example - * // Create one ProjectMember - * const ProjectMember = await prisma.projectMember.create({ - * data: { - * // ... data to create a ProjectMember - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectMemberClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many ProjectMembers. - * @param {ProjectMemberCreateManyArgs} args - Arguments to create many ProjectMembers. - * @example - * // Create many ProjectMembers - * const projectMember = await prisma.projectMember.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many ProjectMembers and returns the data saved in the database. - * @param {ProjectMemberCreateManyAndReturnArgs} args - Arguments to create many ProjectMembers. - * @example - * // Create many ProjectMembers - * const projectMember = await prisma.projectMember.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many ProjectMembers and only return the `id` - * const projectMemberWithIdOnly = await prisma.projectMember.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 ProjectMember. - * @param {ProjectMemberDeleteArgs} args - Arguments to delete one ProjectMember. - * @example - * // Delete one ProjectMember - * const ProjectMember = await prisma.projectMember.delete({ - * where: { - * // ... filter to delete one ProjectMember - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectMemberClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one ProjectMember. - * @param {ProjectMemberUpdateArgs} args - Arguments to update one ProjectMember. - * @example - * // Update one ProjectMember - * const projectMember = await prisma.projectMember.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectMemberClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more ProjectMembers. - * @param {ProjectMemberDeleteManyArgs} args - Arguments to filter ProjectMembers to delete. - * @example - * // Delete a few ProjectMembers - * const { count } = await prisma.projectMember.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ProjectMembers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectMemberUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many ProjectMembers - * const projectMember = await prisma.projectMember.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more ProjectMembers and returns the data updated in the database. - * @param {ProjectMemberUpdateManyAndReturnArgs} args - Arguments to update many ProjectMembers. - * @example - * // Update many ProjectMembers - * const projectMember = await prisma.projectMember.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more ProjectMembers and only return the `id` - * const projectMemberWithIdOnly = await prisma.projectMember.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 ProjectMember. - * @param {ProjectMemberUpsertArgs} args - Arguments to update or create a ProjectMember. - * @example - * // Update or create a ProjectMember - * const projectMember = await prisma.projectMember.upsert({ - * create: { - * // ... data to create a ProjectMember - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the ProjectMember we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__ProjectMemberClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of ProjectMembers. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectMemberCountArgs} args - Arguments to filter ProjectMembers to count. - * @example - * // Count the number of ProjectMembers - * const count = await prisma.projectMember.count({ - * where: { - * // ... the filter for the ProjectMembers 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 ProjectMember. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectMemberAggregateArgs} 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 ProjectMember. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {ProjectMemberGroupByArgs} 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 ProjectMemberGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: ProjectMemberGroupByArgs['orderBy'] } - : { orderBy?: ProjectMemberGroupByArgs['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 ? GetProjectMemberGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the ProjectMember model - */ -readonly fields: ProjectMemberFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for ProjectMember. - * 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__ProjectMemberClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - project = {}>(args?: Prisma.Subset>): Prisma.Prisma__ProjectClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the ProjectMember model - */ -export interface ProjectMemberFieldRefs { - readonly id: Prisma.FieldRef<"ProjectMember", 'Int'> - readonly role: Prisma.FieldRef<"ProjectMember", 'ProjectRole'> - readonly userId: Prisma.FieldRef<"ProjectMember", 'String'> - readonly projectId: Prisma.FieldRef<"ProjectMember", 'String'> -} - - -// Custom InputTypes -/** - * ProjectMember findUnique - */ -export type ProjectMemberFindUniqueArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - /** - * Filter, which ProjectMember to fetch. - */ - where: Prisma.ProjectMemberWhereUniqueInput -} - -/** - * ProjectMember findUniqueOrThrow - */ -export type ProjectMemberFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - /** - * Filter, which ProjectMember to fetch. - */ - where: Prisma.ProjectMemberWhereUniqueInput -} - -/** - * ProjectMember findFirst - */ -export type ProjectMemberFindFirstArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - /** - * Filter, which ProjectMember to fetch. - */ - where?: Prisma.ProjectMemberWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ProjectMembers to fetch. - */ - orderBy?: Prisma.ProjectMemberOrderByWithRelationInput | Prisma.ProjectMemberOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ProjectMembers. - */ - cursor?: Prisma.ProjectMemberWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ProjectMembers 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` ProjectMembers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ProjectMembers. - */ - distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] -} - -/** - * ProjectMember findFirstOrThrow - */ -export type ProjectMemberFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - /** - * Filter, which ProjectMember to fetch. - */ - where?: Prisma.ProjectMemberWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ProjectMembers to fetch. - */ - orderBy?: Prisma.ProjectMemberOrderByWithRelationInput | Prisma.ProjectMemberOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for ProjectMembers. - */ - cursor?: Prisma.ProjectMemberWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ProjectMembers 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` ProjectMembers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ProjectMembers. - */ - distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] -} - -/** - * ProjectMember findMany - */ -export type ProjectMemberFindManyArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - /** - * Filter, which ProjectMembers to fetch. - */ - where?: Prisma.ProjectMemberWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of ProjectMembers to fetch. - */ - orderBy?: Prisma.ProjectMemberOrderByWithRelationInput | Prisma.ProjectMemberOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing ProjectMembers. - */ - cursor?: Prisma.ProjectMemberWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` ProjectMembers 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` ProjectMembers. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of ProjectMembers. - */ - distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] -} - -/** - * ProjectMember create - */ -export type ProjectMemberCreateArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - /** - * The data needed to create a ProjectMember. - */ - data: Prisma.XOR -} - -/** - * ProjectMember createMany - */ -export type ProjectMemberCreateManyArgs = { - /** - * The data used to create many ProjectMembers. - */ - data: Prisma.ProjectMemberCreateManyInput | Prisma.ProjectMemberCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * ProjectMember createManyAndReturn - */ -export type ProjectMemberCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelectCreateManyAndReturn | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * The data used to create many ProjectMembers. - */ - data: Prisma.ProjectMemberCreateManyInput | Prisma.ProjectMemberCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberIncludeCreateManyAndReturn | null -} - -/** - * ProjectMember update - */ -export type ProjectMemberUpdateArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - /** - * The data needed to update a ProjectMember. - */ - data: Prisma.XOR - /** - * Choose, which ProjectMember to update. - */ - where: Prisma.ProjectMemberWhereUniqueInput -} - -/** - * ProjectMember updateMany - */ -export type ProjectMemberUpdateManyArgs = { - /** - * The data used to update ProjectMembers. - */ - data: Prisma.XOR - /** - * Filter which ProjectMembers to update - */ - where?: Prisma.ProjectMemberWhereInput - /** - * Limit how many ProjectMembers to update. - */ - limit?: number -} - -/** - * ProjectMember updateManyAndReturn - */ -export type ProjectMemberUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * The data used to update ProjectMembers. - */ - data: Prisma.XOR - /** - * Filter which ProjectMembers to update - */ - where?: Prisma.ProjectMemberWhereInput - /** - * Limit how many ProjectMembers to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberIncludeUpdateManyAndReturn | null -} - -/** - * ProjectMember upsert - */ -export type ProjectMemberUpsertArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - /** - * The filter to search for the ProjectMember to update in case it exists. - */ - where: Prisma.ProjectMemberWhereUniqueInput - /** - * In case the ProjectMember found by the `where` argument doesn't exist, create a new ProjectMember with this data. - */ - create: Prisma.XOR - /** - * In case the ProjectMember was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * ProjectMember delete - */ -export type ProjectMemberDeleteArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - /** - * Filter which ProjectMember to delete. - */ - where: Prisma.ProjectMemberWhereUniqueInput -} - -/** - * ProjectMember deleteMany - */ -export type ProjectMemberDeleteManyArgs = { - /** - * Filter which ProjectMembers to delete - */ - where?: Prisma.ProjectMemberWhereInput - /** - * Limit how many ProjectMembers to delete. - */ - limit?: number -} - -/** - * ProjectMember without action - */ -export type ProjectMemberDefaultArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null -} diff --git a/src/generated/client/models/Session.ts b/src/generated/client/models/Session.ts deleted file mode 100644 index ebea2b47..00000000 --- a/src/generated/client/models/Session.ts +++ /dev/null @@ -1,1310 +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 `Session` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model Session - * - */ -export type SessionModel = runtime.Types.Result.DefaultSelection - -export type AggregateSession = { - _count: SessionCountAggregateOutputType | null - _min: SessionMinAggregateOutputType | null - _max: SessionMaxAggregateOutputType | null -} - -export type SessionMinAggregateOutputType = { - id: string | null - sessionToken: string | null - userId: string | null - expires: Date | null -} - -export type SessionMaxAggregateOutputType = { - id: string | null - sessionToken: string | null - userId: string | null - expires: Date | null -} - -export type SessionCountAggregateOutputType = { - id: number - sessionToken: number - userId: number - expires: number - _all: number -} - - -export type SessionMinAggregateInputType = { - id?: true - sessionToken?: true - userId?: true - expires?: true -} - -export type SessionMaxAggregateInputType = { - id?: true - sessionToken?: true - userId?: true - expires?: true -} - -export type SessionCountAggregateInputType = { - id?: true - sessionToken?: true - userId?: true - expires?: true - _all?: true -} - -export type SessionAggregateArgs = { - /** - * Filter which Session to aggregate. - */ - where?: Prisma.SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions 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` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Sessions - **/ - _count?: true | SessionCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: SessionMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: SessionMaxAggregateInputType -} - -export type GetSessionAggregateType = { - [P in keyof T & keyof AggregateSession]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type SessionGroupByArgs = { - where?: Prisma.SessionWhereInput - orderBy?: Prisma.SessionOrderByWithAggregationInput | Prisma.SessionOrderByWithAggregationInput[] - by: Prisma.SessionScalarFieldEnum[] | Prisma.SessionScalarFieldEnum - having?: Prisma.SessionScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: SessionCountAggregateInputType | true - _min?: SessionMinAggregateInputType - _max?: SessionMaxAggregateInputType -} - -export type SessionGroupByOutputType = { - id: string - sessionToken: string - userId: string - expires: Date - _count: SessionCountAggregateOutputType | null - _min: SessionMinAggregateOutputType | null - _max: SessionMaxAggregateOutputType | null -} - -export type GetSessionGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof SessionGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type SessionWhereInput = { - AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] - OR?: Prisma.SessionWhereInput[] - NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] - id?: Prisma.StringFilter<"Session"> | string - sessionToken?: Prisma.StringFilter<"Session"> | string - userId?: Prisma.StringFilter<"Session"> | string - expires?: Prisma.DateTimeFilter<"Session"> | Date | string - user?: Prisma.XOR -} - -export type SessionOrderByWithRelationInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder - user?: Prisma.UserOrderByWithRelationInput -} - -export type SessionWhereUniqueInput = Prisma.AtLeast<{ - id?: string - sessionToken?: string - AND?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] - OR?: Prisma.SessionWhereInput[] - NOT?: Prisma.SessionWhereInput | Prisma.SessionWhereInput[] - userId?: Prisma.StringFilter<"Session"> | string - expires?: Prisma.DateTimeFilter<"Session"> | Date | string - user?: Prisma.XOR -}, "id" | "sessionToken"> - -export type SessionOrderByWithAggregationInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder - _count?: Prisma.SessionCountOrderByAggregateInput - _max?: Prisma.SessionMaxOrderByAggregateInput - _min?: Prisma.SessionMinOrderByAggregateInput -} - -export type SessionScalarWhereWithAggregatesInput = { - AND?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] - OR?: Prisma.SessionScalarWhereWithAggregatesInput[] - NOT?: Prisma.SessionScalarWhereWithAggregatesInput | Prisma.SessionScalarWhereWithAggregatesInput[] - id?: Prisma.StringWithAggregatesFilter<"Session"> | string - sessionToken?: Prisma.StringWithAggregatesFilter<"Session"> | string - userId?: Prisma.StringWithAggregatesFilter<"Session"> | string - expires?: Prisma.DateTimeWithAggregatesFilter<"Session"> | Date | string -} - -export type SessionCreateInput = { - id?: string - sessionToken: string - expires: Date | string - user: Prisma.UserCreateNestedOneWithoutSessionsInput -} - -export type SessionUncheckedCreateInput = { - id?: string - sessionToken: string - userId: string - expires: Date | string -} - -export type SessionUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.UserUpdateOneRequiredWithoutSessionsNestedInput -} - -export type SessionUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionCreateManyInput = { - id?: string - sessionToken: string - userId: string - expires: Date | string -} - -export type SessionUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - userId?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionListRelationFilter = { - every?: Prisma.SessionWhereInput - some?: Prisma.SessionWhereInput - none?: Prisma.SessionWhereInput -} - -export type SessionOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type SessionCountOrderByAggregateInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type SessionMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type SessionMinOrderByAggregateInput = { - id?: Prisma.SortOrder - sessionToken?: Prisma.SortOrder - userId?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type SessionCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] - createMany?: Prisma.SessionCreateManyUserInputEnvelope - connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] -} - -export type SessionUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] - createMany?: Prisma.SessionCreateManyUserInputEnvelope - connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] -} - -export type SessionUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] - upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.SessionCreateManyUserInputEnvelope - set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] -} - -export type SessionUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.SessionCreateWithoutUserInput[] | Prisma.SessionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.SessionCreateOrConnectWithoutUserInput | Prisma.SessionCreateOrConnectWithoutUserInput[] - upsert?: Prisma.SessionUpsertWithWhereUniqueWithoutUserInput | Prisma.SessionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.SessionCreateManyUserInputEnvelope - set?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - disconnect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - delete?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - connect?: Prisma.SessionWhereUniqueInput | Prisma.SessionWhereUniqueInput[] - update?: Prisma.SessionUpdateWithWhereUniqueWithoutUserInput | Prisma.SessionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.SessionUpdateManyWithWhereWithoutUserInput | Prisma.SessionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] -} - -export type SessionCreateWithoutUserInput = { - id?: string - sessionToken: string - expires: Date | string -} - -export type SessionUncheckedCreateWithoutUserInput = { - id?: string - sessionToken: string - expires: Date | string -} - -export type SessionCreateOrConnectWithoutUserInput = { - where: Prisma.SessionWhereUniqueInput - create: Prisma.XOR -} - -export type SessionCreateManyUserInputEnvelope = { - data: Prisma.SessionCreateManyUserInput | Prisma.SessionCreateManyUserInput[] - skipDuplicates?: boolean -} - -export type SessionUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.SessionWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type SessionUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.SessionWhereUniqueInput - data: Prisma.XOR -} - -export type SessionUpdateManyWithWhereWithoutUserInput = { - where: Prisma.SessionScalarWhereInput - data: Prisma.XOR -} - -export type SessionScalarWhereInput = { - AND?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] - OR?: Prisma.SessionScalarWhereInput[] - NOT?: Prisma.SessionScalarWhereInput | Prisma.SessionScalarWhereInput[] - id?: Prisma.StringFilter<"Session"> | string - sessionToken?: Prisma.StringFilter<"Session"> | string - userId?: Prisma.StringFilter<"Session"> | string - expires?: Prisma.DateTimeFilter<"Session"> | Date | string -} - -export type SessionCreateManyUserInput = { - id?: string - sessionToken: string - expires: Date | string -} - -export type SessionUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionUncheckedUpdateWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type SessionUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - sessionToken?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type SessionSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - sessionToken?: boolean - userId?: boolean - expires?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["session"]> - -export type SessionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - sessionToken?: boolean - userId?: boolean - expires?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["session"]> - -export type SessionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - sessionToken?: boolean - userId?: boolean - expires?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["session"]> - -export type SessionSelectScalar = { - id?: boolean - sessionToken?: boolean - userId?: boolean - expires?: boolean -} - -export type SessionOmit = runtime.Types.Extensions.GetOmit<"id" | "sessionToken" | "userId" | "expires", ExtArgs["result"]["session"]> -export type SessionInclude = { - user?: boolean | Prisma.UserDefaultArgs -} -export type SessionIncludeCreateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} -export type SessionIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} - -export type $SessionPayload = { - name: "Session" - objects: { - user: Prisma.$UserPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - sessionToken: string - userId: string - expires: Date - }, ExtArgs["result"]["session"]> - composites: {} -} - -export type SessionGetPayload = runtime.Types.Result.GetResult - -export type SessionCountArgs = - Omit & { - select?: SessionCountAggregateInputType | true - } - -export interface SessionDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Session'], meta: { name: 'Session' } } - /** - * Find zero or one Session that matches the filter. - * @param {SessionFindUniqueArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Session that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {SessionFindUniqueOrThrowArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Session 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 {SessionFindFirstArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Session 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 {SessionFindFirstOrThrowArgs} args - Arguments to find a Session - * @example - * // Get one Session - * const session = await prisma.session.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Sessions 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 {SessionFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Sessions - * const sessions = await prisma.session.findMany() - * - * // Get first 10 Sessions - * const sessions = await prisma.session.findMany({ take: 10 }) - * - * // Only select the `id` - * const sessionWithIdOnly = await prisma.session.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Session. - * @param {SessionCreateArgs} args - Arguments to create a Session. - * @example - * // Create one Session - * const Session = await prisma.session.create({ - * data: { - * // ... data to create a Session - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Sessions. - * @param {SessionCreateManyArgs} args - Arguments to create many Sessions. - * @example - * // Create many Sessions - * const session = await prisma.session.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Sessions and returns the data saved in the database. - * @param {SessionCreateManyAndReturnArgs} args - Arguments to create many Sessions. - * @example - * // Create many Sessions - * const session = await prisma.session.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Sessions and only return the `id` - * const sessionWithIdOnly = await prisma.session.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 Session. - * @param {SessionDeleteArgs} args - Arguments to delete one Session. - * @example - * // Delete one Session - * const Session = await prisma.session.delete({ - * where: { - * // ... filter to delete one Session - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Session. - * @param {SessionUpdateArgs} args - Arguments to update one Session. - * @example - * // Update one Session - * const session = await prisma.session.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Sessions. - * @param {SessionDeleteManyArgs} args - Arguments to filter Sessions to delete. - * @example - * // Delete a few Sessions - * const { count } = await prisma.session.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Sessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Sessions - * const session = await prisma.session.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Sessions and returns the data updated in the database. - * @param {SessionUpdateManyAndReturnArgs} args - Arguments to update many Sessions. - * @example - * // Update many Sessions - * const session = await prisma.session.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Sessions and only return the `id` - * const sessionWithIdOnly = await prisma.session.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 Session. - * @param {SessionUpsertArgs} args - Arguments to update or create a Session. - * @example - * // Update or create a Session - * const session = await prisma.session.upsert({ - * create: { - * // ... data to create a Session - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Session we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__SessionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Sessions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionCountArgs} args - Arguments to filter Sessions to count. - * @example - * // Count the number of Sessions - * const count = await prisma.session.count({ - * where: { - * // ... the filter for the Sessions 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 Session. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionAggregateArgs} 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 Session. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {SessionGroupByArgs} 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 SessionGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: SessionGroupByArgs['orderBy'] } - : { orderBy?: SessionGroupByArgs['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 ? GetSessionGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Session model - */ -readonly fields: SessionFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Session. - * 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__SessionClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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 Session model - */ -export interface SessionFieldRefs { - readonly id: Prisma.FieldRef<"Session", 'String'> - readonly sessionToken: Prisma.FieldRef<"Session", 'String'> - readonly userId: Prisma.FieldRef<"Session", 'String'> - readonly expires: Prisma.FieldRef<"Session", 'DateTime'> -} - - -// Custom InputTypes -/** - * Session findUnique - */ -export type SessionFindUniqueArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where: Prisma.SessionWhereUniqueInput -} - -/** - * Session findUniqueOrThrow - */ -export type SessionFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where: Prisma.SessionWhereUniqueInput -} - -/** - * Session findFirst - */ -export type SessionFindFirstArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where?: Prisma.SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Sessions. - */ - cursor?: Prisma.SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions 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` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Sessions. - */ - distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] -} - -/** - * Session findFirstOrThrow - */ -export type SessionFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Session to fetch. - */ - where?: Prisma.SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Sessions. - */ - cursor?: Prisma.SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions 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` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Sessions. - */ - distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] -} - -/** - * Session findMany - */ -export type SessionFindManyArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter, which Sessions to fetch. - */ - where?: Prisma.SessionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Sessions to fetch. - */ - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Sessions. - */ - cursor?: Prisma.SessionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Sessions 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` Sessions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Sessions. - */ - distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] -} - -/** - * Session create - */ -export type SessionCreateArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * The data needed to create a Session. - */ - data: Prisma.XOR -} - -/** - * Session createMany - */ -export type SessionCreateManyArgs = { - /** - * The data used to create many Sessions. - */ - data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * Session createManyAndReturn - */ -export type SessionCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * The data used to create many Sessions. - */ - data: Prisma.SessionCreateManyInput | Prisma.SessionCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionIncludeCreateManyAndReturn | null -} - -/** - * Session update - */ -export type SessionUpdateArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * The data needed to update a Session. - */ - data: Prisma.XOR - /** - * Choose, which Session to update. - */ - where: Prisma.SessionWhereUniqueInput -} - -/** - * Session updateMany - */ -export type SessionUpdateManyArgs = { - /** - * The data used to update Sessions. - */ - data: Prisma.XOR - /** - * Filter which Sessions to update - */ - where?: Prisma.SessionWhereInput - /** - * Limit how many Sessions to update. - */ - limit?: number -} - -/** - * Session updateManyAndReturn - */ -export type SessionUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * The data used to update Sessions. - */ - data: Prisma.XOR - /** - * Filter which Sessions to update - */ - where?: Prisma.SessionWhereInput - /** - * Limit how many Sessions to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionIncludeUpdateManyAndReturn | null -} - -/** - * Session upsert - */ -export type SessionUpsertArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * The filter to search for the Session to update in case it exists. - */ - where: Prisma.SessionWhereUniqueInput - /** - * In case the Session found by the `where` argument doesn't exist, create a new Session with this data. - */ - create: Prisma.XOR - /** - * In case the Session was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Session delete - */ -export type SessionDeleteArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - /** - * Filter which Session to delete. - */ - where: Prisma.SessionWhereUniqueInput -} - -/** - * Session deleteMany - */ -export type SessionDeleteManyArgs = { - /** - * Filter which Sessions to delete - */ - where?: Prisma.SessionWhereInput - /** - * Limit how many Sessions to delete. - */ - limit?: number -} - -/** - * Session without action - */ -export type SessionDefaultArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null -} diff --git a/src/generated/client/models/Transaction.ts b/src/generated/client/models/Transaction.ts deleted file mode 100644 index 218aa370..00000000 --- a/src/generated/client/models/Transaction.ts +++ /dev/null @@ -1,1388 +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 `Transaction` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model Transaction - * - */ -export type TransactionModel = runtime.Types.Result.DefaultSelection - -export type AggregateTransaction = { - _count: TransactionCountAggregateOutputType | null - _avg: TransactionAvgAggregateOutputType | null - _sum: TransactionSumAggregateOutputType | null - _min: TransactionMinAggregateOutputType | null - _max: TransactionMaxAggregateOutputType | null -} - -export type TransactionAvgAggregateOutputType = { - id: number | null -} - -export type TransactionSumAggregateOutputType = { - id: number | null -} - -export type TransactionMinAggregateOutputType = { - id: number | null - userId: string | null - provider: $Enums.SubscriptionProvider | null - transactionId: string | null - createdAt: Date | null -} - -export type TransactionMaxAggregateOutputType = { - id: number | null - userId: string | null - provider: $Enums.SubscriptionProvider | null - transactionId: string | null - createdAt: Date | null -} - -export type TransactionCountAggregateOutputType = { - id: number - userId: number - provider: number - transactionId: number - createdAt: number - _all: number -} - - -export type TransactionAvgAggregateInputType = { - id?: true -} - -export type TransactionSumAggregateInputType = { - id?: true -} - -export type TransactionMinAggregateInputType = { - id?: true - userId?: true - provider?: true - transactionId?: true - createdAt?: true -} - -export type TransactionMaxAggregateInputType = { - id?: true - userId?: true - provider?: true - transactionId?: true - createdAt?: true -} - -export type TransactionCountAggregateInputType = { - id?: true - userId?: true - provider?: true - transactionId?: true - createdAt?: true - _all?: true -} - -export type TransactionAggregateArgs = { - /** - * Filter which Transaction to aggregate. - */ - where?: Prisma.TransactionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Transactions to fetch. - */ - orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.TransactionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Transactions 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` Transactions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned Transactions - **/ - _count?: true | TransactionCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to average - **/ - _avg?: TransactionAvgAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to sum - **/ - _sum?: TransactionSumAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: TransactionMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: TransactionMaxAggregateInputType -} - -export type GetTransactionAggregateType = { - [P in keyof T & keyof AggregateTransaction]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type TransactionGroupByArgs = { - where?: Prisma.TransactionWhereInput - orderBy?: Prisma.TransactionOrderByWithAggregationInput | Prisma.TransactionOrderByWithAggregationInput[] - by: Prisma.TransactionScalarFieldEnum[] | Prisma.TransactionScalarFieldEnum - having?: Prisma.TransactionScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: TransactionCountAggregateInputType | true - _avg?: TransactionAvgAggregateInputType - _sum?: TransactionSumAggregateInputType - _min?: TransactionMinAggregateInputType - _max?: TransactionMaxAggregateInputType -} - -export type TransactionGroupByOutputType = { - id: number - userId: string - provider: $Enums.SubscriptionProvider - transactionId: string - createdAt: Date - _count: TransactionCountAggregateOutputType | null - _avg: TransactionAvgAggregateOutputType | null - _sum: TransactionSumAggregateOutputType | null - _min: TransactionMinAggregateOutputType | null - _max: TransactionMaxAggregateOutputType | null -} - -export type GetTransactionGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof TransactionGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type TransactionWhereInput = { - AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[] - OR?: Prisma.TransactionWhereInput[] - NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[] - id?: Prisma.IntFilter<"Transaction"> | number - userId?: Prisma.StringFilter<"Transaction"> | string - provider?: Prisma.EnumSubscriptionProviderFilter<"Transaction"> | $Enums.SubscriptionProvider - transactionId?: Prisma.StringFilter<"Transaction"> | string - createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string - user?: Prisma.XOR -} - -export type TransactionOrderByWithRelationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - provider?: Prisma.SortOrder - transactionId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - user?: Prisma.UserOrderByWithRelationInput -} - -export type TransactionWhereUniqueInput = Prisma.AtLeast<{ - id?: number - transactionId?: string - AND?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[] - OR?: Prisma.TransactionWhereInput[] - NOT?: Prisma.TransactionWhereInput | Prisma.TransactionWhereInput[] - userId?: Prisma.StringFilter<"Transaction"> | string - provider?: Prisma.EnumSubscriptionProviderFilter<"Transaction"> | $Enums.SubscriptionProvider - createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string - user?: Prisma.XOR -}, "id" | "transactionId"> - -export type TransactionOrderByWithAggregationInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - provider?: Prisma.SortOrder - transactionId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - _count?: Prisma.TransactionCountOrderByAggregateInput - _avg?: Prisma.TransactionAvgOrderByAggregateInput - _max?: Prisma.TransactionMaxOrderByAggregateInput - _min?: Prisma.TransactionMinOrderByAggregateInput - _sum?: Prisma.TransactionSumOrderByAggregateInput -} - -export type TransactionScalarWhereWithAggregatesInput = { - AND?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[] - OR?: Prisma.TransactionScalarWhereWithAggregatesInput[] - NOT?: Prisma.TransactionScalarWhereWithAggregatesInput | Prisma.TransactionScalarWhereWithAggregatesInput[] - id?: Prisma.IntWithAggregatesFilter<"Transaction"> | number - userId?: Prisma.StringWithAggregatesFilter<"Transaction"> | string - provider?: Prisma.EnumSubscriptionProviderWithAggregatesFilter<"Transaction"> | $Enums.SubscriptionProvider - transactionId?: Prisma.StringWithAggregatesFilter<"Transaction"> | string - createdAt?: Prisma.DateTimeWithAggregatesFilter<"Transaction"> | Date | string -} - -export type TransactionCreateInput = { - provider: $Enums.SubscriptionProvider - transactionId: string - createdAt?: Date | string - user: Prisma.UserCreateNestedOneWithoutTransactionsInput -} - -export type TransactionUncheckedCreateInput = { - id?: number - userId: string - provider: $Enums.SubscriptionProvider - transactionId: string - createdAt?: Date | string -} - -export type TransactionUpdateInput = { - provider?: Prisma.EnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider - transactionId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - user?: Prisma.UserUpdateOneRequiredWithoutTransactionsNestedInput -} - -export type TransactionUncheckedUpdateInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - userId?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.EnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider - transactionId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TransactionCreateManyInput = { - id?: number - userId: string - provider: $Enums.SubscriptionProvider - transactionId: string - createdAt?: Date | string -} - -export type TransactionUpdateManyMutationInput = { - provider?: Prisma.EnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider - transactionId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TransactionUncheckedUpdateManyInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - userId?: Prisma.StringFieldUpdateOperationsInput | string - provider?: Prisma.EnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider - transactionId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TransactionListRelationFilter = { - every?: Prisma.TransactionWhereInput - some?: Prisma.TransactionWhereInput - none?: Prisma.TransactionWhereInput -} - -export type TransactionOrderByRelationAggregateInput = { - _count?: Prisma.SortOrder -} - -export type TransactionCountOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - provider?: Prisma.SortOrder - transactionId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder -} - -export type TransactionAvgOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type TransactionMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - provider?: Prisma.SortOrder - transactionId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder -} - -export type TransactionMinOrderByAggregateInput = { - id?: Prisma.SortOrder - userId?: Prisma.SortOrder - provider?: Prisma.SortOrder - transactionId?: Prisma.SortOrder - createdAt?: Prisma.SortOrder -} - -export type TransactionSumOrderByAggregateInput = { - id?: Prisma.SortOrder -} - -export type TransactionCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[] - createMany?: Prisma.TransactionCreateManyUserInputEnvelope - connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] -} - -export type TransactionUncheckedCreateNestedManyWithoutUserInput = { - create?: Prisma.XOR | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[] - createMany?: Prisma.TransactionCreateManyUserInputEnvelope - connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] -} - -export type TransactionUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[] - upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.TransactionCreateManyUserInputEnvelope - set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] - disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] - delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] - connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] - update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] -} - -export type TransactionUncheckedUpdateManyWithoutUserNestedInput = { - create?: Prisma.XOR | Prisma.TransactionCreateWithoutUserInput[] | Prisma.TransactionUncheckedCreateWithoutUserInput[] - connectOrCreate?: Prisma.TransactionCreateOrConnectWithoutUserInput | Prisma.TransactionCreateOrConnectWithoutUserInput[] - upsert?: Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput | Prisma.TransactionUpsertWithWhereUniqueWithoutUserInput[] - createMany?: Prisma.TransactionCreateManyUserInputEnvelope - set?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] - disconnect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] - delete?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] - connect?: Prisma.TransactionWhereUniqueInput | Prisma.TransactionWhereUniqueInput[] - update?: Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput | Prisma.TransactionUpdateWithWhereUniqueWithoutUserInput[] - updateMany?: Prisma.TransactionUpdateManyWithWhereWithoutUserInput | Prisma.TransactionUpdateManyWithWhereWithoutUserInput[] - deleteMany?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] -} - -export type EnumSubscriptionProviderFieldUpdateOperationsInput = { - set?: $Enums.SubscriptionProvider -} - -export type TransactionCreateWithoutUserInput = { - provider: $Enums.SubscriptionProvider - transactionId: string - createdAt?: Date | string -} - -export type TransactionUncheckedCreateWithoutUserInput = { - id?: number - provider: $Enums.SubscriptionProvider - transactionId: string - createdAt?: Date | string -} - -export type TransactionCreateOrConnectWithoutUserInput = { - where: Prisma.TransactionWhereUniqueInput - create: Prisma.XOR -} - -export type TransactionCreateManyUserInputEnvelope = { - data: Prisma.TransactionCreateManyUserInput | Prisma.TransactionCreateManyUserInput[] - skipDuplicates?: boolean -} - -export type TransactionUpsertWithWhereUniqueWithoutUserInput = { - where: Prisma.TransactionWhereUniqueInput - update: Prisma.XOR - create: Prisma.XOR -} - -export type TransactionUpdateWithWhereUniqueWithoutUserInput = { - where: Prisma.TransactionWhereUniqueInput - data: Prisma.XOR -} - -export type TransactionUpdateManyWithWhereWithoutUserInput = { - where: Prisma.TransactionScalarWhereInput - data: Prisma.XOR -} - -export type TransactionScalarWhereInput = { - AND?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] - OR?: Prisma.TransactionScalarWhereInput[] - NOT?: Prisma.TransactionScalarWhereInput | Prisma.TransactionScalarWhereInput[] - id?: Prisma.IntFilter<"Transaction"> | number - userId?: Prisma.StringFilter<"Transaction"> | string - provider?: Prisma.EnumSubscriptionProviderFilter<"Transaction"> | $Enums.SubscriptionProvider - transactionId?: Prisma.StringFilter<"Transaction"> | string - createdAt?: Prisma.DateTimeFilter<"Transaction"> | Date | string -} - -export type TransactionCreateManyUserInput = { - id?: number - provider: $Enums.SubscriptionProvider - transactionId: string - createdAt?: Date | string -} - -export type TransactionUpdateWithoutUserInput = { - provider?: Prisma.EnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider - transactionId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TransactionUncheckedUpdateWithoutUserInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - provider?: Prisma.EnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider - transactionId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type TransactionUncheckedUpdateManyWithoutUserInput = { - id?: Prisma.IntFieldUpdateOperationsInput | number - provider?: Prisma.EnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider - transactionId?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - - - -export type TransactionSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - provider?: boolean - transactionId?: boolean - createdAt?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["transaction"]> - -export type TransactionSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - provider?: boolean - transactionId?: boolean - createdAt?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["transaction"]> - -export type TransactionSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - userId?: boolean - provider?: boolean - transactionId?: boolean - createdAt?: boolean - user?: boolean | Prisma.UserDefaultArgs -}, ExtArgs["result"]["transaction"]> - -export type TransactionSelectScalar = { - id?: boolean - userId?: boolean - provider?: boolean - transactionId?: boolean - createdAt?: boolean -} - -export type TransactionOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "provider" | "transactionId" | "createdAt", ExtArgs["result"]["transaction"]> -export type TransactionInclude = { - user?: boolean | Prisma.UserDefaultArgs -} -export type TransactionIncludeCreateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} -export type TransactionIncludeUpdateManyAndReturn = { - user?: boolean | Prisma.UserDefaultArgs -} - -export type $TransactionPayload = { - name: "Transaction" - objects: { - user: Prisma.$UserPayload - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: number - userId: string - provider: $Enums.SubscriptionProvider - transactionId: string - createdAt: Date - }, ExtArgs["result"]["transaction"]> - composites: {} -} - -export type TransactionGetPayload = runtime.Types.Result.GetResult - -export type TransactionCountArgs = - Omit & { - select?: TransactionCountAggregateInputType | true - } - -export interface TransactionDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['Transaction'], meta: { name: 'Transaction' } } - /** - * Find zero or one Transaction that matches the filter. - * @param {TransactionFindUniqueArgs} args - Arguments to find a Transaction - * @example - * // Get one Transaction - * const transaction = await prisma.transaction.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one Transaction that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {TransactionFindUniqueOrThrowArgs} args - Arguments to find a Transaction - * @example - * // Get one Transaction - * const transaction = await prisma.transaction.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Transaction 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 {TransactionFindFirstArgs} args - Arguments to find a Transaction - * @example - * // Get one Transaction - * const transaction = await prisma.transaction.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first Transaction 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 {TransactionFindFirstOrThrowArgs} args - Arguments to find a Transaction - * @example - * // Get one Transaction - * const transaction = await prisma.transaction.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more Transactions 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 {TransactionFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all Transactions - * const transactions = await prisma.transaction.findMany() - * - * // Get first 10 Transactions - * const transactions = await prisma.transaction.findMany({ take: 10 }) - * - * // Only select the `id` - * const transactionWithIdOnly = await prisma.transaction.findMany({ select: { id: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a Transaction. - * @param {TransactionCreateArgs} args - Arguments to create a Transaction. - * @example - * // Create one Transaction - * const Transaction = await prisma.transaction.create({ - * data: { - * // ... data to create a Transaction - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many Transactions. - * @param {TransactionCreateManyArgs} args - Arguments to create many Transactions. - * @example - * // Create many Transactions - * const transaction = await prisma.transaction.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many Transactions and returns the data saved in the database. - * @param {TransactionCreateManyAndReturnArgs} args - Arguments to create many Transactions. - * @example - * // Create many Transactions - * const transaction = await prisma.transaction.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many Transactions and only return the `id` - * const transactionWithIdOnly = await prisma.transaction.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 Transaction. - * @param {TransactionDeleteArgs} args - Arguments to delete one Transaction. - * @example - * // Delete one Transaction - * const Transaction = await prisma.transaction.delete({ - * where: { - * // ... filter to delete one Transaction - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one Transaction. - * @param {TransactionUpdateArgs} args - Arguments to update one Transaction. - * @example - * // Update one Transaction - * const transaction = await prisma.transaction.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more Transactions. - * @param {TransactionDeleteManyArgs} args - Arguments to filter Transactions to delete. - * @example - * // Delete a few Transactions - * const { count } = await prisma.transaction.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Transactions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TransactionUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many Transactions - * const transaction = await prisma.transaction.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more Transactions and returns the data updated in the database. - * @param {TransactionUpdateManyAndReturnArgs} args - Arguments to update many Transactions. - * @example - * // Update many Transactions - * const transaction = await prisma.transaction.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more Transactions and only return the `id` - * const transactionWithIdOnly = await prisma.transaction.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 Transaction. - * @param {TransactionUpsertArgs} args - Arguments to update or create a Transaction. - * @example - * // Update or create a Transaction - * const transaction = await prisma.transaction.upsert({ - * create: { - * // ... data to create a Transaction - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the Transaction we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__TransactionClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of Transactions. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TransactionCountArgs} args - Arguments to filter Transactions to count. - * @example - * // Count the number of Transactions - * const count = await prisma.transaction.count({ - * where: { - * // ... the filter for the Transactions 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 Transaction. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TransactionAggregateArgs} 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 Transaction. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {TransactionGroupByArgs} 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 TransactionGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: TransactionGroupByArgs['orderBy'] } - : { orderBy?: TransactionGroupByArgs['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 ? GetTransactionGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the Transaction model - */ -readonly fields: TransactionFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for Transaction. - * 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__TransactionClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, 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 Transaction model - */ -export interface TransactionFieldRefs { - readonly id: Prisma.FieldRef<"Transaction", 'Int'> - readonly userId: Prisma.FieldRef<"Transaction", 'String'> - readonly provider: Prisma.FieldRef<"Transaction", 'SubscriptionProvider'> - readonly transactionId: Prisma.FieldRef<"Transaction", 'String'> - readonly createdAt: Prisma.FieldRef<"Transaction", 'DateTime'> -} - - -// Custom InputTypes -/** - * Transaction findUnique - */ -export type TransactionFindUniqueArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - /** - * Filter, which Transaction to fetch. - */ - where: Prisma.TransactionWhereUniqueInput -} - -/** - * Transaction findUniqueOrThrow - */ -export type TransactionFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - /** - * Filter, which Transaction to fetch. - */ - where: Prisma.TransactionWhereUniqueInput -} - -/** - * Transaction findFirst - */ -export type TransactionFindFirstArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - /** - * Filter, which Transaction to fetch. - */ - where?: Prisma.TransactionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Transactions to fetch. - */ - orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Transactions. - */ - cursor?: Prisma.TransactionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Transactions 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` Transactions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Transactions. - */ - distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] -} - -/** - * Transaction findFirstOrThrow - */ -export type TransactionFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - /** - * Filter, which Transaction to fetch. - */ - where?: Prisma.TransactionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Transactions to fetch. - */ - orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for Transactions. - */ - cursor?: Prisma.TransactionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Transactions 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` Transactions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Transactions. - */ - distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] -} - -/** - * Transaction findMany - */ -export type TransactionFindManyArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - /** - * Filter, which Transactions to fetch. - */ - where?: Prisma.TransactionWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of Transactions to fetch. - */ - orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing Transactions. - */ - cursor?: Prisma.TransactionWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` Transactions 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` Transactions. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of Transactions. - */ - distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] -} - -/** - * Transaction create - */ -export type TransactionCreateArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - /** - * The data needed to create a Transaction. - */ - data: Prisma.XOR -} - -/** - * Transaction createMany - */ -export type TransactionCreateManyArgs = { - /** - * The data used to create many Transactions. - */ - data: Prisma.TransactionCreateManyInput | Prisma.TransactionCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * Transaction createManyAndReturn - */ -export type TransactionCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelectCreateManyAndReturn | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * The data used to create many Transactions. - */ - data: Prisma.TransactionCreateManyInput | Prisma.TransactionCreateManyInput[] - skipDuplicates?: boolean - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionIncludeCreateManyAndReturn | null -} - -/** - * Transaction update - */ -export type TransactionUpdateArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - /** - * The data needed to update a Transaction. - */ - data: Prisma.XOR - /** - * Choose, which Transaction to update. - */ - where: Prisma.TransactionWhereUniqueInput -} - -/** - * Transaction updateMany - */ -export type TransactionUpdateManyArgs = { - /** - * The data used to update Transactions. - */ - data: Prisma.XOR - /** - * Filter which Transactions to update - */ - where?: Prisma.TransactionWhereInput - /** - * Limit how many Transactions to update. - */ - limit?: number -} - -/** - * Transaction updateManyAndReturn - */ -export type TransactionUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * The data used to update Transactions. - */ - data: Prisma.XOR - /** - * Filter which Transactions to update - */ - where?: Prisma.TransactionWhereInput - /** - * Limit how many Transactions to update. - */ - limit?: number - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionIncludeUpdateManyAndReturn | null -} - -/** - * Transaction upsert - */ -export type TransactionUpsertArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - /** - * The filter to search for the Transaction to update in case it exists. - */ - where: Prisma.TransactionWhereUniqueInput - /** - * In case the Transaction found by the `where` argument doesn't exist, create a new Transaction with this data. - */ - create: Prisma.XOR - /** - * In case the Transaction was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * Transaction delete - */ -export type TransactionDeleteArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - /** - * Filter which Transaction to delete. - */ - where: Prisma.TransactionWhereUniqueInput -} - -/** - * Transaction deleteMany - */ -export type TransactionDeleteManyArgs = { - /** - * Filter which Transactions to delete - */ - where?: Prisma.TransactionWhereInput - /** - * Limit how many Transactions to delete. - */ - limit?: number -} - -/** - * Transaction without action - */ -export type TransactionDefaultArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null -} diff --git a/src/generated/client/models/User.ts b/src/generated/client/models/User.ts deleted file mode 100644 index 4a4bdba9..00000000 --- a/src/generated/client/models/User.ts +++ /dev/null @@ -1,1979 +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/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * 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 - createdAt: Date | null - email: string | null - emailVerified: Date | null - username: string | null - color: string | null - role: $Enums.UserRole | null - isProUntil: Date | null - isSubscriptionCancelled: boolean | null - subscriptionProvider: $Enums.SubscriptionProvider | null -} - -export type UserMaxAggregateOutputType = { - id: string | null - createdAt: Date | null - email: string | null - emailVerified: Date | null - username: string | null - color: string | null - role: $Enums.UserRole | null - isProUntil: Date | null - isSubscriptionCancelled: boolean | null - subscriptionProvider: $Enums.SubscriptionProvider | null -} - -export type UserCountAggregateOutputType = { - id: number - createdAt: number - email: number - emailVerified: number - username: number - color: number - role: number - isProUntil: number - isSubscriptionCancelled: number - subscriptionProvider: number - settings: number - _all: number -} - - -export type UserMinAggregateInputType = { - id?: true - createdAt?: true - email?: true - emailVerified?: true - username?: true - color?: true - role?: true - isProUntil?: true - isSubscriptionCancelled?: true - subscriptionProvider?: true -} - -export type UserMaxAggregateInputType = { - id?: true - createdAt?: true - email?: true - emailVerified?: true - username?: true - color?: true - role?: true - isProUntil?: true - isSubscriptionCancelled?: true - subscriptionProvider?: true -} - -export type UserCountAggregateInputType = { - id?: true - createdAt?: true - email?: true - emailVerified?: true - username?: true - color?: true - role?: true - isProUntil?: true - isSubscriptionCancelled?: true - subscriptionProvider?: true - settings?: 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 - createdAt: Date - email: string - emailVerified: Date | null - username: string | null - color: string | null - role: $Enums.UserRole - isProUntil: Date | null - isSubscriptionCancelled: boolean - subscriptionProvider: $Enums.SubscriptionProvider | null - settings: runtime.JsonValue | null - _count: UserCountAggregateOutputType | null - _min: UserMinAggregateOutputType | null - _max: UserMaxAggregateOutputType | null -} - -export 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 - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - email?: Prisma.StringFilter<"User"> | string - emailVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null - username?: Prisma.StringNullableFilter<"User"> | string | null - color?: Prisma.StringNullableFilter<"User"> | string | null - role?: Prisma.EnumUserRoleFilter<"User"> | $Enums.UserRole - isProUntil?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFilter<"User"> | boolean - subscriptionProvider?: Prisma.EnumSubscriptionProviderNullableFilter<"User"> | $Enums.SubscriptionProvider | null - settings?: Prisma.JsonNullableFilter<"User"> - accounts?: Prisma.AccountListRelationFilter - sessions?: Prisma.SessionListRelationFilter - projects?: Prisma.ProjectMemberListRelationFilter - transactions?: Prisma.TransactionListRelationFilter -} - -export type UserOrderByWithRelationInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrderInput | Prisma.SortOrder - username?: Prisma.SortOrderInput | Prisma.SortOrder - color?: Prisma.SortOrderInput | Prisma.SortOrder - role?: Prisma.SortOrder - isProUntil?: Prisma.SortOrderInput | Prisma.SortOrder - isSubscriptionCancelled?: Prisma.SortOrder - subscriptionProvider?: Prisma.SortOrderInput | Prisma.SortOrder - settings?: Prisma.SortOrderInput | Prisma.SortOrder - accounts?: Prisma.AccountOrderByRelationAggregateInput - sessions?: Prisma.SessionOrderByRelationAggregateInput - projects?: Prisma.ProjectMemberOrderByRelationAggregateInput - transactions?: Prisma.TransactionOrderByRelationAggregateInput -} - -export type UserWhereUniqueInput = Prisma.AtLeast<{ - id?: string - email?: string - AND?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - OR?: Prisma.UserWhereInput[] - NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] - createdAt?: Prisma.DateTimeFilter<"User"> | Date | string - emailVerified?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null - username?: Prisma.StringNullableFilter<"User"> | string | null - color?: Prisma.StringNullableFilter<"User"> | string | null - role?: Prisma.EnumUserRoleFilter<"User"> | $Enums.UserRole - isProUntil?: Prisma.DateTimeNullableFilter<"User"> | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFilter<"User"> | boolean - subscriptionProvider?: Prisma.EnumSubscriptionProviderNullableFilter<"User"> | $Enums.SubscriptionProvider | null - settings?: Prisma.JsonNullableFilter<"User"> - accounts?: Prisma.AccountListRelationFilter - sessions?: Prisma.SessionListRelationFilter - projects?: Prisma.ProjectMemberListRelationFilter - transactions?: Prisma.TransactionListRelationFilter -}, "id" | "email"> - -export type UserOrderByWithAggregationInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrderInput | Prisma.SortOrder - username?: Prisma.SortOrderInput | Prisma.SortOrder - color?: Prisma.SortOrderInput | Prisma.SortOrder - role?: Prisma.SortOrder - isProUntil?: Prisma.SortOrderInput | Prisma.SortOrder - isSubscriptionCancelled?: Prisma.SortOrder - subscriptionProvider?: Prisma.SortOrderInput | Prisma.SortOrder - settings?: Prisma.SortOrderInput | 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 - createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string - email?: Prisma.StringWithAggregatesFilter<"User"> | string - emailVerified?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null - username?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - color?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null - role?: Prisma.EnumUserRoleWithAggregatesFilter<"User"> | $Enums.UserRole - isProUntil?: Prisma.DateTimeNullableWithAggregatesFilter<"User"> | Date | string | null - isSubscriptionCancelled?: Prisma.BoolWithAggregatesFilter<"User"> | boolean - subscriptionProvider?: Prisma.EnumSubscriptionProviderNullableWithAggregatesFilter<"User"> | $Enums.SubscriptionProvider | null - settings?: Prisma.JsonNullableWithAggregatesFilter<"User"> -} - -export type UserCreateInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionCreateNestedManyWithoutUserInput - projects?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput - transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput - projects?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput - transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput -} - -export type UserUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput - projects?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput - transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput - projects?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput - transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput -} - -export type UserCreateManyInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type UserUpdateManyMutationInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type UserUncheckedUpdateManyInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue -} - -export type UserCountOrderByAggregateInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - username?: Prisma.SortOrder - color?: Prisma.SortOrder - role?: Prisma.SortOrder - isProUntil?: Prisma.SortOrder - isSubscriptionCancelled?: Prisma.SortOrder - subscriptionProvider?: Prisma.SortOrder - settings?: Prisma.SortOrder -} - -export type UserMaxOrderByAggregateInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - username?: Prisma.SortOrder - color?: Prisma.SortOrder - role?: Prisma.SortOrder - isProUntil?: Prisma.SortOrder - isSubscriptionCancelled?: Prisma.SortOrder - subscriptionProvider?: Prisma.SortOrder -} - -export type UserMinOrderByAggregateInput = { - id?: Prisma.SortOrder - createdAt?: Prisma.SortOrder - email?: Prisma.SortOrder - emailVerified?: Prisma.SortOrder - username?: Prisma.SortOrder - color?: Prisma.SortOrder - role?: Prisma.SortOrder - isProUntil?: Prisma.SortOrder - isSubscriptionCancelled?: Prisma.SortOrder - subscriptionProvider?: Prisma.SortOrder -} - -export type UserScalarRelationFilter = { - is?: Prisma.UserWhereInput - isNot?: Prisma.UserWhereInput -} - -export type StringFieldUpdateOperationsInput = { - set?: string -} - -export type DateTimeFieldUpdateOperationsInput = { - set?: Date | string -} - -export type NullableDateTimeFieldUpdateOperationsInput = { - set?: Date | string | null -} - -export type NullableStringFieldUpdateOperationsInput = { - set?: string | null -} - -export type EnumUserRoleFieldUpdateOperationsInput = { - set?: $Enums.UserRole -} - -export type BoolFieldUpdateOperationsInput = { - set?: boolean -} - -export type NullableEnumSubscriptionProviderFieldUpdateOperationsInput = { - set?: $Enums.SubscriptionProvider | null -} - -export type UserCreateNestedOneWithoutAccountsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutAccountsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutAccountsInput - upsert?: Prisma.UserUpsertWithoutAccountsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutAccountsInput> -} - -export type UserCreateNestedOneWithoutSessionsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutSessionsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutSessionsInput - upsert?: Prisma.UserUpsertWithoutSessionsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutSessionsInput> -} - -export type UserCreateNestedOneWithoutTransactionsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutTransactionsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutTransactionsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutTransactionsInput - upsert?: Prisma.UserUpsertWithoutTransactionsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutTransactionsInput> -} - -export type UserCreateNestedOneWithoutProjectsInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutProjectsInput - connect?: Prisma.UserWhereUniqueInput -} - -export type UserUpdateOneRequiredWithoutProjectsNestedInput = { - create?: Prisma.XOR - connectOrCreate?: Prisma.UserCreateOrConnectWithoutProjectsInput - upsert?: Prisma.UserUpsertWithoutProjectsInput - connect?: Prisma.UserWhereUniqueInput - update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutProjectsInput> -} - -export type UserCreateWithoutAccountsInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sessions?: Prisma.SessionCreateNestedManyWithoutUserInput - projects?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput - transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateWithoutAccountsInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput - projects?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput - transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput -} - -export type UserCreateOrConnectWithoutAccountsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutAccountsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutAccountsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutAccountsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput - projects?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput - transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateWithoutAccountsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput - projects?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput - transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput -} - -export type UserCreateWithoutSessionsInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountCreateNestedManyWithoutUserInput - projects?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput - transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateWithoutSessionsInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput - projects?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput - transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput -} - -export type UserCreateOrConnectWithoutSessionsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutSessionsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutSessionsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutSessionsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput - projects?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput - transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateWithoutSessionsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput - projects?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput - transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput -} - -export type UserCreateWithoutTransactionsInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionCreateNestedManyWithoutUserInput - projects?: Prisma.ProjectMemberCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateWithoutTransactionsInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput - projects?: Prisma.ProjectMemberUncheckedCreateNestedManyWithoutUserInput -} - -export type UserCreateOrConnectWithoutTransactionsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutTransactionsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutTransactionsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutTransactionsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput - projects?: Prisma.ProjectMemberUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateWithoutTransactionsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput - projects?: Prisma.ProjectMemberUncheckedUpdateManyWithoutUserNestedInput -} - -export type UserCreateWithoutProjectsInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionCreateNestedManyWithoutUserInput - transactions?: Prisma.TransactionCreateNestedManyWithoutUserInput -} - -export type UserUncheckedCreateWithoutProjectsInput = { - id?: string - createdAt?: Date | string - email: string - emailVerified?: Date | string | null - username?: string | null - color?: string | null - role?: $Enums.UserRole - isProUntil?: Date | string | null - isSubscriptionCancelled?: boolean - subscriptionProvider?: $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUncheckedCreateNestedManyWithoutUserInput - sessions?: Prisma.SessionUncheckedCreateNestedManyWithoutUserInput - transactions?: Prisma.TransactionUncheckedCreateNestedManyWithoutUserInput -} - -export type UserCreateOrConnectWithoutProjectsInput = { - where: Prisma.UserWhereUniqueInput - create: Prisma.XOR -} - -export type UserUpsertWithoutProjectsInput = { - update: Prisma.XOR - create: Prisma.XOR - where?: Prisma.UserWhereInput -} - -export type UserUpdateToOneWithWhereWithoutProjectsInput = { - where?: Prisma.UserWhereInput - data: Prisma.XOR -} - -export type UserUpdateWithoutProjectsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUpdateManyWithoutUserNestedInput - transactions?: Prisma.TransactionUpdateManyWithoutUserNestedInput -} - -export type UserUncheckedUpdateWithoutProjectsInput = { - id?: Prisma.StringFieldUpdateOperationsInput | string - createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string - email?: Prisma.StringFieldUpdateOperationsInput | string - emailVerified?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - username?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - color?: Prisma.NullableStringFieldUpdateOperationsInput | string | null - role?: Prisma.EnumUserRoleFieldUpdateOperationsInput | $Enums.UserRole - isProUntil?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null - isSubscriptionCancelled?: Prisma.BoolFieldUpdateOperationsInput | boolean - subscriptionProvider?: Prisma.NullableEnumSubscriptionProviderFieldUpdateOperationsInput | $Enums.SubscriptionProvider | null - settings?: Prisma.NullableJsonNullValueInput | runtime.InputJsonValue - accounts?: Prisma.AccountUncheckedUpdateManyWithoutUserNestedInput - sessions?: Prisma.SessionUncheckedUpdateManyWithoutUserNestedInput - transactions?: Prisma.TransactionUncheckedUpdateManyWithoutUserNestedInput -} - - -/** - * Count Type UserCountOutputType - */ - -export type UserCountOutputType = { - accounts: number - sessions: number - projects: number - transactions: number -} - -export type UserCountOutputTypeSelect = { - accounts?: boolean | UserCountOutputTypeCountAccountsArgs - sessions?: boolean | UserCountOutputTypeCountSessionsArgs - projects?: boolean | UserCountOutputTypeCountProjectsArgs - transactions?: boolean | UserCountOutputTypeCountTransactionsArgs -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeDefaultArgs = { - /** - * Select specific fields to fetch from the UserCountOutputType - */ - select?: Prisma.UserCountOutputTypeSelect | null -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountAccountsArgs = { - where?: Prisma.AccountWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountSessionsArgs = { - where?: Prisma.SessionWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountProjectsArgs = { - where?: Prisma.ProjectMemberWhereInput -} - -/** - * UserCountOutputType without action - */ -export type UserCountOutputTypeCountTransactionsArgs = { - where?: Prisma.TransactionWhereInput -} - - -export type UserSelect = runtime.Types.Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - email?: boolean - emailVerified?: boolean - username?: boolean - color?: boolean - role?: boolean - isProUntil?: boolean - isSubscriptionCancelled?: boolean - subscriptionProvider?: boolean - settings?: boolean - accounts?: boolean | Prisma.User$accountsArgs - sessions?: boolean | Prisma.User$sessionsArgs - projects?: boolean | Prisma.User$projectsArgs - transactions?: boolean | Prisma.User$transactionsArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -}, ExtArgs["result"]["user"]> - -export type UserSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - email?: boolean - emailVerified?: boolean - username?: boolean - color?: boolean - role?: boolean - isProUntil?: boolean - isSubscriptionCancelled?: boolean - subscriptionProvider?: boolean - settings?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - id?: boolean - createdAt?: boolean - email?: boolean - emailVerified?: boolean - username?: boolean - color?: boolean - role?: boolean - isProUntil?: boolean - isSubscriptionCancelled?: boolean - subscriptionProvider?: boolean - settings?: boolean -}, ExtArgs["result"]["user"]> - -export type UserSelectScalar = { - id?: boolean - createdAt?: boolean - email?: boolean - emailVerified?: boolean - username?: boolean - color?: boolean - role?: boolean - isProUntil?: boolean - isSubscriptionCancelled?: boolean - subscriptionProvider?: boolean - settings?: boolean -} - -export type UserOmit = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "email" | "emailVerified" | "username" | "color" | "role" | "isProUntil" | "isSubscriptionCancelled" | "subscriptionProvider" | "settings", ExtArgs["result"]["user"]> -export type UserInclude = { - accounts?: boolean | Prisma.User$accountsArgs - sessions?: boolean | Prisma.User$sessionsArgs - projects?: boolean | Prisma.User$projectsArgs - transactions?: boolean | Prisma.User$transactionsArgs - _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs -} -export type UserIncludeCreateManyAndReturn = {} -export type UserIncludeUpdateManyAndReturn = {} - -export type $UserPayload = { - name: "User" - objects: { - accounts: Prisma.$AccountPayload[] - sessions: Prisma.$SessionPayload[] - projects: Prisma.$ProjectMemberPayload[] - transactions: Prisma.$TransactionPayload[] - } - scalars: runtime.Types.Extensions.GetPayloadResult<{ - id: string - createdAt: Date - email: string - emailVerified: Date | null - username: string | null - color: string | null - role: $Enums.UserRole - isProUntil: Date | null - isSubscriptionCancelled: boolean - subscriptionProvider: $Enums.SubscriptionProvider | null - settings: runtime.JsonValue | null - }, 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" - accounts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - sessions = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - projects = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> - transactions = {}>(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 createdAt: Prisma.FieldRef<"User", 'DateTime'> - readonly email: Prisma.FieldRef<"User", 'String'> - readonly emailVerified: Prisma.FieldRef<"User", 'DateTime'> - readonly username: Prisma.FieldRef<"User", 'String'> - readonly color: Prisma.FieldRef<"User", 'String'> - readonly role: Prisma.FieldRef<"User", 'UserRole'> - readonly isProUntil: Prisma.FieldRef<"User", 'DateTime'> - readonly isSubscriptionCancelled: Prisma.FieldRef<"User", 'Boolean'> - readonly subscriptionProvider: Prisma.FieldRef<"User", 'SubscriptionProvider'> - readonly settings: Prisma.FieldRef<"User", 'Json'> -} - - -// 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 - /** - * {@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 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.accounts - */ -export type User$accountsArgs = { - /** - * Select specific fields to fetch from the Account - */ - select?: Prisma.AccountSelect | null - /** - * Omit specific fields from the Account - */ - omit?: Prisma.AccountOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.AccountInclude | null - where?: Prisma.AccountWhereInput - orderBy?: Prisma.AccountOrderByWithRelationInput | Prisma.AccountOrderByWithRelationInput[] - cursor?: Prisma.AccountWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.AccountScalarFieldEnum | Prisma.AccountScalarFieldEnum[] -} - -/** - * User.sessions - */ -export type User$sessionsArgs = { - /** - * Select specific fields to fetch from the Session - */ - select?: Prisma.SessionSelect | null - /** - * Omit specific fields from the Session - */ - omit?: Prisma.SessionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.SessionInclude | null - where?: Prisma.SessionWhereInput - orderBy?: Prisma.SessionOrderByWithRelationInput | Prisma.SessionOrderByWithRelationInput[] - cursor?: Prisma.SessionWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.SessionScalarFieldEnum | Prisma.SessionScalarFieldEnum[] -} - -/** - * User.projects - */ -export type User$projectsArgs = { - /** - * Select specific fields to fetch from the ProjectMember - */ - select?: Prisma.ProjectMemberSelect | null - /** - * Omit specific fields from the ProjectMember - */ - omit?: Prisma.ProjectMemberOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.ProjectMemberInclude | null - where?: Prisma.ProjectMemberWhereInput - orderBy?: Prisma.ProjectMemberOrderByWithRelationInput | Prisma.ProjectMemberOrderByWithRelationInput[] - cursor?: Prisma.ProjectMemberWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.ProjectMemberScalarFieldEnum | Prisma.ProjectMemberScalarFieldEnum[] -} - -/** - * User.transactions - */ -export type User$transactionsArgs = { - /** - * Select specific fields to fetch from the Transaction - */ - select?: Prisma.TransactionSelect | null - /** - * Omit specific fields from the Transaction - */ - omit?: Prisma.TransactionOmit | null - /** - * Choose, which related nodes to fetch as well - */ - include?: Prisma.TransactionInclude | null - where?: Prisma.TransactionWhereInput - orderBy?: Prisma.TransactionOrderByWithRelationInput | Prisma.TransactionOrderByWithRelationInput[] - cursor?: Prisma.TransactionWhereUniqueInput - take?: number - skip?: number - distinct?: Prisma.TransactionScalarFieldEnum | Prisma.TransactionScalarFieldEnum[] -} - -/** - * 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/src/generated/client/models/VerificationToken.ts b/src/generated/client/models/VerificationToken.ts deleted file mode 100644 index 9b850854..00000000 --- a/src/generated/client/models/VerificationToken.ts +++ /dev/null @@ -1,1099 +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 `VerificationToken` model and its related types. - * - * 🟢 You can import this file directly. - */ -import type * as runtime from "@prisma/client/runtime/client" -import type * as $Enums from "../enums" -import type * as Prisma from "../internal/prismaNamespace" - -/** - * Model VerificationToken - * - */ -export type VerificationTokenModel = runtime.Types.Result.DefaultSelection - -export type AggregateVerificationToken = { - _count: VerificationTokenCountAggregateOutputType | null - _min: VerificationTokenMinAggregateOutputType | null - _max: VerificationTokenMaxAggregateOutputType | null -} - -export type VerificationTokenMinAggregateOutputType = { - identifier: string | null - token: string | null - expires: Date | null -} - -export type VerificationTokenMaxAggregateOutputType = { - identifier: string | null - token: string | null - expires: Date | null -} - -export type VerificationTokenCountAggregateOutputType = { - identifier: number - token: number - expires: number - _all: number -} - - -export type VerificationTokenMinAggregateInputType = { - identifier?: true - token?: true - expires?: true -} - -export type VerificationTokenMaxAggregateInputType = { - identifier?: true - token?: true - expires?: true -} - -export type VerificationTokenCountAggregateInputType = { - identifier?: true - token?: true - expires?: true - _all?: true -} - -export type VerificationTokenAggregateArgs = { - /** - * Filter which VerificationToken to aggregate. - */ - where?: Prisma.VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the start position - */ - cursor?: Prisma.VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens 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` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Count returned VerificationTokens - **/ - _count?: true | VerificationTokenCountAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the minimum value - **/ - _min?: VerificationTokenMinAggregateInputType - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} - * - * Select which fields to find the maximum value - **/ - _max?: VerificationTokenMaxAggregateInputType -} - -export type GetVerificationTokenAggregateType = { - [P in keyof T & keyof AggregateVerificationToken]: P extends '_count' | 'count' - ? T[P] extends true - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType -} - - - - -export type VerificationTokenGroupByArgs = { - where?: Prisma.VerificationTokenWhereInput - orderBy?: Prisma.VerificationTokenOrderByWithAggregationInput | Prisma.VerificationTokenOrderByWithAggregationInput[] - by: Prisma.VerificationTokenScalarFieldEnum[] | Prisma.VerificationTokenScalarFieldEnum - having?: Prisma.VerificationTokenScalarWhereWithAggregatesInput - take?: number - skip?: number - _count?: VerificationTokenCountAggregateInputType | true - _min?: VerificationTokenMinAggregateInputType - _max?: VerificationTokenMaxAggregateInputType -} - -export type VerificationTokenGroupByOutputType = { - identifier: string - token: string - expires: Date - _count: VerificationTokenCountAggregateOutputType | null - _min: VerificationTokenMinAggregateOutputType | null - _max: VerificationTokenMaxAggregateOutputType | null -} - -export type GetVerificationTokenGroupByPayload = Prisma.PrismaPromise< - Array< - Prisma.PickEnumerable & - { - [P in ((keyof T) & (keyof VerificationTokenGroupByOutputType))]: P extends '_count' - ? T[P] extends boolean - ? number - : Prisma.GetScalarType - : Prisma.GetScalarType - } - > - > - - - -export type VerificationTokenWhereInput = { - AND?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[] - OR?: Prisma.VerificationTokenWhereInput[] - NOT?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[] - identifier?: Prisma.StringFilter<"VerificationToken"> | string - token?: Prisma.StringFilter<"VerificationToken"> | string - expires?: Prisma.DateTimeFilter<"VerificationToken"> | Date | string -} - -export type VerificationTokenOrderByWithRelationInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type VerificationTokenWhereUniqueInput = Prisma.AtLeast<{ - token?: string - identifier_token?: Prisma.VerificationTokenIdentifierTokenCompoundUniqueInput - AND?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[] - OR?: Prisma.VerificationTokenWhereInput[] - NOT?: Prisma.VerificationTokenWhereInput | Prisma.VerificationTokenWhereInput[] - identifier?: Prisma.StringFilter<"VerificationToken"> | string - expires?: Prisma.DateTimeFilter<"VerificationToken"> | Date | string -}, "token" | "identifier_token"> - -export type VerificationTokenOrderByWithAggregationInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder - _count?: Prisma.VerificationTokenCountOrderByAggregateInput - _max?: Prisma.VerificationTokenMaxOrderByAggregateInput - _min?: Prisma.VerificationTokenMinOrderByAggregateInput -} - -export type VerificationTokenScalarWhereWithAggregatesInput = { - AND?: Prisma.VerificationTokenScalarWhereWithAggregatesInput | Prisma.VerificationTokenScalarWhereWithAggregatesInput[] - OR?: Prisma.VerificationTokenScalarWhereWithAggregatesInput[] - NOT?: Prisma.VerificationTokenScalarWhereWithAggregatesInput | Prisma.VerificationTokenScalarWhereWithAggregatesInput[] - identifier?: Prisma.StringWithAggregatesFilter<"VerificationToken"> | string - token?: Prisma.StringWithAggregatesFilter<"VerificationToken"> | string - expires?: Prisma.DateTimeWithAggregatesFilter<"VerificationToken"> | Date | string -} - -export type VerificationTokenCreateInput = { - identifier: string - token: string - expires: Date | string -} - -export type VerificationTokenUncheckedCreateInput = { - identifier: string - token: string - expires: Date | string -} - -export type VerificationTokenUpdateInput = { - identifier?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type VerificationTokenUncheckedUpdateInput = { - identifier?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type VerificationTokenCreateManyInput = { - identifier: string - token: string - expires: Date | string -} - -export type VerificationTokenUpdateManyMutationInput = { - identifier?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type VerificationTokenUncheckedUpdateManyInput = { - identifier?: Prisma.StringFieldUpdateOperationsInput | string - token?: Prisma.StringFieldUpdateOperationsInput | string - expires?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string -} - -export type VerificationTokenIdentifierTokenCompoundUniqueInput = { - identifier: string - token: string -} - -export type VerificationTokenCountOrderByAggregateInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type VerificationTokenMaxOrderByAggregateInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - -export type VerificationTokenMinOrderByAggregateInput = { - identifier?: Prisma.SortOrder - token?: Prisma.SortOrder - expires?: Prisma.SortOrder -} - - - -export type VerificationTokenSelect = runtime.Types.Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean -}, ExtArgs["result"]["verificationToken"]> - -export type VerificationTokenSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean -}, ExtArgs["result"]["verificationToken"]> - -export type VerificationTokenSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ - identifier?: boolean - token?: boolean - expires?: boolean -}, ExtArgs["result"]["verificationToken"]> - -export type VerificationTokenSelectScalar = { - identifier?: boolean - token?: boolean - expires?: boolean -} - -export type VerificationTokenOmit = runtime.Types.Extensions.GetOmit<"identifier" | "token" | "expires", ExtArgs["result"]["verificationToken"]> - -export type $VerificationTokenPayload = { - name: "VerificationToken" - objects: {} - scalars: runtime.Types.Extensions.GetPayloadResult<{ - identifier: string - token: string - expires: Date - }, ExtArgs["result"]["verificationToken"]> - composites: {} -} - -export type VerificationTokenGetPayload = runtime.Types.Result.GetResult - -export type VerificationTokenCountArgs = - Omit & { - select?: VerificationTokenCountAggregateInputType | true - } - -export interface VerificationTokenDelegate { - [K: symbol]: { types: Prisma.TypeMap['model']['VerificationToken'], meta: { name: 'VerificationToken' } } - /** - * Find zero or one VerificationToken that matches the filter. - * @param {VerificationTokenFindUniqueArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findUnique({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find one VerificationToken that matches the filter or throw an error with `error.code='P2025'` - * if no matches were found. - * @param {VerificationTokenFindUniqueOrThrowArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findUniqueOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find the first VerificationToken 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 {VerificationTokenFindFirstArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findFirst({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> - - /** - * Find the first VerificationToken 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 {VerificationTokenFindFirstOrThrowArgs} args - Arguments to find a VerificationToken - * @example - * // Get one VerificationToken - * const verificationToken = await prisma.verificationToken.findFirstOrThrow({ - * where: { - * // ... provide filter here - * } - * }) - */ - findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Find zero or more VerificationTokens 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 {VerificationTokenFindManyArgs} args - Arguments to filter and select certain fields only. - * @example - * // Get all VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany() - * - * // Get first 10 VerificationTokens - * const verificationTokens = await prisma.verificationToken.findMany({ take: 10 }) - * - * // Only select the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.findMany({ select: { identifier: true } }) - * - */ - findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> - - /** - * Create a VerificationToken. - * @param {VerificationTokenCreateArgs} args - Arguments to create a VerificationToken. - * @example - * // Create one VerificationToken - * const VerificationToken = await prisma.verificationToken.create({ - * data: { - * // ... data to create a VerificationToken - * } - * }) - * - */ - create(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Create many VerificationTokens. - * @param {VerificationTokenCreateManyArgs} args - Arguments to create many VerificationTokens. - * @example - * // Create many VerificationTokens - * const verificationToken = await prisma.verificationToken.createMany({ - * data: [ - * // ... provide data here - * ] - * }) - * - */ - createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Create many VerificationTokens and returns the data saved in the database. - * @param {VerificationTokenCreateManyAndReturnArgs} args - Arguments to create many VerificationTokens. - * @example - * // Create many VerificationTokens - * const verificationToken = await prisma.verificationToken.createManyAndReturn({ - * data: [ - * // ... provide data here - * ] - * }) - * - * // Create many VerificationTokens and only return the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.createManyAndReturn({ - * select: { identifier: 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 VerificationToken. - * @param {VerificationTokenDeleteArgs} args - Arguments to delete one VerificationToken. - * @example - * // Delete one VerificationToken - * const VerificationToken = await prisma.verificationToken.delete({ - * where: { - * // ... filter to delete one VerificationToken - * } - * }) - * - */ - delete(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Update one VerificationToken. - * @param {VerificationTokenUpdateArgs} args - Arguments to update one VerificationToken. - * @example - * // Update one VerificationToken - * const verificationToken = await prisma.verificationToken.update({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - update(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - /** - * Delete zero or more VerificationTokens. - * @param {VerificationTokenDeleteManyArgs} args - Arguments to filter VerificationTokens to delete. - * @example - * // Delete a few VerificationTokens - * const { count } = await prisma.verificationToken.deleteMany({ - * where: { - * // ... provide filter here - * } - * }) - * - */ - deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more VerificationTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenUpdateManyArgs} args - Arguments to update one or more rows. - * @example - * // Update many VerificationTokens - * const verificationToken = await prisma.verificationToken.updateMany({ - * where: { - * // ... provide filter here - * }, - * data: { - * // ... provide data here - * } - * }) - * - */ - updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise - - /** - * Update zero or more VerificationTokens and returns the data updated in the database. - * @param {VerificationTokenUpdateManyAndReturnArgs} args - Arguments to update many VerificationTokens. - * @example - * // Update many VerificationTokens - * const verificationToken = await prisma.verificationToken.updateManyAndReturn({ - * where: { - * // ... provide filter here - * }, - * data: [ - * // ... provide data here - * ] - * }) - * - * // Update zero or more VerificationTokens and only return the `identifier` - * const verificationTokenWithIdentifierOnly = await prisma.verificationToken.updateManyAndReturn({ - * select: { identifier: 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 VerificationToken. - * @param {VerificationTokenUpsertArgs} args - Arguments to update or create a VerificationToken. - * @example - * // Update or create a VerificationToken - * const verificationToken = await prisma.verificationToken.upsert({ - * create: { - * // ... data to create a VerificationToken - * }, - * update: { - * // ... in case it already exists, update - * }, - * where: { - * // ... the filter for the VerificationToken we want to update - * } - * }) - */ - upsert(args: Prisma.SelectSubset>): Prisma.Prisma__VerificationTokenClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> - - - /** - * Count the number of VerificationTokens. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenCountArgs} args - Arguments to filter VerificationTokens to count. - * @example - * // Count the number of VerificationTokens - * const count = await prisma.verificationToken.count({ - * where: { - * // ... the filter for the VerificationTokens 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 VerificationToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenAggregateArgs} 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 VerificationToken. - * Note, that providing `undefined` is treated as the value not being there. - * Read more here: https://pris.ly/d/null-undefined - * @param {VerificationTokenGroupByArgs} 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 VerificationTokenGroupByArgs, - HasSelectOrTake extends Prisma.Or< - Prisma.Extends<'skip', Prisma.Keys>, - Prisma.Extends<'take', Prisma.Keys> - >, - OrderByArg extends Prisma.True extends HasSelectOrTake - ? { orderBy: VerificationTokenGroupByArgs['orderBy'] } - : { orderBy?: VerificationTokenGroupByArgs['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 ? GetVerificationTokenGroupByPayload : Prisma.PrismaPromise -/** - * Fields of the VerificationToken model - */ -readonly fields: VerificationTokenFieldRefs; -} - -/** - * The delegate class that acts as a "Promise-like" for VerificationToken. - * 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__VerificationTokenClient extends Prisma.PrismaPromise { - readonly [Symbol.toStringTag]: "PrismaPromise" - /** - * Attaches callbacks for the resolution and/or rejection of the Promise. - * @param onfulfilled The callback to execute when the Promise is resolved. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of which ever callback is executed. - */ - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback for only the rejection of the Promise. - * @param onrejected The callback to execute when the Promise is rejected. - * @returns A Promise for the completion of the callback. - */ - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise - /** - * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The - * resolved value cannot be modified from the callback. - * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). - * @returns A Promise for the completion of the callback. - */ - finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise -} - - - - -/** - * Fields of the VerificationToken model - */ -export interface VerificationTokenFieldRefs { - readonly identifier: Prisma.FieldRef<"VerificationToken", 'String'> - readonly token: Prisma.FieldRef<"VerificationToken", 'String'> - readonly expires: Prisma.FieldRef<"VerificationToken", 'DateTime'> -} - - -// Custom InputTypes -/** - * VerificationToken findUnique - */ -export type VerificationTokenFindUniqueArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationToken to fetch. - */ - where: Prisma.VerificationTokenWhereUniqueInput -} - -/** - * VerificationToken findUniqueOrThrow - */ -export type VerificationTokenFindUniqueOrThrowArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationToken to fetch. - */ - where: Prisma.VerificationTokenWhereUniqueInput -} - -/** - * VerificationToken findFirst - */ -export type VerificationTokenFindFirstArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationToken to fetch. - */ - where?: Prisma.VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for VerificationTokens. - */ - cursor?: Prisma.VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens 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` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of VerificationTokens. - */ - distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[] -} - -/** - * VerificationToken findFirstOrThrow - */ -export type VerificationTokenFindFirstOrThrowArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationToken to fetch. - */ - where?: Prisma.VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for searching for VerificationTokens. - */ - cursor?: Prisma.VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens 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` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of VerificationTokens. - */ - distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[] -} - -/** - * VerificationToken findMany - */ -export type VerificationTokenFindManyArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter, which VerificationTokens to fetch. - */ - where?: Prisma.VerificationTokenWhereInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} - * - * Determine the order of VerificationTokens to fetch. - */ - orderBy?: Prisma.VerificationTokenOrderByWithRelationInput | Prisma.VerificationTokenOrderByWithRelationInput[] - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} - * - * Sets the position for listing VerificationTokens. - */ - cursor?: Prisma.VerificationTokenWhereUniqueInput - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} - * - * Take `±n` VerificationTokens 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` VerificationTokens. - */ - skip?: number - /** - * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} - * - * Filter by unique combinations of VerificationTokens. - */ - distinct?: Prisma.VerificationTokenScalarFieldEnum | Prisma.VerificationTokenScalarFieldEnum[] -} - -/** - * VerificationToken create - */ -export type VerificationTokenCreateArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The data needed to create a VerificationToken. - */ - data: Prisma.XOR -} - -/** - * VerificationToken createMany - */ -export type VerificationTokenCreateManyArgs = { - /** - * The data used to create many VerificationTokens. - */ - data: Prisma.VerificationTokenCreateManyInput | Prisma.VerificationTokenCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * VerificationToken createManyAndReturn - */ -export type VerificationTokenCreateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelectCreateManyAndReturn | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The data used to create many VerificationTokens. - */ - data: Prisma.VerificationTokenCreateManyInput | Prisma.VerificationTokenCreateManyInput[] - skipDuplicates?: boolean -} - -/** - * VerificationToken update - */ -export type VerificationTokenUpdateArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The data needed to update a VerificationToken. - */ - data: Prisma.XOR - /** - * Choose, which VerificationToken to update. - */ - where: Prisma.VerificationTokenWhereUniqueInput -} - -/** - * VerificationToken updateMany - */ -export type VerificationTokenUpdateManyArgs = { - /** - * The data used to update VerificationTokens. - */ - data: Prisma.XOR - /** - * Filter which VerificationTokens to update - */ - where?: Prisma.VerificationTokenWhereInput - /** - * Limit how many VerificationTokens to update. - */ - limit?: number -} - -/** - * VerificationToken updateManyAndReturn - */ -export type VerificationTokenUpdateManyAndReturnArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelectUpdateManyAndReturn | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The data used to update VerificationTokens. - */ - data: Prisma.XOR - /** - * Filter which VerificationTokens to update - */ - where?: Prisma.VerificationTokenWhereInput - /** - * Limit how many VerificationTokens to update. - */ - limit?: number -} - -/** - * VerificationToken upsert - */ -export type VerificationTokenUpsertArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * The filter to search for the VerificationToken to update in case it exists. - */ - where: Prisma.VerificationTokenWhereUniqueInput - /** - * In case the VerificationToken found by the `where` argument doesn't exist, create a new VerificationToken with this data. - */ - create: Prisma.XOR - /** - * In case the VerificationToken was found with the provided `where` argument, update it with this data. - */ - update: Prisma.XOR -} - -/** - * VerificationToken delete - */ -export type VerificationTokenDeleteArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null - /** - * Filter which VerificationToken to delete. - */ - where: Prisma.VerificationTokenWhereUniqueInput -} - -/** - * VerificationToken deleteMany - */ -export type VerificationTokenDeleteManyArgs = { - /** - * Filter which VerificationTokens to delete - */ - where?: Prisma.VerificationTokenWhereInput - /** - * Limit how many VerificationTokens to delete. - */ - limit?: number -} - -/** - * VerificationToken without action - */ -export type VerificationTokenDefaultArgs = { - /** - * Select specific fields to fetch from the VerificationToken - */ - select?: Prisma.VerificationTokenSelect | null - /** - * Omit specific fields from the VerificationToken - */ - omit?: Prisma.VerificationTokenOmit | null -} diff --git a/src/lib/api-client.ts b/src/lib/api-client.ts new file mode 100644 index 00000000..e9ab82d6 --- /dev/null +++ b/src/lib/api-client.ts @@ -0,0 +1,69 @@ +/** + * Shared HTTP client used by both the SWR fetcher (`fetcher.ts`) and the explicit + * request helpers (`utils/requests.ts`). + * + * Handles two environments: + * - Web: relative URLs hit Next.js routes; cookies do the auth. + * - Tauri desktop: rewrites relative URLs against `NEXT_PUBLIC_API_URL`, attaches + * the cached desktop JWE in `Authorization: Bearer …`, and tags the request + * with `x-client-type: desktop`. + */ + +import { isTauri } from "@tauri-apps/api/core"; + +const DEFAULT_DESKTOP_API_BASE = "http://localhost:3000"; + +function resolveUrl(input: RequestInfo): string { + const url = typeof input === "string" ? input : input.url; + if (!isTauri() || url.startsWith("http")) return url; + const base = process.env.NEXT_PUBLIC_API_URL || DEFAULT_DESKTOP_API_BASE; + return `${base}${url}`; +} + +async function buildHeaders(initHeaders?: HeadersInit): Promise> { + const headers: Record = { "Content-Type": "application/json" }; + if (initHeaders) Object.assign(headers, initHeaders as Record); + + if (isTauri()) { + headers["x-client-type"] = "desktop"; + const { getDesktopToken } = await import("./desktop-auth"); + const token = await getDesktopToken(); + if (token) headers["Authorization"] = `Bearer ${token}`; + } + return headers; +} + +/** + * Issue an authenticated API request and return the raw `Response`. + * Callers decide what to do with the body and status. + */ +export async function apiFetch(input: RequestInfo, init?: RequestInit): Promise { + const headers = await buildHeaders(init?.headers); + return fetch(resolveUrl(input), { ...init, headers }); +} + +/** + * Issue an authenticated API request, parse the JSON envelope, and return the + * `data` field. Throws a structured error on non-2xx responses so SWR can react. + * + * The desktop variant additionally short-circuits when no token is cached — the + * caller falls back to local storage rather than firing a doomed network request. + */ +export async function apiFetchJson(input: RequestInfo, init?: RequestInit): Promise { + if (isTauri()) { + const { getDesktopToken } = await import("./desktop-auth"); + const token = await getDesktopToken(); + if (!token) throw { message: "Not authenticated", status: 401 }; + } + + let response: Response; + try { + response = await apiFetch(input, init); + } catch { + throw { message: "Server unreachable", status: 0, isNetworkError: true }; + } + + const json = (await response.json()) as { data?: T; message?: string; status?: number }; + if (response.ok) return json.data as T; + throw { ...json, status: response.status }; +} diff --git a/src/lib/auth-cookies.ts b/src/lib/auth-cookies.ts deleted file mode 100644 index a3cfea9c..00000000 --- a/src/lib/auth-cookies.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * Centralized cookie + salt helpers for the auth surface. - * - * All sites that encode or decode NextAuth JWEs MUST import from here so the - * salts stay in lockstep across flows. - * - * Two salts are in play: - * - * - **Web cookie salt**: Auth.js uses the cookie *name* as the JWE salt by - * default. The name differs by environment ("__Secure-authjs.session-token" - * on HTTPS, "authjs.session-token" otherwise). Use `getWebSessionCookie()` - * and pass `name` as both the cookie name and the JWE salt — anything else - * and Auth.js's middleware (`getToken`) and `auth()` cannot decrypt the - * cookie we just set. - * - * - **Desktop bearer salt**: a single constant (`DESKTOP_BEARER_SALT`) shared - * by the encoder (api/desktop/token, api/auth/magic-link/verify) and the - * decoder (lib/session.ts). Changing it invalidates every Tauri-side bearer - * token in circulation, so any rotation needs a forced sign-out. - */ - -export const DESKTOP_BEARER_SALT = "authjs.session-token"; - -export function getWebSessionCookie(): { name: string; secure: boolean } { - const useSecure = - process.env.NEXTAUTH_URL?.startsWith("https://") === true || - process.env.AUTH_URL?.startsWith("https://") === true || - process.env.NODE_ENV === "production"; - return { - name: useSecure ? "__Secure-authjs.session-token" : "authjs.session-token", - secure: useSecure, - }; -} diff --git a/src/lib/auth-tokens.ts b/src/lib/auth-tokens.ts new file mode 100644 index 00000000..d1a67b8a --- /dev/null +++ b/src/lib/auth-tokens.ts @@ -0,0 +1,71 @@ +/** + * Centralized auth-token plumbing. + * + * Every site that mints or verifies an Auth.js JWE in this app routes through + * here so the salts, cookie names, and TTLs stay in lockstep across flows. + * + * Two token formats are in play: + * + * - **Web session cookie** — read by Auth.js's own `auth()`/`getToken()`. Auth.js + * uses the cookie *name* as the JWE salt by default, and the name varies by + * environment (`__Secure-authjs.session-token` on HTTPS, + * `authjs.session-token` otherwise). `encodeWebSessionCookie()` returns the + * JWE alongside the name/secure flag so callers can set the cookie. + * + * - **Desktop bearer** — sent by Tauri clients in `Authorization: Bearer `. + * Always salted with `DESKTOP_BEARER_SALT`. Rotating the salt invalidates + * every desktop token in circulation. + */ + +import { encode } from "next-auth/jwt"; + +export const DESKTOP_BEARER_SALT = "authjs.session-token"; + +// Mirrors auth.ts session.maxAge — keep in sync with the JWT session TTL there. +export const SESSION_TTL_SECONDS = 30 * 24 * 60 * 60; + +export type EncodedTokenPayload = { + id: string; + email: string; + role: string; + createdAt: string; +}; + +export function getWebSessionCookie(): { name: string; secure: boolean } { + const useSecure = + process.env.NEXTAUTH_URL?.startsWith("https://") === true || + process.env.AUTH_URL?.startsWith("https://") === true || + process.env.NODE_ENV === "production"; + return { + name: useSecure ? "__Secure-authjs.session-token" : "authjs.session-token", + secure: useSecure, + }; +} + +function getSecret(): string { + const secret = process.env.AUTH_SECRET; + if (!secret) throw new Error("Server is missing AUTH_SECRET"); + return secret; +} + +export async function encodeDesktopBearer(payload: EncodedTokenPayload): Promise { + return encode({ + token: payload, + secret: getSecret(), + salt: DESKTOP_BEARER_SALT, + maxAge: SESSION_TTL_SECONDS, + }); +} + +export async function encodeWebSessionCookie( + payload: EncodedTokenPayload, +): Promise<{ jwe: string; name: string; secure: boolean }> { + const { name, secure } = getWebSessionCookie(); + const jwe = await encode({ + token: payload, + secret: getSecret(), + salt: name, + maxAge: SESSION_TTL_SECONDS, + }); + return { jwe, name, secure }; +} diff --git a/src/lib/fetcher.ts b/src/lib/fetcher.ts index e186ae9f..a2efecd8 100644 --- a/src/lib/fetcher.ts +++ b/src/lib/fetcher.ts @@ -1,95 +1,13 @@ -import { isTauri } from "@tauri-apps/api/core"; -import { getDesktopToken } from "./desktop-auth"; +import { apiFetchJson } from "./api-client"; /** - * The base URL for the API when running in desktop mode. - * Set this environment variable to your hosted API server URL. + * Universal SWR fetcher. Returns the `data` field of the API envelope. + * On Tauri, throws `{ status: 401 }` if no desktop token is cached so SWR keys + * fall back to local SQLite storage instead of hitting an unauthenticated API. */ -const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || ""; - -/** - * Fetcher for desktop environment - calls remote API with JWT auth. - * Desktop app connects to your hosted API server with JWT in Authorization header. - * - * Note: Magic-link auth requests don't use this fetcher - they make direct fetch calls. - * This fetcher is used by SWR for authenticated data fetching. - */ -async function fetchFromDesktop( - input: RequestInfo, - init?: RequestInit, -): Promise { - const token = await getDesktopToken(); - - // No token = not logged in. Skip the remote request entirely. - // The app will fall back to local SQLite storage via useCachedProjects(). - if (!token) { - throw { message: "Not authenticated", status: 401 }; - } - - const url = typeof input === "string" ? input : input.url; - const fullUrl = url.startsWith("http") ? url : `${API_BASE_URL}${url}`; - - const headers: Record = { - "Content-Type": "application/json", - "x-client-type": "desktop", - Authorization: `Bearer ${token}`, - }; - - if (init?.headers) { - Object.assign(headers, init.headers as Record); - } - - let response: Response; - try { - response = await fetch(fullUrl, { - ...init, - headers, - }); - } catch { - // Network error (server unreachable) - throw structured error so SWR won't retry - throw { message: "Server unreachable", status: 0, isNetworkError: true }; - } - - const data = await response.json() as { data?: JSON; message?: string; status?: number }; - - if (response.ok) { - return data.data as JSON; - } - - const error = { ...data, status: response.status }; - throw error; -} - -/** - * Fetcher for web environment - calls Next.js API routes with cookies - */ -async function fetchFromBrowser( - input: RequestInfo, - init?: RequestInit, -): Promise { - const response = await fetch(input, init); - const data = await response.json() as { data?: JSON; message?: string; status?: number }; - - if (response.ok) { - return data.data as JSON; - } - - // Include status code in the error for SWR's shouldRetryOnError - const error = { ...data, status: response.status }; - throw error; -} - -/** - * Universal fetcher that routes based on environment: - * - Desktop (Tauri): Calls remote API with JWT in Authorization header - * - Web: Calls local Next.js API routes with cookies - */ -export default async function fetcher( +export default function fetcher( input: RequestInfo, init?: RequestInit, ): Promise { - if (isTauri()) { - return fetchFromDesktop(input, init); - } - return fetchFromBrowser(input, init); + return apiFetchJson(input, init); } diff --git a/src/lib/session.ts b/src/lib/session.ts index 80c2da5a..98bbe169 100644 --- a/src/lib/session.ts +++ b/src/lib/session.ts @@ -3,7 +3,7 @@ import { headers } from "next/headers"; import { decode } from "next-auth/jwt"; import { UserRole } from "../generated/client/client"; import { auth } from "@src/auth"; -import { DESKTOP_BEARER_SALT } from "@src/lib/auth-cookies"; +import { DESKTOP_BEARER_SALT } from "@src/lib/auth-tokens"; /** * Resolve the current user from either: diff --git a/src/lib/utils/requests.ts b/src/lib/utils/requests.ts index 48b1d9cd..4b709b3e 100644 --- a/src/lib/utils/requests.ts +++ b/src/lib/utils/requests.ts @@ -7,49 +7,17 @@ import { RequestMagicLinkBody, UpdateUserBody, } from "./api-bodies"; -import { isTauri } from "@tauri-apps/api/core"; +import { apiFetch } from "@src/lib/api-client"; type RESTMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; -const API_BASE_URL = process.env.NEXT_PUBLIC_API_URL || ""; - -const request = async (url: string, method: RESTMethod, body?: object) => { - const json = JSON.stringify(body); - const headers: Record = { "Content-Type": "application/json" }; - - // In desktop mode, add client type header and use full API URL - let fullUrl = url; - if (isTauri()) { - headers["x-client-type"] = "desktop"; - - const base = API_BASE_URL || "http://localhost:3000"; - fullUrl = url.startsWith("http") ? url : `${base}${url}`; - - // Add auth token if available (dynamic import to avoid SSR issues) - const { getDesktopToken } = await import("@src/lib/desktop-auth"); - const token = await getDesktopToken(); - if (token) { - headers["Authorization"] = `Bearer ${token}`; - } - } - - return fetch(fullUrl, { - headers, +const request = (url: string, method: RESTMethod, body?: object): Promise => { + return apiFetch(url, { method, - body: json, + body: body !== undefined ? JSON.stringify(body) : undefined, }); }; -/** - * Converts a WebSocket URL (ws:// or wss://) to an HTTP URL (http:// or https://). - * Useful for calling REST endpoints on the collaboration Worker. - */ -export function getCollabHttpUrl(path: string): string { - const baseUrl = process.env.NEXT_PUBLIC_COLLAB_WEBSOCKET_URL || ""; - const httpUrl = baseUrl.replace(/^ws/, "http"); - return `${httpUrl}${path}`; -} - /* Projects */ export const getCloudToken = async (projectId: string): Promise<{ token: string | null; status: number }> => { @@ -174,4 +142,3 @@ export const verifyApplePurchase = async (jwsTransaction: string): Promise` — desktop clients (Tauri). Encoded by + * /api/desktop/token and /api/auth/magic-link/verify with `DESKTOP_BEARER_SALT`. + * - The Auth.js session cookie — web clients. Cookie name and JWE salt vary by + * environment and are centralized in `getWebSessionCookie()`. + * + * Returns null when no valid credential is present so the caller can decide + * whether to 401 (API) or redirect (admin page). + */ +async function resolveCaller(request: NextRequest): Promise { + const secret = process.env.AUTH_SECRET; + if (!secret) return null; + + const authHeader = request.headers.get("authorization"); + if (authHeader?.startsWith("Bearer ")) { + try { + const decoded = await decode({ + token: authHeader.slice(7), + secret, + salt: DESKTOP_BEARER_SALT, + }); + return decoded?.id ? decoded : null; + } catch { + return null; + } + } + + const { name: cookieName } = getWebSessionCookie(); + return getToken({ req: request, secret, cookieName }); +} + export async function proxy(request: NextRequest) { const { pathname } = request.nextUrl; @@ -32,8 +65,7 @@ export async function proxy(request: NextRequest) { return NextResponse.next(); } - const { name: cookieName } = getWebSessionCookie(); - const token = await getToken({ req: request, secret: process.env.AUTH_SECRET, cookieName }); + const token = await resolveCaller(request); // Admin pages: proxy only checks authentication. // Role enforcement happens in src/app/admin/layout.tsx via auth(), which runs the @@ -61,7 +93,7 @@ export async function proxy(request: NextRequest) { const headers = new Headers(request.headers); headers.set("x-user-id", token.id as string); - headers.set("x-user-email", token.email as string); + headers.set("x-user-email", (token.email as string) ?? ""); headers.set("x-user-created-at", (token.createdAt as string) ?? "0"); headers.set("x-user-role", (token.role as string) ?? "USER"); return NextResponse.next({ request: { headers } });