UNPKG

n8n-nodes-arubacentral

Version:

n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities

34 lines (33 loc) 1.3 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.aiopsOperations = void 0; exports.hasOperation = hasOperation; const connectivity_methods_1 = require("./connectivity/connectivity.methods"); const insights_methods_1 = require("./insights/insights.methods"); const insightDetails_methods_1 = require("./insightDetails/insightDetails.methods"); const logger_1 = require("../../helpers/logger"); /** * Operations available in the aiops domain */ exports.aiopsOperations = { connectivity: connectivity_methods_1.connectivityOperations, insights: insights_methods_1.insightsOperations, insightDetails: insightDetails_methods_1.insightDetailsOperations, }; /** * Check if an operation exists in the aiops domain * @param resource Resource name * @param operation Operation name * @returns boolean indicating if the operation exists */ function hasOperation(resource, operation) { if (!exports.aiopsOperations[resource]) { logger_1.logger.debug('aiops:check', `Resource "${resource}" not found`); return false; } if (!exports.aiopsOperations[resource][operation]) { logger_1.logger.debug('aiops:check', `Operation "${operation}" not found in resource "${resource}"`); return false; } return true; }