mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Enforce type checking in all node params (#2509)
This commit is contained in:
@@ -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[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user