import { INodeProperties } from 'n8n-workflow';

export const systemOperations: INodeProperties[] = [
	{
		displayName: 'Operation',
		name: 'operation',
		type: 'options',
		noDataExpression: true,
		displayOptions: {
			show: {
				resource: ['system'],
			},
		},
		options: [
			{
				name: 'Get System Information',
				value: 'getSystemInfo',
				description: 'Get LibreNMS instance system information',
				action: 'Get system information',
				routing: {
					request: {
						method: 'GET',
						url: '/system',
					},
					output: {
						postReceive: [
							{
								type: 'rootProperty',
								properties: {
									property: 'system',
								},
							},
						],
					},
				},
			},
		],
		default: 'getSystemInfo',
	},
];

export const systemFields: INodeProperties[] = [
	// No additional fields needed for system info endpoint
	// This is where we would add fields for filtering, pagination, etc. for other operations
];
