// 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;
}
