mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Enforce type checking in all node params (#2509)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { INodeProperties } from 'n8n-workflow';
|
||||
|
||||
export const payoutOperations = [
|
||||
export const payoutOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -27,9 +27,9 @@ export const payoutOperations = [
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const payoutFields = [
|
||||
export const payoutFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* payout:create */
|
||||
@@ -216,6 +216,7 @@ export const payoutFields = [
|
||||
displayName: 'Items',
|
||||
name: 'itemsJson',
|
||||
type: 'json',
|
||||
default: '',
|
||||
typeOptions: {
|
||||
alwaysOpenEditWindow: true,
|
||||
},
|
||||
@@ -283,6 +284,7 @@ export const payoutFields = [
|
||||
displayName: 'Payout Batch Id',
|
||||
name: 'payoutBatchId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
@@ -338,10 +340,10 @@ export const payoutFields = [
|
||||
description: 'If all results should be returned or only up to a given limit.',
|
||||
},
|
||||
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
|
||||
export const payoutItemOperations = [
|
||||
export const payoutItemOperations: INodeProperties[] = [
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
@@ -368,9 +370,9 @@ export const payoutItemOperations = [
|
||||
default: 'get',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
export const payoutItemFields = [
|
||||
export const payoutItemFields: INodeProperties[] = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* payoutItem:get */
|
||||
@@ -416,4 +418,4 @@ export const payoutItemFields = [
|
||||
},
|
||||
description: 'The ID of the payout item to cancel.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user