import { INodeProperties } from 'n8n-workflow';

/**
 * Parameters for associateSiteToDevice operation
 */
export const associateSiteToDeviceDescription: INodeProperties[] = [
	{
		displayName: 'Site ID',
		name: 'site_id',
		type: 'number',
		required: true,
		default: '',
		description: 'ID of the site to associate with the device',
		displayOptions: {
			show: {
				operation: ['associateSiteToDevice'],
				resource: ['site'],
				domain: ['monitoring'],
			},
		},
	},
	{
		displayName: 'Device Type',
		name: 'device_type',
		type: 'options',
		options: [
			{
				name: 'Access Point',
				value: 'IAP',
			},
			{
				name: 'Switch',
				value: 'SWITCH',
			},
			{
				name: 'Controller',
				value: 'CONTROLLER',
			},
		],
		required: true,
		default: 'IAP',
		description: 'Type of device to associate with the site',
		displayOptions: {
			show: {
				operation: ['associateSiteToDevice'],
				resource: ['site'],
				domain: ['monitoring'],
			},
		},
	},
	{
		displayName: 'Device ID',
		name: 'device_id',
		type: 'string',
		required: true,
		default: '',
		description: 'ID/Serial number of the device to associate with the site',
		displayOptions: {
			show: {
				operation: ['associateSiteToDevice'],
				resource: ['site'],
				domain: ['monitoring'],
			},
		},
	},
];
