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

@@ -115,9 +115,9 @@ export const agentFields: INodeProperties[] = [
name: 'roleProperties',
values: [
{
displayName: 'Role Name/ID',
displayName: 'Role Name or ID',
name: 'role',
description: 'Name of the role to assign to the agent. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Name of the role to assign to the agent. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAgentRoles',
@@ -224,11 +224,11 @@ export const agentFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Location Name/ID',
displayName: 'Location Name or ID',
name: 'location_id',
type: 'options',
default: '',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
typeOptions: {
loadOptionsMethod: 'getLocations',
},
@@ -265,6 +265,7 @@ export const agentFields: INodeProperties[] = [
type: 'options',
description: 'ID of the level of the agent in the Arcade',
default: 1,
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: 'Beginner',
@@ -422,11 +423,11 @@ export const agentFields: INodeProperties[] = [
},
options: [
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department to which the agent belongs. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department to which the agent belongs. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -463,11 +464,11 @@ export const agentFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Location Name/ID',
displayName: 'Location Name or ID',
name: 'location_id',
type: 'options',
default: '',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list or specify an ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getLocations',
},
@@ -579,11 +580,11 @@ export const agentFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Location Name/ID',
displayName: 'Location Name or ID',
name: 'location_id',
type: 'options',
default: '',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list or specify an ID. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getLocations',
},
@@ -620,6 +621,7 @@ export const agentFields: INodeProperties[] = [
type: 'options',
description: 'ID of the level of the agent in the Arcade',
default: 1,
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: 'Beginner',

View File

@@ -91,14 +91,14 @@ export const agentGroupFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Escalate to Agent Name/ID',
displayName: 'Escalate to Agent Name or ID',
name: 'escalate_to',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
description: 'ID of the user to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the user to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
},
{
displayName: 'Member Names/IDs',
@@ -128,37 +128,37 @@ export const agentGroupFields: INodeProperties[] = [
default: '30m',
options: [
{
name: '30 Minutes',
value: '30m',
name: '1 Day',
value: '1d',
},
{
name: '1 Hour',
value: '1h',
},
{
name: '2 Hours',
value: '2h',
},
{
name: '8 Hours',
value: '8h',
},
{
name: '12 Hours',
value: '12h',
},
{
name: '1 Day',
value: '1d',
},
{
name: '2 Days',
value: '2d',
},
{
name: '2 Hours',
value: '2h',
},
{
name: '3 Days',
value: '3d',
},
{
name: '30 Minutes',
value: '30m',
},
{
name: '8 Hours',
value: '8h',
},
],
},
],
@@ -297,11 +297,11 @@ export const agentGroupFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Escalate to Agent Names/IDs',
displayName: 'Escalate to Agent Name or ID',
name: 'escalate_to',
type: 'options',
default: '',
description: 'ID of the agent to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -340,37 +340,37 @@ export const agentGroupFields: INodeProperties[] = [
default: '30m',
options: [
{
name: '30 Minutes',
value: '30m',
name: '1 Day',
value: '1d',
},
{
name: '1 Hour',
value: '1h',
},
{
name: '2 Hours',
value: '2h',
},
{
name: '8 Hours',
value: '8h',
},
{
name: '12 Hours',
value: '12h',
},
{
name: '1 Day',
value: '1d',
},
{
name: '2 Days',
value: '2d',
},
{
name: '2 Hours',
value: '2h',
},
{
name: '3 Days',
value: '3d',
},
{
name: '30 Minutes',
value: '30m',
},
{
name: '8 Hours',
value: '8h',
},
],
},
],

View File

@@ -68,10 +68,10 @@ export const assetFields: INodeProperties[] = [
},
},
{
displayName: 'Asset Type Name/ID',
displayName: 'Asset Type Name or ID',
name: 'assetTypeId',
type: 'options',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
required: true,
default: '',
typeOptions: {
@@ -113,7 +113,7 @@ export const assetFields: INodeProperties[] = [
displayName: 'Asset Field',
values: [
{
displayName: 'Name/ID',
displayName: 'Name or ID',
name: 'name',
type: 'options',
typeOptions: {
@@ -123,7 +123,7 @@ export const assetFields: INodeProperties[] = [
loadOptionsMethod: 'getAssetTypeFields',
},
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',
@@ -241,11 +241,11 @@ export const assetFields: INodeProperties[] = [
},
options: [
{
displayName: 'Agent Name/ID',
displayName: 'Agent Name or ID',
name: 'agent_id',
type: 'options',
default: '',
description: 'ID of the agent by whom the asset is managed. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent by whom the asset is managed. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -258,31 +258,31 @@ export const assetFields: INodeProperties[] = [
description: 'Status of the asset to filter by. For example, "In use".',
},
{
displayName: 'Asset Type Name/ID',
displayName: 'Asset Type Name or ID',
name: 'asset_type_id',
type: 'options',
default: '',
description: 'ID of the asset type to filter by. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the asset type to filter by. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAssetTypes',
},
},
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department to which the asset belongs. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department to which the asset belongs. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
},
{
displayName: 'Location Name/ID',
displayName: 'Location Name or ID',
name: 'location_id',
type: 'options',
default: '',
description: 'ID of the location to filter by. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the location to filter by. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getLocations',
},
@@ -343,7 +343,7 @@ export const assetFields: INodeProperties[] = [
displayName: 'Asset Field',
values: [
{
displayName: 'Name/ID',
displayName: 'Name or ID',
name: 'name',
type: 'options',
typeOptions: {
@@ -353,7 +353,7 @@ export const assetFields: INodeProperties[] = [
loadOptionsMethod: 'getAssetTypeFields',
},
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',

View File

@@ -91,9 +91,9 @@ export const assetTypeFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Parent Asset Type Name/ID',
displayName: 'Parent Asset Type Name or ID',
name: 'parent_asset_type_id',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
type: 'options',
default: '',
typeOptions: {

View File

@@ -51,8 +51,9 @@ export const changeFields: INodeProperties[] = [
// change: create
// ----------------------------------------
{
displayName: 'Requester Name/ID',
displayName: 'Requester Name or ID',
name: 'requesterId',
// eslint-disable-next-line n8n-nodes-base/node-param-description-wrong-for-dynamic-options
description: 'ID of the requester of the change. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
type: 'options',
required: true,
@@ -140,11 +141,11 @@ export const changeFields: INodeProperties[] = [
},
options: [
{
displayName: 'Agent Name/ID',
displayName: 'Agent Name or ID',
name: 'agent_id',
type: 'options',
default: '',
description: 'ID of the agent to whom the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent to whom the change is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -174,11 +175,11 @@ export const changeFields: INodeProperties[] = [
],
},
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department requesting the change. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department requesting the change. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -191,11 +192,11 @@ export const changeFields: INodeProperties[] = [
description: 'HTML supported',
},
{
displayName: 'Group Name/ID',
displayName: 'Group Name or ID',
name: 'group_id',
type: 'options',
default: '',
description: 'ID of the agent group to which the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent group to which the change is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -273,6 +274,7 @@ export const changeFields: INodeProperties[] = [
name: 'status',
type: 'options',
default: 1,
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: 'Open',
@@ -505,11 +507,11 @@ export const changeFields: INodeProperties[] = [
},
options: [
{
displayName: 'Agent Name/ID',
displayName: 'Agent Name or ID',
name: 'agent_id',
type: 'options',
default: '',
description: 'ID of the agent to whom the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent to whom the change is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
@@ -539,11 +541,11 @@ export const changeFields: INodeProperties[] = [
],
},
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department requesting the change. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department requesting the change. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -556,11 +558,11 @@ export const changeFields: INodeProperties[] = [
description: 'HTML supported',
},
{
displayName: 'Group Name/ID',
displayName: 'Group Name or ID',
name: 'group_id',
type: 'options',
default: '',
description: 'ID of the agent group to which the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent group to which the change is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -611,11 +613,11 @@ export const changeFields: INodeProperties[] = [
],
},
{
displayName: 'Requester Name/ID',
displayName: 'Requester Name or ID',
name: 'requester_id',
type: 'options',
default: '',
description: 'ID of the requester of the change. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the requester of the change. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getRequesters',
},
@@ -649,6 +651,7 @@ export const changeFields: INodeProperties[] = [
name: 'status',
type: 'options',
default: 1,
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: 'Open',

View File

@@ -68,9 +68,9 @@ export const problemFields: INodeProperties[] = [
},
},
{
displayName: 'Requester Name/ID',
displayName: 'Requester Name or ID',
name: 'requesterId',
description: 'ID of the initiator of the problem. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the initiator of the problem. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
type: 'options',
required: true,
default: '',
@@ -123,21 +123,21 @@ export const problemFields: INodeProperties[] = [
},
options: [
{
displayName: 'Agent Name/ID',
displayName: 'Agent Name or ID',
name: 'agent_id',
type: 'options',
default: '',
description: 'ID of the agent to whom the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent to whom the problem is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
},
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department initiating the problem. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department initiating the problem. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -150,11 +150,11 @@ export const problemFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Group Name/ID',
displayName: 'Group Name or ID',
name: 'group_id',
type: 'options',
default: '',
description: 'ID of the agent group to which the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent group to which the problem is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -353,21 +353,21 @@ export const problemFields: INodeProperties[] = [
},
options: [
{
displayName: 'Agent Name/ID',
displayName: 'Agent Name or ID',
name: 'agent_id',
type: 'options',
default: '',
description: 'ID of the agent to whom the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent to whom the problem is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
},
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department initiating the problem. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department initiating the problem. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -387,11 +387,11 @@ export const problemFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Group Name/ID',
displayName: 'Group Name or ID',
name: 'group_id',
type: 'options',
default: '',
description: 'ID of the agent group to which the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent group to which the problem is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -441,11 +441,11 @@ export const problemFields: INodeProperties[] = [
],
},
{
displayName: 'Requester Name/ID',
displayName: 'Requester Name or ID',
name: 'requester_id',
type: 'options',
default: '',
description: 'ID of the initiator of the problem. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the initiator of the problem. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getRequesters',
},

View File

@@ -51,10 +51,10 @@ export const productFields: INodeProperties[] = [
// product: create
// ----------------------------------------
{
displayName: 'Asset Type Name/ID',
displayName: 'Asset Type Name or ID',
name: 'assetTypeId',
type: 'options',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
required: true,
default: '',
typeOptions: {
@@ -288,10 +288,10 @@ export const productFields: INodeProperties[] = [
},
options: [
{
displayName: 'Asset Type Name/ID',
displayName: 'Asset Type Name or ID',
name: 'asset_type_id',
type: 'options',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
default: '',
typeOptions: {
loadOptionsMethod: 'getAssetTypes',

View File

@@ -150,6 +150,7 @@ export const releaseFields: INodeProperties[] = [
],
},
},
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: 'Open',
@@ -225,11 +226,11 @@ export const releaseFields: INodeProperties[] = [
},
options: [
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department initiating the release. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department initiating the release. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -242,11 +243,11 @@ export const releaseFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Group Name/ID',
displayName: 'Group Name or ID',
name: 'group_id',
type: 'options',
default: '',
description: 'ID of the agent group to which the release is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent group to which the release is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -381,11 +382,11 @@ export const releaseFields: INodeProperties[] = [
},
options: [
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department initiating the release. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department initiating the release. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -398,11 +399,11 @@ export const releaseFields: INodeProperties[] = [
description: 'HTML supported',
},
{
displayName: 'Group Name/ID',
displayName: 'Group Name or ID',
name: 'group_id',
type: 'options',
default: '',
description: 'ID of the agent group to which the release is assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent group to which the release is assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -460,6 +461,7 @@ export const releaseFields: INodeProperties[] = [
name: 'status',
type: 'options',
default: 1,
// eslint-disable-next-line n8n-nodes-base/node-param-options-type-unsorted-items
options: [
{
name: 'Open',

View File

@@ -143,9 +143,9 @@ export const requesterFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Location ID',
displayName: 'Location Name or ID',
name: 'location_id',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
type: 'options',
default: '',
typeOptions: {
@@ -295,9 +295,9 @@ export const requesterFields: INodeProperties[] = [
},
options: [
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
type: 'options',
default: '',
typeOptions: {
@@ -330,10 +330,10 @@ export const requesterFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Location Name/ID',
displayName: 'Location Name or ID',
name: 'location_id',
type: 'options',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
default: '',
typeOptions: {
loadOptionsMethod: 'getLocations',
@@ -446,11 +446,11 @@ export const requesterFields: INodeProperties[] = [
default: '',
},
{
displayName: 'Location Name/ID',
displayName: 'Location Name or ID',
name: 'location_id',
type: 'options',
default: '',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
typeOptions: {
loadOptionsMethod: 'getLocations',
},

View File

@@ -194,21 +194,21 @@ export const ticketFields: INodeProperties[] = [
description: 'Comma-separated email addresses to add in the CC field of the ticket email',
},
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department to which this ticket belongs. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department to which this ticket belongs. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
},
{
displayName: 'Group Name/ID',
displayName: 'Group Name or ID',
name: 'group_id',
type: 'options',
default: '',
description: 'ID of the group to which the ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the group to which the ticket has been assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -241,10 +241,10 @@ export const ticketFields: INodeProperties[] = [
description: 'Name of the ticket author',
},
{
displayName: 'Requester Name/ID',
displayName: 'Requester Name or ID',
name: 'requester_id',
type: 'options',
description: 'Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>',
default: '',
typeOptions: {
loadOptionsMethod: 'getRequesters',
@@ -358,21 +358,21 @@ export const ticketFields: INodeProperties[] = [
},
options: [
{
displayName: 'Agent Name/ID',
displayName: 'Agent Name or ID',
name: 'agent_id',
type: 'options',
default: '',
description: 'ID of the agent to whom the tickets have been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the agent to whom the tickets have been assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgents',
},
},
{
displayName: 'Group Name/ID',
displayName: 'Group Name or ID',
name: 'group_id',
type: 'options',
default: '',
description: 'ID of the group to which the tickets have been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the group to which the tickets have been assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},
@@ -501,11 +501,11 @@ export const ticketFields: INodeProperties[] = [
},
options: [
{
displayName: 'Department Name/ID',
displayName: 'Department Name or ID',
name: 'department_id',
type: 'options',
default: '',
description: 'ID of the department to which this ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the department to which this ticket has been assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getDepartments',
},
@@ -525,11 +525,11 @@ export const ticketFields: INodeProperties[] = [
description: 'Email address of the ticket author',
},
{
displayName: 'Group Name/ID',
displayName: 'Group Name or ID',
name: 'group_id',
type: 'options',
default: '',
description: 'ID of the group to which the ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
description: 'ID of the group to which the ticket has been assigned. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
typeOptions: {
loadOptionsMethod: 'getAgentGroups',
},