import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for getCount operation
 */
export const getCountDescription: INodeProperties[] = [
	{
		displayName: 'Additional Fields',
		name: 'additionalFields',
		type: 'collection',
		placeholder: 'Add Field',
		default: {},
		displayOptions: {
			show: {
				resource: ['client'],
				domain: ['monitoring'],
				operation: ['getCount'],
			},
		},
		options: [
			{
				displayName: 'Cluster_id',
				name: 'cluster_id',
				type: 'string',
				default: '',
				description: 'Filter by Mobility Controller serial number',
			},
			{
				displayName: 'Stack_id',
				name: 'stack_id',
				type: 'string',
				default: '',
				description: 'Filter by Switch stack_id',
			},
			{
				displayName: 'Device_type',
				name: 'device_type',
				type: 'string',
				default: '',
				description: 'Filter by device type. Value can be either "AP" or "Switch"',
			},
			{
				displayName: 'Serial',
				name: 'serial',
				type: 'string',
				default: '',
				description: 'Filter by Ap or serial',
			},
			{
				displayName: 'Band',
				name: 'band',
				type: 'string',
				default: '',
				description:
					'Filter by band. Value can be either "2.4", "5" or "6". Valid only when serial parameter is specified.',
			},
			{
				displayName: 'Radio_number',
				name: 'radio_number',
				type: 'number',
				default: 0,
				description:
					'Filter by radio_number (0, 1 or 2). Valid only when serial parameter is specified. If band is provided and radio_number is not provided then radio_number is defaulted to 0, 1 and 2 for band 5, 2.4 and 6 respectively.',
			},
		],
	},
];
