From 7b3b9c5943fe5232c98c53f2f01171e0f6d72799 Mon Sep 17 00:00:00 2001 From: kirukib Date: Tue, 17 Nov 2026 21:24:36 +0300 Subject: [PATCH] Scaffold GRV backend: applications, inquiries, tickets, discounts, merch, QR game NestJS + Prisma/Postgres API shared by the site, admin and attendee app. Ports the site's D1 application flow and review, stores every inquiry form, sells tickets with discount codes (manual payment confirmation), and runs booth/startup/mystery-investee QR scans with derived points and raffles. Co-Authored-By: Claude Opus 5.5 --- .env.example | 20 + .gitignore | 7 + API.md | 123 + README.md | 57 + docker-compose.yml | 11 + nest-cli.json | 6 + package.json | 53 + pnpm-lock.yaml | 4417 +++++++++++++++++ prisma.config.ts | 14 + .../20261117182114_init/migration.sql | 355 ++ prisma/migrations/migration_lock.toml | 3 + prisma/schema.prisma | 333 ++ prisma/seed.ts | 64 + scripts/dev-db.mjs | 31 + scripts/import-d1.ts | 63 + src/app.module.ts | 36 + src/common/env.ts | 27 + src/common/http.ts | 70 + src/common/mail.ts | 44 + src/main.ts | 16 + src/modules/applications.ts | 387 ++ src/modules/auth.ts | 144 + src/modules/commerce.ts | 580 +++ src/modules/game.ts | 361 ++ src/modules/inquiries.ts | 75 + src/prisma.service.ts | 24 + src/shared/apply-validation.ts | 130 + src/shared/apply.ts | 369 ++ src/shared/email-templates.ts | 288 ++ src/shared/exhibit.ts | 37 + src/shared/inquiry.ts | 223 + src/shared/site.ts | 42 + test/core.test.ts | 91 + tsconfig.build.json | 1 + tsconfig.json | 20 + vitest.config.ts | 5 + 36 files changed, 8527 insertions(+) create mode 100644 .env.example create mode 100644 .gitignore create mode 100644 API.md create mode 100644 docker-compose.yml create mode 100644 nest-cli.json create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 prisma.config.ts create mode 100644 prisma/migrations/20261117182114_init/migration.sql create mode 100644 prisma/migrations/migration_lock.toml create mode 100644 prisma/schema.prisma create mode 100644 prisma/seed.ts create mode 100644 scripts/dev-db.mjs create mode 100644 scripts/import-d1.ts create mode 100644 src/app.module.ts create mode 100644 src/common/env.ts create mode 100644 src/common/http.ts create mode 100644 src/common/mail.ts create mode 100644 src/main.ts create mode 100644 src/modules/applications.ts create mode 100644 src/modules/auth.ts create mode 100644 src/modules/commerce.ts create mode 100644 src/modules/game.ts create mode 100644 src/modules/inquiries.ts create mode 100644 src/prisma.service.ts create mode 100644 src/shared/apply-validation.ts create mode 100644 src/shared/apply.ts create mode 100644 src/shared/email-templates.ts create mode 100644 src/shared/exhibit.ts create mode 100644 src/shared/inquiry.ts create mode 100644 src/shared/site.ts create mode 100644 test/core.test.ts create mode 100644 tsconfig.build.json create mode 100644 tsconfig.json create mode 100644 vitest.config.ts diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..0d6c6b6 --- /dev/null +++ b/.env.example @@ -0,0 +1,20 @@ +# Docker: postgresql://postgres:postgres@localhost:5432/grv +# No Docker: `pnpm db:dev` (PGlite) → postgresql://postgres:postgres@127.0.0.1:5433/postgres and DATABASE_POOL_MAX=1 +DATABASE_URL=postgresql://postgres:postgres@localhost:5432/grv +DATABASE_POOL_MAX=10 +PORT=4000 +# 32+ random chars: openssl rand -hex 32 +JWT_SECRET=change-me-change-me-change-me-change-me +# Comma-separated. Anyone else who logs in is an ATTENDEE. +ADMIN_EMAILS=tech@ethiopiatrustfund.org +STAFF_EMAILS= +# Browser origins allowed to call the API (site, admin). The mobile app needs none. +CORS_ORIGINS=http://localhost:3000,http://localhost:5173 +SITE_URL=https://grv.ethiopiatrustfund.org +ADMIN_URL=http://localhost:5173 +# Empty RESEND_API_KEY = emails (and OTP codes) are printed to the console instead of sent. +RESEND_API_KEY= +RESEND_FROM=GRV Summit +NOTIFY_TO=tech@ethiopiatrustfund.org +# Shown to buyers after a ticket order until a payment gateway is wired. +PAYMENT_INSTRUCTIONS=Our team will email you an invoice with bank transfer details within one business day. Your tickets are issued once payment is confirmed. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5731db8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +node_modules +dist +.env +.data +src/generated +*.tsbuildinfo +coverage diff --git a/API.md b/API.md new file mode 100644 index 0000000..4345ab3 --- /dev/null +++ b/API.md @@ -0,0 +1,123 @@ +# GRV Backend API + +Base URL: `http://localhost:4000` in dev (`PORT`), Swagger UI at `/docs`. +JSON in and out. Money is integer minor units (cents) with a `currency` (`"USD"`). Times are ISO-8601 UTC strings. + +**Errors:** non-2xx with `{ "ok": false, "error": "", "code"?: "", "errors"?: { field: message } }`. + +**Auth:** `Authorization: Bearer `. One email-OTP flow for everyone; role comes from the server +(`ADMIN_EMAILS` / `STAFF_EMAILS` env allowlists, otherwise `ATTENDEE`). In dev the OTP is printed to the backend console. +There is no refresh token: attendee tokens last 30 days, staff/admin tokens 12 hours. On 401, log out and ask for a new code. + +QR codes encode a URL: checkpoints `https://grv.ethiopiatrustfund.org/q/`, tickets `.../t/`. +`POST /scan` accepts either the full URL or the bare token. + +## Shared shapes + +```ts +type Role = "ATTENDEE" | "STAFF" | "ADMIN"; +type User = { id: string; email: string; name: string | null; role: Role }; + +type CheckpointKind = "BOOTH" | "STARTUP_MEMBER" | "MYSTERY_INVESTEE"; +type Checkpoint = { + id: string; kind: CheckpointKind; + label: string; // booth/partner name, or the person's role e.g. "Co-founder" + organisation: string | null; // partner or startup name + boothNumber: string | null; + personName: string | null; + points: number; // base points; MYSTERY_INVESTEE awards points * 2 + qrToken: string; qrUrl: string; // admin only + active: boolean; // admin only + scanned?: boolean; // attendee list only +}; + +type OrderStatus = "PENDING" | "PAID" | "CANCELLED" | "FULFILLED"; +type Order = { + id: string; number: string; // number like "GRV-1042" + kind: "TICKET" | "MERCH"; status: OrderStatus; + buyerName: string; buyerEmail: string; buyerPhone: string | null; company: string | null; + paymentMethod: "card" | "bank" | "booth"; + paymentRef: string | null; + subtotalMinor: number; discountMinor: number; totalMinor: number; currency: string; + discountCode: string | null; + items: { name: string; qty: number; size: string | null; unitPriceMinor: number }[]; + tickets?: Ticket[]; + createdAt: string; paidAt: string | null; fulfilledAt: string | null; +}; +type Ticket = { id: string; qrToken: string; qrUrl: string; tierName: string; holderEmail: string; holderName: string | null; checkedInAt: string | null }; + +type Tier = { id: string; code: string; name: string; description: string; scheduleLabel: string | null; + features: string[]; priceMinor: number; currency: string; capacity: number | null; sold: number; active: boolean; soldOut: boolean }; +type MerchItem = { id: string; name: string; description: string | null; priceMinor: number; currency: string; + sizes: string[]; stock: number; imageUrl: string | null; active: boolean }; +type Raffle = { id: string; name: string; prize: string; minPoints: number; drawnAt: string | null; + winner: { id: string; name: string | null; email?: string } | null; eligible?: boolean /* attendee */; eligibleCount?: number /* admin */ }; +``` + +## Public + +| Method | Path | Body → Response | +|---|---|---| +| GET | `/health` | `{ ok: true }` | +| GET | `/sectors` | `{ ok: true, sectors: string[] }` | +| POST | `/applications` | `{ values }` (step 1) → 201 `{ ok: true, token }` | +| GET | `/applications/:token` | `{ ok: true, status, submittedAt, values }` | +| PATCH | `/applications/:token` | `{ step, values }` → `{ ok: true }` | +| POST | `/applications/:token/submit` | `{ values }` (consents) → `{ ok: true, submittedAt }` | +| POST | `/inquiries` | site `InquiryPayload` (intent, name, email, …) → `{ ok: true }` | +| GET | `/tiers` | `Tier[]` (active only) | +| POST | `/discounts/validate` | `{ code, tierCode, quantity }` → `{ valid: boolean, message?, code?, subtotalMinor, discountMinor, totalMinor, currency }` | +| POST | `/orders` | `{ ticketId /* tier code */, quantity, name, email, company?, phone?, paymentMethod: "card"\|"bank", consent: true, discountCode? }` → `{ ok: true, orderId /* number */, totalUsd, totalMinor, discountMinor, currency, paymentMethod, instructions }` | +| GET | `/merch` | `MerchItem[]` (active only) | +| GET | `/tickets/:qrToken/qr.svg` | Ticket QR image (for the site's `/t/` page) | + +## Auth + +| Method | Path | Body → Response | +|---|---|---| +| POST | `/auth/otp/request` | `{ email }` → `{ ok: true }` (always, to avoid email enumeration; rate limited) | +| POST | `/auth/otp/verify` | `{ email, code }` → `{ accessToken, user: User }`. 400 `{ code: "invalid_code" }` | + +## Attendee (Bearer, any role) + +| Method | Path | Body → Response | +|---|---|---| +| GET | `/me` | `{ user: User, points, rank: number \| null, progress: { booths: { found, total }, startups: { found, total }, mysteryFound: boolean }, tickets: Ticket[], merchOrders: Order[] }` | +| PATCH | `/me` | `{ name }` → `User` | +| POST | `/scan` | `{ token }` → `{ checkpoint: Checkpoint, pointsAwarded, total, mystery: boolean }`. 409 `{ code: "already_scanned", checkpoint }`, 404 `{ code: "unknown_code" }` | +| GET | `/checkpoints?kind=` | `Checkpoint[]` with `scanned`. Unscanned mystery entries are masked: `label: "Mystery investee"`, `organisation`/`personName`/`boothNumber` null | +| GET | `/leaderboard` | `{ rank, name, points, me: boolean }[]` (top 20; names are first name + last initial) | +| GET | `/raffles` | `Raffle[]` with `eligible` | +| POST | `/merch-orders` | `{ items: { merchItemId, qty, size? }[] }` → `Order` (kind MERCH, PENDING, pay & collect at booth) | + +## Admin (Bearer, STAFF or ADMIN; ADMIN-only marked ★) + +| Method | Path | Body → Response | +|---|---|---| +| GET | `/admin/stats` | `{ applications: Record, ticketsSold, revenueMinor, currency, ordersPending, inquiriesNew, attendees, scansToday, scansTotal, leaderboard: { name, email, points }[] }` | +| GET | `/admin/applications?status§or&stage&city&q` | `{ id, startupName, founderName, email, primarySector, stage, city, status, submittedAt, avgScore, reviewCount }[]` (drafts hidden unless `status=DRAFT`) | +| GET | `/admin/applications/:id` | `{ id, status, email, startupName, founderName, createdAt, submittedAt, sections: { title, fields: { label, value: string }[] }[], reviews: { reviewer, scores: Record, total, comment, updatedAt }[], criteria: { id, label }[] }` | +| POST | `/admin/applications/status` | `{ ids: string[], status }` → `{ updated }`. Statuses: `SUBMITTED, UNDER_REVIEW, SHORTLISTED, FINALIST, ACCEPTED, REJECTED`. Result emails go out on SHORTLISTED/FINALIST/ACCEPTED/REJECTED, only for rows whose status actually changed | +| PUT | `/admin/applications/:id/review` | `{ scores: Record, comment? }` → `{ ok: true }` (one review per staff email) | +| GET | `/admin/applications/export.csv?…filters` | CSV download | +| GET | `/admin/inquiries?intent&status&q` | `{ id, intent, name, email, company, phone, message, payload, status, createdAt }[]` | +| PATCH | `/admin/inquiries/:id` | `{ status: "NEW"\|"CONTACTED"\|"CLOSED" }` | +| GET/POST | `/admin/tiers` ★POST | `Tier[]` / create `{ code, name, description, priceMinor, currency?, capacity?, features?, scheduleLabel?, active? }` | +| PATCH | `/admin/tiers/:id` ★ | partial Tier | +| GET/POST | `/admin/discounts` ★POST | `{ id, code, percentOff, amountOffMinor, tierId, tierName, maxUses, uses, startsAt, endsAt, active }[]` / create (exactly one of percentOff 1–100, amountOffMinor) | +| PATCH | `/admin/discounts/:id` ★ | partial | +| GET | `/admin/orders?kind&status&q` | `Order[]` (newest first) | +| POST | `/admin/orders/:id/mark-paid` | `{ paymentRef? }` → `Order`. Ticket orders: issues one Ticket per seat and emails the QR links | +| POST | `/admin/orders/:id/fulfil` | → `Order` (merch picked up; marks paid too) | +| POST | `/admin/orders/:id/cancel` | → `Order` | +| POST | `/admin/orders/:id/resend` | → `{ ok: true }` (re-sends ticket email) | +| GET | `/admin/tickets?q` | `(Ticket & { orderNumber })[]` | +| POST | `/admin/tickets/check-in` | `{ token }` (URL or token) → `Ticket`. 409 if already checked in | +| GET/POST | `/admin/merch` ★POST | `MerchItem[]` / create `{ name, description?, priceMinor, sizes?, stock, imageUrl?, active? }` | +| PATCH | `/admin/merch/:id` ★ | partial | +| GET/POST | `/admin/checkpoints?kind` ★POST | `Checkpoint[]` / create `{ kind, label, organisation?, boothNumber?, personName?, points? }` (default points: BOOTH 10, STARTUP_MEMBER 20, MYSTERY_INVESTEE 50 → awards 100) | +| PATCH/DELETE | `/admin/checkpoints/:id` ★ | partial / DELETE deactivates it (printed QR stops working; points already earned stay). Admin list rows also carry `scans` (count) | +| GET/POST | `/admin/raffles` ★POST | `Raffle[]` with `eligibleCount` / create `{ name, prize, minPoints }` | +| PATCH | `/admin/raffles/:id` ★ | partial | +| POST | `/admin/raffles/:id/draw` ★ | → `Raffle` with winner (random among eligible, excludes previous winners). 409 if already drawn | +| GET | `/admin/attendees?q` | `{ id, email, name, role, points, scans, tickets, createdAt }[]` | diff --git a/README.md b/README.md index e69de29..8a3c75e 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,57 @@ +# GRV Backend + +One API for the GRV Summit: startup applications, website inquiries, ticket sales and discounts, merch, +and the event game (booth / startup / mystery-investee QR scans, points, raffles). +Used by the site ([GRVSummit](../GRVSummit)), the admin portal ([GRV-Admin](../GRV-Admin)) and the attendee app ([GRV-Application](../GRV-Application)). + +**Contract:** [`API.md`](API.md). Swagger UI runs at `/docs`. + +Stack: NestJS 12, Prisma 7 + Postgres, zod, jose (JWT), Resend (email over HTTP), qrcode. + +## Run locally + +```bash +pnpm install +cp .env.example .env # set JWT_SECRET and ADMIN_EMAILS to your email +docker compose up -d # Postgres on :5432 +# no Docker? `pnpm db:dev` (PGlite on :5433), then in .env: +# DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5433/postgres and DATABASE_POOL_MAX=1 +pnpm db:migrate +pnpm db:seed # sectors + ticket tiers; `pnpm db:seed --demo` adds sample checkpoints, merch and a raffle +pnpm start:dev # http://localhost:4000 +pnpm test # discounts, orders, scans, raffle (in-memory Postgres, no setup needed) +``` + +With `RESEND_API_KEY` empty, every email, including sign-in codes, is printed to the console instead of sent. + +## Rules worth knowing + +- **Money:** integer minor units (cents). **Times:** UTC. +- **Logins:** email OTP for everyone. Role comes from `ADMIN_EMAILS` / `STAFF_EMAILS` on each login; everyone else is an `ATTENDEE`. Removing an email from the list demotes them at their next login. +- **Points** are never stored. They are `SUM(scans.points_awarded)`, and each user/checkpoint pair is unique, so a repeat scan can't earn twice. A mystery investee awards `points × 2`. +- **Discount uses** are counted from PAID/FULFILLED orders, so abandoned orders don't burn a code. +- **Payments:** ticket orders are created PENDING with manual/bank instructions (`PAYMENT_INSTRUCTIONS`). Staff confirm with *Mark paid* in the admin, which issues one QR ticket per seat and emails them. A gateway webhook should call `CommerceService.markPaid`. +- **QR codes:** they encode `SITE_URL/q/` for checkpoints and `SITE_URL/t/` for tickets, so a normal phone camera opens the site, and the app scans the same URL. +- **Applications:** the field definitions and validation in `src/shared/` are copied from the site (`GRVSummit/content/apply.ts`, `lib/apply-validation.ts`). Keep both copies in sync when the form changes. Step answers outside step 1 and documents are stored as JSON, so new questions need no migration. + +## Moving the site's existing applications + +```bash +cd ../GRVSummit && npx wrangler d1 export grv-summit --remote --no-schema --output d1.sql +cd ../GRV-Backend && pnpm db:import-d1 ../GRVSummit/d1.sql # safe to re-run +``` + +## Deploy (VPS) + +```bash +pnpm install --frozen-lockfile && pnpm build && pnpm db:migrate && pnpm db:seed +pm2 start dist/src/main.js --name grv-backend # NODE_ENV=production, env from .env +``` + +Put it behind HTTPS (e.g. `api.grv.ethiopiatrustfund.org`). Set `CORS_ORIGINS` to the site and admin origins and `ADMIN_URL` to the admin's URL (used in staff emails). + +## Not built yet + +- Payment gateway (Chapa/Telebirr/Stripe): add it when the provider is chosen. +- Push notifications and SMS. +- Document uploads: applications still take Drive/Dropbox links. diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2bee7ee --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +services: + postgres: + image: postgres:17-alpine + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_DB: grv + ports: ["5432:5432"] + volumes: [pgdata:/var/lib/postgresql/data] +volumes: + pgdata: diff --git a/nest-cli.json b/nest-cli.json new file mode 100644 index 0000000..baa6a3f --- /dev/null +++ b/nest-cli.json @@ -0,0 +1,6 @@ +{ + "$schema": "https://json.schemastore.org/nest-cli", + "collection": "@nestjs/schematics", + "sourceRoot": "src", + "compilerOptions": { "deleteOutDir": true, "tsConfigPath": "tsconfig.build.json" } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..111f8c3 --- /dev/null +++ b/package.json @@ -0,0 +1,53 @@ +{ + "name": "grv-backend", + "version": "0.1.0", + "private": true, + "license": "UNLICENSED", + "type": "module", + "engines": { + "node": ">=22" + }, + "scripts": { + "build": "nest build", + "start": "node dist/src/main.js", + "start:dev": "nest start --watch", + "typecheck": "tsc --noEmit", + "test": "vitest run", + "db:dev": "node scripts/dev-db.mjs", + "db:migrate": "prisma migrate deploy", + "db:migrate:dev": "prisma migrate dev", + "db:seed": "tsx prisma/seed.ts", + "db:import-d1": "tsx scripts/import-d1.ts", + "postinstall": "prisma generate" + }, + "dependencies": { + "@nestjs/common": "^12.0.1", + "@nestjs/core": "^12.0.1", + "@nestjs/platform-express": "^12.0.1", + "@nestjs/swagger": "^12.0.2", + "@prisma/adapter-pg": "7.10.1", + "@prisma/client": "7.10.1", + "dotenv": "^18.0.8", + "jose": "^6.2.12", + "pg": "^8.23.1", + "prisma": "7.10.1", + "qrcode": "^1.5.4", + "reflect-metadata": "^0.2.2", + "rxjs": "^7.8.1", + "swagger-ui-express": "^5.0.1", + "zod": "^4.6.7" + }, + "devDependencies": { + "@electric-sql/pglite": "^0.5.10", + "@electric-sql/pglite-socket": "^0.2.13", + "@nestjs/cli": "^12.0.0", + "@nestjs/schematics": "^12.0.0", + "@types/express": "^5.0.0", + "@types/node": "^24.0.0", + "@types/pg": "^8.23.1", + "@types/qrcode": "^1.5.6", + "tsx": "^4.19.3", + "typescript": "^6.0.2", + "vitest": "^4.1.2" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..9ab6d48 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,4417 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@nestjs/common': + specifier: ^12.0.1 + version: 12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': + specifier: ^12.0.1 + version: 12.5.1(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.5.1)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/platform-express': + specifier: ^12.0.1 + version: 12.5.1(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.5.1)(rxjs@7.8.2) + '@nestjs/swagger': + specifier: ^12.0.2 + version: 12.1.2(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.5.1)(reflect-metadata@0.2.2)(typescript@6.0.3) + '@prisma/adapter-pg': + specifier: 7.10.1 + version: 7.10.1 + '@prisma/client': + specifier: 7.10.1 + version: 7.10.1(prisma@7.10.1(@types/node@24.19.2)(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(typescript@6.0.3))(typescript@6.0.3) + dotenv: + specifier: ^18.0.8 + version: 18.0.10 + jose: + specifier: ^6.2.12 + version: 6.2.17 + pg: + specifier: ^8.23.1 + version: 8.23.1 + prisma: + specifier: 7.10.1 + version: 7.10.1(@types/node@24.19.2)(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(typescript@6.0.3) + qrcode: + specifier: ^1.5.4 + version: 1.5.4 + reflect-metadata: + specifier: ^0.2.2 + version: 0.2.2 + rxjs: + specifier: ^7.8.1 + version: 7.8.2 + swagger-ui-express: + specifier: ^5.0.1 + version: 5.0.1(express@5.3.0) + zod: + specifier: ^4.6.7 + version: 4.6.7 + devDependencies: + '@electric-sql/pglite': + specifier: ^0.5.10 + version: 0.5.16 + '@electric-sql/pglite-socket': + specifier: ^0.2.13 + version: 0.2.19(@electric-sql/pglite-age@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pg_hashids@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pg_ivm@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pg_textsearch@0.0.18(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pg_uuidv7@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pgtap@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pgvector@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite@0.5.16) + '@nestjs/cli': + specifier: ^12.0.0 + version: 12.0.13(@types/node@24.19.2) + '@nestjs/schematics': + specifier: ^12.0.0 + version: 12.0.13(chokidar@5.0.0)(typescript@6.0.3) + '@types/express': + specifier: ^5.0.0 + version: 5.0.6 + '@types/node': + specifier: ^24.0.0 + version: 24.19.2 + '@types/pg': + specifier: ^8.23.1 + version: 8.23.1 + '@types/qrcode': + specifier: ^1.5.6 + version: 1.5.6 + tsx: + specifier: ^4.19.3 + version: 4.23.15 + typescript: + specifier: ^6.0.2 + version: 6.0.3 + vitest: + specifier: ^4.1.2 + version: 4.1.12(@types/node@24.19.2)(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + +packages: + + '@angular-devkit/core@22.2.6': + resolution: {integrity: sha512-OtFUe9fLXpHsqO6gCSbTWIaTO64MCrESRVigs9SAW4EzIagCAhgB0Y8GflTjmKGLvJjilBFJFd0JSIzNxLyifA==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + peerDependencies: + chokidar: ^5.0.0 + peerDependenciesMeta: + chokidar: + optional: true + + '@angular-devkit/schematics-cli@22.2.6': + resolution: {integrity: sha512-+/zAu8jAdB5Hd6a4hYwurdwalC9wv2ElyDeDPyWZf4b8vZRdIaZwoYvrK91ArQGWn9Y3DrV3i0fpxHY38L91Pg==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + hasBin: true + + '@angular-devkit/schematics@22.2.6': + resolution: {integrity: sha512-XACkbAmAhBGDfxr8Uny2k0ErDwLpauseccNWdIFs4fiisGTqiCByzkH60/4xTmbV3FTj8bQ6cXYIhhaqe0MK1g==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0, npm: ^6.11.0 || ^7.5.6 || >=8.0.0, yarn: '>= 1.13.0'} + + '@borewit/text-codec@0.2.3': + resolution: {integrity: sha512-49CycTz1aAZmvFcwkeFyhud1HUmRIB5Tabf7ALV+VA4Iu85MTfz2cUwzPagMFAdVBvrWdkCxG67I30tUwwpKsw==} + + '@colors/colors@1.5.0': + resolution: {integrity: sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==} + engines: {node: '>=0.1.90'} + + '@electric-sql/pglite-age@0.0.17': + resolution: {integrity: sha512-31zR5HxRK1ZQdLgZ7ohym/GMvS576/YAWjXsrNkeyqb4gpvRoeia6rfVO+MovkJ9XTkqp5dgkpc8/fEGkOVNTw==} + peerDependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pg_hashids@0.0.17': + resolution: {integrity: sha512-DGi/c6XCkwXq9lcdmq0tBzlpjx+CTUPsIg43Ave4RGqVR78w7rWqwpEA0L4oEx4z1QPrFASYxCetFPpwsmKgwg==} + peerDependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pg_ivm@0.0.17': + resolution: {integrity: sha512-8KF4PGdN/QdB+dxsGjNpFkPyDd8YrMoLDuNkbS4nZ7Xj2bEpEt2RN/dYd9ZI+tIosy98Uu7WHLHxoepEpBGmSg==} + peerDependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pg_textsearch@0.0.18': + resolution: {integrity: sha512-Fb7Aw8H+XsiwfojJsXSMHBX4lWANU8M2aHKe5hQkEUzm56DZYnMhKTJjDx84lmmRw4wb4MbZMQOa4dT32EbGAQ==} + peerDependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pg_uuidv7@0.0.17': + resolution: {integrity: sha512-eWfMwDE/S8DLYE6GCztbfnKTnE1h0BCJ1x6QqpZf+t51CkuDe6WmV2t8ubOIN/qBpr7IQH35SUZaeHnqkuY4LA==} + peerDependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pgtap@0.0.17': + resolution: {integrity: sha512-36rMqHS3EfY/jlpcbw5IXp1qD3WXXD1fCYQBBbIFdYUKb70RrJT2Jv8S/kZNeDByBmCm9cZmCgsFzhfbQyvmKg==} + peerDependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pgvector@0.0.17': + resolution: {integrity: sha512-tOFBigmwl+6qqZ5y2wOUeDngKeO22lLslSQjmaZri5WAh7V3bDUQaxxlT9MJLSPmdwPjR0NRHqk2V5yFtgLUYQ==} + peerDependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-socket@0.1.3': + resolution: {integrity: sha512-LAciWM0M1dCL8hlsxu2venbVZcdxema0BtDfpWYVqr+Y468UADw0pFWidhKw1M8sfJ8rdLT71tjMmnirf/IZRQ==} + hasBin: true + peerDependencies: + '@electric-sql/pglite': 0.4.3 + + '@electric-sql/pglite-socket@0.2.19': + resolution: {integrity: sha512-OwZ2U2ICkI2dQXwZKrfK68i1XIjIx4aU658AwxYZGteXSCZ7MOkpeznAwaA+tOJtNzBegxz4cW/Hcu1L/KuE+A==} + hasBin: true + peerDependencies: + '@electric-sql/pglite': 0.5.16 + '@electric-sql/pglite-age': 0.0.17 + '@electric-sql/pglite-pg_hashids': 0.0.17 + '@electric-sql/pglite-pg_ivm': 0.0.17 + '@electric-sql/pglite-pg_textsearch': 0.0.18 + '@electric-sql/pglite-pg_uuidv7': 0.0.17 + '@electric-sql/pglite-pgtap': 0.0.17 + '@electric-sql/pglite-pgvector': 0.0.17 + + '@electric-sql/pglite-tools@0.3.3': + resolution: {integrity: sha512-AlzLJTRJ8+UFgK8CmxIpyIpJ0+YaFw02IiOSdYrqxwPXdSyeIShz8aa9Tq+tYFXdPwcaMp/Fc80mQZ1dkOQ/wg==} + peerDependencies: + '@electric-sql/pglite': 0.4.3 + + '@electric-sql/pglite@0.4.3': + resolution: {integrity: sha512-ichuWTgtd4mOM1G4SpyGJa5trT03lWbMypDV0fUXUCXg5hiHqVAz/bZyV68NqmkLB7WcYmj1RMJVSp8HV/v/ZQ==} + + '@electric-sql/pglite@0.5.16': + resolution: {integrity: sha512-Nj8KcIsJL748W408U2N8q4+9IlONdpRIU8MJypIAAINMJ5nqKyqpX7Mgg/5XKkXiAib3AoZGR6hnJFlrlLBrcg==} + + '@emnapi/core@2.0.0-beta.2': + resolution: {integrity: sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==} + + '@emnapi/runtime@2.0.0-beta.2': + resolution: {integrity: sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==} + + '@emnapi/wasi-threads@2.2.0': + resolution: {integrity: sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==} + + '@esbuild/aix-ppc64@0.28.2': + resolution: {integrity: sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.28.2': + resolution: {integrity: sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.28.2': + resolution: {integrity: sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.28.2': + resolution: {integrity: sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.28.2': + resolution: {integrity: sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.28.2': + resolution: {integrity: sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.28.2': + resolution: {integrity: sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.28.2': + resolution: {integrity: sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.28.2': + resolution: {integrity: sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.28.2': + resolution: {integrity: sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.28.2': + resolution: {integrity: sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.28.2': + resolution: {integrity: sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.28.2': + resolution: {integrity: sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.28.2': + resolution: {integrity: sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.28.2': + resolution: {integrity: sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.28.2': + resolution: {integrity: sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.28.2': + resolution: {integrity: sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.28.2': + resolution: {integrity: sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.28.2': + resolution: {integrity: sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.28.2': + resolution: {integrity: sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.28.2': + resolution: {integrity: sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.28.2': + resolution: {integrity: sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.28.2': + resolution: {integrity: sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.28.2': + resolution: {integrity: sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.28.2': + resolution: {integrity: sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.28.2': + resolution: {integrity: sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@inquirer/ansi@2.1.0': + resolution: {integrity: sha512-63GU5AD9KhNbWM0jlhHoMJTEFck2upFOPxHlnCKf3xYTV3rjTUUQfodihmTnfYQzMLS29oy8lK/gA1eJgu4bhA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/checkbox@5.3.0': + resolution: {integrity: sha512-3QQSO87A+JoRtOtjtsgX2enwTL+3+VBVrkUpdqrIxMOgn5+W5sE57PcCPAiNUIESHxV4Q6mNEGxq2xLmRa0/yw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/confirm@6.4.0': + resolution: {integrity: sha512-+DCZxrOF01Q/1SzTQkgycAQPS/Jf+Yol0h1P/MVmopukTsxGOu1h/LKqf30y0eHKFZYYrgUMVhGDhEbPmSPi9A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/core@12.1.0': + resolution: {integrity: sha512-6H7usRWw4Gdjgpaem10CA5MfZ/xoYPGyInriR1Xubqjv+SVo8LIJ1erpFxW5JgCza6VZVZiKLTko7RtUU3AQMg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/editor@5.4.0': + resolution: {integrity: sha512-L7vdCe4jnMpzhDisu1tAnr4WGvfPOVz+vNFXyIIL7O2Ycn/n90sn1ARvg+4cwzLf+us51BE/cX7uhnrLcal3+g==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/expand@5.2.0': + resolution: {integrity: sha512-AOp2KQk7QojUyWOP7VkqdBWmxLRaVH58wQMx3N4//P530EDtpVp1EWIjAJubx9ZohWS/UCEpIkA1TuiNki0iOA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/external-editor@3.1.0': + resolution: {integrity: sha512-27JAkF38nXqXaoveU28iA/+Z8nutnF8B3JsbdToPHn9WnkrsMtZ0/YoJ29YwbtFexYIo+tIy6ikMvTdHKjjmGA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/figures@2.1.0': + resolution: {integrity: sha512-CR9u2PME23jxy2SOyTb117efwAAPm98Zr+LoWI+PiQ55D6U8Yeu/HyFTxwytKhPa6oxAGzdsm2Kg7oLS6B9z8w==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + '@inquirer/input@5.2.0': + resolution: {integrity: sha512-sIUPnN2X7M+7dq3RUd+e9QRacYnM+6B+kSucwQgj5VC5Eo/f+CIr2NyPBumxsViI+wzfokkgop/3x3KfHxNyJw==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/number@4.3.0': + resolution: {integrity: sha512-xYkX4sPVgox0F7yQwpz/MByWjOGdLEf1pdjH+Lji2gAzSs2xezz5bN5YgS1n0tx9wo0mRhGvq1KJGtvDZ9XXcQ==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/password@5.3.0': + resolution: {integrity: sha512-KVqW4G/UbMK06uBN76xF89JKYC9YBWU7v+Kc2tUwMCO8pg3ASBr0HVabl1KaSqF94O2KiRu8aKx4EicN78PK+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.2': + resolution: {integrity: sha512-QoRB4wFIjgH5iOhSjoIKMkTvSHDuV+O3OITlIqAYO0oK5x364GJILXiMBvlPiE+klg7Xx9tq5XVqQHcGUDYYPA==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/prompts@8.7.5': + resolution: {integrity: sha512-l/IWwC+QhOyXgxkZloOh+n5quGzc1m5ZawyzBmoizCZaxbJeLRdS3pStoqg/JVInJRXaG5aHMhjK6H6oYiBC9A==} + engines: {node: '>=23.5.0 || ^22.13.0 || ^20.17.0'} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/rawlist@5.4.0': + resolution: {integrity: sha512-x42wcy465GM5/mHNKBFdAJbLlLyzmYqr/DEa6F49nHpI+03EFwRCRKeLGQakx5XqZ4unc2yFuS78qAD4Rb0iFA==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/search@4.4.0': + resolution: {integrity: sha512-UJ+9tkzPT1AjnvjuPFYcOdO3BVeN28bfSXajYRFZTRgA9OiNl4k2Nn2cHHPwiIDyPHlvOnmE9ZOHyXhPHtvb+A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/select@5.3.0': + resolution: {integrity: sha512-Fmgfl0qjqCQo+/tjQpgnRXKh5N7/VpYcJh+AlYU2eHmHZLMGUBDzo+Gwc2ODzWJfXNRZmgaMhz4qULcO/C/rXg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@inquirer/type@4.3.0': + resolution: {integrity: sha512-/IA8q2nyjgyl0NGSjqiRXB8gh3We7Pzx9C0c+6Zoolu905jFc79anerrUG7+n65+qs310DRK43yi2WDI8nY59A==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + peerDependencies: + '@types/node': '>=18' + peerDependenciesMeta: + '@types/node': + optional: true + + '@isaacs/nonrecursive-glob-match@1.1.0': + resolution: {integrity: sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==} + + '@jridgewell/sourcemap-codec@1.6.0': + resolution: {integrity: sha512-T7jf+5zgsZHwNJ4lvQ7/aezbyk0nNX+zJVWpmHA7VYsEx7a7qr5Rg5IbtJFqkgze5Y2sruq1RUY8Q837Od7iFw==} + + '@lukeed/csprng@1.1.0': + resolution: {integrity: sha512-Z7C/xXCiGWsg0KuKsHTKJxbWhpI3Vs5GwLfOean7MGyVFGqdRgBbAjOCh6u4bbjPc/8MJ2pZmK/0DLdCbivLDA==} + engines: {node: '>=8'} + + '@microsoft/tsdoc@0.17.1': + resolution: {integrity: sha512-VHyYyyoH63jFoO3shpw9Zfijk5v/9p/VrClW35z0/q6ooK7sSmxpzOkS4iZPxs3vO4XtBW4H38HRAKkAMIK7DA==} + + '@napi-rs/wasm-runtime@1.2.6': + resolution: {integrity: sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + peerDependencies: + '@emnapi/core': ^1.7.1 || 2.0.0-beta.2 + '@emnapi/runtime': ^1.7.1 || 2.0.0-beta.2 + + '@nestjs/cli@12.0.13': + resolution: {integrity: sha512-dfb9zbM4VRUQnkjt0IyhYWxiScDq/4j8m6Y5f6PKvg6LK47XbzBeWKCBdqVFQV85uAHdJiMa8nyemAu0xvujRQ==} + engines: {node: '>= 20.11'} + hasBin: true + peerDependencies: + '@rspack/core': ^1.7.7 || ^2.1.10 + '@swc/cli': ^0.8.0 + '@swc/core': ^1.15.18 + fork-ts-checker-webpack-plugin: ^9.1.0 + ts-loader: ^9.5.4 + tsconfig-paths-webpack-plugin: ^4.2.0 + webpack: ^5.105.4 + webpack-node-externals: ^3.0.0 + peerDependenciesMeta: + '@rspack/core': + optional: true + '@swc/cli': + optional: true + '@swc/core': + optional: true + fork-ts-checker-webpack-plugin: + optional: true + ts-loader: + optional: true + tsconfig-paths-webpack-plugin: + optional: true + webpack: + optional: true + webpack-node-externals: + optional: true + + '@nestjs/common@12.5.1': + resolution: {integrity: sha512-hLs7EN+F6qByf9JjWyu0/hOcB7vWoV0jagpfwt1CeE9Iapr1EAoAHiysW9nIAkWmWfsMMGuzilQE9Ky8E7qrYA==} + peerDependencies: + class-transformer: '>=0.4.1' + class-validator: '>=0.13.2' + reflect-metadata: ^0.1.12 || ^0.2.0 + rxjs: ^7.1.0 + peerDependenciesMeta: + class-transformer: + optional: true + class-validator: + optional: true + + '@nestjs/core@12.5.1': + resolution: {integrity: sha512-jka7pfgn8Q1kWxT+tbNXzAJNx+DIVid/cldQiUZC2OpE49JNSvjI1EuwFN4ZM+5+/VLdRqOJubJuGR1OES43pw==} + engines: {node: '>= 20'} + peerDependencies: + '@nestjs/common': ^12.0.0 + '@nestjs/microservices': ^12.0.0 + '@nestjs/platform-express': ^12.0.0 + '@nestjs/websockets': ^12.0.0 + reflect-metadata: ^0.1.12 || ^0.2.0 + rxjs: ^7.1.0 + peerDependenciesMeta: + '@nestjs/microservices': + optional: true + '@nestjs/platform-express': + optional: true + '@nestjs/websockets': + optional: true + + '@nestjs/mapped-types@12.0.1': + resolution: {integrity: sha512-AHkgYt6UgJ5XBE3v4zGUUdfPD7kCGBzOa/uHfOYkkRTfojYWLRCCdAJiyWNpIFHCySJH/MR2F/z4MrMo5YheHg==} + engines: {node: '>=20.19.0'} + peerDependencies: + '@nestjs/common': ^10.0.0 || ^11.0.0 || ^12.0.0 + class-transformer: ^0.4.0 || ^0.5.0 + class-validator: ^0.13.0 || ^0.14.0 || ^0.15.0 + reflect-metadata: ^0.1.12 || ^0.2.0 + peerDependenciesMeta: + class-transformer: + optional: true + class-validator: + optional: true + + '@nestjs/platform-express@12.5.1': + resolution: {integrity: sha512-pl/ZPErFFsWRaqcKlbQQyME5Zup9GmdBYDy4Vqh0NHoe2LEz0au78OMDNFytuHx2VDvxn6oBiFYigKXrS9embg==} + peerDependencies: + '@nestjs/common': ^12.0.0 + '@nestjs/core': ^12.0.0 + rxjs: ^7.1.0 + + '@nestjs/schematics@12.0.13': + resolution: {integrity: sha512-Z9Xtp67fO5NuU7FgB/u44peK3XQnrL4qLxkf1dp6fqUk9l3ATBQneRNrWaC8e+HaimX8olxq2mH2ZXhhfalDhQ==} + engines: {node: ^22.22.3 || ^24.15.0 || >=26.0.0} + peerDependencies: + prettier: ^3.0.0 + typescript: '>=6.0.0' + peerDependenciesMeta: + prettier: + optional: true + + '@nestjs/swagger@12.1.2': + resolution: {integrity: sha512-MHQcw9eoO6crcOuBsdUXB/o4yV4OORtU/UNXELAc6WpQ6lxxwgl/CoVCILnRGWeDOxk4/E2s6Ftqu7xvb15X+A==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + '@fastify/static': ^8.0.0 || ^9.0.0 || ^10.0.0 + '@nestjs/common': ^12.0.0 + '@nestjs/core': ^12.0.0 + class-transformer: '*' + class-validator: '*' + reflect-metadata: ^0.1.12 || ^0.2.0 + typescript: ^5.5.0 || ^6.0.0 + peerDependenciesMeta: + '@fastify/static': + optional: true + class-transformer: + optional: true + class-validator: + optional: true + typescript: + optional: true + + '@oxc-project/types@0.156.0': + resolution: {integrity: sha512-1Duyg48TdJNdyhEB8Xn1L36bT9Pv6GUtlKjHxOys8xkaF/rQq3XJE+bAurSK/AgIz5mGFsb77cn9Pb20+WCScw==} + + '@prisma/adapter-pg@7.10.1': + resolution: {integrity: sha512-EP9ruPYHjKP80WZlb5qVaEXKgZjJieBFjAxcBtQnDAHD6+16UN4keVmBh6L/RUpuDQT2FQRbvKNgq5d4Ix+IkQ==} + + '@prisma/client-runtime-utils@7.10.1': + resolution: {integrity: sha512-AzoATVIgmO3lcZfM443+9SI7+cyLMW2+Psw4op8WQHpHvHCX//CKxv8fwhiL0yGWF8DjdQrFewxrZo5McBdB8g==} + + '@prisma/client@7.10.1': + resolution: {integrity: sha512-5tgAbFGh//zVOC6WPNVgziOErJHYkUE+wmqCwbIyq6IrTXUYtv9y2iBFGh/Owo99Mx0+cr0j1FOrxkYBMuyhaQ==} + engines: {node: ^20.19 || ^22.12 || >=24.0} + peerDependencies: + prisma: '*' + typescript: '>=5.4.0' + peerDependenciesMeta: + prisma: + optional: true + typescript: + optional: true + + '@prisma/config@7.10.1': + resolution: {integrity: sha512-+0swF5ELUa3P/9cIR26+gpYjjCbGE0qvEBZhV4zMDkYsrtHjZ884MQbOnWFWXj600N0sSJNnHbtBqe12yDngWg==} + + '@prisma/debug@7.10.1': + resolution: {integrity: sha512-eFCAkGZ13D/qPg48JBlG5IWi9cSBBOC7oG3abDPcAkYioDWlIjh0YJJLK2J7qo5S+xWWD8I6egAN/8KbCaiMCA==} + + '@prisma/debug@7.2.0': + resolution: {integrity: sha512-YSGTiSlBAVJPzX4ONZmMotL+ozJwQjRmZweQNIq/ER0tQJKJynNkRB3kyvt37eOfsbMCXk3gnLF6J9OJ4QWftw==} + + '@prisma/dev@0.24.17': + resolution: {integrity: sha512-UvdZzmpFwknnfreh6Jije84ekkYGPYEJhXG1tFzCsCfQyzJifrOo38eZc0qajzvaC6OLUOrN9ML5XfCnEZL9DA==} + + '@prisma/driver-adapter-utils@7.10.1': + resolution: {integrity: sha512-DJ4c6xvVnm3s9ZUyql9nCUicADSqyvH+CjXRCM9L6m5zJxCNmebCElG6X4irICq3rosBwlX+S19Dxq/4IrZk3A==} + + '@prisma/engines-version@8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8': + resolution: {integrity: sha512-XjXmwjN2NE340RpXoXv8ZF8aNAvr0FE+7gNfkKeW6vyjXs7F8uxvEbWQoVrhioXDQoIsnNmv7r+wxvzfdEZaWA==} + + '@prisma/engines@7.10.1': + resolution: {integrity: sha512-R6/ghv1Bu36FhCdQLFof1pNtyoWoeDzJLYeTKjgqb4eGtOAJx7ZqJtcm4pzkahLfZ9rYz8AkmsMDwkyiYbXPCQ==} + + '@prisma/fetch-engine@7.10.1': + resolution: {integrity: sha512-qZezeaExLWG2ptbHOrMxdiWluKHgqEclTdJbvY6pk6+Wg7EiVkeq5U3cXz9ti8nd0bngNvsDgledLHVRg5LF1w==} + + '@prisma/get-platform@7.10.1': + resolution: {integrity: sha512-iVnghHne5vcaobBjPVCMEjh5r/1UCj394EIGTUclasFRatpR/MQwcM2veLv5kgoFSyYP54nch/lNFCQRYcDxvg==} + + '@prisma/get-platform@7.2.0': + resolution: {integrity: sha512-k1V0l0Td1732EHpAfi2eySTezyllok9dXb6UQanajkJQzPUGi3vO2z7jdkz67SypFTdmbnyGYxvEvYZdZsMAVA==} + + '@prisma/query-plan-executor@7.2.0': + resolution: {integrity: sha512-EOZmNzcV8uJ0mae3DhTsiHgoNCuu1J9mULQpGCh62zN3PxPTd+qI9tJvk5jOst8WHKQNwJWR3b39t0XvfBB0WQ==} + + '@prisma/streams-local@0.1.11': + resolution: {integrity: sha512-0TcebL559MByKqTJ+SsrFIEg228iw8UCVRFckzgfRSiJqczhs+MuAgWOF9lnOIV/IVqvu+KMnFTH0eDeTQMpUg==} + engines: {bun: '>=1.2.0', node: '>=22.0.0'} + + '@prisma/studio-core@0.33.0': + resolution: {integrity: sha512-V2fX/nKEymNTrHXwfP26PGjoLStO35Ogu+ex7CFJbLrMYEcZxxZpiSNOs7px23Hk5mzLWvM5RsqG6Ka+rha+wg==} + engines: {node: ^20.19 || ^22.12 || >=24.0, pnpm: '8'} + peerDependencies: + '@types/react': ^18.0.0 || ^19.0.0 + react: ^18.0.0 || ^19.0.0 + react-dom: ^18.0.0 || ^19.0.0 + + '@radix-ui/primitive@1.1.3': + resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==} + + '@radix-ui/react-compose-refs@1.1.2': + resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-primitive@2.1.3': + resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-slot@1.2.3': + resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-toggle@1.1.10': + resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==} + peerDependencies: + '@types/react': '*' + '@types/react-dom': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + '@types/react-dom': + optional: true + + '@radix-ui/react-use-controllable-state@1.2.2': + resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-effect-event@0.0.2': + resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@radix-ui/react-use-layout-effect@1.1.1': + resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==} + peerDependencies: + '@types/react': '*' + react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc + peerDependenciesMeta: + '@types/react': + optional: true + + '@rolldown/binding-android-arm-eabi@1.2.19': + resolution: {integrity: sha512-e+Ebe0WT+9tbXmNKPIiC8YrWAHYwug3m6i4p3rZGGulfZri1jtI4HslT+OZnFf/OIHowWF71DTlHwXBP2SiA7A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [android] + + '@rolldown/binding-android-arm64@1.2.19': + resolution: {integrity: sha512-hOombrTJ+szt2ciEzS7oCA78lMPBgF5UMQWCJIyNfnrI7GLl8HYoFqCnpL2gcPOaXMqryGCU5ExdQKyDDcC+yA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [android] + + '@rolldown/binding-darwin-arm64@1.2.19': + resolution: {integrity: sha512-XoMA2pwCKGTQzUjPgtRwkedH4WmXhdIPKT6l6oOxd1PUbNodGI6DcBekgN7EC//+x3pfBYX/qL1gNmZAqivw5g==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [darwin] + + '@rolldown/binding-darwin-x64@1.2.19': + resolution: {integrity: sha512-zo8EsSSwMZCY/e+fRnGaX02YGgvJD0yvhNi/9hpGPA2MJ9ZF8dPCw75UGfpI6OpQ/myR/dIYmogRvqiZD0TrXg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [darwin] + + '@rolldown/binding-freebsd-x64@1.2.19': + resolution: {integrity: sha512-O8ISAOfI1nj7AuBPd30FSF47z7f7lzlk5poQVGgiikvQuGEBFYvW8ki+UEnT+YJPnNGjQzn304klt4O9FUE7mA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [freebsd] + + '@rolldown/binding-linux-arm-gnueabihf@1.2.19': + resolution: {integrity: sha512-/lYCba5NO0yq4S0jGMH8QTBtkvQxoXjoQWzF5BcWp9MjB9jxVRD1GQDNofkVjcOj30DWyhLIN/4Oe60JKzaONw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm] + os: [linux] + + '@rolldown/binding-linux-arm64-gnu@1.2.19': + resolution: {integrity: sha512-pm/apFMBnSbFb3O6nG5pHO1iqHhZrjGDFEjSm+ot9J17XXPvH9L90y5h+jgfHCE+Qdlsvy8qKEcU4VKxgjD+vA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + + '@rolldown/binding-linux-arm64-musl@1.2.19': + resolution: {integrity: sha512-K1SmQp3FFichn8oqrNIwvFoZ5wcvjC7goBzpaMNvLf9FZc+QB/QvLmnpJZgAAGHiD980tP8FZZnXk2K94rvlxg==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [linux] + + '@rolldown/binding-linux-ppc64-gnu@1.2.19': + resolution: {integrity: sha512-I0xwD57jP/3A7+5UPZin2w8Y7XHEmEM5zqpYZOcQ45MlNW6tUJUziymV3yRr7rL4vwyfEcRsRksC4a7Kc08p5Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [ppc64] + os: [linux] + + '@rolldown/binding-linux-s390x-gnu@1.2.19': + resolution: {integrity: sha512-BrtEHT24SNXj9HiXqy+s/kXiSiQGt6EKCPUlRirAoIioVxKGnbXBUEkbZASAei7iZJB0/Ynm+0JP00Ipx7AnSw==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [s390x] + os: [linux] + + '@rolldown/binding-linux-x64-gnu@1.2.19': + resolution: {integrity: sha512-rm75/9DkHKeU2WnA8w4X94WGYgLlDCFCfkQC+4bguVJmC/jvDRv2B+2wLOYhyE0fVuv7//Ckk39OoOufyCu76Q==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + + '@rolldown/binding-linux-x64-musl@1.2.19': + resolution: {integrity: sha512-irh/4+iYFM4GAzpluDErgjz89bj6NDtqqMAG/6O1LG38Ed3NpyebzCpcVNkFW8uhy+/3/BocUvnXDR33CXWe9A==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [linux] + + '@rolldown/binding-openharmony-arm64@1.2.19': + resolution: {integrity: sha512-+KWTWNoPt+CfSq94CiceWu3yPE+QzkaG+phPyz9G60tmZLwfQkcA4AeksafzvJAw4pvg1mcd5a1TkUqVv0s4JA==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [openharmony] + + '@rolldown/binding-wasm32-wasi@1.2.19': + resolution: {integrity: sha512-7EH+skOsl5qpWnK0vzamgJFhOv1cwxQpsxm8tI883K9fur5c27p8q87fzEO6BbBPabA2/+s/zR63/pLc137iOg==} + engines: {node: ^20.19.0 || ^22.13.0 || >=23.5.0} + cpu: [wasm32] + + '@rolldown/binding-win32-arm64-msvc@1.2.19': + resolution: {integrity: sha512-3Q1Yg1Q7tEvBWoZf5rFvG/GKZQPgwfru+p4wBajDfJFBs0SHCpL++dfTjW9gyAKd1T7ZpIYvdaUax7Pa/IhFVQ==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [arm64] + os: [win32] + + '@rolldown/binding-win32-x64-msvc@1.2.19': + resolution: {integrity: sha512-y/sqRRc6d7hECzOFc5n3LSeqctmIp9mMjY1Kq4s14uLPd/LZ4z7i1zrW6fMtp2mPeuQIC4e6ULMcwQzMomqQag==} + engines: {node: ^20.19.0 || >=22.12.0} + cpu: [x64] + os: [win32] + + '@rolldown/pluginutils@1.1.1': + resolution: {integrity: sha512-glFIJDvLNDtJhT9qrMFWLPbvS+skxgt4L0K8Ei2YtnhPysAJnsI7nyxSJxKj4ADeKX0OLjC4ntRkwpLOoS3rwA==} + + '@scarf/scarf@1.4.0': + resolution: {integrity: sha512-xxeapPiUXdZAE3che6f3xogoJPeZgig6omHEy1rIY5WVsB3H2BHNnZH+gHG6x91SCWyQCzWGsuL2Hh3ClO5/qQ==} + + '@sindresorhus/is@4.6.0': + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} + + '@standard-schema/spec@1.1.0': + resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==} + + '@tokenizer/inflate@0.6.1': + resolution: {integrity: sha512-EuqSyHdOXN61cc5/rsW6uUn1TJZJGZr56jlkUbsLwVJ6uHgvwQyFkYfOCf+zzPFAYjftPk1WeJnEhpLVvzbm1A==} + engines: {node: '>=18'} + + '@tokenizer/token@0.3.0': + resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==} + + '@tybys/wasm-util@0.10.5': + resolution: {integrity: sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==} + + '@types/body-parser@1.19.6': + resolution: {integrity: sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==} + + '@types/chai@5.2.3': + resolution: {integrity: sha512-Mw558oeA9fFbv65/y4mHtXDs9bPnFMZAL/jxdPFUpOHHIXX91mcgEHbS5Lahr+pwZFR8A7GQleRWeI6cGFC2UA==} + + '@types/connect@3.4.38': + resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} + + '@types/d3-array@3.0.3': + resolution: {integrity: sha512-Reoy+pKnvsksN0lQUlcH6dOGjRZ/3WRwXR//m+/8lt1BXeI4xyaUZoqULNjyXXRuh0Mj4LNpkCvhUpQlY3X5xQ==} + + '@types/d3-color@3.1.0': + resolution: {integrity: sha512-HKuicPHJuvPgCD+np6Se9MQvS6OCbJmOjGvylzMJRlDwUXjKTTXs6Pwgk79O09Vj/ho3u1ofXnhFOaEWWPrlwA==} + + '@types/d3-delaunay@6.0.1': + resolution: {integrity: sha512-tLxQ2sfT0p6sxdG75c6f/ekqxjyYR0+LwPrsO1mbC9YDBzPJhs2HbJJRrn8Ez1DBoHRo2yx7YEATI+8V1nGMnQ==} + + '@types/d3-format@3.0.1': + resolution: {integrity: sha512-5KY70ifCCzorkLuIkDe0Z9YTf9RR2CjBX1iaJG+rgM/cPP+sO+q9YdQ9WdhQcgPj1EQiJ2/0+yUkkziTG6Lubg==} + + '@types/d3-geo@3.1.0': + resolution: {integrity: sha512-856sckF0oP/diXtS4jNsiQw/UuK5fQG8l/a9VVLeSouf1/PPbBE1i1W852zVwKwYCBkFJJB7nCFTbk6UMEXBOQ==} + + '@types/d3-interpolate@3.0.1': + resolution: {integrity: sha512-jx5leotSeac3jr0RePOH1KdR9rISG91QIE4Q2PYTu4OymLTZfA3SrnURSLzKH48HmXVUru50b8nje4E79oQSQw==} + + '@types/d3-path@3.1.1': + resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==} + + '@types/d3-scale@4.0.2': + resolution: {integrity: sha512-Yk4htunhPAwN0XGlIwArRomOjdoBFXC3+kCxK2Ubg7I9shQlVSJy/pG/Ht5ASN+gdMIalpk8TJ5xV74jFsetLA==} + + '@types/d3-shape@3.1.7': + resolution: {integrity: sha512-VLvUQ33C+3J+8p+Daf+nYSOsjB4GXp19/S/aGo60m9h1v6XaxjiT82lKVWJCfzhtuZ3yD7i/TPeC/fuKLLOSmg==} + + '@types/d3-time-format@2.1.0': + resolution: {integrity: sha512-/myT3I7EwlukNOX2xVdMzb8FRgNzRMpsZddwst9Ld/VFe6LyJyRp0s32l/V9XoUzk+Gqu56F/oGk6507+8BxrA==} + + '@types/d3-time@3.0.0': + resolution: {integrity: sha512-sZLCdHvBUcNby1cB6Fd3ZBrABbjz3v1Vm90nysCQ6Vt7vd6e/h9Lt7SiJUoEX0l4Dzc7P5llKyhqSi1ycSf1Hg==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + + '@types/estree@1.0.10': + resolution: {integrity: sha512-lTyOMnOcmRBzdCv6/4zUZCrEhV0xrqQiUZBZtVcbmLHBXKLnN8q89v/wKRF/Q0HbwVsqbIG3o5HDoFl9sduM+g==} + + '@types/express-serve-static-core@5.1.3': + resolution: {integrity: sha512-dPfW8NFiOF4wOHc7+N/QSxlY9cfSsenewGbAz8C8U/MULPd/YZ27LvJUIlzaXie7e6Ove9YunJGgC9tbHD2cKw==} + + '@types/express@5.0.6': + resolution: {integrity: sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==} + + '@types/geojson@7946.0.16': + resolution: {integrity: sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==} + + '@types/http-errors@2.0.5': + resolution: {integrity: sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==} + + '@types/lodash@4.17.27': + resolution: {integrity: sha512-VenMRv/eKNrspX9v3H4dbmjsrnCOYdYBG3kxXKk3dG6X+urBGcj2Prww3xw1U5K4FV/mE4h5GbWd0szEKf+9ew==} + + '@types/node@24.19.2': + resolution: {integrity: sha512-93d49wCWJkCyN87MxLpNN6KXPCwFw7bVUg79mGUV1OS40JGWwVCr8n61DXCSqz7CV6/VfPkb7xec7uP2M+QHWQ==} + + '@types/pg@8.23.1': + resolution: {integrity: sha512-fKVHpikPdg4GKks3JuLEhvwSyvwzF23hnabPy6DD8ljVbC7+6J5dQzdv4arV6jqq57djnMgs1HKBxX4P8aBI3A==} + + '@types/qrcode@1.5.6': + resolution: {integrity: sha512-te7NQcV2BOvdj2b1hCAHzAoMNuj65kNBMz0KBaxM6c3VGBOhU0dURQKOtH8CFNI/dsKkwlv32p26qYQTWoB5bw==} + + '@types/qs@6.15.1': + resolution: {integrity: sha512-GZHUBZR9hckSUhrxmp1nG6NwdpM9fCunJwyThLW1X3AyHgd9IlHb6VANpQQqDr2o/qQp6McZ3y/IA2rVzKzSbw==} + + '@types/range-parser@1.2.7': + resolution: {integrity: sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==} + + '@types/react@19.3.0': + resolution: {integrity: sha512-N0rFCuH9YoxG9/m61l9MfpJKfmLOVU0em7ipIz6TRgSSkvReLB9vL85GB+yr8Bs5leqpvg96JSwF4ZS1s4viQg==} + + '@types/send@1.2.1': + resolution: {integrity: sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==} + + '@types/serve-static@2.2.0': + resolution: {integrity: sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==} + + '@visx/curve@4.0.1-alpha.0': + resolution: {integrity: sha512-jRu61Uz274pV1zyioXmboyrLutYbnKsgjj4njSGCnhdXj5GkZvZbg+ThDb6oOzoAnJOBRLz4rzPlWvNJOzuVMg==} + + '@visx/event@4.0.1-alpha.0': + resolution: {integrity: sha512-EQqCMSv/s8NbFjo+hz3FKsvvYfP+2QslsFJ/24/O5l/W+7UC6J6aAvO0ujVwrTwdYbuQ+vhxKi1xdPdKR/qj1g==} + + '@visx/grid@4.0.1-alpha.0': + resolution: {integrity: sha512-rycutGmTHO+znNdPumheWMglm7YfpffvRwUkVy5zy4WoORIuKTMkDxwnOzHG2xMxU3EE/YCd37xFV5AxA30yeg==} + peerDependencies: + react: ^16.14.0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 + + '@visx/group@4.0.1-alpha.0': + resolution: {integrity: sha512-V19l7iQ7jccBv8kao/EByuI6o4xtxzzLV9nqVI1hRvmdzTVsuLpqlwzYCZUXJaTVvUWf8s4D2SQFjGkj/Nw+0w==} + peerDependencies: + react: ^16.14.0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 + + '@visx/point@4.0.1-alpha.0': + resolution: {integrity: sha512-ijTfr/Nx09f03vIj9nyTr3z4Xth4Y75427UaogJh6dnIRLMEFHQOwNu791sbfiNj0a+ZXuaE32h0vKrFe4/8Qg==} + + '@visx/responsive@4.0.1-alpha.0': + resolution: {integrity: sha512-o+1zGywQZY0+yOx3Iw87wc4bbPJRr/HnIukTwfOz4UVyj9pB1OQNVHB7OORO1+LBHJceWpB31co/ZV9KHncKrA==} + peerDependencies: + react: ^16.14.0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 + + '@visx/scale@4.0.1-alpha.0': + resolution: {integrity: sha512-nzjeE87vFSAXGWFiiNfBpNLAf0Q8Qmf6syvKLjqNi4kGZkdhbUll3E/59YsgWXmjM8+llPLWzGsP+JPvo5eq1A==} + + '@visx/shape@4.0.1-alpha.0': + resolution: {integrity: sha512-62QeiVNmPlterQGwhkEDcbq7M0MqY0lBsK5QKXtM9ZoPZWkuGV3aykA3+Xu20B2FAvyJq4LqJzBc7Sxr+EAdbA==} + peerDependencies: + react: ^16.14.0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0 + + '@visx/vendor@4.0.0-alpha.0': + resolution: {integrity: sha512-6I+MuqXBcv9jnlcVowHoHKSdk9gXTWkHLKyqBwRWg7LY6A3Ei8SHfubpqGV5rBUSppxMq2RszPJUS6w+H0YgmQ==} + + '@vitest/expect@4.1.12': + resolution: {integrity: sha512-vFlTt+YEu9WBpNjdGayNmlMVzrWPi1+sv853/7t2FU7hpO5gAFBKHzQmkCq5Xjpr+evegF2994LQT3hF3mRlqQ==} + + '@vitest/mocker@4.1.12': + resolution: {integrity: sha512-fKShNpKZzupWZuY0z7egydvL0sqW4INEZBEExMBMAa6izlENEVHwoXgdaTCaBZ5fwlr4xf2o1wXC83n9RpO+NA==} + peerDependencies: + msw: ^2.4.9 + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@4.1.12': + resolution: {integrity: sha512-XW9O8+Mxx4VpCtkYdMJLZQQwsVryP9wk7cPKDxtXFfwSak6yRh5+2fep/Y0XF/ElBvJHq8bcYdi6aeuai0opZA==} + + '@vitest/runner@4.1.12': + resolution: {integrity: sha512-NKlVKCr5QnCe8jijdMnmkpHHU+WTqiLFR6G0pHji9uRjXK9xJl1k1nTw6F3pOOj2PDcsDt2GKQMI7wIsaT491w==} + + '@vitest/snapshot@4.1.12': + resolution: {integrity: sha512-ko1y1Qgb/slzQ9mr+b89Cuqud8WG1TKtsPD8r7ZUBdvVOGt85Af2HwCqHujrhwJq95hs/9RM7fcAPg57o1vlzw==} + + '@vitest/spy@4.1.12': + resolution: {integrity: sha512-RGq9x4JNGNTZHEJxvN0oSiJjeSCExm0n2gZKKJZHY9cX5AVA6M7VJILBT3ZJ/tJ/0J9uWT7fETV9/btoi//vSg==} + + '@vitest/utils@4.1.12': + resolution: {integrity: sha512-Q3awXrwOfEV+qc3WmO5ONyE0yO7Q1gQ9/oyHxGLZ/pl7N3NO/ZztqQwKLuwMkV+CA1JYSIeO3gkHnRDIo4AVaA==} + + accepts@2.0.0: + resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==} + engines: {node: '>= 0.6'} + + ajv-formats@3.0.1: + resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true + + ajv@8.20.0: + resolution: {integrity: sha512-Thbli+OlOj+iMPYFBVBfJ3OmCAnaSyNn4M1vz9T6Gka5Jt9ba/HIR56joy65tY6kx/FCF5VXNB819Y7/GUrBGA==} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.6.0: + resolution: {integrity: sha512-XZ5apbzreCbXSKwPjJstu8R0zOi247w3XYwWxtwBXgpZrCyc1Ka7p9/xY0A9/diMewmHbEKz+FIraWaEWjlN5g==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansis@4.5.0: + resolution: {integrity: sha512-KwIVkfFfJSSzBmZhDGuTmkhWqTdyB5oNVzzznBJbBZ5bZtHiqSrcugRF0RKJKT4Ss3d7ZrcjnlFVDlQNmtWfWw==} + engines: {node: '>=14'} + + append-field@1.0.0: + resolution: {integrity: sha512-klpgFSWLW1ZEs8svjfb7g4qWY0YS5imI82dTg+QahUvJ8YqAY0P10Uk8tTyh9ZGuYEZEMaeJYCF5BFuX552hsw==} + + argparse@3.0.4: + resolution: {integrity: sha512-fwWK3Zq22l4XJJjx5mcBHGikIk+hJqO+32dPm0Jur7+rtG5x1scOjSfdT9ZKeWHPpsya/l0HHK4tDImBkTrtvA==} + + array-timsort@1.0.3: + resolution: {integrity: sha512-/+3GRL7dDAGEfM6TseQk/U+mi18TU2Ms9I3UlLdUMhz2hbvGNTKdj9xniwXfUqgYhHxRx0+8UnKkvlNwVU+cWQ==} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + aws-ssl-profiles@1.1.2: + resolution: {integrity: sha512-NZKeq9AfyQvEeNlN0zSYAaWrmBffJh3IELMZfRpJVWgrpEbtEpnjvzqBPf+mxoI287JohRDoa+/nsfqqiZmF6g==} + engines: {node: '>= 6.0.0'} + + balanced-match@4.0.4: + resolution: {integrity: sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==} + engines: {node: 18 || 20 || >=22} + + better-result@2.10.0: + resolution: {integrity: sha512-oQhh0y1qo2/ZKdAAEvHZAqKKiHOFU5k/bW96fE2ScgQOVkJRiHwB+nOS1SgFsYqRlxMDWvefXi9Q3px7QvgNDw==} + + body-parser@2.4.0: + resolution: {integrity: sha512-Ifk1KcLrxaGt1occQagQNFNNOqRt1LFuehEnHHzB8Z6cRgIxRU1TBaiIsUiCdA+gy5PL7Y1IX31DNKkRmxtXjQ==} + engines: {node: '>=18'} + + brace-expansion@5.0.13: + resolution: {integrity: sha512-Vh3dmFbc4wZeox7M9I/0L9GfFd83Su4+yCck/OF9Gi/P/dAHn0RT7X4K9R7gMNMhDck3DvhR6QXsnQdjjgwNvQ==} + engines: {node: 20 || >=22} + + busboy@1.6.0: + resolution: {integrity: sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==} + engines: {node: '>=10.16.0'} + + bytes@3.1.2: + resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} + engines: {node: '>= 0.8'} + + c12@3.3.4: + resolution: {integrity: sha512-cM0ApFQSBXuourJejzwv/AuPRvAxordTyParRVcHjjtXirtkzM0uK2L9TTn9s0cXZbG7E55jCivRQzoxYmRAlA==} + peerDependencies: + magicast: '*' + peerDependenciesMeta: + magicast: + optional: true + + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + call-bound@1.0.4: + resolution: {integrity: sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==} + engines: {node: '>= 0.4'} + + camelcase@5.3.1: + resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==} + engines: {node: '>=6'} + + chai@6.3.0: + resolution: {integrity: sha512-XWAtwJ6OHO+tj0EKCs0Y2UamnyOxseZWltU4x2U2wh8g4AigdjwvtUjvLP2tqkA/avxHEtzxNaqGq/YGNwckKg==} + engines: {node: '>=18'} + + chalk@5.6.2: + resolution: {integrity: sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA==} + engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + + char-regex@1.0.2: + resolution: {integrity: sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==} + engines: {node: '>=10'} + + chardet@2.2.0: + resolution: {integrity: sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==} + + chokidar@5.0.0: + resolution: {integrity: sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==} + engines: {node: '>= 20.19.0'} + + classnames@2.5.1: + resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==} + + cli-cursor@5.0.0: + resolution: {integrity: sha512-aCj4O5wKyszjMmDT4tZj93kxyydN/K5zPWSCe6/0AV/AA1pqe5ZBIw0a2ZfPQV7lL5/yb5HsUreJ6UFAF1tEQw==} + engines: {node: '>=18'} + + cli-spinners@3.4.0: + resolution: {integrity: sha512-bXfOC4QcT1tKXGorxL3wbJm6XJPDqEnij2gQ2m7ESQuE+/z9YFIWnl/5RpTiKWbMq3EVKR4fRLJGn6DVfu0mpw==} + engines: {node: '>=18.20'} + + cli-table3@0.6.5: + resolution: {integrity: sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==} + engines: {node: 10.* || >= 12.*} + + cli-width@4.1.0: + resolution: {integrity: sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ==} + engines: {node: '>= 12'} + + cliui@6.0.0: + resolution: {integrity: sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + commander@15.0.0: + resolution: {integrity: sha512-z67u4ZhzCL/Tydu1lJARtEZYWbWaN7oYLHbsuzocr6y4N6WZAagG3RQ4FW61V1/0+jImpj293XfrcYnd1qxtPg==} + engines: {node: '>=22.12.0'} + + comment-json@5.0.0: + resolution: {integrity: sha512-uiqLcOiVDJtBP8WGkZHEP+FZIhTzP1dxvn59EfoYUi9gqupjrBWVQkO2atDrbnKPwLeotFYDsuNb26uBMqB+hw==} + engines: {node: '>= 6'} + + confbox@0.2.4: + resolution: {integrity: sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==} + + confbox@0.3.2: + resolution: {integrity: sha512-ZUAKhKlkCOrIGKc8cj7zek9s9z1mveHif/25nUshI2BzCRzF7KH7KHa+Lnh2ubq+e1tIlaFuP763mzW4qVoehg==} + + content-disposition@2.0.1: + resolution: {integrity: sha512-e+H0ZXHSWYrENhQzw1LPuP4oF5MzVKmDU6d3hxlvaPEYLLg62MxtQNPRx4SYSuYJSBUgnQIG4HIN2tEtNv7Dog==} + engines: {node: '>=18'} + + content-type@2.1.0: + resolution: {integrity: sha512-mj7UPXE0jaqaOsukNZRUEfEi2AcL7C/vwmwcHV0O97eO1E1pxBZuyjlZrx5seTaNBg1U6+o35wpa35Qfcc+7ag==} + engines: {node: '>=18'} + + convert-source-map@2.0.0: + resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==} + + cookie-signature@1.2.2: + resolution: {integrity: sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==} + engines: {node: '>=6.6.0'} + + cookie@0.7.2: + resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==} + engines: {node: '>= 0.6'} + + cors@2.8.6: + resolution: {integrity: sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==} + engines: {node: '>= 0.10'} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + csstype@3.2.4: + resolution: {integrity: sha512-PoKaoPzQapnEoqUSnHx1u6W6ku8CVEgKsnpmmzU3m1nwkidpPBQ8V/Zq2+bWNrsOKoKLwTGdbx6xF7BXP1zLVQ==} + + d3-array@3.2.1: + resolution: {integrity: sha512-gUY/qeHq/yNqqoCKNq4vtpFLdoCdvyNpWoC/KNjhGbhDuQpAM9sIQQKkXSNpXa9h5KySs/gzm7R88WkUutgwWQ==} + engines: {node: '>=12'} + + d3-array@3.2.4: + resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==} + engines: {node: '>=12'} + + d3-color@3.1.0: + resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==} + engines: {node: '>=12'} + + d3-delaunay@6.0.2: + resolution: {integrity: sha512-IMLNldruDQScrcfT+MWnazhHbDJhcRJyOEBAJfwQnHle1RPh6WDuLvxNArUju2VSMSUuKlY5BGHRJ2cYyoFLQQ==} + engines: {node: '>=12'} + + d3-format@3.1.0: + resolution: {integrity: sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==} + engines: {node: '>=12'} + + d3-geo@3.1.0: + resolution: {integrity: sha512-JEo5HxXDdDYXCaWdwLRt79y7giK8SbhZJbFWXqbRTolCHFI5jRqteLzCsq51NKbUoX0PjBVSohxrx+NoOUujYA==} + engines: {node: '>=12'} + + d3-interpolate@3.0.1: + resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==} + engines: {node: '>=12'} + + d3-path@3.1.0: + resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==} + engines: {node: '>=12'} + + d3-path@3.1.1: + resolution: {integrity: sha512-jsbgV8zIT38ReB9O7X7gcLndTQRONSqNNd+oGIaTBdUug4r5jFmp0N6RY9R5GWbdUDucn0qoTGyfjapT4tDhcg==} + engines: {node: '>=12'} + + d3-scale@4.0.2: + resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==} + engines: {node: '>=12'} + + d3-shape@3.2.0: + resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==} + engines: {node: '>=12'} + + d3-time-format@4.1.0: + resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==} + engines: {node: '>=12'} + + d3-time@3.1.0: + resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==} + engines: {node: '>=12'} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decamelize@1.2.0: + resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==} + engines: {node: '>=0.10.0'} + + deepmerge-ts@8.0.2: + resolution: {integrity: sha512-uqbvqLUMrc6p0MO+WBRtTxY55hmyh94WRwI5a++PZe54X+bfVh59FSN7uWCBCW1CCVjzjnrwzfI8zidE2obMMw==} + engines: {node: '>=16.9.0'} + + defu@6.1.7: + resolution: {integrity: sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==} + + delaunator@5.1.0: + resolution: {integrity: sha512-AGrQ4QSgssa1NGmWmLPqN5NY2KajF5MqxetNEO+o0n3ZwZZeTmt7bBnvzHWrmkZFxGgr4HdyFgelzgi06otLuQ==} + + depd@2.0.0: + resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} + engines: {node: '>= 0.8'} + + destr@2.0.5: + resolution: {integrity: sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==} + + detect-libc@2.1.2: + resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==} + engines: {node: '>=8'} + + dijkstrajs@1.0.3: + resolution: {integrity: sha512-qiSlmBq9+BCdCA/L46dw8Uy93mloxsPSbwnm5yrKn2vMPiy8KyAskTF6zuV/j5BMsmOGZDPs7KjU+mjb670kfA==} + + dotenv@17.4.2: + resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} + engines: {node: '>=12'} + + dotenv@18.0.10: + resolution: {integrity: sha512-89FAA1xchzK2mxVWdr5F/0rldwiueXs6zJM86rO66EzekR1iBdiXRthyG+m5GvkJaFH3C2LESzamTkgndmLT2A==} + engines: {node: '>=12'} + hasBin: true + + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + + ee-first@1.1.1: + resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} + + effect@3.20.0: + resolution: {integrity: sha512-qMLfDJscrNG8p/aw+IkT9W7fgj50Z4wG5bLBy0Txsxz8iUHjDIkOgO3SV0WZfnQbNG2VJYb0b+rDLMrhM4+Krw==} + + elkjs@0.11.1: + resolution: {integrity: sha512-zxxR9k+rx5ktMwT/FwyLdPCrq7xN6e4VGGHH8hA01vVYKjTFik7nHOxBnAYtrgYUB1RpAiLvA1/U2YraWxyKKg==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + emojilib@2.4.0: + resolution: {integrity: sha512-5U0rVMU5Y2n2+ykNLQqMoqklN9ICBT/KsvC1Gz6vqHbz2AXXGkG+Pm5rMWk/8Vjrr/mY9985Hi8DYzn1F09Nyw==} + + empathic@2.0.0: + resolution: {integrity: sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA==} + engines: {node: '>=14'} + + encodeurl@2.0.3: + resolution: {integrity: sha512-mIteYONiEfc4xWf2F1WXovh1c8npzS00vNeiUPdwFF+QlVJni+gNvpQltLMQhob8rew/bWWc/bGTuUr0EUGt0w==} + engines: {node: '>= 0.8'} + + env-paths@3.0.0: + resolution: {integrity: sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-module-lexer@2.3.2: + resolution: {integrity: sha512-poHGpORABojJJucnV9KbOavETW8lBVnphkW77ER5/BQ5Fz7oXSoCNek7IH3vR5nRjdsEz926ibFYX8KtLQmdyw==} + + es-object-atoms@1.1.2: + resolution: {integrity: sha512-HWcBoN6NileqtSydK2FqHbS/LoDd2pqrnQHLyJzBj4kOp/ky2MWMN694xOfkK8/SnUsW2DH7EfyVlydKCsm1Zw==} + engines: {node: '>= 0.4'} + + es-toolkit@1.53.1: + resolution: {integrity: sha512-VhMc6IXmexu8iYFfL2aaAww6IvJTdHlqBLruLoEUs33YD4IcP5DdZcLOybMsMmmLsiy1c8PsiLsrM0DdIuuRUA==} + + esbuild@0.28.2: + resolution: {integrity: sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==} + engines: {node: '>=18'} + hasBin: true + + escape-html@1.0.3: + resolution: {integrity: sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==} + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + etag@1.8.1: + resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==} + engines: {node: '>= 0.6'} + + expect-type@1.4.0: + resolution: {integrity: sha512-KfYbmpRm0VbLjEvVa9yGwCi9GI34xvi7A/HXYWQO65CSD2u3MczUJSuwXKFIxlGsgBQizV9q5J9NHj4VG0n+pA==} + engines: {node: '>=12.0.0'} + + express@5.3.0: + resolution: {integrity: sha512-qCqy1xSoaugxOD4IVHb1ZWdkvCF2W3aE2okKouWj8VwJ+ztskSiXoBnCSJqfKT+cVPJhuJqe9YLbY425+Zh00g==} + engines: {node: '>= 18'} + + exsolve@1.2.0: + resolution: {integrity: sha512-h1pQPR9XoeSMdntRNCjyTznaume4UpfXrULBnlkZ2CUM/G5eSa+pBByGldO5uR8dxbPC+OuJXsPPNf+JZ81ADg==} + + fast-check@3.23.2: + resolution: {integrity: sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A==} + engines: {node: '>=8.0.0'} + + fast-decode-uri-component@1.0.1: + resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==} + + fast-deep-equal@3.1.3: + resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + + fast-querystring@1.1.2: + resolution: {integrity: sha512-g6KuKWmFXc0fID8WWH0jit4g0AGBoJhCkJMb1RmbsSEUNvQ+ZC8D6CUZ+GtF8nMzSPXnhiePyyqqipzNNEnHjg==} + + fast-safe-stringify@2.1.1: + resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} + + fast-string-truncated-width@3.0.3: + resolution: {integrity: sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==} + + fast-string-width@3.0.2: + resolution: {integrity: sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==} + + fast-uri@3.1.9: + resolution: {integrity: sha512-hS/0Wt3Ya043oKXs0sIxrMpKQITXhMLIrVAKKXi4gozGC9v7YRWVnXIZzjNPTO02M9BdxLCWqK1yRXgNziVyJQ==} + + fast-wrap-ansi@0.2.2: + resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + file-type@22.3.0: + resolution: {integrity: sha512-PrPedgnnWl5bWz3JHgar0QSzRvzeyFh7dZ9JpYOgcPZu4KALS9zw4MMa6qXRYyjeBsAlpaWB2boLuG991+0HIQ==} + engines: {node: '>=22'} + + finalhandler@2.1.1: + resolution: {integrity: sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==} + engines: {node: '>= 18.0.0'} + + find-my-way@9.7.0: + resolution: {integrity: sha512-f2JHn75x2JlwUwLenZypgczR7YWMb/uO9BvUXtus+JMgkbIkLADd38cI4EiV+OQqrGo1Zlq6V8wnqMJ8e62wUQ==} + engines: {node: '>=20'} + + find-up@4.1.0: + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} + + foreground-child@3.3.1: + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} + engines: {node: '>=14'} + + forwarded@0.2.0: + resolution: {integrity: sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==} + engines: {node: '>= 0.6'} + + fresh@2.0.0: + resolution: {integrity: sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==} + engines: {node: '>= 0.8'} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + generate-function@2.3.1: + resolution: {integrity: sha512-eeB5GfMNeevm/GRYq20ShmsaGcmI81kIX2K9XQx5miC8KdHaC6Jm0qQ8ZNeGOi7wYB8OsdxKs+Y2oVuTFuVwKQ==} + + get-caller-file@2.0.5: + resolution: {integrity: sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==} + engines: {node: 6.* || 8.* || >= 10.*} + + get-east-asian-width@1.7.0: + resolution: {integrity: sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==} + engines: {node: '>=18'} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-port-please@3.2.0: + resolution: {integrity: sha512-I9QVvBw5U/hw3RmWpYKRumUeaDgxTPd401x364rLmWBJcOQ753eov1eTgzDqRG9bqFIfDc7gfzcQEWrUri3o1A==} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + + giget@3.3.1: + resolution: {integrity: sha512-r+mvuDjrjMpsdw46Kmeydb8bdHm7wOKw8wNBtTndkjbPjgAp5oUJUxRE76wZFknxIPokfWvep2qSXK37aXE6zg==} + hasBin: true + + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + + graceful-fs@4.2.12: + resolution: {integrity: sha512-iuyGF2E4oafQfPsRrG2wtY2ILupMhvtdrhzrxB+0VcjsPpSPttpfYdjnGFGsTi5MaJFjI1jOKHPQ6UTbTj9TAw==} + + grammex@3.1.13: + resolution: {integrity: sha512-LnPnhOBLEJEVKS8WFDVaA397L9Kq55Q9oSITJiVLHVdhAclfUkWzQv74KhvZHKL2Q09Pb1XdsrOsZ4LfTFFTEg==} + + graphmatch@1.1.1: + resolution: {integrity: sha512-5ykVn/EXM1hF0XCaWh05VbYvEiOL2lY1kBxZtaYsyvjp7cmWOU1XsAdfQBwClraEofXDT197lFbXOEVMHpvQOg==} + + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + hasown@2.0.4: + resolution: {integrity: sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==} + engines: {node: '>= 0.4'} + + http-errors@2.0.1: + resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} + engines: {node: '>= 0.8'} + + iconv-lite@0.7.3: + resolution: {integrity: sha512-IKXpvIzjnC9XTAUbVBcMfGS0EPaIXtW6v+zr+RRp+hqULEpo0owZax6wyRwPOJbWbzjYspQwusTsfVr0ifh4uQ==} + engines: {node: '>=0.10.0'} + + ieee754@1.2.1: + resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + internmap@2.0.3: + resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==} + engines: {node: '>=12'} + + ipaddr.js@1.9.1: + resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} + engines: {node: '>= 0.10'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-interactive@2.0.0: + resolution: {integrity: sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==} + engines: {node: '>=12'} + + is-promise@4.0.0: + resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==} + + is-property@1.0.2: + resolution: {integrity: sha512-Ks/IoX00TtClbGQr4TWXemAnktAQvYB7HzcCxDGqEZU6oCmb2INHuOoKxbtR+HFkmYWBKv/dOZtGRiAjDhj92g==} + + is-unicode-supported@2.1.0: + resolution: {integrity: sha512-mE00Gnza5EEB3Ds0HfMyllZzbBrmLOX3vfWoj9A9PEnTfratQ/BcaJOuMhnkhjXvb2+FkY3VuHqtAGpTPmglFQ==} + engines: {node: '>=18'} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + iterare@1.2.1: + resolution: {integrity: sha512-RKYVTCjAnRthyJes037NX/IiqeidgN1xc3j1RjFfECFp28A1GVwK9nA+i0rJPaHqSZwygLzRnFlzUuHFoWWy+Q==} + engines: {node: '>=6'} + + jiti@2.7.0: + resolution: {integrity: sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==} + hasBin: true + + jose@6.2.17: + resolution: {integrity: sha512-wOuK9V1yujQFH5S0ZWmLcDZN7+IKh9bUCC2ZPCf2HDlol3WWHy+PPyNjEI75FXRLMp3vDKQcupP59xhVU95hcg==} + + js-yaml@5.5.0: + resolution: {integrity: sha512-paNr4LFIFPjeeSmwNYdrb8FafLLG/Cr2Af3GjbsHJ5CxIjH4r0c2emlmRdAtpPAieP1gRVzk6buBbVP5gBMGAg==} + hasBin: true + + json-schema-traverse@1.0.0: + resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==} + + json5@2.2.3: + resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==} + engines: {node: '>=6'} + hasBin: true + + jsonc-parser@3.3.1: + resolution: {integrity: sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ==} + + lightningcss-android-arm64@1.33.0: + resolution: {integrity: sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [android] + + lightningcss-darwin-arm64@1.33.0: + resolution: {integrity: sha512-Sciaz8eenNTKn9b3t7+xr0ipTp9YxKQY4npwQ3mrRuL0BAVHBLyZxofhaKBAVtzmtRZ/zTyo0/to4B1uWG/Djg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [darwin] + + lightningcss-darwin-x64@1.33.0: + resolution: {integrity: sha512-Z5UPAxzrjlWNNyGy6i65cJzzvgJ5D3T6wMvs+gWpY9d7qRhANrxqAp6LhxIgZhWEw18RfJTGcRxjuLIBr+m8XQ==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [darwin] + + lightningcss-freebsd-x64@1.33.0: + resolution: {integrity: sha512-QQM/Ti/hQajJwCY+RiWuCZ9sdtI/XQk7nDK5vC8kkdwixezOlDgvDx7+RT+QjK6FcFT4MpsuoBnHIo/O3StRRg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [freebsd] + + lightningcss-linux-arm-gnueabihf@1.33.0: + resolution: {integrity: sha512-N7FVBe6iS24MlM6R/4RBTxGhQheZGs7tiQ9U32UtF75NzP5Q7xWPRqLBCKxlRQRk3rY1jCIPLzx7WzOhuUIRLQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm] + os: [linux] + + lightningcss-linux-arm64-gnu@1.33.0: + resolution: {integrity: sha512-j2v/itmy4HlNxlc6voKXYgBqNi0Ng2LShg4z7GufpEgs05P+2suBVyi9I6YHq5uoVFx9ETin3eCEhLVyXGQnKg==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-arm64-musl@1.33.0: + resolution: {integrity: sha512-yiO5ROMuYQgXbC60yjZU5CYSFZGKXL0HFATXt9mHJn1+zW55oCtMI9NfcVhYLMFDL7gV7oBPon/EmMMGg2OvtQ==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [linux] + + lightningcss-linux-x64-gnu@1.33.0: + resolution: {integrity: sha512-ar+Ju7LmcN0Jo4FpL4hpFybwNG9/3A/Br5KW2n2jyODg3MEZXaDYADdemoNS+BDNfMgKvylJLj4S5tyRActuAg==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-linux-x64-musl@1.33.0: + resolution: {integrity: sha512-RYiYbkokw0trfKqqzfF55lginwEPrD3OJDfTuJzFs1MK6iFnDenaz1fqLLtX4ITG3OktJQXOeTaw1awrBAlZPw==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [linux] + + lightningcss-win32-arm64-msvc@1.33.0: + resolution: {integrity: sha512-1K+MPfLSFVpphzpdbfkhlWk6wBrTObBzS2T6db10PNOZgR9GoVsAWzwNyuhUYYbTp23j+4RrncfujZ4uAzXvwA==} + engines: {node: '>= 12.0.0'} + cpu: [arm64] + os: [win32] + + lightningcss-win32-x64-msvc@1.33.0: + resolution: {integrity: sha512-OlEICDx/Xl0FqSp4bry8zFnCvGpig3Gl4gCquvYwHuqJKEC1+n9NgDniFvqHGmMv1ZkqDJrDqKKSykTDX+ehuA==} + engines: {node: '>= 12.0.0'} + cpu: [x64] + os: [win32] + + lightningcss@1.33.0: + resolution: {integrity: sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA==} + engines: {node: '>= 12.0.0'} + + load-esm@1.0.3: + resolution: {integrity: sha512-v5xlu8eHD1+6r8EHTg6hfmO97LN8ugKtiXcy5e6oN72iD2r6u0RPfLl6fxM+7Wnh2ZRq15o0russMst44WauPA==} + engines: {node: '>=13.2.0'} + + locate-path@5.0.0: + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} + + lodash@4.18.1: + resolution: {integrity: sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==} + + log-symbols@7.0.1: + resolution: {integrity: sha512-ja1E3yCr9i/0hmBVaM0bfwDjnGy8I/s6PP4DFp+yP+a+mrHO4Rm7DtmnqROTUkHIkqffC84YY7AeqX6oFk0WFg==} + engines: {node: '>=18'} + + long@5.3.2: + resolution: {integrity: sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==} + + lru.min@1.1.5: + resolution: {integrity: sha512-5J9ysMYUpYIg9RF2vJpy9SinEmSviFSe0GyPpCQ4L5QSkLAgeLXlTAOu2ZwWUU5m+0SBl6gUU1R1ZQB3aKypfA==} + engines: {bun: '>=1.0.0', deno: '>=1.30.0', node: '>=8.0.0'} + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + magic-string@1.4.1: + resolution: {integrity: sha512-8lyCu36ErXR0J9uaGKlKQoiLZKmtI63YGLE8G2o9jyRPdr4X47LusSOwgOJOzcVtp81fTAAjxR7BwKz682Jhow==} + + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + media-typer@0.3.0: + resolution: {integrity: sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==} + engines: {node: '>= 0.6'} + + media-typer@1.1.1: + resolution: {integrity: sha512-yz3xRaG20c6/BOzvYoDaGtPmGscs7YivItZEEqe6GbwNfHuxu9YNmvnEkMzKldAGY4/80pRcQRZSEnhquk9XuQ==} + engines: {node: '>= 0.8'} + + merge-descriptors@2.0.0: + resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==} + engines: {node: '>=18'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-db@1.54.0: + resolution: {integrity: sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + mime-types@3.0.2: + resolution: {integrity: sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==} + engines: {node: '>=18'} + + mimic-function@5.0.1: + resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==} + engines: {node: '>=18'} + + minimatch@11.0.5: + resolution: {integrity: sha512-snPlVppFcYWfLLFQGhDxUyBcHNtMlWmn3jtj7pEaO+DP8pqL0IvAzXhMYmn1z9ASNtgmwLBdFxSf4tMUB0OTKA==} + engines: {node: 20 || >=22} + + minimist@1.2.8: + resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + multer@2.5.0: + resolution: {integrity: sha512-BsqOzYGVq49JcW2IzoSAxeKYRevb+dGGPPWleOR8Lrlk4igwxu1/9pwSXlByhCb7MVZDrNJFC0IBP5/O5nLYRw==} + engines: {node: '>= 10.16.0'} + + mute-stream@4.0.0: + resolution: {integrity: sha512-gSrprq0fJ3EiOErzjdIZrjysVVmJ4uu1QWfCDss5LypA5OXvrMje5Ym5z6V6RLyJ2eF87lasX7t6a0AnFvZblg==} + engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0} + + mysql2@3.24.4: + resolution: {integrity: sha512-A2olluVlj0mvgyIRRISMEzXc51m+21mRtcMVjJyIpt2GG98+XrC9m9HzsqcMsX2LcnfccJvY5NB22g8fENBnOA==} + engines: {node: '>= 8.0'} + peerDependencies: + '@types/node': '>= 8' + + named-placeholders@1.1.6: + resolution: {integrity: sha512-Tz09sEL2EEuv5fFowm419c1+a/jSMiBjI9gHxVLrVdbUkkNUUfjsVYs9pVZu5oCon/kmRh9TfLEObFtkVxmY0w==} + engines: {node: '>=8.0.0'} + + nanoid@3.3.20: + resolution: {integrity: sha512-uKdg2G3GNCKQn9byYOpxbGqrT2fGO5KRt5J/8b3pok8rT6qxGWF6hxMyJiEYtAf+FVyYuD9hRaDqX5uPFYJ4ZQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + negotiator@1.1.0: + resolution: {integrity: sha512-NMPBRMJgiQHjbd8phG3Vebdx4kZ1H121rbl5IkMqeOsahptB9BKo/d7oJ3zTXqTgagn2bWlNSXkh0QUGM31RYg==} + engines: {node: '>=18'} + + node-emoji@2.2.0: + resolution: {integrity: sha512-Z3lTE9pLaJF47NyMhd4ww1yFTAP8YhYI8SleJiHzM46Fgpm5cnNzSl9XfzFNqbaz+VlJrIj3fXQ4DeN1Rjm6cw==} + engines: {node: '>=18'} + + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + + object-inspect@1.13.4: + resolution: {integrity: sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==} + engines: {node: '>= 0.4'} + + obug@2.2.1: + resolution: {integrity: sha512-XrsrhT5sybtKI6wakr2SPOlGZWWYbUXZ7a0jT8/QOeAPau+1X/bSegNe5YR75oJmEZQbKningirmGOEJCIk61Q==} + engines: {node: '>=12.20.0'} + + ohash@2.0.12: + resolution: {integrity: sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==} + + on-finished@2.4.2: + resolution: {integrity: sha512-ATWUv387i+nLD49EiDoOft5scf32Vsdz3ktrQJG9bi7jRFmaXTssvyvj1EmeKVVgvesbqUtvQQvaS2TpTukAZQ==} + engines: {node: '>= 0.8'} + + once@1.4.0: + resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} + + onetime@7.0.0: + resolution: {integrity: sha512-VXJjc87FScF88uafS3JllDgvAm+c/Slfz06lorj2uAY34rlUu0Nt+v8wreiImcrgAjjIHp1rXpTDlLOGw29WwQ==} + engines: {node: '>=18'} + + ora@9.4.1: + resolution: {integrity: sha512-6VlU9MLXbjVQD04AZCMX28hVtA5bUoadvUqO76MUCVA0ilwJbMiHsITRPfyVm6p/BC0Av/BXMujx39WCe1LEqw==} + engines: {node: '>=20'} + + p-limit@2.3.0: + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} + + p-locate@4.1.0: + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} + + p-try@2.2.0: + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} + + parseurl@1.3.3: + resolution: {integrity: sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==} + engines: {node: '>= 0.8'} + + path-exists@4.0.0: + resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==} + engines: {node: '>=8'} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-to-regexp@8.4.2: + resolution: {integrity: sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + perfect-debounce@2.1.0: + resolution: {integrity: sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==} + + pg-cloudflare@1.4.1: + resolution: {integrity: sha512-6PQbsFWZcp9EmJEwy5cGQ2La+AMWpP46lgbb8X+U/XsHIUweYDNCpeuKck5RxL2MdVFi7krbbEi5nX4Zh7JhrQ==} + + pg-connection-string@2.14.1: + resolution: {integrity: sha512-qR3kGNPBLpCNtz0evbKA0Y/MRFXwSSdT+pTJvYp/bXTcReZbvX1kzF0IyTc1QnxqF7AZbOeBhNL8R5mYQZV/MA==} + + pg-int8@1.0.1: + resolution: {integrity: sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==} + engines: {node: '>=4.0.0'} + + pg-pool@3.14.0: + resolution: {integrity: sha512-gKtPkFdQPU3DksooVLi9LsjZxrsBUZIpa+7aVx+LV5pNh0KzP4Zleud2po+ConrxbuXGBJ6Hfer6hdgpIBpBaw==} + peerDependencies: + pg: '>=8.0' + + pg-protocol@1.16.1: + resolution: {integrity: sha512-p9VOFMiHB/ZbJATetbg+99PxssTVSQRnyuPSQ67mN1+1KBOjZaZ83ZQzltnxPhJwSsC3nwVjJ10DVJlerbFzLg==} + + pg-types@2.2.0: + resolution: {integrity: sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA==} + engines: {node: '>=4'} + + pg@8.23.1: + resolution: {integrity: sha512-aL96AHANtWjPLDOLqnhx+ngp9+UK7ETEU8VJrDCGvsSSi/mGLcWYsS6Herg7lmaBJe4uwrfqsa7gTEFaSizDoQ==} + engines: {node: '>= 16.0.0'} + peerDependencies: + pg-native: '>=3.0.1' + peerDependenciesMeta: + pg-native: + optional: true + + pgpass@1.0.5: + resolution: {integrity: sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.7: + resolution: {integrity: sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==} + engines: {node: '>=12'} + + pkg-types@2.4.0: + resolution: {integrity: sha512-07Fys7iVx0X6TcviMOgogM1Lk33ZyqOezMnU79S+kffWqwolG/5W9V8EgQSeYCIfFTYVgssRbnH630Oa2+soBA==} + + pluralize@8.0.0: + resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} + engines: {node: '>=4'} + + pngjs@5.0.0: + resolution: {integrity: sha512-40QW5YalBNfQo5yRYmiw7Yz6TKKVr3h6970B2YE+3fQpsWcrbj1PzJgxeJ19DRQjhMbKPIuMY8rFaXc8moolVw==} + engines: {node: '>=10.13.0'} + + postcss@8.5.33: + resolution: {integrity: sha512-RVHEU9/Pp1Fnjr/MpAJsZoADukCKhfIi15OunEYiGktIkYLkPVvC1sioWolGDS7XByMTx9m/IGbro0Js13zhnQ==} + engines: {node: ^10 || ^12 || >=14} + + postgres-array@2.0.0: + resolution: {integrity: sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA==} + engines: {node: '>=4'} + + postgres-array@3.0.4: + resolution: {integrity: sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ==} + engines: {node: '>=12'} + + postgres-bytea@1.0.1: + resolution: {integrity: sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ==} + engines: {node: '>=0.10.0'} + + postgres-date@1.0.7: + resolution: {integrity: sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q==} + engines: {node: '>=0.10.0'} + + postgres-interval@1.2.0: + resolution: {integrity: sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ==} + engines: {node: '>=0.10.0'} + + postgres@3.4.7: + resolution: {integrity: sha512-Jtc2612XINuBjIl/QTWsV5UvE8UHuNblcO3vVADSrKsrc6RqGX6lOW1cEo3CM2v0XG4Nat8nI+YM7/f26VxXLw==} + engines: {node: '>=12'} + + prisma@7.10.1: + resolution: {integrity: sha512-GoVeErHGGtsSjsflQ1r2BA3RKTXtxNraQJz8OLkLhoLr7OgCscdx4qw4WMM4HnERYc+a1cq2VnMNbep+vOjNcQ==} + engines: {node: ^20.19 || ^22.12 || >=24.0} + hasBin: true + peerDependencies: + better-sqlite3: '>=9.0.0' + typescript: '>=5.4.0' + peerDependenciesMeta: + better-sqlite3: + optional: true + typescript: + optional: true + + proper-lockfile@4.1.2: + resolution: {integrity: sha512-TjNPblN4BwAWMXU8s9AEz4JmQxnD1NNL7bNOY/AKUzyamc379FWASUhc/K1pL2noVb+XmZKLL68cjzLsiOAMaA==} + + proxy-addr@2.0.8: + resolution: {integrity: sha512-5nnx0yGyVUcY6t9RnWcARWtwT9F1D8O9rt08htPvnd49W1IgZtmLkhu9WfMzQj1cFxjHIO6connUNVW5k7AVyQ==} + engines: {node: '>= 0.10'} + + pure-rand@6.1.0: + resolution: {integrity: sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==} + + qrcode@1.5.4: + resolution: {integrity: sha512-1ca71Zgiu6ORjHqFBDpnSMTR2ReToX4l1Au1VFLyVeBTFavzQnv5JxMFr3ukHVKpSrSA2MCk0lNJSykjUfz7Zg==} + engines: {node: '>=10.13.0'} + hasBin: true + + qs@6.17.1: + resolution: {integrity: sha512-jd3COkaKVgGUW+ZHyEHCG9bH7RoaaiWuMgzsIBjUMVjLAaWGWpoUAVwljVvBHxRu/2qEHnadLGZrkutYUBPQJA==} + engines: {node: '>=0.6'} + + range-parser@1.3.0: + resolution: {integrity: sha512-hek2mFQpPuI4E1BBKrSto+BU3e3x4xuarsbiwr3+lf7p44juvFMV0XFWQAP3xUyqXA4RrXLIoaSUGbSt056ZMw==} + engines: {node: '>= 0.6'} + + raw-body@3.0.2: + resolution: {integrity: sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==} + engines: {node: '>= 0.10'} + + rc9@3.1.0: + resolution: {integrity: sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==} + + react-dom@19.3.1: + resolution: {integrity: sha512-Y0bARz53lhEC1NMCASs0/j+faB/zqt3R8hpvg1e8+61ZVJ4UL0UdC4cBbXfZMcIuhrfgeILTLe+ZeBCavQPtKQ==} + peerDependencies: + react: ^19.3.1 + + react@19.3.1: + resolution: {integrity: sha512-QNhWdt7nrgVWWQG58QuGsAR3jv3Hbe4mb4vz7w2csnHavciZJgda1CPNaldF6eVxv90ud3jUXpKlHL69gO38yw==} + engines: {node: '>=0.10.0'} + + readdirp@5.1.1: + resolution: {integrity: sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==} + engines: {node: '>= 20.19.0'} + + reflect-metadata@0.2.2: + resolution: {integrity: sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==} + + remeda@2.33.4: + resolution: {integrity: sha512-ygHswjlc/opg2VrtiYvUOPLjxjtdKvjGz1/plDhkG66hjNjFr1xmfrs2ClNFo/E6TyUFiwYNh53bKV26oBoMGQ==} + + require-directory@2.1.1: + resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} + engines: {node: '>=0.10.0'} + + require-from-string@2.0.2: + resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==} + engines: {node: '>=0.10.0'} + + require-main-filename@2.0.0: + resolution: {integrity: sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==} + + restore-cursor@5.1.0: + resolution: {integrity: sha512-oMA2dcrw6u0YfxJQXm342bFKX/E4sG9rbTzO9ptUcR/e8A33cHuvStiYOwH7fszkZlZ1z/ta9AAoPk2F4qIOHA==} + engines: {node: '>=18'} + + ret@0.5.1: + resolution: {integrity: sha512-Z/nyvABwcRnRD2mMP7Kz6G1dFZZqX1mNErOnxF42OCQKE07b9k9hK9SQxHL3LFEZUdzQaLM4dId1E/E6Vm4WhA==} + engines: {node: '>=10'} + + retry@0.12.0: + resolution: {integrity: sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==} + engines: {node: '>= 4'} + + robust-predicates@3.0.3: + resolution: {integrity: sha512-NS3levdsRIUOmiJ8FZWCP7LG3QpJyrs/TE0Zpf1yvZu8cAJJ6QMW92H1c7kWpdIHo8RvmLxN/o2JXTKHp74lUA==} + + rolldown@1.2.19: + resolution: {integrity: sha512-QIiV1J9d0pzN4jeeTH4sjPy0AZ6cAy2cG0ExeoE1+U8Rvj+hR3gYkokx0YbeUNGlZqiQJJ2utcETe0oKXwzsuA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + + router@2.3.0: + resolution: {integrity: sha512-bpowRfGjEPe8t9R6fJIzhwmyCGAXwKvxBUsgJm+bJukwdcWmUXbMo7p22w7aYmQBPQTUMNqMV39YX0kMou3z8w==} + engines: {node: '>= 18'} + + rxjs@7.8.2: + resolution: {integrity: sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==} + + safe-regex2@5.1.2: + resolution: {integrity: sha512-tAtCGFPPP02VroDVzp4daGi6bC7jWG+41D47GKf18FeH/ubvKQHT9VmhAkvtjNOmJwqtApzWeUpEhkyEYULvmw==} + hasBin: true + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + scheduler@0.28.0: + resolution: {integrity: sha512-juorfCmIkIw8tT+p5BXSm6PJjQF/ycEYmKyzURCIt/RaZIhL+PulbQ9Yu2z1HdOJDdqDTlxA1+xKBmHXJsczAw==} + + send@1.2.1: + resolution: {integrity: sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==} + engines: {node: '>= 18'} + + serve-static@2.2.1: + resolution: {integrity: sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==} + engines: {node: '>= 18'} + + set-blocking@2.0.0: + resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} + + setprototypeof@1.2.0: + resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + side-channel-list@1.0.1: + resolution: {integrity: sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==} + engines: {node: '>= 0.4'} + + side-channel-map@1.0.1: + resolution: {integrity: sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==} + engines: {node: '>= 0.4'} + + side-channel-weakmap@1.0.2: + resolution: {integrity: sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==} + engines: {node: '>= 0.4'} + + side-channel@1.1.1: + resolution: {integrity: sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==} + engines: {node: '>= 0.4'} + + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + signal-exit@3.0.7: + resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + skin-tone@2.0.0: + resolution: {integrity: sha512-kUMbT1oBJCpgrnKoSr0o6wPtvRWT9W9UKvGLwfJYO2WuahZRHOpEyL1ckyMGgMWh0UdpmaoFqKKD29WTomNEGA==} + engines: {node: '>=8'} + + source-map-js@1.2.2: + resolution: {integrity: sha512-KGj/8Y43x35aZVDtt+J4mK1hoLGHULMYfSkODJNQjNDC3oW1PqPoxMwo0pLUsWM/UEGzON/NxeHywEfNXNP3Vw==} + engines: {node: '>=0.10.0'} + + source-map@0.8.0: + resolution: {integrity: sha512-d8EqvL+k/SOXCreS/SUzg2ciyHqBBLcN/yuRjFsbvVhHTE2pgei7oAhmPM7kWFbkX6OSMQfUq4KbkF3au9lhYQ==} + engines: {node: '>= 12'} + + split2@4.2.0: + resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} + engines: {node: '>= 10.x'} + + sql-escaper@1.8.0: + resolution: {integrity: sha512-yFiNdmHt7alRRKtwV8gDXwptAl7ppk4Owd9Reu/WCBpTdNeRun6ww8vgaoyoN3qzdUlDbfOi+C2dkXpxmXuHIA==} + engines: {bun: '>=1.0.0', deno: '>=2.0.0', node: '>=12.0.0'} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + statuses@2.0.2: + resolution: {integrity: sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==} + engines: {node: '>= 0.8'} + + std-env@3.10.0: + resolution: {integrity: sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg==} + + std-env@4.3.0: + resolution: {integrity: sha512-OtU/EgQ1kIm5KwqQpBC6ZEMXrZRui11w8zgfTWp8cdO9B8OaPsbA8bTHO2P+HNo1VlUTGMVBwPhydu6poeXiag==} + + stdin-discarder@0.3.2: + resolution: {integrity: sha512-eCPu1qRxPVkl5605OTWF8Wz40b4Mf45NY5LQmVPQ599knfs5QhASUm9GbJ5BDMDOXgrnh0wyEdvzmL//YMlw0A==} + engines: {node: '>=18'} + + streamsearch@1.1.0: + resolution: {integrity: sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==} + engines: {node: '>=10.0.0'} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@8.3.0: + resolution: {integrity: sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==} + engines: {node: '>=20'} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.2.0: + resolution: {integrity: sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==} + engines: {node: '>=12'} + + strip-bom@3.0.0: + resolution: {integrity: sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==} + engines: {node: '>=4'} + + strtok3@10.8.0: + resolution: {integrity: sha512-e6bW3fD6V01DPmcbLfNtn0cjsiHvTKS/hivgbzqYMfHb/nLes4QQ0H5QBxlkPQayF4xv08AvlSgptGwN86Eemw==} + engines: {node: '>=18'} + + swagger-ui-dist@5.34.1: + resolution: {integrity: sha512-VSr8fXfI93obYaQicLJbLUKGRxDojj/SfRJDDLCioGTUBj4BK/Nj4eE9jCeCAnJxVLi7iS+08PbiZLyrQKBkJQ==} + + swagger-ui-dist@5.35.0: + resolution: {integrity: sha512-U06rpMtW9V3XPGOBeamTUSr0Z09jMX4IJuANpE/EZbAhw0G8CgwrzU4YmXkn/h0wCDNsXdGarTNNHC3sU8yVUQ==} + + swagger-ui-express@5.0.1: + resolution: {integrity: sha512-SrNU3RiBGTLLmFU8GIJdOdanJTl4TOmT27tt3bWWHppqYmAZ6IDuEuBvMU6nZq0zLEe6b/1rACXCgLZqO6ZfrA==} + engines: {node: '>= v0.10.32'} + peerDependencies: + express: '>=4.0.0 || >=5.0.0-beta' + + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinyexec@1.3.1: + resolution: {integrity: sha512-GCvB3aoys96IuDFBMcTB46JOR6mdMtAToqwiW8JlWhsoh1mhHi/xn9ss/Dg7N555GiJyEt2qzoG/NHCwM6h1EA==} + engines: {node: '>=18'} + + tinyglobby@0.2.17: + resolution: {integrity: sha512-wXR/dYpcqKmfWpEdZjiKJOwCNFndD0DMnrW/cYjVGttEkBfVgcLFHoNrlj47mjOVic9yyNu65alsgF4NQyTa2g==} + engines: {node: '>=12.0.0'} + + tinyrainbow@3.2.0: + resolution: {integrity: sha512-LgO3D9yZJjApUiuUfl9iFAwrtaX4+lok3wJIqttGoKCHlWUqHqbQpnxCf82L8FjgKsh4iGo78hqJwgL8F6To2A==} + engines: {node: '>=14.0.0'} + + toidentifier@1.0.1: + resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} + engines: {node: '>=0.6'} + + token-types@6.2.0: + resolution: {integrity: sha512-s9euYHM//T3loJtbNUYdbAzsMlvKBeRS+XCLFy+UGosMQH19Hwjap5k19i4PPAEJJBsVIpMpVTxl4fIqCuNfUg==} + engines: {node: '>=14.16'} + + tsconfig-paths@4.2.0: + resolution: {integrity: sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==} + engines: {node: '>=6'} + + tslib@2.9.1: + resolution: {integrity: sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==} + + tsx@4.23.15: + resolution: {integrity: sha512-Yiex1Ovn8z2xPpOWckIiysV1SSyRMY9BkLF++q0yKiDxCqRhosKfMg3janKkiLBwZ5c/YryloKwGZcrEmtwxKw==} + engines: {node: '>=18.0.0'} + hasBin: true + + type-is@1.6.18: + resolution: {integrity: sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==} + engines: {node: '>= 0.6'} + + type-is@2.1.0: + resolution: {integrity: sha512-faYHw0anBbc/kWF3zFTEnxSFOAGUX9GFbOBthvDdLsIlEoWOFOtS0zgCiQYwIskL9iGXZL3kAXD8OoZ4GmMATA==} + engines: {node: '>= 18'} + + typescript@6.0.3: + resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==} + engines: {node: '>=14.17'} + hasBin: true + + uid@2.0.2: + resolution: {integrity: sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==} + engines: {node: '>=8'} + + uint8array-extras@1.6.0: + resolution: {integrity: sha512-8iAasVS4wUx0gPLjH8Xtz2PeDzTSiy8QiLGu2DT3X5GU+egFEQhpnbtkehbAwjvDcxIERmCYcysiODFmE3Ud0Q==} + engines: {node: '>=18'} + + undici-types@7.24.6: + resolution: {integrity: sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==} + + unicode-emoji-modifier-base@1.0.0: + resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} + engines: {node: '>=4'} + + unpipe@1.0.0: + resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==} + engines: {node: '>= 0.8'} + + valibot@1.4.2: + resolution: {integrity: sha512-gjdCvJ6d3RyHAneqxMYMW9QMCwYMb3jpOO0IyHZV1bnRHFBHrX3VkIILt5XYR0WhwHiH7Mty8ovuPZ/O3gamrg==} + peerDependencies: + typescript: '>=5' + peerDependenciesMeta: + typescript: + optional: true + + vary@1.1.2: + resolution: {integrity: sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==} + engines: {node: '>= 0.8'} + + vite@8.3.8: + resolution: {integrity: sha512-LzOn3h9rG/0vhLdXrV4yJ4QFA9eEoqCl+Yx+kGJd7aB9w6nfNgVHKSYwLPZUHrz4ZGa+t+kXjV9itvcHDLQouA==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + '@vitejs/devtools': ^0.7.1 || ^0.8.0 + esbuild: ^0.27.0 || ^0.28.0 + jiti: '>=1.21.0' + less: ^4.0.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + '@vitejs/devtools': + optional: true + esbuild: + optional: true + jiti: + optional: true + less: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitest@4.1.12: + resolution: {integrity: sha512-5eWdz2yb3ajxWF3C8C4TjkXl7FGm3n2E/VlazALrQHzK7nYMSGFnCZto0bbPNl77AwkOZVLk0YnBAejUu0NiWA==} + engines: {node: ^20.0.0 || ^22.0.0 || >=24.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@opentelemetry/api': ^1.9.0 + '@types/node': ^20.0.0 || ^22.0.0 || >=24.0.0 + '@vitest/browser-playwright': 4.1.12 + '@vitest/browser-preview': 4.1.12 + '@vitest/browser-webdriverio': ^4.1.11 + '@vitest/coverage-istanbul': 4.1.12 + '@vitest/coverage-v8': 4.1.12 + '@vitest/ui': 4.1.12 + happy-dom: '*' + jsdom: '*' + vite: ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@opentelemetry/api': + optional: true + '@types/node': + optional: true + '@vitest/browser-playwright': + optional: true + '@vitest/browser-preview': + optional: true + '@vitest/browser-webdriverio': + optional: true + '@vitest/coverage-istanbul': + optional: true + '@vitest/coverage-v8': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + which-module@2.0.1: + resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + wrap-ansi@6.2.0: + resolution: {integrity: sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==} + engines: {node: '>=8'} + + wrappy@1.0.2: + resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + + xtend@4.0.2: + resolution: {integrity: sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==} + engines: {node: '>=0.4'} + + y18n@4.0.3: + resolution: {integrity: sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==} + + yargs-parser@18.1.3: + resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==} + engines: {node: '>=6'} + + yargs@15.4.1: + resolution: {integrity: sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==} + engines: {node: '>=8'} + + yoctocolors@2.2.0: + resolution: {integrity: sha512-xYqdZFUK/VYazNl/oCDYN+3WloWQwMfZxBoiNt6qNyk+xfOdi598muWE42rNZFp1kNOiqW936q5RhUdnpqElSg==} + engines: {node: '>=18'} + + zeptomatch@2.1.0: + resolution: {integrity: sha512-KiGErG2J0G82LSpniV0CtIzjlJ10E04j02VOudJsPyPwNZgGnRKQy7I1R7GMyg/QswnE4l7ohSGrQbQbjXPPDA==} + + zod@4.6.7: + resolution: {integrity: sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==} + +snapshots: + + '@angular-devkit/core@22.2.6(chokidar@5.0.0)': + dependencies: + ajv: 8.20.0 + ajv-formats: 3.0.1(ajv@8.20.0) + jsonc-parser: 3.3.1 + picomatch: 4.0.7 + rxjs: 7.8.2 + source-map: 0.8.0 + optionalDependencies: + chokidar: 5.0.0 + + '@angular-devkit/schematics-cli@22.2.6(@types/node@24.19.2)(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.6(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.6(chokidar@5.0.0) + '@inquirer/prompts': 8.7.2(@types/node@24.19.2) + transitivePeerDependencies: + - '@types/node' + - chokidar + + '@angular-devkit/schematics@22.2.6(chokidar@5.0.0)': + dependencies: + '@angular-devkit/core': 22.2.6(chokidar@5.0.0) + jsonc-parser: 3.3.1 + magic-string: 1.4.1 + ora: 9.4.1 + rxjs: 7.8.2 + transitivePeerDependencies: + - chokidar + + '@borewit/text-codec@0.2.3': {} + + '@colors/colors@1.5.0': + optional: true + + '@electric-sql/pglite-age@0.0.17(@electric-sql/pglite@0.5.16)': + dependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pg_hashids@0.0.17(@electric-sql/pglite@0.5.16)': + dependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pg_ivm@0.0.17(@electric-sql/pglite@0.5.16)': + dependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pg_textsearch@0.0.18(@electric-sql/pglite@0.5.16)': + dependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pg_uuidv7@0.0.17(@electric-sql/pglite@0.5.16)': + dependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pgtap@0.0.17(@electric-sql/pglite@0.5.16)': + dependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-pgvector@0.0.17(@electric-sql/pglite@0.5.16)': + dependencies: + '@electric-sql/pglite': 0.5.16 + + '@electric-sql/pglite-socket@0.1.3(@electric-sql/pglite@0.4.3)': + dependencies: + '@electric-sql/pglite': 0.4.3 + + '@electric-sql/pglite-socket@0.2.19(@electric-sql/pglite-age@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pg_hashids@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pg_ivm@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pg_textsearch@0.0.18(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pg_uuidv7@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pgtap@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite-pgvector@0.0.17(@electric-sql/pglite@0.5.16))(@electric-sql/pglite@0.5.16)': + dependencies: + '@electric-sql/pglite': 0.5.16 + '@electric-sql/pglite-age': 0.0.17(@electric-sql/pglite@0.5.16) + '@electric-sql/pglite-pg_hashids': 0.0.17(@electric-sql/pglite@0.5.16) + '@electric-sql/pglite-pg_ivm': 0.0.17(@electric-sql/pglite@0.5.16) + '@electric-sql/pglite-pg_textsearch': 0.0.18(@electric-sql/pglite@0.5.16) + '@electric-sql/pglite-pg_uuidv7': 0.0.17(@electric-sql/pglite@0.5.16) + '@electric-sql/pglite-pgtap': 0.0.17(@electric-sql/pglite@0.5.16) + '@electric-sql/pglite-pgvector': 0.0.17(@electric-sql/pglite@0.5.16) + + '@electric-sql/pglite-tools@0.3.3(@electric-sql/pglite@0.4.3)': + dependencies: + '@electric-sql/pglite': 0.4.3 + + '@electric-sql/pglite@0.4.3': {} + + '@electric-sql/pglite@0.5.16': {} + + '@emnapi/core@2.0.0-beta.2': + dependencies: + '@emnapi/wasi-threads': 2.2.0 + tslib: 2.9.1 + optional: true + + '@emnapi/runtime@2.0.0-beta.2': + dependencies: + tslib: 2.9.1 + optional: true + + '@emnapi/wasi-threads@2.2.0': + dependencies: + tslib: 2.9.1 + optional: true + + '@esbuild/aix-ppc64@0.28.2': + optional: true + + '@esbuild/android-arm64@0.28.2': + optional: true + + '@esbuild/android-arm@0.28.2': + optional: true + + '@esbuild/android-x64@0.28.2': + optional: true + + '@esbuild/darwin-arm64@0.28.2': + optional: true + + '@esbuild/darwin-x64@0.28.2': + optional: true + + '@esbuild/freebsd-arm64@0.28.2': + optional: true + + '@esbuild/freebsd-x64@0.28.2': + optional: true + + '@esbuild/linux-arm64@0.28.2': + optional: true + + '@esbuild/linux-arm@0.28.2': + optional: true + + '@esbuild/linux-ia32@0.28.2': + optional: true + + '@esbuild/linux-loong64@0.28.2': + optional: true + + '@esbuild/linux-mips64el@0.28.2': + optional: true + + '@esbuild/linux-ppc64@0.28.2': + optional: true + + '@esbuild/linux-riscv64@0.28.2': + optional: true + + '@esbuild/linux-s390x@0.28.2': + optional: true + + '@esbuild/linux-x64@0.28.2': + optional: true + + '@esbuild/netbsd-arm64@0.28.2': + optional: true + + '@esbuild/netbsd-x64@0.28.2': + optional: true + + '@esbuild/openbsd-arm64@0.28.2': + optional: true + + '@esbuild/openbsd-x64@0.28.2': + optional: true + + '@esbuild/openharmony-arm64@0.28.2': + optional: true + + '@esbuild/sunos-x64@0.28.2': + optional: true + + '@esbuild/win32-arm64@0.28.2': + optional: true + + '@esbuild/win32-ia32@0.28.2': + optional: true + + '@esbuild/win32-x64@0.28.2': + optional: true + + '@inquirer/ansi@2.1.0': {} + + '@inquirer/checkbox@5.3.0(@types/node@24.19.2)': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/confirm@6.4.0(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/core@12.1.0(@types/node@24.19.2)': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@24.19.2) + cli-width: 4.1.0 + fast-wrap-ansi: 0.2.2 + mute-stream: 4.0.0 + signal-exit: 4.1.0 + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/editor@5.4.0(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/external-editor': 3.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/expand@5.2.0(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/external-editor@3.1.0(@types/node@24.19.2)': + dependencies: + chardet: 2.2.0 + iconv-lite: 0.7.3 + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/figures@2.1.0': {} + + '@inquirer/input@5.2.0(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/number@4.3.0(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/password@5.3.0(@types/node@24.19.2)': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/prompts@8.7.2(@types/node@24.19.2)': + dependencies: + '@inquirer/checkbox': 5.3.0(@types/node@24.19.2) + '@inquirer/confirm': 6.4.0(@types/node@24.19.2) + '@inquirer/editor': 5.4.0(@types/node@24.19.2) + '@inquirer/expand': 5.2.0(@types/node@24.19.2) + '@inquirer/input': 5.2.0(@types/node@24.19.2) + '@inquirer/number': 4.3.0(@types/node@24.19.2) + '@inquirer/password': 5.3.0(@types/node@24.19.2) + '@inquirer/rawlist': 5.4.0(@types/node@24.19.2) + '@inquirer/search': 4.4.0(@types/node@24.19.2) + '@inquirer/select': 5.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/prompts@8.7.5(@types/node@24.19.2)': + dependencies: + '@inquirer/checkbox': 5.3.0(@types/node@24.19.2) + '@inquirer/confirm': 6.4.0(@types/node@24.19.2) + '@inquirer/editor': 5.4.0(@types/node@24.19.2) + '@inquirer/expand': 5.2.0(@types/node@24.19.2) + '@inquirer/input': 5.2.0(@types/node@24.19.2) + '@inquirer/number': 4.3.0(@types/node@24.19.2) + '@inquirer/password': 5.3.0(@types/node@24.19.2) + '@inquirer/rawlist': 5.4.0(@types/node@24.19.2) + '@inquirer/search': 4.4.0(@types/node@24.19.2) + '@inquirer/select': 5.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/rawlist@5.4.0(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/search@4.4.0(@types/node@24.19.2)': + dependencies: + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/select@5.3.0(@types/node@24.19.2)': + dependencies: + '@inquirer/ansi': 2.1.0 + '@inquirer/core': 12.1.0(@types/node@24.19.2) + '@inquirer/figures': 2.1.0 + '@inquirer/type': 4.3.0(@types/node@24.19.2) + optionalDependencies: + '@types/node': 24.19.2 + + '@inquirer/type@4.3.0(@types/node@24.19.2)': + optionalDependencies: + '@types/node': 24.19.2 + + '@isaacs/nonrecursive-glob-match@1.1.0': {} + + '@jridgewell/sourcemap-codec@1.6.0': {} + + '@lukeed/csprng@1.1.0': {} + + '@microsoft/tsdoc@0.17.1': {} + + '@napi-rs/wasm-runtime@1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2)': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@tybys/wasm-util': 0.10.5 + optional: true + + '@nestjs/cli@12.0.13(@types/node@24.19.2)': + dependencies: + '@angular-devkit/core': 22.2.6(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.6(chokidar@5.0.0) + '@angular-devkit/schematics-cli': 22.2.6(@types/node@24.19.2)(chokidar@5.0.0) + '@inquirer/prompts': 8.7.5(@types/node@24.19.2) + '@nestjs/schematics': 12.0.13(chokidar@5.0.0)(typescript@6.0.3) + ansis: 4.5.0 + chokidar: 5.0.0 + cli-table3: 0.6.5 + commander: 15.0.0 + jsonc-parser: 3.3.1 + minimatch: 11.0.5 + node-emoji: 2.2.0 + ora: 9.4.1 + tsconfig-paths: 4.2.0 + typescript: 6.0.3 + transitivePeerDependencies: + - '@types/node' + - prettier + + '@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2)': + dependencies: + '@standard-schema/spec': 1.1.0 + file-type: 22.3.0 + iterare: 1.2.1 + load-esm: 1.0.3 + reflect-metadata: 0.2.2 + rxjs: 7.8.2 + tslib: 2.9.1 + uid: 2.0.2 + transitivePeerDependencies: + - supports-color + + '@nestjs/core@12.5.1(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.5.1)(reflect-metadata@0.2.2)(rxjs@7.8.2)': + dependencies: + '@nestjs/common': 12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2) + fast-safe-stringify: 2.1.1 + iterare: 1.2.1 + path-to-regexp: 8.4.2 + reflect-metadata: 0.2.2 + rxjs: 7.8.2 + tslib: 2.9.1 + uid: 2.0.2 + optionalDependencies: + '@nestjs/platform-express': 12.5.1(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.5.1)(rxjs@7.8.2) + + '@nestjs/mapped-types@12.0.1(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2)': + dependencies: + '@nestjs/common': 12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2) + reflect-metadata: 0.2.2 + + '@nestjs/platform-express@12.5.1(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.5.1)(rxjs@7.8.2)': + dependencies: + '@nestjs/common': 12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 12.5.1(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.5.1)(reflect-metadata@0.2.2)(rxjs@7.8.2) + cors: 2.8.6 + express: 5.3.0 + multer: 2.5.0 + path-to-regexp: 8.4.2 + rxjs: 7.8.2 + tslib: 2.9.1 + transitivePeerDependencies: + - supports-color + + '@nestjs/schematics@12.0.13(chokidar@5.0.0)(typescript@6.0.3)': + dependencies: + '@angular-devkit/core': 22.2.6(chokidar@5.0.0) + '@angular-devkit/schematics': 22.2.6(chokidar@5.0.0) + comment-json: 5.0.0 + jsonc-parser: 3.3.1 + pluralize: 8.0.0 + typescript: 6.0.3 + transitivePeerDependencies: + - chokidar + + '@nestjs/swagger@12.1.2(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/core@12.5.1)(reflect-metadata@0.2.2)(typescript@6.0.3)': + dependencies: + '@microsoft/tsdoc': 0.17.1 + '@nestjs/common': 12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/core': 12.5.1(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(@nestjs/platform-express@12.5.1)(reflect-metadata@0.2.2)(rxjs@7.8.2) + '@nestjs/mapped-types': 12.0.1(@nestjs/common@12.5.1(reflect-metadata@0.2.2)(rxjs@7.8.2))(reflect-metadata@0.2.2) + '@standard-schema/spec': 1.1.0 + es-toolkit: 1.53.1 + js-yaml: 5.5.0 + path-to-regexp: 8.4.2 + reflect-metadata: 0.2.2 + swagger-ui-dist: 5.34.1 + optionalDependencies: + typescript: 6.0.3 + + '@oxc-project/types@0.156.0': {} + + '@prisma/adapter-pg@7.10.1': + dependencies: + '@prisma/driver-adapter-utils': 7.10.1 + '@types/pg': 8.23.1 + pg: 8.23.1 + postgres-array: 3.0.4 + transitivePeerDependencies: + - pg-native + + '@prisma/client-runtime-utils@7.10.1': {} + + '@prisma/client@7.10.1(prisma@7.10.1(@types/node@24.19.2)(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(typescript@6.0.3))(typescript@6.0.3)': + dependencies: + '@prisma/client-runtime-utils': 7.10.1 + optionalDependencies: + prisma: 7.10.1(@types/node@24.19.2)(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(typescript@6.0.3) + typescript: 6.0.3 + + '@prisma/config@7.10.1': + dependencies: + c12: 3.3.4 + deepmerge-ts: 8.0.2 + effect: 3.20.0 + empathic: 2.0.0 + transitivePeerDependencies: + - magicast + + '@prisma/debug@7.10.1': {} + + '@prisma/debug@7.2.0': {} + + '@prisma/dev@0.24.17(typescript@6.0.3)': + dependencies: + '@electric-sql/pglite': 0.4.3 + '@electric-sql/pglite-socket': 0.1.3(@electric-sql/pglite@0.4.3) + '@electric-sql/pglite-tools': 0.3.3(@electric-sql/pglite@0.4.3) + '@prisma/get-platform': 7.2.0 + '@prisma/query-plan-executor': 7.2.0 + '@prisma/streams-local': 0.1.11 + find-my-way: 9.7.0 + foreground-child: 3.3.1 + get-port-please: 3.2.0 + pathe: 2.0.3 + proper-lockfile: 4.1.2 + remeda: 2.33.4 + std-env: 3.10.0 + valibot: 1.4.2(typescript@6.0.3) + zeptomatch: 2.1.0 + transitivePeerDependencies: + - typescript + + '@prisma/driver-adapter-utils@7.10.1': + dependencies: + '@prisma/debug': 7.10.1 + + '@prisma/engines-version@8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8': {} + + '@prisma/engines@7.10.1': + dependencies: + '@prisma/debug': 7.10.1 + '@prisma/engines-version': 8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8 + '@prisma/fetch-engine': 7.10.1 + '@prisma/get-platform': 7.10.1 + + '@prisma/fetch-engine@7.10.1': + dependencies: + '@prisma/debug': 7.10.1 + '@prisma/engines-version': 8.1.0-1.d1b3f377ca835d73fd50954a5e22128b9ebdd6b8 + '@prisma/get-platform': 7.10.1 + + '@prisma/get-platform@7.10.1': + dependencies: + '@prisma/debug': 7.10.1 + + '@prisma/get-platform@7.2.0': + dependencies: + '@prisma/debug': 7.2.0 + + '@prisma/query-plan-executor@7.2.0': {} + + '@prisma/streams-local@0.1.11': + dependencies: + ajv: 8.20.0 + better-result: 2.10.0 + env-paths: 3.0.0 + proper-lockfile: 4.1.2 + + '@prisma/studio-core@0.33.0(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)': + dependencies: + '@radix-ui/react-toggle': 1.1.10(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) + '@types/react': 19.3.0 + '@visx/curve': 4.0.1-alpha.0 + '@visx/event': 4.0.1-alpha.0 + '@visx/grid': 4.0.1-alpha.0(react@19.3.1) + '@visx/group': 4.0.1-alpha.0(react@19.3.1) + '@visx/responsive': 4.0.1-alpha.0(react@19.3.1) + '@visx/scale': 4.0.1-alpha.0 + '@visx/shape': 4.0.1-alpha.0(react@19.3.1) + d3-array: 3.2.4 + d3-shape: 3.2.0 + elkjs: 0.11.1 + react: 19.3.1 + react-dom: 19.3.1(react@19.3.1) + transitivePeerDependencies: + - '@types/react-dom' + + '@radix-ui/primitive@1.1.3': {} + + '@radix-ui/react-compose-refs@1.1.2(@types/react@19.3.0)(react@19.3.1)': + dependencies: + react: 19.3.1 + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-primitive@2.1.3(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)': + dependencies: + '@radix-ui/react-slot': 1.2.3(@types/react@19.3.0)(react@19.3.1) + react: 19.3.1 + react-dom: 19.3.1(react@19.3.1) + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-slot@1.2.3(@types/react@19.3.0)(react@19.3.1)': + dependencies: + '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.3.0)(react@19.3.1) + react: 19.3.1 + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-toggle@1.1.10(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)': + dependencies: + '@radix-ui/primitive': 1.1.3 + '@radix-ui/react-primitive': 2.1.3(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) + '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.3.0)(react@19.3.1) + react: 19.3.1 + react-dom: 19.3.1(react@19.3.1) + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-use-controllable-state@1.2.2(@types/react@19.3.0)(react@19.3.1)': + dependencies: + '@radix-ui/react-use-effect-event': 0.0.2(@types/react@19.3.0)(react@19.3.1) + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.3.0)(react@19.3.1) + react: 19.3.1 + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-use-effect-event@0.0.2(@types/react@19.3.0)(react@19.3.1)': + dependencies: + '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.3.0)(react@19.3.1) + react: 19.3.1 + optionalDependencies: + '@types/react': 19.3.0 + + '@radix-ui/react-use-layout-effect@1.1.1(@types/react@19.3.0)(react@19.3.1)': + dependencies: + react: 19.3.1 + optionalDependencies: + '@types/react': 19.3.0 + + '@rolldown/binding-android-arm-eabi@1.2.19': + optional: true + + '@rolldown/binding-android-arm64@1.2.19': + optional: true + + '@rolldown/binding-darwin-arm64@1.2.19': + optional: true + + '@rolldown/binding-darwin-x64@1.2.19': + optional: true + + '@rolldown/binding-freebsd-x64@1.2.19': + optional: true + + '@rolldown/binding-linux-arm-gnueabihf@1.2.19': + optional: true + + '@rolldown/binding-linux-arm64-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-arm64-musl@1.2.19': + optional: true + + '@rolldown/binding-linux-ppc64-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-s390x-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-x64-gnu@1.2.19': + optional: true + + '@rolldown/binding-linux-x64-musl@1.2.19': + optional: true + + '@rolldown/binding-openharmony-arm64@1.2.19': + optional: true + + '@rolldown/binding-wasm32-wasi@1.2.19': + dependencies: + '@emnapi/core': 2.0.0-beta.2 + '@emnapi/runtime': 2.0.0-beta.2 + '@napi-rs/wasm-runtime': 1.2.6(@emnapi/core@2.0.0-beta.2)(@emnapi/runtime@2.0.0-beta.2) + optional: true + + '@rolldown/binding-win32-arm64-msvc@1.2.19': + optional: true + + '@rolldown/binding-win32-x64-msvc@1.2.19': + optional: true + + '@rolldown/pluginutils@1.1.1': {} + + '@scarf/scarf@1.4.0': {} + + '@sindresorhus/is@4.6.0': {} + + '@standard-schema/spec@1.1.0': {} + + '@tokenizer/inflate@0.6.1': + dependencies: + debug: 4.4.3 + strtok3: 10.8.0 + token-types: 6.2.0 + transitivePeerDependencies: + - supports-color + + '@tokenizer/token@0.3.0': {} + + '@tybys/wasm-util@0.10.5': + dependencies: + tslib: 2.9.1 + optional: true + + '@types/body-parser@1.19.6': + dependencies: + '@types/connect': 3.4.38 + '@types/node': 24.19.2 + + '@types/chai@5.2.3': + dependencies: + '@types/deep-eql': 4.0.2 + assertion-error: 2.0.1 + + '@types/connect@3.4.38': + dependencies: + '@types/node': 24.19.2 + + '@types/d3-array@3.0.3': {} + + '@types/d3-color@3.1.0': {} + + '@types/d3-delaunay@6.0.1': {} + + '@types/d3-format@3.0.1': {} + + '@types/d3-geo@3.1.0': + dependencies: + '@types/geojson': 7946.0.16 + + '@types/d3-interpolate@3.0.1': + dependencies: + '@types/d3-color': 3.1.0 + + '@types/d3-path@3.1.1': {} + + '@types/d3-scale@4.0.2': + dependencies: + '@types/d3-time': 3.0.0 + + '@types/d3-shape@3.1.7': + dependencies: + '@types/d3-path': 3.1.1 + + '@types/d3-time-format@2.1.0': {} + + '@types/d3-time@3.0.0': {} + + '@types/deep-eql@4.0.2': {} + + '@types/estree@1.0.10': {} + + '@types/express-serve-static-core@5.1.3': + dependencies: + '@types/node': 24.19.2 + '@types/qs': 6.15.1 + '@types/range-parser': 1.2.7 + '@types/send': 1.2.1 + + '@types/express@5.0.6': + dependencies: + '@types/body-parser': 1.19.6 + '@types/express-serve-static-core': 5.1.3 + '@types/serve-static': 2.2.0 + + '@types/geojson@7946.0.16': {} + + '@types/http-errors@2.0.5': {} + + '@types/lodash@4.17.27': {} + + '@types/node@24.19.2': + dependencies: + undici-types: 7.24.6 + + '@types/pg@8.23.1': + dependencies: + '@types/node': 24.19.2 + pg-protocol: 1.16.1 + pg-types: 2.2.0 + + '@types/qrcode@1.5.6': + dependencies: + '@types/node': 24.19.2 + + '@types/qs@6.15.1': {} + + '@types/range-parser@1.2.7': {} + + '@types/react@19.3.0': + dependencies: + csstype: 3.2.4 + + '@types/send@1.2.1': + dependencies: + '@types/node': 24.19.2 + + '@types/serve-static@2.2.0': + dependencies: + '@types/http-errors': 2.0.5 + '@types/node': 24.19.2 + + '@visx/curve@4.0.1-alpha.0': + dependencies: + '@visx/vendor': 4.0.0-alpha.0 + + '@visx/event@4.0.1-alpha.0': + dependencies: + '@types/react': 19.3.0 + '@visx/point': 4.0.1-alpha.0 + + '@visx/grid@4.0.1-alpha.0(react@19.3.1)': + dependencies: + '@types/react': 19.3.0 + '@visx/curve': 4.0.1-alpha.0 + '@visx/group': 4.0.1-alpha.0(react@19.3.1) + '@visx/point': 4.0.1-alpha.0 + '@visx/scale': 4.0.1-alpha.0 + '@visx/shape': 4.0.1-alpha.0(react@19.3.1) + classnames: 2.5.1 + react: 19.3.1 + + '@visx/group@4.0.1-alpha.0(react@19.3.1)': + dependencies: + '@types/react': 19.3.0 + classnames: 2.5.1 + react: 19.3.1 + + '@visx/point@4.0.1-alpha.0': {} + + '@visx/responsive@4.0.1-alpha.0(react@19.3.1)': + dependencies: + '@types/lodash': 4.17.27 + '@types/react': 19.3.0 + lodash: 4.18.1 + react: 19.3.1 + + '@visx/scale@4.0.1-alpha.0': + dependencies: + '@visx/vendor': 4.0.0-alpha.0 + + '@visx/shape@4.0.1-alpha.0(react@19.3.1)': + dependencies: + '@types/lodash': 4.17.27 + '@types/react': 19.3.0 + '@visx/curve': 4.0.1-alpha.0 + '@visx/group': 4.0.1-alpha.0(react@19.3.1) + '@visx/scale': 4.0.1-alpha.0 + '@visx/vendor': 4.0.0-alpha.0 + classnames: 2.5.1 + lodash: 4.18.1 + react: 19.3.1 + + '@visx/vendor@4.0.0-alpha.0': + dependencies: + '@types/d3-array': 3.0.3 + '@types/d3-color': 3.1.0 + '@types/d3-delaunay': 6.0.1 + '@types/d3-format': 3.0.1 + '@types/d3-geo': 3.1.0 + '@types/d3-interpolate': 3.0.1 + '@types/d3-path': 3.1.1 + '@types/d3-scale': 4.0.2 + '@types/d3-shape': 3.1.7 + '@types/d3-time': 3.0.0 + '@types/d3-time-format': 2.1.0 + d3-array: 3.2.1 + d3-color: 3.1.0 + d3-delaunay: 6.0.2 + d3-format: 3.1.0 + d3-geo: 3.1.0 + d3-interpolate: 3.0.1 + d3-path: 3.1.0 + d3-scale: 4.0.2 + d3-shape: 3.2.0 + d3-time: 3.1.0 + d3-time-format: 4.1.0 + internmap: 2.0.3 + + '@vitest/expect@4.1.12': + dependencies: + '@standard-schema/spec': 1.1.0 + '@types/chai': 5.2.3 + '@vitest/spy': 4.1.12 + '@vitest/utils': 4.1.12 + chai: 6.3.0 + tinyrainbow: 3.2.0 + + '@vitest/mocker@4.1.12(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15))': + dependencies: + '@vitest/spy': 4.1.12 + estree-walker: 3.0.3 + magic-string: 0.30.21 + optionalDependencies: + vite: 8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) + + '@vitest/pretty-format@4.1.12': + dependencies: + tinyrainbow: 3.2.0 + + '@vitest/runner@4.1.12': + dependencies: + '@vitest/utils': 4.1.12 + pathe: 2.0.3 + + '@vitest/snapshot@4.1.12': + dependencies: + '@vitest/pretty-format': 4.1.12 + '@vitest/utils': 4.1.12 + magic-string: 0.30.21 + pathe: 2.0.3 + + '@vitest/spy@4.1.12': {} + + '@vitest/utils@4.1.12': + dependencies: + '@vitest/pretty-format': 4.1.12 + convert-source-map: 2.0.0 + tinyrainbow: 3.2.0 + + accepts@2.0.0: + dependencies: + mime-types: 3.0.2 + negotiator: 1.1.0 + + ajv-formats@3.0.1(ajv@8.20.0): + optionalDependencies: + ajv: 8.20.0 + + ajv@8.20.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-uri: 3.1.9 + json-schema-traverse: 1.0.0 + require-from-string: 2.0.2 + + ansi-regex@5.0.1: {} + + ansi-regex@6.6.0: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansis@4.5.0: {} + + append-field@1.0.0: {} + + argparse@3.0.4: {} + + array-timsort@1.0.3: {} + + assertion-error@2.0.1: {} + + aws-ssl-profiles@1.1.2: {} + + balanced-match@4.0.4: {} + + better-result@2.10.0: {} + + body-parser@2.4.0: + dependencies: + bytes: 3.1.2 + content-type: 2.1.0 + debug: 4.4.3 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + on-finished: 2.4.2 + qs: 6.17.1 + raw-body: 3.0.2 + type-is: 2.1.0 + transitivePeerDependencies: + - supports-color + + brace-expansion@5.0.13: + dependencies: + balanced-match: 4.0.4 + + busboy@1.6.0: + dependencies: + streamsearch: 1.1.0 + + bytes@3.1.2: {} + + c12@3.3.4: + dependencies: + chokidar: 5.0.0 + confbox: 0.2.4 + defu: 6.1.7 + dotenv: 17.4.2 + exsolve: 1.2.0 + giget: 3.3.1 + jiti: 2.7.0 + ohash: 2.0.12 + pathe: 2.0.3 + perfect-debounce: 2.1.0 + pkg-types: 2.4.0 + rc9: 3.1.0 + + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + + call-bound@1.0.4: + dependencies: + call-bind-apply-helpers: 1.0.2 + get-intrinsic: 1.3.0 + + camelcase@5.3.1: {} + + chai@6.3.0: {} + + chalk@5.6.2: {} + + char-regex@1.0.2: {} + + chardet@2.2.0: {} + + chokidar@5.0.0: + dependencies: + readdirp: 5.1.1 + + classnames@2.5.1: {} + + cli-cursor@5.0.0: + dependencies: + restore-cursor: 5.1.0 + + cli-spinners@3.4.0: {} + + cli-table3@0.6.5: + dependencies: + string-width: 4.2.3 + optionalDependencies: + '@colors/colors': 1.5.0 + + cli-width@4.1.0: {} + + cliui@6.0.0: + dependencies: + string-width: 4.2.3 + strip-ansi: 6.0.1 + wrap-ansi: 6.2.0 + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + commander@15.0.0: {} + + comment-json@5.0.0: + dependencies: + array-timsort: 1.0.3 + esprima: 4.0.1 + + confbox@0.2.4: {} + + confbox@0.3.2: {} + + content-disposition@2.0.1: {} + + content-type@2.1.0: {} + + convert-source-map@2.0.0: {} + + cookie-signature@1.2.2: {} + + cookie@0.7.2: {} + + cors@2.8.6: + dependencies: + object-assign: 4.1.1 + vary: 1.1.2 + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + csstype@3.2.4: {} + + d3-array@3.2.1: + dependencies: + internmap: 2.0.3 + + d3-array@3.2.4: + dependencies: + internmap: 2.0.3 + + d3-color@3.1.0: {} + + d3-delaunay@6.0.2: + dependencies: + delaunator: 5.1.0 + + d3-format@3.1.0: {} + + d3-geo@3.1.0: + dependencies: + d3-array: 3.2.4 + + d3-interpolate@3.0.1: + dependencies: + d3-color: 3.1.0 + + d3-path@3.1.0: {} + + d3-path@3.1.1: {} + + d3-scale@4.0.2: + dependencies: + d3-array: 3.2.4 + d3-format: 3.1.0 + d3-interpolate: 3.0.1 + d3-time: 3.1.0 + d3-time-format: 4.1.0 + + d3-shape@3.2.0: + dependencies: + d3-path: 3.1.1 + + d3-time-format@4.1.0: + dependencies: + d3-time: 3.1.0 + + d3-time@3.1.0: + dependencies: + d3-array: 3.2.4 + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + decamelize@1.2.0: {} + + deepmerge-ts@8.0.2: {} + + defu@6.1.7: {} + + delaunator@5.1.0: + dependencies: + robust-predicates: 3.0.3 + + depd@2.0.0: {} + + destr@2.0.5: {} + + detect-libc@2.1.2: {} + + dijkstrajs@1.0.3: {} + + dotenv@17.4.2: {} + + dotenv@18.0.10: {} + + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + + ee-first@1.1.1: {} + + effect@3.20.0: + dependencies: + '@standard-schema/spec': 1.1.0 + fast-check: 3.23.2 + + elkjs@0.11.1: {} + + emoji-regex@8.0.0: {} + + emojilib@2.4.0: {} + + empathic@2.0.0: {} + + encodeurl@2.0.3: {} + + env-paths@3.0.0: {} + + es-define-property@1.0.1: {} + + es-errors@1.3.0: {} + + es-module-lexer@2.3.2: {} + + es-object-atoms@1.1.2: + dependencies: + es-errors: 1.3.0 + + es-toolkit@1.53.1: {} + + esbuild@0.28.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.28.2 + '@esbuild/android-arm': 0.28.2 + '@esbuild/android-arm64': 0.28.2 + '@esbuild/android-x64': 0.28.2 + '@esbuild/darwin-arm64': 0.28.2 + '@esbuild/darwin-x64': 0.28.2 + '@esbuild/freebsd-arm64': 0.28.2 + '@esbuild/freebsd-x64': 0.28.2 + '@esbuild/linux-arm': 0.28.2 + '@esbuild/linux-arm64': 0.28.2 + '@esbuild/linux-ia32': 0.28.2 + '@esbuild/linux-loong64': 0.28.2 + '@esbuild/linux-mips64el': 0.28.2 + '@esbuild/linux-ppc64': 0.28.2 + '@esbuild/linux-riscv64': 0.28.2 + '@esbuild/linux-s390x': 0.28.2 + '@esbuild/linux-x64': 0.28.2 + '@esbuild/netbsd-arm64': 0.28.2 + '@esbuild/netbsd-x64': 0.28.2 + '@esbuild/openbsd-arm64': 0.28.2 + '@esbuild/openbsd-x64': 0.28.2 + '@esbuild/openharmony-arm64': 0.28.2 + '@esbuild/sunos-x64': 0.28.2 + '@esbuild/win32-arm64': 0.28.2 + '@esbuild/win32-ia32': 0.28.2 + '@esbuild/win32-x64': 0.28.2 + + escape-html@1.0.3: {} + + esprima@4.0.1: {} + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.10 + + etag@1.8.1: {} + + expect-type@1.4.0: {} + + express@5.3.0: + dependencies: + accepts: 2.0.0 + body-parser: 2.4.0 + content-disposition: 2.0.1 + content-type: 2.1.0 + cookie: 0.7.2 + cookie-signature: 1.2.2 + debug: 4.4.3 + depd: 2.0.0 + encodeurl: 2.0.3 + escape-html: 1.0.3 + etag: 1.8.1 + finalhandler: 2.1.1 + fresh: 2.0.0 + http-errors: 2.0.1 + merge-descriptors: 2.0.0 + mime-types: 3.0.2 + on-finished: 2.4.2 + once: 1.4.0 + parseurl: 1.3.3 + proxy-addr: 2.0.8 + qs: 6.17.1 + range-parser: 1.3.0 + router: 2.3.0 + send: 1.2.1 + serve-static: 2.2.1 + statuses: 2.0.2 + type-is: 2.1.0 + vary: 1.1.2 + transitivePeerDependencies: + - supports-color + + exsolve@1.2.0: {} + + fast-check@3.23.2: + dependencies: + pure-rand: 6.1.0 + + fast-decode-uri-component@1.0.1: {} + + fast-deep-equal@3.1.3: {} + + fast-querystring@1.1.2: + dependencies: + fast-decode-uri-component: 1.0.1 + + fast-safe-stringify@2.1.1: {} + + fast-string-truncated-width@3.0.3: {} + + fast-string-width@3.0.2: + dependencies: + fast-string-truncated-width: 3.0.3 + + fast-uri@3.1.9: {} + + fast-wrap-ansi@0.2.2: + dependencies: + fast-string-width: 3.0.2 + + fdir@6.5.0(picomatch@4.0.7): + optionalDependencies: + picomatch: 4.0.7 + + file-type@22.3.0: + dependencies: + '@tokenizer/inflate': 0.6.1 + strtok3: 10.8.0 + token-types: 6.2.0 + uint8array-extras: 1.6.0 + transitivePeerDependencies: + - supports-color + + finalhandler@2.1.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.3 + escape-html: 1.0.3 + on-finished: 2.4.2 + parseurl: 1.3.3 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + + find-my-way@9.7.0: + dependencies: + fast-deep-equal: 3.1.3 + fast-querystring: 1.1.2 + safe-regex2: 5.1.2 + + find-up@4.1.0: + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + + foreground-child@3.3.1: + dependencies: + cross-spawn: 7.0.6 + signal-exit: 4.1.0 + + forwarded@0.2.0: {} + + fresh@2.0.0: {} + + fsevents@2.3.3: + optional: true + + function-bind@1.1.2: {} + + generate-function@2.3.1: + dependencies: + is-property: 1.0.2 + + get-caller-file@2.0.5: {} + + get-east-asian-width@1.7.0: {} + + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.2 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.4 + math-intrinsics: 1.1.0 + + get-port-please@3.2.0: {} + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.2 + + giget@3.3.1: {} + + gopd@1.2.0: {} + + graceful-fs@4.2.12: {} + + grammex@3.1.13: {} + + graphmatch@1.1.1: {} + + has-symbols@1.1.0: {} + + hasown@2.0.4: + dependencies: + function-bind: 1.1.2 + + http-errors@2.0.1: + dependencies: + depd: 2.0.0 + inherits: 2.0.4 + setprototypeof: 1.2.0 + statuses: 2.0.2 + toidentifier: 1.0.1 + + iconv-lite@0.7.3: + dependencies: + safer-buffer: 2.1.2 + + ieee754@1.2.1: {} + + inherits@2.0.4: {} + + internmap@2.0.3: {} + + ipaddr.js@1.9.1: {} + + is-fullwidth-code-point@3.0.0: {} + + is-interactive@2.0.0: {} + + is-promise@4.0.0: {} + + is-property@1.0.2: {} + + is-unicode-supported@2.1.0: {} + + isexe@2.0.0: {} + + iterare@1.2.1: {} + + jiti@2.7.0: {} + + jose@6.2.17: {} + + js-yaml@5.5.0: + dependencies: + argparse: 3.0.4 + + json-schema-traverse@1.0.0: {} + + json5@2.2.3: {} + + jsonc-parser@3.3.1: {} + + lightningcss-android-arm64@1.33.0: + optional: true + + lightningcss-darwin-arm64@1.33.0: + optional: true + + lightningcss-darwin-x64@1.33.0: + optional: true + + lightningcss-freebsd-x64@1.33.0: + optional: true + + lightningcss-linux-arm-gnueabihf@1.33.0: + optional: true + + lightningcss-linux-arm64-gnu@1.33.0: + optional: true + + lightningcss-linux-arm64-musl@1.33.0: + optional: true + + lightningcss-linux-x64-gnu@1.33.0: + optional: true + + lightningcss-linux-x64-musl@1.33.0: + optional: true + + lightningcss-win32-arm64-msvc@1.33.0: + optional: true + + lightningcss-win32-x64-msvc@1.33.0: + optional: true + + lightningcss@1.33.0: + dependencies: + detect-libc: 2.1.2 + optionalDependencies: + lightningcss-android-arm64: 1.33.0 + lightningcss-darwin-arm64: 1.33.0 + lightningcss-darwin-x64: 1.33.0 + lightningcss-freebsd-x64: 1.33.0 + lightningcss-linux-arm-gnueabihf: 1.33.0 + lightningcss-linux-arm64-gnu: 1.33.0 + lightningcss-linux-arm64-musl: 1.33.0 + lightningcss-linux-x64-gnu: 1.33.0 + lightningcss-linux-x64-musl: 1.33.0 + lightningcss-win32-arm64-msvc: 1.33.0 + lightningcss-win32-x64-msvc: 1.33.0 + + load-esm@1.0.3: {} + + locate-path@5.0.0: + dependencies: + p-locate: 4.1.0 + + lodash@4.18.1: {} + + log-symbols@7.0.1: + dependencies: + is-unicode-supported: 2.1.0 + yoctocolors: 2.2.0 + + long@5.3.2: {} + + lru.min@1.1.5: {} + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + magic-string@1.4.1: + dependencies: + '@jridgewell/sourcemap-codec': 1.6.0 + + math-intrinsics@1.1.0: {} + + media-typer@0.3.0: {} + + media-typer@1.1.1: {} + + merge-descriptors@2.0.0: {} + + mime-db@1.52.0: {} + + mime-db@1.54.0: {} + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + + mime-types@3.0.2: + dependencies: + mime-db: 1.54.0 + + mimic-function@5.0.1: {} + + minimatch@11.0.5: + dependencies: + '@isaacs/nonrecursive-glob-match': 1.1.0 + brace-expansion: 5.0.13 + + minimist@1.2.8: {} + + ms@2.1.3: {} + + multer@2.5.0: + dependencies: + append-field: 1.0.0 + busboy: 1.6.0 + type-is: 1.6.18 + + mute-stream@4.0.0: {} + + mysql2@3.24.4(@types/node@24.19.2): + dependencies: + '@types/node': 24.19.2 + aws-ssl-profiles: 1.1.2 + generate-function: 2.3.1 + iconv-lite: 0.7.3 + long: 5.3.2 + lru.min: 1.1.5 + named-placeholders: 1.1.6 + sql-escaper: 1.8.0 + + named-placeholders@1.1.6: + dependencies: + lru.min: 1.1.5 + + nanoid@3.3.20: {} + + negotiator@1.1.0: + dependencies: + content-type: 2.1.0 + + node-emoji@2.2.0: + dependencies: + '@sindresorhus/is': 4.6.0 + char-regex: 1.0.2 + emojilib: 2.4.0 + skin-tone: 2.0.0 + + object-assign@4.1.1: {} + + object-inspect@1.13.4: {} + + obug@2.2.1: {} + + ohash@2.0.12: {} + + on-finished@2.4.2: + dependencies: + ee-first: 1.1.1 + + once@1.4.0: + dependencies: + wrappy: 1.0.2 + + onetime@7.0.0: + dependencies: + mimic-function: 5.0.1 + + ora@9.4.1: + dependencies: + chalk: 5.6.2 + cli-cursor: 5.0.0 + cli-spinners: 3.4.0 + is-interactive: 2.0.0 + is-unicode-supported: 2.1.0 + log-symbols: 7.0.1 + stdin-discarder: 0.3.2 + string-width: 8.3.0 + + p-limit@2.3.0: + dependencies: + p-try: 2.2.0 + + p-locate@4.1.0: + dependencies: + p-limit: 2.3.0 + + p-try@2.2.0: {} + + parseurl@1.3.3: {} + + path-exists@4.0.0: {} + + path-key@3.1.1: {} + + path-to-regexp@8.4.2: {} + + pathe@2.0.3: {} + + perfect-debounce@2.1.0: {} + + pg-cloudflare@1.4.1: + optional: true + + pg-connection-string@2.14.1: {} + + pg-int8@1.0.1: {} + + pg-pool@3.14.0(pg@8.23.1): + dependencies: + pg: 8.23.1 + + pg-protocol@1.16.1: {} + + pg-types@2.2.0: + dependencies: + pg-int8: 1.0.1 + postgres-array: 2.0.0 + postgres-bytea: 1.0.1 + postgres-date: 1.0.7 + postgres-interval: 1.2.0 + + pg@8.23.1: + dependencies: + pg-connection-string: 2.14.1 + pg-pool: 3.14.0(pg@8.23.1) + pg-protocol: 1.16.1 + pg-types: 2.2.0 + pgpass: 1.0.5 + optionalDependencies: + pg-cloudflare: 1.4.1 + + pgpass@1.0.5: + dependencies: + split2: 4.2.0 + + picocolors@1.1.1: {} + + picomatch@4.0.7: {} + + pkg-types@2.4.0: + dependencies: + confbox: 0.3.2 + exsolve: 1.2.0 + pathe: 2.0.3 + + pluralize@8.0.0: {} + + pngjs@5.0.0: {} + + postcss@8.5.33: + dependencies: + nanoid: 3.3.20 + picocolors: 1.1.1 + source-map-js: 1.2.2 + + postgres-array@2.0.0: {} + + postgres-array@3.0.4: {} + + postgres-bytea@1.0.1: {} + + postgres-date@1.0.7: {} + + postgres-interval@1.2.0: + dependencies: + xtend: 4.0.2 + + postgres@3.4.7: {} + + prisma@7.10.1(@types/node@24.19.2)(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1)(typescript@6.0.3): + dependencies: + '@prisma/config': 7.10.1 + '@prisma/dev': 0.24.17(typescript@6.0.3) + '@prisma/engines': 7.10.1 + '@prisma/studio-core': 0.33.0(@types/react@19.3.0)(react-dom@19.3.1(react@19.3.1))(react@19.3.1) + mysql2: 3.24.4(@types/node@24.19.2) + postgres: 3.4.7 + optionalDependencies: + typescript: 6.0.3 + transitivePeerDependencies: + - '@types/node' + - '@types/react' + - '@types/react-dom' + - magicast + - react + - react-dom + + proper-lockfile@4.1.2: + dependencies: + graceful-fs: 4.2.12 + retry: 0.12.0 + signal-exit: 3.0.7 + + proxy-addr@2.0.8: + dependencies: + forwarded: 0.2.0 + ipaddr.js: 1.9.1 + + pure-rand@6.1.0: {} + + qrcode@1.5.4: + dependencies: + dijkstrajs: 1.0.3 + pngjs: 5.0.0 + yargs: 15.4.1 + + qs@6.17.1: + dependencies: + es-define-property: 1.0.1 + side-channel: 1.1.1 + + range-parser@1.3.0: {} + + raw-body@3.0.2: + dependencies: + bytes: 3.1.2 + http-errors: 2.0.1 + iconv-lite: 0.7.3 + unpipe: 1.0.0 + + rc9@3.1.0: + dependencies: + defu: 6.1.7 + destr: 2.0.5 + + react-dom@19.3.1(react@19.3.1): + dependencies: + react: 19.3.1 + scheduler: 0.28.0 + + react@19.3.1: {} + + readdirp@5.1.1: {} + + reflect-metadata@0.2.2: {} + + remeda@2.33.4: {} + + require-directory@2.1.1: {} + + require-from-string@2.0.2: {} + + require-main-filename@2.0.0: {} + + restore-cursor@5.1.0: + dependencies: + onetime: 7.0.0 + signal-exit: 4.1.0 + + ret@0.5.1: {} + + retry@0.12.0: {} + + robust-predicates@3.0.3: {} + + rolldown@1.2.19: + dependencies: + '@oxc-project/types': 0.156.0 + '@rolldown/pluginutils': 1.1.1 + optionalDependencies: + '@rolldown/binding-android-arm-eabi': 1.2.19 + '@rolldown/binding-android-arm64': 1.2.19 + '@rolldown/binding-darwin-arm64': 1.2.19 + '@rolldown/binding-darwin-x64': 1.2.19 + '@rolldown/binding-freebsd-x64': 1.2.19 + '@rolldown/binding-linux-arm-gnueabihf': 1.2.19 + '@rolldown/binding-linux-arm64-gnu': 1.2.19 + '@rolldown/binding-linux-arm64-musl': 1.2.19 + '@rolldown/binding-linux-ppc64-gnu': 1.2.19 + '@rolldown/binding-linux-s390x-gnu': 1.2.19 + '@rolldown/binding-linux-x64-gnu': 1.2.19 + '@rolldown/binding-linux-x64-musl': 1.2.19 + '@rolldown/binding-openharmony-arm64': 1.2.19 + '@rolldown/binding-wasm32-wasi': 1.2.19 + '@rolldown/binding-win32-arm64-msvc': 1.2.19 + '@rolldown/binding-win32-x64-msvc': 1.2.19 + + router@2.3.0: + dependencies: + debug: 4.4.3 + depd: 2.0.0 + is-promise: 4.0.0 + parseurl: 1.3.3 + path-to-regexp: 8.4.2 + transitivePeerDependencies: + - supports-color + + rxjs@7.8.2: + dependencies: + tslib: 2.9.1 + + safe-regex2@5.1.2: + dependencies: + ret: 0.5.1 + + safer-buffer@2.1.2: {} + + scheduler@0.28.0: {} + + send@1.2.1: + dependencies: + debug: 4.4.3 + encodeurl: 2.0.3 + escape-html: 1.0.3 + etag: 1.8.1 + fresh: 2.0.0 + http-errors: 2.0.1 + mime-types: 3.0.2 + ms: 2.1.3 + on-finished: 2.4.2 + range-parser: 1.3.0 + statuses: 2.0.2 + transitivePeerDependencies: + - supports-color + + serve-static@2.2.1: + dependencies: + encodeurl: 2.0.3 + escape-html: 1.0.3 + parseurl: 1.3.3 + send: 1.2.1 + transitivePeerDependencies: + - supports-color + + set-blocking@2.0.0: {} + + setprototypeof@1.2.0: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + side-channel-list@1.0.1: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + + side-channel-map@1.0.1: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + + side-channel-weakmap@1.0.2: + dependencies: + call-bound: 1.0.4 + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + object-inspect: 1.13.4 + side-channel-map: 1.0.1 + + side-channel@1.1.1: + dependencies: + es-errors: 1.3.0 + object-inspect: 1.13.4 + side-channel-list: 1.0.1 + side-channel-map: 1.0.1 + side-channel-weakmap: 1.0.2 + + siginfo@2.0.0: {} + + signal-exit@3.0.7: {} + + signal-exit@4.1.0: {} + + skin-tone@2.0.0: + dependencies: + unicode-emoji-modifier-base: 1.0.0 + + source-map-js@1.2.2: {} + + source-map@0.8.0: {} + + split2@4.2.0: {} + + sql-escaper@1.8.0: {} + + stackback@0.0.2: {} + + statuses@2.0.2: {} + + std-env@3.10.0: {} + + std-env@4.3.0: {} + + stdin-discarder@0.3.2: {} + + streamsearch@1.1.0: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@8.3.0: + dependencies: + get-east-asian-width: 1.7.0 + strip-ansi: 7.2.0 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.2.0: + dependencies: + ansi-regex: 6.6.0 + + strip-bom@3.0.0: {} + + strtok3@10.8.0: + dependencies: + '@tokenizer/token': 0.3.0 + + swagger-ui-dist@5.34.1: + dependencies: + '@scarf/scarf': 1.4.0 + + swagger-ui-dist@5.35.0: + dependencies: + '@scarf/scarf': 1.4.0 + + swagger-ui-express@5.0.1(express@5.3.0): + dependencies: + express: 5.3.0 + swagger-ui-dist: 5.35.0 + + tinybench@2.9.0: {} + + tinyexec@1.3.1: {} + + tinyglobby@0.2.17: + dependencies: + fdir: 6.5.0(picomatch@4.0.7) + picomatch: 4.0.7 + + tinyrainbow@3.2.0: {} + + toidentifier@1.0.1: {} + + token-types@6.2.0: + dependencies: + '@borewit/text-codec': 0.2.3 + '@tokenizer/token': 0.3.0 + ieee754: 1.2.1 + + tsconfig-paths@4.2.0: + dependencies: + json5: 2.2.3 + minimist: 1.2.8 + strip-bom: 3.0.0 + + tslib@2.9.1: {} + + tsx@4.23.15: + dependencies: + esbuild: 0.28.2 + optionalDependencies: + fsevents: 2.3.3 + + type-is@1.6.18: + dependencies: + media-typer: 0.3.0 + mime-types: 2.1.35 + + type-is@2.1.0: + dependencies: + content-type: 2.1.0 + media-typer: 1.1.1 + mime-types: 3.0.2 + + typescript@6.0.3: {} + + uid@2.0.2: + dependencies: + '@lukeed/csprng': 1.1.0 + + uint8array-extras@1.6.0: {} + + undici-types@7.24.6: {} + + unicode-emoji-modifier-base@1.0.0: {} + + unpipe@1.0.0: {} + + valibot@1.4.2(typescript@6.0.3): + optionalDependencies: + typescript: 6.0.3 + + vary@1.1.2: {} + + vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15): + dependencies: + lightningcss: 1.33.0 + picomatch: 4.0.7 + postcss: 8.5.33 + rolldown: 1.2.19 + tinyglobby: 0.2.17 + optionalDependencies: + '@types/node': 24.19.2 + esbuild: 0.28.2 + fsevents: 2.3.3 + jiti: 2.7.0 + tsx: 4.23.15 + + vitest@4.1.12(@types/node@24.19.2)(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)): + dependencies: + '@vitest/expect': 4.1.12 + '@vitest/mocker': 4.1.12(vite@8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15)) + '@vitest/pretty-format': 4.1.12 + '@vitest/runner': 4.1.12 + '@vitest/snapshot': 4.1.12 + '@vitest/spy': 4.1.12 + '@vitest/utils': 4.1.12 + es-module-lexer: 2.3.2 + expect-type: 1.4.0 + magic-string: 0.30.21 + obug: 2.2.1 + pathe: 2.0.3 + picomatch: 4.0.7 + std-env: 4.3.0 + tinybench: 2.9.0 + tinyexec: 1.3.1 + tinyglobby: 0.2.17 + tinyrainbow: 3.2.0 + vite: 8.3.8(@types/node@24.19.2)(esbuild@0.28.2)(jiti@2.7.0)(tsx@4.23.15) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 24.19.2 + transitivePeerDependencies: + - msw + + which-module@2.0.1: {} + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + + wrap-ansi@6.2.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrappy@1.0.2: {} + + xtend@4.0.2: {} + + y18n@4.0.3: {} + + yargs-parser@18.1.3: + dependencies: + camelcase: 5.3.1 + decamelize: 1.2.0 + + yargs@15.4.1: + dependencies: + cliui: 6.0.0 + decamelize: 1.2.0 + find-up: 4.1.0 + get-caller-file: 2.0.5 + require-directory: 2.1.1 + require-main-filename: 2.0.0 + set-blocking: 2.0.0 + string-width: 4.2.3 + which-module: 2.0.1 + y18n: 4.0.3 + yargs-parser: 18.1.3 + + yoctocolors@2.2.0: {} + + zeptomatch@2.1.0: + dependencies: + grammex: 3.1.13 + graphmatch: 1.1.1 + + zod@4.6.7: {} diff --git a/prisma.config.ts b/prisma.config.ts new file mode 100644 index 0000000..24393ca --- /dev/null +++ b/prisma.config.ts @@ -0,0 +1,14 @@ +import 'dotenv/config'; +import { defineConfig, env } from 'prisma/config'; + +export default defineConfig({ + schema: 'prisma/schema.prisma', + migrations: { path: 'prisma/migrations', seed: 'tsx prisma/seed.ts' }, + // `prisma generate` never connects, so installs work without a database. + datasource: { + url: + process.argv[2] === 'generate' + ? process.env.DATABASE_URL || 'postgresql://postgres:postgres@localhost:5432/generate_only' + : env('DATABASE_URL'), + }, +}); diff --git a/prisma/migrations/20261117182114_init/migration.sql b/prisma/migrations/20261117182114_init/migration.sql new file mode 100644 index 0000000..46daa47 --- /dev/null +++ b/prisma/migrations/20261117182114_init/migration.sql @@ -0,0 +1,355 @@ +-- CreateEnum +CREATE TYPE "ApplicationStatus" AS ENUM ('DRAFT', 'SUBMITTED', 'UNDER_REVIEW', 'SHORTLISTED', 'FINALIST', 'ACCEPTED', 'REJECTED'); + +-- CreateEnum +CREATE TYPE "Role" AS ENUM ('ATTENDEE', 'STAFF', 'ADMIN'); + +-- CreateEnum +CREATE TYPE "InquiryStatus" AS ENUM ('NEW', 'CONTACTED', 'CLOSED'); + +-- CreateEnum +CREATE TYPE "OrderKind" AS ENUM ('TICKET', 'MERCH'); + +-- CreateEnum +CREATE TYPE "OrderStatus" AS ENUM ('PENDING', 'PAID', 'CANCELLED', 'FULFILLED'); + +-- CreateEnum +CREATE TYPE "CheckpointKind" AS ENUM ('BOOTH', 'STARTUP_MEMBER', 'MYSTERY_INVESTEE'); + +-- CreateTable +CREATE TABLE "applications" ( + "id" TEXT NOT NULL, + "edition_id" TEXT NOT NULL, + "resume_token" TEXT NOT NULL, + "status" "ApplicationStatus" NOT NULL DEFAULT 'DRAFT', + "founder_name" TEXT, + "email" TEXT NOT NULL, + "phone" TEXT, + "role" TEXT, + "startup_name" TEXT, + "website" TEXT, + "city" TEXT, + "year_founded" INTEGER, + "co_founders" INTEGER, + "team_size" TEXT, + "stage" TEXT, + "primary_sector" TEXT, + "secondary_sector" TEXT, + "other_sector" TEXT, + "referral_source" TEXT, + "business_plan_url" TEXT, + "pitch_deck_url" TEXT, + "license_url" TEXT, + "license_status" TEXT, + "license_note" TEXT, + "tin" TEXT, + "demo_url" TEXT, + "product" JSONB, + "mindset" JSONB, + "goals" JSONB, + "consents" JSONB, + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" TIMESTAMPTZ NOT NULL, + "submitted_at" TIMESTAMPTZ, + + CONSTRAINT "applications_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "sectors" ( + "id" SERIAL NOT NULL, + "name" TEXT NOT NULL, + "sort_order" INTEGER NOT NULL DEFAULT 0, + "active" BOOLEAN NOT NULL DEFAULT true, + + CONSTRAINT "sectors_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "reviews" ( + "id" TEXT NOT NULL, + "application_id" TEXT NOT NULL, + "reviewer" TEXT NOT NULL, + "scores" JSONB NOT NULL, + "total" DOUBLE PRECISION NOT NULL, + "comment" TEXT, + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + "updated_at" TIMESTAMPTZ NOT NULL, + + CONSTRAINT "reviews_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "users" ( + "id" TEXT NOT NULL, + "email" TEXT NOT NULL, + "name" TEXT, + "role" "Role" NOT NULL DEFAULT 'ATTENDEE', + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "users_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "otp_codes" ( + "id" TEXT NOT NULL, + "email" TEXT NOT NULL, + "code_hash" TEXT NOT NULL, + "attempts" INTEGER NOT NULL DEFAULT 0, + "expires_at" TIMESTAMPTZ NOT NULL, + "used_at" TIMESTAMPTZ, + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "otp_codes_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "inquiries" ( + "id" TEXT NOT NULL, + "intent" TEXT NOT NULL, + "name" TEXT NOT NULL, + "email" TEXT NOT NULL, + "company" TEXT, + "phone" TEXT, + "message" TEXT NOT NULL, + "payload" JSONB NOT NULL, + "status" "InquiryStatus" NOT NULL DEFAULT 'NEW', + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "inquiries_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "ticket_tiers" ( + "id" TEXT NOT NULL, + "code" TEXT NOT NULL, + "name" TEXT NOT NULL, + "description" TEXT NOT NULL DEFAULT '', + "schedule_label" TEXT, + "features" JSONB NOT NULL DEFAULT '[]', + "price_minor" INTEGER NOT NULL, + "currency" TEXT NOT NULL DEFAULT 'USD', + "capacity" INTEGER, + "sort_order" INTEGER NOT NULL DEFAULT 0, + "active" BOOLEAN NOT NULL DEFAULT true, + + CONSTRAINT "ticket_tiers_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "discount_codes" ( + "id" TEXT NOT NULL, + "code" TEXT NOT NULL, + "percent_off" INTEGER, + "amount_off_minor" INTEGER, + "tier_id" TEXT, + "max_uses" INTEGER, + "starts_at" TIMESTAMPTZ, + "ends_at" TIMESTAMPTZ, + "active" BOOLEAN NOT NULL DEFAULT true, + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "discount_codes_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "orders" ( + "id" TEXT NOT NULL, + "number" SERIAL NOT NULL, + "kind" "OrderKind" NOT NULL, + "status" "OrderStatus" NOT NULL DEFAULT 'PENDING', + "user_id" TEXT, + "buyer_name" TEXT NOT NULL, + "buyer_email" TEXT NOT NULL, + "buyer_phone" TEXT, + "company" TEXT, + "payment_method" TEXT NOT NULL, + "payment_ref" TEXT, + "subtotal_minor" INTEGER NOT NULL, + "discount_minor" INTEGER NOT NULL DEFAULT 0, + "total_minor" INTEGER NOT NULL, + "currency" TEXT NOT NULL DEFAULT 'USD', + "discount_code_id" TEXT, + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + "paid_at" TIMESTAMPTZ, + "fulfilled_at" TIMESTAMPTZ, + + CONSTRAINT "orders_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "order_items" ( + "id" TEXT NOT NULL, + "order_id" TEXT NOT NULL, + "tier_id" TEXT, + "merch_item_id" TEXT, + "name" TEXT NOT NULL, + "qty" INTEGER NOT NULL, + "size" TEXT, + "unit_price_minor" INTEGER NOT NULL, + + CONSTRAINT "order_items_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "tickets" ( + "id" TEXT NOT NULL, + "order_id" TEXT NOT NULL, + "tier_id" TEXT NOT NULL, + "holder_email" TEXT NOT NULL, + "holder_name" TEXT, + "qr_token" TEXT NOT NULL, + "checked_in_at" TIMESTAMPTZ, + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "tickets_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "merch_items" ( + "id" TEXT NOT NULL, + "name" TEXT NOT NULL, + "description" TEXT, + "price_minor" INTEGER NOT NULL, + "currency" TEXT NOT NULL DEFAULT 'USD', + "sizes" JSONB NOT NULL DEFAULT '[]', + "stock" INTEGER NOT NULL DEFAULT 0, + "image_url" TEXT, + "sort_order" INTEGER NOT NULL DEFAULT 0, + "active" BOOLEAN NOT NULL DEFAULT true, + + CONSTRAINT "merch_items_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "checkpoints" ( + "id" TEXT NOT NULL, + "kind" "CheckpointKind" NOT NULL, + "label" TEXT NOT NULL, + "organisation" TEXT, + "booth_number" TEXT, + "person_name" TEXT, + "points" INTEGER NOT NULL DEFAULT 10, + "qr_token" TEXT NOT NULL, + "active" BOOLEAN NOT NULL DEFAULT true, + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "checkpoints_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "scans" ( + "id" TEXT NOT NULL, + "user_id" TEXT NOT NULL, + "checkpoint_id" TEXT NOT NULL, + "points_awarded" INTEGER NOT NULL, + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "scans_pkey" PRIMARY KEY ("id") +); + +-- CreateTable +CREATE TABLE "raffles" ( + "id" TEXT NOT NULL, + "name" TEXT NOT NULL, + "prize" TEXT NOT NULL, + "min_points" INTEGER NOT NULL DEFAULT 0, + "drawn_at" TIMESTAMPTZ, + "winner_user_id" TEXT, + "created_at" TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, + + CONSTRAINT "raffles_pkey" PRIMARY KEY ("id") +); + +-- CreateIndex +CREATE UNIQUE INDEX "applications_resume_token_key" ON "applications"("resume_token"); + +-- CreateIndex +CREATE INDEX "applications_edition_id_status_idx" ON "applications"("edition_id", "status"); + +-- CreateIndex +CREATE UNIQUE INDEX "applications_edition_id_email_key" ON "applications"("edition_id", "email"); + +-- CreateIndex +CREATE UNIQUE INDEX "sectors_name_key" ON "sectors"("name"); + +-- CreateIndex +CREATE UNIQUE INDEX "reviews_application_id_reviewer_key" ON "reviews"("application_id", "reviewer"); + +-- CreateIndex +CREATE UNIQUE INDEX "users_email_key" ON "users"("email"); + +-- CreateIndex +CREATE INDEX "otp_codes_email_created_at_idx" ON "otp_codes"("email", "created_at"); + +-- CreateIndex +CREATE INDEX "inquiries_intent_status_idx" ON "inquiries"("intent", "status"); + +-- CreateIndex +CREATE UNIQUE INDEX "ticket_tiers_code_key" ON "ticket_tiers"("code"); + +-- CreateIndex +CREATE UNIQUE INDEX "discount_codes_code_key" ON "discount_codes"("code"); + +-- CreateIndex +CREATE UNIQUE INDEX "orders_number_key" ON "orders"("number"); + +-- CreateIndex +CREATE INDEX "orders_kind_status_idx" ON "orders"("kind", "status"); + +-- CreateIndex +CREATE INDEX "orders_buyer_email_idx" ON "orders"("buyer_email"); + +-- CreateIndex +CREATE UNIQUE INDEX "tickets_qr_token_key" ON "tickets"("qr_token"); + +-- CreateIndex +CREATE INDEX "tickets_holder_email_idx" ON "tickets"("holder_email"); + +-- CreateIndex +CREATE UNIQUE INDEX "checkpoints_qr_token_key" ON "checkpoints"("qr_token"); + +-- CreateIndex +CREATE INDEX "checkpoints_kind_idx" ON "checkpoints"("kind"); + +-- CreateIndex +CREATE INDEX "scans_created_at_idx" ON "scans"("created_at"); + +-- CreateIndex +CREATE UNIQUE INDEX "scans_user_id_checkpoint_id_key" ON "scans"("user_id", "checkpoint_id"); + +-- AddForeignKey +ALTER TABLE "reviews" ADD CONSTRAINT "reviews_application_id_fkey" FOREIGN KEY ("application_id") REFERENCES "applications"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "discount_codes" ADD CONSTRAINT "discount_codes_tier_id_fkey" FOREIGN KEY ("tier_id") REFERENCES "ticket_tiers"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "orders" ADD CONSTRAINT "orders_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "orders" ADD CONSTRAINT "orders_discount_code_id_fkey" FOREIGN KEY ("discount_code_id") REFERENCES "discount_codes"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "order_items" ADD CONSTRAINT "order_items_order_id_fkey" FOREIGN KEY ("order_id") REFERENCES "orders"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "order_items" ADD CONSTRAINT "order_items_tier_id_fkey" FOREIGN KEY ("tier_id") REFERENCES "ticket_tiers"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "order_items" ADD CONSTRAINT "order_items_merch_item_id_fkey" FOREIGN KEY ("merch_item_id") REFERENCES "merch_items"("id") ON DELETE SET NULL ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "tickets" ADD CONSTRAINT "tickets_order_id_fkey" FOREIGN KEY ("order_id") REFERENCES "orders"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "tickets" ADD CONSTRAINT "tickets_tier_id_fkey" FOREIGN KEY ("tier_id") REFERENCES "ticket_tiers"("id") ON DELETE RESTRICT ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "scans" ADD CONSTRAINT "scans_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "scans" ADD CONSTRAINT "scans_checkpoint_id_fkey" FOREIGN KEY ("checkpoint_id") REFERENCES "checkpoints"("id") ON DELETE CASCADE ON UPDATE CASCADE; + +-- AddForeignKey +ALTER TABLE "raffles" ADD CONSTRAINT "raffles_winner_user_id_fkey" FOREIGN KEY ("winner_user_id") REFERENCES "users"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.toml new file mode 100644 index 0000000..044d57c --- /dev/null +++ b/prisma/migrations/migration_lock.toml @@ -0,0 +1,3 @@ +# Please do not edit this file manually +# It should be added in your version-control system (e.g., Git) +provider = "postgresql" diff --git a/prisma/schema.prisma b/prisma/schema.prisma new file mode 100644 index 0000000..40e3900 --- /dev/null +++ b/prisma/schema.prisma @@ -0,0 +1,333 @@ +// GRV Summit — Postgres source of truth. +// Rules: timestamps are UTC timestamptz, money is integer minor units, points are derived from Scan rows. +// The schema is expected to grow: application step answers stay in Json columns so the form can change freely. + +generator client { + provider = "prisma-client" + output = "../src/generated/prisma" + moduleFormat = "esm" +} + +datasource db { + provider = "postgresql" +} + +// ---------------------------------------------------------------- applications (ported from D1) + +enum ApplicationStatus { + DRAFT + SUBMITTED + UNDER_REVIEW + SHORTLISTED + FINALIST + ACCEPTED + REJECTED +} + +model Application { + id String @id @default(uuid()) + editionId String @map("edition_id") + resumeToken String @unique @default(uuid()) @map("resume_token") + status ApplicationStatus @default(DRAFT) + founderName String? @map("founder_name") + email String // lowercase + phone String? // 9 digits after +251 + role String? + startupName String? @map("startup_name") + website String? + city String? + yearFounded Int? @map("year_founded") + coFounders Int? @map("co_founders") + teamSize String? @map("team_size") + stage String? + primarySector String? @map("primary_sector") + secondarySector String? @map("secondary_sector") + otherSector String? @map("other_sector") + referralSource String? @map("referral_source") + // ponytail: Drive/Dropbox links; move to private object storage uploads when needed. + businessPlanUrl String? @map("business_plan_url") + pitchDeckUrl String? @map("pitch_deck_url") + licenseUrl String? @map("license_url") + licenseStatus String? @map("license_status") + licenseNote String? @map("license_note") + tin String? + demoUrl String? @map("demo_url") + product Json? + mindset Json? + goals Json? + consents Json? + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz + submittedAt DateTime? @map("submitted_at") @db.Timestamptz + reviews Review[] + + @@unique([editionId, email]) + @@index([editionId, status]) + @@map("applications") +} + +model Sector { + id Int @id @default(autoincrement()) + name String @unique + sortOrder Int @default(0) @map("sort_order") + active Boolean @default(true) + + @@map("sectors") +} + +/// One review per reviewer (staff email) per application. scores = { criterionId: 1-5 }. +model Review { + id String @id @default(uuid()) + applicationId String @map("application_id") + application Application @relation(fields: [applicationId], references: [id], onDelete: Cascade) + reviewer String + scores Json + total Float + comment String? + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz + + @@unique([applicationId, reviewer]) + @@map("reviews") +} + +// ---------------------------------------------------------------- accounts + +enum Role { + ATTENDEE + STAFF + ADMIN +} + +model User { + id String @id @default(uuid()) + email String @unique // lowercase + name String? + role Role @default(ATTENDEE) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + scans Scan[] + orders Order[] + rafflesWon Raffle[] + + @@map("users") +} + +model OtpCode { + id String @id @default(uuid()) + email String + codeHash String @map("code_hash") + attempts Int @default(0) + expiresAt DateTime @map("expires_at") @db.Timestamptz + usedAt DateTime? @map("used_at") @db.Timestamptz + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + + @@index([email, createdAt]) + @@map("otp_codes") +} + +// ---------------------------------------------------------------- inquiries (exhibitors, partners, sponsors, press…) + +enum InquiryStatus { + NEW + CONTACTED + CLOSED +} + +model Inquiry { + id String @id @default(uuid()) + intent String // see src/shared/inquiry.ts inquiryIntents + name String + email String + company String? + phone String? + message String + payload Json // the full validated form, so new form fields need no migration + status InquiryStatus @default(NEW) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + + @@index([intent, status]) + @@map("inquiries") +} + +// ---------------------------------------------------------------- commerce + +model TicketTier { + id String @id @default(uuid()) + code String @unique // matches the site's ticket id, e.g. "summit-pass" + name String + description String @default("") + scheduleLabel String? @map("schedule_label") + features Json @default("[]") + priceMinor Int @map("price_minor") + currency String @default("USD") + capacity Int? + sortOrder Int @default(0) @map("sort_order") + active Boolean @default(true) + orderItems OrderItem[] + tickets Ticket[] + discounts DiscountCode[] + + @@map("ticket_tiers") +} + +/// Uses are counted from PAID/FULFILLED orders, never stored. +model DiscountCode { + id String @id @default(uuid()) + code String @unique // uppercase + percentOff Int? @map("percent_off") + amountOffMinor Int? @map("amount_off_minor") + tierId String? @map("tier_id") + tier TicketTier? @relation(fields: [tierId], references: [id]) + maxUses Int? @map("max_uses") + startsAt DateTime? @map("starts_at") @db.Timestamptz + endsAt DateTime? @map("ends_at") @db.Timestamptz + active Boolean @default(true) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + orders Order[] + + @@map("discount_codes") +} + +enum OrderKind { + TICKET + MERCH +} + +enum OrderStatus { + PENDING + PAID + CANCELLED + FULFILLED +} + +model Order { + id String @id @default(uuid()) + number Int @unique @default(autoincrement()) + kind OrderKind + status OrderStatus @default(PENDING) + userId String? @map("user_id") + user User? @relation(fields: [userId], references: [id]) + buyerName String @map("buyer_name") + buyerEmail String @map("buyer_email") + buyerPhone String? @map("buyer_phone") + company String? + paymentMethod String @map("payment_method") // card | bank | booth + paymentRef String? @map("payment_ref") + subtotalMinor Int @map("subtotal_minor") + discountMinor Int @default(0) @map("discount_minor") + totalMinor Int @map("total_minor") + currency String @default("USD") + discountCodeId String? @map("discount_code_id") + discountCode DiscountCode? @relation(fields: [discountCodeId], references: [id]) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + paidAt DateTime? @map("paid_at") @db.Timestamptz + fulfilledAt DateTime? @map("fulfilled_at") @db.Timestamptz + items OrderItem[] + tickets Ticket[] + + @@index([kind, status]) + @@index([buyerEmail]) + @@map("orders") +} + +/// Exactly one of tierId / merchItemId is set. name + unitPriceMinor are snapshots. +model OrderItem { + id String @id @default(uuid()) + orderId String @map("order_id") + order Order @relation(fields: [orderId], references: [id], onDelete: Cascade) + tierId String? @map("tier_id") + tier TicketTier? @relation(fields: [tierId], references: [id]) + merchItemId String? @map("merch_item_id") + merchItem MerchItem? @relation(fields: [merchItemId], references: [id]) + name String + qty Int + size String? + unitPriceMinor Int @map("unit_price_minor") + + @@map("order_items") +} + +model Ticket { + id String @id @default(uuid()) + orderId String @map("order_id") + order Order @relation(fields: [orderId], references: [id], onDelete: Cascade) + tierId String @map("tier_id") + tier TicketTier @relation(fields: [tierId], references: [id]) + holderEmail String @map("holder_email") // lowercase; links to User by email + holderName String? @map("holder_name") + qrToken String @unique @map("qr_token") + checkedInAt DateTime? @map("checked_in_at") @db.Timestamptz + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + + @@index([holderEmail]) + @@map("tickets") +} + +model MerchItem { + id String @id @default(uuid()) + name String + description String? + priceMinor Int @map("price_minor") + currency String @default("USD") + sizes Json @default("[]") + stock Int @default(0) // decremented when an order is placed, restored on cancel + imageUrl String? @map("image_url") + sortOrder Int @default(0) @map("sort_order") + active Boolean @default(true) + orderItems OrderItem[] + + @@map("merch_items") +} + +// ---------------------------------------------------------------- event game + +enum CheckpointKind { + BOOTH + STARTUP_MEMBER + MYSTERY_INVESTEE +} + +model Checkpoint { + id String @id @default(uuid()) + kind CheckpointKind + label String + organisation String? + boothNumber String? @map("booth_number") + personName String? @map("person_name") + points Int @default(10) // MYSTERY_INVESTEE awards points * 2 + qrToken String @unique @map("qr_token") + active Boolean @default(true) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + scans Scan[] + + @@index([kind]) + @@map("checkpoints") +} + +/// Points = SUM(pointsAwarded); the unique pair makes a repeat scan a no-op. +model Scan { + id String @id @default(uuid()) + userId String @map("user_id") + user User @relation(fields: [userId], references: [id], onDelete: Cascade) + checkpointId String @map("checkpoint_id") + checkpoint Checkpoint @relation(fields: [checkpointId], references: [id], onDelete: Cascade) + pointsAwarded Int @map("points_awarded") + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + + @@unique([userId, checkpointId]) + @@index([createdAt]) + @@map("scans") +} + +model Raffle { + id String @id @default(uuid()) + name String + prize String + minPoints Int @default(0) @map("min_points") + drawnAt DateTime? @map("drawn_at") @db.Timestamptz + winnerUserId String? @map("winner_user_id") + winner User? @relation(fields: [winnerUserId], references: [id]) + createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz + + @@map("raffles") +} diff --git a/prisma/seed.ts b/prisma/seed.ts new file mode 100644 index 0000000..02a140b --- /dev/null +++ b/prisma/seed.ts @@ -0,0 +1,64 @@ +// Idempotent. `pnpm db:seed` = sectors + ticket tiers from the site. `pnpm db:seed --demo` adds sample +// checkpoints, merch and a raffle so the admin and app have something to show. +import { PrismaService } from '../src/prisma.service.js'; +import { newToken } from '../src/modules/commerce.js'; +import { DEFAULT_POINTS } from '../src/modules/game.js'; + +const prisma = new PrismaService(); + +const sectors = [ + 'Agriculture & Agritech', 'Fintech', 'Health & Healthtech', 'Education & Edtech', 'E-commerce & Retail', + 'Logistics & Mobility', 'Manufacturing', 'Energy & Cleantech', 'Tourism & Hospitality', 'Creative & Media', + 'Construction & Real Estate', 'Software / SaaS', 'Social Impact', +]; + +// Mirrors GRVSummit/content/tickets.ts; edit prices in the admin afterwards. +const tiers = [ + { + code: 'summit-pass', name: 'Summit Pass', priceMinor: 15000, sortOrder: 1, + description: 'Full access to both days including workshops, panels, exhibitor hall, and pitch finals.', + features: ['2-day summit access', 'Workshops & panel discussions', 'Exhibitor hall networking', 'Pitch competition attendance'], + }, + { + code: 'vip-pass', name: 'VIP Pass', priceMinor: 35000, sortOrder: 2, + description: 'Premium access with reserved seating and exclusive networking sessions.', + features: ['Everything in Summit Pass', 'Reserved seating', 'VIP networking reception', 'Priority check-in'], + }, + { + code: 'cocktail-pass', name: 'Cocktail Pass', priceMinor: 7500, sortOrder: 3, scheduleLabel: 'Day 2 — 22 Feb 2027', + description: 'Join the summit cocktail reception and evening networking on the second day at Skylight Hotel.', + features: ['Day 2 evening cocktail reception', 'Networking with investors & founders', 'Light bites & refreshments', 'Summit program guide'], + }, +]; + +for (const [i, name] of sectors.entries()) { + await prisma.sector.upsert({ where: { name }, create: { name, sortOrder: i + 1 }, update: {} }); +} +await prisma.sector.upsert({ where: { name: 'Other' }, create: { name: 'Other', sortOrder: 99 }, update: {} }); +for (const t of tiers) await prisma.ticketTier.upsert({ where: { code: t.code }, create: t, update: {} }); + +if (process.argv.includes('--demo') && (await prisma.checkpoint.count()) === 0) { + const cp = (kind: keyof typeof DEFAULT_POINTS, label: string, extra: object = {}) => ({ + kind, label, points: DEFAULT_POINTS[kind], qrToken: newToken(), ...extra, + }); + await prisma.checkpoint.createMany({ + data: [ + cp('BOOTH', 'Ethiopian Airlines', { organisation: 'Ethiopian Airlines', boothNumber: 'A1' }), + cp('BOOTH', 'UNDP Ethiopia', { organisation: 'UNDP', boothNumber: 'A2' }), + cp('BOOTH', 'EDTF', { organisation: 'Ethiopian Diaspora Trust Fund', boothNumber: 'B1' }), + cp('STARTUP_MEMBER', 'Founder & CEO', { organisation: 'Demo Startup', personName: 'Sample Founder' }), + cp('STARTUP_MEMBER', 'CTO', { organisation: 'Demo Startup', personName: 'Sample CTO' }), + cp('MYSTERY_INVESTEE', 'Next investee', { organisation: 'Secret Startup', personName: 'Mystery Founder' }), + ], + }); + await prisma.merchItem.createMany({ + data: [ + { name: 'GRV Summit T-shirt', priceMinor: 1500, sizes: ['S', 'M', 'L', 'XL'], stock: 100 }, + { name: 'GRV Tote bag', priceMinor: 1000, stock: 50 }, + ], + }); + await prisma.raffle.create({ data: { name: 'Grand raffle', prize: 'Round-trip flight', minPoints: 50 } }); +} + +console.log('Seeded.'); +await prisma.$disconnect(); diff --git a/scripts/dev-db.mjs b/scripts/dev-db.mjs new file mode 100644 index 0000000..1f23a6a --- /dev/null +++ b/scripts/dev-db.mjs @@ -0,0 +1,31 @@ +// Local Postgres without Docker: PGlite (real Postgres 17 in WASM) behind the wire protocol. +// Usage: pnpm db:dev → postgresql://postgres:postgres@127.0.0.1:5433/postgres +// Use Docker Compose Postgres instead whenever Docker is available. +import { mkdirSync } from 'node:fs'; +import { PGlite } from '@electric-sql/pglite'; + +import { PGLiteSocketServer } from '@electric-sql/pglite-socket'; + +const dataDir = process.env.PGLITE_DIR ?? '.data/pglite'; +const port = Number(process.env.PGLITE_PORT ?? 5433); +mkdirSync(dataDir, { recursive: true }); + +const db = await PGlite.create({ dataDir }); +const server = new PGLiteSocketServer({ + db, + port, + host: '127.0.0.1', + maxConnections: 20, +}); +await server.start(); +console.log( + `PGlite listening on postgresql://postgres:postgres@127.0.0.1:${port}/postgres (${dataDir})`, +); + +const stop = async () => { + await server.stop(); + await db.close(); + process.exit(0); +}; +process.on('SIGINT', stop); +process.on('SIGTERM', stop); diff --git a/scripts/import-d1.ts b/scripts/import-d1.ts new file mode 100644 index 0000000..53f4d2a --- /dev/null +++ b/scripts/import-d1.ts @@ -0,0 +1,63 @@ +// One-off: copy applications + reviews from the site's Cloudflare D1 into Postgres. +// 1. In GRVSummit: npx wrangler d1 export grv-summit --remote --no-schema --output d1.sql +// 2. Here: pnpm db:import-d1 ../GRVSummit/d1.sql +// Re-running is safe: existing ids are skipped. +import { readFileSync } from 'node:fs'; +import { PGlite } from '@electric-sql/pglite'; +import { PrismaService } from '../src/prisma.service.js'; +import type { Prisma } from '../src/generated/prisma/client.js'; + +const file = process.argv[2]; +if (!file) throw new Error('Usage: pnpm db:import-d1 '); + +// Load the SQLite INSERTs into a scratch in-memory Postgres to parse them; the D1 types are all TEXT/INTEGER/REAL. +const sql = readFileSync(file, 'utf8'); +const scratch = new PGlite(); +const ddl = readFileSync(new URL('../../GRVSummit/migrations/0001_applications.sql', import.meta.url), 'utf8') + .replace(/INSERT INTO sectors[\s\S]*?;/, '') + .replace(/INTEGER PRIMARY KEY/g, 'INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY'); +await scratch.exec(ddl); +for (const stmt of sql.split(/;\s*\n/)) { + if (/^\s*INSERT INTO "?(applications|reviews)"?/i.test(stmt)) await scratch.exec(stmt); +} + +const prisma = new PrismaService(); +const json = (v: unknown) => (v ? (JSON.parse(String(v)) as Prisma.InputJsonValue) : undefined); +const date = (v: unknown) => (v ? new Date(String(v)) : undefined); +const apps = (await scratch.query>('SELECT * FROM applications')).rows; +let imported = 0; +for (const a of apps) { + if (await prisma.application.findUnique({ where: { id: String(a.id) } })) continue; + await prisma.application.create({ + data: { + id: String(a.id), editionId: String(a.edition_id), resumeToken: String(a.resume_token), + status: String(a.status) as never, email: String(a.email), + founderName: a.founder_name as string | null, phone: a.phone as string | null, role: a.role as string | null, + startupName: a.startup_name as string | null, website: a.website as string | null, city: a.city as string | null, + yearFounded: a.year_founded == null ? null : Number(a.year_founded), coFounders: a.co_founders == null ? null : Number(a.co_founders), + teamSize: a.team_size as string | null, stage: a.stage as string | null, + primarySector: a.primary_sector as string | null, secondarySector: a.secondary_sector as string | null, + otherSector: a.other_sector as string | null, referralSource: a.referral_source as string | null, + businessPlanUrl: a.business_plan_url as string | null, pitchDeckUrl: a.pitch_deck_url as string | null, + licenseUrl: a.license_url as string | null, licenseStatus: a.license_status as string | null, + licenseNote: a.license_note as string | null, tin: a.tin as string | null, demoUrl: a.demo_url as string | null, + product: json(a.product), mindset: json(a.mindset), goals: json(a.goals), consents: json(a.consents), + createdAt: date(a.created_at), updatedAt: date(a.updated_at), submittedAt: date(a.submitted_at), + }, + }); + imported += 1; +} +const reviews = (await scratch.query>('SELECT * FROM reviews')).rows; +for (const r of reviews) { + await prisma.review.upsert({ + where: { applicationId_reviewer: { applicationId: String(r.application_id), reviewer: String(r.reviewer) } }, + create: { + id: String(r.id), applicationId: String(r.application_id), reviewer: String(r.reviewer), + scores: json(r.scores) ?? {}, total: Number(r.total), comment: r.comment as string | null, + createdAt: date(r.created_at), updatedAt: date(r.updated_at), + }, + update: {}, + }); +} +console.log(`Imported ${imported}/${apps.length} applications, ${reviews.length} reviews.`); +await prisma.$disconnect(); diff --git a/src/app.module.ts b/src/app.module.ts new file mode 100644 index 0000000..8e35700 --- /dev/null +++ b/src/app.module.ts @@ -0,0 +1,36 @@ +import { Controller, Get, Module } from '@nestjs/common'; +import { APP_GUARD } from '@nestjs/core'; +import { PrismaModule } from './prisma.service.js'; +import { AdminApplicationsController, ApplicationsController } from './modules/applications.js'; +import { AuthController, AuthGuard, Public } from './modules/auth.js'; +import { AdminCommerceController, CommerceController, CommerceService, MerchOrdersController } from './modules/commerce.js'; +import { AdminGameController, GameController, GameService } from './modules/game.js'; +import { AdminInquiriesController, InquiriesController } from './modules/inquiries.js'; + +@Public() +@Controller() +class HealthController { + @Get('health') + health() { + return { ok: true }; + } +} + +@Module({ + imports: [PrismaModule], + controllers: [ + HealthController, + AuthController, + ApplicationsController, + AdminApplicationsController, + InquiriesController, + AdminInquiriesController, + CommerceController, + MerchOrdersController, + AdminCommerceController, + GameController, + AdminGameController, + ], + providers: [CommerceService, GameService, { provide: APP_GUARD, useClass: AuthGuard }], +}) +export class AppModule {} diff --git a/src/common/env.ts b/src/common/env.ts new file mode 100644 index 0000000..181dd1c --- /dev/null +++ b/src/common/env.ts @@ -0,0 +1,27 @@ +import 'dotenv/config'; + +const list = (v: string | undefined) => + (v ?? '').split(',').map((s) => s.trim().toLowerCase()).filter(Boolean); + +export const SITE_URL = (process.env.SITE_URL || 'https://grv.ethiopiatrustfund.org').replace(/\/$/, ''); +export const ADMIN_URL = (process.env.ADMIN_URL || 'http://localhost:5173').replace(/\/$/, ''); + +export const env = { + port: Number(process.env.PORT || 4000), + isProd: process.env.NODE_ENV === 'production', + jwtSecret: process.env.JWT_SECRET || '', + adminEmails: list(process.env.ADMIN_EMAILS), + staffEmails: list(process.env.STAFF_EMAILS), + corsOrigins: list(process.env.CORS_ORIGINS), + paymentInstructions: + process.env.PAYMENT_INSTRUCTIONS || + 'Our team will email you an invoice with bank transfer details. Tickets are issued once payment is confirmed.', +}; + +export function assertEnv() { + if (env.jwtSecret.length < 32) throw new Error('JWT_SECRET must be at least 32 characters'); + if (!process.env.DATABASE_URL) throw new Error('DATABASE_URL is required'); +} + +export const checkpointUrl = (token: string) => `${SITE_URL}/q/${token}`; +export const ticketUrl = (token: string) => `${SITE_URL}/t/${token}`; diff --git a/src/common/http.ts b/src/common/http.ts new file mode 100644 index 0000000..8d35a1b --- /dev/null +++ b/src/common/http.ts @@ -0,0 +1,70 @@ +import { + type ArgumentsHost, + Catch, + type ExceptionFilter, + HttpException, + Logger, + type PipeTransform, +} from '@nestjs/common'; +import type { Response } from 'express'; +import type { z } from 'zod'; + +/** Rendered as `{ ok: false, error, code?, ...extra }`. */ +export class AppError extends HttpException { + constructor( + status: number, + readonly error: string, + readonly code?: string, + readonly extra: Record = {}, + ) { + super(error, status); + } +} + +export const notFound = (what = 'Not found') => new AppError(404, what, 'not_found'); +export const badRequest = (error: string, extra: Record = {}) => + new AppError(400, error, 'validation_failed', extra); +export const conflict = (error: string, code = 'conflict', extra: Record = {}) => + new AppError(409, error, code, extra); + +export const isUniqueViolation = (err: unknown) => + (err as { code?: string })?.code === 'P2002' || String((err as Error)?.message).includes('23505'); + +@Catch() +export class ErrorFilter implements ExceptionFilter { + private readonly log = new Logger('Errors'); + + catch(exception: unknown, host: ArgumentsHost) { + const res = host.switchToHttp().getResponse(); + if (exception instanceof AppError) { + res.status(exception.getStatus()).json({ + ok: false, + error: exception.error, + ...(exception.code ? { code: exception.code } : {}), + ...exception.extra, + }); + return; + } + if (exception instanceof HttpException) { + const status = exception.getStatus(); + res.status(status).json({ ok: false, error: exception.message }); + return; + } + this.log.error(exception instanceof Error ? (exception.stack ?? exception.message) : exception); + res.status(500).json({ ok: false, error: 'Something went wrong. Please try again.' }); + } +} + +/** `@Body(zod(Schema))` — parses or throws a 400 with per-field errors. */ +export const zod = (schema: T): PipeTransform> => ({ + transform(value: unknown) { + const res = schema.safeParse(value ?? {}); + if (res.success) return res.data; + const errors: Record = {}; + for (const issue of res.error.issues) errors[issue.path.join('.') || '_'] ??= issue.message; + throw badRequest(Object.values(errors)[0] ?? 'Invalid request', { errors }); + }, +}); + +/** Accepts a full QR URL (…/q/, …/t/) or the bare token. */ +export const tokenFrom = (input: string) => input.trim().split(/[/?#]/).filter(Boolean).pop() ?? ''; diff --git a/src/common/mail.ts b/src/common/mail.ts new file mode 100644 index 0000000..bc59f7d --- /dev/null +++ b/src/common/mail.ts @@ -0,0 +1,44 @@ +import { Logger } from '@nestjs/common'; + +export type Mail = { + to: string | string[]; + subject: string; + html: string; + text: string; + replyTo?: string; +}; + +const log = new Logger('Mail'); + +/** Sends one email through Resend's REST API. Without RESEND_API_KEY (dev) it prints the text instead. */ +export async function sendMail(mail: Mail) { + const key = process.env.RESEND_API_KEY; + if (!key) { + log.log(`[dev] to=${String(mail.to)} subject="${mail.subject}"\n${mail.text}`); + return 'dev'; + } + const res = await fetch('https://api.resend.com/emails', { + method: 'POST', + headers: { Authorization: `Bearer ${key}`, 'Content-Type': 'application/json' }, + body: JSON.stringify({ + from: process.env.RESEND_FROM || 'GRV Summit ', + to: mail.to, + subject: mail.subject, + html: mail.html, + text: mail.text, + ...(mail.replyTo ? { reply_to: mail.replyTo } : {}), + }), + }); + const json = (await res.json().catch(() => ({}))) as { id?: string; message?: string }; + if (!res.ok) throw new Error(`Resend ${res.status}: ${json.message ?? 'send failed'}`); + return json.id; +} + +export const staffInbox = () => process.env.NOTIFY_TO || 'tech@ethiopiatrustfund.org'; + +/** Fire-and-forget for flows whose data is already saved: failures are logged, never thrown. */ +export function sendInBackground(label: string, mails: Mail[]) { + for (const mail of mails) { + sendMail(mail).catch((err) => log.error(`${label}: ${err instanceof Error ? err.message : err}`)); + } +} diff --git a/src/main.ts b/src/main.ts new file mode 100644 index 0000000..9e7eea3 --- /dev/null +++ b/src/main.ts @@ -0,0 +1,16 @@ +import 'reflect-metadata'; +import { NestFactory } from '@nestjs/core'; +import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger'; +import { AppModule } from './app.module.js'; +import { assertEnv, env } from './common/env.js'; +import { ErrorFilter } from './common/http.js'; + +assertEnv(); +const app = await NestFactory.create(AppModule); +app.enableCors({ origin: env.corsOrigins.length ? env.corsOrigins : false }); +app.useGlobalFilters(new ErrorFilter()); +app.enableShutdownHooks(); +const doc = new DocumentBuilder().setTitle('GRV Summit API').addBearerAuth().build(); +SwaggerModule.setup('docs', app, SwaggerModule.createDocument(app, doc)); +await app.listen(env.port); +console.log(`GRV backend on http://localhost:${env.port} (docs at /docs)`); diff --git a/src/modules/applications.ts b/src/modules/applications.ts new file mode 100644 index 0000000..1cf296f --- /dev/null +++ b/src/modules/applications.ts @@ -0,0 +1,387 @@ +import { Body, Controller, Get, Header, Param, Patch, Post, Put, Query, Res } from '@nestjs/common'; +import type { Response } from 'express'; +import { z } from 'zod'; +import { AppError, badRequest, conflict, notFound, zod } from '../common/http.js'; +import { sendInBackground, staffInbox } from '../common/mail.js'; +import type { Application, ApplicationStatus, Prisma, User } from '../generated/prisma/client.js'; +import { PrismaService } from '../prisma.service.js'; +import { applyConfig, applySteps, formatApplyDate, type ApplyValues } from '../shared/apply.js'; +import { isClosed, pickStepValues, validateStep } from '../shared/apply-validation.js'; +import { + applyReceivedEmail, + applyResultEmail, + applyResumeEmail, + applyStaffEmail, + isResultStatus, +} from '../shared/email-templates.js'; +import { CurrentUser, Public, Staff } from './auth.js'; + +export const scoreCriteria = [ + { id: 'problemSolution', label: 'Problem & solution' }, + { id: 'marketTraction', label: 'Market & traction' }, + { id: 'businessModel', label: 'Business model' }, + { id: 'teamMindset', label: 'Team & founder mindset' }, + { id: 'goalsFeasibility', label: 'Feasibility of goals' }, + { id: 'pitchDeck', label: 'Pitch deck quality' }, +] as const; + +const reviewStatuses = ['SUBMITTED', 'UNDER_REVIEW', 'SHORTLISTED', 'FINALIST', 'ACCEPTED', 'REJECTED'] as const; +const reviewStep = applySteps.length - 1; +const TOKEN = /^[0-9a-f-]{36}$/; + +// ---------------------------------------------------------------- row <-> form values +// Field ids in shared/apply.ts are the Prisma field names; JSON steps live in one Json column each. + +function stepData(stepIndex: number, values: ApplyValues): Prisma.ApplicationUpdateInput { + const step = applySteps[stepIndex]!; + if (step.json) return { [step.json]: values }; + const data: Record = {}; + for (const field of step.fields) { + const v = values[field.id]; + data[field.id] = v === '' || v === undefined ? null : field.kind === 'number' ? Number(v) : v; + } + return data; +} + +export function rowToValues(row: Application): ApplyValues { + const values: ApplyValues = {}; + const record = row as unknown as Record; + for (const step of applySteps) { + if (step.json) { + Object.assign(values, (record[step.json] as ApplyValues | null) ?? {}); + continue; + } + for (const field of step.fields) { + const raw = record[field.id]; + values[field.id] = raw === null || raw === undefined ? '' : String(raw); + } + } + return values; +} + +// ---------------------------------------------------------------- public /applications (the site's /apply form) + +const Values = z.object({ values: z.unknown().optional() }); +const Step = z.object({ step: z.number().int(), values: z.unknown().optional() }); + +@Public() +@Controller() +export class ApplicationsController { + constructor(private readonly prisma: PrismaService) {} + + private sectors() { + return this.prisma.sector + .findMany({ where: { active: true }, orderBy: [{ sortOrder: 'asc' }, { name: 'asc' }] }) + .then((rows) => rows.map((r) => r.name)); + } + + private async load(token: string) { + const row = TOKEN.test(token) ? await this.prisma.application.findUnique({ where: { resumeToken: token } }) : null; + if (!row) throw notFound('Application not found'); + return row; + } + + /** Another application this edition already uses the email: 409, and re-send the draft's resume link. */ + private async assertEmailFree(email: string, exceptId = '') { + const other = await this.prisma.application.findFirst({ + where: { editionId: applyConfig.editionId, email, id: { not: exceptId } }, + }); + if (!other) return; + if (other.status === 'DRAFT') { + sendInBackground('resume link', [{ to: email, ...applyResumeEmail(other.founderName ?? '', other.resumeToken) }]); + const message = "A draft already exists for this email. We've emailed you its resume link."; + throw conflict(message, 'conflict', { errors: { email: message } }); + } + const message = 'An application with this email has already been submitted for this edition.'; + throw conflict(message, 'conflict', { errors: { email: message } }); + } + + private validate(step: number, values: ApplyValues, sectors?: readonly string[]) { + const errors = validateStep(step, values, sectors); + if (Object.keys(errors).length) throw badRequest('Please fix the highlighted fields.', { errors }); + } + + @Get('sectors') + async listSectors() { + return { ok: true, sectors: await this.sectors() }; + } + + /** Create a draft from step 1 and hand back its resume token. */ + @Post('applications') + async create(@Body(zod(Values)) body: { values?: unknown }) { + if (isClosed()) throw new AppError(403, 'Applications are closed.'); + const values = pickStepValues(0, body.values); + this.validate(0, values, await this.sectors()); + const email = String(values.email); + await this.assertEmailFree(email); + + const row = await this.prisma.application.create({ + data: { editionId: applyConfig.editionId, email, ...(stepData(0, values) as object) } as Prisma.ApplicationCreateInput, + }); + sendInBackground('resume link', [{ to: email, ...applyResumeEmail(String(values.founderName ?? ''), row.resumeToken) }]); + return { ok: true, token: row.resumeToken }; + } + + @Get('applications/:token') + async get(@Param('token') token: string) { + const row = await this.load(token); + return { ok: true, status: row.status, submittedAt: row.submittedAt, values: rowToValues(row) }; + } + + /** Save one step: { step, values }. The review step's consents are saved by /submit. */ + @Patch('applications/:token') + async save(@Param('token') token: string, @Body(zod(Step)) body: { step: number; values?: unknown }) { + if (body.step < 0 || body.step >= reviewStep) throw badRequest('Unknown step'); + const row = await this.load(token); + if (row.status !== 'DRAFT') throw conflict('This application has already been submitted.'); + if (isClosed()) throw new AppError(403, 'Applications are closed.'); + + const values = pickStepValues(body.step, body.values); + this.validate(body.step, values, body.step === 0 ? await this.sectors() : undefined); + if (body.step === 0) await this.assertEmailFree(String(values.email), row.id); + + await this.prisma.application.updateMany({ + where: { id: row.id, status: 'DRAFT' }, + data: stepData(body.step, values) as Prisma.ApplicationUpdateManyMutationInput, + }); + return { ok: true }; + } + + /** Body: { values } with the review-step consents. Validates every step, then locks. */ + @Post('applications/:token/submit') + async submit(@Param('token') token: string, @Body(zod(Values)) body: { values?: unknown }) { + const consents = pickStepValues(reviewStep, body.values); + const row = await this.load(token); + if (row.status !== 'DRAFT') throw conflict('This application has already been submitted.'); + if (isClosed()) throw new AppError(403, 'The application deadline has passed.'); + + const values = { ...rowToValues(row), ...consents }; + const sectors = await this.sectors(); + for (let step = 0; step < applySteps.length; step += 1) { + const errors = validateStep(step, values, sectors); + if (Object.keys(errors).length) { + throw badRequest(`Please complete “${applySteps[step]!.title}” before submitting.`, { step, errors }); + } + } + + const submittedAt = new Date(); + const { count } = await this.prisma.application.updateMany({ + where: { id: row.id, status: 'DRAFT' }, + data: { ...(stepData(reviewStep, consents) as object), status: 'SUBMITTED', submittedAt }, + }); + if (!count) throw conflict('This application has already been submitted.'); + + const text = (id: string) => (typeof values[id] === 'string' ? (values[id] as string) : ''); + const startup = text('startupName') || 'Untitled startup'; + sendInBackground('application submitted', [ + { + to: row.email, + ...applyReceivedEmail({ + name: text('founderName'), + startup, + token: row.resumeToken, + contactBy: formatApplyDate(applyConfig.contactBy), + }), + }, + { + to: staffInbox(), + replyTo: row.email, + ...applyStaffEmail({ + id: row.id, + startup, + rows: [ + ['Startup', startup], + ['One-liner', text('oneLiner')], + ['Founder', text('founderName')], + ['Email', row.email], + ['Phone', text('phone') && `+251 ${text('phone')}`], + ['Sector', text('primarySector')], + ['Stage', text('stage')], + ['City', text('city')], + ['Business plan', text('businessPlanUrl')], + ['Pitch deck', text('pitchDeckUrl')], + ['License', text('licenseUrl') || text('licenseStatus')], + ['Demo', text('demoUrl')], + ], + }), + }, + ]); + return { ok: true, submittedAt: submittedAt.toISOString() }; + } +} + +// ---------------------------------------------------------------- admin review + +const Filters = z.object({ + status: z.string().optional(), + sector: z.string().optional(), + stage: z.string().optional(), + city: z.string().optional(), + q: z.string().optional(), +}); +type Filters = z.infer; + +const csvCell = (value: unknown) => { + let text = Array.isArray(value) ? value.join('; ') : value == null ? '' : String(value); + // Block spreadsheet formula injection from applicant-supplied text. + if (/^[=+\-@\t\r]/.test(text)) text = `'${text}`; + return `"${text.replace(/"/g, '""')}"`; +}; + +const display = (v: ApplyValues[string] | undefined) => + Array.isArray(v) ? v.join(', ') : typeof v === 'boolean' ? (v ? 'Yes' : 'No') : (v ?? ''); + +@Staff() +@Controller('admin/applications') +export class AdminApplicationsController { + constructor(private readonly prisma: PrismaService) {} + + /** Shared by the table and the CSV export. Drafts are hidden unless asked for. */ + private async list(f: Filters) { + const status = f.status && (f.status as ApplicationStatus); + const rows = await this.prisma.application.findMany({ + where: { + editionId: applyConfig.editionId, + status: status || { not: 'DRAFT' }, + ...(f.sector ? { primarySector: f.sector } : {}), + ...(f.stage ? { stage: f.stage } : {}), + ...(f.city ? { city: f.city } : {}), + ...(f.q + ? { + OR: ['startupName', 'founderName', 'email'].map((k) => ({ + [k]: { contains: f.q, mode: 'insensitive' as const }, + })), + } + : {}), + }, + include: { reviews: { select: { total: true } } }, + orderBy: [{ submittedAt: { sort: 'desc', nulls: 'last' } }, { createdAt: 'desc' }], + }); + return rows.map((r) => ({ + row: r, + avgScore: r.reviews.length ? r.reviews.reduce((s, x) => s + x.total, 0) / r.reviews.length : null, + reviewCount: r.reviews.length, + })); + } + + @Get() + async index(@Query(zod(Filters)) f: Filters) { + if (f.status && !(f.status === 'DRAFT' || (reviewStatuses as readonly string[]).includes(f.status))) { + throw badRequest('Unknown status'); + } + return (await this.list(f)).map(({ row, avgScore, reviewCount }) => ({ + id: row.id, + startupName: row.startupName, + founderName: row.founderName, + email: row.email, + primarySector: row.primarySector, + stage: row.stage, + city: row.city, + status: row.status, + submittedAt: row.submittedAt, + avgScore, + reviewCount, + })); + } + + @Get('export.csv') + @Header('Content-Type', 'text/csv; charset=utf-8') + @Header('Cache-Control', 'no-store') + async export(@Query(zod(Filters)) f: Filters, @Res({ passthrough: true }) res: Response) { + const fields = applySteps.flatMap((s) => s.fields).filter((field) => field.kind !== 'consent'); + const header = ['Status', 'Submitted', 'Avg score', 'Reviews', ...fields.map((field) => field.label)]; + const lines = (await this.list(f)).map(({ row, avgScore, reviewCount }) => { + const values = rowToValues(row); + return [row.status, row.submittedAt?.toISOString(), avgScore?.toFixed(2), reviewCount, ...fields.map((x) => values[x.id])] + .map(csvCell) + .join(','); + }); + res.setHeader( + 'Content-Disposition', + `attachment; filename="grv-applications-${new Date().toISOString().slice(0, 10)}.csv"`, + ); + return [header.map(csvCell).join(','), ...lines].join('\r\n'); + } + + @Get(':id') + async detail(@Param('id') id: string) { + const row = await this.prisma.application.findUnique({ + where: { id }, + include: { reviews: { orderBy: { updatedAt: 'desc' } } }, + }); + if (!row) throw notFound('Application not found'); + const values = rowToValues(row); + return { + id: row.id, + status: row.status, + email: row.email, + startupName: row.startupName, + founderName: row.founderName, + createdAt: row.createdAt, + submittedAt: row.submittedAt, + sections: applySteps.map((step) => ({ + title: step.title, + fields: step.fields + .filter((field) => display(values[field.id]) !== '') + .map((field) => ({ label: field.label, value: display(values[field.id]) })), + })), + reviews: row.reviews.map((r) => ({ + reviewer: r.reviewer, + scores: r.scores, + total: r.total, + comment: r.comment, + updatedAt: r.updatedAt, + })), + criteria: scoreCriteria, + }; + } + + @Post('status') + async setStatus( + @Body(zod(z.object({ ids: z.array(z.string()).min(1).max(500), status: z.enum(reviewStatuses) }))) + { ids, status }: { ids: string[]; status: (typeof reviewStatuses)[number] }, + ) { + // Only rows whose status actually changes get an email, so re-saving never re-notifies. + const changing = await this.prisma.application.findMany({ + where: { id: { in: ids }, status: { notIn: ['DRAFT', status] } }, + select: { email: true, founderName: true, startupName: true }, + }); + const { count } = await this.prisma.application.updateMany({ + where: { id: { in: ids }, status: { not: 'DRAFT' } }, + data: { status }, + }); + if (isResultStatus(status)) { + sendInBackground( + `status ${status}`, + changing.map((r) => ({ to: r.email, ...applyResultEmail(status, r.founderName ?? '', r.startupName ?? 'your startup') })), + ); + } + return { updated: count }; + } + + @Put(':id/review') + async review( + @Param('id') id: string, + @CurrentUser() user: User, + @Body( + zod( + z.object({ + scores: z.object(Object.fromEntries(scoreCriteria.map((c) => [c.id, z.number().int().min(1).max(5)]))), + comment: z.string().trim().max(2000).optional(), + }), + ), + ) + body: { scores: Record; comment?: string }, + ) { + const app = await this.prisma.application.findUnique({ where: { id }, select: { status: true } }); + if (!app || app.status === 'DRAFT') throw notFound('Application not found'); + const total = Object.values(body.scores).reduce((s, n) => s + n, 0) / scoreCriteria.length; + const data = { scores: body.scores, total, comment: body.comment || null }; + await this.prisma.review.upsert({ + where: { applicationId_reviewer: { applicationId: id, reviewer: user.email } }, + create: { applicationId: id, reviewer: user.email, ...data }, + update: data, + }); + return { ok: true }; + } +} diff --git a/src/modules/auth.ts b/src/modules/auth.ts new file mode 100644 index 0000000..628754f --- /dev/null +++ b/src/modules/auth.ts @@ -0,0 +1,144 @@ +import { + Body, + type CanActivate, + Controller, + createParamDecorator, + type ExecutionContext, + HttpCode, + Injectable, + Post, + SetMetadata, +} from '@nestjs/common'; +import { Reflector } from '@nestjs/core'; +import { createHash, randomInt, timingSafeEqual } from 'node:crypto'; +import { jwtVerify, SignJWT } from 'jose'; +import { z } from 'zod'; +import { env } from '../common/env.js'; +import { AppError, zod } from '../common/http.js'; +import { sendInBackground } from '../common/mail.js'; +import { otpEmail } from '../shared/email-templates.js'; +import type { Role, User } from '../generated/prisma/client.js'; +import { PrismaService } from '../prisma.service.js'; + +const OTP_TTL_MS = 10 * 60_000; +const OTP_MAX_ATTEMPTS = 5; +const OTP_MAX_PER_HOUR = 5; +// ponytail: no refresh tokens; long-lived attendee JWTs. Add rotation if tokens ever need revoking early. +const TTL = { ATTENDEE: '30d', STAFF: '12h', ADMIN: '12h' } as const; + +const secret = () => new TextEncoder().encode(env.jwtSecret); +const hashCode = (email: string, code: string) => + createHash('sha256').update(`${env.jwtSecret}:${email}:${code}`).digest('hex'); + +export const roleFor = (email: string): Role => + env.adminEmails.includes(email) ? 'ADMIN' : env.staffEmails.includes(email) ? 'STAFF' : 'ATTENDEE'; + +export const publicUser = (u: User) => ({ id: u.id, email: u.email, name: u.name, role: u.role }); + +// ---------------------------------------------------------------- decorators + guard + +const IS_PUBLIC = 'isPublic'; +const ROLES = 'roles'; +/** No token needed. */ +export const Public = () => SetMetadata(IS_PUBLIC, true); +/** Restrict to these roles (default for authenticated routes: any role). */ +export const Roles = (...roles: Role[]) => SetMetadata(ROLES, roles); +export const Staff = () => Roles('STAFF', 'ADMIN'); +export const AdminOnly = () => Roles('ADMIN'); +export const CurrentUser = createParamDecorator( + (_: unknown, ctx: ExecutionContext) => ctx.switchToHttp().getRequest().user as User, +); + +@Injectable() +export class AuthGuard implements CanActivate { + constructor( + private readonly reflector: Reflector, + private readonly prisma: PrismaService, + ) {} + + async canActivate(ctx: ExecutionContext) { + const targets = [ctx.getHandler(), ctx.getClass()]; + if (this.reflector.getAllAndOverride(IS_PUBLIC, targets)) return true; + + const req = ctx.switchToHttp().getRequest(); + const header = String(req.headers.authorization ?? ''); + const token = /^Bearer\s+/i.test(header) ? header.replace(/^Bearer\s+/i, '') : ''; + const sub = token + ? await jwtVerify(token, secret(), { issuer: 'grv-backend', algorithms: ['HS256'] }) + .then((r) => r.payload.sub) + .catch(() => undefined) + : undefined; + const user = sub ? await this.prisma.user.findUnique({ where: { id: sub } }) : null; + if (!user) throw new AppError(401, 'Please sign in again.', 'unauthorized'); + + const roles = this.reflector.getAllAndOverride(ROLES, targets); + if (roles && !roles.includes(user.role)) throw new AppError(403, 'You do not have access to this.', 'forbidden'); + req.user = user; + return true; + } +} + +// ---------------------------------------------------------------- OTP login + +const Email = z.string().trim().toLowerCase().email('Enter a valid email'); + +@Public() +@Controller('auth/otp') +export class AuthController { + constructor(private readonly prisma: PrismaService) {} + + /** Always 200 so the endpoint can't be used to probe which emails exist. */ + @Post('request') + @HttpCode(200) + async request(@Body(zod(z.object({ email: Email }))) { email }: { email: string }) { + const recent = await this.prisma.otpCode.count({ + where: { email, createdAt: { gt: new Date(Date.now() - 3_600_000) } }, + }); + if (recent >= OTP_MAX_PER_HOUR) { + throw new AppError(429, 'Too many codes requested. Try again in an hour.', 'rate_limited'); + } + const code = String(randomInt(0, 1_000_000)).padStart(6, '0'); + await this.prisma.otpCode.create({ + data: { email, codeHash: hashCode(email, code), expiresAt: new Date(Date.now() + OTP_TTL_MS) }, + }); + sendInBackground('otp', [{ to: email, ...otpEmail(code) }]); + return { ok: true }; + } + + @Post('verify') + @HttpCode(200) + async verify( + @Body(zod(z.object({ email: Email, code: z.string().trim().regex(/^\d{6}$/, 'Enter the 6-digit code') }))) + { email, code }: { email: string; code: string }, + ) { + const invalid = new AppError(400, 'That code is invalid or expired.', 'invalid_code'); + const otp = await this.prisma.otpCode.findFirst({ + where: { email, usedAt: null, expiresAt: { gt: new Date() } }, + orderBy: { createdAt: 'desc' }, + }); + if (!otp || otp.attempts >= OTP_MAX_ATTEMPTS) throw invalid; + + const ok = timingSafeEqual(Buffer.from(otp.codeHash), Buffer.from(hashCode(email, code))); + // Conditional update: two parallel verifies can't both consume the same code. + const { count } = await this.prisma.otpCode.updateMany({ + where: { id: otp.id, usedAt: null }, + data: ok ? { usedAt: new Date() } : { attempts: { increment: 1 } }, + }); + if (!ok || count === 0) throw invalid; + + const role = roleFor(email); + const user = await this.prisma.user.upsert({ + where: { email }, + create: { email, role }, + update: { role }, + }); + const accessToken = await new SignJWT({ role }) + .setProtectedHeader({ alg: 'HS256' }) + .setSubject(user.id) + .setIssuer('grv-backend') + .setIssuedAt() + .setExpirationTime(TTL[role]) + .sign(secret()); + return { accessToken, user: publicUser(user) }; + } +} diff --git a/src/modules/commerce.ts b/src/modules/commerce.ts new file mode 100644 index 0000000..59c29a6 --- /dev/null +++ b/src/modules/commerce.ts @@ -0,0 +1,580 @@ +import { Body, Controller, Get, Header, HttpCode, Injectable, Param, Patch, Post, Query } from '@nestjs/common'; +import { randomBytes } from 'node:crypto'; +import QRCode from 'qrcode'; +import { z } from 'zod'; +import { env, ticketUrl } from '../common/env.js'; +import { AppError, badRequest, conflict, isUniqueViolation, notFound, tokenFrom, zod } from '../common/http.js'; +import { sendInBackground } from '../common/mail.js'; +import type { OrderKind, OrderStatus, Prisma, TicketTier, User } from '../generated/prisma/client.js'; +import { PrismaService, type Tx } from '../prisma.service.js'; +import { orderReceivedEmail, ticketsIssuedEmail } from '../shared/email-templates.js'; +import { AdminOnly, CurrentUser, Public, Staff } from './auth.js'; + +export const newToken = () => randomBytes(16).toString('base64url'); +export const orderNumber = (n: number) => `GRV-${String(n).padStart(4, '0')}`; +export const money = (minor: number, currency = 'USD') => + new Intl.NumberFormat('en-US', { style: 'currency', currency }).format(minor / 100); + +const SOLD_STATUSES: OrderStatus[] = ['PAID', 'FULFILLED']; +const orderInclude = { + items: true, + tickets: { include: { tier: true } }, + discountCode: { select: { code: true } }, +} satisfies Prisma.OrderInclude; +type FullOrder = Prisma.OrderGetPayload<{ include: typeof orderInclude }>; + +const ticketOut = (t: { id: string; qrToken: string; holderEmail: string; holderName: string | null; checkedInAt: Date | null; tier: { name: string } }) => ({ + id: t.id, + qrToken: t.qrToken, + qrUrl: ticketUrl(t.qrToken), + tierName: t.tier.name, + holderEmail: t.holderEmail, + holderName: t.holderName, + checkedInAt: t.checkedInAt, +}); + +export const orderOut = (o: FullOrder) => ({ + id: o.id, + number: orderNumber(o.number), + kind: o.kind, + status: o.status, + buyerName: o.buyerName, + buyerEmail: o.buyerEmail, + buyerPhone: o.buyerPhone, + company: o.company, + paymentMethod: o.paymentMethod, + paymentRef: o.paymentRef, + subtotalMinor: o.subtotalMinor, + discountMinor: o.discountMinor, + totalMinor: o.totalMinor, + currency: o.currency, + discountCode: o.discountCode?.code ?? null, + items: o.items.map((i) => ({ name: i.name, qty: i.qty, size: i.size, unitPriceMinor: i.unitPriceMinor })), + tickets: o.tickets.map(ticketOut), + createdAt: o.createdAt, + paidAt: o.paidAt, + fulfilledAt: o.fulfilledAt, +}); + +// ---------------------------------------------------------------- domain logic (unit-tested in test/) + +@Injectable() +export class CommerceService { + constructor(private readonly prisma: PrismaService) {} + + async tierOut(t: TicketTier) { + const sold = await this.prisma.ticket.count({ where: { tierId: t.id } }); + return { + id: t.id, + code: t.code, + name: t.name, + description: t.description, + scheduleLabel: t.scheduleLabel, + features: t.features as string[], + priceMinor: t.priceMinor, + currency: t.currency, + capacity: t.capacity, + sold, + active: t.active, + soldOut: t.capacity !== null && sold >= t.capacity, + }; + } + + /** Price a ticket order. A bad discount code is reported, not thrown, so the form can show it inline. */ + async quote(tierCode: string, quantity: number, code?: string | null) { + const tier = await this.prisma.ticketTier.findUnique({ where: { code: tierCode } }); + if (!tier || !tier.active) throw badRequest('Invalid or unavailable ticket'); + const subtotalMinor = tier.priceMinor * quantity; + const base = { tier, subtotalMinor, discountMinor: 0, totalMinor: subtotalMinor, currency: tier.currency, discount: null }; + if (!code?.trim()) return { ...base, valid: false as const, message: undefined }; + + const reject = (message: string) => ({ ...base, valid: false as const, message }); + const d = await this.prisma.discountCode.findUnique({ where: { code: code.trim().toUpperCase() } }); + const now = new Date(); + if (!d || !d.active) return reject('That discount code is not valid.'); + if ((d.startsAt && d.startsAt > now) || (d.endsAt && d.endsAt < now)) return reject('That discount code is not active right now.'); + if (d.tierId && d.tierId !== tier.id) return reject(`That code doesn't apply to the ${tier.name}.`); + if (d.maxUses !== null) { + const uses = await this.prisma.order.count({ where: { discountCodeId: d.id, status: { in: SOLD_STATUSES } } }); + if (uses >= d.maxUses) return reject('That discount code has been fully used.'); + } + const off = d.percentOff ? Math.round((subtotalMinor * d.percentOff) / 100) : (d.amountOffMinor ?? 0); + const discountMinor = Math.min(off, subtotalMinor); + return { ...base, valid: true as const, message: undefined, discount: d, discountMinor, totalMinor: subtotalMinor - discountMinor }; + } + + private async assertCapacity(tx: Tx | PrismaService, tier: TicketTier, quantity: number) { + if (tier.capacity === null) return; + const sold = await tx.ticket.count({ where: { tierId: tier.id } }); + if (sold + quantity > tier.capacity) throw conflict(`Only ${Math.max(0, tier.capacity - sold)} ${tier.name} tickets left.`, 'sold_out'); + } + + async createTicketOrder(input: TicketOrderInput) { + const q = await this.quote(input.ticketId, input.quantity, input.discountCode); + if (input.discountCode?.trim() && !q.valid) throw badRequest(q.message ?? 'Invalid discount code', { errors: { discountCode: q.message } }); + await this.assertCapacity(this.prisma, q.tier, input.quantity); + + const order = await this.prisma.order.create({ + data: { + kind: 'TICKET', + buyerName: input.name, + buyerEmail: input.email, + buyerPhone: input.phone || null, + company: input.company || null, + paymentMethod: input.paymentMethod, + subtotalMinor: q.subtotalMinor, + discountMinor: q.discountMinor, + totalMinor: q.totalMinor, + currency: q.currency, + discountCodeId: q.discount?.id ?? null, + items: { create: { tierId: q.tier.id, name: q.tier.name, qty: input.quantity, unitPriceMinor: q.tier.priceMinor } }, + }, + include: orderInclude, + }); + sendInBackground('order received', [ + { + to: order.buyerEmail, + ...orderReceivedEmail({ + name: order.buyerName, + number: orderNumber(order.number), + kind: 'TICKET', + items: order.items, + total: money(order.totalMinor, order.currency), + instructions: env.paymentInstructions, + }), + }, + ]); + return order; + } + + /** Reserve stock atomically: an item sells out mid-order → nothing is created. */ + async createMerchOrder(user: User, items: MerchLine[]) { + const order = await this.prisma.$transaction(async (tx) => { + const lines: Prisma.OrderItemCreateWithoutOrderInput[] = []; + let subtotal = 0; + let currency = 'USD'; + for (const line of items) { + const item = await tx.merchItem.findUnique({ where: { id: line.merchItemId } }); + if (!item || !item.active) throw badRequest('That item is no longer available.'); + const sizes = item.sizes as string[]; + if (sizes.length && !sizes.includes(line.size ?? '')) throw badRequest(`Choose a size for ${item.name}.`); + const { count } = await tx.merchItem.updateMany({ + where: { id: item.id, stock: { gte: line.qty } }, + data: { stock: { decrement: line.qty } }, + }); + if (!count) throw conflict(`Not enough ${item.name} in stock.`, 'out_of_stock'); + lines.push({ merchItem: { connect: { id: item.id } }, name: item.name, qty: line.qty, size: sizes.length ? line.size : null, unitPriceMinor: item.priceMinor }); + subtotal += item.priceMinor * line.qty; + currency = item.currency; + } + return tx.order.create({ + data: { + kind: 'MERCH', + user: { connect: { id: user.id } }, + buyerName: user.name || user.email, + buyerEmail: user.email, + paymentMethod: 'booth', + subtotalMinor: subtotal, + totalMinor: subtotal, + currency, + items: { create: lines }, + }, + include: orderInclude, + }); + }); + sendInBackground('merch order', [ + { + to: order.buyerEmail, + ...orderReceivedEmail({ + name: order.buyerName, + number: orderNumber(order.number), + kind: 'MERCH', + items: order.items, + total: money(order.totalMinor, order.currency), + instructions: '', + }), + }, + ]); + return order; + } + + /** PENDING → PAID. Ticket orders get one Ticket per seat. This is where a payment webhook plugs in. */ + async markPaid(id: string, paymentRef?: string | null) { + const order = await this.prisma.$transaction(async (tx) => { + const { count } = await tx.order.updateMany({ + where: { id, status: 'PENDING' }, + data: { status: 'PAID', paidAt: new Date(), paymentRef: paymentRef || undefined }, + }); + const current = await tx.order.findUnique({ where: { id }, include: { items: { include: { tier: true } } } }); + if (!current) throw notFound('Order not found'); + if (!count) throw conflict(`Order is already ${current.status.toLowerCase()}.`); + for (const item of current.items) { + if (!item.tier) continue; + await this.assertCapacity(tx, item.tier, item.qty); + await tx.ticket.createMany({ + data: Array.from({ length: item.qty }, () => ({ + orderId: id, + tierId: item.tier!.id, + holderEmail: current.buyerEmail, + holderName: current.buyerName, + qrToken: newToken(), + })), + }); + } + return tx.order.findUniqueOrThrow({ where: { id }, include: orderInclude }); + }); + if (order.kind === 'TICKET') this.emailTickets(order); + return order; + } + + emailTickets(order: FullOrder) { + if (!order.tickets.length) throw conflict('This order has no tickets yet. Mark it paid first.'); + sendInBackground('tickets', [ + { + to: order.buyerEmail, + ...ticketsIssuedEmail({ + name: order.buyerName, + number: orderNumber(order.number), + tickets: order.tickets.map((t) => ({ tierName: t.tier.name, url: ticketUrl(t.qrToken) })), + }), + }, + ]); + } + + /** Merch picked up at the booth (paid there if it wasn't already). */ + async fulfil(id: string) { + const now = new Date(); + const order = await this.prisma.order.findUnique({ where: { id } }); + if (!order) throw notFound('Order not found'); + const { count } = await this.prisma.order.updateMany({ + where: { id, status: { in: ['PENDING', 'PAID'] } }, + data: { status: 'FULFILLED', fulfilledAt: now, paidAt: order.paidAt ?? now }, + }); + if (!count) throw conflict(`Order is already ${order.status.toLowerCase()}.`); + return this.prisma.order.findUniqueOrThrow({ where: { id }, include: orderInclude }); + } + + /** Cancels a pending/paid order: merch stock goes back, issued tickets are voided. */ + cancel(id: string) { + return this.prisma.$transaction(async (tx) => { + const order = await tx.order.findUnique({ where: { id }, include: { items: true } }); + if (!order) throw notFound('Order not found'); + const { count } = await tx.order.updateMany({ where: { id, status: { in: ['PENDING', 'PAID'] } }, data: { status: 'CANCELLED' } }); + if (!count) throw conflict(`Order is already ${order.status.toLowerCase()}.`); + for (const item of order.items) { + if (item.merchItemId) await tx.merchItem.update({ where: { id: item.merchItemId }, data: { stock: { increment: item.qty } } }); + } + await tx.ticket.deleteMany({ where: { orderId: id } }); + return tx.order.findUniqueOrThrow({ where: { id }, include: orderInclude }); + }); + } +} + +// ---------------------------------------------------------------- public + +const TicketOrder = z.object({ + ticketId: z.string().min(1), + quantity: z.coerce.number().int().min(1, 'Quantity must be between 1 and 10').max(10, 'Quantity must be between 1 and 10'), + name: z.string().trim().min(2, 'Name is required').max(120), + email: z.string().trim().toLowerCase().email('Valid email is required'), + company: z.string().trim().max(160).optional(), + phone: z.string().trim().max(40).optional(), + paymentMethod: z.enum(['card', 'bank'], { message: 'Invalid payment method' }), + consent: z.literal(true, { message: 'You must agree to data collection to complete your order' }), + discountCode: z.string().trim().max(40).optional(), +}); +type TicketOrderInput = z.infer; + +const MerchLine = z.object({ merchItemId: z.string(), qty: z.number().int().min(1).max(10), size: z.string().optional() }); +type MerchLine = z.infer; + +@Public() +@Controller() +export class CommerceController { + constructor( + private readonly prisma: PrismaService, + private readonly commerce: CommerceService, + ) {} + + @Get('tiers') + async tiers() { + const tiers = await this.prisma.ticketTier.findMany({ where: { active: true }, orderBy: [{ sortOrder: 'asc' }, { priceMinor: 'asc' }] }); + return Promise.all(tiers.map((t) => this.commerce.tierOut(t))); + } + + @Post('discounts/validate') + @HttpCode(200) + async validate( + @Body(zod(z.object({ code: z.string().trim().min(1), tierCode: z.string(), quantity: z.coerce.number().int().min(1).max(10) }))) + b: { code: string; tierCode: string; quantity: number }, + ) { + const q = await this.commerce.quote(b.tierCode, b.quantity, b.code); + return { + valid: q.valid, + message: q.message, + code: q.discount?.code, + subtotalMinor: q.subtotalMinor, + discountMinor: q.discountMinor, + totalMinor: q.totalMinor, + currency: q.currency, + }; + } + + /** The site's ticket checkout. Creates a PENDING order; staff mark it paid once money arrives. */ + @Post('orders') + async order(@Body(zod(TicketOrder)) body: TicketOrderInput) { + const order = await this.commerce.createTicketOrder(body); + return { + ok: true, + orderId: orderNumber(order.number), + totalUsd: order.totalMinor / 100, + totalMinor: order.totalMinor, + discountMinor: order.discountMinor, + currency: order.currency, + paymentMethod: order.paymentMethod, + instructions: env.paymentInstructions, + }; + } + + /** Ticket QR for the site's /t/ page and emails. The token itself is the secret. */ + @Get('tickets/:token/qr.svg') + @Header('Content-Type', 'image/svg+xml') + @Header('Cache-Control', 'public, max-age=86400') + async ticketQr(@Param('token') token: string) { + const ticket = await this.prisma.ticket.findUnique({ where: { qrToken: token } }); + if (!ticket) throw notFound('Ticket not found'); + return QRCode.toString(ticketUrl(token), { type: 'svg', margin: 1, color: { dark: '#1a4034', light: '#ffffff' } }); + } + + @Get('merch') + async merch() { + const items = await this.prisma.merchItem.findMany({ where: { active: true }, orderBy: [{ sortOrder: 'asc' }, { name: 'asc' }] }); + return items.map(merchOut); + } +} + +const merchOut = (m: { id: string; name: string; description: string | null; priceMinor: number; currency: string; sizes: unknown; stock: number; imageUrl: string | null; active: boolean }) => ({ + id: m.id, + name: m.name, + description: m.description, + priceMinor: m.priceMinor, + currency: m.currency, + sizes: m.sizes as string[], + stock: m.stock, + imageUrl: m.imageUrl, + active: m.active, +}); + +@Controller('merch-orders') +export class MerchOrdersController { + constructor(private readonly commerce: CommerceService) {} + + @Post() + async create(@CurrentUser() user: User, @Body(zod(z.object({ items: z.array(MerchLine).min(1).max(20) }))) b: { items: MerchLine[] }) { + return orderOut(await this.commerce.createMerchOrder(user, b.items)); + } +} + +// ---------------------------------------------------------------- admin + +const optionalDate = z.union([z.coerce.date(), z.null()]).optional(); +const Tier = z.object({ + code: z.string().trim().min(2).max(60).regex(/^[a-z0-9-]+$/, 'Lowercase letters, numbers and dashes'), + name: z.string().trim().min(2).max(120), + description: z.string().max(2000).optional(), + scheduleLabel: z.string().max(120).nullable().optional(), + features: z.array(z.string().max(200)).max(20).optional(), + priceMinor: z.number().int().min(0), + currency: z.string().length(3).optional(), + capacity: z.number().int().min(0).nullable().optional(), + sortOrder: z.number().int().optional(), + active: z.boolean().optional(), +}); +const Discount = z.object({ + code: z.string().trim().min(3).max(40).transform((s) => s.toUpperCase()), + percentOff: z.number().int().min(1).max(100).nullable().optional(), + amountOffMinor: z.number().int().min(1).nullable().optional(), + tierId: z.string().nullable().optional(), + maxUses: z.number().int().min(1).nullable().optional(), + startsAt: optionalDate, + endsAt: optionalDate, + active: z.boolean().optional(), +}); +const oneDiscountKind = (d: { percentOff?: number | null; amountOffMinor?: number | null }) => { + if (!d.percentOff === !d.amountOffMinor) throw badRequest('Set exactly one of percent off or amount off.'); +}; +const Merch = z.object({ + name: z.string().trim().min(2).max(120), + description: z.string().max(2000).nullable().optional(), + priceMinor: z.number().int().min(0), + currency: z.string().length(3).optional(), + sizes: z.array(z.string().max(20)).max(20).optional(), + stock: z.number().int().min(0), + imageUrl: z.string().url().nullable().optional(), + sortOrder: z.number().int().optional(), + active: z.boolean().optional(), +}); + +const uniqueOr = async (p: Promise, message: string) => + p.catch((err) => { + throw isUniqueViolation(err) ? conflict(message) : err; + }); + +@Staff() +@Controller('admin') +export class AdminCommerceController { + constructor( + private readonly prisma: PrismaService, + private readonly commerce: CommerceService, + ) {} + + // tiers + @Get('tiers') + async tiers() { + const tiers = await this.prisma.ticketTier.findMany({ orderBy: [{ sortOrder: 'asc' }, { priceMinor: 'asc' }] }); + return Promise.all(tiers.map((t) => this.commerce.tierOut(t))); + } + + @AdminOnly() + @Post('tiers') + async createTier(@Body(zod(Tier)) b: z.infer) { + return this.commerce.tierOut(await uniqueOr(this.prisma.ticketTier.create({ data: b }), 'A tier with that code exists.')); + } + + @AdminOnly() + @Patch('tiers/:id') + async updateTier(@Param('id') id: string, @Body(zod(Tier.partial())) b: Partial>) { + await this.exists(this.prisma.ticketTier.findUnique({ where: { id } }), 'Tier'); + return this.commerce.tierOut(await uniqueOr(this.prisma.ticketTier.update({ where: { id }, data: b }), 'A tier with that code exists.')); + } + + // discounts + @Get('discounts') + async discounts() { + const rows = await this.prisma.discountCode.findMany({ + include: { tier: { select: { name: true } }, _count: { select: { orders: { where: { status: { in: SOLD_STATUSES } } } } } }, + orderBy: { createdAt: 'desc' }, + }); + return rows.map(({ tier, _count, ...d }) => ({ ...d, tierName: tier?.name ?? null, uses: _count.orders })); + } + + @AdminOnly() + @Post('discounts') + async createDiscount(@Body(zod(Discount)) b: z.infer) { + oneDiscountKind(b); + return uniqueOr(this.prisma.discountCode.create({ data: b }), 'That code already exists.'); + } + + @AdminOnly() + @Patch('discounts/:id') + async updateDiscount(@Param('id') id: string, @Body(zod(Discount.partial())) b: Partial>) { + const current = await this.exists(this.prisma.discountCode.findUnique({ where: { id } }), 'Discount'); + if ('percentOff' in b || 'amountOffMinor' in b) oneDiscountKind({ ...current, ...b }); + return uniqueOr(this.prisma.discountCode.update({ where: { id }, data: b }), 'That code already exists.'); + } + + // orders + @Get('orders') + async orders( + @Query(zod(z.object({ kind: z.enum(['TICKET', 'MERCH']).optional(), status: z.enum(['PENDING', 'PAID', 'CANCELLED', 'FULFILLED']).optional(), q: z.string().optional() }))) + f: { kind?: OrderKind; status?: OrderStatus; q?: string }, + ) { + const n = f.q?.match(/^(?:GRV-)?0*(\d+)$/i)?.[1]; + const rows = await this.prisma.order.findMany({ + where: { + ...(f.kind ? { kind: f.kind } : {}), + ...(f.status ? { status: f.status } : {}), + ...(f.q + ? { + OR: [ + { buyerName: { contains: f.q, mode: 'insensitive' } }, + { buyerEmail: { contains: f.q, mode: 'insensitive' } }, + { paymentRef: { contains: f.q, mode: 'insensitive' } }, + ...(n ? [{ number: Number(n) }] : []), + ], + } + : {}), + }, + include: orderInclude, + orderBy: { createdAt: 'desc' }, + take: 500, + }); + return rows.map(orderOut); + } + + @Post('orders/:id/mark-paid') + @HttpCode(200) + async markPaid(@Param('id') id: string, @Body(zod(z.object({ paymentRef: z.string().trim().max(120).optional() }))) b: { paymentRef?: string }) { + return orderOut(await this.commerce.markPaid(id, b.paymentRef)); + } + + @Post('orders/:id/fulfil') + @HttpCode(200) + async fulfil(@Param('id') id: string) { + return orderOut(await this.commerce.fulfil(id)); + } + + @Post('orders/:id/cancel') + @HttpCode(200) + async cancel(@Param('id') id: string) { + return orderOut(await this.commerce.cancel(id)); + } + + @Post('orders/:id/resend') + @HttpCode(200) + async resend(@Param('id') id: string) { + const order = await this.exists(this.prisma.order.findUnique({ where: { id }, include: orderInclude }), 'Order'); + this.commerce.emailTickets(order); + return { ok: true }; + } + + // tickets + @Get('tickets') + async tickets(@Query(zod(z.object({ q: z.string().optional() }))) f: { q?: string }) { + const rows = await this.prisma.ticket.findMany({ + where: f.q + ? { OR: ['holderEmail', 'holderName', 'qrToken'].map((k) => ({ [k]: { contains: f.q, mode: 'insensitive' as const } })) } + : {}, + include: { tier: true, order: { select: { number: true } } }, + orderBy: { createdAt: 'desc' }, + take: 500, + }); + return rows.map((t) => ({ ...ticketOut(t), orderNumber: orderNumber(t.order.number) })); + } + + @Post('tickets/check-in') + @HttpCode(200) + async checkIn(@Body(zod(z.object({ token: z.string().min(1) }))) b: { token: string }) { + const token = tokenFrom(b.token); + const { count } = await this.prisma.ticket.updateMany({ where: { qrToken: token, checkedInAt: null }, data: { checkedInAt: new Date() } }); + const ticket = await this.prisma.ticket.findUnique({ where: { qrToken: token }, include: { tier: true } }); + if (!ticket) throw notFound('No ticket with that code.'); + if (!count) throw new AppError(409, `Already checked in at ${ticket.checkedInAt?.toISOString()}.`, 'already_checked_in', { ticket: ticketOut(ticket) }); + return ticketOut(ticket); + } + + // merch + @Get('merch') + async merch() { + return (await this.prisma.merchItem.findMany({ orderBy: [{ sortOrder: 'asc' }, { name: 'asc' }] })).map(merchOut); + } + + @AdminOnly() + @Post('merch') + async createMerch(@Body(zod(Merch)) b: z.infer) { + return merchOut(await this.prisma.merchItem.create({ data: b })); + } + + @AdminOnly() + @Patch('merch/:id') + async updateMerch(@Param('id') id: string, @Body(zod(Merch.partial())) b: Partial>) { + await this.exists(this.prisma.merchItem.findUnique({ where: { id } }), 'Merch item'); + return merchOut(await this.prisma.merchItem.update({ where: { id }, data: b })); + } + + private async exists(p: Promise, what: string): Promise { + const row = await p; + if (!row) throw notFound(`${what} not found`); + return row; + } +} diff --git a/src/modules/game.ts b/src/modules/game.ts new file mode 100644 index 0000000..77e57ea --- /dev/null +++ b/src/modules/game.ts @@ -0,0 +1,361 @@ +import { Body, Controller, Delete, Get, HttpCode, Injectable, Param, Patch, Post, Query } from '@nestjs/common'; +import { randomInt } from 'node:crypto'; +import { z } from 'zod'; +import { checkpointUrl, ticketUrl } from '../common/env.js'; +import { AppError, conflict, isUniqueViolation, notFound, tokenFrom, zod } from '../common/http.js'; +import type { Checkpoint, CheckpointKind, User } from '../generated/prisma/client.js'; +import { PrismaService } from '../prisma.service.js'; +import { AdminOnly, CurrentUser, publicUser, Staff } from './auth.js'; +import { newToken, orderOut } from './commerce.js'; + +export const DEFAULT_POINTS: Record = { BOOTH: 10, STARTUP_MEMBER: 20, MYSTERY_INVESTEE: 50 }; +/** Finding the mystery future investee is worth double. */ +export const pointsFor = (c: Pick) => (c.kind === 'MYSTERY_INVESTEE' ? c.points * 2 : c.points); + +const KINDS = ['BOOTH', 'STARTUP_MEMBER', 'MYSTERY_INVESTEE'] as const; + +/** "Abebe Kebede" → "Abebe K." so the public leaderboard never shows full names or emails. */ +const shortName = (name: string | null) => { + const [first, last] = (name ?? '').trim().split(/\s+/); + return first ? (last ? `${first} ${last[0]}.` : first) : 'Attendee'; +}; + +const attendeeCheckpoint = (c: Checkpoint, scanned: boolean) => { + const masked = c.kind === 'MYSTERY_INVESTEE' && !scanned; + return { + id: c.id, + kind: c.kind, + label: masked ? 'Mystery investee' : c.label, + organisation: masked ? null : c.organisation, + boothNumber: masked ? null : c.boothNumber, + personName: masked ? null : c.personName, + points: c.points, + scanned, + }; +}; + +export const adminCheckpoint = (c: Checkpoint) => ({ ...c, qrUrl: checkpointUrl(c.qrToken) }); + +// ---------------------------------------------------------------- points (always derived from scans) + +@Injectable() +export class GameService { + constructor(private readonly prisma: PrismaService) {} + + async points(userId: string) { + const r = await this.prisma.scan.aggregate({ where: { userId }, _sum: { pointsAwarded: true } }); + return r._sum.pointsAwarded ?? 0; + } + + /** Attendees only (staff testing the scanner never appear), highest first. */ + async standings(take?: number) { + const rows = await this.prisma.scan.groupBy({ + by: ['userId'], + where: { user: { role: 'ATTENDEE' } }, + _sum: { pointsAwarded: true }, + orderBy: { _sum: { pointsAwarded: 'desc' } }, + ...(take ? { take } : {}), + }); + const users = await this.prisma.user.findMany({ where: { id: { in: rows.map((r) => r.userId) } } }); + const byId = new Map(users.map((u) => [u.id, u])); + return rows.map((r) => ({ user: byId.get(r.userId)!, points: r._sum.pointsAwarded ?? 0 })); + } + + async rank(user: User, points: number) { + if (user.role !== 'ATTENDEE' || points === 0) return null; + const ahead = await this.prisma.scan.groupBy({ + by: ['userId'], + where: { user: { role: 'ATTENDEE' } }, + _sum: { pointsAwarded: true }, + having: { pointsAwarded: { _sum: { gt: points } } }, + }); + return ahead.length + 1; + } + + async scan(user: User, input: string) { + const checkpoint = await this.prisma.checkpoint.findUnique({ where: { qrToken: tokenFrom(input) } }); + if (!checkpoint || !checkpoint.active) throw new AppError(404, "That isn't a GRV Summit code.", 'unknown_code'); + const pointsAwarded = pointsFor(checkpoint); + try { + await this.prisma.scan.create({ data: { userId: user.id, checkpointId: checkpoint.id, pointsAwarded } }); + } catch (err) { + if (!isUniqueViolation(err)) throw err; + throw conflict('You already scanned this one.', 'already_scanned', { checkpoint: attendeeCheckpoint(checkpoint, true) }); + } + return { + checkpoint: attendeeCheckpoint(checkpoint, true), + pointsAwarded, + total: await this.points(user.id), + mystery: checkpoint.kind === 'MYSTERY_INVESTEE', + }; + } + + /** Random eligible attendee (points ≥ minPoints, never won before). Drawn once. */ + async draw(raffleId: string) { + const raffle = await this.prisma.raffle.findUnique({ where: { id: raffleId } }); + if (!raffle) throw notFound('Raffle not found'); + if (raffle.drawnAt) throw conflict('This raffle has already been drawn.'); + const eligible = await this.eligible(raffle.minPoints); + if (!eligible.length) throw conflict('Nobody is eligible yet.', 'no_eligible'); + const winner = eligible[randomInt(eligible.length)]!; + const { count } = await this.prisma.raffle.updateMany({ + where: { id: raffleId, drawnAt: null }, + data: { drawnAt: new Date(), winnerUserId: winner.id }, + }); + if (!count) throw conflict('This raffle has already been drawn.'); + return this.prisma.raffle.findUniqueOrThrow({ where: { id: raffleId }, include: { winner: true } }); + } + + async eligible(minPoints: number) { + const winners = await this.prisma.raffle.findMany({ where: { winnerUserId: { not: null } }, select: { winnerUserId: true } }); + const won = new Set(winners.map((w) => w.winnerUserId)); + return (await this.standings()).filter((s) => s.points >= minPoints && !won.has(s.user.id)).map((s) => s.user); + } +} + +// ---------------------------------------------------------------- attendee + +@Controller() +export class GameController { + constructor( + private readonly prisma: PrismaService, + private readonly game: GameService, + ) {} + + @Get('me') + async me(@CurrentUser() user: User) { + const [points, checkpoints, scans, tickets, merchOrders] = await Promise.all([ + this.game.points(user.id), + this.prisma.checkpoint.groupBy({ by: ['kind'], where: { active: true }, _count: true }), + this.prisma.scan.findMany({ where: { userId: user.id }, select: { checkpoint: { select: { kind: true } } } }), + this.prisma.ticket.findMany({ where: { holderEmail: user.email }, include: { tier: true }, orderBy: { createdAt: 'asc' } }), + this.prisma.order.findMany({ + where: { kind: 'MERCH', OR: [{ userId: user.id }, { buyerEmail: user.email }] }, + include: { items: true, tickets: { include: { tier: true } }, discountCode: { select: { code: true } } }, + orderBy: { createdAt: 'desc' }, + }), + ]); + const total = (kind: CheckpointKind) => checkpoints.find((c) => c.kind === kind)?._count ?? 0; + const found = (kind: CheckpointKind) => scans.filter((s) => s.checkpoint.kind === kind).length; + return { + user: publicUser(user), + points, + rank: await this.game.rank(user, points), + progress: { + booths: { found: found('BOOTH'), total: total('BOOTH') }, + startups: { found: found('STARTUP_MEMBER'), total: total('STARTUP_MEMBER') }, + mysteryFound: found('MYSTERY_INVESTEE') > 0, + }, + tickets: tickets.map((t) => ({ + id: t.id, + qrToken: t.qrToken, + qrUrl: ticketUrl(t.qrToken), + tierName: t.tier.name, + holderEmail: t.holderEmail, + holderName: t.holderName, + checkedInAt: t.checkedInAt, + })), + merchOrders: merchOrders.map(orderOut), + }; + } + + @Patch('me') + async rename(@CurrentUser() user: User, @Body(zod(z.object({ name: z.string().trim().min(2).max(80) }))) b: { name: string }) { + return publicUser(await this.prisma.user.update({ where: { id: user.id }, data: { name: b.name } })); + } + + @Post('scan') + @HttpCode(200) + scan(@CurrentUser() user: User, @Body(zod(z.object({ token: z.string().min(1).max(500) }))) b: { token: string }) { + return this.game.scan(user, b.token); + } + + @Get('checkpoints') + async checkpoints(@CurrentUser() user: User, @Query(zod(z.object({ kind: z.enum(KINDS).optional() }))) f: { kind?: CheckpointKind }) { + const [rows, scans] = await Promise.all([ + this.prisma.checkpoint.findMany({ + where: { active: true, ...(f.kind ? { kind: f.kind } : {}) }, + orderBy: [{ kind: 'asc' }, { organisation: 'asc' }, { boothNumber: 'asc' }, { label: 'asc' }], + }), + this.prisma.scan.findMany({ where: { userId: user.id }, select: { checkpointId: true } }), + ]); + const scanned = new Set(scans.map((s) => s.checkpointId)); + return rows.map((c) => attendeeCheckpoint(c, scanned.has(c.id))); + } + + @Get('leaderboard') + async leaderboard(@CurrentUser() user: User) { + const rows = await this.game.standings(20); + return rows.map((r, i) => ({ rank: i + 1, name: shortName(r.user.name), points: r.points, me: r.user.id === user.id })); + } + + @Get('raffles') + async raffles(@CurrentUser() user: User) { + const [raffles, points] = await Promise.all([ + this.prisma.raffle.findMany({ include: { winner: true }, orderBy: { createdAt: 'asc' } }), + this.game.points(user.id), + ]); + return raffles.map((r) => ({ + id: r.id, + name: r.name, + prize: r.prize, + minPoints: r.minPoints, + drawnAt: r.drawnAt, + winner: r.winner ? { id: r.winner.id, name: shortName(r.winner.name) } : null, + eligible: user.role === 'ATTENDEE' && points >= r.minPoints, + })); + } +} + +// ---------------------------------------------------------------- admin + +const CheckpointBody = z.object({ + kind: z.enum(KINDS), + label: z.string().trim().min(1).max(120), + organisation: z.string().trim().max(120).nullable().optional(), + boothNumber: z.string().trim().max(20).nullable().optional(), + personName: z.string().trim().max(120).nullable().optional(), + points: z.number().int().min(0).max(1000).optional(), + active: z.boolean().optional(), +}); +const RaffleBody = z.object({ + name: z.string().trim().min(2).max(120), + prize: z.string().trim().min(2).max(200), + minPoints: z.number().int().min(0).default(0), +}); + +@Staff() +@Controller('admin') +export class AdminGameController { + constructor( + private readonly prisma: PrismaService, + private readonly game: GameService, + ) {} + + @Get('checkpoints') + async checkpoints(@Query(zod(z.object({ kind: z.enum(KINDS).optional() }))) f: { kind?: CheckpointKind }) { + const rows = await this.prisma.checkpoint.findMany({ + where: f.kind ? { kind: f.kind } : {}, + include: { _count: { select: { scans: true } } }, + orderBy: [{ kind: 'asc' }, { organisation: 'asc' }, { boothNumber: 'asc' }, { label: 'asc' }], + }); + return rows.map(({ _count, ...c }) => ({ ...adminCheckpoint(c), scans: _count.scans })); + } + + @AdminOnly() + @Post('checkpoints') + async create(@Body(zod(CheckpointBody)) b: z.infer) { + return adminCheckpoint( + await this.prisma.checkpoint.create({ data: { ...b, points: b.points ?? DEFAULT_POINTS[b.kind], qrToken: newToken() } }), + ); + } + + @AdminOnly() + @Patch('checkpoints/:id') + async update(@Param('id') id: string, @Body(zod(CheckpointBody.partial())) b: Partial>) { + if (!(await this.prisma.checkpoint.findUnique({ where: { id } }))) throw notFound('Checkpoint not found'); + return adminCheckpoint(await this.prisma.checkpoint.update({ where: { id }, data: b })); + } + + /** Deactivates: the printed QR stops working, points already earned stay. */ + @AdminOnly() + @Delete('checkpoints/:id') + async remove(@Param('id') id: string) { + const { count } = await this.prisma.checkpoint.updateMany({ where: { id }, data: { active: false } }); + if (!count) throw notFound('Checkpoint not found'); + return { ok: true }; + } + + @Get('raffles') + async raffles() { + const raffles = await this.prisma.raffle.findMany({ include: { winner: true }, orderBy: { createdAt: 'asc' } }); + return Promise.all(raffles.map(async (r) => this.raffleOut(r, (await this.game.eligible(r.minPoints)).length))); + } + + @AdminOnly() + @Post('raffles') + async createRaffle(@Body(zod(RaffleBody)) b: z.infer) { + return this.raffleOut({ ...(await this.prisma.raffle.create({ data: b })), winner: null }); + } + + @AdminOnly() + @Patch('raffles/:id') + async updateRaffle(@Param('id') id: string, @Body(zod(RaffleBody.partial())) b: Partial>) { + if (!(await this.prisma.raffle.findUnique({ where: { id } }))) throw notFound('Raffle not found'); + return this.raffleOut(await this.prisma.raffle.update({ where: { id }, data: b, include: { winner: true } })); + } + + @AdminOnly() + @Post('raffles/:id/draw') + @HttpCode(200) + async draw(@Param('id') id: string) { + return this.raffleOut(await this.game.draw(id)); + } + + @Get('attendees') + async attendees(@Query(zod(z.object({ q: z.string().optional() }))) f: { q?: string }) { + const users = await this.prisma.user.findMany({ + where: f.q ? { OR: ['email', 'name'].map((k) => ({ [k]: { contains: f.q, mode: 'insensitive' as const } })) } : {}, + include: { _count: { select: { scans: true } } }, + orderBy: { createdAt: 'desc' }, + take: 500, + }); + const ids = users.map((u) => u.id); + const emails = users.map((u) => u.email); + const [points, tickets] = await Promise.all([ + this.prisma.scan.groupBy({ by: ['userId'], where: { userId: { in: ids } }, _sum: { pointsAwarded: true } }), + this.prisma.ticket.groupBy({ by: ['holderEmail'], where: { holderEmail: { in: emails } }, _count: true }), + ]); + const p = new Map(points.map((r) => [r.userId, r._sum.pointsAwarded ?? 0])); + const t = new Map(tickets.map((r) => [r.holderEmail, r._count])); + return users.map((u) => ({ + ...publicUser(u), + points: p.get(u.id) ?? 0, + scans: u._count.scans, + tickets: t.get(u.email) ?? 0, + createdAt: u.createdAt, + })); + } + + @Get('stats') + async stats() { + const startOfDay = new Date(); + startOfDay.setUTCHours(0, 0, 0, 0); + const [apps, ticketsSold, revenue, ordersPending, inquiriesNew, attendees, scansToday, scansTotal, top] = await Promise.all([ + this.prisma.application.groupBy({ by: ['status'], _count: true }), + this.prisma.ticket.count(), + this.prisma.order.aggregate({ where: { status: { in: ['PAID', 'FULFILLED'] } }, _sum: { totalMinor: true } }), + this.prisma.order.count({ where: { status: 'PENDING' } }), + this.prisma.inquiry.count({ where: { status: 'NEW' } }), + this.prisma.user.count({ where: { role: 'ATTENDEE' } }), + this.prisma.scan.count({ where: { createdAt: { gte: startOfDay } } }), + this.prisma.scan.count(), + this.game.standings(10), + ]); + return { + applications: Object.fromEntries(apps.map((a) => [a.status, a._count])), + ticketsSold, + // ponytail: single-currency sum; split by currency if ETB pricing is added. + revenueMinor: revenue._sum.totalMinor ?? 0, + currency: 'USD', + ordersPending, + inquiriesNew, + attendees, + scansToday, + scansTotal, + leaderboard: top.map((r) => ({ name: r.user.name, email: r.user.email, points: r.points })), + }; + } + + private raffleOut(r: { id: string; name: string; prize: string; minPoints: number; drawnAt: Date | null; winner: User | null }, eligibleCount?: number) { + return { + id: r.id, + name: r.name, + prize: r.prize, + minPoints: r.minPoints, + drawnAt: r.drawnAt, + winner: r.winner ? { id: r.winner.id, name: r.winner.name, email: r.winner.email } : null, + ...(eligibleCount === undefined ? {} : { eligibleCount }), + }; + } +} diff --git a/src/modules/inquiries.ts b/src/modules/inquiries.ts new file mode 100644 index 0000000..f423cc6 --- /dev/null +++ b/src/modules/inquiries.ts @@ -0,0 +1,75 @@ +import { Body, Controller, Get, HttpCode, Param, Patch, Post, Query } from '@nestjs/common'; +import { z } from 'zod'; +import { badRequest, notFound, zod } from '../common/http.js'; +import { sendInBackground, staffInbox } from '../common/mail.js'; +import type { InquiryStatus } from '../generated/prisma/client.js'; +import { PrismaService } from '../prisma.service.js'; +import { inquiryConfirmationEmail, inquiryStaffEmail } from '../shared/email-templates.js'; +import { validateInquiry } from '../shared/inquiry.js'; +import { Public, Staff } from './auth.js'; + +/** Every site form (exhibitor, partner, sponsor, press, newsletter, contact…) lands here. */ +@Public() +@Controller('inquiries') +export class InquiriesController { + constructor(private readonly prisma: PrismaService) {} + + @Post() + @HttpCode(200) + async create(@Body() body: unknown) { + const result = validateInquiry(body); + if (!result.ok) throw badRequest(result.error); + const d = result.data; + // The row is the record now, so email failures only get logged. + await this.prisma.inquiry.create({ + data: { + intent: d.intent, + name: d.name, + email: d.email.toLowerCase(), + company: d.company || d.startupName || null, + phone: d.phone || null, + message: d.message ?? '', + payload: d, + }, + }); + sendInBackground('inquiry', [ + { to: staffInbox(), replyTo: d.email, ...inquiryStaffEmail(d) }, + { to: d.email, ...inquiryConfirmationEmail(d) }, + ]); + return { ok: true }; + } +} + +const Status = z.enum(['NEW', 'CONTACTED', 'CLOSED']); + +@Staff() +@Controller('admin/inquiries') +export class AdminInquiriesController { + constructor(private readonly prisma: PrismaService) {} + + @Get() + list(@Query(zod(z.object({ intent: z.string().optional(), status: Status.optional(), q: z.string().optional() }))) f: { + intent?: string; + status?: InquiryStatus; + q?: string; + }) { + return this.prisma.inquiry.findMany({ + where: { + ...(f.intent ? { intent: f.intent } : {}), + ...(f.status ? { status: f.status } : {}), + ...(f.q + ? { OR: ['name', 'email', 'company', 'message'].map((k) => ({ [k]: { contains: f.q, mode: 'insensitive' as const } })) } + : {}), + }, + orderBy: { createdAt: 'desc' }, + take: 500, + }); + } + + @Patch(':id') + async update(@Param('id') id: string, @Body(zod(z.object({ status: Status }))) { status }: { status: InquiryStatus }) { + const { count } = await this.prisma.inquiry.updateMany({ where: { id }, data: { status } }); + if (!count) throw notFound('Inquiry not found'); + return this.prisma.inquiry.findUnique({ where: { id } }); + } +} diff --git a/src/prisma.service.ts b/src/prisma.service.ts new file mode 100644 index 0000000..4c10148 --- /dev/null +++ b/src/prisma.service.ts @@ -0,0 +1,24 @@ +import { Global, Injectable, Module, type OnModuleDestroy } from '@nestjs/common'; +import { PrismaPg } from '@prisma/adapter-pg'; +import { PrismaClient } from './generated/prisma/client.js'; + +export type Tx = Parameters[0]>[0]; + +@Injectable() +export class PrismaService extends PrismaClient implements OnModuleDestroy { + constructor() { + const url = process.env.DATABASE_URL; + if (!url) throw new Error('DATABASE_URL is required (run `pnpm db:dev` for a local PGlite database)'); + // PGlite (local dev + tests) is one Postgres session: use DATABASE_POOL_MAX=1 there. + const max = Number(process.env.DATABASE_POOL_MAX ?? 10); + super({ adapter: new PrismaPg({ connectionString: url, max: max > 0 ? max : 10 }) }); + } + + async onModuleDestroy() { + await this.$disconnect(); + } +} + +@Global() +@Module({ providers: [PrismaService], exports: [PrismaService] }) +export class PrismaModule {} diff --git a/src/shared/apply-validation.ts b/src/shared/apply-validation.ts new file mode 100644 index 0000000..e66319c --- /dev/null +++ b/src/shared/apply-validation.ts @@ -0,0 +1,130 @@ +import { applyConfig, applySteps, type ApplyField, type ApplyValues } from "./apply.js"; + +export type FieldErrors = Record; + +const EMAIL = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; + +export const allFields = applySteps.flatMap((step) => step.fields); + +export function isClosed(now = Date.now()) { + return now > Date.parse(applyConfig.deadline); +} + +export function activeFields(stepIndex: number, values: ApplyValues) { + return (applySteps[stepIndex]?.fields ?? []).filter((field) => !field.when || field.when(values)); +} + +function text(values: ApplyValues, id: string) { + const value = values[id]; + return typeof value === "string" ? value.trim() : ""; +} + +function isUrl(value: string) { + try { + const url = new URL(value); + return url.protocol === "http:" || url.protocol === "https:"; + } catch { + return false; + } +} + +export function isRequired(field: ApplyField, values: ApplyValues) { + return typeof field.required === "function" ? field.required(values) : Boolean(field.required); +} + +/** `sectors` is the allowed sector list; omit to only check presence. */ +export function fieldError(field: ApplyField, values: ApplyValues, sectors?: readonly string[]) { + const raw = values[field.id]; + const required = isRequired(field, values); + + if (field.kind === "consent") { + return required && raw !== true ? "Please confirm to continue" : null; + } + + if (field.kind === "multi") { + const list = Array.isArray(raw) ? raw : []; + if (required && list.length === 0) return "Choose at least one option"; + if (list.some((item) => !field.options?.includes(item))) return "Choose from the list"; + return null; + } + + const value = text(values, field.id); + const choice = field.kind === "select" || field.kind === "sector" || field.kind === "rating"; + + if (!value) { + if (!required) return null; + return choice ? "Please choose an option" : `${field.label.replace(/[?.]$/, "")} is required`; + } + + switch (field.kind) { + case "email": + if (!EMAIL.test(value)) return "Enter a valid email address"; + break; + case "url": + if (!isUrl(value)) return "Enter a full link starting with https://"; + break; + case "number": { + const n = Number(value); + if (!Number.isInteger(n)) return "Enter a whole number"; + if (field.min !== undefined && n < field.min) return `Must be at least ${field.min}`; + if (field.max !== undefined && n > field.max) return `Must be at most ${field.max}`; + return null; + } + case "select": + if (!field.options?.includes(value)) return "Choose from the list"; + break; + case "sector": + if (sectors && !sectors.includes(value)) return "Choose from the list"; + break; + case "rating": + if (!/^[1-5]$/.test(value)) return "Choose a rating from 1 to 5"; + break; + } + + if (field.pattern && !field.pattern.test(value)) return field.patternMessage ?? "Invalid format"; + if (field.min !== undefined && value.length < field.min) { + return `Use at least ${field.min} characters (${value.length} so far)`; + } + if (field.max !== undefined && value.length > field.max) { + return `Keep it under ${field.max} characters (${value.length} now)`; + } + return null; +} + +/** Errors for one step, keyed by field id, in display order. */ +export function validateStep( + stepIndex: number, + values: ApplyValues, + sectors?: readonly string[] +): FieldErrors { + const errors: FieldErrors = {}; + for (const field of activeFields(stepIndex, values)) { + const error = fieldError(field, values, sectors); + if (error) errors[field.id] = error; + } + return errors; +} + +/** First step with errors, or -1 when the whole application is valid. */ +export function firstInvalidStep(values: ApplyValues, sectors?: readonly string[]) { + return applySteps.findIndex( + (_, index) => Object.keys(validateStep(index, values, sectors)).length > 0 + ); +} + +/** Keep only known fields of one step, coerced to the right shape (trust boundary). */ +export function pickStepValues(stepIndex: number, input: unknown): ApplyValues { + const source = input && typeof input === "object" ? (input as Record) : {}; + const picked: ApplyValues = {}; + for (const field of applySteps[stepIndex]?.fields ?? []) { + const raw = source[field.id]; + if (field.kind === "consent") picked[field.id] = raw === true; + else if (field.kind === "multi") { + picked[field.id] = Array.isArray(raw) ? raw.filter((x): x is string => typeof x === "string") : []; + } else { + const value = typeof raw === "string" ? raw.trim().slice(0, 2000) : ""; + picked[field.id] = field.kind === "email" ? value.toLowerCase() : value; + } + } + return picked; +} diff --git a/src/shared/apply.ts b/src/shared/apply.ts new file mode 100644 index 0000000..c1d228e --- /dev/null +++ b/src/shared/apply.ts @@ -0,0 +1,369 @@ +/** + * Startup application (/apply) — config, copy, and field definitions. + * Shared by the form UI and the API (validation lives in lib/apply-validation.ts). + * All applicant-facing strings live here so an Amharic copy can drop in later. + */ + +export const applyConfig = { + editionId: "2027", + /** TODO(organizers): placeholder deadline — confirm before launch. Africa/Addis_Ababa (+03:00). */ + deadline: "2027-01-15T23:59:59+03:00", + /** TODO(organizers): placeholder — date applicants hear back by. */ + contactBy: "2027-02-01T12:00:00+03:00", + timeZone: "Africa/Addis_Ababa", + tokenStorageKey: "grv-apply-token", +} as const; + +export type ApplyValues = Record; + +export type FieldKind = + | "text" + | "email" + | "phone" + | "url" + | "number" + | "select" + | "sector" + | "textarea" + | "rating" + | "multi" + | "consent"; + +export type ApplyField = { + id: string; + label: string; + kind: FieldKind; + /** A function makes the field conditionally required. */ + required?: boolean | ((values: ApplyValues) => boolean); + /** Characters for text/textarea; value for number. */ + min?: number; + max?: number; + pattern?: RegExp; + patternMessage?: string; + options?: readonly string[]; + placeholder?: string; + hint?: string; + wide?: boolean; + /** Field is rendered and validated only when this returns true. */ + when?: (values: ApplyValues) => boolean; +}; + +export type ApplyStep = { + id: string; + title: string; + short: string; + description: string; + /** JSON column the step's answers live in; omitted = one DB column per field. */ + json?: "product" | "mindset" | "goals" | "consents"; + fields: readonly ApplyField[]; +}; + +export const LICENSE_REGISTERED = "Registered (license attached)"; + +const isOther = (v: ApplyValues) => v.primarySector === "Other" || v.secondarySector === "Other"; +const licensePending = (v: ApplyValues) => + typeof v.licenseStatus === "string" && v.licenseStatus !== "" && v.licenseStatus !== LICENSE_REGISTERED; + +const docLink = (id: string, label: string, required: ApplyField["required"]): ApplyField => ({ + id, + label, + kind: "url", + required, + placeholder: "https://drive.google.com/…", + hint: "Share a Google Drive / Dropbox link with view access", + wide: true, +}); + +const essay = (id: string, label: string, max: number, hint?: string): ApplyField => ({ + id, + label, + kind: "textarea", + required: true, + max, + hint, + wide: true, +}); + +const mindset = (id: string, label: string): ApplyField => ({ + id, + label, + kind: "textarea", + required: true, + min: 300, + max: 500, + wide: true, +}); + +const rating = (id: string, label: string): ApplyField => ({ + id, + label, + kind: "rating", + required: true, + wide: true, +}); + +const consent = (id: string, label: string): ApplyField => ({ + id, + label, + kind: "consent", + required: true, + wide: true, +}); + +export const applySteps: readonly ApplyStep[] = [ + { + id: "founder", + title: "Founder & startup", + short: "Founder", + description: "Who you are and the company you're building.", + fields: [ + { id: "founderName", label: "Full name", kind: "text", required: true, min: 2, max: 100 }, + { id: "email", label: "Email", kind: "email", required: true, placeholder: "you@startup.com" }, + { + id: "phone", + label: "Phone", + kind: "phone", + required: true, + pattern: /^\d{9}$/, + patternMessage: "Enter the 9 digits after +251", + placeholder: "911234567", + }, + { + id: "role", + label: "Your role", + kind: "select", + required: true, + options: ["Founder & CEO", "Co-founder", "CTO", "Other"], + }, + { id: "startupName", label: "Startup name", kind: "text", required: true, min: 2, max: 100 }, + { id: "website", label: "Website", kind: "url", placeholder: "https://" }, + { + id: "city", + label: "City", + kind: "select", + required: true, + options: ["Addis Ababa", "Adama", "Bahir Dar", "Hawassa", "Mekelle", "Dire Dawa", "Other"], + }, + { + id: "yearFounded", + label: "Year founded", + kind: "number", + required: true, + min: 2000, + max: new Date().getFullYear(), + }, + { id: "coFounders", label: "Number of co-founders", kind: "number", required: true, min: 1, max: 10 }, + { + id: "teamSize", + label: "Team size", + kind: "select", + required: true, + options: ["1–2", "3–5", "6–10", "11–25", "26+"], + }, + { + id: "stage", + label: "Stage", + kind: "select", + required: true, + options: ["Idea", "Prototype/MVP", "Early revenue", "Growth"], + }, + { id: "primarySector", label: "Primary sector", kind: "sector", required: true }, + { id: "secondarySector", label: "Secondary sector", kind: "sector" }, + { + id: "otherSector", + label: "Describe your sector", + kind: "text", + required: true, + max: 100, + when: isOther, + }, + { + id: "referralSource", + label: "How did you hear about us?", + kind: "select", + required: true, + options: ["Social media", "Friend/referral", "Event", "Partner organization", "Other"], + }, + ], + }, + { + id: "documents", + title: "Documents", + short: "Documents", + description: "Link your plan, deck, and business license. Only the review team will open them.", + // ponytail: documents are shared links; switch to private R2 uploads once R2 is enabled. + fields: [ + docLink("businessPlanUrl", "Business plan", true), + docLink("pitchDeckUrl", "Pitch deck", true), + { + id: "licenseStatus", + label: "Business registration status", + kind: "select", + required: true, + options: [LICENSE_REGISTERED, "Registration in progress", "Not yet registered"], + wide: true, + }, + { + id: "licenseNote", + label: "Explain your registration status and timeline.", + kind: "textarea", + required: true, + max: 500, + wide: true, + when: licensePending, + }, + docLink("licenseUrl", "Business license", (v) => !licensePending(v)), + { + id: "tin", + label: "TIN", + kind: "text", + pattern: /^\d{10}$/, + patternMessage: "TIN must be 10 digits", + placeholder: "10 digits", + }, + { id: "demoUrl", label: "Demo or product link", kind: "url", placeholder: "https://" }, + ], + }, + { + id: "product", + title: "Product & market", + short: "Product", + description: "What you're building, for whom, and how it makes money.", + json: "product", + fields: [ + essay("oneLiner", "One-line description", 150, "What you do, in one sentence."), + essay("problem", "What problem are you solving?", 800), + essay("solution", "How does your solution work?", 800), + essay("customers", "Who are your customers?", 500), + essay("competitors", "Who are your competitors, and how are you different?", 800), + essay("businessModel", "How do you make money?", 500), + essay("traction", "What traction do you have so far?", 600, "Users, pilots, revenue, partnerships."), + { + id: "revenueRange", + label: "Revenue in the last 12 months", + kind: "select", + required: true, + options: ["None", "< 10k ETB", "10k–100k ETB", "100k–500k ETB", "500k+ ETB"], + }, + { + id: "fundingRaised", + label: "Funding raised to date", + kind: "select", + required: true, + options: ["None/bootstrapped", "< 500k ETB", "500k–2M ETB", "2M+ ETB"], + }, + ], + }, + { + id: "mindset", + title: "Founder mindset", + short: "Mindset", + description: "There are no right answers. Be honest and specific — 300 to 500 characters each.", + json: "mindset", + fields: [ + mindset("failure", "Tell us about a time you failed. What happened, and what did you learn?"), + mindset("whyYou", "Why are you the right person to solve this problem?"), + mindset("quit", "What would make you quit this startup?"), + mindset("disagreement", "How do you make decisions when your team disagrees?"), + mindset("feedback", "Describe a piece of feedback that changed how you work."), + mindset("stress", "How do you handle stress and pressure?"), + rating("rateMotivation", "I stay motivated when progress is slow."), + rating("rateRisk", "I take calculated risks."), + rating("rateCriticism", "I actively seek criticism of my ideas."), + rating("rateAdapt", "I adapt quickly when plans change."), + rating("ratePitch", "I can explain my business in under a minute."), + ], + }, + { + id: "goals", + title: "Goals & support", + short: "Goals", + description: "Where you're headed and how the summit can help.", + json: "goals", + fields: [ + essay("goals12mo", "What are your goals for the next 12 months?", 600), + essay("goals3yr", "Where do you want to be in 3 years?", 600), + essay("biggestObstacle", "What is your biggest obstacle right now?", 500), + { + id: "supportNeeded", + label: "What support do you need?", + kind: "multi", + required: true, + wide: true, + hint: "Choose all that apply.", + options: [ + "Funding", + "Mentorship", + "Market access", + "Technical help", + "Legal/licensing", + "Partnerships", + "Visibility/marketing", + "Other", + ], + }, + essay("prizeUse", "How would you use the prize money?", 500), + ], + }, + { + id: "review", + title: "Review & submit", + short: "Review", + description: "Check your answers. You can't edit after submitting.", + json: "consents", + fields: [ + consent("consentAccuracy", "I confirm the information in this application is accurate and complete."), + consent( + "consentReview", + "I agree that my application and documents will be reviewed confidentially by the organizers and judges." + ), + consent("consentContact", "I agree to be contacted by email or phone about my application."), + ], + }, +]; + +export const ratingScale = { + low: "Not like me", + high: "Very like me", +} as const; + +export const applyCopy = { + eyebrow: "Pitch competition · Application", + title: "Apply to pitch at GRV Summit", + intro: + "Six short steps. Your answers save after each step, so you can stop and come back with your resume link.", + prep: ["About 30 minutes", "Links to your business plan, deck & license", "Saves after each step"], + stepOf: (n: number, total: number) => `Step ${n} of ${total}`, + back: "Back", + next: "Save & continue", + saving: "Saving…", + submit: "Submit application", + submitting: "Submitting…", + edit: "Edit", + optional: "Optional", + select: "Select…", + empty: "Not provided", + resumeTitle: "Your resume link", + resumeBody: + "We've also emailed you this link. Use it to continue on any device — anyone with it can edit your draft, so keep it private.", + copy: "Copy link", + copied: "Copied", + fixErrors: "Please fix the highlighted fields.", + networkError: "Could not reach the server. Check your connection and try again.", + loading: "Loading your application…", + closedTitle: "Applications are closed", + closedBody: "The application deadline has passed. Thank you for your interest in GRV Summit.", + doneTitle: "Application received", + doneBody: (date: string) => + `Thank you! Your application has been received. We'll contact you by ${date}.`, + deadline: (date: string) => `Deadline: ${date} (Addis Ababa time)`, +} as const; + +export function formatApplyDate(iso: string) { + return new Date(iso).toLocaleDateString("en-GB", { + day: "numeric", + month: "long", + year: "numeric", + timeZone: applyConfig.timeZone, + }); +} diff --git a/src/shared/email-templates.ts b/src/shared/email-templates.ts new file mode 100644 index 0000000..63b732e --- /dev/null +++ b/src/shared/email-templates.ts @@ -0,0 +1,288 @@ +import type { Mail } from "../common/mail.js"; +import type { InquiryIntent, InquiryPayload } from "./inquiry.js"; +import { boothSizes } from "./exhibit.js"; +import { site } from "./site.js"; +import { ADMIN_URL, SITE_URL } from "../common/env.js"; + +type Content = Omit; +type Row = [label: string, value: string | undefined]; + +const FONT = "-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif"; +const GREEN = "#30614c"; +const DARK = "#1a4034"; +const MINT = "#e8f2ec"; + +export function escapeHtml(value: string) { + return value + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """) + .replace(/'/g, "'"); +} + +const isUrl = (value: string) => /^https?:\/\/\S+$/i.test(value); + +function rowsHtml(rows: Row[]) { + return rows + .filter((row): row is [string, string] => Boolean(row[1]?.trim())) + .map(([label, value]) => { + const safe = escapeHtml(value.trim()); + const body = isUrl(value.trim()) + ? `${safe}` + : safe.replace(/\n/g, "
"); + return ` + ${escapeHtml(label)} + ${body} +`; + }) + .join(""); +} + +function rowsText(rows: Row[]) { + return rows + .filter(([, value]) => value?.trim()) + .map(([label, value]) => `${label}: ${value!.trim()}`) + .join("\n"); +} + +/** One branded, table-based layout for every GRV email. All dynamic text is escaped here. */ +function layout(opts: { + subject: string; + kicker: string; + title: string; + paragraphs: string[]; + rows?: Row[]; + cta?: { label: string; href: string }; +}): Content { + const { subject, kicker, title, paragraphs, rows = [], cta } = opts; + const html = ` +${escapeHtml(subject)} + + + +
+ + + + + +
+ GRV Summit +
+

