import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for getInsightDetailsSwitch operation
 */
export const getInsightDetailsSwitchDescription: INodeProperties[] = [
	{
		displayName: 'Switch Serial',
		name: 'sw_serial',
		type: 'string',
		required: true,
		default: '',
		description: 'Switch serial number to get insight details for',
		displayOptions: {
			show: {
				operation: ['getInsightDetailsSwitch'],
				resource: ['insightDetails'],
				domain: ['aiops'],
			},
		},
	},
	{
		displayName: 'Insight ID',
		name: 'insight_id',
		type: 'number',
		required: true,
		default: '',
		description: 'Insight ID to get details for',
		displayOptions: {
			show: {
				operation: ['getInsightDetailsSwitch'],
				resource: ['insightDetails'],
				domain: ['aiops'],
			},
		},
	},
	{
		displayName: 'From',
		name: 'from',
		type: 'dateTime',
		required: true,
		default: '',
		description: 'Start time for data retrieval',
		displayOptions: {
			show: {
				operation: ['getInsightDetailsSwitch'],
				resource: ['insightDetails'],
				domain: ['aiops'],
			},
		},
	},
	{
		displayName: 'To',
		name: 'to',
		type: 'dateTime',
		required: true,
		default: '',
		description: 'End time for data retrieval',
		displayOptions: {
			show: {
				operation: ['getInsightDetailsSwitch'],
				resource: ['insightDetails'],
				domain: ['aiops'],
			},
		},
	},
];
