innercontext/frontend/src
Piotr Oleszczyk e29d62f949 feat(frontend): auto-generate TypeScript types from backend OpenAPI schema
Replace manually maintained types in src/lib/types.ts with auto-generated
types from FastAPI's OpenAPI schema using @hey-api/openapi-ts. The bridge
file re-exports generated types with renames, Require<> augmentations for
fields that are optional in the schema but always present in responses, and
manually added relationship fields excluded from OpenAPI.

- Add openapi-ts.config.ts and generate:api npm script
- Generate types into src/lib/api/generated/types.gen.ts
- Rewrite src/lib/types.ts as bridge with re-exports and augmentations
- Fix null vs undefined mismatches in consumer components
- Remove unused manual type definitions from api.ts
- Update AGENTS.md docs with type generation workflow
2026-03-12 09:17:40 +01:00
..
lib feat(frontend): auto-generate TypeScript types from backend OpenAPI schema 2026-03-12 09:17:40 +01:00
routes feat(frontend): auto-generate TypeScript types from backend OpenAPI schema 2026-03-12 09:17:40 +01:00
app.css feat(frontend): improve lab result filter ergonomics 2026-03-10 12:44:19 +01:00
app.d.ts chore(frontend): format files with prettier 2026-03-03 20:51:34 +01:00
app.html perf(frontend): trim unused Cormorant Google font weight 2026-03-05 12:53:14 +01:00
hooks.server.ts chore(frontend): format files with prettier 2026-03-03 20:51:34 +01:00