Stage M2
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { HttpClient, type HttpClientOptions } from './http-client';
|
||||
import { createAdminResource, type AdminResource } from './resources/admin';
|
||||
import { createAuthResource, type AuthResource } from './resources/auth';
|
||||
import { createCatalogResource, type CatalogResource } from './resources/catalog';
|
||||
import { createHealthResource, type HealthResource } from './resources/health';
|
||||
|
||||
@@ -12,6 +14,8 @@ export interface ApiClient {
|
||||
readonly http: HttpClient;
|
||||
readonly health: HealthResource;
|
||||
readonly catalog: CatalogResource;
|
||||
readonly auth: AuthResource;
|
||||
readonly admin: AdminResource;
|
||||
}
|
||||
|
||||
export function createApiClient(options: HttpClientOptions): ApiClient {
|
||||
@@ -21,5 +25,7 @@ export function createApiClient(options: HttpClientOptions): ApiClient {
|
||||
http,
|
||||
health: createHealthResource(http),
|
||||
catalog: createCatalogResource(http),
|
||||
auth: createAuthResource(http),
|
||||
admin: createAdminResource(http),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user