trails/packages
Ullrich Schäfer 49b304749e
Add @trails-cool/api package with Zod schemas for REST API contract
Single source of truth for the Journal REST API:
- API_VERSION semver constant (1.0.0)
- Endpoint path constants (routes, activities, auth, uploads, push)
- Zod schemas for all request/response shapes:
  - Routes: list, detail, create, update, compute
  - Activities: list, detail, create
  - Auth: token exchange, refresh, device management
  - Discovery: instance info + API version
  - Uploads: presigned URL flow
  - Errors: structured error response with field-level details
- Cursor-based pagination schemas
- TypeScript types inferred from Zod (z.infer)

Used by Journal server (validation) and mobile client (type safety).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 22:49:30 +02:00
..
api Add @trails-cool/api package with Zod schemas for REST API contract 2026-04-12 22:49:30 +02:00
db Add Wahoo activity sync with provider-agnostic framework 2026-04-04 11:22:02 +01:00
gpx Sync notes through GPX, Journal, and Planner roundtrip 2026-04-11 03:35:40 +02:00
i18n Add smoothness, track type, cycleway, and bike route color modes 2026-04-11 11:13:44 +02:00
map Extract @trails-cool/map-core package from Planner 2026-04-12 22:28:14 +02:00
map-core Extract @trails-cool/map-core package from Planner 2026-04-12 22:28:14 +02:00
types Fix planner production server + use .ts extensions everywhere 2026-03-25 01:41:33 +01:00
ui Fix planner production server + use .ts extensions everywhere 2026-03-25 01:41:33 +01:00