// api/topology/topology.descriptions.ts
import { INodeProperties } from 'n8n-workflow';
import { addDescriptions } from '../../helpers/deduplicate';
import { topologyDescriptions } from './topology/topology.descriptions';

/**
 * Resource selection for the topology domain
 */
export const topologyResourceSelector: INodeProperties = {
	displayName: 'Resource',
	name: 'resource',
	type: 'options',
	displayOptions: {
		show: {
			domain: ['topology'],
		},
	},
	options: [{ name: 'Topology', value: 'topology' }],
	default: 'topology',
	description: 'The resource to perform topology operations on',
};

/**
 * Build the descriptions array for topology domain
 */
export const topologyDomainDescriptions: INodeProperties[] = [topologyResourceSelector];

// Add each resource's descriptions
addDescriptions(topologyDomainDescriptions, topologyDescriptions);

// Export using the expected variable name
export { topologyDomainDescriptions as topologyDescriptions };
