feat: добавить ручной runtime-клиент

- добавлен корневой runtime export HttpClient и createApiClient
- настроена сборка JS и d.ts для публичного API пакета
- добавлен тест ручной сборки operations через createApiClient
- добавлена документация по ручному клиенту без OpenAPI
- версия пакета поднята до 5.1.0
This commit is contained in:
2026-07-03 10:51:56 +03:00
parent b8bb267848
commit 75bd97e8f9
8 changed files with 698 additions and 4 deletions

20
src/index.ts Normal file
View File

@@ -0,0 +1,20 @@
export { createApiClient } from './client/create-api-client.js';
export type { ApiOperation, ApiTree, BoundApi } from './client/create-api-client.js';
export { ApiError, ContentType, HttpClient } from './client/http-client.js';
export type {
ApiConfig,
ApiRequestClient,
CancelToken,
ErrorInterceptor,
FetchLike,
FullRequestParams,
HttpResponse,
ParamsSerializer,
QueryParamsType,
RequestContext,
RequestInterceptor,
RequestParams,
ResponseFormat,
ResponseInterceptor,
ResponseParser,
} from './client/http-client.js';