import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for the checkVersion operation
 */
export const checkVersionDescription: INodeProperties[] = [
	{
		displayName: 'Device Type',
		name: 'deviceType',
		type: 'options',
		required: true,
		default: 'IAP',
		description: 'Type of device to check firmware 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: ['checkVersion'],
				resource: ['version'],
				domain: ['firmware'],
			},
		},
	},
	{
		displayName: 'Firmware Version',
		name: 'firmwareVersion',
		type: 'string',
		required: true,
		default: '',
		description: 'The firmware version to check',
		displayOptions: {
			show: {
				operation: ['checkVersion'],
				resource: ['version'],
				domain: ['firmware'],
			},
		},
	},
];
