UNPKG

n8n-nodes-arubacentral

Version:

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

39 lines (38 loc) 1.75 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.clientOperations = void 0; exports.hasClientOperation = hasClientOperation; const logger_1 = require("../../../helpers/logger"); const getClients_methods_1 = require("./operations/getClients.methods"); const getDetail_methods_1 = require("./operations/getDetail.methods"); const getClient_methods_1 = require("./operations/getClient.methods"); const getMobility_methods_1 = require("./operations/getMobility.methods"); const getUsage_methods_1 = require("./operations/getUsage.methods"); const getTopn_methods_1 = require("./operations/getTopn.methods"); const getCount_methods_1 = require("./operations/getCount.methods"); /** * All operations available for the client resource */ exports.clientOperations = { getWirelessClients: getClients_methods_1.getWirelessClients, getWiredClients: getClients_methods_1.getWiredClients, getUnifiedClients: getClients_methods_1.getUnifiedClients, getDetail: getDetail_methods_1.getDetail, getWirelessClientDetails: getClient_methods_1.getWirelessClientDetails, getWiredClientDetails: getClient_methods_1.getWiredClientDetails, getMobility: getMobility_methods_1.getMobility, getUsage: getUsage_methods_1.getUsage, getTopn: getTopn_methods_1.getTopn, getCount: getCount_methods_1.getCount, }; /** * Check if a client operation exists * * @param operation Operation name to check * @returns boolean indicating if the operation exists */ function hasClientOperation(operation) { const exists = !!exports.clientOperations[operation]; logger_1.logger.debug('monitoring:client:check', `Operation "${operation}" ${exists ? 'exists' : 'does not exist'}`); return exists; }