import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for getSwitchPortsDetails operation
 */
export const getSwitchPortsDetailsDescription: INodeProperties[] = [
	{
		displayName: 'Serial',
		name: 'serial',
		type: 'string',
		required: true,
		default: '',
		description: 'Serial number of the switch to get port details for',
		displayOptions: {
			show: {
				operation: ['getSwitchPortsDetails'],
				resource: ['switch'],
				domain: ['monitoring'],
			},
		},
	},
	{
		displayName: 'Additional Fields',
		name: 'additionalFields',
		type: 'collection',
		placeholder: 'Add Field',
		default: {},
		displayOptions: {
			show: {
				operation: ['getSwitchPortsDetails'],
				resource: ['switch'],
				domain: ['monitoring'],
			},
		},
		options: [
			{
				displayName: 'Slot',
				name: 'slot',
				type: 'string',
				default: '',
				description: 'Slot name of the ports to be queried (for chassis type switches only)',
			},
		],
	},
];
