import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for getSwitchStackVlanInfo operation
 */
export const getSwitchStackVlanInfoDescription: INodeProperties[] = [
	{
		displayName: 'Stack ID',
		name: 'stack_id',
		type: 'string',
		required: true,
		default: '',
		description: 'Stack ID of the switch stack to get VLAN info for',
		displayOptions: {
			show: {
				operation: ['getSwitchStackVlanInfo'],
				resource: ['switch'],
				domain: ['monitoring'],
			},
		},
	},
	{
		displayName: 'Return All',
		name: 'returnAll',
		type: 'boolean',
		default: false,
		description: 'Whether to return all results or only up to a given limit',
		displayOptions: {
			show: {
				operation: ['getSwitchStackVlanInfo'],
				resource: ['switch'],
				domain: ['monitoring'],
			},
		},
	},
	{
		displayName: 'Limit',
		name: 'limit',
		type: 'number',
		default: 50,
		description: 'Max number of results to return',
		typeOptions: {
			minValue: 1,
			maxValue: 1000,
		},
		displayOptions: {
			show: {
				operation: ['getSwitchStackVlanInfo'],
				resource: ['switch'],
				domain: ['monitoring'],
				returnAll: [false],
			},
		},
	},
	{
		displayName: 'Additional Fields',
		name: 'additionalFields',
		type: 'collection',
		placeholder: 'Add Field',
		default: {},
		displayOptions: {
			show: {
				operation: ['getSwitchStackVlanInfo'],
				resource: ['switch'],
				domain: ['monitoring'],
			},
		},
		options: [
			{
				displayName: 'Name',
				name: 'name',
				type: 'string',
				default: '',
				description: 'Filter by VLAN name',
			},
			{
				displayName: 'ID',
				name: 'id',
				type: 'number',
				default: '',
				description: 'Filter by VLAN ID',
			},
			{
				displayName: 'Tagged Port',
				name: 'tagged_port',
				type: 'string',
				default: '',
				description: 'Filter by tagged port name',
			},
			{
				displayName: 'Untagged Port',
				name: 'untagged_port',
				type: 'string',
				default: '',
				description: 'Filter by untagged port name',
			},
			{
				displayName: 'Is Jumbo Enabled',
				name: 'is_jumbo_enabled',
				type: 'boolean',
				default: false,
				description: 'Filter by jumbo enabled status',
			},
			{
				displayName: 'Is Voice Enabled',
				name: 'is_voice_enabled',
				type: 'boolean',
				default: false,
				description: 'Filter by voice enabled status',
			},
			{
				displayName: 'Is IGMP Enabled',
				name: 'is_igmp_enabled',
				type: 'boolean',
				default: false,
				description: 'Filter by IGMP enabled status',
			},
			{
				displayName: 'Type',
				name: 'type',
				type: 'string',
				default: '',
				description: 'Type of the VLAN to be queried',
			},
			{
				displayName: 'Primary VLAN ID',
				name: 'primary_vlan_id',
				type: 'number',
				default: '',
				description: 'Primary VLAN ID of the VLAN to be queried',
			},
			{
				displayName: 'Status',
				name: 'status',
				type: 'string',
				default: '',
				description: 'Filter by status of VLAN (Up/Down)',
			},
			{
				displayName: 'Sort',
				name: 'sort',
				type: 'options',
				options: [
					{ name: 'Name (Ascending)', value: '+name' },
					{ name: 'Name (Descending)', value: '-name' },
				],
				default: '',
				description: 'Sort parameter',
			},
			{
				displayName: 'Calculate Total',
				name: 'calculate_total',
				type: 'boolean',
				default: false,
				description: 'Whether to calculate total VLANs',
			},
		],
	},
];
