mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 09:34:07 -08:00
91d7e16c81
* 🔨 formatting nodes with prettier
44 lines
938 B
TypeScript
44 lines
938 B
TypeScript
import { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const invoiceOperations: INodeProperties[] = [
|
|
{
|
|
displayName: 'Operation',
|
|
name: 'operation',
|
|
type: 'options',
|
|
noDataExpression: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['invoice'],
|
|
},
|
|
},
|
|
options: [
|
|
{
|
|
name: 'Create',
|
|
value: 'create',
|
|
description: 'Create an invoice',
|
|
action: 'Create an invoice',
|
|
},
|
|
],
|
|
default: 'create',
|
|
},
|
|
];
|
|
|
|
export const invoiceFields: INodeProperties[] = [
|
|
/* -------------------------------------------------------------------------- */
|
|
/* invoice:create */
|
|
/* -------------------------------------------------------------------------- */
|
|
{
|
|
displayName: 'Order ID',
|
|
name: 'orderId',
|
|
type: 'string',
|
|
required: true,
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: ['invoice'],
|
|
operation: ['create'],
|
|
},
|
|
},
|
|
},
|
|
];
|