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 cameraProxyOperations = [
|
||||
export const cameraProxyOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -24,9 +24,9 @@ export const cameraProxyOperations = [
|
||||
default: 'getScreenshot',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const cameraProxyFields = [
|
||||
export const cameraProxyFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* cameraProxy:getScreenshot */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -66,4 +66,4 @@ export const cameraProxyFields = [
|
||||
},
|
||||
description: 'Name of the binary property to which to write the data of the read file.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const configOperations = [
|
||||
export const configOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -29,4 +29,4 @@ export const configOperations = [
|
||||
default: 'get',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const eventOperations = [
|
||||
export const eventOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -29,9 +29,9 @@ export const eventOperations = [
|
||||
default: 'getAll',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const eventFields = [
|
||||
export const eventFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* event:getAll */
|
||||
@@ -141,4 +141,4 @@ export const eventFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const historyOperations = [
|
||||
export const historyOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -24,9 +24,9 @@ export const historyOperations = [
|
||||
default: 'getAll',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const historyFields = [
|
||||
export const historyFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* history:getLogbookEntries */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -125,4 +125,4 @@ export const historyFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const logOperations = [
|
||||
export const logOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -29,9 +29,9 @@ export const logOperations = [
|
||||
default: 'getErroLogs',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const logFields = [
|
||||
export const logFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* log:getLogbookEntries */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -75,4 +75,4 @@ export const logFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const serviceOperations = [
|
||||
export const serviceOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -29,9 +29,9 @@ export const serviceOperations = [
|
||||
default: 'getAll',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const serviceFields = [
|
||||
export const serviceFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* service:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -156,4 +156,4 @@ export const serviceFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const stateOperations = [
|
||||
export const stateOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -34,9 +34,9 @@ export const stateOperations = [
|
||||
default: 'get',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const stateFields = [
|
||||
export const stateFields: INodeProperties[] = [
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* state:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
@@ -184,4 +184,4 @@ export const stateFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
@@ -2,7 +2,7 @@ import {
|
||||
INodeProperties
|
||||
} from 'n8n-workflow';
|
||||
|
||||
export const templateOperations = [
|
||||
export const templateOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -24,9 +24,9 @@ export const templateOperations = [
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const templateFields = [
|
||||
export const templateFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* template:create */
|
||||
@@ -49,4 +49,4 @@ export const templateFields = [
|
||||
default: '',
|
||||
description: 'Render a Home Assistant template. <a href="https://www.home-assistant.io/docs/configuration/templating/">See template docs for more information.</a>',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user