Most routes answered by a v1 handler showed an empty body and
`data: unknown` in /docs/v2. Each now documents what its handler reads
and answers, and every path and query parameter is described.
- `documented: { body?, response? }` on v1Route/defineRoute, with shared
shapes in src/v2/docs.ts. Documentation only: not enforced, so nothing
that works can start failing; outside production a body or answer that
doesn't fit is logged ("doesn't match its documented schema").
- QUERY_HELP / PATH_HELP describe common parameters; empty bodies say
"No body needed".
- Declared the funnel's eventIds and webhook deliveries' status/before.
- tests/v2Docs.test.ts keeps the document complete; frontend types
regenerated, three call sites' types tightened (no payload change).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
35 lines
1.3 KiB
JSON
35 lines
1.3 KiB
JSON
{
|
|
"name": "hope-events",
|
|
"version": "1.52.1",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"dev:backend": "cd backend && npm run dev",
|
|
"dev:frontend": "cd frontend && npm run dev",
|
|
"start:backend": "cd backend && npm run start",
|
|
"start:frontend": "cd frontend && npm run start",
|
|
"start": "concurrently \"npm run start:backend\" \"npm run start:frontend\"",
|
|
"dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"",
|
|
"build": "cd frontend && npm run build && cd .. && cd backend && npm run prisma:generate",
|
|
"test:e2e": "playwright test",
|
|
"test": "npm --prefix backend test",
|
|
"demo:list": "npm --prefix backend run set-demo -- --list",
|
|
"demo:small": "npm --prefix backend run set-demo -- --profile=small",
|
|
"demo:events": "npm --prefix backend run set-demo -- --profile=events",
|
|
"demo:ministry": "npm --prefix backend run set-demo -- --profile=ministry",
|
|
"demo:multicampus": "npm --prefix backend run set-demo -- --profile=multicampus",
|
|
"api:types": "npm --prefix backend run openapi && npm --prefix frontend run api:types"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"description": "",
|
|
"devDependencies": {
|
|
"@axe-core/playwright": "^4.14.0",
|
|
"@playwright/test": "^1.64.0",
|
|
"concurrently": "^9.2.1"
|
|
},
|
|
"overrides": {
|
|
"shell-quote": "^1.12.0"
|
|
}
|
|
}
|