Enforce type checking in all node params (#2509)

This commit is contained in:
Iván Ovejero
2021-12-03 09:44:16 +01:00
committed by GitHub
parent ca761c88c8
commit a783288338
527 changed files with 2289 additions and 2259 deletions

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const couponOperations = [
export const couponOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const couponOperations = [
default: 'create',
description: 'The operation to perform.',
},
] as INodeProperties[];
];
export const couponFields = [
export const couponFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* coupon:create */
/* -------------------------------------------------------------------------- */
@@ -867,4 +867,4 @@ export const couponFields = [
],
},
] as INodeProperties[];
];

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const orderOperations = [
export const orderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const orderOperations = [
default: 'get',
description: 'The operation to perform.',
},
] as INodeProperties[];
];
export const orderFields = [
export const orderFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* order:get */
@@ -49,4 +49,4 @@ export const orderFields = [
},
description: 'The identifier of the buyers checkout.',
},
] as INodeProperties[];
];

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const paymentOperations = [
export const paymentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const paymentOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
] as INodeProperties[];
];
export const paymentFields = [
export const paymentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* payment:getAll */
/* -------------------------------------------------------------------------- */
@@ -245,4 +245,4 @@ export const paymentFields = [
},
description: 'Date you want to move the payment to.',
},
] as INodeProperties[];
];

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const planOperations = [
export const planOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const planOperations = [
default: 'get',
description: 'The operation to perform.',
},
] as INodeProperties[];
];
export const planFields = [
export const planFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* plan:get */
@@ -95,4 +95,4 @@ export const planFields = [
default: 100,
description: 'How many results to return.',
},
] as INodeProperties[];
];

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const productOperations = [
export const productOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const productOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
] as INodeProperties[];
];
export const productFields = [
export const productFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -68,4 +68,4 @@ export const productFields = [
default: 100,
description: 'How many results to return.',
},
] as INodeProperties[];
];

View File

@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
export const userOperations = [
export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const userOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
] as INodeProperties[];
];
export const userFields = [
export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:getAll */
/* -------------------------------------------------------------------------- */
@@ -173,4 +173,4 @@ export const userFields = [
},
],
},
] as INodeProperties[];
];