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