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 reportOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const reportOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'report',
],
resource: ['report'],
},
},
options: [
@@ -39,16 +35,13 @@ export const reportFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'report',
],
operation: [
'get',
],
resource: ['report'],
operation: ['get'],
},
},
placeholder: '123456',
description: 'The View ID of Google Analytics. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The View ID of Google Analytics. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Return All',
@@ -56,12 +49,8 @@ export const reportFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'report',
],
operation: ['get'],
resource: ['report'],
},
},
default: false,
@@ -73,15 +62,9 @@ export const reportFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'report',
],
returnAll: [
false,
],
operation: ['get'],
resource: ['report'],
returnAll: [false],
},
},
typeOptions: {
@@ -97,12 +80,8 @@ export const reportFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
operation: [
'get',
],
resource: [
'report',
],
operation: ['get'],
resource: ['report'],
},
},
default: true,
@@ -116,12 +95,8 @@ export const reportFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'report',
],
operation: [
'get',
],
resource: ['report'],
operation: ['get'],
},
},
options: [
@@ -162,7 +137,8 @@ export const reportFields: INodeProperties[] = [
multipleValues: true,
},
placeholder: 'Add Dimension',
description: 'Dimensions are attributes of your data. For example, the dimension ga:city indicates the city, for example, "Paris" or "New York", from which a session originates.',
description:
'Dimensions are attributes of your data. For example, the dimension ga:city indicates the city, for example, "Paris" or "New York", from which a session originates.',
options: [
{
displayName: 'Dimension',
@@ -176,7 +152,8 @@ export const reportFields: INodeProperties[] = [
loadOptionsMethod: 'getDimensions',
},
default: '',
description: 'Name of the dimension to fetch, for example ga:browser. 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 dimension to fetch, for example ga:browser. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
],
},
@@ -205,7 +182,8 @@ export const reportFields: INodeProperties[] = [
loadOptionsMethod: 'getDimensions',
},
default: '',
description: 'Name of the dimension to filter by. 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 dimension to filter by. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
// https://developers.google.com/analytics/devguides/reporting/core/v4/rest/v4/reports/batchGet#Operator
{
@@ -255,7 +233,8 @@ export const reportFields: INodeProperties[] = [
type: 'string',
default: '',
placeholder: 'ga:newUsers',
description: 'String or <a href="https://support.google.com/analytics/answer/1034324?hl=en">regular expression</a> to match against',
description:
'String or <a href="https://support.google.com/analytics/answer/1034324?hl=en">regular expression</a> to match against',
},
],
},
@@ -266,7 +245,8 @@ export const reportFields: INodeProperties[] = [
name: 'hideTotals',
type: 'boolean',
default: false,
description: 'Whether to hide the total of all metrics for all the matching rows, for every date range',
description:
'Whether to hide the total of all metrics for all the matching rows, for every date range',
},
{
displayName: 'Hide Value Ranges',
@@ -280,7 +260,8 @@ export const reportFields: INodeProperties[] = [
name: 'includeEmptyRows',
type: 'boolean',
default: false,
description: 'Whether the response exclude rows if all the retrieved metrics are equal to zero',
description:
'Whether the response exclude rows if all the retrieved metrics are equal to zero',
},
{
displayName: 'Metrics',
@@ -302,14 +283,16 @@ export const reportFields: INodeProperties[] = [
name: 'alias',
type: 'string',
default: '',
description: 'An alias for the metric expression is an alternate name for the expression. The alias can be used for filtering and sorting.',
description:
'An alias for the metric expression is an alternate name for the expression. The alias can be used for filtering and sorting.',
},
{
displayName: 'Expression',
name: 'expression',
type: 'string',
default: 'ga:newUsers',
description: '<p>A metric expression in the request. An expression is constructed from one or more metrics and numbers.</p><p>Accepted operators include: Plus (+), Minus (-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis, Positive cardinal numbers (0-9), can include decimals and is limited to 1024 characters.</p><p>Example ga:totalRefunds/ga:users, in most cases the metric expression is just a single metric name like ga:users.</p><p>Adding mixed MetricType (E.g., CURRENCY + PERCENTAGE) metrics will result in unexpected results.</p>.',
description:
'<p>A metric expression in the request. An expression is constructed from one or more metrics and numbers.</p><p>Accepted operators include: Plus (+), Minus (-), Negation (Unary -), Divided by (/), Multiplied by (*), Parenthesis, Positive cardinal numbers (0-9), can include decimals and is limited to 1024 characters.</p><p>Example ga:totalRefunds/ga:users, in most cases the metric expression is just a single metric name like ga:users.</p><p>Adding mixed MetricType (E.g., CURRENCY + PERCENTAGE) metrics will result in unexpected results.</p>.',
},
{
displayName: 'Formatting Type',