mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +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 customFieldOperations = [
|
||||
export const customFieldOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -39,9 +39,9 @@ export const customFieldOperations = [
|
||||
default: 'update',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const customFieldFields = [
|
||||
export const customFieldFields: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Field ID',
|
||||
name: 'id',
|
||||
@@ -121,4 +121,4 @@ export const customFieldFields = [
|
||||
default: 100,
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const formOperations = [
|
||||
export const formOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -34,9 +34,9 @@ export const formOperations = [
|
||||
default: 'addSubscriber',
|
||||
description: 'The operations to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const formFields = [
|
||||
export const formFields: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Form ID',
|
||||
name: 'id',
|
||||
@@ -217,4 +217,4 @@ export const formFields = [
|
||||
],
|
||||
description: 'Receive only active subscribers or cancelled subscribers.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const sequenceOperations = [
|
||||
export const sequenceOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -34,9 +34,9 @@ export const sequenceOperations = [
|
||||
default: 'addSubscriber',
|
||||
description: 'The operations to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const sequenceFields = [
|
||||
export const sequenceFields: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Sequence ID',
|
||||
name: 'id',
|
||||
@@ -227,4 +227,4 @@ export const sequenceFields = [
|
||||
],
|
||||
description: 'Receive only active subscribers or cancelled subscribers.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const tagOperations = [
|
||||
export const tagOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -29,9 +29,9 @@ export const tagOperations = [
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const tagFields = [
|
||||
export const tagFields: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Name',
|
||||
name: 'name',
|
||||
@@ -91,4 +91,4 @@ export const tagFields = [
|
||||
default: 100,
|
||||
description: 'How many results to return.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const tagSubscriberOperations = [
|
||||
export const tagSubscriberOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -34,9 +34,9 @@ export const tagSubscriberOperations = [
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const tagSubscriberFields = [
|
||||
export const tagSubscriberFields: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Tag ID',
|
||||
name: 'tagId',
|
||||
@@ -216,4 +216,4 @@ export const tagSubscriberFields = [
|
||||
],
|
||||
description: 'Receive only active subscribers or cancelled subscribers.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user