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 tableRecordOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const tableRecordOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'tableRecord',
],
resource: ['tableRecord'],
},
},
options: [
@@ -54,19 +50,16 @@ export const tableRecordFields: INodeProperties[] = [
displayName: 'Table Name or ID',
name: 'tableName',
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: 'getTables',
},
default: '',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'create',
],
resource: ['tableRecord'],
operation: ['create'],
},
},
required: true,
@@ -89,17 +82,13 @@ export const tableRecordFields: INodeProperties[] = [
{
name: 'Nothing',
value: 'nothing',
description: 'Don\'t send any column data',
description: "Don't send any column data",
},
],
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'create',
],
resource: ['tableRecord'],
operation: ['create'],
},
},
default: 'columns',
@@ -110,19 +99,14 @@ export const tableRecordFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'create',
],
dataToSend: [
'mapInput',
],
resource: ['tableRecord'],
operation: ['create'],
dataToSend: ['mapInput'],
},
},
default: '',
description: 'List of input properties to avoid sending, separated by commas. Leave empty to send all inputs.',
description:
'List of input properties to avoid sending, separated by commas. Leave empty to send all inputs.',
},
{
displayName: 'Fields to Send',
@@ -134,15 +118,9 @@ export const tableRecordFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'create',
],
dataToSend: [
'columns',
],
resource: ['tableRecord'],
operation: ['create'],
dataToSend: ['columns'],
},
},
default: {},
@@ -155,12 +133,11 @@ export const tableRecordFields: INodeProperties[] = [
displayName: 'Field Name or ID',
name: 'column',
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: 'getColumns',
loadOptionsDependsOn: [
'tableName',
],
loadOptionsDependsOn: ['tableName'],
},
default: '',
},
@@ -182,19 +159,16 @@ export const tableRecordFields: INodeProperties[] = [
displayName: 'Table Name or ID',
name: 'tableName',
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: 'getTables',
},
default: '',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'getAll',
],
resource: ['tableRecord'],
operation: ['getAll'],
},
},
required: true,
@@ -205,12 +179,8 @@ export const tableRecordFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'tableRecord',
],
operation: ['getAll'],
resource: ['tableRecord'],
},
},
default: false,
@@ -222,15 +192,9 @@ export const tableRecordFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'tableRecord',
],
returnAll: [
false,
],
operation: ['getAll'],
resource: ['tableRecord'],
returnAll: [false],
},
},
typeOptions: {
@@ -247,12 +211,8 @@ export const tableRecordFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'getAll',
],
resource: ['tableRecord'],
operation: ['getAll'],
},
},
default: {},
@@ -270,12 +230,11 @@ export const tableRecordFields: INodeProperties[] = [
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getColumns',
loadOptionsDependsOn: [
'tableName',
],
loadOptionsDependsOn: ['tableName'],
},
default: [],
description: 'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
hint: 'String of comma separated values or an array of strings can be set in an expression',
},
{
@@ -283,7 +242,8 @@ export const tableRecordFields: INodeProperties[] = [
name: 'sysparm_query',
type: 'string',
default: '',
description: 'An encoded query string used to filter the results. <a href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_developer/app_store_learnv2_rest_quebec_more_about_query_parameters">More info</a>.',
description:
'An encoded query string used to filter the results. <a href="https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_application_developer/app_store_learnv2_rest_quebec_more_about_query_parameters">More info</a>.',
},
{
displayName: 'Return Values',
@@ -322,17 +282,13 @@ export const tableRecordFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'delete',
'get',
],
resource: ['tableRecord'],
operation: ['delete', 'get'],
},
},
required: true,
description: 'Name of the table in which the record exists. 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 table in which the record exists. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Table Record ID',
@@ -341,13 +297,8 @@ export const tableRecordFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'delete',
'get',
],
resource: ['tableRecord'],
operation: ['delete', 'get'],
},
},
required: true,
@@ -360,12 +311,8 @@ export const tableRecordFields: INodeProperties[] = [
placeholder: 'Add Field',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'get',
],
resource: ['tableRecord'],
operation: ['get'],
},
},
default: {},
@@ -383,12 +330,11 @@ export const tableRecordFields: INodeProperties[] = [
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getColumns',
loadOptionsDependsOn: [
'tableName',
],
loadOptionsDependsOn: ['tableName'],
},
default: [],
description: 'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'A list of fields to return. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
hint: 'String of comma separated values or an array of strings can be set in an expression',
},
{
@@ -422,19 +368,16 @@ export const tableRecordFields: INodeProperties[] = [
displayName: 'Table Name or ID',
name: 'tableName',
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: 'getTables',
},
default: '',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'update',
],
resource: ['tableRecord'],
operation: ['update'],
},
},
required: true,
@@ -446,12 +389,8 @@ export const tableRecordFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'update',
],
resource: ['tableRecord'],
operation: ['update'],
},
},
required: true,
@@ -475,17 +414,13 @@ export const tableRecordFields: INodeProperties[] = [
{
name: 'Nothing',
value: 'nothing',
description: 'Don\'t send any column data',
description: "Don't send any column data",
},
],
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'update',
],
resource: ['tableRecord'],
operation: ['update'],
},
},
default: 'columns',
@@ -496,19 +431,14 @@ export const tableRecordFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'update',
],
dataToSend: [
'mapInput',
],
resource: ['tableRecord'],
operation: ['update'],
dataToSend: ['mapInput'],
},
},
default: '',
description: 'List of input properties to avoid sending, separated by commas. Leave empty to send all inputs.',
description:
'List of input properties to avoid sending, separated by commas. Leave empty to send all inputs.',
},
{
displayName: 'Fields to Send',
@@ -520,15 +450,9 @@ export const tableRecordFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'tableRecord',
],
operation: [
'update',
],
dataToSend: [
'columns',
],
resource: ['tableRecord'],
operation: ['update'],
dataToSend: ['columns'],
},
},
default: {},
@@ -541,12 +465,11 @@ export const tableRecordFields: INodeProperties[] = [
displayName: 'Field Name or ID',
name: 'column',
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: 'getColumns',
loadOptionsDependsOn: [
'tableName',
],
loadOptionsDependsOn: ['tableName'],
},
default: '',
},