⚡ Enforce type checking in all node params (#2509)
This commit is contained in:
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const agentGroupOperations = [
|
||||
export const agentGroupOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const agentGroupOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const agentGroupFields = [
|
||||
export const agentGroupFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// agentGroup: create
|
||||
// ----------------------------------------
|
||||
@@ -95,9 +95,7 @@ export const agentGroupFields = [
|
||||
type: 'options',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgents',
|
||||
],
|
||||
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>.',
|
||||
},
|
||||
@@ -108,9 +106,7 @@ export const agentGroupFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of agents who are members of this group. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -120,9 +116,7 @@ export const agentGroupFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated agent IDs who are observers of this group. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -308,9 +302,7 @@ export const agentGroupFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgents',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -320,9 +312,7 @@ export const agentGroupFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of agents who are members of this group. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -338,9 +328,7 @@ export const agentGroupFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated agent user IDs who are observers of this group. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -386,4 +374,4 @@ export const agentGroupFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user