n8n-3867-progressively-apply-prettier-to-all (#3873)

* 🔨 formatting nodes with prettier
This commit is contained in:
Michael Kret
2022-08-17 18:50:24 +03:00
committed by GitHub
parent f2d326c7f0
commit 91d7e16c81
1072 changed files with 42357 additions and 59109 deletions

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const itemOperations: INodeProperties[] = [
{
@@ -38,9 +36,7 @@ export const itemOperations: INodeProperties[] = [
],
displayOptions: {
show: {
resource: [
'item',
],
resource: ['item'],
},
},
},
@@ -61,15 +57,12 @@ export const itemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'create',
],
resource: ['item'],
operation: ['create'],
},
},
description: 'ID of the site containing the collection whose items to add to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'ID of the site containing the collection whose items to add to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Collection Name or ID',
@@ -78,22 +71,17 @@ export const itemFields: INodeProperties[] = [
required: true,
typeOptions: {
loadOptionsMethod: 'getCollections',
loadOptionsDependsOn: [
'siteId',
],
loadOptionsDependsOn: ['siteId'],
},
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'create',
],
resource: ['item'],
operation: ['create'],
},
},
description: 'ID of the collection to add an item to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'ID of the collection to add an item to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Live',
@@ -103,12 +91,8 @@ export const itemFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'create',
],
resource: ['item'],
operation: ['create'],
},
},
description: 'Whether the item should be published on the live site',
@@ -124,12 +108,8 @@ export const itemFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'create',
],
resource: ['item'],
operation: ['create'],
},
},
options: [
@@ -143,12 +123,11 @@ export const itemFields: INodeProperties[] = [
type: 'options',
typeOptions: {
loadOptionsMethod: 'getFields',
loadOptionsDependsOn: [
'collectionId',
],
loadOptionsDependsOn: ['collectionId'],
},
default: '',
description: 'Field to set for the item to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Field to set for the item to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Field Value',
@@ -176,16 +155,12 @@ export const itemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'delete',
'get',
],
resource: ['item'],
operation: ['delete', 'get'],
},
},
description: 'ID of the site containing the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'ID of the site containing the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Collection Name or ID',
@@ -194,23 +169,17 @@ export const itemFields: INodeProperties[] = [
required: true,
typeOptions: {
loadOptionsMethod: 'getCollections',
loadOptionsDependsOn: [
'siteId',
],
loadOptionsDependsOn: ['siteId'],
},
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'delete',
'get',
],
resource: ['item'],
operation: ['delete', 'get'],
},
},
description: 'ID of the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'ID of the collection whose items to operate on. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Item ID',
@@ -220,13 +189,8 @@ export const itemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'delete',
'get',
],
resource: ['item'],
operation: ['delete', 'get'],
},
},
description: 'ID of the item to operate on',
@@ -245,15 +209,12 @@ export const itemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'update',
],
resource: ['item'],
operation: ['update'],
},
},
description: 'ID of the site containing the collection whose items to update. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'ID of the site containing the collection whose items to update. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Collection Name or ID',
@@ -262,22 +223,17 @@ export const itemFields: INodeProperties[] = [
required: true,
typeOptions: {
loadOptionsMethod: 'getCollections',
loadOptionsDependsOn: [
'siteId',
],
loadOptionsDependsOn: ['siteId'],
},
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'update',
],
resource: ['item'],
operation: ['update'],
},
},
description: 'ID of the collection whose items to update. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'ID of the collection whose items to update. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Item ID',
@@ -287,12 +243,8 @@ export const itemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'update',
],
resource: ['item'],
operation: ['update'],
},
},
description: 'ID of the item to update',
@@ -305,12 +257,8 @@ export const itemFields: INodeProperties[] = [
default: false,
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'update',
],
resource: ['item'],
operation: ['update'],
},
},
description: 'Whether the item should be published on the live site',
@@ -326,12 +274,8 @@ export const itemFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'update',
],
resource: ['item'],
operation: ['update'],
},
},
options: [
@@ -345,12 +289,11 @@ export const itemFields: INodeProperties[] = [
type: 'options',
typeOptions: {
loadOptionsMethod: 'getFields',
loadOptionsDependsOn: [
'collectionId',
],
loadOptionsDependsOn: ['collectionId'],
},
default: '',
description: 'Field to set for the item to update. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Field to set for the item to update. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Field Value',
@@ -377,15 +320,12 @@ export const itemFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'getAll',
],
resource: ['item'],
operation: ['getAll'],
},
},
description: 'ID of the site containing the collection whose items to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'ID of the site containing the collection whose items to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Collection Name or ID',
@@ -394,22 +334,17 @@ export const itemFields: INodeProperties[] = [
required: true,
typeOptions: {
loadOptionsMethod: 'getCollections',
loadOptionsDependsOn: [
'siteId',
],
loadOptionsDependsOn: ['siteId'],
},
default: '',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'getAll',
],
resource: ['item'],
operation: ['getAll'],
},
},
description: 'ID of the collection whose items to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'ID of the collection whose items to retrieve. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Return All',
@@ -417,12 +352,8 @@ export const itemFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'getAll',
],
resource: ['item'],
operation: ['getAll'],
},
},
default: false,
@@ -434,15 +365,9 @@ export const itemFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'item',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['item'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {