mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +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 contactOperations = [
|
||||
export const contactOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -39,9 +39,9 @@ export const contactOperations = [
|
||||
default: 'upsert',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const contactFields = [
|
||||
export const contactFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:upsert */
|
||||
@@ -366,4 +366,4 @@ export const contactFields = [
|
||||
default: 100,
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const contactJourneyOperations = [
|
||||
export const contactJourneyOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -24,9 +24,9 @@ export const contactJourneyOperations = [
|
||||
default: 'add',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const contactJourneyFields = [
|
||||
export const contactJourneyFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contactJourney:add */
|
||||
@@ -70,4 +70,4 @@ export const contactJourneyFields = [
|
||||
default: '',
|
||||
description: 'Can be ID or email.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const contactListOperations = [
|
||||
export const contactListOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -39,9 +39,9 @@ export const contactListOperations = [
|
||||
default: 'add',
|
||||
description: 'Operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const contactListFields = [
|
||||
export const contactListFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contactList:add */
|
||||
@@ -135,4 +135,4 @@ export const contactListFields = [
|
||||
default: 100,
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const listOperations = [
|
||||
export const listOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -29,9 +29,9 @@ export const listOperations = [
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const listFields = [
|
||||
export const listFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* list:create */
|
||||
@@ -99,4 +99,4 @@ export const listFields = [
|
||||
default: 100,
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user