n8n-nodes-arubacentral
Version:
n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities
28 lines (27 loc) • 1.16 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.widsOperations = void 0;
exports.hasWidsOperation = hasWidsOperation;
const logger_1 = require("../../../helpers/logger");
const getInfrastructureAttacks_methods_1 = require("./operations/getInfrastructureAttacks.methods");
const getClientAttacks_methods_1 = require("./operations/getClientAttacks.methods");
const getWidsEvents_methods_1 = require("./operations/getWidsEvents.methods");
/**
* All operations available for the wids resource
*/
exports.widsOperations = {
getInfrastructureAttacks: getInfrastructureAttacks_methods_1.getInfrastructureAttacks,
getClientAttacks: getClientAttacks_methods_1.getClientAttacks,
getWidsEvents: getWidsEvents_methods_1.getWidsEvents,
};
/**
* Check if a wids operation exists
*
* @param operation Operation name to check
* @returns boolean indicating if the operation exists
*/
function hasWidsOperation(operation) {
const exists = !!exports.widsOperations[operation];
logger_1.logger.debug('rapids:wids:check', `Operation "${operation}" ${exists ? 'exists' : 'does not exist'}`);
return exists;
}