mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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:
@@ -96,17 +96,17 @@ export function adjustAddresses(addresses: [{ [key: string]: string }]) {
|
||||
export function getAccountFields(): INodeProperties[] {
|
||||
return [
|
||||
{
|
||||
displayName: 'Account Category',
|
||||
displayName: 'Account Category Name or ID',
|
||||
name: 'accountcategorycode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getAccountCategories',
|
||||
},
|
||||
default: '',
|
||||
description: 'Category to indicate whether the customer account is standard or preferred',
|
||||
description: 'Category to indicate whether the customer account is standard or preferred. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Account Rating',
|
||||
displayName: 'Account Rating Name or ID',
|
||||
name: 'accountratingcode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -129,7 +129,7 @@ export function getAccountFields(): INodeProperties[] {
|
||||
name: 'address',
|
||||
values: [
|
||||
{
|
||||
displayName: 'Address Type',
|
||||
displayName: 'Address Type Name or ID',
|
||||
name: 'addresstypecode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -214,17 +214,17 @@ export function getAccountFields(): INodeProperties[] {
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Business Type',
|
||||
displayName: 'Business Type Name or ID',
|
||||
name: 'businesstypecode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getBusinessTypes',
|
||||
},
|
||||
default: '',
|
||||
description: 'The legal designation or other business type of the account for contracts or reporting purposes',
|
||||
description: 'The legal designation or other business type of the account for contracts or reporting purposes. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Customer Size',
|
||||
displayName: 'Customer Size Name or ID',
|
||||
name: 'customersizecode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -233,7 +233,7 @@ export function getAccountFields(): INodeProperties[] {
|
||||
default: '',
|
||||
},
|
||||
{
|
||||
displayName: 'Customer Type',
|
||||
displayName: 'Customer Type Name or ID',
|
||||
name: 'customertypecode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
@@ -283,14 +283,14 @@ export function getAccountFields(): INodeProperties[] {
|
||||
description: 'URL for the account’s FTP site to enable users to access data and share documents',
|
||||
},
|
||||
{
|
||||
displayName: 'Industry',
|
||||
displayName: 'Industry Name or ID',
|
||||
name: 'industrycode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getIndustryCodes',
|
||||
},
|
||||
default: '',
|
||||
description: 'The account’s primary industry for use in marketing segmentation and demographic analysis',
|
||||
description: 'The account’s primary industry for use in marketing segmentation and demographic analysis. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Name',
|
||||
@@ -324,44 +324,44 @@ export function getAccountFields(): INodeProperties[] {
|
||||
description: 'Number of employees that work at the account for use in marketing segmentation and demographic analysis',
|
||||
},
|
||||
{
|
||||
displayName: 'Payment Terms',
|
||||
displayName: 'Payment Terms Name or ID',
|
||||
name: 'paymenttermscode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getPaymentTermsCodes',
|
||||
},
|
||||
default: '',
|
||||
description: 'The payment terms to indicate when the customer needs to pay the total amount',
|
||||
description: 'The payment terms to indicate when the customer needs to pay the total amount. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Preferred Appointment Day',
|
||||
displayName: 'Preferred Appointment Day Name or ID',
|
||||
name: 'preferredappointmentdaycode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getPreferredAppointmentDayCodes',
|
||||
},
|
||||
default: '',
|
||||
description: '',
|
||||
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
|
||||
},
|
||||
{
|
||||
displayName: 'Preferred Appointment Time',
|
||||
displayName: 'Preferred Appointment Time Name or ID',
|
||||
name: 'preferredappointmenttimecode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getPreferredAppointmentTimeCodes',
|
||||
},
|
||||
default: '',
|
||||
description: '',
|
||||
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
|
||||
},
|
||||
{
|
||||
displayName: 'Preferred Contact Method',
|
||||
displayName: 'Preferred Contact Method Name or ID',
|
||||
name: 'preferredcontactmethodcode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getPreferredContactMethodCodes',
|
||||
},
|
||||
default: '',
|
||||
description: '',
|
||||
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
|
||||
},
|
||||
{
|
||||
displayName: 'Primary Satori ID',
|
||||
@@ -390,14 +390,14 @@ export function getAccountFields(): INodeProperties[] {
|
||||
description: 'The number of shares available to the public for the account. This number is used as an indicator in financial performance analysis.',
|
||||
},
|
||||
{
|
||||
displayName: 'Shipping Method',
|
||||
displayName: 'Shipping Method Name or ID',
|
||||
name: 'shippingmethodcode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getShippingMethodCodes',
|
||||
},
|
||||
default: '',
|
||||
description: 'Shipping method for deliveries sent to the account’s address to designate the preferred carrier or other delivery option',
|
||||
description: 'Shipping method for deliveries sent to the account’s address to designate the preferred carrier or other delivery option. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'SIC',
|
||||
@@ -441,14 +441,14 @@ export function getAccountFields(): INodeProperties[] {
|
||||
description: 'The third phone number for this account',
|
||||
},
|
||||
{
|
||||
displayName: 'Territory',
|
||||
displayName: 'Territory Name or ID',
|
||||
name: 'territorycode',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getTerritoryCodes',
|
||||
},
|
||||
default: '',
|
||||
description: 'Region or territory for the account for use in segmentation and analysis',
|
||||
description: 'Region or territory for the account for use in segmentation and analysis. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
},
|
||||
{
|
||||
displayName: 'Ticker Symbol',
|
||||
|
||||
Reference in New Issue
Block a user