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 opportunityOperations: INodeProperties[] = [
{
@@ -10,9 +8,7 @@ export const opportunityOperations: INodeProperties[] = [
noDataExpression: true,
displayOptions: {
show: {
resource: [
'opportunity',
],
resource: ['opportunity'],
},
},
options: [
@@ -31,7 +27,8 @@ export const opportunityOperations: INodeProperties[] = [
{
name: 'Create or Update',
value: 'upsert',
description: 'Create a new opportunity, or update the current one if it already exists (upsert)',
description:
'Create a new opportunity, or update the current one if it already exists (upsert)',
action: 'Create or update an opportunity',
},
{
@@ -55,7 +52,7 @@ export const opportunityOperations: INodeProperties[] = [
{
name: 'Get Summary',
value: 'getSummary',
description: 'Returns an overview of opportunity\'s metadata',
description: "Returns an overview of opportunity's metadata",
action: 'Get an opportunity summary',
},
{
@@ -70,7 +67,6 @@ export const opportunityOperations: INodeProperties[] = [
];
export const opportunityFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* opportunity:create */
/* -------------------------------------------------------------------------- */
@@ -81,23 +77,18 @@ export const opportunityFields: INodeProperties[] = [
type: 'options',
typeOptions: {
loadOptionsMethod: 'getExternalIdFields',
loadOptionsDependsOn: [
'resource',
],
loadOptionsDependsOn: ['resource'],
},
required: true,
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'upsert',
],
resource: ['opportunity'],
operation: ['upsert'],
},
},
description: 'The field to check to see if the opportunity 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 opportunity 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',
@@ -107,15 +98,12 @@ export const opportunityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'upsert',
],
resource: ['opportunity'],
operation: ['upsert'],
},
},
description: 'If this value exists in the \'match against\' field, update the opportunity. Otherwise create a new one.',
description:
"If this value exists in the 'match against' field, update the opportunity. Otherwise create a new one.",
},
{
displayName: 'Name',
@@ -125,13 +113,8 @@ export const opportunityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'create',
'upsert',
],
resource: ['opportunity'],
operation: ['create', 'upsert'],
},
},
description: 'Required. Last name of the opportunity. Limited to 80 characters.',
@@ -144,13 +127,8 @@ export const opportunityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'create',
'upsert',
],
resource: ['opportunity'],
operation: ['create', 'upsert'],
},
},
description: 'Required. Date when the opportunity is expected to close.',
@@ -166,16 +144,12 @@ export const opportunityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'create',
'upsert',
],
resource: ['opportunity'],
operation: ['create', 'upsert'],
},
},
description: 'Required. Date when the opportunity is expected to close. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Required. Date when the opportunity is expected to close. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Additional Fields',
@@ -185,13 +159,8 @@ export const opportunityFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'create',
'upsert',
],
resource: ['opportunity'],
operation: ['create', 'upsert'],
},
},
options: [
@@ -203,7 +172,8 @@ export const opportunityFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
description: 'ID of the account associated with this opportunity. 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 associated with this opportunity. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Amount',
@@ -223,7 +193,8 @@ export const opportunityFields: INodeProperties[] = [
loadOptionsMethod: 'getCampaigns',
},
default: '',
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: 'Custom Fields',
@@ -248,7 +219,8 @@ export const opportunityFields: 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',
@@ -266,7 +238,8 @@ export const opportunityFields: INodeProperties[] = [
name: 'description',
type: 'string',
default: '',
description: 'A description of the opportunity. Label is Contact Description. Limit: 32 KB.',
description:
'A description of the opportunity. Label is Contact Description. Limit: 32 KB.',
},
{
displayName: 'Forecast Category Name',
@@ -283,7 +256,8 @@ export const opportunityFields: 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: 'Next Step',
@@ -300,7 +274,8 @@ export const opportunityFields: INodeProperties[] = [
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the opportunity. 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 opportunity. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Phone',
@@ -341,7 +316,8 @@ export const opportunityFields: INodeProperties[] = [
value: 'New Business',
},
],
description: 'Type of opportunity. For example, Existing Business or New Business. Label is Opportunity Type.',
description:
'Type of opportunity. For example, Existing Business or New Business. Label is Opportunity Type.',
},
],
},
@@ -357,12 +333,8 @@ export const opportunityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'update',
],
resource: ['opportunity'],
operation: ['update'],
},
},
description: 'ID of opportunity that needs to be fetched',
@@ -375,12 +347,8 @@ export const opportunityFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'update',
],
resource: ['opportunity'],
operation: ['update'],
},
},
options: [
@@ -392,7 +360,8 @@ export const opportunityFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
description: 'ID of the account associated with this opportunity. 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 associated with this opportunity. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Amount',
@@ -412,7 +381,8 @@ export const opportunityFields: INodeProperties[] = [
loadOptionsMethod: 'getCampaigns',
},
default: '',
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: 'Close Date',
@@ -444,7 +414,8 @@ export const opportunityFields: 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',
@@ -462,7 +433,8 @@ export const opportunityFields: INodeProperties[] = [
name: 'description',
type: 'string',
default: '',
description: 'A description of the opportunity. Label is Contact Description. Limit: 32 KB.',
description:
'A description of the opportunity. Label is Contact Description. Limit: 32 KB.',
},
{
displayName: 'Forecast Category Name',
@@ -479,7 +451,8 @@ export const opportunityFields: 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: 'Name',
@@ -503,7 +476,8 @@ export const opportunityFields: INodeProperties[] = [
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the opportunity. 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 opportunity. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Phone',
@@ -537,7 +511,8 @@ export const opportunityFields: INodeProperties[] = [
loadOptionsMethod: 'getStages',
},
default: '',
description: 'Required. Date when the opportunity is expected to close. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
description:
'Required. Date when the opportunity is expected to close. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code-examples/expressions/">expression</a>.',
},
{
displayName: 'Type',
@@ -554,7 +529,8 @@ export const opportunityFields: INodeProperties[] = [
value: 'New Business',
},
],
description: 'Type of opportunity. For example, Existing Business or New Business. Label is Opportunity Type.',
description:
'Type of opportunity. For example, Existing Business or New Business. Label is Opportunity Type.',
},
],
},
@@ -570,12 +546,8 @@ export const opportunityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'get',
],
resource: ['opportunity'],
operation: ['get'],
},
},
description: 'ID of opportunity that needs to be fetched',
@@ -592,12 +564,8 @@ export const opportunityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'delete',
],
resource: ['opportunity'],
operation: ['delete'],
},
},
description: 'ID of opportunity that needs to be fetched',
@@ -612,12 +580,8 @@ export const opportunityFields: INodeProperties[] = [
type: 'boolean',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'getAll',
],
resource: ['opportunity'],
operation: ['getAll'],
},
},
default: false,
@@ -629,15 +593,9 @@ export const opportunityFields: INodeProperties[] = [
type: 'number',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'getAll',
],
returnAll: [
false,
],
resource: ['opportunity'],
operation: ['getAll'],
returnAll: [false],
},
},
typeOptions: {
@@ -655,12 +613,8 @@ export const opportunityFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'getAll',
],
resource: ['opportunity'],
operation: ['getAll'],
},
},
options: [
@@ -687,7 +641,8 @@ export const opportunityFields: INodeProperties[] = [
loadOptionsMethod: 'getOpportunityFields',
},
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
{
@@ -749,12 +704,8 @@ export const opportunityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'addNote',
],
resource: ['opportunity'],
operation: ['addNote'],
},
},
description: 'ID of opportunity that needs to be fetched',
@@ -767,12 +718,8 @@ export const opportunityFields: INodeProperties[] = [
default: '',
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'addNote',
],
resource: ['opportunity'],
operation: ['addNote'],
},
},
description: 'Title of the note',
@@ -785,12 +732,8 @@ export const opportunityFields: INodeProperties[] = [
default: {},
displayOptions: {
show: {
resource: [
'opportunity',
],
operation: [
'addNote',
],
resource: ['opportunity'],
operation: ['addNote'],
},
},
options: [
@@ -809,7 +752,8 @@ export const opportunityFields: 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',
@@ -819,7 +763,8 @@ export const opportunityFields: 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>.',
},
],
},