// firmware/status/operations/getStatus.descriptions.ts - REVISED
import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for the getStatus operation
 */
export const getStatusDescription: INodeProperties[] = [
	{
		displayName: 'Identifier Type',
		name: 'identifierType',
		type: 'options',
		options: [
			{
				name: 'Swarm ID',
				value: 'swarm_id',
				description: 'Use swarm ID as identifier',
			},
			{
				name: 'Serial Number',
				value: 'serial',
				description: 'Use device serial number as identifier',
			},
		],
		default: 'serial',
		required: true,
		description: 'Type of identifier to use',
		displayOptions: {
			show: {
				operation: ['getStatus'],
				resource: ['status'],
				domain: ['firmware'],
			},
		},
	},
	{
		displayName: 'Identifier',
		name: 'identifier',
		type: 'string',
		default: '',
		required: true,
		description: 'Value of the identifier (swarm ID or serial number)',
		displayOptions: {
			show: {
				operation: ['getStatus'],
				resource: ['status'],
				domain: ['firmware'],
			},
		},
	},
];
