// firmware/device/operations/getDevice.descriptions.ts - FIXED VERSION
import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for the getDevice operation
 */
export const getDeviceDescription: INodeProperties[] = [
	{
		displayName: 'Serial Number',
		name: 'serial',
		type: 'string',
		required: true,
		default: '',
		description: 'The serial number of the device',
		displayOptions: {
			show: {
				operation: ['getDevice'],
				resource: ['device'],
				domain: ['firmware'],
			},
		},
	},
	{
		displayName: 'Device Type',
		name: 'deviceType',
		type: 'options',
		required: true,
		default: 'HP',
		description: 'Type of device to retrieve',
		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: ['getDevice'],
				resource: ['device'],
				domain: ['firmware'],
			},
		},
	},
];
