refactor: Apply more eslint-plugin-n8n-nodes-base autofixable rules (#3432)

*  Update `lintfix` script

* 👕 Remove unneeded lint exceptions

* 👕 Run baseline `lintfix`

* 👕 Apply `node-param-description-miscased-url` (#3441)

* 👕 Apply `rule node-param-placeholder-miscased-id` (#3443)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-option-name-wrong-for-upsert` (#3446)

* 👕 Apply `node-param-min-value-wrong-for-limit` (#3442)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Apply `node-param-display-name-wrong-for-dynamic-options` (#3454)

* 🔨 fix

*  Fix `Assigned To` fields

Co-authored-by: Michael Kret <michael.k@radency.com>

* 👕 Apply `rule node-param-default-wrong-for-number` (#3453)

* 👕 Apply `node-param-default-wrong-for-string` (#3452)

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* Apply `node-param-display-name-miscased` (#3449)

* 🔨 fix

* 🔨 exceptions

*  review fixes

* 👕 Apply `node-param-description-lowercase-first-char` (#3451)

*  fix

*  review fixes

*  fix

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Apply `node-param-description-wrong-for-dynamic-options` (#3456)

* Rule working as intended

* Add rule

* 🔥 Remove repetitions

* 👕 Add exceptions

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* 👕 Small fix for `node-param-description-wrong-for-dynamic-options`

* 👕 Apply `node-param-default-wrong-for-fixed-collection` (#3460)

* 👕 Apply `node-param-description-line-break-html-tag` (#3462)

* 👕 Run baseline `lintfix`

* 👕 Apply `node-param-options-type-unsorted-items` (#3459)

*  fix

* 🔨 exceptions

* Add exception for Salesmate and Zoom

Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

*  Restore `lintfix` command

Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com>
Co-authored-by: Michael Kret <michael.k@radency.com>
Co-authored-by: brianinoa <54530642+brianinoa@users.noreply.github.com>
This commit is contained in:
Iván Ovejero
2022-06-03 19:23:49 +02:00
committed by GitHub
parent 58ecadf53c
commit 70ae90fa3c
501 changed files with 4668 additions and 4555 deletions

View File

@@ -17,7 +17,7 @@ export const contactOperations: INodeProperties[] = [
},
options: [
{
name: 'Create/Update',
name: 'Create or Update',
value: 'upsert',
description: 'Create a new contact, or update the current one if it already exists (upsert)',
},
@@ -117,14 +117,14 @@ export const contactFields: INodeProperties[] = [
default: 0,
},
{
displayName: 'Associated Company ID',
displayName: 'Associated Company Name or ID',
name: 'associatedCompanyId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanies',
},
default: '',
description: 'Companies associated with the ticket',
description: 'Companies associated with the ticket. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'City',
@@ -157,7 +157,7 @@ export const contactFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Contact Owner',
displayName: 'Contact Owner Name or ID',
name: 'contactOwner',
type: 'options',
typeOptions: {
@@ -186,14 +186,14 @@ export const contactFields: INodeProperties[] = [
displayName: 'Custom Property',
values: [
{
displayName: 'Property',
displayName: 'Property Name or ID',
name: 'property',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getContactCustomProperties',
},
default: '',
description: 'Name of the property',
description: 'Name of the property. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -292,34 +292,34 @@ export const contactFields: INodeProperties[] = [
description: 'A contact\'s last name',
},
{
displayName: 'Lead Status',
displayName: 'Lead Status Name or ID',
name: 'leadStatus',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getContactLeadStatuses',
},
default: '',
description: 'The contact\'s sales, prospecting or outreach status',
description: 'The contact\'s sales, prospecting or outreach status. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Legal Basic For Processing Contact Data',
displayName: 'Legal Basic For Processing Contact Data Name or ID',
name: 'processingContactData',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getContactLealBasics',
},
default: '',
description: 'Legal basis for processing contact\'s data; \'Not applicable\' will exempt the contact from GDPR protections',
description: 'Legal basis for processing contact\'s data; \'Not applicable\' will exempt the contact from GDPR protections. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Lifecycle Stage',
displayName: 'Lifecycle Stage Name or ID',
name: 'lifeCycleStage',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getContactLifeCycleStages',
},
default: '',
description: 'The qualification of contacts to sales readiness. It can be set through imports, forms, workflows, and manually on a per contact basis.',
description: 'The qualification of contacts to sales readiness. It can be set through imports, forms, workflows, and manually on a per contact basis. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Marital Status',
@@ -356,6 +356,7 @@ export const contactFields: INodeProperties[] = [
description: 'A contact\'s mobile phone number',
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
type: 'options',
@@ -363,17 +364,17 @@ export const contactFields: INodeProperties[] = [
loadOptionsMethod: 'getContactNumberOfEmployees',
},
default: '',
description: 'The number of company employees',
description: 'The number of company employees. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Original Source',
displayName: 'Original Source Name or ID',
name: 'originalSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getContactOriginalSources',
},
default: '',
description: 'The first known source through which a contact found your website. Source is automatically set by HubSpot, but may be updated manually.',
description: 'The first known source through which a contact found your website. Source is automatically set by HubSpot, but may be updated manually. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Phone Number',
@@ -407,14 +408,14 @@ export const contactFields: INodeProperties[] = [
description: 'The contact\'s zip code. This might be set via import, form, or integration.',
},
{
displayName: 'Preffered Language',
displayName: 'Preffered Language Name or ID',
name: 'prefferedLanguage',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getContactPrefferedLanguages',
},
default: '',
description: 'Set your contact\'s preferred language for communications. This property can be changed from an import, form, or integration.',
description: 'Set your contact\'s preferred language for communications. This property can be changed from an import, form, or integration. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Relationship Status',
@@ -459,14 +460,14 @@ export const contactFields: INodeProperties[] = [
description: 'The contact\'s state of residence. This might be set via import, form, or integration.',
},
{
displayName: 'Status',
displayName: 'Status Name or ID',
name: 'status',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getContactStatuses',
},
default: '',
description: 'The status of the contact\'s content membership',
description: 'The status of the contact\'s content membership. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Street Address',
@@ -950,7 +951,7 @@ export const contactFields: INodeProperties[] = [
displayName: 'Filter',
values: [
{
displayName: 'Property Name',
displayName: 'Property Name or ID',
name: 'propertyName',
type: 'options',
typeOptions: {
@@ -963,22 +964,14 @@ export const contactFields: INodeProperties[] = [
name: 'operator',
type: 'options',
options: [
{
name: 'Contains Exactly',
value: 'CONTAINS_TOKEN',
},
{
name: 'Equal',
value: 'EQ',
},
{
name: 'Not Equal',
value: 'NEQ',
},
{
name: 'Less Than',
value: 'LT',
},
{
name: 'Less Than Or Equal',
value: 'LTE',
},
{
name: 'Greater Than',
value: 'GT',
@@ -996,12 +989,16 @@ export const contactFields: INodeProperties[] = [
value: 'NOT_HAS_PROPERTY',
},
{
name: 'Contains Exactly',
value: 'CONTAINS_TOKEN',
name: 'Less Than',
value: 'LT',
},
{
name: `Doesn't Contain Exactly`,
value: 'NOT_CONTAINS_TOKEN',
name: 'Less Than Or Equal',
value: 'LTE',
},
{
name: 'Not Equal',
value: 'NEQ',
},
],
default: 'EQ',
@@ -1086,6 +1083,7 @@ export const contactFields: INodeProperties[] = [
description: 'Perform a text search against all property values for an object type',
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Sort By',
name: 'sortBy',
type: 'options',