// api/inventory/inventory.operations.ts
import { INodeProperties } from 'n8n-workflow';

// Import resource operations
import { devicesOperations } from './devices/devices.operations';

// Define the inventory domain resources
export const inventoryResources: INodeProperties = {
	displayName: 'Resource',
	name: 'resource',
	type: 'options',
	noDataExpression: true,
	displayOptions: {
		show: {
			domain: ['inventory'],
		},
	},
	options: [
		{
			name: 'Devices',
			value: 'devices',
			description: 'Work with device inventory',
		},
	],
	default: 'devices',
};

// Combine all inventory domain operations
export const inventoryDomainOperations: INodeProperties[] = [
	inventoryResources,
	...devicesOperations,
];
