website refactor

This commit is contained in:
2026-01-12 01:45:19 +01:00
parent fefd8d1cd6
commit 61db9116f6
11 changed files with 375 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
/**
* ApiClient contract
*
* Transport boundary for API calls.
* Returns API Transport DTOs only.
*
* Based on WEBSITE_CONTRACT.md:
* - API Transport DTOs are returned by the backend API over HTTP
* - Website uses ApiClient to communicate with the API
*/
export interface ApiClient<TApiDto = unknown> {
/**
* Execute an API call and return the transport DTO
*/
execute(...args: unknown[]): Promise<TApiDto>;
}