- v2: register, get, cancel and checkout a registration (owner/admin only). - Registration create/cancel moved to src/services/registrations.ts and online checkout to src/services/payments.ts; v1 controllers call the same services (ServiceError carries status). - Typed frontend calls: npm run api:types writes openapi.json and schema.d.ts; apiV2() helper. Register page, Pay now and My Events cancel use v2; apiFetch reads v2 errors. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ls1vMdg2GYqbnKZmPaX1ot
35 lines
1.3 KiB
JSON
35 lines
1.3 KiB
JSON
{
|
|
"name": "hope-events",
|
|
"version": "1.51.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"
|
|
}
|
|
}
|