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 contactOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const contactOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'contact',
],
resource: ['contact'],
},
},
options: [
@@ -37,7 +33,8 @@ export const contactOperations: INodeProperties[] = [
{
name: 'Create or Update',
value: 'upsert',
description: 'Create a new contact, or update the current one if it already exists (upsert)',
description:
'Create a new contact, or update the current one if it already exists (upsert)',
action: 'Create or update a contact',
},
{
@@ -61,7 +58,7 @@ export const contactOperations: INodeProperties[] = [
{
name: 'Get Summary',
value: 'getSummary',
description: 'Returns an overview of contact\'s metadata',
description: "Returns an overview of contact's metadata",
action: 'Get a contact summary',
},
{
@@ -76,7 +73,6 @@ export const contactOperations: INodeProperties[] = [
];
export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:create */
/* -------------------------------------------------------------------------- */
@@ -87,23 +83,18 @@ export const contactFields: INodeProperties[] = [
type: 'options',
typeOptions: {
loadOptionsMethod: 'getExternalIdFields',
loadOptionsDependsOn: [
'resource',
],
loadOptionsDependsOn: ['resource'],
},
required: true,
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'upsert',
],
resource: ['contact'],
operation: ['upsert'],
},
},
description: 'The field to check to see if the contact already exists. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The field to check to see if the contact already exists. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value to Match',
@@ -113,15 +104,12 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'upsert',
],
resource: ['contact'],
operation: ['upsert'],
},
},
description: 'If this value exists in the \'match against\' field, update the contact. Otherwise create a new one.',
description:
"If this value exists in the 'match against' field, update the contact. Otherwise create a new one.",
},
{
displayName: 'Last Name',
@@ -131,13 +119,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'create',
'upsert',
],
resource: ['contact'],
operation: ['create', 'upsert'],
},
},
description: 'Required. Last name of the contact. Limited to 80 characters.',
@@ -150,13 +133,8 @@ export const contactFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'create',
'upsert',
],
resource: ['contact'],
operation: ['create', 'upsert'],
},
},
options: [
@@ -168,7 +146,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getAccounts',
},
default: '',
description: 'ID of the account that is the parent of this contact. 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 account that is the parent of this contact. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Assistant Name',
@@ -214,7 +193,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value',
@@ -254,14 +234,16 @@ export const contactFields: INodeProperties[] = [
name: 'otherPostalCode',
type: 'dateTime',
default: '',
description: 'If bounce management is activated and an email sent to the contact bounces, the date and time the bounce occurred',
description:
'If bounce management is activated and an email sent to the contact bounces, the date and time the bounce occurred',
},
{
displayName: 'Email Bounced Reason',
name: 'emailBouncedReason',
type: 'string',
default: '',
description: 'If bounce management is activated and an email sent to the contact bounces, the reason the bounce occurred',
description:
'If bounce management is activated and an email sent to the contact bounces, the reason the bounce occurred',
},
{
displayName: 'Fax',
@@ -289,7 +271,8 @@ export const contactFields: INodeProperties[] = [
name: 'jigsaw',
type: 'string',
default: '',
description: 'References the ID of a contact in Data.com. If a contact has a value in this field, it means that a contact was imported as a contact from Data.com.',
description:
'References the ID of a contact in Data.com. If a contact has a value in this field, it means that a contact was imported as a contact from Data.com.',
},
{
displayName: 'Lead Source Name or ID',
@@ -299,7 +282,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Mailing City',
@@ -385,7 +369,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the contact. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The owner of the contact. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Phone',
@@ -398,7 +383,8 @@ export const contactFields: INodeProperties[] = [
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
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: 'getRecordTypes',
},
@@ -409,7 +395,8 @@ export const contactFields: INodeProperties[] = [
name: 'salutation',
type: 'string',
default: '',
description: 'Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs.',
description:
'Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs.',
},
{
displayName: 'Title',
@@ -432,12 +419,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'update',
],
resource: ['contact'],
operation: ['update'],
},
},
description: 'ID of contact that needs to be fetched',
@@ -450,12 +433,8 @@ export const contactFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'update',
],
resource: ['contact'],
operation: ['update'],
},
},
options: [
@@ -467,7 +446,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getAccounts',
},
default: '',
description: 'ID of the account that is the parent of this contact. 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 account that is the parent of this contact. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Assistant Name',
@@ -513,7 +493,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The ID of the field to add custom field to. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Value',
@@ -553,14 +534,16 @@ export const contactFields: INodeProperties[] = [
name: 'emailBouncedDate',
type: 'dateTime',
default: '',
description: 'If bounce management is activated and an email sent to the contact bounces, the date and time the bounce occurred',
description:
'If bounce management is activated and an email sent to the contact bounces, the date and time the bounce occurred',
},
{
displayName: 'Email Bounced Reason',
name: 'emailBouncedReason',
type: 'string',
default: '',
description: 'If bounce management is activated and an email sent to the contact bounces, the reason the bounce occurred',
description:
'If bounce management is activated and an email sent to the contact bounces, the reason the bounce occurred',
},
{
displayName: 'Fax',
@@ -588,7 +571,8 @@ export const contactFields: INodeProperties[] = [
name: 'jigsaw',
type: 'string',
default: '',
description: 'References the ID of a contact in Data.com. If a contact has a value in this field, it means that a contact was imported as a contact from Data.com.',
description:
'References the ID of a contact in Data.com. If a contact has a value in this field, it means that a contact was imported as a contact from Data.com.',
},
{
displayName: 'Last Name',
@@ -605,7 +589,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Mailing City',
@@ -691,7 +676,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the contact. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'The owner of the contact. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Phone',
@@ -704,7 +690,8 @@ export const contactFields: INodeProperties[] = [
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
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: 'getRecordTypes',
},
@@ -715,7 +702,8 @@ export const contactFields: INodeProperties[] = [
name: 'salutation',
type: 'string',
default: '',
description: 'Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs.',
description:
'Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs.',
},
{
displayName: 'Title',
@@ -738,12 +726,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'get',
],
resource: ['contact'],
operation: ['get'],
},
},
description: 'ID of contact that needs to be fetched',
@@ -760,12 +744,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'delete',
],
resource: ['contact'],
operation: ['delete'],
},
},
description: 'ID of contact that needs to be fetched',
@@ -780,12 +760,8 @@ export const contactFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'getAll',
],
resource: ['contact'],
operation: ['getAll'],
},
},
default: false,
@@ -797,15 +773,9 @@ export const contactFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['contact'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
@@ -823,12 +793,8 @@ export const contactFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'getAll',
],
resource: ['contact'],
operation: ['getAll'],
},
},
options: [
@@ -855,7 +821,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getContactFields',
},
default: '',
description: 'For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'For date, number, or boolean, please use expressions. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -917,12 +884,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'addToCampaign',
],
resource: ['contact'],
operation: ['addToCampaign'],
},
},
description: 'ID of contact that needs to be fetched',
@@ -938,15 +901,12 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'addToCampaign',
],
resource: ['contact'],
operation: ['addToCampaign'],
},
},
description: 'ID of the campaign that needs to be fetched. 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 campaign that needs to be fetched. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Options',
@@ -956,12 +916,8 @@ export const contactFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'addToCampaign',
],
resource: ['contact'],
operation: ['addToCampaign'],
},
},
options: [
@@ -986,12 +942,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'addNote',
],
resource: ['contact'],
operation: ['addNote'],
},
},
description: 'ID of contact that needs to be fetched',
@@ -1004,12 +956,8 @@ export const contactFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'addNote',
],
resource: ['contact'],
operation: ['addNote'],
},
},
description: 'Title of the note',
@@ -1022,12 +970,8 @@ export const contactFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'contact',
],
operation: [
'addNote',
],
resource: ['contact'],
operation: ['addNote'],
},
},
options: [
@@ -1046,7 +990,8 @@ export const contactFields: INodeProperties[] = [
name: 'isPrivate',
type: 'boolean',
default: false,
description: 'Whether only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API',
description:
'Whether only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API',
},
{
displayName: 'Owner Name or ID',
@@ -1056,7 +1001,8 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the user who owns the note. 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 user who owns the note. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
],
},