diff --git a/apps/api/package.json b/apps/api/package.json index 26cf5071..fc64236c 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -13,9 +13,6 @@ "lint": "eslint . --max-warnings 0", "prebuild": "node -p \"'export const LIB_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'+'export const LIB_LICENSE = ' + JSON.stringify(require('./package.json').license) + ';'\" > src/util/package.ts", "prettier": "prettier ./src --write --ignore-unknown", - "db:generate": "prisma generate", - "db:migrate": "prisma migrate deploy", - "db:studio": "prisma studio", "env:copy": "cp .env.example .env" }, "devDependencies": { @@ -32,7 +29,6 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.26.0", "postcss": "^8.4.31", - "prisma": "^5.18.0", "ts-node": "^10.9.1", "typescript": "^4.9.4" }, @@ -40,8 +36,8 @@ "@aws-sdk/client-s3": "^3.427.0", "@bte-germany/terraconvert": "^1.0.1", "@keycloak/keycloak-admin-client": "24.0.5", - "@prisma/client": "^5.18.0", "@repo/prettier-config": "*", + "@repo/db": "*", "@repo/typescript-config": "*", "@turf/helpers": "^6.5.0", "@turf/turf": "^6.5.0", diff --git a/apps/api/src/Core.ts b/apps/api/src/Core.ts index 1554c5a4..79b53a2c 100644 --- a/apps/api/src/Core.ts +++ b/apps/api/src/Core.ts @@ -1,10 +1,10 @@ import * as session from 'express-session'; import * as winston from 'winston'; -import { PrismaClient } from '@prisma/client'; import { LIB_LICENSE, LIB_VERSION } from './util/package.js'; import { applicationReminder, purgeClaims, purgeVerifications } from './util/Prisma.js'; +import { PrismaClient } from '@repo/db'; import Keycloak from 'keycloak-connect'; import AmazonAWS from './util/AmazonAWS.js'; import CronHandler from './util/CronHandler.js'; @@ -150,7 +150,7 @@ class Core { export default Core; function createPrismaClient() { - return new PrismaClient().$extends({ + return new PrismaClient({ datasourceUrl: process.env.DATABASE_URL }).$extends({ name: 'uploadSrc', result: { upload: { diff --git a/apps/api/src/controllers/ApplicationController.ts b/apps/api/src/controllers/ApplicationController.ts index 1ad3348b..fa48b39c 100644 --- a/apps/api/src/controllers/ApplicationController.ts +++ b/apps/api/src/controllers/ApplicationController.ts @@ -1,4 +1,4 @@ -import { Application, ApplicationQuestionType, ApplicationStatus } from '@prisma/client'; +import { Application, ApplicationQuestionType, ApplicationStatus } from '@repo/db'; import { Request, Response } from 'express'; import { sendBtWebhook, WebhookType } from '../util/BtWebhooks.js'; import { ERROR_GENERIC, ERROR_NO_PERMISSION, ERROR_VALIDATION } from '../util/Errors.js'; diff --git a/apps/api/src/controllers/BuildTeamController.ts b/apps/api/src/controllers/BuildTeamController.ts index 8a490f41..4ac6ef37 100644 --- a/apps/api/src/controllers/BuildTeamController.ts +++ b/apps/api/src/controllers/BuildTeamController.ts @@ -2,7 +2,7 @@ import { Request, Response } from 'express'; import { ERROR_GENERIC, ERROR_VALIDATION } from '../util/Errors.js'; import { FrontendRoutesGroups, rerenderFrontend } from '../util/Frontend.js'; -import { ApplicationQuestionType } from '@prisma/client'; +import { ApplicationQuestionType } from '@repo/db'; import crypto from 'crypto'; import { validationResult } from 'express-validator'; import yup from 'yup'; diff --git a/apps/api/src/controllers/ClaimController.ts b/apps/api/src/controllers/ClaimController.ts index ca1d5975..61c3f280 100644 --- a/apps/api/src/controllers/ClaimController.ts +++ b/apps/api/src/controllers/ClaimController.ts @@ -3,7 +3,7 @@ import { sendBtWebhook, WebhookType } from '../util/BtWebhooks.js'; import turf, { toOverpassPolygon, toPolygon } from '../util/Coordinates.js'; import { ERROR_GENERIC, ERROR_NO_PERMISSION, ERROR_VALIDATION } from '../util/Errors.js'; -import { Claim } from '@prisma/client'; +import { Claim } from '@repo/db'; import axios from 'axios'; import { validationResult } from 'express-validator'; import Core from '../Core.js'; diff --git a/apps/api/src/controllers/TokenRouteController.ts b/apps/api/src/controllers/TokenRouteController.ts index 635afff2..1e7972cd 100644 --- a/apps/api/src/controllers/TokenRouteController.ts +++ b/apps/api/src/controllers/TokenRouteController.ts @@ -3,7 +3,7 @@ import { sendBtWebhook, WebhookType } from '../util/BtWebhooks.js'; import turf, { toPolygon } from '../util/Coordinates.js'; import { ERROR_GENERIC, ERROR_VALIDATION } from '../util/Errors.js'; -import { ApplicationStatus } from '@prisma/client'; +import { ApplicationStatus } from '@repo/db'; import { validationResult } from 'express-validator'; import Core from '../Core.js'; import { parseApplicationStatus } from '../util/Parser.js'; diff --git a/apps/api/src/controllers/UserController.ts b/apps/api/src/controllers/UserController.ts index e5ba2bb2..38dae200 100644 --- a/apps/api/src/controllers/UserController.ts +++ b/apps/api/src/controllers/UserController.ts @@ -3,7 +3,7 @@ import Core, { ExtendedPrismaClient } from '../Core.js'; import { ERROR_GENERIC, ERROR_NO_PERMISSION, ERROR_VALIDATION } from '../util/Errors.js'; import type KcAdminClient from '@keycloak/keycloak-admin-client'; -import { ApplicationStatus } from '@prisma/client'; +import { ApplicationStatus } from '@repo/db'; import { validationResult } from 'express-validator'; import { userHasPermissions } from '../web/routes/utils/CheckUserPermissionMiddleware.js'; diff --git a/apps/api/src/types/express.d.ts b/apps/api/src/types/express.d.ts index 5cf24bda..91e42f39 100644 --- a/apps/api/src/types/express.d.ts +++ b/apps/api/src/types/express.d.ts @@ -1,5 +1,5 @@ import UserRepresentation from '@keycloak/keycloak-admin-client/lib/defs/userRepresentation.js'; -import { BuildTeam, User } from '@prisma/client'; +import { BuildTeam, User } from '@repo/db'; interface kAuth { grant: any; diff --git a/apps/api/src/util/DiscordIntegration.ts b/apps/api/src/util/DiscordIntegration.ts index d56f3375..c2e47ae6 100644 --- a/apps/api/src/util/DiscordIntegration.ts +++ b/apps/api/src/util/DiscordIntegration.ts @@ -1,4 +1,4 @@ -import { Claim } from '@prisma/client'; +import { Claim } from '@repo/db'; import Core from '../Core.js'; class DiscordIntegration { diff --git a/apps/api/src/util/Parser.ts b/apps/api/src/util/Parser.ts index 9378f331..92e6f7fd 100644 --- a/apps/api/src/util/Parser.ts +++ b/apps/api/src/util/Parser.ts @@ -1,4 +1,4 @@ -import { ApplicationStatus } from '@prisma/client'; +import { ApplicationStatus } from '@repo/db'; export function parseApplicationStatus(status: string, isTrial?: boolean): ApplicationStatus { switch (status.toLowerCase()) { diff --git a/apps/api/src/util/Prisma.ts b/apps/api/src/util/Prisma.ts index 7afd7dee..f20a1c40 100644 --- a/apps/api/src/util/Prisma.ts +++ b/apps/api/src/util/Prisma.ts @@ -1,4 +1,4 @@ -import { ApplicationStatus } from '@prisma/client'; +import { ApplicationStatus } from '@repo/db'; import Core from '../Core.js'; export async function middlewareUploadSrc(params, next) { diff --git a/apps/api/tsconfig.json b/apps/api/tsconfig.json index 1a33f5c3..420941eb 100644 --- a/apps/api/tsconfig.json +++ b/apps/api/tsconfig.json @@ -1,7 +1,8 @@ { "extends": "@repo/typescript-config/expressjs.json", "compilerOptions": { - "outDir": "./dist" + "outDir": "./dist", + "moduleResolution": "NodeNext" }, "include": ["./src/**/*", "./index.ts"], "exclude": ["node_modules"] diff --git a/packages/db/.env.example b/packages/db/.env.example new file mode 100644 index 00000000..58225e45 --- /dev/null +++ b/packages/db/.env.example @@ -0,0 +1,4 @@ +# +# Database +# +DATABASE_URL="postgresql://user:pass@ip:5432/database?pool_timeout=0" diff --git a/packages/db/.gitignore b/packages/db/.gitignore new file mode 100644 index 00000000..37d7e734 --- /dev/null +++ b/packages/db/.gitignore @@ -0,0 +1,2 @@ +node_modules +.env diff --git a/packages/db/package.json b/packages/db/package.json new file mode 100644 index 00000000..6384c220 --- /dev/null +++ b/packages/db/package.json @@ -0,0 +1,30 @@ +{ + "name": "@repo/db", + "version": "0.0.0", + "private": true, + "packageManager": "yarn@1.22.22", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "scripts": { + "db:generate": "prisma generate", + "db:migrate": "prisma migrate deploy", + "db:studio": "prisma studio", + "db:pull": "prisma db pull", + "env:copy": "cp .env.example .env", + "build": "tsc" + }, + "dependencies": { + "@prisma/client": "5.18.0", + "@repo/typescript-config": "*" + }, + "devDependencies": { + "prisma": "5.18.0", + "typescript": "^4.9.4" + }, + "exports": { + "types": "./src/index.ts", + "default": "./dist/index.js" + } +} \ No newline at end of file diff --git a/apps/api/prisma/migrations/20230925155256_ips/migration.sql b/packages/db/prisma/migrations/20230925155256_ips/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20230925155256_ips/migration.sql rename to packages/db/prisma/migrations/20230925155256_ips/migration.sql diff --git a/apps/api/prisma/migrations/20231008125947_upload/migration.sql b/packages/db/prisma/migrations/20231008125947_upload/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231008125947_upload/migration.sql rename to packages/db/prisma/migrations/20231008125947_upload/migration.sql diff --git a/apps/api/prisma/migrations/20231008140308_rm_src/migration.sql b/packages/db/prisma/migrations/20231008140308_rm_src/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231008140308_rm_src/migration.sql rename to packages/db/prisma/migrations/20231008140308_rm_src/migration.sql diff --git a/apps/api/prisma/migrations/20231008150620_created_at/migration.sql b/packages/db/prisma/migrations/20231008150620_created_at/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231008150620_created_at/migration.sql rename to packages/db/prisma/migrations/20231008150620_created_at/migration.sql diff --git a/apps/api/prisma/migrations/20231008150836_showcase_upload/migration.sql b/packages/db/prisma/migrations/20231008150836_showcase_upload/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231008150836_showcase_upload/migration.sql rename to packages/db/prisma/migrations/20231008150836_showcase_upload/migration.sql diff --git a/apps/api/prisma/migrations/20231014110125_claim/migration.sql b/packages/db/prisma/migrations/20231014110125_claim/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231014110125_claim/migration.sql rename to packages/db/prisma/migrations/20231014110125_claim/migration.sql diff --git a/apps/api/prisma/migrations/20231014110659_claim_bt/migration.sql b/packages/db/prisma/migrations/20231014110659_claim_bt/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231014110659_claim_bt/migration.sql rename to packages/db/prisma/migrations/20231014110659_claim_bt/migration.sql diff --git a/apps/api/prisma/migrations/20231014111550_claim_name/migration.sql b/packages/db/prisma/migrations/20231014111550_claim_name/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231014111550_claim_name/migration.sql rename to packages/db/prisma/migrations/20231014111550_claim_name/migration.sql diff --git a/apps/api/prisma/migrations/20231014142116_claim_created/migration.sql b/packages/db/prisma/migrations/20231014142116_claim_created/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231014142116_claim_created/migration.sql rename to packages/db/prisma/migrations/20231014142116_claim_created/migration.sql diff --git a/apps/api/prisma/migrations/20231014180152_user_add/migration.sql b/packages/db/prisma/migrations/20231014180152_user_add/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231014180152_user_add/migration.sql rename to packages/db/prisma/migrations/20231014180152_user_add/migration.sql diff --git a/apps/api/prisma/migrations/20231103171538_apitoken/migration.sql b/packages/db/prisma/migrations/20231103171538_apitoken/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231103171538_apitoken/migration.sql rename to packages/db/prisma/migrations/20231103171538_apitoken/migration.sql diff --git a/apps/api/prisma/migrations/20231212174231_bt_changes/migration.sql b/packages/db/prisma/migrations/20231212174231_bt_changes/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20231212174231_bt_changes/migration.sql rename to packages/db/prisma/migrations/20231212174231_bt_changes/migration.sql diff --git a/apps/api/prisma/migrations/20240101110249_claims/migration.sql b/packages/db/prisma/migrations/20240101110249_claims/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240101110249_claims/migration.sql rename to packages/db/prisma/migrations/20240101110249_claims/migration.sql diff --git a/apps/api/prisma/migrations/20240103125729_claims2/migration.sql b/packages/db/prisma/migrations/20240103125729_claims2/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240103125729_claims2/migration.sql rename to packages/db/prisma/migrations/20240103125729_claims2/migration.sql diff --git a/apps/api/prisma/migrations/20240103133451_claimsexternal/migration.sql b/packages/db/prisma/migrations/20240103133451_claimsexternal/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240103133451_claimsexternal/migration.sql rename to packages/db/prisma/migrations/20240103133451_claimsexternal/migration.sql diff --git a/apps/api/prisma/migrations/20240103180941_webhook/migration.sql b/packages/db/prisma/migrations/20240103180941_webhook/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240103180941_webhook/migration.sql rename to packages/db/prisma/migrations/20240103180941_webhook/migration.sql diff --git a/apps/api/prisma/migrations/20240103184330_disableapps/migration.sql b/packages/db/prisma/migrations/20240103184330_disableapps/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240103184330_disableapps/migration.sql rename to packages/db/prisma/migrations/20240103184330_disableapps/migration.sql diff --git a/apps/api/prisma/migrations/20240116190142_bt_color/migration.sql b/packages/db/prisma/migrations/20240116190142_bt_color/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240116190142_bt_color/migration.sql rename to packages/db/prisma/migrations/20240116190142_bt_color/migration.sql diff --git a/apps/api/prisma/migrations/20240209214528_claim_desc/migration.sql b/packages/db/prisma/migrations/20240209214528_claim_desc/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240209214528_claim_desc/migration.sql rename to packages/db/prisma/migrations/20240209214528_claim_desc/migration.sql diff --git a/apps/api/prisma/migrations/20240210111201_claim_osm/migration.sql b/packages/db/prisma/migrations/20240210111201_claim_osm/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240210111201_claim_osm/migration.sql rename to packages/db/prisma/migrations/20240210111201_claim_osm/migration.sql diff --git a/apps/api/prisma/migrations/20240211182536_claim_images/migration.sql b/packages/db/prisma/migrations/20240211182536_claim_images/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240211182536_claim_images/migration.sql rename to packages/db/prisma/migrations/20240211182536_claim_images/migration.sql diff --git a/apps/api/prisma/migrations/20240215160802_claim_size/migration.sql b/packages/db/prisma/migrations/20240215160802_claim_size/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240215160802_claim_size/migration.sql rename to packages/db/prisma/migrations/20240215160802_claim_size/migration.sql diff --git a/apps/api/prisma/migrations/20240218093059_showcase_image/migration.sql b/packages/db/prisma/migrations/20240218093059_showcase_image/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240218093059_showcase_image/migration.sql rename to packages/db/prisma/migrations/20240218093059_showcase_image/migration.sql diff --git a/apps/api/prisma/migrations/20240224131314_showcase_approve/migration.sql b/packages/db/prisma/migrations/20240224131314_showcase_approve/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240224131314_showcase_approve/migration.sql rename to packages/db/prisma/migrations/20240224131314_showcase_approve/migration.sql diff --git a/apps/api/prisma/migrations/20240301163856_calendar/migration.sql b/packages/db/prisma/migrations/20240301163856_calendar/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240301163856_calendar/migration.sql rename to packages/db/prisma/migrations/20240301163856_calendar/migration.sql diff --git a/apps/api/prisma/migrations/20240330130319_response_templates/migration.sql b/packages/db/prisma/migrations/20240330130319_response_templates/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240330130319_response_templates/migration.sql rename to packages/db/prisma/migrations/20240330130319_response_templates/migration.sql diff --git a/apps/api/prisma/migrations/20240330135020_templates_2/migration.sql b/packages/db/prisma/migrations/20240330135020_templates_2/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240330135020_templates_2/migration.sql rename to packages/db/prisma/migrations/20240330135020_templates_2/migration.sql diff --git a/apps/api/prisma/migrations/20240330202823_claim_external_unique/migration.sql b/packages/db/prisma/migrations/20240330202823_claim_external_unique/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240330202823_claim_external_unique/migration.sql rename to packages/db/prisma/migrations/20240330202823_claim_external_unique/migration.sql diff --git a/apps/api/prisma/migrations/20240404165612_minecraft/migration.sql b/packages/db/prisma/migrations/20240404165612_minecraft/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240404165612_minecraft/migration.sql rename to packages/db/prisma/migrations/20240404165612_minecraft/migration.sql diff --git a/apps/api/prisma/migrations/20240407160128_bt_version/migration.sql b/packages/db/prisma/migrations/20240407160128_bt_version/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240407160128_bt_version/migration.sql rename to packages/db/prisma/migrations/20240407160128_bt_version/migration.sql diff --git a/apps/api/prisma/migrations/20240608223545_add_json_store/migration.sql b/packages/db/prisma/migrations/20240608223545_add_json_store/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240608223545_add_json_store/migration.sql rename to packages/db/prisma/migrations/20240608223545_add_json_store/migration.sql diff --git a/apps/api/prisma/migrations/20240810163441_checked_uploads/migration.sql b/packages/db/prisma/migrations/20240810163441_checked_uploads/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240810163441_checked_uploads/migration.sql rename to packages/db/prisma/migrations/20240810163441_checked_uploads/migration.sql diff --git a/apps/api/prisma/migrations/20240816135947_mc_verify/migration.sql b/packages/db/prisma/migrations/20240816135947_mc_verify/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240816135947_mc_verify/migration.sql rename to packages/db/prisma/migrations/20240816135947_mc_verify/migration.sql diff --git a/apps/api/prisma/migrations/20240821103646_remove_name/migration.sql b/packages/db/prisma/migrations/20240821103646_remove_name/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240821103646_remove_name/migration.sql rename to packages/db/prisma/migrations/20240821103646_remove_name/migration.sql diff --git a/apps/api/prisma/migrations/20240821103814_add_username/migration.sql b/packages/db/prisma/migrations/20240821103814_add_username/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240821103814_add_username/migration.sql rename to packages/db/prisma/migrations/20240821103814_add_username/migration.sql diff --git a/apps/api/prisma/migrations/20240822191604_blog/migration.sql b/packages/db/prisma/migrations/20240822191604_blog/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240822191604_blog/migration.sql rename to packages/db/prisma/migrations/20240822191604_blog/migration.sql diff --git a/apps/api/prisma/migrations/20240822192040_blog_slug/migration.sql b/packages/db/prisma/migrations/20240822192040_blog_slug/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240822192040_blog_slug/migration.sql rename to packages/db/prisma/migrations/20240822192040_blog_slug/migration.sql diff --git a/apps/api/prisma/migrations/20240822201857_blog_additions/migration.sql b/packages/db/prisma/migrations/20240822201857_blog_additions/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240822201857_blog_additions/migration.sql rename to packages/db/prisma/migrations/20240822201857_blog_additions/migration.sql diff --git a/apps/api/prisma/migrations/20240927151356_remove_blog/migration.sql b/packages/db/prisma/migrations/20240927151356_remove_blog/migration.sql similarity index 100% rename from apps/api/prisma/migrations/20240927151356_remove_blog/migration.sql rename to packages/db/prisma/migrations/20240927151356_remove_blog/migration.sql diff --git a/apps/api/prisma/migrations/migration_lock.toml b/packages/db/prisma/migrations/migration_lock.toml similarity index 100% rename from apps/api/prisma/migrations/migration_lock.toml rename to packages/db/prisma/migrations/migration_lock.toml diff --git a/apps/api/prisma/schema.prisma b/packages/db/prisma/schema.prisma similarity index 100% rename from apps/api/prisma/schema.prisma rename to packages/db/prisma/schema.prisma diff --git a/packages/db/src/index.ts b/packages/db/src/index.ts new file mode 100644 index 00000000..d3f89435 --- /dev/null +++ b/packages/db/src/index.ts @@ -0,0 +1,6 @@ + +/** + * Re-export all the types from the Prisma client to be used in apps. This way, we only need one prisma schema + */ +export * from '@prisma/client'; + diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json new file mode 100644 index 00000000..dbbbc407 --- /dev/null +++ b/packages/db/tsconfig.json @@ -0,0 +1,8 @@ +{ + "extends": "@repo/typescript-config/base.json", + "compilerOptions": { + "outDir": "./dist", + }, + "include": ["./src/**/*"], + "exclude": ["node_modules"] +} diff --git a/yarn.lock b/yarn.lock index 000f888a..0e9e9a76 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1341,46 +1341,46 @@ resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.11.8.tgz#6b79032e760a0899cd4204710beede972a3a185f" integrity sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A== -"@prisma/client@^5.18.0": - version "5.19.1" - resolved "https://registry.yarnpkg.com/@prisma/client/-/client-5.19.1.tgz#d73f2b17b08628b6450c1c2dd20924d7a993aadf" - integrity sha512-x30GFguInsgt+4z5I4WbkZP2CGpotJMUXy+Gl/aaUjHn2o1DnLYNTA+q9XdYmAQZM8fIIkvUiA2NpgosM3fneg== - -"@prisma/debug@5.19.1": - version "5.19.1" - resolved "https://registry.yarnpkg.com/@prisma/debug/-/debug-5.19.1.tgz#9c6f25f62192104b96bee8c452e10872be6d000b" - integrity sha512-lAG6A6QnG2AskAukIEucYJZxxcSqKsMK74ZFVfCTOM/7UiyJQi48v6TQ47d6qKG3LbMslqOvnTX25dj/qvclGg== - -"@prisma/engines-version@5.19.1-2.69d742ee20b815d88e17e54db4a2a7a3b30324e3": - version "5.19.1-2.69d742ee20b815d88e17e54db4a2a7a3b30324e3" - resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-5.19.1-2.69d742ee20b815d88e17e54db4a2a7a3b30324e3.tgz#f211e2c000ef244bc6e5eaddbde75223c2e71411" - integrity sha512-xR6rt+z5LnNqTP5BBc+8+ySgf4WNMimOKXRn6xfNRDSpHvbOEmd7+qAOmzCrddEc4Cp8nFC0txU14dstjH7FXA== - -"@prisma/engines@5.19.1": - version "5.19.1" - resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-5.19.1.tgz#792d4f1ada73cf6fc20b0f188bf88d844bce428b" - integrity sha512-kR/PoxZDrfUmbbXqqb8SlBBgCjvGaJYMCOe189PEYzq9rKqitQ2fvT/VJ8PDSe8tTNxhc2KzsCfCAL+Iwm/7Cg== - dependencies: - "@prisma/debug" "5.19.1" - "@prisma/engines-version" "5.19.1-2.69d742ee20b815d88e17e54db4a2a7a3b30324e3" - "@prisma/fetch-engine" "5.19.1" - "@prisma/get-platform" "5.19.1" - -"@prisma/fetch-engine@5.19.1": - version "5.19.1" - resolved "https://registry.yarnpkg.com/@prisma/fetch-engine/-/fetch-engine-5.19.1.tgz#10a0f75636cac6647c71b9edd0b9a79c1b58468a" - integrity sha512-pCq74rtlOVJfn4pLmdJj+eI4P7w2dugOnnTXpRilP/6n5b2aZiA4ulJlE0ddCbTPkfHmOL9BfaRgA8o+1rfdHw== - dependencies: - "@prisma/debug" "5.19.1" - "@prisma/engines-version" "5.19.1-2.69d742ee20b815d88e17e54db4a2a7a3b30324e3" - "@prisma/get-platform" "5.19.1" - -"@prisma/get-platform@5.19.1": - version "5.19.1" - resolved "https://registry.yarnpkg.com/@prisma/get-platform/-/get-platform-5.19.1.tgz#518f3a0e260f716151671c64140fb67953e0307d" - integrity sha512-sCeoJ+7yt0UjnR+AXZL7vXlg5eNxaFOwC23h0KvW1YIXUoa7+W2ZcAUhoEQBmJTW4GrFqCuZ8YSP0mkDa4k3Zg== - dependencies: - "@prisma/debug" "5.19.1" +"@prisma/client@5.18.0": + version "5.18.0" + resolved "https://registry.yarnpkg.com/@prisma/client/-/client-5.18.0.tgz#526e4281a448f214c0ff81d65c39243608c98294" + integrity sha512-BWivkLh+af1kqC89zCJYkHsRcyWsM8/JHpsDMM76DjP3ZdEquJhXa4IeX+HkWPnwJ5FanxEJFZZDTWiDs/Kvyw== + +"@prisma/debug@5.18.0": + version "5.18.0" + resolved "https://registry.yarnpkg.com/@prisma/debug/-/debug-5.18.0.tgz#527799e044d2903a35945e61ac2d8916e4b61ead" + integrity sha512-f+ZvpTLidSo3LMJxQPVgAxdAjzv5OpzAo/eF8qZqbwvgi2F5cTOI9XCpdRzJYA0iGfajjwjOKKrVq64vkxEfUw== + +"@prisma/engines-version@5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169": + version "5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169" + resolved "https://registry.yarnpkg.com/@prisma/engines-version/-/engines-version-5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169.tgz#203426ebf4ec4e1acce7da4a59ec8f0df92b29e7" + integrity sha512-a/+LpJj8vYU3nmtkg+N3X51ddbt35yYrRe8wqHTJtYQt7l1f8kjIBcCs6sHJvodW/EK5XGvboOiwm47fmNrbgg== + +"@prisma/engines@5.18.0": + version "5.18.0" + resolved "https://registry.yarnpkg.com/@prisma/engines/-/engines-5.18.0.tgz#26ea46e26498be622407cf95663d7fb4c39c895b" + integrity sha512-ofmpGLeJ2q2P0wa/XaEgTnX/IsLnvSp/gZts0zjgLNdBhfuj2lowOOPmDcfKljLQUXMvAek3lw5T01kHmCG8rg== + dependencies: + "@prisma/debug" "5.18.0" + "@prisma/engines-version" "5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169" + "@prisma/fetch-engine" "5.18.0" + "@prisma/get-platform" "5.18.0" + +"@prisma/fetch-engine@5.18.0": + version "5.18.0" + resolved "https://registry.yarnpkg.com/@prisma/fetch-engine/-/fetch-engine-5.18.0.tgz#5b343e2b36b27e2713901ddd032ddd6932b3d55f" + integrity sha512-I/3u0x2n31rGaAuBRx2YK4eB7R/1zCuayo2DGwSpGyrJWsZesrV7QVw7ND0/Suxeo/vLkJ5OwuBqHoCxvTHpOg== + dependencies: + "@prisma/debug" "5.18.0" + "@prisma/engines-version" "5.18.0-25.4c784e32044a8a016d99474bd02a3b6123742169" + "@prisma/get-platform" "5.18.0" + +"@prisma/get-platform@5.18.0": + version "5.18.0" + resolved "https://registry.yarnpkg.com/@prisma/get-platform/-/get-platform-5.18.0.tgz#0dc4c82fe9a4971f4519a57cb2dd69d8e0df4b71" + integrity sha512-Tk+m7+uhqcKDgnMnFN0lRiH7Ewea0OEsZZs9pqXa7i3+7svS3FSCqDBCaM9x5fmhhkufiG0BtunJVDka+46DlA== + dependencies: + "@prisma/debug" "5.18.0" "@react-spring/animated@~9.6.1": version "9.6.1" @@ -6101,11 +6101,6 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== -fsevents@2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - function-bind@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" @@ -8227,14 +8222,12 @@ prism-react-renderer@^1.2.1: resolved "https://registry.yarnpkg.com/prism-react-renderer/-/prism-react-renderer-1.3.5.tgz#786bb69aa6f73c32ba1ee813fbe17a0115435085" integrity sha512-IJ+MSwBWKG+SM3b2SUfdrhC+gu01QkV2KmRQgREThBfSQRoufqRfxfHUxpG1WcaFjP+kojcFyO9Qqtpgt3qLCg== -prisma@^5.18.0: - version "5.19.1" - resolved "https://registry.yarnpkg.com/prisma/-/prisma-5.19.1.tgz#33a4fecb9bcdf1c3f40d2c7e1cc06055edbb0ebc" - integrity sha512-c5K9MiDaa+VAAyh1OiYk76PXOme9s3E992D7kvvIOhCrNsBQfy2mP2QAQtX0WNj140IgG++12kwZpYB9iIydNQ== +prisma@5.18.0: + version "5.18.0" + resolved "https://registry.yarnpkg.com/prisma/-/prisma-5.18.0.tgz#5ef69c802a075b7596231ea57003496873610b9e" + integrity sha512-+TrSIxZsh64OPOmaSgVPH7ALL9dfU0jceYaMJXsNrTkFHO7/3RANi5K2ZiPB1De9+KDxCWn7jvRq8y8pvk+o9g== dependencies: - "@prisma/engines" "5.19.1" - optionalDependencies: - fsevents "2.3.3" + "@prisma/engines" "5.18.0" process-nextick-args@~2.0.0: version "2.0.1"