UNPKG

n8n-nodes-arubacentral

Version:

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

30 lines (27 loc) 828 B
import { IExecuteFunctions } from 'n8n-workflow'; import { logger } from '../../../helpers/logger'; import { getTopn } from './operations/getTopn.methods'; import { getSwarms } from './operations/getSwarms.methods'; import { getSwarm } from './operations/getSwarm.methods'; /** * All operations available for the swarm resource */ export const swarmOperations = { getTopn, getSwarms, getSwarm, }; /** * Check if a swarm operation exists * * @param operation Operation name to check * @returns boolean indicating if the operation exists */ export function hasSwarmOperation(operation: string): boolean { const exists = !!swarmOperations[operation as keyof typeof swarmOperations]; logger.debug( 'monitoring:swarm:check', `Operation "${operation}" ${exists ? 'exists' : 'does not exist'}`, ); return exists; }