n8n-nodes-arubacentral
Version:
n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities
26 lines (23 loc) • 700 B
text/typescript
import { IExecuteFunctions } from 'n8n-workflow';
import { logger } from '../../../helpers/logger';
import { getEvents } from './operations/getEvents.methods';
/**
* All operations available for the events resource
*/
export const eventsOperations = {
getEvents,
};
/**
* Check if a events operation exists
*
* @param operation Operation name to check
* @returns boolean indicating if the operation exists
*/
export function hasEventsOperation(operation: string): boolean {
const exists = !!eventsOperations[operation as keyof typeof eventsOperations];
logger.debug(
'monitoring:events:check',
`Operation "${operation}" ${exists ? 'exists' : 'does not exist'}`,
);
return exists;
}