This commit is contained in:
Nông Đức Huy
2026-08-13 23:20:22 +07:00
parent 3e5d38ec18
commit 3d6b0e0d4e
145 changed files with 7817 additions and 801 deletions
+3
View File
@@ -1,4 +1,5 @@
import { HttpClient, type HttpClientOptions } from './http-client';
import { createCatalogResource, type CatalogResource } from './resources/catalog';
import { createHealthResource, type HealthResource } from './resources/health';
/**
@@ -10,6 +11,7 @@ import { createHealthResource, type HealthResource } from './resources/health';
export interface ApiClient {
readonly http: HttpClient;
readonly health: HealthResource;
readonly catalog: CatalogResource;
}
export function createApiClient(options: HttpClientOptions): ApiClient {
@@ -18,5 +20,6 @@ export function createApiClient(options: HttpClientOptions): ApiClient {
return {
http,
health: createHealthResource(http),
catalog: createCatalogResource(http),
};
}