// firmware/upgrade/operations/getComplianceVersion.descriptions.ts - FIXED
import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for the getComplianceVersion operation
 */
export const getComplianceVersionDescription: INodeProperties[] = [
	{
		displayName: 'Device Type',
		name: 'deviceType',
		type: 'options',
		required: true,
		default: 'IAP',
		description: 'Type of device to get compliance version for',
		options: [
			{
				name: 'Access Points (IAP)',
				value: 'IAP',
			},
			{
				name: 'MAS Switches',
				value: 'MAS',
			},
			{
				name: 'Aruba Switches',
				value: 'HP',
			},
			{
				name: 'CX Switches',
				value: 'CX',
			},
			{
				name: 'Controllers',
				value: 'CONTROLLER',
			},
		],
		displayOptions: {
			show: {
				operation: ['getComplianceVersion'],
				resource: ['upgrade'],
				domain: ['firmware'],
			},
		},
	},
	{
		displayName: 'Additional Fields',
		name: 'additionalFields',
		type: 'collection',
		placeholder: 'Add Field',
		default: {},
		displayOptions: {
			show: {
				operation: ['getComplianceVersion'],
				resource: ['upgrade'],
				domain: ['firmware'],
			},
		},
		options: [
			{
				displayName: 'Group',
				name: 'group',
				type: 'string',
				default: '',
				description: 'Filter by group name',
			},
		],
	},
];
