UNPKG

@simpleapps-com/augur-api

Version:

TypeScript client library for Augur microservices API endpoints

34 lines 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SlackClient = void 0; const base_client_1 = require("../../core/base-client"); const resources_1 = require("./resources"); /** * Slack Integration Service Client * * Provides comprehensive Slack integration capabilities including webhook management, * message delivery, channel notifications, and real-time communication features. * Supports modern Slack Block Kit formatting and legacy attachment formats. * * @service slack * @domain communication-and-notifications */ class SlackClient extends base_client_1.BaseServiceClient { constructor(http, baseUrl) { super('slack', http, baseUrl || 'https://slack.augur-api.com'); // Bind executeRequest for resource factories const boundExecuteRequest = (config, params, pathParams) => { return this.executeRequest(config, params, pathParams); }; // Initialize resources this.healthCheck = (0, resources_1.createHealthCheckResource)(boundExecuteRequest); this.healthCheckData = (0, resources_1.createHealthCheckDataResource)(this.healthCheck); this.webHook = (0, resources_1.createWebHookResource)(boundExecuteRequest); this.webHookData = (0, resources_1.createWebHookDataResource)(this.webHook); } getServiceDescription() { return 'Slack integration service for webhooks, notifications, and team communication'; } } exports.SlackClient = SlackClient; //# sourceMappingURL=client.js.map