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 dealOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const dealOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'deal',
],
resource: ['deal'],
},
},
options: [
@@ -70,7 +66,6 @@ export const dealOperations: INodeProperties[] = [
];
export const dealFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* deal:create */
/* -------------------------------------------------------------------------- */
@@ -84,17 +79,14 @@ export const dealFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'create',
],
resource: ['deal'],
operation: ['create'],
},
},
default: '',
options: [],
description: 'The dealstage is required when creating a deal. See the CRM Pipelines API for details on managing pipelines and stages. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The dealstage is required when creating a deal. See the CRM Pipelines API for details on managing pipelines and stages. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Additional Fields',
@@ -104,12 +96,8 @@ export const dealFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'create',
],
resource: ['deal'],
operation: ['create'],
},
},
options: [
@@ -123,7 +111,8 @@ export const dealFields: INodeProperties[] = [
displayName: 'Associated Company Names or IDs',
name: 'associatedCompany',
type: 'multiOptions',
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getCompanies',
},
@@ -133,7 +122,8 @@ export const dealFields: INodeProperties[] = [
displayName: 'Associated Vid Names or IDs',
name: 'associatedVids',
type: 'multiOptions',
description: 'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
description:
'Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>',
typeOptions: {
loadOptionsMethod: 'getContacts',
},
@@ -167,7 +157,8 @@ export const dealFields: INodeProperties[] = [
loadOptionsMethod: 'getDealCustomProperties',
},
default: '',
description: 'Name of the property. 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 property. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value',
@@ -196,7 +187,8 @@ export const dealFields: INodeProperties[] = [
displayName: 'Deal Type Name or ID',
name: 'dealType',
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: 'getDealTypes',
},
@@ -221,12 +213,8 @@ export const dealFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'update',
],
resource: ['deal'],
operation: ['update'],
},
},
default: '',
@@ -240,12 +228,8 @@ export const dealFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'update',
],
resource: ['deal'],
operation: ['update'],
},
},
options: [
@@ -283,7 +267,8 @@ export const dealFields: INodeProperties[] = [
loadOptionsMethod: 'getDealCustomProperties',
},
default: '',
description: 'Name of the property. 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 property. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value',
@@ -316,13 +301,15 @@ export const dealFields: INodeProperties[] = [
loadOptionsMethod: 'getDealStages',
},
default: '',
description: 'The dealstage is required when creating a deal. See the CRM Pipelines API for details on managing pipelines and stages. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The dealstage is required when creating a deal. See the CRM Pipelines API for details on managing pipelines and stages. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Deal Type Name or ID',
name: 'dealType',
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: 'getDealTypes',
},
@@ -347,12 +334,8 @@ export const dealFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'get',
],
resource: ['deal'],
operation: ['get'],
},
},
default: '',
@@ -366,12 +349,8 @@ export const dealFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'get',
],
resource: ['deal'],
operation: ['get'],
},
},
options: [
@@ -381,7 +360,8 @@ export const dealFields: INodeProperties[] = [
type: 'boolean',
default: false,
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
description: 'By default, you will only get data for the most recent version of a property in the "versions" data. If you include this parameter, you will get data for all previous versions.',
description:
'By default, you will only get data for the most recent version of a property in the "versions" data. If you include this parameter, you will get data for all previous versions.',
},
],
},
@@ -395,12 +375,8 @@ export const dealFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'getAll',
],
resource: ['deal'],
operation: ['getAll'],
},
},
default: false,
@@ -412,15 +388,9 @@ export const dealFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['deal'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
@@ -438,12 +408,8 @@ export const dealFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'getAll',
],
resource: ['deal'],
operation: ['getAll'],
},
},
options: [
@@ -452,7 +418,8 @@ export const dealFields: INodeProperties[] = [
name: 'includeAssociations',
type: 'boolean',
default: false,
description: 'Whether to include the IDs of the associated contacts and companies in the results. This will also automatically include the num_associated_contacts property.',
description:
'Whether to include the IDs of the associated contacts and companies in the results. This will also automatically include the num_associated_contacts property.',
},
{
displayName: 'Property Names or IDs',
@@ -462,7 +429,8 @@ export const dealFields: INodeProperties[] = [
loadOptionsMethod: 'getDealProperties',
},
default: [],
description: '<p>Used to include specific deal properties in the results. By default, the results will only include Deal ID and will not include the values for any properties for your Deals.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'<p>Used to include specific deal properties in the results. By default, the results will only include Deal ID and will not include the values for any properties for your Deals.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-multi-options
@@ -473,9 +441,9 @@ export const dealFields: INodeProperties[] = [
loadOptionsMethod: 'getDealProperties',
},
default: [],
description: 'Works similarly to properties=, but this parameter will include the history for the specified property, instead of just including the current value. Use this parameter when you need the full history of changes to a property\'s value. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Works similarly to properties=, but this parameter will include the history for the specified property, instead of just including the current value. Use this parameter when you need the full history of changes to a property\'s value. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
],
},
@@ -489,12 +457,8 @@ export const dealFields: INodeProperties[] = [
required: true,
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'delete',
],
resource: ['deal'],
operation: ['delete'],
},
},
default: '',
@@ -510,13 +474,8 @@ export const dealFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'getRecentlyCreated',
'getRecentlyModified',
],
resource: ['deal'],
operation: ['getRecentlyCreated', 'getRecentlyModified'],
},
},
default: false,
@@ -528,16 +487,9 @@ export const dealFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'getRecentlyCreated',
'getRecentlyModified',
],
returnAll: [
false,
],
resource: ['deal'],
operation: ['getRecentlyCreated', 'getRecentlyModified'],
returnAll: [false],
},
},
typeOptions: {
@@ -555,13 +507,8 @@ export const dealFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'getRecentlyCreated',
'getRecentlyModified',
],
resource: ['deal'],
operation: ['getRecentlyCreated', 'getRecentlyModified'],
},
},
options: [
@@ -578,7 +525,8 @@ export const dealFields: INodeProperties[] = [
type: 'boolean',
default: false,
// eslint-disable-next-line n8n-nodes-base/node-param-description-boolean-without-whether
description: 'By default, you will only get data for the most recent version of a property in the "versions" data. If you include this parameter, you will get data for all previous versions.',
description:
'By default, you will only get data for the most recent version of a property in the "versions" data. If you include this parameter, you will get data for all previous versions.',
},
],
},
@@ -592,12 +540,8 @@ export const dealFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'search',
],
resource: ['deal'],
operation: ['search'],
},
},
default: false,
@@ -609,15 +553,9 @@ export const dealFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'search',
],
returnAll: [
false,
],
resource: ['deal'],
operation: ['search'],
returnAll: [false],
},
},
typeOptions: {
@@ -638,12 +576,8 @@ export const dealFields: INodeProperties[] = [
},
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'search',
],
resource: ['deal'],
operation: ['search'],
},
},
options: [
@@ -669,7 +603,8 @@ export const dealFields: INodeProperties[] = [
displayName: 'Property Name or ID',
name: 'propertyName',
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: 'getDealProperties',
},
@@ -724,10 +659,7 @@ export const dealFields: INodeProperties[] = [
name: 'value',
displayOptions: {
hide: {
operator: [
'HAS_PROPERTY',
'NOT_HAS_PROPERTY',
],
operator: ['HAS_PROPERTY', 'NOT_HAS_PROPERTY'],
},
},
type: 'string',
@@ -736,12 +668,14 @@ export const dealFields: INodeProperties[] = [
],
},
],
description: 'Use filters to limit the results to only CRM objects with matching property values. More info <a href="https://developers.hubspot.com/docs/api/crm/search">here</a>.',
description:
'Use filters to limit the results to only CRM objects with matching property values. More info <a href="https://developers.hubspot.com/docs/api/crm/search">here</a>.',
},
],
},
],
description: 'When multiple filters are provided within a filterGroup, they will be combined using a logical AND operator. When multiple filterGroups are provided, they will be combined using a logical OR operator. The system supports a maximum of three filterGroups with up to three filters each. More info <a href="https://developers.hubspot.com/docs/api/crm/search">here</a>',
description:
'When multiple filters are provided within a filterGroup, they will be combined using a logical AND operator. When multiple filterGroups are provided, they will be combined using a logical OR operator. The system supports a maximum of three filterGroups with up to three filters each. More info <a href="https://developers.hubspot.com/docs/api/crm/search">here</a>',
},
{
displayName: 'Additional Fields',
@@ -751,12 +685,8 @@ export const dealFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'deal',
],
operation: [
'search',
],
resource: ['deal'],
operation: ['search'],
},
},
options: [
@@ -775,7 +705,8 @@ export const dealFields: INodeProperties[] = [
},
],
default: 'DESCENDING',
description: 'Defines the direction in which search results are ordered. Default value is DESC.',
description:
'Defines the direction in which search results are ordered. Default value is DESC.',
},
{
displayName: 'Field Names or IDs',
@@ -785,7 +716,8 @@ export const dealFields: INodeProperties[] = [
loadOptionsMethod: 'getDealProperties',
},
default: [],
description: '<p>Used to include specific deal properties in the results. By default, the results will only include Deal ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'<p>Used to include specific deal properties in the results. By default, the results will only include Deal ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Query',
@@ -799,7 +731,8 @@ export const dealFields: INodeProperties[] = [
displayName: 'Sort By',
name: 'sortBy',
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: 'getDealProperties',
},