import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for getPorts operation
 */
export const getPortsDescription: INodeProperties[] = [
	{
		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: ['getPorts'],
				resource: ['mobilitycontroller'],
				domain: ['monitoring'],
			},
		},
	},
	{
		displayName: 'Limit',
		name: 'limit',
		type: 'number',
		default: 50,
		description: 'Max number of results to return',
		typeOptions: {
			minValue: 1,
		},
		displayOptions: {
			show: {
				operation: ['getPorts'],
				resource: ['mobilitycontroller'],
				domain: ['monitoring'],
				returnAll: [false],
			},
		},
	},

	{
		displayName: 'Serial',
		name: 'serial',
		type: 'string',
		required: true,
		default: '',
		displayOptions: {
			show: {
				resource: ['mobilitycontroller'],
				domain: ['monitoring'],
				operation: ['getPorts'],
			},
		},
		description: 'Serial number of mobility controller to be queried',
	},
];
