@careevolution/orchestrate
Version:
A TypeScript client for the Orchestrate API
14 lines (13 loc) • 583 B
JavaScript
import { ConvertApi } from "./convert.js";
import { createHttpHandler } from "./httpHandlerFactory.js";
import { InsightApi } from "./insight.js";
import { TerminologyApi } from "./terminology.js";
export class OrchestrateApi {
constructor(configuration = {}) {
const httpHandler = createHttpHandler(configuration.apiKey, undefined, configuration.timeoutMs);
this.terminology = new TerminologyApi(httpHandler);
this.convert = new ConvertApi(httpHandler);
this.insight = new InsightApi(httpHandler);
this.httpHandler = httpHandler;
}
}