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

@@ -67,6 +67,7 @@ export const accountFields: INodeProperties[] = [
/* account:create */
/* -------------------------------------------------------------------------- */
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Match Against',
name: 'externalId',
type: 'options',
@@ -88,7 +89,7 @@ export const accountFields: INodeProperties[] = [
],
},
},
description: 'The field to check to see if the account already exists',
description: 'The field to check to see if the account already exists. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value to Match',
@@ -163,14 +164,14 @@ export const accountFields: INodeProperties[] = [
description: 'Estimated annual revenue of the account',
},
{
displayName: 'Account Source',
displayName: 'Account Source Name or ID',
name: 'accountSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAccountSources',
},
default: '',
description: 'The source of the account record',
description: 'The source of the account record. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Billing City',
@@ -223,14 +224,14 @@ export const accountFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -281,14 +282,14 @@ export const accountFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the account',
description: 'The owner of the account. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Parent ID',
@@ -305,7 +306,7 @@ export const accountFields: INodeProperties[] = [
description: 'Phone number for the account',
},
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -324,14 +325,14 @@ export const accountFields: INodeProperties[] = [
description: 'A brief description of an organizations line of business, based on its SIC code',
},
{
displayName: 'Type',
displayName: 'Type Name or ID',
name: 'type',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccountTypes',
},
description: 'Type of account',
description: 'Type of account. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Shipping City',
@@ -424,14 +425,14 @@ export const accountFields: INodeProperties[] = [
description: 'Account number assigned to this account (not the unique ID). Maximum size is 40 characters.',
},
{
displayName: 'Account Source',
displayName: 'Account Source Name or ID',
name: 'accountSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAccountSources',
},
default: '',
description: 'The source of the account record',
description: 'The source of the account record. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Annual Revenue',
@@ -494,14 +495,14 @@ export const accountFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -559,14 +560,14 @@ export const accountFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'ownerId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the account',
description: 'The owner of the account. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Parent ID',
@@ -583,7 +584,7 @@ export const accountFields: INodeProperties[] = [
description: 'Phone number for the account',
},
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -637,14 +638,14 @@ export const accountFields: INodeProperties[] = [
description: 'The street address of the shipping address for this account. Maximum of 255 characters.',
},
{
displayName: 'Type',
displayName: 'Type Name or ID',
name: 'type',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccountTypes',
},
description: 'Type of account',
description: 'Type of account. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Website',
@@ -784,14 +785,14 @@ export const accountFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAccountFields',
},
default: '',
description: 'For date, number, or boolean, please use expressions',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Operation',
@@ -799,6 +800,14 @@ export const accountFields: INodeProperties[] = [
type: 'options',
noDataExpression: true,
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -807,18 +816,10 @@ export const accountFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},
@@ -909,14 +910,14 @@ export const accountFields: INodeProperties[] = [
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',
displayName: 'Owner Name or ID',
name: 'ownerId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the user who owns the note',
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/nodes/expressions.html#expressions">expression</a>.',
},
],
},

View File

@@ -142,14 +142,14 @@ export const attachmentFields: INodeProperties[] = [
description: 'Whether this record is viewable only by the owner and administrators (true) or viewable by all otherwise-allowed users (false)',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the User who owns the attachment',
description: 'ID of the User who owns the attachment. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
],
},
@@ -222,14 +222,14 @@ export const attachmentFields: INodeProperties[] = [
description: 'Required. Name of the attached file. Maximum size is 255 characters. Label is File Name.',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the User who owns the attachment',
description: 'ID of the User who owns the attachment. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
],
},
@@ -355,14 +355,14 @@ export const attachmentFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAtachmentFields',
},
default: '',
description: 'For date, number, or boolean, please use expressions',
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/nodes/expressions.html#expressions">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -370,6 +370,14 @@ export const attachmentFields: INodeProperties[] = [
name: 'operation',
type: 'options',
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -378,18 +386,10 @@ export const attachmentFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},

View File

