import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for getWanCompressionStats operation
 */
export const getWanCompressionStatsDescription: INodeProperties[] = [
	{
		displayName: 'Serial',
		name: 'serial',
		type: 'string',
		required: true,
		default: '',
		displayOptions: {
			show: {
				resource: ['gateway'],
				domain: ['monitoring'],
				operation: ['getWanCompressionStats'],
			},
		},
		description: 'Gateway serial number',
	},
	{
		displayName: 'Additional Fields',
		name: 'additionalFields',
		type: 'collection',
		placeholder: 'Add Field',
		default: {},
		displayOptions: {
			show: {
				resource: ['gateway'],
				domain: ['monitoring'],
				operation: ['getWanCompressionStats'],
			},
		},
		options: [
			{
				displayName: 'Uplink ID',
				name: 'uplink_id',
				type: 'string',
				default: '',
				description: 'Filter by uplink ID',
			},
			{
				displayName: 'Interval',
				name: 'interval',
				type: 'options',
				options: [
					{
						name: '5 Minutes',
						value: '5minutes',
					},
					{
						name: '1 Hour',
						value: '1hour',
					},
					{
						name: '1 Day',
						value: '1day',
					},
					{
						name: '1 Week',
						value: '1week',
					},
				],
				default: '5minutes',
				description: 'Filter by interval',
			},
			{
				displayName: 'From Timestamp',
				name: 'from_timestamp',
				type: 'number',
				default: '',
				description: 'Need information from this timestamp. Timestamp is epoch in seconds.',
			},
			{
				displayName: 'To Timestamp',
				name: 'to_timestamp',
				type: 'number',
				default: '',
				description: 'Need information to this timestamp. Timestamp is epoch in seconds.',
			},
		],
	},
];
