Improvements to Contenful-Node

This commit is contained in:
ricardo
2020-08-04 15:07:54 -04:00
parent 6573642fc1
commit bc0b349faa
11 changed files with 810 additions and 463 deletions

View File

@@ -1,29 +1,33 @@
import { INodeProperties } from "n8n-workflow";
import {
INodeProperties,
} from 'n8n-workflow';
export const resource = {
name: "Space",
value: "space",
name: 'Space',
value: 'space',
};
export const operations = [
{
displayName: "Operation",
name: "operation",
type: "options",
displayOptions: {
show: {
resource: [resource.value],
},
},
options: [
{
name: "Get Space",
value: "get_space",
},
],
default: "get_space",
description: "The operation to perform.",
},
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
resource.value
],
},
},
options: [
{
name: 'Get',
value: 'get',
},
],
default: 'get',
description: 'The operation to perform.',
},
] as INodeProperties[];
export const fields = [] as INodeProperties[];