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 channelOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const channelOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'channel',
],
resource: ['channel'],
},
},
options: [
@@ -52,7 +48,6 @@ export const channelOperations: INodeProperties[] = [
];
export const channelFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* channel:create */
/* -------------------------------------------------------------------------- */
@@ -61,18 +56,15 @@ export const channelFields: INodeProperties[] = [
name: 'teamId',
required: true,
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: 'getTeams',
},
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'channel',
],
operation: ['create'],
resource: ['channel'],
},
},
default: '',
@@ -84,12 +76,8 @@ export const channelFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'channel',
],
operation: ['create'],
resource: ['channel'],
},
},
default: '',
@@ -101,12 +89,8 @@ export const channelFields: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'channel',
],
operation: ['create'],
resource: ['channel'],
},
},
default: {},
@@ -120,7 +104,7 @@ export const channelFields: INodeProperties[] = [
alwaysOpenEditWindow: true,
},
default: '',
description: 'Channel\'s description',
description: "Channel's description",
},
{
displayName: 'Type',
@@ -150,18 +134,15 @@ export const channelFields: INodeProperties[] = [
name: 'teamId',
required: true,
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: 'getTeams',
},
displayOptions: {
show: {
operation: [
'delete',
],
resource: [
'channel',
],
operation: ['delete'],
resource: ['channel'],
},
},
default: '',
@@ -170,21 +151,16 @@ export const channelFields: INodeProperties[] = [
displayName: 'Channel Name or ID',
name: 'channelId',
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: 'getChannels',
loadOptionsDependsOn: [
'teamId',
],
loadOptionsDependsOn: ['teamId'],
},
displayOptions: {
show: {
operation: [
'delete',
],
resource: [
'channel',
],
operation: ['delete'],
resource: ['channel'],
},
},
default: '',
@@ -198,18 +174,15 @@ export const channelFields: INodeProperties[] = [
name: 'teamId',
required: true,
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: 'getTeams',
},
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'channel',
],
operation: ['get'],
resource: ['channel'],
},
},
default: '',
@@ -218,21 +191,16 @@ export const channelFields: INodeProperties[] = [
displayName: 'Channel Name or ID',
name: 'channelId',
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: 'getChannels',
loadOptionsDependsOn: [
'teamId',
],
loadOptionsDependsOn: ['teamId'],
},
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'channel',
],
operation: ['get'],
resource: ['channel'],
},
},
default: '',
@@ -246,18 +214,15 @@ export const channelFields: INodeProperties[] = [
name: 'teamId',
required: true,
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: 'getTeams',
},
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'channel',
],
operation: ['getAll'],
resource: ['channel'],
},
},
default: '',
@@ -268,12 +233,8 @@ export const channelFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'channel',
],
operation: ['getAll'],
resource: ['channel'],
},
},
default: false,
@@ -285,15 +246,9 @@ export const channelFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'channel',
],
returnAll: [
false,
],
operation: ['getAll'],
resource: ['channel'],
returnAll: [false],
},
},
typeOptions: {
@@ -312,18 +267,15 @@ export const channelFields: INodeProperties[] = [
name: 'teamId',
required: true,
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: 'getTeams',
},
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'channel',
],
operation: ['update'],
resource: ['channel'],
},
},
default: '',
@@ -332,21 +284,16 @@ export const channelFields: INodeProperties[] = [
displayName: 'Channel Name or ID',
name: 'channelId',
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: 'getChannels',
loadOptionsDependsOn: [
'teamId',
],
loadOptionsDependsOn: ['teamId'],
},
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'channel',
],
operation: ['update'],
resource: ['channel'],
},
},
default: '',
@@ -357,12 +304,8 @@ export const channelFields: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'channel',
],
operation: ['update'],
resource: ['channel'],
},
},
default: {},
@@ -383,7 +326,7 @@ export const channelFields: INodeProperties[] = [
alwaysOpenEditWindow: true,
},
default: '',
description: 'Channel\'s description',
description: "Channel's description",
},
],
},