import { INodeProperties } from 'n8n-workflow';

/**
 * UI parameters for the getMobility operation
 */
export const getMobilityDescription: INodeProperties[] = [
	{
		displayName: 'MAC Address',
		name: 'macaddr',
		type: 'string',
		displayOptions: {
			show: {
				resource: ['client'],
				domain: ['monitoring'],
				operation: ['getMobility'],
			},
		},
		default: '',
		required: true,
		description: 'MAC address of the wireless client',
	},
	{
		displayName: 'Additional Fields',
		name: 'additionalFields',
		type: 'collection',
		placeholder: 'Add Field',
		default: {},
		displayOptions: {
			show: {
				resource: ['client'],
				domain: ['monitoring'],
				operation: ['getMobility'],
			},
		},
		options: [
			{
				displayName: 'Calculate Total',
				name: 'calculate_total',
				type: 'boolean',
				default: false,
				description: 'Whether to calculate total transitions',
			},
			{
				displayName: 'Offset',
				name: 'offset',
				type: 'number',
				default: 0,
				description: 'Pagination offset',
			},
			{
				displayName: 'Limit',
				name: 'limit',
				type: 'number',
				default: 100,
				description: 'Pagination limit',
			},
			{
				displayName: 'From Timestamp',
				name: 'from_timestamp',
				type: 'number',
				default: '',
				description:
					'Need information from this timestamp. Timestamp is epoch in seconds. Default is current timestamp minus 3 hours',
			},
			{
				displayName: 'To Timestamp',
				name: 'to_timestamp',
				type: 'number',
				default: '',
				description:
					'Need information to this timestamp. Timestamp is epoch in seconds. Default is current timestamp',
			},
		],
	},
];
