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 groupDescription: INodeProperties[] = [
// ----------------------------------
@@ -13,9 +11,7 @@ export const groupDescription: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'group',
],
resource: ['group'],
},
},
options: [
@@ -64,12 +60,8 @@ export const groupDescription: INodeProperties[] = [
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'group',
],
operation: ['create'],
resource: ['group'],
},
},
},
@@ -77,17 +69,14 @@ export const groupDescription: INodeProperties[] = [
displayName: 'Group ID',
name: 'id',
type: 'string',
description: 'Group to update. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Group to update. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'group',
],
operation: [
'update',
],
resource: ['group'],
operation: ['update'],
},
},
},
@@ -95,17 +84,14 @@ export const groupDescription: INodeProperties[] = [
displayName: 'Group ID',
name: 'id',
type: 'string',
description: 'Group to delete. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Group to delete. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'group',
],
operation: [
'delete',
],
resource: ['group'],
operation: ['delete'],
},
},
},
@@ -113,17 +99,14 @@ export const groupDescription: INodeProperties[] = [
displayName: 'Group ID',
name: 'id',
type: 'string',
description: 'Group to retrieve. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Group to retrieve. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'group',
],
operation: [
'get',
],
resource: ['group'],
operation: ['get'],
},
},
},
@@ -134,12 +117,8 @@ export const groupDescription: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
resource: [
'group',
],
operation: [
'create',
],
resource: ['group'],
operation: ['create'],
},
},
default: {},
@@ -173,7 +152,8 @@ export const groupDescription: INodeProperties[] = [
loadOptionsMethod: 'loadGroupCustomFields',
},
default: '',
description: 'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Field Value',
@@ -203,12 +183,8 @@ export const groupDescription: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'group',
],
operation: ['update'],
resource: ['group'],
},
},
default: {},
@@ -242,7 +218,8 @@ export const groupDescription: INodeProperties[] = [
loadOptionsMethod: 'loadGroupCustomFields',
},
default: '',
description: 'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Field Value',
@@ -280,12 +257,8 @@ export const groupDescription: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
'group',
],
operation: [
'getAll',
],
resource: ['group'],
operation: ['getAll'],
},
},
},
@@ -300,15 +273,9 @@ export const groupDescription: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'group',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['group'],
operation: ['getAll'],
returnAll: [false],
},
},
},

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const organizationDescription: INodeProperties[] = [
// ----------------------------------
@@ -13,9 +11,7 @@ export const organizationDescription: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'organization',
],
resource: ['organization'],
},
},
options: [
@@ -64,12 +60,8 @@ export const organizationDescription: INodeProperties[] = [
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'organization',
],
operation: ['create'],
resource: ['organization'],
},
},
},
@@ -77,17 +69,14 @@ export const organizationDescription: INodeProperties[] = [
displayName: 'Organization ID',
name: 'id',
type: 'string',
description: 'Organization to update. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Organization to update. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'update',
],
resource: ['organization'],
operation: ['update'],
},
},
},
@@ -95,17 +84,14 @@ export const organizationDescription: INodeProperties[] = [
displayName: 'Organization ID',
name: 'id',
type: 'string',
description: 'Organization to delete. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Organization to delete. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'delete',
],
resource: ['organization'],
operation: ['delete'],
},
},
},
@@ -113,17 +99,14 @@ export const organizationDescription: INodeProperties[] = [
displayName: 'Organization ID',
name: 'id',
type: 'string',
description: 'Organization to retrieve. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Organization to retrieve. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'get',
],
resource: ['organization'],
operation: ['get'],
},
},
},
@@ -133,12 +116,8 @@ export const organizationDescription: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'organization',
],
operation: ['create'],
resource: ['organization'],
},
},
default: {},
@@ -172,7 +151,8 @@ export const organizationDescription: INodeProperties[] = [
loadOptionsMethod: 'loadOrganizationCustomFields',
},
default: '',
description: 'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value',
@@ -202,12 +182,8 @@ export const organizationDescription: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'organization',
],
operation: ['update'],
resource: ['organization'],
},
},
default: {},
@@ -241,7 +217,8 @@ export const organizationDescription: INodeProperties[] = [
loadOptionsMethod: 'loadOrganizationCustomFields',
},
default: '',
description: 'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value',
@@ -279,12 +256,8 @@ export const organizationDescription: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'getAll',
],
resource: ['organization'],
operation: ['getAll'],
},
},
},
@@ -299,15 +272,9 @@ export const organizationDescription: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'organization',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['organization'],
operation: ['getAll'],
returnAll: [false],
},
},
},

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const ticketDescription: INodeProperties[] = [
// ----------------------------------
@@ -13,9 +11,7 @@ export const ticketDescription: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'ticket',
],
resource: ['ticket'],
},
},
options: [
@@ -59,12 +55,8 @@ export const ticketDescription: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'ticket',
],
operation: [
'create',
],
resource: ['ticket'],
operation: ['create'],
},
},
},
@@ -76,17 +68,14 @@ export const ticketDescription: INodeProperties[] = [
loadOptionsMethod: 'loadGroupNames',
},
placeholder: 'First-Level Helpdesk',
description: 'Group that will own the ticket to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Group that will own the ticket to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'ticket',
],
operation: [
'create',
],
resource: ['ticket'],
operation: ['create'],
},
},
},
@@ -97,18 +86,15 @@ export const ticketDescription: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'loadCustomerEmails',
},
description: 'Email address of the customer concerned in the ticket to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Email address of the customer concerned in the ticket to create. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
placeholder: 'hello@n8n.io',
required: true,
displayOptions: {
show: {
resource: [
'ticket',
],
operation: [
'create',
],
resource: ['ticket'],
operation: ['create'],
},
},
},
@@ -116,17 +102,14 @@ export const ticketDescription: INodeProperties[] = [
displayName: 'Ticket ID',
name: 'id',
type: 'string',
description: 'Ticket to retrieve. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Ticket to retrieve. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'ticket',
],
operation: [
'get',
],
resource: ['ticket'],
operation: ['get'],
},
},
},
@@ -135,16 +118,13 @@ export const ticketDescription: INodeProperties[] = [
name: 'id',
type: 'string',
default: '',
description: 'Ticket to delete. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Ticket to delete. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
required: true,
displayOptions: {
show: {
resource: [
'ticket',
],
operation: [
'delete',
],
resource: ['ticket'],
operation: ['delete'],
},
},
},
@@ -157,12 +137,8 @@ export const ticketDescription: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'ticket',
],
operation: [
'create',
],
resource: ['ticket'],
operation: ['create'],
},
},
options: [
@@ -246,12 +222,8 @@ export const ticketDescription: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
resource: [
'ticket',
],
operation: [
'create',
],
resource: ['ticket'],
operation: ['create'],
},
},
default: {},
@@ -279,7 +251,8 @@ export const ticketDescription: INodeProperties[] = [
loadOptionsMethod: 'loadTicketCustomFields',
},
default: '',
description: 'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value',
@@ -302,12 +275,8 @@ export const ticketDescription: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
'ticket',
],
operation: [
'getAll',
],
resource: ['ticket'],
operation: ['getAll'],
},
},
},
@@ -322,15 +291,9 @@ export const ticketDescription: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'ticket',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['ticket'],
operation: ['getAll'],
returnAll: [false],
},
},
},

