refactor: Format nodes-base package (A-F) (#3800)

* 🔨 prettier formated nodes - A

* 🔨 prettier formated nodes - B

*  prettier formated nodes - C

*  prettier formated nodes - D

*  prettier formated nodes - E-F

* 🎨 Adjust nodes-base formatting command (#3805)

* Format additional files in nodes A-F (#3811)

*  fixes

* 🎨 Add Mindee to ignored dirs

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
Michael Kret
2022-08-01 23:47:55 +03:00
committed by GitHub
parent 2c17e6f3ca
commit 0ecbb4a19d
411 changed files with 12906 additions and 20148 deletions

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const timeEntryOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const timeEntryOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'timeEntry',
],
resource: ['timeEntry'],
},
},
options: [
@@ -64,7 +60,6 @@ export const timeEntryOperations: INodeProperties[] = [
];
export const timeEntryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* timeEntry:getAll */
/* -------------------------------------------------------------------------- */
@@ -72,16 +67,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'getAll',
],
resource: ['timeEntry'],
operation: ['getAll'],
},
},
typeOptions: {
@@ -95,12 +87,8 @@ export const timeEntryFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'getAll',
],
resource: ['timeEntry'],
operation: ['getAll'],
},
},
default: false,
@@ -112,15 +100,9 @@ export const timeEntryFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['timeEntry'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
@@ -138,12 +120,8 @@ export const timeEntryFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'getAll',
],
resource: ['timeEntry'],
operation: ['getAll'],
},
},
options: [
@@ -169,16 +147,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'get',
],
resource: ['timeEntry'],
operation: ['get'],
},
},
typeOptions: {
@@ -192,12 +167,8 @@ export const timeEntryFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'get',
],
resource: ['timeEntry'],
operation: ['get'],
},
},
default: false,
@@ -210,15 +181,9 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'get',
],
running: [
false,
],
resource: ['timeEntry'],
operation: ['get'],
running: [false],
},
},
required: true,
@@ -231,16 +196,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
resource: ['timeEntry'],
operation: ['create'],
},
},
typeOptions: {
@@ -252,23 +214,18 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Space Name or ID',
name: 'space',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
resource: ['timeEntry'],
operation: ['create'],
},
},
typeOptions: {
loadOptionsMethod: 'getSpaces',
loadOptionsDependsOn: [
'team',
],
loadOptionsDependsOn: ['team'],
},
required: true,
},
@@ -279,12 +236,8 @@ export const timeEntryFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
resource: ['timeEntry'],
operation: ['create'],
},
},
required: true,
@@ -293,26 +246,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Folder Name or ID',
name: 'folder',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
folderless: [
false,
],
resource: ['timeEntry'],
operation: ['create'],
folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getFolders',
loadOptionsDependsOn: [
'space',
],
loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -320,26 +266,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
folderless: [
true,
],
resource: ['timeEntry'],
operation: ['create'],
folderless: [true],
},
},
typeOptions: {
loadOptionsMethod: 'getFolderlessLists',
loadOptionsDependsOn: [
'space',
],
loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -347,26 +286,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
folderless: [
false,
],
resource: ['timeEntry'],
operation: ['create'],
folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getLists',
loadOptionsDependsOn: [
'folder',
],
loadOptionsDependsOn: ['folder'],
},
required: true,
},
@@ -376,12 +308,8 @@ export const timeEntryFields: INodeProperties[] = [
type: 'dateTime',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
resource: ['timeEntry'],
operation: ['create'],
},
},
required: true,
@@ -393,12 +321,8 @@ export const timeEntryFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
resource: ['timeEntry'],
operation: ['create'],
},
},
default: 0,
@@ -409,22 +333,17 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Task Name or ID',
name: 'task',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
resource: ['timeEntry'],
operation: ['create'],
},
},
typeOptions: {
loadOptionsMethod: 'getTasks',
loadOptionsDependsOn: [
'list',
],
loadOptionsDependsOn: ['list'],
},
default: '',
},
@@ -436,12 +355,8 @@ export const timeEntryFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'create',
],
resource: ['timeEntry'],
operation: ['create'],
},
},
options: [
@@ -449,12 +364,11 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Assignee Name or ID',
name: 'assignee',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getAssignees',
loadOptionsDependsOn: [
'list',
],
loadOptionsDependsOn: ['list'],
},
default: [],
},
@@ -475,11 +389,10 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Tag Names or IDs',
name: 'tags',
type: 'multiOptions',
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsDependsOn: [
'team',
],
loadOptionsDependsOn: ['team'],
loadOptionsMethod: 'getTimeEntryTags',
},
default: [],
@@ -494,16 +407,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'start',
],
resource: ['timeEntry'],
operation: ['start'],
},
},
typeOptions: {
@@ -518,12 +428,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'start',
],
resource: ['timeEntry'],
operation: ['start'],
},
},
required: true,
@@ -536,12 +442,8 @@ export const timeEntryFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'start',
],
resource: ['timeEntry'],
operation: ['start'],
},
},
options: [
@@ -568,16 +470,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'stop',
],
resource: ['timeEntry'],
operation: ['stop'],
},
},
typeOptions: {
@@ -593,16 +492,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'delete',
],
resource: ['timeEntry'],
operation: ['delete'],
},
},
typeOptions: {
@@ -617,12 +513,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'delete',
],
resource: ['timeEntry'],
operation: ['delete'],
},
},
required: true,
@@ -635,16 +527,13 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Team Name or ID',
name: 'team',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
resource: ['timeEntry'],
operation: ['update'],
},
},
typeOptions: {
@@ -656,23 +545,18 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Space Name or ID',
name: 'space',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
resource: ['timeEntry'],
operation: ['update'],
},
},
typeOptions: {
loadOptionsMethod: 'getSpaces',
loadOptionsDependsOn: [
'team',
],
loadOptionsDependsOn: ['team'],
},
required: true,
},
@@ -683,12 +567,8 @@ export const timeEntryFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
resource: ['timeEntry'],
operation: ['update'],
},
},
required: true,
@@ -697,26 +577,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Folder Name or ID',
name: 'folder',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
folderless: [
false,
],
resource: ['timeEntry'],
operation: ['update'],
folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getFolders',
loadOptionsDependsOn: [
'space',
],
loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -724,26 +597,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
folderless: [
true,
],
resource: ['timeEntry'],
operation: ['update'],
folderless: [true],
},
},
typeOptions: {
loadOptionsMethod: 'getFolderlessLists',
loadOptionsDependsOn: [
'space',
],
loadOptionsDependsOn: ['space'],
},
required: true,
},
@@ -751,26 +617,19 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'List Name or ID',
name: 'list',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
folderless: [
false,
],
resource: ['timeEntry'],
operation: ['update'],
folderless: [false],
},
},
typeOptions: {
loadOptionsMethod: 'getLists',
loadOptionsDependsOn: [
'folder',
],
loadOptionsDependsOn: ['folder'],
},
required: true,
},
@@ -781,12 +640,8 @@ export const timeEntryFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
resource: ['timeEntry'],
operation: ['update'],
},
},
required: true,
@@ -798,12 +653,8 @@ export const timeEntryFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
resource: ['timeEntry'],
operation: ['update'],
},
},
required: true,
@@ -816,12 +667,8 @@ export const timeEntryFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'timeEntry',
],
operation: [
'update',
],
resource: ['timeEntry'],
operation: ['update'],
},
},
options: [
@@ -829,12 +676,11 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Assignee Name or ID',
name: 'assignee',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getAssignees',
loadOptionsDependsOn: [
'list',
],
loadOptionsDependsOn: ['list'],
},
default: [],
},
@@ -868,11 +714,10 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Tag Names or IDs',
name: 'tags',
type: 'multiOptions',
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsDependsOn: [
'spaceId',
],
loadOptionsDependsOn: ['spaceId'],
loadOptionsMethod: 'getTags',
},
default: [],
@@ -881,13 +726,11 @@ export const timeEntryFields: INodeProperties[] = [
displayName: 'Task Name or ID',
name: 'task',
type: 'options',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getTasks',
loadOptionsDependsOn: [
'archived',
'list',
],
loadOptionsDependsOn: ['archived', 'list'],
},
default: '',
},