UNPKG

n8n-nodes-arubacentral

Version:

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

35 lines (32 loc) 1.18 kB
// api/rapids/rogues/rogues.methods.ts (updated) import { IExecuteFunctions } from 'n8n-workflow'; import { logger } from '../../../helpers/logger'; import { getRogueApList } from './operations/getRogueApList.methods'; import { getInterferingApList } from './operations/getInterferingApList.methods'; import { getSuspectApList } from './operations/getSuspectApList.methods'; import { getNeighborApList } from './operations/getNeighborApList.methods'; import { getManuallyContainedApList } from './operations/getManuallyContainedApList.methods'; /** * All operations available for the rogues resource */ export const roguesOperations = { getRogueApList, getInterferingApList, getSuspectApList, getNeighborApList, getManuallyContainedApList, }; /** * Check if a rogues operation exists * * @param operation Operation name to check * @returns boolean indicating if the operation exists */ export function hasRoguesOperation(operation: string): boolean { const exists = !!roguesOperations[operation as keyof typeof roguesOperations]; logger.debug( 'rapids:rogues:check', `Operation "${operation}" ${exists ? 'exists' : 'does not exist'}`, ); return exists; }