feat(web): add OpenAPI TypeScript codegen and CI freshness check

Генерируем api.gen.ts из docs/openapi.yaml (openapi-typescript), добавляем scripts/check-openapi-gen.sh в CI. Закрываем решение по X-Tenant-Id как unimplemented; обновляем docs/README под React/ReUI и apps/web.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Denozordec
2026-07-31 12:19:02 +07:00
co-authored by Cursor
parent a0cfbcdab1
commit 13e3d21ce2
9 changed files with 6782 additions and 32 deletions
File diff suppressed because it is too large Load Diff
+10
View File
@@ -1,3 +1,13 @@
/**
* Hand-written UI DTO aliases used by routes/queries.
* Machine SoT from OpenAPI: `./api.gen.ts` (regenerate: `pnpm --filter @evobgp/web run openapi:gen`).
* Prefer aligning new fields with schemas in docs/openapi.yaml + regenerating api.gen.ts.
*/
import type { components } from './api.gen'
/** Re-export generated OpenAPI components for gradual adoption. */
export type OpenAPISchemas = components['schemas']
// ---- Pagination ----
export type Page<T> = {
items: T[]