import { INodeProperties, } from 'n8n-workflow'; export const templateOperations: INodeProperties[] = [ { displayName: 'Operation', name: 'operation', type: 'options', noDataExpression: true, displayOptions: { show: { resource: [ 'template', ], }, }, options: [ { name: 'Get', value: 'get', description: 'Get a template', action: 'Get a template', }, { name: 'Get All', value: 'getAll', description: 'Get all templates', action: 'Get all templates', }, ], default: 'get', }, ]; export const templateFields: INodeProperties[] = [ /* -------------------------------------------------------------------------- */ /* template:get */ /* -------------------------------------------------------------------------- */ { displayName: 'Template ID', name: 'templateId', type: 'string', required: true, default: '', displayOptions: { show: { resource: [ 'template', ], operation: [ 'get', ], }, }, description: 'Unique identifier for the template', }, ];