mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-13 16:14:07 -08:00
b03e358a12
* 👕 Enable `consistent-type-imports` for nodes-base
* 👕 Apply to nodes-base
* ⏪ Undo unrelated changes
* 🚚 Move to `.eslintrc.js` in nodes-base
* ⏪ Revert "Enable `consistent-type-imports` for nodes-base"
This reverts commit 529ad72b05
.
* 👕 Fix severity
45 lines
969 B
TypeScript
45 lines
969 B
TypeScript
import type { INodeProperties } from 'n8n-workflow';
|
||
|
||
export const orderOperations: INodeProperties[] = [
|
||
{
|
||
displayName: 'Operation',
|
||
name: 'operation',
|
||
type: 'options',
|
||
noDataExpression: true,
|
||
displayOptions: {
|
||
show: {
|
||
resource: ['order'],
|
||
},
|
||
},
|
||
options: [
|
||
{
|
||
name: 'Get',
|
||
value: 'get',
|
||
description: 'Get an order',
|
||
action: 'Get an order',
|
||
},
|
||
],
|
||
default: 'get',
|
||
},
|
||
];
|
||
|
||
export const orderFields: INodeProperties[] = [
|
||
/* -------------------------------------------------------------------------- */
|
||
/* order:get */
|
||
/* -------------------------------------------------------------------------- */
|
||
{
|
||
displayName: 'Checkout ID',
|
||
name: 'checkoutId',
|
||
type: 'string',
|
||
default: '',
|
||
required: true,
|
||
displayOptions: {
|
||
show: {
|
||
resource: ['order'],
|
||
operation: ['get'],
|
||
},
|
||
},
|
||
description: 'The identifier of the buyer’s checkout',
|
||
},
|
||
];
|