@mcma/client
Version:
Node module with classes and functions used to access services in an MCMA environment
13 lines (12 loc) • 653 B
TypeScript
import { ServiceProperties } from "@mcma/core";
import { ResourceEndpointClient } from "./resource-endpoint-client";
import { AuthProvider } from "../auth/auth-provider";
import { HttpClientConfig } from "../http";
export declare class ServiceClient {
private endpointsMap;
constructor(service: ServiceProperties, authProvider: AuthProvider, httpClientConfig?: HttpClientConfig);
private getResourceTypeName;
hasResourceEndpoint(resourceType: string | Function): boolean;
getResourceEndpointClient(resourceType: string | Function): ResourceEndpointClient | undefined;
getAllResourceEndpointClients(): ResourceEndpointClient[];
}