View File

@@ -1,6 +1,4 @@
import {
INodeProperties,
} from 'n8n-workflow';
import { INodeProperties } from 'n8n-workflow';
export const userDescription: INodeProperties[] = [
// ----------------------------------
@@ -13,9 +11,7 @@ export const userDescription: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'user',
],
resource: ['user'],
},
},
options: [
@@ -71,12 +67,8 @@ export const userDescription: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'create',
],
resource: ['user'],
operation: ['create'],
},
},
},
@@ -89,12 +81,8 @@ export const userDescription: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'create',
],
resource: ['user'],
operation: ['create'],
},
},
},
@@ -102,17 +90,14 @@ export const userDescription: INodeProperties[] = [
displayName: 'User ID',
name: 'id',
type: 'string',
description: 'User to update. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'User to update. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'update',
],
resource: ['user'],
operation: ['update'],
},
},
},
@@ -120,17 +105,14 @@ export const userDescription: INodeProperties[] = [
displayName: 'User ID',
name: 'id',
type: 'string',
description: 'User to delete. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'User to delete. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'delete',
],
resource: ['user'],
operation: ['delete'],
},
},
},
@@ -138,17 +120,14 @@ export const userDescription: INodeProperties[] = [
displayName: 'User ID',
name: 'id',
type: 'string',
description: 'User to retrieve. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'User to retrieve. Specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
required: true,
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'get',
],
resource: ['user'],
operation: ['get'],
},
},
},
@@ -158,12 +137,8 @@ export const userDescription: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'create',
],
resource: ['user'],
operation: ['create'],
},
},
default: {},
@@ -240,7 +215,8 @@ export const userDescription: INodeProperties[] = [
loadOptionsMethod: 'loadUserCustomFields',
},
default: '',
description: 'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Field Value',
@@ -287,7 +263,8 @@ export const userDescription: INodeProperties[] = [
displayName: 'Organization Name or ID',
name: 'organization',
type: 'options',
description: 'Name of the organization to assign to the user. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Name of the organization to assign to the user. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
typeOptions: {
loadOptionsMethod: 'loadOrganizations',
@@ -336,12 +313,8 @@ export const userDescription: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
operation: [
'update',
],
resource: [
'user',
],
operation: ['update'],
resource: ['user'],
},
},
default: {},
@@ -418,7 +391,8 @@ export const userDescription: INodeProperties[] = [
loadOptionsMethod: 'loadUserCustomFields',
},
default: '',
description: 'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Name of the custom field to set. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Field Value',
@@ -479,7 +453,8 @@ export const userDescription: INodeProperties[] = [
displayName: 'Organization Name or ID',
name: 'organization',
type: 'options',
description: 'Name of the organization to assign to the user. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Name of the organization to assign to the user. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
default: '',
typeOptions: {
loadOptionsMethod: 'loadOrganizationNames',
@@ -530,12 +505,8 @@ export const userDescription: INodeProperties[] = [
required: true,
displayOptions: {
show: {
operation: [
'search',
],
resource: [
'user',
],
operation: ['search'],
resource: ['user'],
},
},
},
@@ -549,12 +520,8 @@ export const userDescription: INodeProperties[] = [
},
displayOptions: {
show: {
operation: [
'search',
],
resource: [
'user',
],
operation: ['search'],
resource: ['user'],
},
},
description: 'Max number of results to return',
@@ -567,12 +534,8 @@ export const userDescription: INodeProperties[] = [
description: 'Whether to return all results or only up to a given limit',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'getAll',
],
resource: ['user'],
operation: ['getAll'],
},
},
},
@@ -587,15 +550,9 @@ export const userDescription: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['user'],
operation: ['getAll'],
returnAll: [false],
},
},
},
@@ -605,12 +562,8 @@ export const userDescription: INodeProperties[] = [
type: 'collection',
displayOptions: {
show: {
resource: [
'user',
],
operation: [
'getAll',
],
resource: ['user'],
operation: ['getAll'],
},
},
default: {},
@@ -639,7 +592,8 @@ export const userDescription: INodeProperties[] = [
displayName: 'Sort Key Name or ID',
name: 'sort_by',
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: 'loadUserFields',
},