@simpleapps-com/augur-api
Version:
TypeScript client library for Augur microservices API endpoints
44 lines • 2.29 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AgrInfoClient = void 0;
const base_client_1 = require("../../core/base-client");
const resources_1 = require("./resources");
/**
* AGR Info Service Client
*
* Provides access to AGR info service endpoints for AI-powered content generation,
* microservice management, rubrics, and Ollama integration.
*
* @service agr-info
* @domain ai-content-generation
*/
class AgrInfoClient extends base_client_1.BaseServiceClient {
constructor(http, baseUrl) {
super('agr-info', http, baseUrl || 'https://agr-info.augur-api.com');
// Bind executeRequest for resource factories
const boundExecuteRequest = (config, params, pathParams) => {
if (params !== undefined || config.paramsSchema !== undefined) {
return this.executeRequest(config, params, pathParams);
}
return this.executeRequest(config, undefined, pathParams);
};
// Initialize resources
this.healthCheck = (0, resources_1.createHealthCheckResource)(boundExecuteRequest);
this.healthCheckData = (0, resources_1.createHealthCheckDataResource)(this.healthCheck);
this.akasha = (0, resources_1.createAkashaResource)(boundExecuteRequest);
this.akashaData = (0, resources_1.createAkashaDataResource)(this.akasha);
this.joomla = (0, resources_1.createJoomlaResource)(boundExecuteRequest);
this.joomlaData = (0, resources_1.createJoomlaDataResource)(this.joomla);
this.microservices = (0, resources_1.createMicroservicesResource)(boundExecuteRequest);
this.microservicesData = (0, resources_1.createMicroservicesDataResource)(this.microservices);
this.rubrics = (0, resources_1.createRubricsResource)(boundExecuteRequest);
this.rubricsData = (0, resources_1.createRubricsDataResource)(this.rubrics);
this.ollama = (0, resources_1.createOllamaResource)(boundExecuteRequest);
this.ollamaData = (0, resources_1.createOllamaDataResource)(this.ollama);
}
getServiceDescription() {
return 'AGR Info service for AI content generation, microservice management, and rubrics';
}
}
exports.AgrInfoClient = AgrInfoClient;
//# sourceMappingURL=client.js.map