⚡ Enforce type checking in all node params (#2509)
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
LANGUAGES,
|
||||
} from '../constants';
|
||||
|
||||
export const agentOperations = [
|
||||
export const agentOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -47,9 +47,9 @@ export const agentOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const agentFields = [
|
||||
export const agentFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// agent: create
|
||||
// ----------------------------------------
|
||||
@@ -119,9 +119,7 @@ export const agentFields = [
|
||||
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>.',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgentRoles',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentRoles',
|
||||
},
|
||||
required: true,
|
||||
default: '',
|
||||
@@ -158,9 +156,7 @@ export const agentFields = [
|
||||
description: 'Groups in which the permissions granted by the role apply. Required only when Scope is Specified Groups - ignored otherwise. Choose from the list or specify an ID using an <a href="https://docs.n8n.io/nodes/expressions.html#expressions">expression</a>.',
|
||||
type: 'multiOptions',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgentGroups',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
default: [],
|
||||
},
|
||||
@@ -204,9 +200,7 @@ export const agentFields = [
|
||||
default: [],
|
||||
description: 'IDs of the departments 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',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -235,9 +229,7 @@ export const agentFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getLocations',
|
||||
],
|
||||
loadOptionsMethod: 'getLocations',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -247,9 +239,7 @@ export const agentFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of the groups that the agent is a member of. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -265,9 +255,7 @@ export const agentFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of the groups that the agent is an observer of. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -439,9 +427,7 @@ export const agentFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getDepartments',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -482,9 +468,7 @@ export const agentFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getLocations',
|
||||
],
|
||||
loadOptionsMethod: 'getLocations',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -559,9 +543,7 @@ export const agentFields = [
|
||||
default: [],
|
||||
description: 'IDs of the departments 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',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -602,9 +584,7 @@ export const agentFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getLocations',
|
||||
],
|
||||
loadOptionsMethod: 'getLocations',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -614,9 +594,7 @@ export const agentFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of the groups that the agent is a member of. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -632,9 +610,7 @@ export const agentFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of the groups that the agent is an observer of. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -694,4 +670,4 @@ export const agentFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -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[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const agentRoleOperations = [
|
||||
export const agentRoleOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -28,9 +28,9 @@ export const agentRoleOperations = [
|
||||
],
|
||||
default: 'get',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const agentRoleFields = [
|
||||
export const agentRoleFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// agentRole: get
|
||||
// ----------------------------------------
|
||||
@@ -96,4 +96,4 @@ export const agentRoleFields = [
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const announcementOperations = [
|
||||
export const announcementOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const announcementOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const announcementFields = [
|
||||
export const announcementFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// announcement: create
|
||||
// ----------------------------------------
|
||||
@@ -164,9 +164,7 @@ export const announcementFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of departments that may view this announcement. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -333,9 +331,7 @@ export const announcementFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of departments that may view this announcement. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -366,4 +362,4 @@ export const announcementFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const assetOperations = [
|
||||
export const assetOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const assetOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const assetFields = [
|
||||
export const assetFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// asset: create
|
||||
// ----------------------------------------
|
||||
@@ -74,9 +74,7 @@ export const assetFields = [
|
||||
required: true,
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAssetTypes',
|
||||
],
|
||||
loadOptionsMethod: 'getAssetTypes',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
@@ -248,9 +246,7 @@ export const assetFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgents',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -267,9 +263,7 @@ export const assetFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAssetTypes',
|
||||
],
|
||||
loadOptionsMethod: 'getAssetTypes',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -279,9 +273,7 @@ export const assetFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getDepartments',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -291,9 +283,7 @@ export const assetFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getLocations',
|
||||
],
|
||||
loadOptionsMethod: 'getLocations',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -375,4 +365,4 @@ export const assetFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const assetTypeOperations = [
|
||||
export const assetTypeOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const assetTypeOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const assetTypeFields = [
|
||||
export const assetTypeFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// assetType: create
|
||||
// ----------------------------------------
|
||||
@@ -96,9 +96,7 @@ export const assetTypeFields = [
|
||||
type: 'options',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAssetTypes',
|
||||
],
|
||||
loadOptionsMethod: 'getAssetTypes',
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -244,4 +242,4 @@ export const assetTypeFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const changeOperations = [
|
||||
export const changeOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const changeOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const changeFields = [
|
||||
export const changeFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// change: create
|
||||
// ----------------------------------------
|
||||
@@ -57,9 +57,7 @@ export const changeFields = [
|
||||
required: true,
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getRequesters',
|
||||
],
|
||||
loadOptionsMethod: 'getRequesters',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
@@ -147,9 +145,7 @@ export const changeFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgents',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -183,9 +179,7 @@ export const changeFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getDepartments',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -202,9 +196,7 @@ export const changeFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgentGroups',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -518,9 +510,7 @@ export const changeFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgents',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -554,9 +544,7 @@ export const changeFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getDepartments',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -573,9 +561,7 @@ export const changeFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgentGroups',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -630,9 +616,7 @@ export const changeFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getRequesters',
|
||||
],
|
||||
loadOptionsMethod: 'getRequesters',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -699,4 +683,4 @@ export const changeFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const departmentOperations = [
|
||||
export const departmentOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const departmentOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const departmentFields = [
|
||||
export const departmentFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// department: create
|
||||
// ----------------------------------------
|
||||
@@ -272,4 +272,4 @@ export const departmentFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const locationOperations = [
|
||||
export const locationOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const locationOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const locationFields = [
|
||||
export const locationFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// location: create
|
||||
// ----------------------------------------
|
||||
@@ -323,4 +323,4 @@ export const locationFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const problemOperations = [
|
||||
export const problemOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const problemOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const problemFields = [
|
||||
export const problemFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// problem: create
|
||||
// ----------------------------------------
|
||||
@@ -74,9 +74,7 @@ export const problemFields = [
|
||||
required: true,
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getRequesters',
|
||||
],
|
||||
loadOptionsMethod: 'getRequesters',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
@@ -130,9 +128,7 @@ export const problemFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgents',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -142,9 +138,7 @@ export const problemFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getDepartments',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -161,9 +155,7 @@ export const problemFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgentGroups',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -366,9 +358,7 @@ export const problemFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgents',
|
||||
],
|
||||
loadOptionsMethod: 'getAgents',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -378,9 +368,7 @@ export const problemFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getDepartments',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -404,9 +392,7 @@ export const problemFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgentGroups',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -460,9 +446,7 @@ export const problemFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getRequesters',
|
||||
],
|
||||
loadOptionsMethod: 'getRequesters',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -493,4 +477,4 @@ export const problemFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const productOperations = [
|
||||
export const productOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const productOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const productFields = [
|
||||
export const productFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// product: create
|
||||
// ----------------------------------------
|
||||
@@ -57,9 +57,7 @@ export const productFields = [
|
||||
required: true,
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAssetTypes',
|
||||
],
|
||||
loadOptionsMethod: 'getAssetTypes',
|
||||
},
|
||||
displayOptions: {
|
||||
show: {
|
||||
@@ -295,9 +293,7 @@ export const productFields = [
|
||||
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: [
|
||||
'getAssetTypes',
|
||||
],
|
||||
loadOptionsMethod: 'getAssetTypes',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -361,4 +357,4 @@ export const productFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const releaseOperations = [
|
||||
export const releaseOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const releaseOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const releaseFields = [
|
||||
export const releaseFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// release: create
|
||||
// ----------------------------------------
|
||||
@@ -230,9 +230,7 @@ export const releaseFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getDepartments',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -249,9 +247,7 @@ export const releaseFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgentGroups',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -390,9 +386,7 @@ export const releaseFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getDepartments',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -409,9 +403,7 @@ export const releaseFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getAgentGroups',
|
||||
],
|
||||
loadOptionsMethod: 'getAgentGroups',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -498,4 +490,4 @@ export const releaseFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
} from 'n8n-workflow';
|
||||
import { LANGUAGES } from '../constants';
|
||||
|
||||
export const requesterOperations = [
|
||||
export const requesterOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -44,9 +44,9 @@ export const requesterOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const requesterFields = [
|
||||
export const requesterFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// requester: create
|
||||
// ----------------------------------------
|
||||
@@ -119,9 +119,7 @@ export const requesterFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of the departments associated with the requester. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -150,9 +148,7 @@ export const requesterFields = [
|
||||
type: 'options',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getLocations',
|
||||
],
|
||||
loadOptionsMethod: 'getLocations',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -304,9 +300,7 @@ export const requesterFields = [
|
||||
type: 'options',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getDepartments',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -341,9 +335,7 @@ export const requesterFields = [
|
||||
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: [
|
||||
'getLocations',
|
||||
],
|
||||
loadOptionsMethod: 'getLocations',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -424,9 +416,7 @@ export const requesterFields = [
|
||||
default: [],
|
||||
description: 'Comma-separated IDs of the departments associated with the requester. 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',
|
||||
],
|
||||
loadOptionsMethod: 'getDepartments',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -461,9 +451,7 @@ export const requesterFields = [
|
||||
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>.',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: [
|
||||
'getLocations',
|
||||
],
|
||||
loadOptionsMethod: 'getLocations',
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -509,4 +497,4 @@ export const requesterFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const requesterGroupOperations = [
|
||||
export const requesterGroupOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const requesterGroupOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const requesterGroupFields = [
|
||||
export const requesterGroupFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// requesterGroup: create
|
||||
// ----------------------------------------
|
||||
@@ -234,4 +234,4 @@ export const requesterGroupFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const softwareOperations = [
|
||||
export const softwareOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -43,9 +43,9 @@ export const softwareOperations = [
|
||||
],
|
||||
default: 'create',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const softwareFields = [
|
||||
export const softwareFields: INodeProperties[] = [
|
||||
// ----------------------------------------
|
||||
// software: create
|
||||
// ----------------------------------------
|
||||
@@ -344,4 +344,4 @@ export const softwareFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -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