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 leadOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const leadOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'lead',
],
resource: ['lead'],
},
},
options: [
@@ -61,7 +57,7 @@ export const leadOperations: INodeProperties[] = [
{
name: 'Get Summary',
value: 'getSummary',
description: 'Returns an overview of Lead\'s metadata',
description: "Returns an overview of Lead's metadata",
action: 'Get a lead summary',
},
{
@@ -76,7 +72,6 @@ export const leadOperations: INodeProperties[] = [
];
export const leadFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* lead:create */
/* -------------------------------------------------------------------------- */
@@ -87,23 +82,18 @@ export const leadFields: INodeProperties[] = [
type: 'options',
typeOptions: {
loadOptionsMethod: 'getExternalIdFields',
loadOptionsDependsOn: [
'resource',
],
loadOptionsDependsOn: ['resource'],
},
required: true,
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'upsert',
],
resource: ['lead'],
operation: ['upsert'],
},
},
description: 'The field to check to see if the lead 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 lead 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 +103,12 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'upsert',
],
resource: ['lead'],
operation: ['upsert'],
},
},
description: 'If this value exists in the \'match against\' field, update the lead. Otherwise create a new one.',
description:
"If this value exists in the 'match against' field, update the lead. Otherwise create a new one.",
},
{
displayName: 'Company',
@@ -131,16 +118,12 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'create',
'upsert',
],
resource: ['lead'],
operation: ['create', 'upsert'],
},
},
description: 'Company of the lead. If person account record types have been enabled, and if the value of Company is null, the lead converts to a person account.',
description:
'Company of the lead. If person account record types have been enabled, and if the value of Company is null, the lead converts to a person account.',
},
{
displayName: 'Last Name',
@@ -150,13 +133,8 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'create',
'upsert',
],
resource: ['lead'],
operation: ['create', 'upsert'],
},
},
description: 'Required. Last name of the lead. Limited to 80 characters.',
@@ -169,13 +147,8 @@ export const leadFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'create',
'upsert',
],
resource: ['lead'],
operation: ['create', 'upsert'],
},
},
options: [
@@ -226,7 +199,8 @@ export const leadFields: 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',
@@ -276,14 +250,16 @@ export const leadFields: INodeProperties[] = [
name: 'IsUnreadByOwner',
type: 'boolean',
default: false,
description: 'Whether true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
description:
'Whether true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
},
{
displayName: 'Jigsaw',
name: 'jigsaw',
type: 'string',
default: '',
description: 'References the ID of a contact in Data.com. If a lead has a value in this field, it means that a contact was imported as a lead from Data.com.',
description:
'References the ID of a contact in Data.com. If a lead has a value in this field, it means that a contact was imported as a lead from Data.com.',
},
{
displayName: 'Lead Source Name or ID',
@@ -293,7 +269,8 @@ export const leadFields: 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: 'Mobile Phone',
@@ -317,7 +294,8 @@ export const leadFields: INodeProperties[] = [
loadOptionsMethod: 'getLeadOwners',
},
default: '',
description: 'The owner of the lead. 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 lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Phone',
@@ -337,7 +315,8 @@ export const leadFields: 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',
},
@@ -372,7 +351,8 @@ export const leadFields: INodeProperties[] = [
loadOptionsMethod: 'getLeadStatuses',
},
default: '',
description: 'Status code for this converted lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Status code for this converted lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Street',
@@ -409,12 +389,8 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'update',
],
resource: ['lead'],
operation: ['update'],
},
},
description: 'ID of Lead that needs to be fetched',
@@ -427,12 +403,8 @@ export const leadFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'update',
],
resource: ['lead'],
operation: ['update'],
},
},
options: [
@@ -458,7 +430,8 @@ export const leadFields: INodeProperties[] = [
name: 'company',
type: 'string',
default: '',
description: 'Company of the lead. If person account record types have been enabled, and if the value of Company is null, the lead converts to a person account.',
description:
'Company of the lead. If person account record types have been enabled, and if the value of Company is null, the lead converts to a person account.',
},
{
displayName: 'Country',
@@ -490,7 +463,8 @@ export const leadFields: 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',
@@ -540,14 +514,16 @@ export const leadFields: INodeProperties[] = [
name: 'IsUnreadByOwner',
type: 'boolean',
default: false,
description: 'Whether true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
description:
'Whether true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
},
{
displayName: 'Jigsaw',
name: 'jigsaw',
type: 'string',
default: '',
description: 'References the ID of a contact in Data.com. If a lead has a value in this field, it means that a contact was imported as a lead from Data.com.',
description:
'References the ID of a contact in Data.com. If a lead has a value in this field, it means that a contact was imported as a lead from Data.com.',
},
{
displayName: 'Last Name',
@@ -564,7 +540,8 @@ export const leadFields: 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: 'Mobile Phone',
@@ -588,7 +565,8 @@ export const leadFields: INodeProperties[] = [
loadOptionsMethod: 'getLeadOwners',
},
default: '',
description: 'The owner of the lead. 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 lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Postal Code',
@@ -608,7 +586,8 @@ export const leadFields: 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',
},
@@ -643,7 +622,8 @@ export const leadFields: INodeProperties[] = [
loadOptionsMethod: 'getLeadStatuses',
},
default: '',
description: 'Status code for this converted lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Status code for this converted lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Street',
@@ -680,12 +660,8 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'get',
],
resource: ['lead'],
operation: ['get'],
},
},
description: 'ID of Lead that needs to be fetched',
@@ -702,12 +678,8 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'delete',
],
resource: ['lead'],
operation: ['delete'],
},
},
description: 'ID of Lead that needs to be fetched',
@@ -722,12 +694,8 @@ export const leadFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'getAll',
],
resource: ['lead'],
operation: ['getAll'],
},
},
default: false,
@@ -739,15 +707,9 @@ export const leadFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['lead'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
@@ -765,12 +727,8 @@ export const leadFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'getAll',
],
resource: ['lead'],
operation: ['getAll'],
},
},
options: [
@@ -797,7 +755,8 @@ export const leadFields: INodeProperties[] = [
loadOptionsMethod: 'getLeadFields',
},
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
{
@@ -859,12 +818,8 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'addToCampaign',
],
resource: ['lead'],
operation: ['addToCampaign'],
},
},
description: 'ID of contact that needs to be fetched',
@@ -880,15 +835,12 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'addToCampaign',
],
resource: ['lead'],
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',
@@ -898,12 +850,8 @@ export const leadFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'addToCampaign',
],
resource: ['lead'],
operation: ['addToCampaign'],
},
},
options: [
@@ -928,12 +876,8 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'addNote',
],
resource: ['lead'],
operation: ['addNote'],
},
},
description: 'ID of lead that needs to be fetched',
@@ -946,12 +890,8 @@ export const leadFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'addNote',
],
resource: ['lead'],
operation: ['addNote'],
},
},
description: 'Title of the note',
@@ -964,12 +904,8 @@ export const leadFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'lead',
],
operation: [
'addNote',
],
resource: ['lead'],
operation: ['addNote'],
},
},
options: [
@@ -988,7 +924,8 @@ export const leadFields: INodeProperties[] = [
name: 'isPrivate',
type: 'boolean',
default: false,
description: 'Whether true, 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 true, 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',
@@ -998,7 +935,8 @@ export const leadFields: 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>.',
},
],
},