From ed472e40eda4aed850a336f39766e4aaef5b7372 Mon Sep 17 00:00:00 2001 From: aronmal Date: Wed, 16 Aug 2023 05:26:52 +0200 Subject: [PATCH] Update Packages --- leaky-ships/package.json | 22 +- leaky-ships/pnpm-lock.yaml | 191 ++++---- leaky-ships/prisma/generated/zod/index.ts | 572 ++++++++++++++++------ 3 files changed, 537 insertions(+), 248 deletions(-) diff --git a/leaky-ships/package.json b/leaky-ships/package.json index 22e7247..33b1732 100644 --- a/leaky-ships/package.json +++ b/leaky-ships/package.json @@ -22,18 +22,18 @@ "@fortawesome/pro-thin-svg-icons": "^6.4.2", "@fortawesome/react-fontawesome": "^0.2.0", "@fortawesome/sharp-solid-svg-icons": "^6.4.2", - "@prisma/client": "^4.16.2", + "@prisma/client": "^5.1.1", "@solidjs/meta": "^0.28.6", "@solidjs/router": "^0.8.3", "classnames": "^2.3.2", "colors": "^1.4.0", "http-status": "^1.6.2", "nodemailer": "6.9.4", - "prisma": "^4.16.2", + "prisma": "^5.1.1", "socket.io": "^4.7.2", "socket.io-client": "^4.7.2", "solid-js": "^1.7.11", - "solid-start": "^0.3.2", + "solid-start": "^0.3.3", "solid-zustand": "^1.7.0", "unique-names-generator": "^4.7.1", "zod": "3.21.1", @@ -41,22 +41,22 @@ }, "devDependencies": { "@playwright/test": "^1.37.0", - "@total-typescript/ts-reset": "^0.3.7", - "@types/node": "^18.17.5", + "@total-typescript/ts-reset": "^0.4.2", + "@types/node": "^20.5.0", "@types/nodemailer": "^6.4.9", - "@types/web-bluetooth": "^0.0.16", + "@types/web-bluetooth": "^0.0.17", "@typescript-eslint/eslint-plugin": "^6.4.0", "autoprefixer": "^10.4.15", "dotenv": "^16.3.1", "eslint": "^8.47.0", - "eslint-config-prettier": "^8.10.0", + "eslint-config-prettier": "^9.0.0", "eslint-plugin-solid": "^0.12.1", - "postcss": "^8.4.27", - "prettier": "^3.0.1", + "postcss": "^8.4.28", + "prettier": "^3.0.2", "prettier-plugin-organize-imports": "^3.2.3", - "prettier-plugin-tailwindcss": "^0.4.1", + "prettier-plugin-tailwindcss": "^0.5.3", "sass": "^1.65.1", - "solid-start-node": "^0.3.2", + "solid-start-node": "^0.3.3", "tailwindcss": "^3.3.3", "typescript": "^5.1.6", "vite": "^4.4.9" diff --git a/leaky-ships/pnpm-lock.yaml b/leaky-ships/pnpm-lock.yaml index 433d30f..34b82b4 100644 --- a/leaky-ships/pnpm-lock.yaml +++ b/leaky-ships/pnpm-lock.yaml @@ -10,10 +10,10 @@ dependencies: version: 0.12.0(nodemailer@6.9.4) '@auth/prisma-adapter': specifier: ^1.0.1 - version: 1.0.1(@prisma/client@4.16.2)(nodemailer@6.9.4) + version: 1.0.1(@prisma/client@5.1.1)(nodemailer@6.9.4) '@auth/solid-start': specifier: ^0.1.1 - version: 0.1.1(@auth/core@0.12.0)(solid-js@1.7.11)(solid-start@0.3.2) + version: 0.1.1(@auth/core@0.12.0)(solid-js@1.7.11)(solid-start@0.3.3) '@fortawesome/fontawesome-svg-core': specifier: ^6.4.2 version: 6.4.2 @@ -39,8 +39,8 @@ dependencies: specifier: ^6.4.2 version: 6.4.2 '@prisma/client': - specifier: ^4.16.2 - version: 4.16.2(prisma@4.16.2) + specifier: ^5.1.1 + version: 5.1.1(prisma@5.1.1) '@solidjs/meta': specifier: ^0.28.6 version: 0.28.6(solid-js@1.7.11) @@ -60,8 +60,8 @@ dependencies: specifier: 6.9.4 version: 6.9.4 prisma: - specifier: ^4.16.2 - version: 4.16.2 + specifier: ^5.1.1 + version: 5.1.1 socket.io: specifier: ^4.7.2 version: 4.7.2 @@ -72,8 +72,8 @@ dependencies: specifier: ^1.7.11 version: 1.7.11 solid-start: - specifier: ^0.3.2 - version: 0.3.2(@solidjs/meta@0.28.6)(@solidjs/router@0.8.3)(solid-js@1.7.11)(solid-start-node@0.3.2)(vite@4.4.9) + specifier: ^0.3.3 + version: 0.3.3(@solidjs/meta@0.28.6)(@solidjs/router@0.8.3)(solid-js@1.7.11)(solid-start-node@0.3.3)(vite@4.4.9) solid-zustand: specifier: ^1.7.0 version: 1.7.0(solid-js@1.7.11)(zustand@4.4.1) @@ -92,23 +92,23 @@ devDependencies: specifier: ^1.37.0 version: 1.37.0 '@total-typescript/ts-reset': - specifier: ^0.3.7 - version: 0.3.7 + specifier: ^0.4.2 + version: 0.4.2 '@types/node': - specifier: ^18.17.5 - version: 18.17.5 + specifier: ^20.5.0 + version: 20.5.0 '@types/nodemailer': specifier: ^6.4.9 version: 6.4.9 '@types/web-bluetooth': - specifier: ^0.0.16 - version: 0.0.16 + specifier: ^0.0.17 + version: 0.0.17 '@typescript-eslint/eslint-plugin': specifier: ^6.4.0 version: 6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.47.0)(typescript@5.1.6) autoprefixer: specifier: ^10.4.15 - version: 10.4.15(postcss@8.4.27) + version: 10.4.15(postcss@8.4.28) dotenv: specifier: ^16.3.1 version: 16.3.1 @@ -116,29 +116,29 @@ devDependencies: specifier: ^8.47.0 version: 8.47.0 eslint-config-prettier: - specifier: ^8.10.0 - version: 8.10.0(eslint@8.47.0) + specifier: ^9.0.0 + version: 9.0.0(eslint@8.47.0) eslint-plugin-solid: specifier: ^0.12.1 version: 0.12.1(eslint@8.47.0)(typescript@5.1.6) postcss: - specifier: ^8.4.27 - version: 8.4.27 + specifier: ^8.4.28 + version: 8.4.28 prettier: - specifier: ^3.0.1 - version: 3.0.1 + specifier: ^3.0.2 + version: 3.0.2 prettier-plugin-organize-imports: specifier: ^3.2.3 - version: 3.2.3(prettier@3.0.1)(typescript@5.1.6) + version: 3.2.3(prettier@3.0.2)(typescript@5.1.6) prettier-plugin-tailwindcss: - specifier: ^0.4.1 - version: 0.4.1(prettier-plugin-organize-imports@3.2.3)(prettier@3.0.1) + specifier: ^0.5.3 + version: 0.5.3(prettier-plugin-organize-imports@3.2.3)(prettier@3.0.2) sass: specifier: ^1.65.1 version: 1.65.1 solid-start-node: - specifier: ^0.3.2 - version: 0.3.2(solid-start@0.3.2)(vite@4.4.9) + specifier: ^0.3.3 + version: 0.3.3(solid-start@0.3.3)(vite@4.4.9) tailwindcss: specifier: ^3.3.3 version: 3.3.3 @@ -147,7 +147,7 @@ devDependencies: version: 5.1.6 vite: specifier: ^4.4.9 - version: 4.4.9(@types/node@18.17.5)(sass@1.65.1) + version: 4.4.9(@types/node@20.5.0)(sass@1.65.1) packages: @@ -205,18 +205,18 @@ packages: preact-render-to-string: 5.2.3(preact@10.11.3) dev: false - /@auth/prisma-adapter@1.0.1(@prisma/client@4.16.2)(nodemailer@6.9.4): + /@auth/prisma-adapter@1.0.1(@prisma/client@5.1.1)(nodemailer@6.9.4): resolution: {integrity: sha512-sBp9l/jVr7l9y7rp2Pv6eoP7i8X2CgRNE3jDWJ0B/u+HnKRofXflD1cldPqRSAkJhqH3UxhVtMTEijT9FoofmQ==} peerDependencies: '@prisma/client': '>=2.26.0 || >=3 || >=4' dependencies: '@auth/core': 0.9.0(nodemailer@6.9.4) - '@prisma/client': 4.16.2(prisma@4.16.2) + '@prisma/client': 5.1.1(prisma@5.1.1) transitivePeerDependencies: - nodemailer dev: false - /@auth/solid-start@0.1.1(@auth/core@0.12.0)(solid-js@1.7.11)(solid-start@0.3.2): + /@auth/solid-start@0.1.1(@auth/core@0.12.0)(solid-js@1.7.11)(solid-start@0.3.3): resolution: {integrity: sha512-WMWBH/RbQTs5oFBoOjtJgKKZv3QlZQkyiAj1UnKWJ2+3UbuNQAhDBM4ppZD54CdbF/Wb1LVXjUNI6LBbopUK6g==} peerDependencies: '@auth/core': ~0.2.2 || ^0.2.2 @@ -225,7 +225,7 @@ packages: dependencies: '@auth/core': 0.12.0(nodemailer@6.9.4) solid-js: 1.7.11 - solid-start: 0.3.2(@solidjs/meta@0.28.6)(@solidjs/router@0.8.3)(solid-js@1.7.11)(solid-start-node@0.3.2)(vite@4.4.9) + solid-start: 0.3.3(@solidjs/meta@0.28.6)(@solidjs/router@0.8.3)(solid-js@1.7.11)(solid-start-node@0.3.3)(vite@4.4.9) dev: false /@babel/code-frame@7.22.10: @@ -1882,9 +1882,9 @@ packages: /@polka/url@1.0.0-next.21: resolution: {integrity: sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==} - /@prisma/client@4.16.2(prisma@4.16.2): - resolution: {integrity: sha512-qCoEyxv1ZrQ4bKy39GnylE8Zq31IRmm8bNhNbZx7bF2cU5aiCCnSa93J2imF88MBjn7J9eUQneNxUQVJdl/rPQ==} - engines: {node: '>=14.17'} + /@prisma/client@5.1.1(prisma@5.1.1): + resolution: {integrity: sha512-fxcCeK5pMQGcgCqCrWsi+I2rpIbk0rAhdrN+ke7f34tIrgPwA68ensrpin+9+fZvuV2OtzHmuipwduSY6HswdA==} + engines: {node: '>=16.13'} requiresBuild: true peerDependencies: prisma: '*' @@ -1892,8 +1892,8 @@ packages: prisma: optional: true dependencies: - '@prisma/engines-version': 4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81 - prisma: 4.16.2 + '@prisma/engines-version': 5.1.1-1.6a3747c37ff169c90047725a05a6ef02e32ac97e + prisma: 5.1.1 dev: false /@prisma/debug@5.1.1: @@ -1906,12 +1906,12 @@ packages: - supports-color dev: false - /@prisma/engines-version@4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81: - resolution: {integrity: sha512-q617EUWfRIDTriWADZ4YiWRZXCa/WuhNgLTVd+HqWLffjMSPzyM5uOWoauX91wvQClSKZU4pzI4JJLQ9Kl62Qg==} + /@prisma/engines-version@5.1.1-1.6a3747c37ff169c90047725a05a6ef02e32ac97e: + resolution: {integrity: sha512-owZqbY/wucbr65bXJ/ljrHPgQU5xXTSkmcE/JcbqE1kusuAXV/TLN3/exmz21SZ5rJ7WDkyk70J2G/n68iogbQ==} dev: false - /@prisma/engines@4.16.2: - resolution: {integrity: sha512-vx1nxVvN4QeT/cepQce68deh/Turxy5Mr+4L4zClFuK1GlxN3+ivxfuv+ej/gvidWn1cE1uAhW7ALLNlYbRUAw==} + /@prisma/engines@5.1.1: + resolution: {integrity: sha512-NV/4nVNWFZSJCCIA3HIFJbbDKO/NARc9ej0tX5S9k2EVbkrFJC4Xt9b0u4rNZWL4V+F5LAjvta8vzEUw0rw+HA==} requiresBuild: true dev: false @@ -2015,8 +2015,8 @@ packages: dependencies: solid-js: 1.7.11 - /@total-typescript/ts-reset@0.3.7: - resolution: {integrity: sha512-yXt2BRRVCJVvzWaxac5n0nCXzIrQEBE/MeYlNQ8/Iq7UeelNmm/AdnUAu18ilSS893mbEQ4u6whPt/HvOPc4rw==} + /@total-typescript/ts-reset@0.4.2: + resolution: {integrity: sha512-vqd7ZUDSrXFVT1n8b2kc3LnklncDQFPvR58yUS1kEP23/nHPAO9l1lMjUfnPrXYYk4Hj54rrLKMW5ipwk7k09A==} dev: true /@types/babel__core@7.20.1: @@ -2081,6 +2081,9 @@ packages: /@types/node@18.17.5: resolution: {integrity: sha512-xNbS75FxH6P4UXTPUJp/zNPq6/xsfdJKussCWNOnz4aULWIRwMgP1LgaB5RiBnMX1DPCYenuqGZfnIAx5mbFLA==} + /@types/node@20.5.0: + resolution: {integrity: sha512-Mgq7eCtoTjT89FqNoTzzXg2XvCi5VMhRV6+I2aYanc6kQCBImeNaAYRs/DyoVqk1YEUJK5gN9VO7HRIdz4Wo3Q==} + /@types/nodemailer@6.4.9: resolution: {integrity: sha512-XYG8Gv+sHjaOtUpiuytahMy2mM3rectgroNbs6R3djZEKmPNiIJwe9KqOJBGzKKnNZNKvnuvmugBgpq3w/S0ig==} dependencies: @@ -2094,8 +2097,8 @@ packages: resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==} dev: true - /@types/web-bluetooth@0.0.16: - resolution: {integrity: sha512-oh8q2Zc32S6gd/j50GowEjKLoOVOwHP/bWVjKJInBwQqdOYMdPrf1oVlelTlyfFK3CKxL1uahMDAr+vy8T7yMQ==} + /@types/web-bluetooth@0.0.17: + resolution: {integrity: sha512-4p9vcSmxAayx72yn70joFoL44c9MO/0+iVEBIQXe3v2h2SiAsEIo/G5v6ObFWvNKRFjbrVadNf9LqEEZeQPzdA==} dev: true /@typescript-eslint/eslint-plugin@6.4.0(@typescript-eslint/parser@6.4.0)(eslint@8.47.0)(typescript@5.1.6): @@ -2400,7 +2403,7 @@ packages: is-shared-array-buffer: 1.0.2 dev: true - /autoprefixer@10.4.15(postcss@8.4.27): + /autoprefixer@10.4.15(postcss@8.4.28): resolution: {integrity: sha512-KCuPB8ZCIqFdA4HwKXsvz7j6gvSDNhDP7WnUjBleRkKjPdvCmHFuQ77ocavI8FT6NdvlBnE2UFr2H4Mycn8Vew==} engines: {node: ^10 || ^12 || >=14} hasBin: true @@ -2412,7 +2415,7 @@ packages: fraction.js: 4.2.0 normalize-range: 0.1.2 picocolors: 1.0.0 - postcss: 8.4.27 + postcss: 8.4.28 postcss-value-parser: 4.2.0 dev: true @@ -2527,7 +2530,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001520 - electron-to-chromium: 1.4.490 + electron-to-chromium: 1.4.492 node-releases: 2.0.13 update-browserslist-db: 1.0.11(browserslist@4.21.10) @@ -2825,8 +2828,8 @@ packages: /ee-first@1.1.1: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} - /electron-to-chromium@1.4.490: - resolution: {integrity: sha512-6s7NVJz+sATdYnIwhdshx/N/9O6rvMxmhVoDSDFdj6iA45gHR8EQje70+RYsF4GeB+k0IeNSBnP7yG9ZXJFr7A==} + /electron-to-chromium@1.4.492: + resolution: {integrity: sha512-36K9b/6skMVwAIEsC7GiQ8I8N3soCALVSHqWHzNDtGemAcI9Xu8hP02cywWM0A794rTHm0b0zHPeLJHtgFVamQ==} /emoji-regex@8.0.0: resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} @@ -3037,8 +3040,8 @@ packages: engines: {node: '>=10'} dev: true - /eslint-config-prettier@8.10.0(eslint@8.47.0): - resolution: {integrity: sha512-SM8AMJdeQqRYT9O9zguiruQZaN7+z+E4eAP9oiLNGKMtomwaB1E9dcgUD6ZAn/eQAb52USbvezbiljfZUhbJcg==} + /eslint-config-prettier@9.0.0(eslint@8.47.0): + resolution: {integrity: sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==} hasBin: true peerDependencies: eslint: '>=7.0.0' @@ -4180,29 +4183,29 @@ packages: '@polka/url': 1.0.0-next.21 trouter: 3.2.1 - /postcss-import@15.1.0(postcss@8.4.27): + /postcss-import@15.1.0(postcss@8.4.28): resolution: {integrity: sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==} engines: {node: '>=14.0.0'} peerDependencies: postcss: ^8.0.0 dependencies: - postcss: 8.4.27 + postcss: 8.4.28 postcss-value-parser: 4.2.0 read-cache: 1.0.0 resolve: 1.22.4 dev: true - /postcss-js@4.0.1(postcss@8.4.27): + /postcss-js@4.0.1(postcss@8.4.28): resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==} engines: {node: ^12 || ^14 || >= 16} peerDependencies: postcss: ^8.4.21 dependencies: camelcase-css: 2.0.1 - postcss: 8.4.27 + postcss: 8.4.28 dev: true - /postcss-load-config@4.0.1(postcss@8.4.27): + /postcss-load-config@4.0.1(postcss@8.4.28): resolution: {integrity: sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==} engines: {node: '>= 14'} peerDependencies: @@ -4215,17 +4218,17 @@ packages: optional: true dependencies: lilconfig: 2.1.0 - postcss: 8.4.27 + postcss: 8.4.28 yaml: 2.3.1 dev: true - /postcss-nested@6.0.1(postcss@8.4.27): + /postcss-nested@6.0.1(postcss@8.4.28): resolution: {integrity: sha512-mEp4xPMi5bSWiMbsgoPfcP74lsWLHkQbZc3sY+jWYd65CUwXrUaTp0fmNpa01ZcETKlIgUdFN/MpS2xZtqL9dQ==} engines: {node: '>=12.0'} peerDependencies: postcss: ^8.2.14 dependencies: - postcss: 8.4.27 + postcss: 8.4.28 postcss-selector-parser: 6.0.13 dev: true @@ -4241,8 +4244,8 @@ packages: resolution: {integrity: sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==} dev: true - /postcss@8.4.27: - resolution: {integrity: sha512-gY/ACJtJPSmUFPDCHtX78+01fHa64FaU4zaaWfuh1MhGJISufJAH4cun6k/8fwsHYeK4UQmENQK+tRLCFJE8JQ==} + /postcss@8.4.28: + resolution: {integrity: sha512-Z7V5j0cq8oEKyejIKfpD8b4eBy9cwW2JWPk0+fB1HOAMsfHbnAXLLS+PfVWlzMSLQaWttKDt607I0XHmpE67Vw==} engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.6 @@ -4267,7 +4270,7 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /prettier-plugin-organize-imports@3.2.3(prettier@3.0.1)(typescript@5.1.6): + /prettier-plugin-organize-imports@3.2.3(prettier@3.0.2)(typescript@5.1.6): resolution: {integrity: sha512-KFvk8C/zGyvUaE3RvxN2MhCLwzV6OBbFSkwZ2OamCrs9ZY4i5L77jQ/w4UmUr+lqX8qbaqVq6bZZkApn+IgJSg==} peerDependencies: '@volar/vue-language-plugin-pug': ^1.0.4 @@ -4280,20 +4283,20 @@ packages: '@volar/vue-typescript': optional: true dependencies: - prettier: 3.0.1 + prettier: 3.0.2 typescript: 5.1.6 dev: true - /prettier-plugin-tailwindcss@0.4.1(prettier-plugin-organize-imports@3.2.3)(prettier@3.0.1): - resolution: {integrity: sha512-hwn2EiJmv8M+AW4YDkbjJ6HlZCTzLyz1QlySn9sMuKV/Px0fjwldlB7tol8GzdgqtkdPtzT3iJ4UzdnYXP25Ag==} - engines: {node: '>=12.17.0'} + /prettier-plugin-tailwindcss@0.5.3(prettier-plugin-organize-imports@3.2.3)(prettier@3.0.2): + resolution: {integrity: sha512-M5K80V21yM+CTm/FEFYRv9/9LyInYbCSXpIoPAKMm8zy89IOwdiA2e4JVbcO7tvRtAQWz32zdj7/WKcsmFyAVg==} + engines: {node: '>=14.21.3'} peerDependencies: '@ianvs/prettier-plugin-sort-imports': '*' '@prettier/plugin-pug': '*' '@shopify/prettier-plugin-liquid': '*' '@shufo/prettier-plugin-blade': '*' '@trivago/prettier-plugin-sort-imports': '*' - prettier: ^2.2 || ^3.0 + prettier: ^3.0 prettier-plugin-astro: '*' prettier-plugin-css-order: '*' prettier-plugin-import-sort: '*' @@ -4336,12 +4339,12 @@ packages: prettier-plugin-twig-melody: optional: true dependencies: - prettier: 3.0.1 - prettier-plugin-organize-imports: 3.2.3(prettier@3.0.1)(typescript@5.1.6) + prettier: 3.0.2 + prettier-plugin-organize-imports: 3.2.3(prettier@3.0.2)(typescript@5.1.6) dev: true - /prettier@3.0.1: - resolution: {integrity: sha512-fcOWSnnpCrovBsmFZIGIy9UqK2FaI7Hqax+DIO0A9UxeVoY4iweyaFjS5TavZN97Hfehph0nhsZnjlVKzEQSrQ==} + /prettier@3.0.2: + resolution: {integrity: sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==} engines: {node: '>=14'} hasBin: true dev: true @@ -4350,13 +4353,13 @@ packages: resolution: {integrity: sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew==} dev: false - /prisma@4.16.2: - resolution: {integrity: sha512-SYCsBvDf0/7XSJyf2cHTLjLeTLVXYfqp7pG5eEVafFLeT0u/hLFz/9W196nDRGUOo1JfPatAEb+uEnTQImQC1g==} - engines: {node: '>=14.17'} + /prisma@5.1.1: + resolution: {integrity: sha512-WJFG/U7sMmcc6TjJTTifTfpI6Wjoh55xl4AzopVwAdyK68L9/ogNo8QQ2cxuUjJf/Wa82z/uhyh3wMzvRIBphg==} + engines: {node: '>=16.13'} hasBin: true requiresBuild: true dependencies: - '@prisma/engines': 4.16.2 + '@prisma/engines': 5.1.1 dev: false /prop-types@15.8.1: @@ -4680,8 +4683,8 @@ packages: '@babel/types': 7.22.10 solid-js: 1.7.11 - /solid-start-node@0.3.2(solid-start@0.3.2)(vite@4.4.9): - resolution: {integrity: sha512-28oCCE6gppYlXRHT8Ll8JlOzOalCnAsO+vO8ScupQXkN2kKqN3cOFCmGu8J9pupKM5OseEM6kPojwCEFq68kEA==} + /solid-start-node@0.3.3(solid-start@0.3.3)(vite@4.4.9): + resolution: {integrity: sha512-fkJqST/8vnptB5Lx02kiHpaWBMEp/OmIU4Ht94Wa6d4VBUVwOOHtdLMYhml3k4Uw1mdVjoiZ+u9c4PWmeL4zvg==} peerDependencies: solid-start: '*' vite: '*' @@ -4693,14 +4696,14 @@ packages: polka: 1.0.0-next.22 rollup: 3.28.0 sirv: 2.0.3 - solid-start: 0.3.2(@solidjs/meta@0.28.6)(@solidjs/router@0.8.3)(solid-js@1.7.11)(solid-start-node@0.3.2)(vite@4.4.9) + solid-start: 0.3.3(@solidjs/meta@0.28.6)(@solidjs/router@0.8.3)(solid-js@1.7.11)(solid-start-node@0.3.3)(vite@4.4.9) terser: 5.19.2 - vite: 4.4.9(@types/node@18.17.5)(sass@1.65.1) + vite: 4.4.9(@types/node@20.5.0)(sass@1.65.1) transitivePeerDependencies: - supports-color - /solid-start@0.3.2(@solidjs/meta@0.28.6)(@solidjs/router@0.8.3)(solid-js@1.7.11)(solid-start-node@0.3.2)(vite@4.4.9): - resolution: {integrity: sha512-5sYkrnVbZLtFY/RlVWic0FNLlrdpSFfv5x3pz1kiBr2MoDcKLGiH5muydkkmCJwBa8I05mK/oDytoLZ/qIA36Q==} + /solid-start@0.3.3(@solidjs/meta@0.28.6)(@solidjs/router@0.8.3)(solid-js@1.7.11)(solid-start-node@0.3.3)(vite@4.4.9): + resolution: {integrity: sha512-Aek1Q9PxkJelP1ZJkVuwF57h3sqOBIyXIPcMKhrqbBc8N2whX3nCzq2GNYtxUxTvT1zr64mzeSW1fohqmEa+fg==} hasBin: true peerDependencies: '@solidjs/meta': ^0.28.0 @@ -4764,10 +4767,10 @@ packages: set-cookie-parser: 2.6.0 sirv: 2.0.3 solid-js: 1.7.11 - solid-start-node: 0.3.2(solid-start@0.3.2)(vite@4.4.9) + solid-start-node: 0.3.3(solid-start@0.3.3)(vite@4.4.9) terser: 5.19.2 undici: 5.23.0 - vite: 4.4.9(@types/node@18.17.5)(sass@1.65.1) + vite: 4.4.9(@types/node@20.5.0)(sass@1.65.1) vite-plugin-inspect: 0.7.38(rollup@3.28.0)(vite@4.4.9) vite-plugin-solid: 2.7.0(solid-js@1.7.11)(vite@4.4.9) wait-on: 6.0.1(debug@4.3.4) @@ -4919,11 +4922,11 @@ packages: normalize-path: 3.0.0 object-hash: 3.0.0 picocolors: 1.0.0 - postcss: 8.4.27 - postcss-import: 15.1.0(postcss@8.4.27) - postcss-js: 4.0.1(postcss@8.4.27) - postcss-load-config: 4.0.1(postcss@8.4.27) - postcss-nested: 6.0.1(postcss@8.4.27) + postcss: 8.4.28 + postcss-import: 15.1.0(postcss@8.4.28) + postcss-js: 4.0.1(postcss@8.4.28) + postcss-load-config: 4.0.1(postcss@8.4.28) + postcss-nested: 6.0.1(postcss@8.4.28) postcss-selector-parser: 6.0.13 resolve: 1.22.4 sucrase: 3.34.0 @@ -5176,7 +5179,7 @@ packages: open: 9.1.0 picocolors: 1.0.0 sirv: 2.0.3 - vite: 4.4.9(@types/node@18.17.5)(sass@1.65.1) + vite: 4.4.9(@types/node@20.5.0)(sass@1.65.1) transitivePeerDependencies: - rollup - supports-color @@ -5194,12 +5197,12 @@ packages: merge-anything: 5.1.7 solid-js: 1.7.11 solid-refresh: 0.5.3(solid-js@1.7.11) - vite: 4.4.9(@types/node@18.17.5)(sass@1.65.1) + vite: 4.4.9(@types/node@20.5.0)(sass@1.65.1) vitefu: 0.2.4(vite@4.4.9) transitivePeerDependencies: - supports-color - /vite@4.4.9(@types/node@18.17.5)(sass@1.65.1): + /vite@4.4.9(@types/node@20.5.0)(sass@1.65.1): resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true @@ -5227,9 +5230,9 @@ packages: terser: optional: true dependencies: - '@types/node': 18.17.5 + '@types/node': 20.5.0 esbuild: 0.18.20 - postcss: 8.4.27 + postcss: 8.4.28 rollup: 3.28.0 sass: 1.65.1 optionalDependencies: @@ -5243,7 +5246,7 @@ packages: vite: optional: true dependencies: - vite: 4.4.9(@types/node@18.17.5)(sass@1.65.1) + vite: 4.4.9(@types/node@20.5.0)(sass@1.65.1) /wait-on@6.0.1(debug@4.3.4): resolution: {integrity: sha512-zht+KASY3usTY5u2LgaNqn/Cd8MukxLGjdcZxT2ns5QzDmTFc4XoWBgC+C/na+sMRZTuVygQoMYwdcVjHnYIVw==} diff --git a/leaky-ships/prisma/generated/zod/index.ts b/leaky-ships/prisma/generated/zod/index.ts index 2a6d385..6a4e9d7 100644 --- a/leaky-ships/prisma/generated/zod/index.ts +++ b/leaky-ships/prisma/generated/zod/index.ts @@ -564,10 +564,40 @@ export const AccountOrderByWithRelationInputSchema: z.ZodType UserOrderByWithRelationInputSchema).optional() }).strict(); -export const AccountWhereUniqueInputSchema: z.ZodType = z.object({ +export const AccountWhereUniqueInputSchema: z.ZodType = z.union([ + z.object({ + id: z.string().cuid(), + provider_providerAccountId: z.lazy(() => AccountProviderProviderAccountIdCompoundUniqueInputSchema) + }), + z.object({ + id: z.string().cuid(), + }), + z.object({ + provider_providerAccountId: z.lazy(() => AccountProviderProviderAccountIdCompoundUniqueInputSchema), + }), +]) +.and(z.object({ id: z.string().cuid().optional(), - provider_providerAccountId: z.lazy(() => AccountProviderProviderAccountIdCompoundUniqueInputSchema).optional() -}).strict(); + provider_providerAccountId: z.lazy(() => AccountProviderProviderAccountIdCompoundUniqueInputSchema).optional(), + AND: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => AccountWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => AccountWhereInputSchema),z.lazy(() => AccountWhereInputSchema).array() ]).optional(), + userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + type: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + provider: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + providerAccountId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + refresh_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + access_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + expires_at: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), + ext_expires_in: z.union([ z.lazy(() => IntNullableFilterSchema),z.number().int() ]).optional().nullable(), + token_type: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + scope: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + id_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + session_state: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + oauth_token_secret: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + oauth_token: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), +}).strict()); export const AccountOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -632,10 +662,28 @@ export const SessionOrderByWithRelationInputSchema: z.ZodType UserOrderByWithRelationInputSchema).optional() }).strict(); -export const SessionWhereUniqueInputSchema: z.ZodType = z.object({ +export const SessionWhereUniqueInputSchema: z.ZodType = z.union([ + z.object({ + id: z.string().cuid(), + sessionToken: z.string() + }), + z.object({ + id: z.string().cuid(), + }), + z.object({ + sessionToken: z.string(), + }), +]) +.and(z.object({ id: z.string().cuid().optional(), - sessionToken: z.string().optional() -}).strict(); + sessionToken: z.string().optional(), + AND: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => SessionWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => SessionWhereInputSchema),z.lazy(() => SessionWhereInputSchema).array() ]).optional(), + userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + expires: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), + user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), +}).strict()); export const SessionOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -686,10 +734,33 @@ export const UserOrderByWithRelationInputSchema: z.ZodType SessionOrderByRelationAggregateInputSchema).optional() }).strict(); -export const UserWhereUniqueInputSchema: z.ZodType = z.object({ +export const UserWhereUniqueInputSchema: z.ZodType = z.union([ + z.object({ + id: z.string().cuid(), + email: z.string() + }), + z.object({ + id: z.string().cuid(), + }), + z.object({ + email: z.string(), + }), +]) +.and(z.object({ id: z.string().cuid().optional(), - email: z.string().optional() -}).strict(); + email: z.string().optional(), + AND: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => UserWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => UserWhereInputSchema),z.lazy(() => UserWhereInputSchema).array() ]).optional(), + name: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + emailVerified: z.union([ z.lazy(() => DateTimeNullableFilterSchema),z.coerce.date() ]).optional().nullable(), + image: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), + updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), + games: z.lazy(() => User_GameListRelationFilterSchema).optional(), + accounts: z.lazy(() => AccountListRelationFilterSchema).optional(), + sessions: z.lazy(() => SessionListRelationFilterSchema).optional() +}).strict()); export const UserOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -732,10 +803,27 @@ export const VerificationTokenOrderByWithRelationInputSchema: z.ZodType SortOrderSchema).optional() }).strict(); -export const VerificationTokenWhereUniqueInputSchema: z.ZodType = z.object({ +export const VerificationTokenWhereUniqueInputSchema: z.ZodType = z.union([ + z.object({ + token: z.string(), + identifier_token: z.lazy(() => VerificationTokenIdentifierTokenCompoundUniqueInputSchema) + }), + z.object({ + token: z.string(), + }), + z.object({ + identifier_token: z.lazy(() => VerificationTokenIdentifierTokenCompoundUniqueInputSchema), + }), +]) +.and(z.object({ token: z.string().optional(), - identifier_token: z.lazy(() => VerificationTokenIdentifierTokenCompoundUniqueInputSchema).optional() -}).strict(); + identifier_token: z.lazy(() => VerificationTokenIdentifierTokenCompoundUniqueInputSchema).optional(), + AND: z.union([ z.lazy(() => VerificationTokenWhereInputSchema),z.lazy(() => VerificationTokenWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => VerificationTokenWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => VerificationTokenWhereInputSchema),z.lazy(() => VerificationTokenWhereInputSchema).array() ]).optional(), + identifier: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + expires: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), +}).strict()); export const VerificationTokenOrderByWithAggregationInputSchema: z.ZodType = z.object({ identifier: z.lazy(() => SortOrderSchema).optional(), @@ -767,7 +855,7 @@ export const GameWhereInputSchema: z.ZodType = z.object({ allowSpecials: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), allowChat: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), allowMarkDraw: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), - gamePin: z.union([ z.lazy(() => GamepinRelationFilterSchema),z.lazy(() => GamepinWhereInputSchema) ]).optional().nullable(), + gamePin: z.union([ z.lazy(() => GamepinNullableRelationFilterSchema),z.lazy(() => GamepinWhereInputSchema) ]).optional().nullable(), users: z.lazy(() => User_GameListRelationFilterSchema).optional() }).strict(); @@ -785,8 +873,23 @@ export const GameOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional() -}).strict(); + id: z.string().cuid() +}) +.and(z.object({ + id: z.string().cuid().optional(), + AND: z.union([ z.lazy(() => GameWhereInputSchema),z.lazy(() => GameWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => GameWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => GameWhereInputSchema),z.lazy(() => GameWhereInputSchema).array() ]).optional(), + createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), + updatedAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), + state: z.union([ z.lazy(() => EnumGameStateFilterSchema),z.lazy(() => GameStateSchema) ]).optional(), + allowSpectators: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), + allowSpecials: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), + allowChat: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), + allowMarkDraw: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), + gamePin: z.union([ z.lazy(() => GamepinNullableRelationFilterSchema),z.lazy(() => GamepinWhereInputSchema) ]).optional().nullable(), + users: z.lazy(() => User_GameListRelationFilterSchema).optional() +}).strict()); export const GameOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -835,11 +938,44 @@ export const GamepinOrderByWithRelationInputSchema: z.ZodType GameOrderByWithRelationInputSchema).optional() }).strict(); -export const GamepinWhereUniqueInputSchema: z.ZodType = z.object({ +export const GamepinWhereUniqueInputSchema: z.ZodType = z.union([ + z.object({ + id: z.string().cuid(), + pin: z.string(), + gameId: z.string() + }), + z.object({ + id: z.string().cuid(), + pin: z.string(), + }), + z.object({ + id: z.string().cuid(), + gameId: z.string(), + }), + z.object({ + id: z.string().cuid(), + }), + z.object({ + pin: z.string(), + gameId: z.string(), + }), + z.object({ + pin: z.string(), + }), + z.object({ + gameId: z.string(), + }), +]) +.and(z.object({ id: z.string().cuid().optional(), pin: z.string().optional(), - gameId: z.string().optional() -}).strict(); + gameId: z.string().optional(), + AND: z.union([ z.lazy(() => GamepinWhereInputSchema),z.lazy(() => GamepinWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => GamepinWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => GamepinWhereInputSchema),z.lazy(() => GamepinWhereInputSchema).array() ]).optional(), + createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), + game: z.union([ z.lazy(() => GameRelationFilterSchema),z.lazy(() => GameWhereInputSchema) ]).optional(), +}).strict()); export const GamepinOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -887,8 +1023,21 @@ export const ShipOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional() -}).strict(); + id: z.string().cuid() +}) +.and(z.object({ + id: z.string().cuid().optional(), + AND: z.union([ z.lazy(() => ShipWhereInputSchema),z.lazy(() => ShipWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => ShipWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => ShipWhereInputSchema),z.lazy(() => ShipWhereInputSchema).array() ]).optional(), + size: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + variant: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + x: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + y: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), + user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + User_Game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), +}).strict()); export const ShipOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -940,8 +1089,19 @@ export const HitOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional() -}).strict(); + id: z.string().cuid() +}) +.and(z.object({ + id: z.string().cuid().optional(), + AND: z.union([ z.lazy(() => HitWhereInputSchema),z.lazy(() => HitWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => HitWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => HitWhereInputSchema),z.lazy(() => HitWhereInputSchema).array() ]).optional(), + x: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + y: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + hit: z.union([ z.lazy(() => BoolFilterSchema),z.boolean() ]).optional(), + user_GameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + User_Game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), +}).strict()); export const HitOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -998,11 +1158,52 @@ export const User_GameOrderByWithRelationInputSchema: z.ZodType UserOrderByWithRelationInputSchema).optional() }).strict(); -export const User_GameWhereUniqueInputSchema: z.ZodType = z.object({ +export const User_GameWhereUniqueInputSchema: z.ZodType = z.union([ + z.object({ + id: z.string().cuid(), + gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema), + gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema) + }), + z.object({ + id: z.string().cuid(), + gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema), + }), + z.object({ + id: z.string().cuid(), + gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema), + }), + z.object({ + id: z.string().cuid(), + }), + z.object({ + gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema), + gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema), + }), + z.object({ + gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema), + }), + z.object({ + gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema), + }), +]) +.and(z.object({ id: z.string().cuid().optional(), gameId_index: z.lazy(() => User_GameGameIdIndexCompoundUniqueInputSchema).optional(), - gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema).optional() -}).strict(); + gameId_userId: z.lazy(() => User_GameGameIdUserIdCompoundUniqueInputSchema).optional(), + AND: z.union([ z.lazy(() => User_GameWhereInputSchema),z.lazy(() => User_GameWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => User_GameWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => User_GameWhereInputSchema),z.lazy(() => User_GameWhereInputSchema).array() ]).optional(), + createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), + gameId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + userId: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + index: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + moves: z.lazy(() => MoveListRelationFilterSchema).optional(), + ships: z.lazy(() => ShipListRelationFilterSchema).optional(), + hits: z.lazy(() => HitListRelationFilterSchema).optional(), + chats: z.lazy(() => ChatListRelationFilterSchema).optional(), + game: z.union([ z.lazy(() => GameRelationFilterSchema),z.lazy(() => GameWhereInputSchema) ]).optional(), + user: z.union([ z.lazy(() => UserRelationFilterSchema),z.lazy(() => UserWhereInputSchema) ]).optional(), +}).strict()); export const User_GameOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -1056,8 +1257,22 @@ export const MoveOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional() -}).strict(); + id: z.string().cuid() +}) +.and(z.object({ + id: z.string().cuid().optional(), + AND: z.union([ z.lazy(() => MoveWhereInputSchema),z.lazy(() => MoveWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => MoveWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => MoveWhereInputSchema),z.lazy(() => MoveWhereInputSchema).array() ]).optional(), + createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), + index: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + type: z.union([ z.lazy(() => EnumMoveTypeFilterSchema),z.lazy(() => MoveTypeSchema) ]).optional(), + x: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + y: z.union([ z.lazy(() => IntFilterSchema),z.number().int() ]).optional(), + orientation: z.union([ z.lazy(() => EnumOrientationFilterSchema),z.lazy(() => OrientationSchema) ]).optional(), + user_game_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + user_game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), +}).strict()); export const MoveOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -1111,8 +1326,19 @@ export const ChatOrderByWithRelationInputSchema: z.ZodType = z.object({ - id: z.string().cuid().optional() -}).strict(); + id: z.string().cuid() +}) +.and(z.object({ + id: z.string().cuid().optional(), + AND: z.union([ z.lazy(() => ChatWhereInputSchema),z.lazy(() => ChatWhereInputSchema).array() ]).optional(), + OR: z.lazy(() => ChatWhereInputSchema).array().optional(), + NOT: z.union([ z.lazy(() => ChatWhereInputSchema),z.lazy(() => ChatWhereInputSchema).array() ]).optional(), + createdAt: z.union([ z.lazy(() => DateTimeFilterSchema),z.coerce.date() ]).optional(), + message: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + event: z.union([ z.lazy(() => StringNullableFilterSchema),z.string() ]).optional().nullable(), + user_game_id: z.union([ z.lazy(() => StringFilterSchema),z.string() ]).optional(), + user_game: z.union([ z.lazy(() => User_GameRelationFilterSchema),z.lazy(() => User_GameWhereInputSchema) ]).optional(), +}).strict()); export const ChatOrderByWithAggregationInputSchema: z.ZodType = z.object({ id: z.lazy(() => SortOrderSchema).optional(), @@ -1893,8 +2119,8 @@ export const ChatUncheckedUpdateManyInputSchema: z.ZodType = z.object({ equals: z.string().optional(), - in: z.union([ z.string().array(),z.string() ]).optional(), - notIn: z.union([ z.string().array(),z.string() ]).optional(), + in: z.string().array().optional(), + notIn: z.string().array().optional(), lt: z.string().optional(), lte: z.string().optional(), gt: z.string().optional(), @@ -1908,8 +2134,8 @@ export const StringFilterSchema: z.ZodType = z.object({ export const StringNullableFilterSchema: z.ZodType = z.object({ equals: z.string().optional().nullable(), - in: z.union([ z.string().array(),z.string() ]).optional().nullable(), - notIn: z.union([ z.string().array(),z.string() ]).optional().nullable(), + in: z.string().array().optional().nullable(), + notIn: z.string().array().optional().nullable(), lt: z.string().optional(), lte: z.string().optional(), gt: z.string().optional(), @@ -1923,8 +2149,8 @@ export const StringNullableFilterSchema: z.ZodType export const IntNullableFilterSchema: z.ZodType = z.object({ equals: z.number().optional().nullable(), - in: z.union([ z.number().array(),z.number() ]).optional().nullable(), - notIn: z.union([ z.number().array(),z.number() ]).optional().nullable(), + in: z.number().array().optional().nullable(), + notIn: z.number().array().optional().nullable(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -1933,8 +2159,8 @@ export const IntNullableFilterSchema: z.ZodType = z.ob }).strict(); export const UserRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => UserWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => UserWhereInputSchema).optional().nullable() + is: z.lazy(() => UserWhereInputSchema).optional(), + isNot: z.lazy(() => UserWhereInputSchema).optional() }).strict(); export const SortOrderInputSchema: z.ZodType = z.object({ @@ -2013,8 +2239,8 @@ export const AccountSumOrderByAggregateInputSchema: z.ZodType = z.object({ equals: z.string().optional(), - in: z.union([ z.string().array(),z.string() ]).optional(), - notIn: z.union([ z.string().array(),z.string() ]).optional(), + in: z.string().array().optional(), + notIn: z.string().array().optional(), lt: z.string().optional(), lte: z.string().optional(), gt: z.string().optional(), @@ -2031,8 +2257,8 @@ export const StringWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.string().optional().nullable(), - in: z.union([ z.string().array(),z.string() ]).optional().nullable(), - notIn: z.union([ z.string().array(),z.string() ]).optional().nullable(), + in: z.string().array().optional().nullable(), + notIn: z.string().array().optional().nullable(), lt: z.string().optional(), lte: z.string().optional(), gt: z.string().optional(), @@ -2049,8 +2275,8 @@ export const StringNullableWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.number().optional().nullable(), - in: z.union([ z.number().array(),z.number() ]).optional().nullable(), - notIn: z.union([ z.number().array(),z.number() ]).optional().nullable(), + in: z.number().array().optional().nullable(), + notIn: z.number().array().optional().nullable(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -2065,8 +2291,8 @@ export const IntNullableWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.coerce.date().optional(), - in: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional(), - notIn: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional(), + in: z.coerce.date().array().optional(), + notIn: z.coerce.date().array().optional(), lt: z.coerce.date().optional(), lte: z.coerce.date().optional(), gt: z.coerce.date().optional(), @@ -2097,8 +2323,8 @@ export const SessionMinOrderByAggregateInputSchema: z.ZodType = z.object({ equals: z.coerce.date().optional(), - in: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional(), - notIn: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional(), + in: z.coerce.date().array().optional(), + notIn: z.coerce.date().array().optional(), lt: z.coerce.date().optional(), lte: z.coerce.date().optional(), gt: z.coerce.date().optional(), @@ -2111,8 +2337,8 @@ export const DateTimeWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.coerce.date().optional().nullable(), - in: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional().nullable(), - notIn: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional().nullable(), + in: z.coerce.date().array().optional().nullable(), + notIn: z.coerce.date().array().optional().nullable(), lt: z.coerce.date().optional(), lte: z.coerce.date().optional(), gt: z.coerce.date().optional(), @@ -2182,8 +2408,8 @@ export const UserMinOrderByAggregateInputSchema: z.ZodType = z.object({ equals: z.coerce.date().optional().nullable(), - in: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional().nullable(), - notIn: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional().nullable(), + in: z.coerce.date().array().optional().nullable(), + notIn: z.coerce.date().array().optional().nullable(), lt: z.coerce.date().optional(), lte: z.coerce.date().optional(), gt: z.coerce.date().optional(), @@ -2219,8 +2445,8 @@ export const VerificationTokenMinOrderByAggregateInputSchema: z.ZodType = z.object({ equals: z.lazy(() => GameStateSchema).optional(), - in: z.union([ z.lazy(() => GameStateSchema).array(),z.lazy(() => GameStateSchema) ]).optional(), - notIn: z.union([ z.lazy(() => GameStateSchema).array(),z.lazy(() => GameStateSchema) ]).optional(), + in: z.lazy(() => GameStateSchema).array().optional(), + notIn: z.lazy(() => GameStateSchema).array().optional(), not: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => NestedEnumGameStateFilterSchema) ]).optional(), }).strict(); @@ -2229,7 +2455,7 @@ export const BoolFilterSchema: z.ZodType = z.object({ not: z.union([ z.boolean(),z.lazy(() => NestedBoolFilterSchema) ]).optional(), }).strict(); -export const GamepinRelationFilterSchema: z.ZodType = z.object({ +export const GamepinNullableRelationFilterSchema: z.ZodType = z.object({ is: z.lazy(() => GamepinWhereInputSchema).optional().nullable(), isNot: z.lazy(() => GamepinWhereInputSchema).optional().nullable() }).strict(); @@ -2269,8 +2495,8 @@ export const GameMinOrderByAggregateInputSchema: z.ZodType = z.object({ equals: z.lazy(() => GameStateSchema).optional(), - in: z.union([ z.lazy(() => GameStateSchema).array(),z.lazy(() => GameStateSchema) ]).optional(), - notIn: z.union([ z.lazy(() => GameStateSchema).array(),z.lazy(() => GameStateSchema) ]).optional(), + in: z.lazy(() => GameStateSchema).array().optional(), + notIn: z.lazy(() => GameStateSchema).array().optional(), not: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => NestedEnumGameStateWithAggregatesFilterSchema) ]).optional(), _count: z.lazy(() => NestedIntFilterSchema).optional(), _min: z.lazy(() => NestedEnumGameStateFilterSchema).optional(), @@ -2286,8 +2512,8 @@ export const BoolWithAggregatesFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => GameWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => GameWhereInputSchema).optional().nullable() + is: z.lazy(() => GameWhereInputSchema).optional(), + isNot: z.lazy(() => GameWhereInputSchema).optional() }).strict(); export const GamepinCountOrderByAggregateInputSchema: z.ZodType = z.object({ @@ -2313,8 +2539,8 @@ export const GamepinMinOrderByAggregateInputSchema: z.ZodType = z.object({ equals: z.number().optional(), - in: z.union([ z.number().array(),z.number() ]).optional(), - notIn: z.union([ z.number().array(),z.number() ]).optional(), + in: z.number().array().optional(), + notIn: z.number().array().optional(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -2324,14 +2550,14 @@ export const IntFilterSchema: z.ZodType = z.object({ export const EnumOrientationFilterSchema: z.ZodType = z.object({ equals: z.lazy(() => OrientationSchema).optional(), - in: z.union([ z.lazy(() => OrientationSchema).array(),z.lazy(() => OrientationSchema) ]).optional(), - notIn: z.union([ z.lazy(() => OrientationSchema).array(),z.lazy(() => OrientationSchema) ]).optional(), + in: z.lazy(() => OrientationSchema).array().optional(), + notIn: z.lazy(() => OrientationSchema).array().optional(), not: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => NestedEnumOrientationFilterSchema) ]).optional(), }).strict(); export const User_GameRelationFilterSchema: z.ZodType = z.object({ - is: z.lazy(() => User_GameWhereInputSchema).optional().nullable(), - isNot: z.lazy(() => User_GameWhereInputSchema).optional().nullable() + is: z.lazy(() => User_GameWhereInputSchema).optional(), + isNot: z.lazy(() => User_GameWhereInputSchema).optional() }).strict(); export const ShipCountOrderByAggregateInputSchema: z.ZodType = z.object({ @@ -2380,8 +2606,8 @@ export const ShipSumOrderByAggregateInputSchema: z.ZodType = z.object({ equals: z.number().optional(), - in: z.union([ z.number().array(),z.number() ]).optional(), - notIn: z.union([ z.number().array(),z.number() ]).optional(), + in: z.number().array().optional(), + notIn: z.number().array().optional(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -2396,8 +2622,8 @@ export const IntWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.lazy(() => OrientationSchema).optional(), - in: z.union([ z.lazy(() => OrientationSchema).array(),z.lazy(() => OrientationSchema) ]).optional(), - notIn: z.union([ z.lazy(() => OrientationSchema).array(),z.lazy(() => OrientationSchema) ]).optional(), + in: z.lazy(() => OrientationSchema).array().optional(), + notIn: z.lazy(() => OrientationSchema).array().optional(), not: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => NestedEnumOrientationWithAggregatesFilterSchema) ]).optional(), _count: z.lazy(() => NestedIntFilterSchema).optional(), _min: z.lazy(() => NestedEnumOrientationFilterSchema).optional(), @@ -2522,8 +2748,8 @@ export const User_GameSumOrderByAggregateInputSchema: z.ZodType = z.object({ equals: z.lazy(() => MoveTypeSchema).optional(), - in: z.union([ z.lazy(() => MoveTypeSchema).array(),z.lazy(() => MoveTypeSchema) ]).optional(), - notIn: z.union([ z.lazy(() => MoveTypeSchema).array(),z.lazy(() => MoveTypeSchema) ]).optional(), + in: z.lazy(() => MoveTypeSchema).array().optional(), + notIn: z.lazy(() => MoveTypeSchema).array().optional(), not: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => NestedEnumMoveTypeFilterSchema) ]).optional(), }).strict(); @@ -2574,8 +2800,8 @@ export const MoveSumOrderByAggregateInputSchema: z.ZodType = z.object({ equals: z.lazy(() => MoveTypeSchema).optional(), - in: z.union([ z.lazy(() => MoveTypeSchema).array(),z.lazy(() => MoveTypeSchema) ]).optional(), - notIn: z.union([ z.lazy(() => MoveTypeSchema).array(),z.lazy(() => MoveTypeSchema) ]).optional(), + in: z.lazy(() => MoveTypeSchema).array().optional(), + notIn: z.lazy(() => MoveTypeSchema).array().optional(), not: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => NestedEnumMoveTypeWithAggregatesFilterSchema) ]).optional(), _count: z.lazy(() => NestedIntFilterSchema).optional(), _min: z.lazy(() => NestedEnumMoveTypeFilterSchema).optional(), @@ -2633,7 +2859,7 @@ export const UserUpdateOneRequiredWithoutAccountsNestedInputSchema: z.ZodType UserCreateOrConnectWithoutAccountsInputSchema).optional(), upsert: z.lazy(() => UserUpsertWithoutAccountsInputSchema).optional(), connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]).optional(), + update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutAccountsInputSchema),z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]).optional(), }).strict(); export const UserCreateNestedOneWithoutSessionsInputSchema: z.ZodType = z.object({ @@ -2651,7 +2877,7 @@ export const UserUpdateOneRequiredWithoutSessionsNestedInputSchema: z.ZodType UserCreateOrConnectWithoutSessionsInputSchema).optional(), upsert: z.lazy(() => UserUpsertWithoutSessionsInputSchema).optional(), connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]).optional(), + update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutSessionsInputSchema),z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]).optional(), }).strict(); export const User_GameCreateNestedManyWithoutUserInputSchema: z.ZodType = z.object({ @@ -2822,10 +3048,10 @@ export const GamepinUpdateOneWithoutGameNestedInputSchema: z.ZodType GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]).optional(), connectOrCreate: z.lazy(() => GamepinCreateOrConnectWithoutGameInputSchema).optional(), upsert: z.lazy(() => GamepinUpsertWithoutGameInputSchema).optional(), - disconnect: z.boolean().optional(), - delete: z.boolean().optional(), + disconnect: z.union([ z.boolean(),z.lazy(() => GamepinWhereInputSchema) ]).optional(), + delete: z.union([ z.boolean(),z.lazy(() => GamepinWhereInputSchema) ]).optional(), connect: z.lazy(() => GamepinWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]).optional(), + update: z.union([ z.lazy(() => GamepinUpdateToOneWithWhereWithoutGameInputSchema),z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]).optional(), }).strict(); export const User_GameUpdateManyWithoutGameNestedInputSchema: z.ZodType = z.object({ @@ -2846,10 +3072,10 @@ export const GamepinUncheckedUpdateOneWithoutGameNestedInputSchema: z.ZodType GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]).optional(), connectOrCreate: z.lazy(() => GamepinCreateOrConnectWithoutGameInputSchema).optional(), upsert: z.lazy(() => GamepinUpsertWithoutGameInputSchema).optional(), - disconnect: z.boolean().optional(), - delete: z.boolean().optional(), + disconnect: z.union([ z.boolean(),z.lazy(() => GamepinWhereInputSchema) ]).optional(), + delete: z.union([ z.boolean(),z.lazy(() => GamepinWhereInputSchema) ]).optional(), connect: z.lazy(() => GamepinWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]).optional(), + update: z.union([ z.lazy(() => GamepinUpdateToOneWithWhereWithoutGameInputSchema),z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]).optional(), }).strict(); export const User_GameUncheckedUpdateManyWithoutGameNestedInputSchema: z.ZodType = z.object({ @@ -2877,7 +3103,7 @@ export const GameUpdateOneRequiredWithoutGamePinNestedInputSchema: z.ZodType GameCreateOrConnectWithoutGamePinInputSchema).optional(), upsert: z.lazy(() => GameUpsertWithoutGamePinInputSchema).optional(), connect: z.lazy(() => GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => GameUpdateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedUpdateWithoutGamePinInputSchema) ]).optional(), + update: z.union([ z.lazy(() => GameUpdateToOneWithWhereWithoutGamePinInputSchema),z.lazy(() => GameUpdateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedUpdateWithoutGamePinInputSchema) ]).optional(), }).strict(); export const User_GameCreateNestedOneWithoutShipsInputSchema: z.ZodType = z.object({ @@ -2903,7 +3129,7 @@ export const User_GameUpdateOneRequiredWithoutShipsNestedInputSchema: z.ZodType< connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutShipsInputSchema).optional(), upsert: z.lazy(() => User_GameUpsertWithoutShipsInputSchema).optional(), connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => User_GameUpdateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutShipsInputSchema) ]).optional(), + update: z.union([ z.lazy(() => User_GameUpdateToOneWithWhereWithoutShipsInputSchema),z.lazy(() => User_GameUpdateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutShipsInputSchema) ]).optional(), }).strict(); export const User_GameCreateNestedOneWithoutHitsInputSchema: z.ZodType = z.object({ @@ -2917,7 +3143,7 @@ export const User_GameUpdateOneRequiredWithoutHitsNestedInputSchema: z.ZodType

User_GameCreateOrConnectWithoutHitsInputSchema).optional(), upsert: z.lazy(() => User_GameUpsertWithoutHitsInputSchema).optional(), connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => User_GameUpdateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutHitsInputSchema) ]).optional(), + update: z.union([ z.lazy(() => User_GameUpdateToOneWithWhereWithoutHitsInputSchema),z.lazy(() => User_GameUpdateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutHitsInputSchema) ]).optional(), }).strict(); export const MoveCreateNestedManyWithoutUser_gameInputSchema: z.ZodType = z.object({ @@ -3049,7 +3275,7 @@ export const GameUpdateOneRequiredWithoutUsersNestedInputSchema: z.ZodType GameCreateOrConnectWithoutUsersInputSchema).optional(), upsert: z.lazy(() => GameUpsertWithoutUsersInputSchema).optional(), connect: z.lazy(() => GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => GameUpdateWithoutUsersInputSchema),z.lazy(() => GameUncheckedUpdateWithoutUsersInputSchema) ]).optional(), + update: z.union([ z.lazy(() => GameUpdateToOneWithWhereWithoutUsersInputSchema),z.lazy(() => GameUpdateWithoutUsersInputSchema),z.lazy(() => GameUncheckedUpdateWithoutUsersInputSchema) ]).optional(), }).strict(); export const UserUpdateOneRequiredWithoutGamesNestedInputSchema: z.ZodType = z.object({ @@ -3057,7 +3283,7 @@ export const UserUpdateOneRequiredWithoutGamesNestedInputSchema: z.ZodType UserCreateOrConnectWithoutGamesInputSchema).optional(), upsert: z.lazy(() => UserUpsertWithoutGamesInputSchema).optional(), connect: z.lazy(() => UserWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => UserUpdateWithoutGamesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutGamesInputSchema) ]).optional(), + update: z.union([ z.lazy(() => UserUpdateToOneWithWhereWithoutGamesInputSchema),z.lazy(() => UserUpdateWithoutGamesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutGamesInputSchema) ]).optional(), }).strict(); export const MoveUncheckedUpdateManyWithoutUser_gameNestedInputSchema: z.ZodType = z.object({ @@ -3131,7 +3357,7 @@ export const User_GameUpdateOneRequiredWithoutMovesNestedInputSchema: z.ZodType< connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutMovesInputSchema).optional(), upsert: z.lazy(() => User_GameUpsertWithoutMovesInputSchema).optional(), connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => User_GameUpdateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutMovesInputSchema) ]).optional(), + update: z.union([ z.lazy(() => User_GameUpdateToOneWithWhereWithoutMovesInputSchema),z.lazy(() => User_GameUpdateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutMovesInputSchema) ]).optional(), }).strict(); export const User_GameCreateNestedOneWithoutChatsInputSchema: z.ZodType = z.object({ @@ -3145,13 +3371,13 @@ export const User_GameUpdateOneRequiredWithoutChatsNestedInputSchema: z.ZodType< connectOrCreate: z.lazy(() => User_GameCreateOrConnectWithoutChatsInputSchema).optional(), upsert: z.lazy(() => User_GameUpsertWithoutChatsInputSchema).optional(), connect: z.lazy(() => User_GameWhereUniqueInputSchema).optional(), - update: z.union([ z.lazy(() => User_GameUpdateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutChatsInputSchema) ]).optional(), + update: z.union([ z.lazy(() => User_GameUpdateToOneWithWhereWithoutChatsInputSchema),z.lazy(() => User_GameUpdateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutChatsInputSchema) ]).optional(), }).strict(); export const NestedStringFilterSchema: z.ZodType = z.object({ equals: z.string().optional(), - in: z.union([ z.string().array(),z.string() ]).optional(), - notIn: z.union([ z.string().array(),z.string() ]).optional(), + in: z.string().array().optional(), + notIn: z.string().array().optional(), lt: z.string().optional(), lte: z.string().optional(), gt: z.string().optional(), @@ -3164,8 +3390,8 @@ export const NestedStringFilterSchema: z.ZodType = z. export const NestedStringNullableFilterSchema: z.ZodType = z.object({ equals: z.string().optional().nullable(), - in: z.union([ z.string().array(),z.string() ]).optional().nullable(), - notIn: z.union([ z.string().array(),z.string() ]).optional().nullable(), + in: z.string().array().optional().nullable(), + notIn: z.string().array().optional().nullable(), lt: z.string().optional(), lte: z.string().optional(), gt: z.string().optional(), @@ -3178,8 +3404,8 @@ export const NestedStringNullableFilterSchema: z.ZodType = z.object({ equals: z.number().optional().nullable(), - in: z.union([ z.number().array(),z.number() ]).optional().nullable(), - notIn: z.union([ z.number().array(),z.number() ]).optional().nullable(), + in: z.number().array().optional().nullable(), + notIn: z.number().array().optional().nullable(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -3189,8 +3415,8 @@ export const NestedIntNullableFilterSchema: z.ZodType = z.object({ equals: z.string().optional(), - in: z.union([ z.string().array(),z.string() ]).optional(), - notIn: z.union([ z.string().array(),z.string() ]).optional(), + in: z.string().array().optional(), + notIn: z.string().array().optional(), lt: z.string().optional(), lte: z.string().optional(), gt: z.string().optional(), @@ -3206,8 +3432,8 @@ export const NestedStringWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.number().optional(), - in: z.union([ z.number().array(),z.number() ]).optional(), - notIn: z.union([ z.number().array(),z.number() ]).optional(), + in: z.number().array().optional(), + notIn: z.number().array().optional(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -3217,8 +3443,8 @@ export const NestedIntFilterSchema: z.ZodType = z.object export const NestedStringNullableWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.string().optional().nullable(), - in: z.union([ z.string().array(),z.string() ]).optional().nullable(), - notIn: z.union([ z.string().array(),z.string() ]).optional().nullable(), + in: z.string().array().optional().nullable(), + notIn: z.string().array().optional().nullable(), lt: z.string().optional(), lte: z.string().optional(), gt: z.string().optional(), @@ -3234,8 +3460,8 @@ export const NestedStringNullableWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.number().optional().nullable(), - in: z.union([ z.number().array(),z.number() ]).optional().nullable(), - notIn: z.union([ z.number().array(),z.number() ]).optional().nullable(), + in: z.number().array().optional().nullable(), + notIn: z.number().array().optional().nullable(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -3250,8 +3476,8 @@ export const NestedIntNullableWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.number().optional().nullable(), - in: z.union([ z.number().array(),z.number() ]).optional().nullable(), - notIn: z.union([ z.number().array(),z.number() ]).optional().nullable(), + in: z.number().array().optional().nullable(), + notIn: z.number().array().optional().nullable(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -3261,8 +3487,8 @@ export const NestedFloatNullableFilterSchema: z.ZodType = z.object({ equals: z.coerce.date().optional(), - in: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional(), - notIn: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional(), + in: z.coerce.date().array().optional(), + notIn: z.coerce.date().array().optional(), lt: z.coerce.date().optional(), lte: z.coerce.date().optional(), gt: z.coerce.date().optional(), @@ -3272,8 +3498,8 @@ export const NestedDateTimeFilterSchema: z.ZodType export const NestedDateTimeWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.coerce.date().optional(), - in: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional(), - notIn: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional(), + in: z.coerce.date().array().optional(), + notIn: z.coerce.date().array().optional(), lt: z.coerce.date().optional(), lte: z.coerce.date().optional(), gt: z.coerce.date().optional(), @@ -3286,8 +3512,8 @@ export const NestedDateTimeWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.coerce.date().optional().nullable(), - in: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional().nullable(), - notIn: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional().nullable(), + in: z.coerce.date().array().optional().nullable(), + notIn: z.coerce.date().array().optional().nullable(), lt: z.coerce.date().optional(), lte: z.coerce.date().optional(), gt: z.coerce.date().optional(), @@ -3297,8 +3523,8 @@ export const NestedDateTimeNullableFilterSchema: z.ZodType = z.object({ equals: z.coerce.date().optional().nullable(), - in: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional().nullable(), - notIn: z.union([ z.coerce.date().array(),z.coerce.date() ]).optional().nullable(), + in: z.coerce.date().array().optional().nullable(), + notIn: z.coerce.date().array().optional().nullable(), lt: z.coerce.date().optional(), lte: z.coerce.date().optional(), gt: z.coerce.date().optional(), @@ -3311,8 +3537,8 @@ export const NestedDateTimeNullableWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.lazy(() => GameStateSchema).optional(), - in: z.union([ z.lazy(() => GameStateSchema).array(),z.lazy(() => GameStateSchema) ]).optional(), - notIn: z.union([ z.lazy(() => GameStateSchema).array(),z.lazy(() => GameStateSchema) ]).optional(), + in: z.lazy(() => GameStateSchema).array().optional(), + notIn: z.lazy(() => GameStateSchema).array().optional(), not: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => NestedEnumGameStateFilterSchema) ]).optional(), }).strict(); @@ -3323,8 +3549,8 @@ export const NestedBoolFilterSchema: z.ZodType = z.obje export const NestedEnumGameStateWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.lazy(() => GameStateSchema).optional(), - in: z.union([ z.lazy(() => GameStateSchema).array(),z.lazy(() => GameStateSchema) ]).optional(), - notIn: z.union([ z.lazy(() => GameStateSchema).array(),z.lazy(() => GameStateSchema) ]).optional(), + in: z.lazy(() => GameStateSchema).array().optional(), + notIn: z.lazy(() => GameStateSchema).array().optional(), not: z.union([ z.lazy(() => GameStateSchema),z.lazy(() => NestedEnumGameStateWithAggregatesFilterSchema) ]).optional(), _count: z.lazy(() => NestedIntFilterSchema).optional(), _min: z.lazy(() => NestedEnumGameStateFilterSchema).optional(), @@ -3341,15 +3567,15 @@ export const NestedBoolWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.lazy(() => OrientationSchema).optional(), - in: z.union([ z.lazy(() => OrientationSchema).array(),z.lazy(() => OrientationSchema) ]).optional(), - notIn: z.union([ z.lazy(() => OrientationSchema).array(),z.lazy(() => OrientationSchema) ]).optional(), + in: z.lazy(() => OrientationSchema).array().optional(), + notIn: z.lazy(() => OrientationSchema).array().optional(), not: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => NestedEnumOrientationFilterSchema) ]).optional(), }).strict(); export const NestedIntWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.number().optional(), - in: z.union([ z.number().array(),z.number() ]).optional(), - notIn: z.union([ z.number().array(),z.number() ]).optional(), + in: z.number().array().optional(), + notIn: z.number().array().optional(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -3364,8 +3590,8 @@ export const NestedIntWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.number().optional(), - in: z.union([ z.number().array(),z.number() ]).optional(), - notIn: z.union([ z.number().array(),z.number() ]).optional(), + in: z.number().array().optional(), + notIn: z.number().array().optional(), lt: z.number().optional(), lte: z.number().optional(), gt: z.number().optional(), @@ -3375,8 +3601,8 @@ export const NestedFloatFilterSchema: z.ZodType = z.ob export const NestedEnumOrientationWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.lazy(() => OrientationSchema).optional(), - in: z.union([ z.lazy(() => OrientationSchema).array(),z.lazy(() => OrientationSchema) ]).optional(), - notIn: z.union([ z.lazy(() => OrientationSchema).array(),z.lazy(() => OrientationSchema) ]).optional(), + in: z.lazy(() => OrientationSchema).array().optional(), + notIn: z.lazy(() => OrientationSchema).array().optional(), not: z.union([ z.lazy(() => OrientationSchema),z.lazy(() => NestedEnumOrientationWithAggregatesFilterSchema) ]).optional(), _count: z.lazy(() => NestedIntFilterSchema).optional(), _min: z.lazy(() => NestedEnumOrientationFilterSchema).optional(), @@ -3385,15 +3611,15 @@ export const NestedEnumOrientationWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.lazy(() => MoveTypeSchema).optional(), - in: z.union([ z.lazy(() => MoveTypeSchema).array(),z.lazy(() => MoveTypeSchema) ]).optional(), - notIn: z.union([ z.lazy(() => MoveTypeSchema).array(),z.lazy(() => MoveTypeSchema) ]).optional(), + in: z.lazy(() => MoveTypeSchema).array().optional(), + notIn: z.lazy(() => MoveTypeSchema).array().optional(), not: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => NestedEnumMoveTypeFilterSchema) ]).optional(), }).strict(); export const NestedEnumMoveTypeWithAggregatesFilterSchema: z.ZodType = z.object({ equals: z.lazy(() => MoveTypeSchema).optional(), - in: z.union([ z.lazy(() => MoveTypeSchema).array(),z.lazy(() => MoveTypeSchema) ]).optional(), - notIn: z.union([ z.lazy(() => MoveTypeSchema).array(),z.lazy(() => MoveTypeSchema) ]).optional(), + in: z.lazy(() => MoveTypeSchema).array().optional(), + notIn: z.lazy(() => MoveTypeSchema).array().optional(), not: z.union([ z.lazy(() => MoveTypeSchema),z.lazy(() => NestedEnumMoveTypeWithAggregatesFilterSchema) ]).optional(), _count: z.lazy(() => NestedIntFilterSchema).optional(), _min: z.lazy(() => NestedEnumMoveTypeFilterSchema).optional(), @@ -3432,6 +3658,12 @@ export const UserCreateOrConnectWithoutAccountsInputSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]), create: z.union([ z.lazy(() => UserCreateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedCreateWithoutAccountsInputSchema) ]), + where: z.lazy(() => UserWhereInputSchema).optional() +}).strict(); + +export const UserUpdateToOneWithWhereWithoutAccountsInputSchema: z.ZodType = z.object({ + where: z.lazy(() => UserWhereInputSchema).optional(), + data: z.union([ z.lazy(() => UserUpdateWithoutAccountsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutAccountsInputSchema) ]), }).strict(); export const UserUpdateWithoutAccountsInputSchema: z.ZodType = z.object({ @@ -3490,6 +3722,12 @@ export const UserCreateOrConnectWithoutSessionsInputSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]), create: z.union([ z.lazy(() => UserCreateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedCreateWithoutSessionsInputSchema) ]), + where: z.lazy(() => UserWhereInputSchema).optional() +}).strict(); + +export const UserUpdateToOneWithWhereWithoutSessionsInputSchema: z.ZodType = z.object({ + where: z.lazy(() => UserWhereInputSchema).optional(), + data: z.union([ z.lazy(() => UserUpdateWithoutSessionsInputSchema),z.lazy(() => UserUncheckedUpdateWithoutSessionsInputSchema) ]), }).strict(); export const UserUpdateWithoutSessionsInputSchema: z.ZodType = z.object({ @@ -3627,7 +3865,7 @@ export const User_GameUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ where: z.lazy(() => User_GameScalarWhereInputSchema), - data: z.union([ z.lazy(() => User_GameUpdateManyMutationInputSchema),z.lazy(() => User_GameUncheckedUpdateManyWithoutGamesInputSchema) ]), + data: z.union([ z.lazy(() => User_GameUpdateManyMutationInputSchema),z.lazy(() => User_GameUncheckedUpdateManyWithoutUserInputSchema) ]), }).strict(); export const User_GameScalarWhereInputSchema: z.ZodType = z.object({ @@ -3654,7 +3892,7 @@ export const AccountUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ where: z.lazy(() => AccountScalarWhereInputSchema), - data: z.union([ z.lazy(() => AccountUpdateManyMutationInputSchema),z.lazy(() => AccountUncheckedUpdateManyWithoutAccountsInputSchema) ]), + data: z.union([ z.lazy(() => AccountUpdateManyMutationInputSchema),z.lazy(() => AccountUncheckedUpdateManyWithoutUserInputSchema) ]), }).strict(); export const AccountScalarWhereInputSchema: z.ZodType = z.object({ @@ -3691,7 +3929,7 @@ export const SessionUpdateWithWhereUniqueWithoutUserInputSchema: z.ZodType = z.object({ where: z.lazy(() => SessionScalarWhereInputSchema), - data: z.union([ z.lazy(() => SessionUpdateManyMutationInputSchema),z.lazy(() => SessionUncheckedUpdateManyWithoutSessionsInputSchema) ]), + data: z.union([ z.lazy(() => SessionUpdateManyMutationInputSchema),z.lazy(() => SessionUncheckedUpdateManyWithoutUserInputSchema) ]), }).strict(); export const SessionScalarWhereInputSchema: z.ZodType = z.object({ @@ -3756,6 +3994,12 @@ export const User_GameCreateManyGameInputEnvelopeSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]), create: z.union([ z.lazy(() => GamepinCreateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedCreateWithoutGameInputSchema) ]), + where: z.lazy(() => GamepinWhereInputSchema).optional() +}).strict(); + +export const GamepinUpdateToOneWithWhereWithoutGameInputSchema: z.ZodType = z.object({ + where: z.lazy(() => GamepinWhereInputSchema).optional(), + data: z.union([ z.lazy(() => GamepinUpdateWithoutGameInputSchema),z.lazy(() => GamepinUncheckedUpdateWithoutGameInputSchema) ]), }).strict(); export const GamepinUpdateWithoutGameInputSchema: z.ZodType = z.object({ @@ -3783,7 +4027,7 @@ export const User_GameUpdateWithWhereUniqueWithoutGameInputSchema: z.ZodType = z.object({ where: z.lazy(() => User_GameScalarWhereInputSchema), - data: z.union([ z.lazy(() => User_GameUpdateManyMutationInputSchema),z.lazy(() => User_GameUncheckedUpdateManyWithoutUsersInputSchema) ]), + data: z.union([ z.lazy(() => User_GameUpdateManyMutationInputSchema),z.lazy(() => User_GameUncheckedUpdateManyWithoutGameInputSchema) ]), }).strict(); export const GameCreateWithoutGamePinInputSchema: z.ZodType = z.object({ @@ -3818,6 +4062,12 @@ export const GameCreateOrConnectWithoutGamePinInputSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => GameUpdateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedUpdateWithoutGamePinInputSchema) ]), create: z.union([ z.lazy(() => GameCreateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedCreateWithoutGamePinInputSchema) ]), + where: z.lazy(() => GameWhereInputSchema).optional() +}).strict(); + +export const GameUpdateToOneWithWhereWithoutGamePinInputSchema: z.ZodType = z.object({ + where: z.lazy(() => GameWhereInputSchema).optional(), + data: z.union([ z.lazy(() => GameUpdateWithoutGamePinInputSchema),z.lazy(() => GameUncheckedUpdateWithoutGamePinInputSchema) ]), }).strict(); export const GameUpdateWithoutGamePinInputSchema: z.ZodType = z.object({ @@ -3874,6 +4124,12 @@ export const User_GameCreateOrConnectWithoutShipsInputSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => User_GameUpdateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutShipsInputSchema) ]), create: z.union([ z.lazy(() => User_GameCreateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutShipsInputSchema) ]), + where: z.lazy(() => User_GameWhereInputSchema).optional() +}).strict(); + +export const User_GameUpdateToOneWithWhereWithoutShipsInputSchema: z.ZodType = z.object({ + where: z.lazy(() => User_GameWhereInputSchema).optional(), + data: z.union([ z.lazy(() => User_GameUpdateWithoutShipsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutShipsInputSchema) ]), }).strict(); export const User_GameUpdateWithoutShipsInputSchema: z.ZodType = z.object({ @@ -3928,6 +4184,12 @@ export const User_GameCreateOrConnectWithoutHitsInputSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => User_GameUpdateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutHitsInputSchema) ]), create: z.union([ z.lazy(() => User_GameCreateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutHitsInputSchema) ]), + where: z.lazy(() => User_GameWhereInputSchema).optional() +}).strict(); + +export const User_GameUpdateToOneWithWhereWithoutHitsInputSchema: z.ZodType = z.object({ + where: z.lazy(() => User_GameWhereInputSchema).optional(), + data: z.union([ z.lazy(() => User_GameUpdateWithoutHitsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutHitsInputSchema) ]), }).strict(); export const User_GameUpdateWithoutHitsInputSchema: z.ZodType = z.object({ @@ -4129,7 +4391,7 @@ export const MoveUpdateWithWhereUniqueWithoutUser_gameInputSchema: z.ZodType = z.object({ where: z.lazy(() => MoveScalarWhereInputSchema), - data: z.union([ z.lazy(() => MoveUpdateManyMutationInputSchema),z.lazy(() => MoveUncheckedUpdateManyWithoutMovesInputSchema) ]), + data: z.union([ z.lazy(() => MoveUpdateManyMutationInputSchema),z.lazy(() => MoveUncheckedUpdateManyWithoutUser_gameInputSchema) ]), }).strict(); export const MoveScalarWhereInputSchema: z.ZodType = z.object({ @@ -4159,7 +4421,7 @@ export const ShipUpdateWithWhereUniqueWithoutUser_GameInputSchema: z.ZodType = z.object({ where: z.lazy(() => ShipScalarWhereInputSchema), - data: z.union([ z.lazy(() => ShipUpdateManyMutationInputSchema),z.lazy(() => ShipUncheckedUpdateManyWithoutShipsInputSchema) ]), + data: z.union([ z.lazy(() => ShipUpdateManyMutationInputSchema),z.lazy(() => ShipUncheckedUpdateManyWithoutUser_GameInputSchema) ]), }).strict(); export const ShipScalarWhereInputSchema: z.ZodType = z.object({ @@ -4188,7 +4450,7 @@ export const HitUpdateWithWhereUniqueWithoutUser_GameInputSchema: z.ZodType = z.object({ where: z.lazy(() => HitScalarWhereInputSchema), - data: z.union([ z.lazy(() => HitUpdateManyMutationInputSchema),z.lazy(() => HitUncheckedUpdateManyWithoutHitsInputSchema) ]), + data: z.union([ z.lazy(() => HitUpdateManyMutationInputSchema),z.lazy(() => HitUncheckedUpdateManyWithoutUser_GameInputSchema) ]), }).strict(); export const HitScalarWhereInputSchema: z.ZodType = z.object({ @@ -4215,7 +4477,7 @@ export const ChatUpdateWithWhereUniqueWithoutUser_gameInputSchema: z.ZodType = z.object({ where: z.lazy(() => ChatScalarWhereInputSchema), - data: z.union([ z.lazy(() => ChatUpdateManyMutationInputSchema),z.lazy(() => ChatUncheckedUpdateManyWithoutChatsInputSchema) ]), + data: z.union([ z.lazy(() => ChatUpdateManyMutationInputSchema),z.lazy(() => ChatUncheckedUpdateManyWithoutUser_gameInputSchema) ]), }).strict(); export const ChatScalarWhereInputSchema: z.ZodType = z.object({ @@ -4232,6 +4494,12 @@ export const ChatScalarWhereInputSchema: z.ZodType export const GameUpsertWithoutUsersInputSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => GameUpdateWithoutUsersInputSchema),z.lazy(() => GameUncheckedUpdateWithoutUsersInputSchema) ]), create: z.union([ z.lazy(() => GameCreateWithoutUsersInputSchema),z.lazy(() => GameUncheckedCreateWithoutUsersInputSchema) ]), + where: z.lazy(() => GameWhereInputSchema).optional() +}).strict(); + +export const GameUpdateToOneWithWhereWithoutUsersInputSchema: z.ZodType = z.object({ + where: z.lazy(() => GameWhereInputSchema).optional(), + data: z.union([ z.lazy(() => GameUpdateWithoutUsersInputSchema),z.lazy(() => GameUncheckedUpdateWithoutUsersInputSchema) ]), }).strict(); export const GameUpdateWithoutUsersInputSchema: z.ZodType = z.object({ @@ -4261,6 +4529,12 @@ export const GameUncheckedUpdateWithoutUsersInputSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => UserUpdateWithoutGamesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutGamesInputSchema) ]), create: z.union([ z.lazy(() => UserCreateWithoutGamesInputSchema),z.lazy(() => UserUncheckedCreateWithoutGamesInputSchema) ]), + where: z.lazy(() => UserWhereInputSchema).optional() +}).strict(); + +export const UserUpdateToOneWithWhereWithoutGamesInputSchema: z.ZodType = z.object({ + where: z.lazy(() => UserWhereInputSchema).optional(), + data: z.union([ z.lazy(() => UserUpdateWithoutGamesInputSchema),z.lazy(() => UserUncheckedUpdateWithoutGamesInputSchema) ]), }).strict(); export const UserUpdateWithoutGamesInputSchema: z.ZodType = z.object({ @@ -4317,6 +4591,12 @@ export const User_GameCreateOrConnectWithoutMovesInputSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => User_GameUpdateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutMovesInputSchema) ]), create: z.union([ z.lazy(() => User_GameCreateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutMovesInputSchema) ]), + where: z.lazy(() => User_GameWhereInputSchema).optional() +}).strict(); + +export const User_GameUpdateToOneWithWhereWithoutMovesInputSchema: z.ZodType = z.object({ + where: z.lazy(() => User_GameWhereInputSchema).optional(), + data: z.union([ z.lazy(() => User_GameUpdateWithoutMovesInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutMovesInputSchema) ]), }).strict(); export const User_GameUpdateWithoutMovesInputSchema: z.ZodType = z.object({ @@ -4371,6 +4651,12 @@ export const User_GameCreateOrConnectWithoutChatsInputSchema: z.ZodType = z.object({ update: z.union([ z.lazy(() => User_GameUpdateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutChatsInputSchema) ]), create: z.union([ z.lazy(() => User_GameCreateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedCreateWithoutChatsInputSchema) ]), + where: z.lazy(() => User_GameWhereInputSchema).optional() +}).strict(); + +export const User_GameUpdateToOneWithWhereWithoutChatsInputSchema: z.ZodType = z.object({ + where: z.lazy(() => User_GameWhereInputSchema).optional(), + data: z.union([ z.lazy(() => User_GameUpdateWithoutChatsInputSchema),z.lazy(() => User_GameUncheckedUpdateWithoutChatsInputSchema) ]), }).strict(); export const User_GameUpdateWithoutChatsInputSchema: z.ZodType = z.object({ @@ -4447,7 +4733,7 @@ export const User_GameUncheckedUpdateWithoutUserInputSchema: z.ZodType ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional() }).strict(); -export const User_GameUncheckedUpdateManyWithoutGamesInputSchema: z.ZodType = z.object({ +export const User_GameUncheckedUpdateManyWithoutUserInputSchema: z.ZodType = z.object({ id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), gameId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), @@ -4488,7 +4774,7 @@ export const AccountUncheckedUpdateWithoutUserInputSchema: z.ZodType NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), }).strict(); -export const AccountUncheckedUpdateManyWithoutAccountsInputSchema: z.ZodType = z.object({ +export const AccountUncheckedUpdateManyWithoutUserInputSchema: z.ZodType = z.object({ id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), type: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), provider: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), @@ -4517,7 +4803,7 @@ export const SessionUncheckedUpdateWithoutUserInputSchema: z.ZodType DateTimeFieldUpdateOperationsInputSchema) ]).optional(), }).strict(); -export const SessionUncheckedUpdateManyWithoutSessionsInputSchema: z.ZodType = z.object({ +export const SessionUncheckedUpdateManyWithoutUserInputSchema: z.ZodType = z.object({ id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), sessionToken: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), expires: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), @@ -4552,7 +4838,7 @@ export const User_GameUncheckedUpdateWithoutGameInputSchema: z.ZodType ChatUncheckedUpdateManyWithoutUser_gameNestedInputSchema).optional() }).strict(); -export const User_GameUncheckedUpdateManyWithoutUsersInputSchema: z.ZodType = z.object({ +export const User_GameUncheckedUpdateManyWithoutGameInputSchema: z.ZodType = z.object({ id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), userId: z.union([ z.string(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), @@ -4612,7 +4898,7 @@ export const MoveUncheckedUpdateWithoutUser_gameInputSchema: z.ZodType OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), }).strict(); -export const MoveUncheckedUpdateManyWithoutMovesInputSchema: z.ZodType = z.object({ +export const MoveUncheckedUpdateManyWithoutUser_gameInputSchema: z.ZodType = z.object({ id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), index: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), @@ -4640,7 +4926,7 @@ export const ShipUncheckedUpdateWithoutUser_GameInputSchema: z.ZodType OrientationSchema),z.lazy(() => EnumOrientationFieldUpdateOperationsInputSchema) ]).optional(), }).strict(); -export const ShipUncheckedUpdateManyWithoutShipsInputSchema: z.ZodType = z.object({ +export const ShipUncheckedUpdateManyWithoutUser_GameInputSchema: z.ZodType = z.object({ id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), size: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), variant: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), @@ -4663,7 +4949,7 @@ export const HitUncheckedUpdateWithoutUser_GameInputSchema: z.ZodType BoolFieldUpdateOperationsInputSchema) ]).optional(), }).strict(); -export const HitUncheckedUpdateManyWithoutHitsInputSchema: z.ZodType = z.object({ +export const HitUncheckedUpdateManyWithoutUser_GameInputSchema: z.ZodType = z.object({ id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), x: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), y: z.union([ z.number().int(),z.lazy(() => IntFieldUpdateOperationsInputSchema) ]).optional(), @@ -4684,7 +4970,7 @@ export const ChatUncheckedUpdateWithoutUser_gameInputSchema: z.ZodType NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(), }).strict(); -export const ChatUncheckedUpdateManyWithoutChatsInputSchema: z.ZodType = z.object({ +export const ChatUncheckedUpdateManyWithoutUser_gameInputSchema: z.ZodType = z.object({ id: z.union([ z.string().cuid(),z.lazy(() => StringFieldUpdateOperationsInputSchema) ]).optional(), createdAt: z.union([ z.coerce.date(),z.lazy(() => DateTimeFieldUpdateOperationsInputSchema) ]).optional(), message: z.union([ z.string(),z.lazy(() => NullableStringFieldUpdateOperationsInputSchema) ]).optional().nullable(),