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 attachmentOperations = [
|
||||
export const attachmentOperations: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// attachment
|
||||
// ----------------------------------
|
||||
@@ -43,9 +43,9 @@ export const attachmentOperations = [
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const attachmentFields = [
|
||||
export const attachmentFields: INodeProperties[] = [
|
||||
|
||||
// ----------------------------------
|
||||
// attachment:create
|
||||
@@ -275,4 +275,4 @@ export const attachmentFields = [
|
||||
],
|
||||
},
|
||||
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const boardOperations = [
|
||||
export const boardOperations: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// board
|
||||
// ----------------------------------
|
||||
@@ -42,9 +42,9 @@ export const boardOperations = [
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const boardFields = [
|
||||
export const boardFields: INodeProperties[] = [
|
||||
|
||||
// ----------------------------------
|
||||
// board:create
|
||||
@@ -456,4 +456,4 @@ export const boardFields = [
|
||||
],
|
||||
},
|
||||
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const cardCommentOperations = [
|
||||
export const cardCommentOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -34,9 +34,9 @@ export const cardCommentOperations = [
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const cardCommentFields = [
|
||||
export const cardCommentFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// cardComment:create
|
||||
// ----------------------------------
|
||||
@@ -174,4 +174,4 @@ export const cardCommentFields = [
|
||||
},
|
||||
description: 'Text of the comment',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const cardOperations = [
|
||||
export const cardOperations: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// card
|
||||
// ----------------------------------
|
||||
@@ -42,9 +42,9 @@ export const cardOperations = [
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const cardFields = [
|
||||
export const cardFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// card:create
|
||||
// ----------------------------------
|
||||
@@ -428,4 +428,4 @@ export const cardFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const checklistOperations = [
|
||||
export const checklistOperations: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// checklist
|
||||
// ----------------------------------
|
||||
@@ -68,9 +68,9 @@ export const checklistOperations = [
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const checklistFields = [
|
||||
export const checklistFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// checklist:create
|
||||
// ----------------------------------
|
||||
@@ -605,4 +605,4 @@ export const checklistFields = [
|
||||
],
|
||||
},
|
||||
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const labelOperations = [
|
||||
export const labelOperations: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// label
|
||||
// ----------------------------------
|
||||
@@ -59,9 +59,9 @@ export const labelOperations = [
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const labelFields = [
|
||||
export const labelFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// label:create
|
||||
// ----------------------------------
|
||||
@@ -466,4 +466,4 @@ export const labelFields = [
|
||||
],
|
||||
},
|
||||
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties,
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const listOperations = [
|
||||
export const listOperations: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// list
|
||||
// ----------------------------------
|
||||
@@ -52,9 +52,9 @@ export const listOperations = [
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const listFields = [
|
||||
export const listFields: INodeProperties[] = [
|
||||
// ----------------------------------
|
||||
// list:archive
|
||||
// ----------------------------------
|
||||
@@ -460,4 +460,4 @@ export const listFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user