@@ -60,7 +60,7 @@ export const caseFields: INodeProperties[] = [
/* case:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Type',
displayName: 'Type Name or ID',
name: 'type',
type: 'options',
required: true,
@@ -78,7 +78,7 @@ export const caseFields: INodeProperties[] = [
},
},
default: '',
description: 'The type of case',
description: 'The type of case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Additional Fields',
@@ -127,14 +127,14 @@ export const caseFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -162,24 +162,24 @@ export const caseFields: INodeProperties[] = [
description: 'Whether indicates whether the case has been escalated (true) or not',
},
{
displayName: 'Origin',
displayName: 'Origin Name or ID',
name: 'origin',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseOrigins',
},
default: '',
description: 'The source of the case, such as Email, Phone, or Web. Label is Case Origin.',
description: 'The source of the case, such as Email, Phone, or Web. Label is Case Origin. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseOwners',
},
default: '',
description: 'The owner of the case',
description: 'The owner of the case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Parent ID',
@@ -189,27 +189,27 @@ export const caseFields: INodeProperties[] = [
description: 'The ID of the parent case in the hierarchy. The label is Parent Case.',
},
{
displayName: 'Priority',
displayName: 'Priority Name or ID',
name: 'priority',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCasePriorities',
},
default: '',
description: 'The importance or urgency of the case, such as High, Medium, or Low',
description: 'The importance or urgency of the case, such as High, Medium, or Low. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Reason',
displayName: 'Reason Name or ID',
name: 'reason',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseReasons',
},
default: '',
description: 'The reason why the case was created, such as Instructions not clear, or User didnt attend training',
description: 'The reason why the case was created, such as Instructions not clear, or User didnt attend training. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -218,14 +218,14 @@ export const caseFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Status',
displayName: 'Status Name or ID',
name: 'status',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseStatuses',
},
default: '',
description: 'The status of the case, such as “New,” “Closed,” or “Escalated.” This field directly controls the IsClosed flag',
description: 'The status of the case, such as “New,” “Closed,” or “Escalated.” This field directly controls the IsClosed flag. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Subject',
@@ -333,14 +333,14 @@ export const caseFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -368,24 +368,24 @@ export const caseFields: INodeProperties[] = [
description: 'Whether the case has been escalated (true) or not',
},
{
displayName: 'Origin',
displayName: 'Origin Name or ID',
name: 'origin',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseOrigins',
},
default: '',
description: 'The source of the case, such as Email, Phone, or Web. Label is Case Origin.',
description: 'The source of the case, such as Email, Phone, or Web. Label is Case Origin. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseOwners',
},
default: '',
description: 'The owner of the case',
description: 'The owner of the case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Parent ID',
@@ -395,27 +395,27 @@ export const caseFields: INodeProperties[] = [
description: 'The ID of the parent case in the hierarchy. The label is Parent Case.',
},
{
displayName: 'Priority',
displayName: 'Priority Name or ID',
name: 'priority',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCasePriorities',
},
default: '',
description: 'The importance or urgency of the case, such as High, Medium, or Low',
description: 'The importance or urgency of the case, such as High, Medium, or Low. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Reason',
displayName: 'Reason Name or ID',
name: 'reason',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseReasons',
},
default: '',
description: 'The reason why the case was created, such as Instructions not clear, or User didnt attend training',
description: 'The reason why the case was created, such as Instructions not clear, or User didnt attend training. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -424,14 +424,14 @@ export const caseFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Status',
displayName: 'Status Name or ID',
name: 'status',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseStatuses',
},
default: '',
description: 'The status of the case, such as “New,” “Closed,” or “Escalated.” This field directly controls the IsClosed flag',
description: 'The status of the case, such as “New,” “Closed,” or “Escalated.” This field directly controls the IsClosed flag. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Subject',
@@ -469,14 +469,14 @@ export const caseFields: INodeProperties[] = [
description: 'The phone number that was entered when the case was created. This field can\'t be updated after the case has been created.',
},
{
displayName: 'Type',
displayName: 'Type Name or ID',
name: 'type',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseTypes',
},
default: '',
description: 'The type of case',
description: 'The type of case. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
],
},
@@ -602,14 +602,14 @@ export const caseFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCaseFields',
},
default: '',
description: 'For date, number, or boolean, please use expressions',
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/nodes/expressions.html#expressions">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -617,6 +617,14 @@ export const caseFields: INodeProperties[] = [
name: 'operation',
type: 'options',
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -625,18 +633,10 @@ export const caseFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},

View File

@@ -26,11 +26,6 @@ export const contactOperations: INodeProperties[] = [
value: 'addNote',
description: 'Add note to a contact',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a contact',
},
{
name: 'Create',
value: 'create',
@@ -41,21 +36,26 @@ export const contactOperations: INodeProperties[] = [
value: 'upsert',
description: 'Create a new contact, or update the current one if it already exists (upsert)',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a contact',
},
{
name: 'Get',
value: 'get',
description: 'Get a contact',
},
{
name: 'Get Summary',
value: 'getSummary',
description: 'Returns an overview of contact\'s metadata',
},
{
name: 'Get All',
value: 'getAll',
description: 'Get all contacts',
},
{
name: 'Get Summary',
value: 'getSummary',
description: 'Returns an overview of contact\'s metadata',
},
{
name: 'Update',
value: 'update',
@@ -72,6 +72,7 @@ export const contactFields: INodeProperties[] = [
/* contact:create */
/* -------------------------------------------------------------------------- */
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Match Against',
name: 'externalId',
type: 'options',
@@ -93,7 +94,7 @@ export const contactFields: INodeProperties[] = [
],
},
},
description: 'The field to check to see if the contact already exists',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value to Match',
@@ -151,14 +152,14 @@ export const contactFields: INodeProperties[] = [
},
options: [
{
displayName: 'Account',
displayName: 'Account Name or ID',
name: 'acconuntId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
default: '',
description: 'ID of the account that is the parent of this contact',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Assistant Name',
@@ -197,14 +198,14 @@ export const contactFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -278,17 +279,17 @@ 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',
displayName: 'Lead Source Name or ID',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained',
description: 'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Mailing City',
@@ -367,14 +368,14 @@ export const contactFields: INodeProperties[] = [
description: 'Street for alternate address',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the contact',
description: 'The owner of the contact. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Phone',
@@ -384,7 +385,7 @@ export const contactFields: INodeProperties[] = [
description: 'Phone number for the contact',
},
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -448,14 +449,14 @@ export const contactFields: INodeProperties[] = [
},
options: [
{
displayName: 'Account',
displayName: 'Account Name or ID',
name: 'acconuntId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
default: '',
description: 'ID of the account that is the parent of this contact',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Assistant Name',
@@ -494,14 +495,14 @@ export const contactFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -585,14 +586,14 @@ export const contactFields: INodeProperties[] = [
description: 'Last name of the contact. Limited to 80 characters.',
},
{
displayName: 'Lead Source',
displayName: 'Lead Source Name or ID',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained',
description: 'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Mailing City',
@@ -671,14 +672,14 @@ export const contactFields: INodeProperties[] = [
description: 'Street for alternate address',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the contact',
description: 'The owner of the contact. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Phone',
@@ -688,7 +689,7 @@ export const contactFields: INodeProperties[] = [
description: 'Phone number for the contact',
},
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -834,14 +835,14 @@ export const contactFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getContactFields',
},
default: '',
description: 'For date, number, or boolean, please use expressions',
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/nodes/expressions.html#expressions">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -849,6 +850,14 @@ export const contactFields: INodeProperties[] = [
name: 'operation',
type: 'options',
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -857,18 +866,10 @@ export const contactFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},
@@ -914,7 +915,7 @@ export const contactFields: INodeProperties[] = [
description: 'ID of contact that needs to be fetched',
},
{
displayName: 'Campaign',
displayName: 'Campaign Name or ID',
name: 'campaignId',
type: 'options',
typeOptions: {
@@ -932,7 +933,7 @@ export const contactFields: INodeProperties[] = [
],
},
},
description: 'ID of the campaign that needs to be fetched',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Options',
@@ -1035,14 +1036,14 @@ export const contactFields: INodeProperties[] = [
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',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the user who owns the note',
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/nodes/expressions.html#expressions">expression</a>.',
},
],
},

View File

@@ -57,7 +57,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -76,9 +76,10 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Match Against',
name: 'externalId',
type: 'options',
@@ -100,7 +101,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'The field to check to see if the object already exists',
description: 'The field to check to see if the object already exists. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value to Match',
@@ -147,7 +148,7 @@ export const customObjectFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
@@ -157,7 +158,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
default: '',
description: 'The ID of the field',
description: 'The ID of the field. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -175,7 +176,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:update */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -193,7 +194,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Record ID',
@@ -239,7 +240,7 @@ export const customObjectFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
@@ -249,7 +250,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
default: '',
description: 'The ID of the field',
description: 'The ID of the field. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -267,7 +268,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:get */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -285,7 +286,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Record ID',
@@ -310,7 +311,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:delete */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -328,7 +329,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Record ID',
@@ -353,7 +354,7 @@ export const customObjectFields: INodeProperties[] = [
/* customObject:getAll */
/* -------------------------------------------------------------------------- */
{
displayName: 'Custom Object',
displayName: 'Custom Object Name or ID',
name: 'customObject',
type: 'options',
typeOptions: {
@@ -371,7 +372,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
},
description: 'Name of the custom object',
description: 'Name of the custom object. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Return All',
@@ -447,7 +448,7 @@ export const customObjectFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
@@ -457,7 +458,7 @@ export const customObjectFields: INodeProperties[] = [
],
},
default: '',
description: 'For date, number, or boolean, please use expressions',
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/nodes/expressions.html#expressions">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -465,6 +466,14 @@ export const customObjectFields: INodeProperties[] = [
name: 'operation',
type: 'options',
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -473,18 +482,10 @@ export const customObjectFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},
@@ -532,7 +533,7 @@ export const customObjectFields: INodeProperties[] = [
placeholder: 'Add Field',
options: [
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -563,7 +564,7 @@ export const customObjectFields: INodeProperties[] = [
placeholder: 'Add Field',
options: [
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {

View File

@@ -101,14 +101,14 @@ export const documentFields: INodeProperties[] = [
description: 'ID of the object you want to link this document to',
},
{
displayName: 'Owner ID',
displayName: 'Owner Name or ID',
name: 'ownerId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the owner of this document',
description: 'ID of the owner of this document. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
],
},

View File

@@ -72,6 +72,7 @@ export const leadFields: INodeProperties[] = [
/* lead:create */
/* -------------------------------------------------------------------------- */
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Match Against',
name: 'externalId',
type: 'options',
@@ -93,7 +94,7 @@ export const leadFields: INodeProperties[] = [
],
},
},
description: 'The field to check to see if the lead already exists',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value to Match',
@@ -209,14 +210,14 @@ export const leadFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -275,14 +276,14 @@ export const leadFields: INodeProperties[] = [
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',
displayName: 'Lead Source Name or ID',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained',
description: 'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Mobile Phone',
@@ -299,14 +300,14 @@ export const leadFields: INodeProperties[] = [
description: 'Number of employees at the leads company. Label is Employees.',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadOwners',
},
default: '',
description: 'The owner of the lead',
description: 'The owner of the lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Phone',
@@ -323,7 +324,7 @@ export const leadFields: INodeProperties[] = [
description: 'Postal code for the address of the lead. Label is Zip/Postal Code.',
},
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -353,14 +354,14 @@ export const leadFields: INodeProperties[] = [
description: 'State for the address of the lead',
},
{
displayName: 'Status',
displayName: 'Status Name or ID',
name: 'status',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadStatuses',
},
default: '',
description: 'Status code for this converted lead',
description: 'Status code for this converted lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Street',
@@ -471,14 +472,14 @@ export const leadFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -544,14 +545,14 @@ export const leadFields: INodeProperties[] = [
description: 'Required. Last name of the lead. Limited to 80 characters.',
},
{
displayName: 'Lead Source',
displayName: 'Lead Source Name or ID',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained',
description: 'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Mobile Phone',
@@ -568,14 +569,14 @@ export const leadFields: INodeProperties[] = [
description: 'Number of employees at the leads company. Label is Employees.',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadOwners',
},
default: '',
description: 'The owner of the lead',
description: 'The owner of the lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Postal Code',
@@ -592,7 +593,7 @@ export const leadFields: INodeProperties[] = [
description: 'Phone number for the lead',
},
{
displayName: 'Record Type ID',
displayName: 'Record Type Name or ID',
name: 'recordTypeId',
type: 'options',
typeOptions: {
@@ -622,14 +623,14 @@ export const leadFields: INodeProperties[] = [
description: 'State for the address of the lead',
},
{
displayName: 'Status',
displayName: 'Status Name or ID',
name: 'status',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadStatuses',
},
default: '',
description: 'Status code for this converted lead',
description: 'Status code for this converted lead. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Street',
@@ -776,14 +777,14 @@ export const leadFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadFields',
},
default: '',
description: 'For date, number, or boolean, please use expressions',
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/nodes/expressions.html#expressions">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -791,6 +792,14 @@ export const leadFields: INodeProperties[] = [
name: 'operation',
type: 'options',
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -799,18 +808,10 @@ export const leadFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},
@@ -856,7 +857,7 @@ export const leadFields: INodeProperties[] = [
description: 'ID of contact that needs to be fetched',
},
{
displayName: 'Campaign',
displayName: 'Campaign Name or ID',
name: 'campaignId',
type: 'options',
typeOptions: {
@@ -874,7 +875,7 @@ export const leadFields: INodeProperties[] = [
],
},
},
description: 'ID of the campaign that needs to be fetched',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Options',
@@ -977,14 +978,14 @@ export const leadFields: INodeProperties[] = [
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',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the user who owns the note',
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/nodes/expressions.html#expressions">expression</a>.',
},
],
},

View File

@@ -67,6 +67,7 @@ export const opportunityFields: INodeProperties[] = [
/* opportunity:create */
/* -------------------------------------------------------------------------- */
{
// eslint-disable-next-line n8n-nodes-base/node-param-display-name-wrong-for-dynamic-options
displayName: 'Match Against',
name: 'externalId',
type: 'options',
@@ -88,7 +89,7 @@ export const opportunityFields: INodeProperties[] = [
],
},
},
description: 'The field to check to see if the opportunity already exists',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value to Match',
@@ -147,7 +148,7 @@ export const opportunityFields: INodeProperties[] = [
description: 'Required. Date when the opportunity is expected to close.',
},
{
displayName: 'Stage Name',
displayName: 'Stage Name or ID',
name: 'stageName',
type: 'options',
typeOptions: {
@@ -166,7 +167,7 @@ export const opportunityFields: INodeProperties[] = [
],
},
},
description: 'Required. Date when the opportunity is expected to close.',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Additional Fields',
@@ -187,14 +188,14 @@ export const opportunityFields: INodeProperties[] = [
},
options: [
{
displayName: 'Account',
displayName: 'Account Name or ID',
name: 'accountId',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
description: 'ID of the account associated with this opportunity',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Amount',
@@ -207,14 +208,14 @@ export const opportunityFields: INodeProperties[] = [
description: 'Estimated total sale amount',
},
{
displayName: 'Campaign',
displayName: 'Campaign Name or ID',
name: 'campaignId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
default: '',
description: 'ID of the campaign that needs to be fetched',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Custom Fields',
@@ -232,14 +233,14 @@ export const opportunityFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -267,14 +268,14 @@ export const opportunityFields: INodeProperties[] = [
description: 'It is implied, but not directly controlled, by the StageName field',
},
{
displayName: 'Lead Source',
displayName: 'Lead Source Name or ID',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained',
description: 'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Next Step',
@@ -284,14 +285,14 @@ export const opportunityFields: INodeProperties[] = [
description: 'Description of next task in closing opportunity. Limit: 255 characters.',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the opportunity',
description: 'The owner of the opportunity. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Phone',
@@ -376,14 +377,14 @@ export const opportunityFields: INodeProperties[] = [
},
options: [
{
displayName: 'Account',
displayName: 'Account Name or ID',
name: 'accountId',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
description: 'ID of the account associated with this opportunity',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Amount',
@@ -396,14 +397,14 @@ export const opportunityFields: INodeProperties[] = [
description: 'Estimated total sale amount',
},
{
displayName: 'Campaign',
displayName: 'Campaign Name or ID',
name: 'campaignId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
default: '',
description: 'ID of the campaign that needs to be fetched',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Close Date',
@@ -428,14 +429,14 @@ export const opportunityFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -463,14 +464,14 @@ export const opportunityFields: INodeProperties[] = [
description: 'It is implied, but not directly controlled, by the StageName field',
},
{
displayName: 'Lead Source',
displayName: 'Lead Source Name or ID',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained',
description: 'Source from which the lead was obtained. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Name',
@@ -487,14 +488,14 @@ export const opportunityFields: INodeProperties[] = [
description: 'Description of next task in closing opportunity. Limit: 255 characters.',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the opportunity',
description: 'The owner of the opportunity. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Phone',
@@ -521,14 +522,14 @@ export const opportunityFields: INodeProperties[] = [
description: 'Percentage of estimated confidence in closing the opportunity',
},
{
displayName: 'Stage Name',
displayName: 'Stage Name or ID',
name: 'stageName',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getStages',
},
default: '',
description: 'Required. Date when the opportunity is expected to close.',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Type',
@@ -671,14 +672,14 @@ export const opportunityFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getOpportunityFields',
},
default: '',
description: 'For date, number, or boolean, please use expressions',
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/nodes/expressions.html#expressions">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -686,6 +687,14 @@ export const opportunityFields: INodeProperties[] = [
name: 'operation',
type: 'options',
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -694,18 +703,10 @@ export const opportunityFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},
@@ -803,14 +804,14 @@ export const opportunityFields: INodeProperties[] = [
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',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the user who owns the note',
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/nodes/expressions.html#expressions">expression</a>.',
},
],
},

View File

@@ -57,7 +57,7 @@ export const taskFields: INodeProperties[] = [
/* task:create */
/* -------------------------------------------------------------------------- */
{
displayName: 'Status',
displayName: 'Status Name or ID',
name: 'status',
type: 'options',
required: true,
@@ -75,7 +75,7 @@ export const taskFields: INodeProperties[] = [
typeOptions: {
loadOptionsMethod: 'getTaskStatuses',
},
description: 'The current status of the task, such as In Progress or Completed',
description: 'The current status of the task, such as In Progress or Completed. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Additional Fields',
@@ -129,14 +129,14 @@ export const taskFields: INodeProperties[] = [
description: 'Name of a call center. Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center.',
},
{
displayName: 'Call Type',
displayName: 'Call Type Name or ID',
name: 'callType',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskCallTypes',
},
description: 'The type of call being answered: Inbound, Internal, or Outbound',
description: 'The type of call being answered: Inbound, Internal, or Outbound. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Custom Fields',
@@ -154,14 +154,14 @@ export const taskFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -192,44 +192,44 @@ export const taskFields: INodeProperties[] = [
description: 'Whether a popup reminder has been set for the task (true) or not (false)',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the User who owns the record',
description: 'ID of the User who owns the record. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Priority',
displayName: 'Priority Name or ID',
name: 'priority',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskPriorities',
},
description: 'Indicates the importance or urgency of a task, such as high or low',
description: 'Indicates the importance or urgency of a task, such as high or low. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Recurrence Type',
displayName: 'Recurrence Type Name or ID',
name: 'recurrenceType',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskRecurrenceTypes',
},
description: 'Recurrence Type of the task',
description: 'Recurrence Type of the task. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Recurrence Instance',
displayName: 'Recurrence Instance Name or ID',
name: 'recurrenceInstance',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTaskRecurrenceInstances',
},
default: '',
description: 'The frequency of the recurring task. For example, “2nd” or “3rd.”.',
description: 'The frequency of the recurring task. For example, “2nd” or “3rd.”. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Recurrence Interval',
@@ -263,6 +263,7 @@ export const taskFields: INodeProperties[] = [
displayName: 'Recurrence Month Of Year',
name: 'recurrenceMonthOfYear',
type: 'options',
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: 'January',
@@ -359,24 +360,24 @@ export const taskFields: INodeProperties[] = [
description: 'Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to true. If IsReminderSet is set to false, then the user may have deselected the reminder checkbox in the Salesforce user interface, or the reminder has already fired at the time indicated by the value.',
},
{
displayName: 'Subject',
displayName: 'Subject Name or ID',
name: 'subject',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskSubjects',
},
description: 'The subject line of the task, such as “Call” or “Send Quote.” Limit: 255 characters',
description: 'The subject line of the task, such as “Call” or “Send Quote.” Limit: 255 characters. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Type',
displayName: 'Type Name or ID',
name: 'type',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskTypes',
},
description: 'Represents Type of the task, such as Call or Meeting',
description: 'Represents Type of the task, such as Call or Meeting. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'What ID',
@@ -468,14 +469,14 @@ export const taskFields: INodeProperties[] = [
description: 'Name of a call center. Limit is 255 characters. Not subject to field-level security, available for any user in an organization with Salesforce CRM Call Center.',
},
{
displayName: 'Call Type',
displayName: 'Call Type Name or ID',
name: 'callType',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskCallTypes',
},
description: 'The type of call being answered: Inbound, Internal, or Outbound',
description: 'The type of call being answered: Inbound, Internal, or Outbound. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Custom Fields',
@@ -493,14 +494,14 @@ export const taskFields: INodeProperties[] = [
displayName: 'Custom Field',
values: [
{
displayName: 'Field ID',
displayName: 'Field Name or ID',
name: 'fieldId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCustomFields',
},
default: '',
description: 'The ID of the field to add custom field to',
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/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Value',
@@ -531,44 +532,44 @@ export const taskFields: INodeProperties[] = [
description: 'Whether a popup reminder has been set for the task (true) or not (false)',
},
{
displayName: 'Owner',
displayName: 'Owner Name or ID',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'ID of the User who owns the record',
description: 'ID of the User who owns the record. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Priority',
displayName: 'Priority Name or ID',
name: 'priority',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskPriorities',
},
description: 'Indicates the importance or urgency of a task, such as high or low',
description: 'Indicates the importance or urgency of a task, such as high or low. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Status',
displayName: 'Status Name or ID',
name: 'status',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskStatuses',
},
description: 'The current status of the task, such as In Progress or Completed',
description: 'The current status of the task, such as In Progress or Completed. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Subject',
displayName: 'Subject Name or ID',
name: 'subject',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskSubjects',
},
description: 'The subject line of the task, such as “Call” or “Send Quote.” Limit: 255 characters',
description: 'The subject line of the task, such as “Call” or “Send Quote.” Limit: 255 characters. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Recurrence Day Of Month',
@@ -592,14 +593,14 @@ export const taskFields: INodeProperties[] = [
description: 'The last date on which the task repeats. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone.',
},
{
displayName: 'Recurrence Instance',
displayName: 'Recurrence Instance Name or ID',
name: 'recurrenceInstance',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTaskRecurrenceInstances',
},
default: '',
description: 'The frequency of the recurring task. For example, “2nd” or “3rd.”.',
description: 'The frequency of the recurring task. For example, “2nd” or “3rd.”. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Recurrence Interval',
@@ -612,6 +613,7 @@ export const taskFields: INodeProperties[] = [
displayName: 'Recurrence Month Of Year',
name: 'recurrenceMonthOfYear',
type: 'options',
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: 'January',
@@ -694,14 +696,14 @@ export const taskFields: INodeProperties[] = [
description: 'Represents what triggers a repeating task to repeat. Add this field to a page layout together with the RecurrenceInterval field, which determines the number of days between the triggering date (due date or close date) and the due date of the next repeating task in the series. Label is Repeat This Task.',
},
{
displayName: 'Recurrence Type',
displayName: 'Recurrence Type Name or ID',
name: 'recurrenceType',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskRecurrenceTypes',
},
description: 'Website for the task',
description: 'Website for the task. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Recurrence TimeZone SidKey',
@@ -718,14 +720,14 @@ export const taskFields: INodeProperties[] = [
description: 'Represents the time when the reminder is scheduled to fire, if IsReminderSet is set to true. If IsReminderSet is set to false, then the user may have deselected the reminder checkbox in the Salesforce user interface, or the reminder has already fired at the time indicated by the value.',
},
{
displayName: 'Type',
displayName: 'Type Name or ID',
name: 'type',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getTaskTypes',
},
description: 'Represents Type of the task, such as Call or Meeting',
description: 'Represents Type of the task, such as Call or Meeting. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'What ID',
@@ -865,14 +867,14 @@ export const taskFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getTaskFields',
},
default: '',
description: 'For date, number, or boolean, please use expressions',
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/nodes/expressions.html#expressions">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -880,6 +882,14 @@ export const taskFields: INodeProperties[] = [
name: 'operation',
type: 'options',
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -888,18 +898,10 @@ export const taskFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},

View File

@@ -132,14 +132,14 @@ export const userFields: INodeProperties[] = [
displayName: 'Condition',
values: [
{
displayName: 'Field',
displayName: 'Field Name or ID',
name: 'field',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUserFields',
},
default: '',
description: 'For date, number, or boolean, please use expressions',
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/nodes/expressions.html#expressions">expression</a>.',
},
// eslint-disable-next-line n8n-nodes-base/node-param-operation-without-no-data-expression
{
@@ -147,6 +147,14 @@ export const userFields: INodeProperties[] = [
name: 'operation',
type: 'options',
options: [
{
name: '<',
value: '<',
},
{
name: '<=',
value: '<=',
},
{
name: '=',
value: 'equal',
@@ -155,18 +163,10 @@ export const userFields: INodeProperties[] = [
name: '>',
value: '>',
},
{
name: '<',
value: '<',
},
{
name: '>=',
value: '>=',
},
{
name: '<=',
value: '<=',
},
],
default: 'equal',
},