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 recordOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const recordOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'record',
],
resource: ['record'],
},
},
options: [
@@ -47,16 +43,13 @@ export const recordFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'record',
],
operation: ['create'],
resource: ['record'],
},
},
default: '',
description: 'ID of the project to create the record in. 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 project to create the record in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Dataset Name or ID',
@@ -64,23 +57,18 @@ export const recordFields: INodeProperties[] = [
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDatasets',
loadOptionsDependsOn: [
'projectId',
],
loadOptionsDependsOn: ['projectId'],
},
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'record',
],
operation: ['create'],
resource: ['record'],
},
},
default: '',
description: 'ID of the dataset to create the record in. 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 dataset to create the record in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Table Name or ID',
@@ -88,24 +76,18 @@ export const recordFields: INodeProperties[] = [
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTables',
loadOptionsDependsOn: [
'projectId',
'datasetId',
],
loadOptionsDependsOn: ['projectId', 'datasetId'],
},
required: true,
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'record',
],
operation: ['create'],
resource: ['record'],
},
},
default: '',
description: 'ID of the table to create the record in. 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 table to create the record in. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Columns',
@@ -113,12 +95,8 @@ export const recordFields: INodeProperties[] = [
type: 'string',
displayOptions: {
show: {
resource: [
'record',
],
operation: [
'create',
],
resource: ['record'],
operation: ['create'],
},
},
default: '',
@@ -134,12 +112,8 @@ export const recordFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
operation: [
'create',
],
resource: [
'record',
],
operation: ['create'],
resource: ['record'],
},
},
options: [
@@ -162,14 +136,16 @@ export const recordFields: INodeProperties[] = [
name: 'templateSuffix',
type: 'string',
default: '',
description: 'Create a new table based on the destination table and insert rows into the new table. The new table will be named <code>{destinationTable}{templateSuffix}</code>',
description:
'Create a new table based on the destination table and insert rows into the new table. The new table will be named <code>{destinationTable}{templateSuffix}</code>',
},
{
displayName: 'Trace ID',
name: 'traceId',
type: 'string',
default: '',
description: 'Unique ID for the request, for debugging only. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended.',
description:
'Unique ID for the request, for debugging only. It is case-sensitive, limited to up to 36 ASCII characters. A UUID is recommended.',
},
],
},
@@ -187,16 +163,13 @@ export const recordFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'record',
],
operation: ['getAll'],
resource: ['record'],
},
},
default: '',
description: 'ID of the project to retrieve all rows from. 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 project to retrieve all rows from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Dataset Name or ID',
@@ -204,23 +177,18 @@ export const recordFields: INodeProperties[] = [
type: 'options',
typeOptions: {
loadOptionsMethod: 'getDatasets',
loadOptionsDependsOn: [
'projectId',
],
loadOptionsDependsOn: ['projectId'],
},
required: true,
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'record',
],
operation: ['getAll'],
resource: ['record'],
},
},
default: '',
description: 'ID of the dataset to retrieve all rows from. 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 dataset to retrieve all rows from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Table Name or ID',
@@ -228,24 +196,18 @@ export const recordFields: INodeProperties[] = [
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTables',
loadOptionsDependsOn: [
'projectId',
'datasetId',
],
loadOptionsDependsOn: ['projectId', 'datasetId'],
},
required: true,
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'record',
],
operation: ['getAll'],
resource: ['record'],
},
},
default: '',
description: 'ID of the table to retrieve all rows from. 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 table to retrieve all rows from. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Return All',
@@ -253,12 +215,8 @@ export const recordFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'record',
],
operation: ['getAll'],
resource: ['record'],
},
},
default: false,
@@ -270,15 +228,9 @@ export const recordFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'record',
],
returnAll: [
false,
],
operation: ['getAll'],
resource: ['record'],
returnAll: [false],
},
},
typeOptions: {
@@ -294,12 +246,8 @@ export const recordFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'record',
],
operation: [
'getAll',
],
resource: ['record'],
operation: ['getAll'],
},
},
default: true,
@@ -313,12 +261,8 @@ export const recordFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
operation: [
'getAll',
],
resource: [
'record',
],
operation: ['getAll'],
resource: ['record'],
},
},
options: [
@@ -327,7 +271,8 @@ export const recordFields: INodeProperties[] = [
name: 'selectedFields',
type: 'string',
default: '',
description: 'Subset of fields to return, supports select into sub fields. Example: <code>selectedFields = "a,e.d.f"</code>',
description:
'Subset of fields to return, supports select into sub fields. Example: <code>selectedFields = "a,e.d.f"</code>',
},
// {
// displayName: 'Use Int64 Timestamp',