Add Cockpit node

This commit is contained in:
Krzysztof Janda
2020-04-04 16:04:25 +02:00
parent 174113a879
commit 52cbd323f2
13 changed files with 559 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
import { INodeProperties } from 'n8n-workflow';
export const formOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'forms',
],
},
},
options: [
{
name: 'Submit a form',
value: 'submit',
description: 'Store submission of a form',
},
],
default: 'submit',
description: 'The operation to perform.',
}
] as INodeProperties[];
export const formFields = [
// Forms:submit
{
displayName: 'Form data',
name: 'form',
type: 'json',
required: true,
default: '',
typeOptions: {
alwaysOpenEditWindow: true,
},
displayOptions: {
show: {
resource: [
'forms',
],
},
},
description: 'The data to save.',
},
] as INodeProperties[];