n8n-nodes-arubacentral
Version:
n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities
33 lines (32 loc) • 1.63 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.insightsOperations = void 0;
exports.hasInsightsOperation = hasInsightsOperation;
const logger_1 = require("../../../helpers/logger");
const getInsightsNetwork_methods_1 = require("./operations/getInsightsNetwork.methods");
const getInsightsSite_methods_1 = require("./operations/getInsightsSite.methods");
const getInsightsAp_methods_1 = require("./operations/getInsightsAp.methods");
const getInsightsClient_methods_1 = require("./operations/getInsightsClient.methods");
const getInsightsGateway_methods_1 = require("./operations/getInsightsGateway.methods");
const getInsightsSwitch_methods_1 = require("./operations/getInsightsSwitch.methods");
/**
* All operations available for the insights resource
*/
exports.insightsOperations = {
getInsightsNetwork: getInsightsNetwork_methods_1.getInsightsNetwork,
getInsightsSite: getInsightsSite_methods_1.getInsightsSite,
getInsightsAp: getInsightsAp_methods_1.getInsightsAp,
getInsightsClient: getInsightsClient_methods_1.getInsightsClient,
getInsightsGateway: getInsightsGateway_methods_1.getInsightsGateway,
getInsightsSwitch: getInsightsSwitch_methods_1.getInsightsSwitch,
};
/**
* Check if an insights operation exists
* @param operation Operation name to check
* @returns boolean indicating if the operation exists
*/
function hasInsightsOperation(operation) {
const exists = !!exports.insightsOperations[operation];
logger_1.logger.debug('aiops:insights:check', `Operation "${operation}" ${exists ? 'exists' : 'does not exist'}`);
return exists;
}