${escapeHtml(kicker)}

+

${escapeHtml(title)}

+
+ ${paragraphs.map((p) => `

${escapeHtml(p)}

`).join("")} + ${rows.length ? `${rowsHtml(rows)}
` : ""} + ${ + cta + ? `

${escapeHtml(cta.label)}

` + : "" + } +
+

+ ${escapeHtml(site.name)} · ${escapeHtml(site.dates.label)} · ${escapeHtml(site.venue.name)}
+ Presented by the Ethiopian Diaspora Trust Fund · ${SITE_URL.replace(/^https?:\/\//, "")} +

+
+
+`; + + const text = [ + kicker.toUpperCase(), + title, + "", + ...paragraphs, + rows.length ? `\n${rowsText(rows)}` : "", + cta ? `\n${cta.label}: ${cta.href}` : "", + `\n— ${site.name} · ${SITE_URL}`, + ].join("\n"); + + return { subject, html, text }; +} + +const intentCopy: Record = { + general: { label: "General inquiry", thanks: "Thanks for reaching out. Our team will reply within two working days." }, + sales: { label: "Sales inquiry", thanks: "Thanks for reaching out. Our team will reply within two working days." }, + press: { label: "Press inquiry", thanks: "Thanks for your interest in covering GRV Summit. Our media team will be in touch." }, + partnership: { + label: "Partnership request", + thanks: "Thanks for your interest in partnering with GRV Summit. We'll send partnership information and next steps shortly.", + }, + sponsor: { + label: "Sponsorship inquiry", + thanks: "Thanks for your interest in sponsoring GRV Summit. Our partnerships team will follow up with packages and availability.", + }, + exhibitor: { + label: "Booth request", + thanks: "Thanks for requesting a booth. We'll confirm availability, pricing and the floor plan with you shortly.", + }, + startup_referral: { + label: "Startup recommendation", + thanks: "Thanks for championing a startup. Our programming team reviews every recommendation.", + }, + newsletter: { + label: "Newsletter signup", + thanks: "You're on the list. We'll share speaker announcements, programme updates and pitch competition news.", + }, +}; + +function inquiryRows(data: InquiryPayload): Row[] { + const booth = boothSizes.find((size) => size.value === data.boothSize)?.label ?? data.boothSize; + return [ + ["Name", data.name], + ["Email", data.email], + ["Phone", data.phone], + ["Company", data.company], + ["Booth package", booth], + ["Startup", data.startupName], + ["Startup website", data.startupWebsite], + ["Sector", data.startupSector], + ["Message", data.message], + ]; +} + +export function inquiryStaffEmail(data: InquiryPayload): Content { + const { label } = intentCopy[data.intent]; + const who = data.company ? `${data.name} (${data.company})` : data.name; + return layout({ + subject: `[GRV] ${label}: ${data.startupName ?? who}`, + kicker: "New website submission", + title: label, + paragraphs: [`${who} submitted the ${label.toLowerCase()} form. Reply to this email to answer them directly.`], + rows: inquiryRows(data), + }); +} + +export function inquiryConfirmationEmail(data: InquiryPayload): Content { + const { label, thanks } = intentCopy[data.intent]; + return layout({ + subject: `We received your ${label.toLowerCase()} · GRV Summit`, + kicker: label, + title: `Thank you, ${data.firstName ?? data.name.split(" ")[0]}`, + paragraphs: [thanks, "Here's a copy of what you sent:"], + rows: inquiryRows(data).filter(([key]) => key !== "Email"), + }); +} + +const resumeUrl = (token: string) => `${SITE_URL}/apply?token=${encodeURIComponent(token)}`; + +export function applyResumeEmail(name: string, token: string): Content { + return layout({ + subject: "Continue your GRV Summit application", + kicker: "Pitch competition", + title: `Your application is saved, ${name.split(" ")[0]}`, + paragraphs: [ + "Use the link below to continue on any device. Your answers save after each step.", + "Anyone with this link can edit your draft, so keep it private.", + ], + cta: { label: "Continue application", href: resumeUrl(token) }, + }); +} + +export function applyReceivedEmail(opts: { name: string; startup: string; token: string; contactBy: string }): Content { + return layout({ + subject: `Application received: ${opts.startup} · GRV Summit`, + kicker: "Pitch competition", + title: "Application received", + paragraphs: [ + `Thank you, ${opts.name.split(" ")[0]}! Your application for ${opts.startup} has been received and is now locked.`, + `Our reviewers will read every answer. We'll contact you by ${opts.contactBy}.`, + ], + cta: { label: "View your submission", href: resumeUrl(opts.token) }, + }); +} + +export function applyStaffEmail(opts: { id: string; rows: Row[]; startup: string }): Content { + return layout({ + subject: `[GRV] New application: ${opts.startup}`, + kicker: "Pitch competition", + title: `New application: ${opts.startup}`, + paragraphs: ["A startup just submitted its application."], + rows: opts.rows, + cta: { label: "Open in admin", href: `${ADMIN_URL}/applications/${opts.id}` }, + }); +} + +const resultCopy = { + SHORTLISTED: { + title: "You've been shortlisted", + body: "Congratulations! Your startup has been shortlisted for the GRV Summit pitch competition. We'll be in touch shortly with next steps.", + }, + FINALIST: { + title: "You're a finalist", + body: "Congratulations! Your startup has been selected as a finalist and will pitch on stage at GRV Summit. Our team will contact you with preparation details.", + }, + ACCEPTED: { + title: "You've been accepted", + body: "Congratulations! Your startup has been accepted into the GRV Summit programme. Our team will contact you shortly with onboarding details and next steps.", + }, + REJECTED: { + title: "An update on your application", + body: "Thank you for applying to the GRV Summit pitch competition. After careful review, we're unable to move your application forward this year. We received many strong applications and hope to see you at the summit and in future editions.", + }, +} as const; + +export type ResultStatus = keyof typeof resultCopy; +export const isResultStatus = (status: string): status is ResultStatus => status in resultCopy; + +export function applyResultEmail(status: ResultStatus, name: string, startup: string): Content { + const copy = resultCopy[status]; + return layout({ + subject: `${copy.title} · ${startup} · GRV Summit`, + kicker: "Pitch competition", + title: copy.title, + paragraphs: [`Hi ${name.split(" ")[0]},`, copy.body], + }); +} + +export function otpEmail(code: string): Content { + return layout({ + subject: `${code} is your GRV Summit sign-in code`, + kicker: "Sign in", + title: `Your code: ${code}`, + paragraphs: ["Enter this code to sign in. It expires in 10 minutes.", "If you didn't ask for it, you can ignore this email."], + }); +} + +type OrderLine = { name: string; qty: number; size?: string | null }; + +export function orderReceivedEmail(opts: { + name: string; + number: string; + kind: "TICKET" | "MERCH"; + items: OrderLine[]; + total: string; + instructions: string; +}): Content { + const merch = opts.kind === "MERCH"; + return layout({ + subject: `Order ${opts.number} received · GRV Summit`, + kicker: merch ? "Merch order" : "Tickets", + title: `Thanks, ${opts.name.split(" ")[0]}`, + paragraphs: [ + merch + ? "Your merch is reserved. Pay and collect it at the GRV booth by showing your pickup code in the app." + : opts.instructions, + ], + rows: [ + ["Order", opts.number], + ...opts.items.map((i): Row => [i.name, `${i.qty}${i.size ? ` × ${i.size}` : ""}`]), + ["Total", opts.total], + ], + }); +} + +export function ticketsIssuedEmail(opts: { name: string; number: string; tickets: { tierName: string; url: string }[] }): Content { + return layout({ + subject: `Your GRV Summit tickets · ${opts.number}`, + kicker: "Tickets", + title: "You're going to GRV Summit", + paragraphs: [ + `Hi ${opts.name.split(" ")[0]}, your payment is confirmed. Show a ticket QR at check-in.`, + "Sign in to the GRV Summit app with this email to see your tickets, scan booths and join the raffle.", + ], + rows: opts.tickets.map((t, i): Row => [`${t.tierName} #${i + 1}`, t.url]), + }); +} diff --git a/src/shared/exhibit.ts b/src/shared/exhibit.ts new file mode 100644 index 0000000..f4bb60b --- /dev/null +++ b/src/shared/exhibit.ts @@ -0,0 +1,37 @@ +export const exhibitCopy = { + eyebrow: "Exhibit", + headline: "Reserve a booth & showcase your products", + subheadline: + "Acquire exhibition space in the Great Rift Valley Innovation Summit hall. Promote your brand, demo products, and connect with investors, startups, and partners across Ethiopia's innovation ecosystem.", +}; + +export const boothPackages = [ + { + id: "standard", + name: "Standard booth", + size: "3m × 3m", + description: "Table, chairs, power outlet, and listing in the exhibitor directory.", + highlights: ["Hall placement", "1 company listing", "2 staff badges"], + }, + { + id: "corner", + name: "Corner booth", + size: "3m × 3m (corner)", + description: "Higher foot traffic with two open sides for demos and product displays.", + highlights: ["Corner visibility", "Enhanced signage", "3 staff badges"], + }, + { + id: "premium", + name: "Premium booth", + size: "6m × 3m", + description: "Larger footprint for live demos, screens, and multi-product showcases.", + highlights: ["Priority placement", "Program mention", "5 staff badges", "Wi‑Fi add-on"], + }, +] as const; + +export const boothSizes = [ + { value: "standard-3x3", label: "Standard — 3m × 3m" }, + { value: "corner-3x3", label: "Corner — 3m × 3m" }, + { value: "premium-6x3", label: "Premium — 6m × 3m" }, + { value: "custom", label: "Custom — not sure yet" }, +] as const; diff --git a/src/shared/inquiry.ts b/src/shared/inquiry.ts new file mode 100644 index 0000000..300def8 --- /dev/null +++ b/src/shared/inquiry.ts @@ -0,0 +1,223 @@ +import { boothSizes } from "./exhibit.js"; +export const inquiryIntents = [ + "general", + "exhibitor", + "sponsor", + "partnership", + "startup_referral", + "sales", + "press", + "newsletter", +] as const; + +export type InquiryIntent = (typeof inquiryIntents)[number]; + +export type InquiryPayload = { + intent: InquiryIntent; + name: string; + email: string; + company?: string; + message: string; + phone?: string; + firstName?: string; + lastName?: string; + consent: boolean; + startupName?: string; + startupWebsite?: string; + startupSector?: string; + whyRecommend?: string; + boothSize?: string; +}; + +function parseEmail(email: unknown) { + return typeof email === "string" ? email.trim() : ""; +} + +function requireConsent(consent: unknown): boolean { + return consent === true; +} + +export function validateInquiry( + body: unknown +): { ok: true; data: InquiryPayload } | { ok: false; error: string } { + if (!body || typeof body !== "object") { + return { ok: false, error: "Invalid request body" }; + } + + const b = body as Record; + const intent = b.intent as InquiryIntent; + + if (!inquiryIntents.includes(intent)) { + return { ok: false, error: "Invalid intent" }; + } + + const email = parseEmail(b.email); + if (!email || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) { + return { ok: false, error: "Valid email is required" }; + } + + if (intent === "partnership") { + const firstName = typeof b.firstName === "string" ? b.firstName.trim() : ""; + const lastName = typeof b.lastName === "string" ? b.lastName.trim() : ""; + const company = typeof b.company === "string" ? b.company.trim() : ""; + + if (!firstName || firstName.length < 2) { + return { ok: false, error: "First name is required" }; + } + if (!lastName || lastName.length < 2) { + return { ok: false, error: "Last name is required" }; + } + if (!company) { + return { ok: false, error: "Company name is required" }; + } + if (!requireConsent(b.consent)) { + return { ok: false, error: "You must agree to data collection to submit" }; + } + + return { + ok: true, + data: { + intent, + firstName, + lastName, + name: `${firstName} ${lastName}`, + email, + company, + message: + typeof b.message === "string" && b.message.trim() + ? b.message.trim() + : "Partnership information request", + consent: true, + }, + }; + } + + if (intent === "exhibitor") { + const name = typeof b.name === "string" ? b.name.trim() : ""; + const company = typeof b.company === "string" ? b.company.trim() : ""; + const phone = typeof b.phone === "string" ? b.phone.trim() : ""; + const boothSize = typeof b.boothSize === "string" ? b.boothSize.trim() : ""; + const message = typeof b.message === "string" ? b.message.trim().slice(0, 1000) : ""; + + if (name.length < 2) { + return { ok: false, error: "Your name is required" }; + } + if (!company) { + return { ok: false, error: "Company name is required" }; + } + if (!phone) { + return { ok: false, error: "Phone number is required" }; + } + if (!boothSizes.some((size) => size.value === boothSize)) { + return { ok: false, error: "Choose a booth package" }; + } + if (!requireConsent(b.consent)) { + return { ok: false, error: "You must agree to data collection to submit" }; + } + + return { + ok: true, + data: { + intent, + name, + email, + phone, + company, + boothSize, + message: message || "Booth request", + consent: true, + }, + }; + } + + if (intent === "startup_referral") { + const name = typeof b.name === "string" ? b.name.trim() : ""; + const startupName = typeof b.startupName === "string" ? b.startupName.trim() : ""; + const whyRecommend = typeof b.whyRecommend === "string" ? b.whyRecommend.trim() : ""; + + if (!name || name.length < 2) { + return { ok: false, error: "Your name is required" }; + } + if (!startupName) { + return { ok: false, error: "Startup name is required" }; + } + if (!whyRecommend || whyRecommend.length < 20) { + return { ok: false, error: "Please tell us why you recommend this startup (at least 20 characters)" }; + } + if (!requireConsent(b.consent)) { + return { ok: false, error: "You must agree to data collection to submit" }; + } + + return { + ok: true, + data: { + intent, + name, + email, + startupName, + startupWebsite: + typeof b.startupWebsite === "string" ? b.startupWebsite.trim() : undefined, + startupSector: + typeof b.startupSector === "string" ? b.startupSector.trim() : undefined, + whyRecommend, + message: whyRecommend, + consent: true, + }, + }; + } + + if (!requireConsent(b.consent)) { + return { ok: false, error: "You must agree to data collection to submit" }; + } + + if (intent === "newsletter") { + const firstName = typeof b.firstName === "string" ? b.firstName.trim() : ""; + const lastName = typeof b.lastName === "string" ? b.lastName.trim() : ""; + const nameFromFields = `${firstName} ${lastName}`.trim(); + const name = nameFromFields || (typeof b.name === "string" ? b.name.trim() : ""); + + if (!firstName || firstName.length < 2) { + return { ok: false, error: "First name is required" }; + } + if (!lastName || lastName.length < 2) { + return { ok: false, error: "Last name is required" }; + } + + return { + ok: true, + data: { + intent, + firstName, + lastName, + name, + email, + message: "Newsletter signup", + consent: true, + }, + }; + } + + const name = typeof b.name === "string" ? b.name.trim() : ""; + const message = typeof b.message === "string" ? b.message.trim() : ""; + + if (!name || name.length < 2) { + return { ok: false, error: "Name is required" }; + } + + if (!message || message.length < 10) { + return { ok: false, error: "Message must be at least 10 characters" }; + } + + return { + ok: true, + data: { + intent, + name, + email, + message, + company: typeof b.company === "string" ? b.company.trim() : undefined, + phone: typeof b.phone === "string" ? b.phone.trim() : undefined, + consent: true, + }, + }; +} diff --git a/src/shared/site.ts b/src/shared/site.ts new file mode 100644 index 0000000..eb2fac8 --- /dev/null +++ b/src/shared/site.ts @@ -0,0 +1,42 @@ +export const site = { + name: "Great Rift Valley Innovation Summit", + shortName: "GRV Summit", + logo: { + src: "/GRVLogo.png", + width: 1653, + height: 353, + }, + tagline: + "Ethiopia's premier gathering for tech-enabled innovation in agriculture, healthcare, and education.", + presentedBy: "Ethiopian Diaspora Trust Fund (EDTF)", + dates: { + label: "21 Feb – 22 Feb 2027", + start: "2027-02-21", + end: "2027-02-22", + }, + venue: { + name: "Skylight Hotel", + address: "Bole, Addis Ababa, Ethiopia", + mapsUrl: "https://maps.google.com/?q=Skylight+Hotel+Addis+Ababa", + lat: 8.9806, + lng: 38.7578, + }, + links: { + ticketsUrl: "/payment", + pitchApplyUrl: "/apply", + legacySite: "https://grvsummit.com/", + calendarIcs: "/calendar", + }, + social: { + tiktok: "https://www.tiktok.com/@grvsummit", + linkedin: "https://www.linkedin.com/company/grv-summit", + facebook: "https://www.facebook.com/grvsummit", + instagram: "https://www.instagram.com/grvsummit", + }, + stats: [ + { type: "static", value: "500+", label: "Attendees" }, + { type: "cycling", label: "Grant funding" }, + { type: "static", value: "10", label: "Companies selected" }, + { type: "static", value: "3", label: "Innovation sectors" }, + ], +} as const; diff --git a/test/core.test.ts b/test/core.test.ts new file mode 100644 index 0000000..d5b35cf --- /dev/null +++ b/test/core.test.ts @@ -0,0 +1,91 @@ +// Money + points paths against a throwaway in-memory Postgres (PGlite), migrated from prisma/migrations. +import { readdirSync, readFileSync } from 'node:fs'; +import { PGlite } from '@electric-sql/pglite'; +import { PGLiteSocketServer } from '@electric-sql/pglite-socket'; +import { afterAll, beforeAll, describe, expect, it } from 'vitest'; + +process.env.JWT_SECRET = 'test-secret-test-secret-test-secret-00'; +process.env.DATABASE_POOL_MAX = '1'; +process.env.RESEND_API_KEY = ''; + +const db = await PGlite.create(); +for (const dir of readdirSync('prisma/migrations').filter((d) => /^\d/.test(d)).sort()) { + await db.exec(readFileSync(`prisma/migrations/${dir}/migration.sql`, 'utf8')); +} +const server = new PGLiteSocketServer({ db, port: 5544, host: '127.0.0.1', maxConnections: 20 }); +await server.start(); +process.env.DATABASE_URL = 'postgresql://postgres:postgres@127.0.0.1:5544/postgres'; + +const { PrismaService } = await import('../src/prisma.service.js'); +const { CommerceService } = await import('../src/modules/commerce.js'); +const { GameService } = await import('../src/modules/game.js'); +const prisma = new PrismaService(); +const commerce = new CommerceService(prisma); +const game = new GameService(prisma); + +const order = (discountCode?: string, quantity = 1) => + commerce.createTicketOrder({ + ticketId: 'pass', quantity, name: 'Abebe Kebede', email: 'abebe@example.com', + paymentMethod: 'bank', consent: true, discountCode, + }); + +beforeAll(async () => { + await prisma.ticketTier.create({ data: { code: 'pass', name: 'Pass', priceMinor: 10000, capacity: 3 } }); +}); +afterAll(async () => { + await prisma.$disconnect(); + await server.stop(); + await db.close(); +}); + +describe('discounts', () => { + it('applies percent and caps fixed amounts at the subtotal', async () => { + await prisma.discountCode.create({ data: { code: 'TEN', percentOff: 10 } }); + await prisma.discountCode.create({ data: { code: 'BIG', amountOffMinor: 999_999 } }); + expect((await commerce.quote('pass', 2, 'ten')).totalMinor).toBe(18000); + expect((await commerce.quote('pass', 1, 'BIG')).totalMinor).toBe(0); + }); + + it('respects maxUses, counting only paid orders', async () => { + await prisma.discountCode.create({ data: { code: 'ONCE', percentOff: 50, maxUses: 1 } }); + const first = await order('ONCE'); + expect((await commerce.quote('pass', 1, 'ONCE')).valid).toBe(true); // pending orders don't use it up + await commerce.markPaid(first.id); + const q = await commerce.quote('pass', 1, 'ONCE'); + expect(q.valid).toBe(false); + await expect(order('ONCE')).rejects.toMatchObject({ status: 400 }); + }); +}); + +describe('orders', () => { + it('mark-paid issues one ticket per seat, once', async () => { + const o = await order(undefined, 2); + const paid = await commerce.markPaid(o.id, 'REF'); + expect(paid.tickets).toHaveLength(2); + expect(new Set(paid.tickets.map((t) => t.qrToken)).size).toBe(2); + await expect(commerce.markPaid(o.id)).rejects.toMatchObject({ status: 409 }); + }); + + it('refuses to oversell tier capacity', async () => { + // capacity 3: 1 (ONCE) + 2 already issued + await expect(order()).rejects.toMatchObject({ status: 409 }); + }); +}); + +describe('scans', () => { + it('awards points once, doubles the mystery investee, and draws a raffle winner', async () => { + const user = await prisma.user.create({ data: { email: 'a@x.com' } }); + const booth = await prisma.checkpoint.create({ data: { kind: 'BOOTH', label: 'B', points: 10, qrToken: 'booth1' } }); + await prisma.checkpoint.create({ data: { kind: 'MYSTERY_INVESTEE', label: 'M', points: 50, qrToken: 'myst1' } }); + + expect((await game.scan(user, `https://grv.ethiopiatrustfund.org/q/${booth.qrToken}`)).total).toBe(10); + await expect(game.scan(user, 'booth1')).rejects.toMatchObject({ status: 409 }); + const mystery = await game.scan(user, 'myst1'); + expect(mystery).toMatchObject({ pointsAwarded: 100, total: 110, mystery: true }); + await expect(game.scan(user, 'nope')).rejects.toMatchObject({ status: 404 }); + + const raffle = await prisma.raffle.create({ data: { name: 'R', prize: 'P', minPoints: 100 } }); + expect((await game.draw(raffle.id)).winnerUserId).toBe(user.id); + await expect(game.draw(raffle.id)).rejects.toMatchObject({ status: 409 }); + }); +}); diff --git a/tsconfig.build.json b/tsconfig.build.json new file mode 100644 index 0000000..df6efbb --- /dev/null +++ b/tsconfig.build.json @@ -0,0 +1 @@ +{ "extends": "./tsconfig.json", "include": ["src"], "exclude": ["test", "**/*.test.ts"] } diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..f38541b --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "nodenext", + "moduleResolution": "nodenext", + "esModuleInterop": true, + "isolatedModules": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "target": "ES2023", + "sourceMap": true, + "outDir": "./dist", + "rootDir": ".", + "incremental": true, + "skipLibCheck": true, + "strict": true, + "strictPropertyInitialization": false, + "types": ["node"] + }, + "include": ["src", "prisma", "scripts", "test", "prisma.config.ts"] +} diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..fa294bd --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,5 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { include: ['test/**/*.test.ts'], testTimeout: 30_000, fileParallelism: false }, +});