Enforce type checking in all node params (#2509)

This commit is contained in:
Iván Ovejero
2021-12-03 09:44:16 +01:00
committed by GitHub
parent ca761c88c8
commit a783288338
527 changed files with 2289 additions and 2259 deletions

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const ticketOperations = [
export const ticketOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const ticketOperations = [
],
default: 'create',
},
] as INodeProperties[];
];
export const ticketFields = [
export const ticketFields: INodeProperties[] = [
// ----------------------------------------
// ticket: create
// ----------------------------------------
@@ -199,9 +199,7 @@ export const ticketFields = [
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>.',
typeOptions: {
loadOptionsMethod: [
'getDepartments',
],
loadOptionsMethod: 'getDepartments',
},
},
{
@@ -211,9 +209,7 @@ export const ticketFields = [
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>.',
typeOptions: {
loadOptionsMethod: [
'getAgentGroups',
],
loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -250,9 +246,7 @@ export const ticketFields = [
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>.',
default: '',
typeOptions: {
loadOptionsMethod: [
'getRequesters',
],
loadOptionsMethod: 'getRequesters',
},
},
],
@@ -369,9 +363,7 @@ export const ticketFields = [
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>.',
typeOptions: {
loadOptionsMethod: [
'getAgents',
],
loadOptionsMethod: 'getAgents',
},
},
{
@@ -381,9 +373,7 @@ export const ticketFields = [
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>.',
typeOptions: {
loadOptionsMethod: [
'getAgentGroups',
],
loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -516,9 +506,7 @@ export const ticketFields = [
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>.',
typeOptions: {
loadOptionsMethod: [
'getDepartments',
],
loadOptionsMethod: 'getDepartments',
},
},
{
@@ -542,9 +530,7 @@ export const ticketFields = [
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>.',
typeOptions: {
loadOptionsMethod: [
'getAgentGroups',
],
loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -637,4 +623,4 @@ export const ticketFields = [
},
],
},
] as INodeProperties[];
];