diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/AttendanceDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/AttendanceDescription.ts
index 0eacc615b8..4b76624fc2 100644
--- a/packages/nodes-base/nodes/ActionNetwork/descriptions/AttendanceDescription.ts
+++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/AttendanceDescription.ts
@@ -6,7 +6,7 @@ import {
makeSimpleField,
} from './SharedFields';
-export const attendanceOperations = [
+export const attendanceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,9 +35,9 @@ export const attendanceOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const attendanceFields = [
+export const attendanceFields: INodeProperties[] = [
// ----------------------------------------
// attendance: create
// ----------------------------------------
@@ -182,4 +182,4 @@ export const attendanceFields = [
},
},
makeSimpleField('attendance', 'getAll'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/EventDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/EventDescription.ts
index 1e30d2b10a..31de2616bc 100644
--- a/packages/nodes-base/nodes/ActionNetwork/descriptions/EventDescription.ts
+++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/EventDescription.ts
@@ -7,7 +7,7 @@ import {
makeSimpleField,
} from './SharedFields';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -36,9 +36,9 @@ export const eventOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
// ----------------------------------------
// event: create
// ----------------------------------------
@@ -165,4 +165,4 @@ export const eventFields = [
},
},
makeSimpleField('event', 'getAll'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonDescription.ts
index 0e78c679da..f8ce9dd9fe 100644
--- a/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonDescription.ts
+++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonDescription.ts
@@ -7,7 +7,7 @@ import {
personAdditionalFieldsOptions,
} from './SharedFields';
-export const personOperations = [
+export const personOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -40,9 +40,9 @@ export const personOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const personFields = [
+export const personFields: INodeProperties[] = [
// ----------------------------------------
// person: create
// ----------------------------------------
@@ -247,4 +247,4 @@ export const personFields = [
},
options: personAdditionalFieldsOptions,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonTagDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonTagDescription.ts
index 82bbd64b2e..d5715d9feb 100644
--- a/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonTagDescription.ts
+++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/PersonTagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const personTagOperations = [
+export const personTagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const personTagOperations = [
default: 'add',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const personTagFields = [
+export const personTagFields: INodeProperties[] = [
// ----------------------------------------
// personTag: add
// ----------------------------------------
@@ -103,7 +103,9 @@ export const personTagFields = [
description: 'ID of the tagging to remove.',
type: 'options',
typeOptions: {
- loadOptionsDependsOn: 'tagId',
+ loadOptionsDependsOn: [
+ 'tagId',
+ ],
loadOptionsMethod: 'getTaggings',
},
required: true,
@@ -119,4 +121,4 @@ export const personTagFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/PetitionDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/PetitionDescription.ts
index 717a661dad..c7723cee7c 100644
--- a/packages/nodes-base/nodes/ActionNetwork/descriptions/PetitionDescription.ts
+++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/PetitionDescription.ts
@@ -7,7 +7,7 @@ import {
petitionAdditionalFieldsOptions,
} from './SharedFields';
-export const petitionOperations = [
+export const petitionOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -40,9 +40,9 @@ export const petitionOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const petitionFields = [
+export const petitionFields: INodeProperties[] = [
// ----------------------------------------
// petition: create
// ----------------------------------------
@@ -210,4 +210,4 @@ export const petitionFields = [
},
options: petitionAdditionalFieldsOptions,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts
index 321eaa1d97..5ad7166346 100644
--- a/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts
+++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts
@@ -1,9 +1,13 @@
+import {
+ INodeProperties,
+} from 'n8n-workflow';
+
import {
Operation,
Resource,
} from '../types';
-export const languageOptions = [
+export const languageOptions: INodeProperties['options'] = [
{
name: 'Danish',
value: 'da',
@@ -68,9 +72,9 @@ export const languageOptions = [
name: 'Welsh',
value: 'cy',
},
-] as const;
+];
-const postalAddressesFields = [
+const postalAddressesFields: INodeProperties[] = [
{
displayName: 'Primary',
name: 'primary',
@@ -150,7 +154,7 @@ const postalAddressesFields = [
},
];
-export const eventAdditionalFieldsOptions = [
+export const eventAdditionalFieldsOptions: INodeProperties['options'] = [
{
displayName: 'Browser URL',
name: 'browser_url',
@@ -221,7 +225,7 @@ export const eventAdditionalFieldsOptions = [
},
];
-export const personAdditionalFieldsOptions = [
+export const personAdditionalFieldsOptions: INodeProperties['options'] = [
{
displayName: 'Family Name',
name: 'family_name',
@@ -319,7 +323,7 @@ export const personAdditionalFieldsOptions = [
},
];
-export const petitionAdditionalFieldsOptions = [
+export const petitionAdditionalFieldsOptions: INodeProperties[] = [
{
displayName: 'Browser URL',
name: 'browser_url',
@@ -357,7 +361,7 @@ export const petitionAdditionalFieldsOptions = [
},
];
-export const makeSimpleField = (resource: Resource, operation: Operation) => ({
+export const makeSimpleField = (resource: Resource, operation: Operation): INodeProperties => ({
displayName: 'Simple',
name: 'simple',
type: 'boolean',
diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/SignatureDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/SignatureDescription.ts
index 013e4ae200..b9ffd6e1ff 100644
--- a/packages/nodes-base/nodes/ActionNetwork/descriptions/SignatureDescription.ts
+++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/SignatureDescription.ts
@@ -6,7 +6,7 @@ import {
makeSimpleField,
} from './SharedFields';
-export const signatureOperations = [
+export const signatureOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const signatureOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const signatureFields = [
+export const signatureFields: INodeProperties[] = [
// ----------------------------------------
// signature: create
// ----------------------------------------
@@ -279,4 +279,4 @@ export const signatureFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/TagDescription.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/TagDescription.ts
index 521c2df08b..75ee25c0c2 100644
--- a/packages/nodes-base/nodes/ActionNetwork/descriptions/TagDescription.ts
+++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/TagDescription.ts
@@ -6,7 +6,7 @@ import {
makeSimpleField,
} from './SharedFields';
-export const tagOperations = [
+export const tagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,9 +35,9 @@ export const tagOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const tagFields = [
+export const tagFields: INodeProperties[] = [
// ----------------------------------------
// tag: create
// ----------------------------------------
@@ -128,4 +128,4 @@ export const tagFields = [
},
},
makeSimpleField('tag', 'getAll'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActionNetwork/types.d.ts b/packages/nodes-base/nodes/ActionNetwork/types.d.ts
index b2ce726aa7..3fcb13c05f 100644
--- a/packages/nodes-base/nodes/ActionNetwork/types.d.ts
+++ b/packages/nodes-base/nodes/ActionNetwork/types.d.ts
@@ -4,6 +4,7 @@ export type Resource = 'attendance' | 'event' | 'person' | 'personTag' | 'petiti
export type Operation = 'create' | 'delete' | 'get' | 'getAll' | 'update' | 'add' | 'remove';
+// @ts-ignore
export type LanguageCodes = typeof languageOptions[number]['value']
diff --git a/packages/nodes-base/nodes/ActiveCampaign/AccountContactDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/AccountContactDescription.ts
index 5a88c8a4e9..65febe9095 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/AccountContactDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/AccountContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const accountContactOperations = [
+export const accountContactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const accountContactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const accountContactFields = [
+export const accountContactFields: INodeProperties[] = [
// ----------------------------------
// accountContact:create
// ----------------------------------
@@ -172,4 +172,4 @@ export const accountContactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/AccountDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/AccountDescription.ts
index bc91bcef0d..3fb19f2dff 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/AccountDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/AccountDescription.ts
@@ -6,7 +6,7 @@ import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
-export const accountOperations = [
+export const accountOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -48,9 +48,9 @@ export const accountOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const accountFields = [
+export const accountFields: INodeProperties[] = [
// ----------------------------------
// contact:create
// ----------------------------------
@@ -299,4 +299,4 @@ export const accountFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts
index 0c9365faa3..1f319aa602 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/ConnectionDescription.ts
@@ -6,7 +6,7 @@ import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
-export const connectionOperations = [
+export const connectionOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const connectionOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const connectionFields = [
+export const connectionFields: INodeProperties[] = [
// ----------------------------------
// connection:create
// ----------------------------------
@@ -286,4 +286,4 @@ export const connectionFields = [
// ----------------------------------
...activeCampaignDefaultGetAllProperties('connection', 'getAll'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts
index e6f31d932b..9972e2828a 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/ContactDescription.ts
@@ -6,7 +6,7 @@ import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -48,9 +48,9 @@ export const contactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
// ----------------------------------
// contact:create
// ----------------------------------
@@ -510,4 +510,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/ContactListDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ContactListDescription.ts
index 78d15dd9bd..01a748f54b 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/ContactListDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/ContactListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactListOperations = [
+export const contactListOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const contactListOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactListFields = [
+export const contactListFields: INodeProperties[] = [
// ----------------------------------
// contactList:add
// ----------------------------------
@@ -111,4 +111,4 @@ export const contactListFields = [
},
description: 'Contact ID',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/ContactTagDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ContactTagDescription.ts
index 46dd6426ab..5bbe4990a1 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/ContactTagDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/ContactTagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactTagOperations = [
+export const contactTagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const contactTagOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactTagFields = [
+export const contactTagFields: INodeProperties[] = [
// ----------------------------------
// contactTag:add
// ----------------------------------
@@ -95,4 +95,4 @@ export const contactTagFields = [
required: true,
description: 'ID of the contact tag to delete.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts
index d3c0d4189d..77075ac9a9 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/DealDescription.ts
@@ -10,7 +10,7 @@ import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
-export const dealOperations = [
+export const dealOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -63,9 +63,9 @@ export const dealOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const dealFields = [
+export const dealFields: INodeProperties[] = [
// ----------------------------------
// deal:create
// ----------------------------------
@@ -494,4 +494,4 @@ export const dealFields = [
description: 'The content of the deal note',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/EcomCustomerDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/EcomCustomerDescription.ts
index 0093074413..9916d467f1 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/EcomCustomerDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/EcomCustomerDescription.ts
@@ -6,7 +6,7 @@ import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
-export const ecomCustomerOperations = [
+export const ecomCustomerOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -48,9 +48,9 @@ export const ecomCustomerOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const ecomCustomerFields = [
+export const ecomCustomerFields: INodeProperties[] = [
// ----------------------------------
// ecommerceCustomer:create
// ----------------------------------
@@ -253,4 +253,4 @@ export const ecomCustomerFields = [
// ecommerceCustomer:getAll
// ----------------------------------
...activeCampaignDefaultGetAllProperties('ecommerceCustomer', 'getAll'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts
index 3a73d35808..3eeb3f6686 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderDescription.ts
@@ -10,7 +10,7 @@ import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
-export const ecomOrderOperations = [
+export const ecomOrderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -52,9 +52,9 @@ export const ecomOrderOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const ecomOrderFields = [
+export const ecomOrderFields: INodeProperties[] = [
// ----------------------------------
// ecommerceOrder:create
// ----------------------------------
@@ -682,4 +682,4 @@ export const ecomOrderFields = [
// ----------------------------------
...activeCampaignDefaultGetAllProperties('ecommerceOrder', 'getAll'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderProductsDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderProductsDescription.ts
index 335fa7a283..7f875111fe 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/EcomOrderProductsDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/EcomOrderProductsDescription.ts
@@ -6,7 +6,7 @@ import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
-export const ecomOrderProductsOperations = [
+export const ecomOrderProductsOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -38,9 +38,9 @@ export const ecomOrderProductsOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const ecomOrderProductsFields = [
+export const ecomOrderProductsFields: INodeProperties[] = [
// ----------------------------------
// ecommerceOrderProducts:getByOrderId
// ----------------------------------
@@ -87,4 +87,4 @@ export const ecomOrderProductsFields = [
// ecommerceOrderProducts:getAll
// ----------------------------------
...activeCampaignDefaultGetAllProperties('ecommerceOrderProducts', 'getAll'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts
index ced126b341..c1e984deaa 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/ListDescription.ts
@@ -6,7 +6,7 @@ import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
-export const listOperations = [
+export const listOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -28,11 +28,11 @@ export const listOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const listFields = [
+export const listFields: INodeProperties[] = [
// ----------------------------------
// list:getAll
// ----------------------------------
...activeCampaignDefaultGetAllProperties('list', 'getAll'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts b/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts
index c619d1caad..df206f4944 100644
--- a/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts
+++ b/packages/nodes-base/nodes/ActiveCampaign/TagDescription.ts
@@ -6,7 +6,7 @@ import {
activeCampaignDefaultGetAllProperties,
} from './GenericFunctions';
-export const tagOperations = [
+export const tagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -48,9 +48,9 @@ export const tagOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const tagFields = [
+export const tagFields: INodeProperties[] = [
// ----------------------------------
// contact:create
// ----------------------------------
@@ -229,4 +229,4 @@ export const tagFields = [
// tag:getAll
// ----------------------------------
...activeCampaignDefaultGetAllProperties('tag', 'getAll'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Affinity/ListDescription.ts b/packages/nodes-base/nodes/Affinity/ListDescription.ts
index f284ffab33..72fbc8708a 100644
--- a/packages/nodes-base/nodes/Affinity/ListDescription.ts
+++ b/packages/nodes-base/nodes/Affinity/ListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const listOperations = [
+export const listOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const listOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const listFields = [
+export const listFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* list:get */
/* -------------------------------------------------------------------------- */
@@ -97,4 +97,4 @@ export const listFields = [
default: 5,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Affinity/ListEntryDescription.ts b/packages/nodes-base/nodes/Affinity/ListEntryDescription.ts
index 37d395274c..3231771c4c 100644
--- a/packages/nodes-base/nodes/Affinity/ListEntryDescription.ts
+++ b/packages/nodes-base/nodes/Affinity/ListEntryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const listEntryOperations = [
+export const listEntryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const listEntryOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const listEntryFields = [
+export const listEntryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* listEntry:create */
@@ -259,4 +259,4 @@ export const listEntryFields = [
},
description: 'The unique id of the list entry object to be deleted.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts b/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts
index dd591c63c5..da445cc33b 100644
--- a/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts
+++ b/packages/nodes-base/nodes/Affinity/OrganizationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const organizationOperations = [
+export const organizationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const organizationOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const organizationFields = [
+export const organizationFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* organization:create */
@@ -325,4 +325,4 @@ export const organizationFields = [
},
description: 'Unique identifier for the organization.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Affinity/PersonDescription.ts b/packages/nodes-base/nodes/Affinity/PersonDescription.ts
index c97634a8a3..096765b573 100644
--- a/packages/nodes-base/nodes/Affinity/PersonDescription.ts
+++ b/packages/nodes-base/nodes/Affinity/PersonDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const personOperations = [
+export const personOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const personOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const personFields = [
+export const personFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* person:create */
@@ -369,4 +369,4 @@ export const personFields = [
},
description: 'Unique identifier for the person.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts
index 6b888cf4ee..7d421ece17 100644
--- a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const companyOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* company:get */
/* -------------------------------------------------------------------------- */
@@ -520,6 +520,7 @@ export const companyFields = [
name: 'websiteOptions',
type: 'fixedCollection',
description: 'Companies websites.',
+ default: {},
typeOptions: {
multipleValues: true,
},
@@ -598,6 +599,7 @@ export const companyFields = [
displayName: 'Custom Properties',
name: 'customProperties',
type: 'fixedCollection',
+ default: {},
description: 'Custom Properties',
typeOptions: {
multipleValues: true,
@@ -815,6 +817,7 @@ export const companyFields = [
displayName: 'Website',
name: 'websiteOptions',
type: 'fixedCollection',
+ default: {},
description: 'Companys websites.',
typeOptions: {
multipleValues: true,
@@ -894,6 +897,7 @@ export const companyFields = [
displayName: 'Custom Properties',
name: 'customProperties',
type: 'fixedCollection',
+ default: {},
description: 'Custom Properties',
typeOptions: {
multipleValues: true,
@@ -932,4 +936,4 @@ export const companyFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts
index 3ccf9b1cb9..ba839988f2 100644
--- a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts
+++ b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const contactOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:get */
/* -------------------------------------------------------------------------- */
@@ -450,6 +450,7 @@ export const contactFields = [
displayName: 'Address',
name: 'addressOptions',
type: 'fixedCollection',
+ default: {},
description: 'Contacts address.',
typeOptions: {
multipleValues: true,
@@ -504,6 +505,7 @@ export const contactFields = [
displayName: 'Email',
name: 'emailOptions',
type: 'fixedCollection',
+ default: {},
description: 'Contact email.',
typeOptions: {
multipleValues: true,
@@ -604,6 +606,7 @@ export const contactFields = [
displayName: 'Phone',
name: 'phoneOptions',
type: 'fixedCollection',
+ default: {},
description: 'Contacts phone.',
typeOptions: {
multipleValues: true,
@@ -685,6 +688,7 @@ export const contactFields = [
displayName: 'Website',
name: 'websiteOptions',
type: 'fixedCollection',
+ default: {},
description: 'Contacts websites.',
typeOptions: {
multipleValues: true,
@@ -764,6 +768,7 @@ export const contactFields = [
displayName: 'Custom Properties',
name: 'customProperties',
type: 'fixedCollection',
+ default: {},
description: 'Custom Properties',
typeOptions: {
multipleValues: true,
@@ -909,6 +914,7 @@ export const contactFields = [
displayName: 'Address',
name: 'addressOptions',
type: 'fixedCollection',
+ default: {},
description: 'Contacts address.',
typeOptions: {
multipleValues: true,
@@ -963,6 +969,7 @@ export const contactFields = [
displayName: 'Email',
name: 'emailOptions',
type: 'fixedCollection',
+ default: {},
description: 'Contact email.',
typeOptions: {
multipleValues: true,
@@ -1063,6 +1070,7 @@ export const contactFields = [
displayName: 'Phone',
name: 'phoneOptions',
type: 'fixedCollection',
+ default: {},
description: 'Contacts phone.',
typeOptions: {
multipleValues: true,
@@ -1144,6 +1152,7 @@ export const contactFields = [
displayName: 'Website',
name: 'websiteOptions',
type: 'fixedCollection',
+ default: {},
description: 'Contacts websites.',
typeOptions: {
multipleValues: true,
@@ -1223,6 +1232,7 @@ export const contactFields = [
displayName: 'Custom Properties',
name: 'customProperties',
type: 'fixedCollection',
+ default: {},
description: 'Custom Properties',
typeOptions: {
multipleValues: true,
@@ -1261,4 +1271,4 @@ export const contactFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/AgileCrm/DealDescription.ts b/packages/nodes-base/nodes/AgileCrm/DealDescription.ts
index 7dd93643e0..813dec8072 100644
--- a/packages/nodes-base/nodes/AgileCrm/DealDescription.ts
+++ b/packages/nodes-base/nodes/AgileCrm/DealDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const dealOperations = [
+export const dealOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -45,9 +45,9 @@ export const dealOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const dealFields = [
+export const dealFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* deal:get */
/* -------------------------------------------------------------------------- */
@@ -301,6 +301,7 @@ export const dealFields = [
displayName: 'Custom Data',
name: 'customData',
type: 'fixedCollection',
+ default: {},
description: 'Custom Data',
typeOptions: {
multipleValues: true,
@@ -480,6 +481,7 @@ export const dealFields = [
displayName: 'Custom Data',
name: 'customData',
type: 'fixedCollection',
+ default: {},
description: 'Custom Data',
typeOptions: {
multipleValues: true,
@@ -510,4 +512,4 @@ export const dealFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Automizy/ContactDescription.ts b/packages/nodes-base/nodes/Automizy/ContactDescription.ts
index 62f04de11c..5a46d45928 100644
--- a/packages/nodes-base/nodes/Automizy/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Automizy/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const contactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:create */
@@ -477,4 +477,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Automizy/ListDescription.ts b/packages/nodes-base/nodes/Automizy/ListDescription.ts
index f8f6faa8e5..e3bf022be0 100644
--- a/packages/nodes-base/nodes/Automizy/ListDescription.ts
+++ b/packages/nodes-base/nodes/Automizy/ListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const listOperations = [
+export const listOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const listOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const listFields = [
+export const listFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* list:create */
@@ -238,4 +238,4 @@ export const listFields = [
},
default: '',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Autopilot/ContactDescription.ts b/packages/nodes-base/nodes/Autopilot/ContactDescription.ts
index 278cbf8bc3..6617486da2 100644
--- a/packages/nodes-base/nodes/Autopilot/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Autopilot/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const contactOperations = [
default: 'upsert',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:upsert */
@@ -366,4 +366,4 @@ export const contactFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Autopilot/ContactJourneyDescription.ts b/packages/nodes-base/nodes/Autopilot/ContactJourneyDescription.ts
index 85c38a251f..27d5fcdcc8 100644
--- a/packages/nodes-base/nodes/Autopilot/ContactJourneyDescription.ts
+++ b/packages/nodes-base/nodes/Autopilot/ContactJourneyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactJourneyOperations = [
+export const contactJourneyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const contactJourneyOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactJourneyFields = [
+export const contactJourneyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contactJourney:add */
@@ -70,4 +70,4 @@ export const contactJourneyFields = [
default: '',
description: 'Can be ID or email.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Autopilot/ContactListDescription.ts b/packages/nodes-base/nodes/Autopilot/ContactListDescription.ts
index 1e0a9d0ef2..22ab9e7a49 100644
--- a/packages/nodes-base/nodes/Autopilot/ContactListDescription.ts
+++ b/packages/nodes-base/nodes/Autopilot/ContactListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactListOperations = [
+export const contactListOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const contactListOperations = [
default: 'add',
description: 'Operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactListFields = [
+export const contactListFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contactList:add */
@@ -135,4 +135,4 @@ export const contactListFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Autopilot/ListDescription.ts b/packages/nodes-base/nodes/Autopilot/ListDescription.ts
index 17fcf56e6d..ef7eb1ca95 100644
--- a/packages/nodes-base/nodes/Autopilot/ListDescription.ts
+++ b/packages/nodes-base/nodes/Autopilot/ListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const listOperations = [
+export const listOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const listOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const listFields = [
+export const listFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* list:create */
@@ -99,4 +99,4 @@ export const listFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts b/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts
index 16b893babf..d64d37b506 100644
--- a/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts
+++ b/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const itemOperations = [
+export const itemOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -38,9 +38,9 @@ export const itemOperations = [
],
default: 'upsert',
},
-] as INodeProperties[];
+];
-export const itemFields = [
+export const itemFields: INodeProperties[] = [
// ----------------------------------
// all
// ----------------------------------
@@ -959,4 +959,4 @@ export const itemFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Aws/S3/BucketDescription.ts b/packages/nodes-base/nodes/Aws/S3/BucketDescription.ts
index eb75893fbf..d0f868c1f5 100644
--- a/packages/nodes-base/nodes/Aws/S3/BucketDescription.ts
+++ b/packages/nodes-base/nodes/Aws/S3/BucketDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const bucketOperations = [
+export const bucketOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const bucketOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const bucketFields = [
+export const bucketFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* bucket:create */
@@ -352,4 +352,4 @@ export const bucketFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Aws/S3/FileDescription.ts b/packages/nodes-base/nodes/Aws/S3/FileDescription.ts
index 28904e0d0a..11bdfc8e52 100644
--- a/packages/nodes-base/nodes/Aws/S3/FileDescription.ts
+++ b/packages/nodes-base/nodes/Aws/S3/FileDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const fileOperations = [
+export const fileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const fileOperations = [
default: 'download',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fileFields = [
+export const fileFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* file:copy */
@@ -919,4 +919,4 @@ export const fileFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts b/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts
index c36d42b54b..45124365c5 100644
--- a/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts
+++ b/packages/nodes-base/nodes/Aws/S3/FolderDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const folderOperations = [
+export const folderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const folderOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const folderFields = [
+export const folderFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* folder:create */
@@ -275,4 +275,4 @@ export const folderFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts b/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts
index 622799349a..d68713b0cb 100644
--- a/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts
+++ b/packages/nodes-base/nodes/Bannerbear/ImageDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const imageOperations = [
+export const imageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const imageOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const imageFields = [
+export const imageFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* image:create */
@@ -205,4 +205,4 @@ export const imageFields = [
},
description: 'Unique identifier for the image.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts b/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts
index 034f787232..b3d052d0ae 100644
--- a/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts
+++ b/packages/nodes-base/nodes/Bannerbear/TemplateDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const templateOperations = [
+export const templateOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const templateOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const templateFields = [
+export const templateFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* template:get */
@@ -54,4 +54,4 @@ export const templateFields = [
},
description: 'Unique identifier for the template.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Baserow/OperationDescription.ts b/packages/nodes-base/nodes/Baserow/OperationDescription.ts
index 745fad968b..b12c7a3685 100644
--- a/packages/nodes-base/nodes/Baserow/OperationDescription.ts
+++ b/packages/nodes-base/nodes/Baserow/OperationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const operationFields = [
+export const operationFields: INodeProperties[] = [
// ----------------------------------
// shared
// ----------------------------------
@@ -472,4 +472,4 @@ export const operationFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Bitly/LinkDescription.ts b/packages/nodes-base/nodes/Bitly/LinkDescription.ts
index 5fbd0a6be5..2d20bd482f 100644
--- a/packages/nodes-base/nodes/Bitly/LinkDescription.ts
+++ b/packages/nodes-base/nodes/Bitly/LinkDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const linkOperations = [
+export const linkOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -32,9 +32,9 @@ export const linkOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const linkFields = [
+export const linkFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* link:create */
@@ -313,4 +313,4 @@ export const linkFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Bitwarden/descriptions/CollectionDescription.ts b/packages/nodes-base/nodes/Bitwarden/descriptions/CollectionDescription.ts
index aa54701481..0a244df64e 100644
--- a/packages/nodes-base/nodes/Bitwarden/descriptions/CollectionDescription.ts
+++ b/packages/nodes-base/nodes/Bitwarden/descriptions/CollectionDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const collectionOperations = [
+export const collectionOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,9 +35,9 @@ export const collectionOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const collectionFields = [
+export const collectionFields: INodeProperties[] = [
// ----------------------------------
// collection: shared
// ----------------------------------
@@ -144,7 +144,7 @@ export const collectionFields = [
},
},
},
-] as INodeProperties[];
+];
export interface CollectionUpdateFields {
groups: string[];
diff --git a/packages/nodes-base/nodes/Bitwarden/descriptions/EventDescription.ts b/packages/nodes-base/nodes/Bitwarden/descriptions/EventDescription.ts
index 3c4278775c..9d2e780e42 100644
--- a/packages/nodes-base/nodes/Bitwarden/descriptions/EventDescription.ts
+++ b/packages/nodes-base/nodes/Bitwarden/descriptions/EventDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,10 +23,10 @@ export const eventOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
// ----------------------------------
// event: getAll
// ----------------------------------
@@ -116,4 +116,4 @@ export const eventFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Bitwarden/descriptions/GroupDescription.ts b/packages/nodes-base/nodes/Bitwarden/descriptions/GroupDescription.ts
index 8bfba1aeb1..162389ff0f 100644
--- a/packages/nodes-base/nodes/Bitwarden/descriptions/GroupDescription.ts
+++ b/packages/nodes-base/nodes/Bitwarden/descriptions/GroupDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const groupOperations = [
+export const groupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const groupOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const groupFields = [
+export const groupFields: INodeProperties[] = [
// ----------------------------------
// group: shared
// ----------------------------------
@@ -267,7 +267,7 @@ export const groupFields = [
},
},
},
-] as INodeProperties[];
+];
type GroupSchema = {
name: string;
diff --git a/packages/nodes-base/nodes/Bitwarden/descriptions/MemberDescription.ts b/packages/nodes-base/nodes/Bitwarden/descriptions/MemberDescription.ts
index 884475af77..b3013207fe 100644
--- a/packages/nodes-base/nodes/Bitwarden/descriptions/MemberDescription.ts
+++ b/packages/nodes-base/nodes/Bitwarden/descriptions/MemberDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const memberOperations = [
+export const memberOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const memberOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const memberFields = [
+export const memberFields: INodeProperties[] = [
// ----------------------------------
// member: shared
// ----------------------------------
@@ -312,7 +312,7 @@ export const memberFields = [
},
},
},
-] as INodeProperties[];
+];
type MemberSchema = {
email: string;
diff --git a/packages/nodes-base/nodes/Box/FileDescription.ts b/packages/nodes-base/nodes/Box/FileDescription.ts
index e55302c404..9be6f6b9fb 100644
--- a/packages/nodes-base/nodes/Box/FileDescription.ts
+++ b/packages/nodes-base/nodes/Box/FileDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const fileOperations = [
+export const fileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -54,9 +54,9 @@ export const fileOperations = [
default: 'upload',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fileFields = [
+export const fileFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* file:copy */
@@ -832,4 +832,4 @@ export const fileFields = [
default: '',
description: 'ID of the parent folder that will contain the file. If not it will be uploaded to the root folder',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Box/FolderDescription.ts b/packages/nodes-base/nodes/Box/FolderDescription.ts
index 6687c999b9..25ce833b37 100644
--- a/packages/nodes-base/nodes/Box/FolderDescription.ts
+++ b/packages/nodes-base/nodes/Box/FolderDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const folderOperations = [
+export const folderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const folderOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const folderFields = [
+export const folderFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* folder:create */
@@ -860,4 +860,4 @@ export const folderFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Bubble/ObjectDescription.ts b/packages/nodes-base/nodes/Bubble/ObjectDescription.ts
index 1d71d43d95..f8444b0557 100644
--- a/packages/nodes-base/nodes/Bubble/ObjectDescription.ts
+++ b/packages/nodes-base/nodes/Bubble/ObjectDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const objectOperations = [
+export const objectOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const objectOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const objectFields = [
+export const objectFields: INodeProperties[] = [
// ----------------------------------
// object: create
// ----------------------------------
@@ -513,4 +513,4 @@ export const objectFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/CircleCi/PipelineDescription.ts b/packages/nodes-base/nodes/CircleCi/PipelineDescription.ts
index e0200bc1d7..ec4db57a0f 100644
--- a/packages/nodes-base/nodes/CircleCi/PipelineDescription.ts
+++ b/packages/nodes-base/nodes/CircleCi/PipelineDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const pipelineOperations = [
+export const pipelineOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const pipelineOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const pipelineFields = [
+export const pipelineFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* pipeline:shared */
@@ -222,4 +222,4 @@ export const pipelineFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Cisco/Webex/GenericFunctions.ts b/packages/nodes-base/nodes/Cisco/Webex/GenericFunctions.ts
index 8bb552c259..a410dd161d 100644
--- a/packages/nodes-base/nodes/Cisco/Webex/GenericFunctions.ts
+++ b/packages/nodes-base/nodes/Cisco/Webex/GenericFunctions.ts
@@ -149,7 +149,7 @@ export function getAttachemnts(attachements: IDataObject[]) {
return _attachments;
}
-export function getActionInheritedProperties() {
+export function getActionInheritedProperties(): INodeProperties[] {
return [
{
displayName: 'Title',
@@ -190,7 +190,7 @@ export function getActionInheritedProperties() {
];
}
-export function getTextBlockProperties() {
+export function getTextBlockProperties(): INodeProperties[] {
return [
{
displayName: 'Text',
@@ -522,7 +522,7 @@ export function getTextBlockProperties() {
];
}
-export function getInputTextProperties() {
+export function getInputTextProperties(): INodeProperties[] {
return [
{
displayName: 'ID',
diff --git a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts
index b24115d227..22d47ca3c7 100644
--- a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts
+++ b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const meetingOperations = [
+export const meetingOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const meetingOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const meetingFields = [
+export const meetingFields: INodeProperties[] = [
// ----------------------------------------
// meeting: create
// ----------------------------------------
@@ -965,4 +965,4 @@ export const meetingFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingTranscript.ts b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingTranscript.ts
index ed87bbc34e..b17fe9bfcc 100644
--- a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingTranscript.ts
+++ b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingTranscript.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const meetingTranscriptOperations = [
+export const meetingTranscriptOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const meetingTranscriptOperations = [
default: 'download',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const meetingTranscriptFields = [
+export const meetingTranscriptFields: INodeProperties[] = [
// ----------------------------------------
// meetingTranscript: download
// ----------------------------------------
@@ -193,4 +193,4 @@ export const meetingTranscriptFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MessageDescription.ts b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MessageDescription.ts
index 87a3984655..e04a9d09b8 100644
--- a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MessageDescription.ts
+++ b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MessageDescription.ts
@@ -6,7 +6,7 @@ import {
getActionInheritedProperties, getInputTextProperties, getTextBlockProperties,
} from '../GenericFunctions';
-export const messageOperations = [
+export const messageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const messageOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const messageFields = [
+export const messageFields: INodeProperties[] = [
// ----------------------------------------
// message: create
// ----------------------------------------
@@ -210,6 +210,7 @@ export const messageFields = [
displayName: 'Attachments',
name: 'attachmentsUi',
type: 'fixedCollection',
+ default: {},
typeOptions: {
multipleValues: true,
},
@@ -654,4 +655,4 @@ export const messageFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Clearbit/CompanyDescription.ts b/packages/nodes-base/nodes/Clearbit/CompanyDescription.ts
index 0737208b0f..2ae0278147 100644
--- a/packages/nodes-base/nodes/Clearbit/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/Clearbit/CompanyDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const companyOperations = [
default: 'enrich',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* company:enrich */
@@ -121,4 +121,4 @@ export const companyFields = [
},
description: 'Name is the partial name of the company.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Clearbit/PersonDescription.ts b/packages/nodes-base/nodes/Clearbit/PersonDescription.ts
index 122e0d76d5..52a8dd0482 100644
--- a/packages/nodes-base/nodes/Clearbit/PersonDescription.ts
+++ b/packages/nodes-base/nodes/Clearbit/PersonDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const personOperations = [
+export const personOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const personOperations = [
default: 'enrich',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const personFields = [
+export const personFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* person:enrich */
@@ -129,4 +129,4 @@ export const personFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts b/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts
index c4c40a4885..426fc81da3 100644
--- a/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/ChecklistDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const checklistOperations = [
+export const checklistOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const checklistOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const checklistFields = [
+export const checklistFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* checklist:create */
@@ -149,4 +149,4 @@ export const checklistFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts b/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts
index 83704a947a..322b628587 100644
--- a/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/ChecklistItemDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const checklistItemOperations = [
+export const checklistItemOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const checklistItemOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const checklistItemFields = [
+export const checklistItemFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* checklistItem:create */
@@ -220,4 +220,4 @@ export const checklistItemFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/CommentDescription.ts b/packages/nodes-base/nodes/ClickUp/CommentDescription.ts
index 715c7da148..847c848ce5 100644
--- a/packages/nodes-base/nodes/ClickUp/CommentDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/CommentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const commentOperations = [
+export const commentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const commentOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const commentFields = [
+export const commentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* comment:create */
@@ -292,4 +292,4 @@ export const commentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/FolderDescription.ts b/packages/nodes-base/nodes/ClickUp/FolderDescription.ts
index cd97ac3af6..60b7de5ff6 100644
--- a/packages/nodes-base/nodes/ClickUp/FolderDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/FolderDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const folderOperations = [
+export const folderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const folderOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const folderFields = [
+export const folderFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* folder:create */
@@ -439,4 +439,4 @@ export const folderFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/GoalDescription.ts b/packages/nodes-base/nodes/ClickUp/GoalDescription.ts
index aba11b4654..455d6084aa 100644
--- a/packages/nodes-base/nodes/ClickUp/GoalDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/GoalDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const goalOperations = [
+export const goalOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const goalOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const goalFields = [
+export const goalFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* goal:create */
@@ -306,4 +306,4 @@ export const goalFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts b/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts
index fd4ff685e3..cba914e124 100644
--- a/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/GoalKeyResultDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const goalKeyResultOperations = [
+export const goalKeyResultOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const goalKeyResultOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const goalKeyResultFields = [
+export const goalKeyResultFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* goalKeyResult:create */
@@ -288,4 +288,4 @@ export const goalKeyResultFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/GuestDescription.ts b/packages/nodes-base/nodes/ClickUp/GuestDescription.ts
index f25a1b6c30..07873a2be7 100644
--- a/packages/nodes-base/nodes/ClickUp/GuestDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/GuestDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const guestOperations = [
+export const guestOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const guestOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const guestFields = [
+export const guestFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* guest:create */
@@ -285,4 +285,4 @@ export const guestFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/ListDescription.ts b/packages/nodes-base/nodes/ClickUp/ListDescription.ts
index f5183478e5..0a85d04cba 100644
--- a/packages/nodes-base/nodes/ClickUp/ListDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/ListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const listOperations = [
+export const listOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -54,9 +54,9 @@ export const listOperations = [
default: 'customFields',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const listFields = [
+export const listFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* list:create */
@@ -223,11 +223,11 @@ export const listFields = [
displayName: 'Status',
name: 'status',
type: 'options',
- loadOptionsDependsOn: [
- 'list',
- ],
typeOptions: {
loadOptionsMethod: 'getStatuses',
+ loadOptionsDependsOn: [
+ 'list',
+ ],
},
default: '',
},
@@ -915,11 +915,11 @@ export const listFields = [
displayName: 'Assignee',
name: 'assignee',
type: 'options',
- loadOptionsDependsOn: [
- 'list',
- ],
typeOptions: {
loadOptionsMethod: 'getAssignees',
+ loadOptionsDependsOn: [
+ 'list',
+ ],
},
default: '',
@@ -970,4 +970,4 @@ export const listFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/SpaceTagDescription.ts b/packages/nodes-base/nodes/ClickUp/SpaceTagDescription.ts
index 9d8384775a..5ea899a407 100644
--- a/packages/nodes-base/nodes/ClickUp/SpaceTagDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/SpaceTagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const spaceTagOperations = [
+export const spaceTagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const spaceTagOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const spaceTagFields = [
+export const spaceTagFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* spaceTag:create */
/* -------------------------------------------------------------------------- */
@@ -201,4 +201,4 @@ export const spaceTagFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts
index c778a437e7..85c9b36c6b 100644
--- a/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TaskDependencyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskDependencyOperations = [
+export const taskDependencyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const taskDependencyOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskDependencyFields = [
+export const taskDependencyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* taskDependency:create */
@@ -57,6 +57,7 @@ export const taskDependencyFields = [
displayName: 'Depends On Task ID',
name: 'dependsOnTask',
type: 'string',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -94,6 +95,7 @@ export const taskDependencyFields = [
displayName: 'Depends On Task ID',
name: 'dependsOnTask',
type: 'string',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -106,4 +108,4 @@ export const taskDependencyFields = [
},
required: true,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/TaskDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskDescription.ts
index 55ee11bcbf..4b8b5e4b68 100644
--- a/packages/nodes-base/nodes/ClickUp/TaskDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -54,9 +54,9 @@ export const taskOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* task:create */
@@ -238,11 +238,11 @@ export const taskFields = [
displayName: 'Assignees',
name: 'assignees',
type: 'multiOptions',
- loadOptionsDependsOn: [
- 'list',
- ],
typeOptions: {
loadOptionsMethod: 'getAssignees',
+ loadOptionsDependsOn: [
+ 'list',
+ ],
},
default: [],
},
@@ -322,11 +322,11 @@ export const taskFields = [
displayName: 'Status',
name: 'status',
type: 'options',
- loadOptionsDependsOn: [
- 'list',
- ],
typeOptions: {
loadOptionsMethod: 'getStatuses',
+ loadOptionsDependsOn: [
+ 'list',
+ ],
},
default: '',
},
@@ -334,11 +334,11 @@ export const taskFields = [
displayName: 'Tags',
name: 'tags',
type: 'multiOptions',
- loadOptionsDependsOn: [
- 'space',
- ],
typeOptions: {
loadOptionsMethod: 'getTags',
+ loadOptionsDependsOn: [
+ 'space',
+ ],
},
default: [],
description: 'The array of tags applied to this task',
@@ -722,11 +722,11 @@ export const taskFields = [
displayName: 'Assignees',
name: 'assignees',
type: 'multiOptions',
- loadOptionsDependsOn: [
- 'list',
- ],
typeOptions: {
loadOptionsMethod: 'getAssignees',
+ loadOptionsDependsOn: [
+ 'list',
+ ],
},
default: [],
@@ -893,11 +893,11 @@ export const taskFields = [
displayName: 'Statuses',
name: 'statuses',
type: 'multiOptions',
- loadOptionsDependsOn: [
- 'list',
- ],
typeOptions: {
loadOptionsMethod: 'getStatuses',
+ loadOptionsDependsOn: [
+ 'list',
+ ],
},
default: [],
},
@@ -912,11 +912,11 @@ export const taskFields = [
displayName: 'Tags',
name: 'tags',
type: 'multiOptions',
- loadOptionsDependsOn: [
- 'space',
- ],
typeOptions: {
loadOptionsMethod: 'getTags',
+ loadOptionsDependsOn: [
+ 'space',
+ ],
},
default: [],
description: 'The array of tags applied to this task',
@@ -1085,4 +1085,4 @@ export const taskFields = [
},
description: 'The value to set on custom field.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts
index c1e25a0170..cc65af4119 100644
--- a/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TaskListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskListOperations = [
+export const taskListOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const taskListOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskListFields = [
+export const taskListFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* taskList:add */
/* -------------------------------------------------------------------------- */
@@ -71,4 +71,4 @@ export const taskListFields = [
},
required: true,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts b/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts
index 70ba1796aa..5587b94742 100644
--- a/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TaskTagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskTagOperations = [
+export const taskTagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const taskTagOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskTagFields = [
+export const taskTagFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* taskTag:add */
/* -------------------------------------------------------------------------- */
@@ -108,4 +108,4 @@ export const taskTagFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts b/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts
index 9cb39f7348..1b52590349 100644
--- a/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TimeEntryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const timeEntryOperations = [
+export const timeEntryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -54,9 +54,9 @@ export const timeEntryOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const timeEntryFields = [
+export const timeEntryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* timeEntry:getAll */
@@ -434,11 +434,11 @@ export const timeEntryFields = [
displayName: 'Assignee IDs',
name: 'assignee',
type: 'options',
- loadOptionsDependsOn: [
- 'list',
- ],
typeOptions: {
loadOptionsMethod: 'getAssignees',
+ loadOptionsDependsOn: [
+ 'list',
+ ],
},
default: [],
},
@@ -804,11 +804,11 @@ export const timeEntryFields = [
displayName: 'Assignee IDs',
name: 'assignee',
type: 'options',
- loadOptionsDependsOn: [
- 'list',
- ],
typeOptions: {
loadOptionsMethod: 'getAssignees',
+ loadOptionsDependsOn: [
+ 'list',
+ ],
},
default: [],
},
@@ -865,4 +865,4 @@ export const timeEntryFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts b/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts
index ff6508cc31..f6ce20f8c5 100644
--- a/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts
+++ b/packages/nodes-base/nodes/ClickUp/TimeEntryTagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const timeEntryTagOperations = [
+export const timeEntryTagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const timeEntryTagOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const timeEntryTagFields = [
+export const timeEntryTagFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* timeEntryTag:getAll */
@@ -253,4 +253,4 @@ export const timeEntryTagFields = [
},
required: true,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Clockify/ProjectDescription.ts b/packages/nodes-base/nodes/Clockify/ProjectDescription.ts
index e5a40087a7..90b60fb1eb 100644
--- a/packages/nodes-base/nodes/Clockify/ProjectDescription.ts
+++ b/packages/nodes-base/nodes/Clockify/ProjectDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const projectOperations = [
+export const projectOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const projectOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const projectFields = [
+export const projectFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* project:create */
@@ -525,4 +525,4 @@ export const projectFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Clockify/TagDescription.ts b/packages/nodes-base/nodes/Clockify/TagDescription.ts
index fa06e832c2..f834f795e0 100644
--- a/packages/nodes-base/nodes/Clockify/TagDescription.ts
+++ b/packages/nodes-base/nodes/Clockify/TagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const tagOperations = [
+export const tagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const tagOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const tagFields = [
+export const tagFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* tag:create */
@@ -239,4 +239,4 @@ export const tagFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Clockify/TaskDescription.ts b/packages/nodes-base/nodes/Clockify/TaskDescription.ts
index f0f251bfec..6476e6e59c 100644
--- a/packages/nodes-base/nodes/Clockify/TaskDescription.ts
+++ b/packages/nodes-base/nodes/Clockify/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const taskOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
{
displayName: 'Project ID',
name: 'projectId',
@@ -353,4 +353,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Clockify/TimeEntryDescription.ts b/packages/nodes-base/nodes/Clockify/TimeEntryDescription.ts
index 2ce95efa59..99d1bba4e6 100644
--- a/packages/nodes-base/nodes/Clockify/TimeEntryDescription.ts
+++ b/packages/nodes-base/nodes/Clockify/TimeEntryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const timeEntryOperations = [
+export const timeEntryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const timeEntryOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const timeEntryFields = [
+export const timeEntryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* timeEntry:create */
@@ -381,4 +381,4 @@ export const timeEntryFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts b/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts
index 9b10469aef..f8621d58a3 100644
--- a/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts
+++ b/packages/nodes-base/nodes/Cockpit/CollectionDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const collectionOperations = [
+export const collectionOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -32,9 +32,9 @@ export const collectionOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const collectionFields = [
+export const collectionFields: INodeProperties[] = [
{
displayName: 'Collection',
name: 'collection',
@@ -285,4 +285,4 @@ export const collectionFields = [
],
description: 'Entry data to send.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Cockpit/FormDescription.ts b/packages/nodes-base/nodes/Cockpit/FormDescription.ts
index 795a1a211d..fa7c3ae13a 100644
--- a/packages/nodes-base/nodes/Cockpit/FormDescription.ts
+++ b/packages/nodes-base/nodes/Cockpit/FormDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const formOperations = [
+export const formOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const formOperations = [
default: 'submit',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const formFields = [
+export const formFields: INodeProperties[] = [
{
displayName: 'Form',
name: 'form',
@@ -128,4 +128,4 @@ export const formFields = [
],
description: 'Form data to send.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts b/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts
index 59d3913474..19a45d674b 100644
--- a/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts
+++ b/packages/nodes-base/nodes/Cockpit/SingletonDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const singletonOperations = [
+export const singletonOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const singletonOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const singletonFields = [
+export const singletonFields: INodeProperties[] = [
{
displayName: 'Singleton',
name: 'singleton',
@@ -43,4 +43,4 @@ export const singletonFields = [
required: true,
description: 'Name of the singleton to operate on.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Coda/ControlDescription.ts b/packages/nodes-base/nodes/Coda/ControlDescription.ts
index 9d10e94db8..09b7146873 100644
--- a/packages/nodes-base/nodes/Coda/ControlDescription.ts
+++ b/packages/nodes-base/nodes/Coda/ControlDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const controlOperations = [
+export const controlOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const controlOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const controlFields = [
+export const controlFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* control:get */
@@ -138,4 +138,4 @@ export const controlFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Coda/FormulaDescription.ts b/packages/nodes-base/nodes/Coda/FormulaDescription.ts
index 9d1af1059d..ea20147bee 100644
--- a/packages/nodes-base/nodes/Coda/FormulaDescription.ts
+++ b/packages/nodes-base/nodes/Coda/FormulaDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const formulaOperations = [
+export const formulaOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const formulaOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const formulaFields = [
+export const formulaFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* formula:get */
@@ -138,4 +138,4 @@ export const formulaFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Coda/TableDescription.ts b/packages/nodes-base/nodes/Coda/TableDescription.ts
index a14909c343..90a5812249 100644
--- a/packages/nodes-base/nodes/Coda/TableDescription.ts
+++ b/packages/nodes-base/nodes/Coda/TableDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const tableOperations = [
+export const tableOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -52,9 +52,9 @@ export const tableOperations = [
default: 'createRow',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const tableFields = [
+export const tableFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* table:createRow */
@@ -754,4 +754,4 @@ export const tableFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Coda/ViewDescription.ts b/packages/nodes-base/nodes/Coda/ViewDescription.ts
index bdf9a3e51b..8ab35b442e 100644
--- a/packages/nodes-base/nodes/Coda/ViewDescription.ts
+++ b/packages/nodes-base/nodes/Coda/ViewDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const viewOperations = [
+export const viewOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -52,9 +52,9 @@ export const viewOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const viewFields = [
+export const viewFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* view:get */
@@ -706,4 +706,4 @@ export const viewFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts b/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts
index ddf58a4bc7..d09b225756 100644
--- a/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts
+++ b/packages/nodes-base/nodes/CoinGecko/CoinDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const coinOperations = [
+export const coinOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -58,9 +58,9 @@ export const coinOperations = [
],
default: 'getAll',
},
-] as INodeProperties[];
+];
-export const coinFields = [
+export const coinFields: INodeProperties[] = [
{
displayName: 'Search By',
name: 'searchBy',
@@ -239,6 +239,7 @@ export const coinFields = [
name: 'contractAddress',
required: true,
type: 'string',
+ default: '',
displayOptions: {
show: {
operation: [
@@ -260,6 +261,7 @@ export const coinFields = [
name: 'contractAddresses',
required: true,
type: 'string',
+ default: '',
displayOptions: {
show: {
operation: [
@@ -779,4 +781,4 @@ export const coinFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/CoinGecko/EventDescription.ts b/packages/nodes-base/nodes/CoinGecko/EventDescription.ts
index 4a6f5dc599..a448dbcd12 100644
--- a/packages/nodes-base/nodes/CoinGecko/EventDescription.ts
+++ b/packages/nodes-base/nodes/CoinGecko/EventDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const eventOperations = [
],
default: 'getAll',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -127,4 +127,4 @@ export const eventFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Contentful/AssetDescription.ts b/packages/nodes-base/nodes/Contentful/AssetDescription.ts
index f10046c320..ed672542ab 100644
--- a/packages/nodes-base/nodes/Contentful/AssetDescription.ts
+++ b/packages/nodes-base/nodes/Contentful/AssetDescription.ts
@@ -8,7 +8,7 @@ export const resource = {
value: 'asset',
} as INodePropertyOptions;
-export const operations = [
+export const operations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -33,9 +33,9 @@ export const operations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fields = [
+export const fields: INodeProperties[] = [
{
displayName: 'Environment ID',
name: 'environmentId',
@@ -201,4 +201,4 @@ export const fields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts b/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts
index 0bac8e11df..8bbd28318d 100644
--- a/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts
+++ b/packages/nodes-base/nodes/Contentful/ContentTypeDescription.ts
@@ -8,7 +8,7 @@ export const resource = {
value: 'contentType',
} as INodePropertyOptions;
-export const operations = [
+export const operations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const operations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fields = [
+export const fields: INodeProperties[] = [
{
displayName: 'Environment ID',
name: 'environmentId',
@@ -92,4 +92,4 @@ export const fields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Contentful/EntryDescription.ts b/packages/nodes-base/nodes/Contentful/EntryDescription.ts
index c377ed3f64..be9b06709b 100644
--- a/packages/nodes-base/nodes/Contentful/EntryDescription.ts
+++ b/packages/nodes-base/nodes/Contentful/EntryDescription.ts
@@ -8,7 +8,7 @@ export const resource = {
value: 'entry',
} as INodePropertyOptions;
-export const operations = [
+export const operations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -33,9 +33,9 @@ export const operations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fields = [
+export const fields: INodeProperties[] = [
{
displayName: 'Environment ID',
name: 'environmentId',
@@ -208,4 +208,4 @@ export const fields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Contentful/LocaleDescription.ts b/packages/nodes-base/nodes/Contentful/LocaleDescription.ts
index a48d83cb72..6f233fbda1 100644
--- a/packages/nodes-base/nodes/Contentful/LocaleDescription.ts
+++ b/packages/nodes-base/nodes/Contentful/LocaleDescription.ts
@@ -8,7 +8,7 @@ export const resource = {
value: 'locale',
} as INodePropertyOptions;
-export const operations = [
+export const operations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const operations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fields = [
+export const fields: INodeProperties[] = [
{
displayName: 'Environment ID',
name: 'environmentId',
@@ -91,4 +91,4 @@ export const fields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts b/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts
index 7a05ebc9ed..28f951be11 100644
--- a/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts
+++ b/packages/nodes-base/nodes/Contentful/SearchParameterDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const fields = [
+export const fields: INodeProperties[] = [
{
displayName: 'Search Parameters',
name: 'search_parameters',
@@ -34,4 +34,4 @@ export const fields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Contentful/SpaceDescription.ts b/packages/nodes-base/nodes/Contentful/SpaceDescription.ts
index 41c77ac6de..588d02ba40 100644
--- a/packages/nodes-base/nodes/Contentful/SpaceDescription.ts
+++ b/packages/nodes-base/nodes/Contentful/SpaceDescription.ts
@@ -7,7 +7,7 @@ export const resource = {
value: 'space',
};
-export const operations = [
+export const operations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -28,6 +28,6 @@ export const operations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fields = [] as INodeProperties[];
+export const fields: INodeProperties[] = [];
diff --git a/packages/nodes-base/nodes/ConvertKit/CustomFieldDescription.ts b/packages/nodes-base/nodes/ConvertKit/CustomFieldDescription.ts
index a8541c6493..5e04c95e58 100644
--- a/packages/nodes-base/nodes/ConvertKit/CustomFieldDescription.ts
+++ b/packages/nodes-base/nodes/ConvertKit/CustomFieldDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/ConvertKit/FormDescription.ts b/packages/nodes-base/nodes/ConvertKit/FormDescription.ts
index a8496805bc..fc02144f7d 100644
--- a/packages/nodes-base/nodes/ConvertKit/FormDescription.ts
+++ b/packages/nodes-base/nodes/ConvertKit/FormDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/ConvertKit/SequenceDescription.ts b/packages/nodes-base/nodes/ConvertKit/SequenceDescription.ts
index 42437cc155..747fbfb7dd 100644
--- a/packages/nodes-base/nodes/ConvertKit/SequenceDescription.ts
+++ b/packages/nodes-base/nodes/ConvertKit/SequenceDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/ConvertKit/TagDescription.ts b/packages/nodes-base/nodes/ConvertKit/TagDescription.ts
index b0d18adcfc..6d759ca352 100644
--- a/packages/nodes-base/nodes/ConvertKit/TagDescription.ts
+++ b/packages/nodes-base/nodes/ConvertKit/TagDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/ConvertKit/TagSubscriberDescription.ts b/packages/nodes-base/nodes/ConvertKit/TagSubscriberDescription.ts
index f625dfed83..c4217c123b 100644
--- a/packages/nodes-base/nodes/ConvertKit/TagSubscriberDescription.ts
+++ b/packages/nodes-base/nodes/ConvertKit/TagSubscriberDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Copper/descriptions/CompanyDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/CompanyDescription.ts
index 99f1c6df73..366028e9ab 100644
--- a/packages/nodes-base/nodes/Copper/descriptions/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/Copper/descriptions/CompanyDescription.ts
@@ -11,7 +11,7 @@ import {
phoneNumbersFixedCollection,
} from '../utils/sharedFields';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -48,9 +48,9 @@ export const companyOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
// ----------------------------------------
// company: create
// ----------------------------------------
@@ -286,4 +286,4 @@ export const companyFields = [
phoneNumbersFixedCollection,
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Copper/descriptions/CustomerSourceDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/CustomerSourceDescription.ts
index d9d706beba..63c7b9dbde 100644
--- a/packages/nodes-base/nodes/Copper/descriptions/CustomerSourceDescription.ts
+++ b/packages/nodes-base/nodes/Copper/descriptions/CustomerSourceDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const customerSourceOperations = [
+export const customerSourceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const customerSourceOperations = [
default: 'getAll',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const customerSourceFields = [
+export const customerSourceFields: INodeProperties[] = [
// ----------------------------------------
// customerSource: getAll
// ----------------------------------------
@@ -70,4 +70,4 @@ export const customerSourceFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Copper/descriptions/LeadDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/LeadDescription.ts
index be2b567d59..bdab82dec3 100644
--- a/packages/nodes-base/nodes/Copper/descriptions/LeadDescription.ts
+++ b/packages/nodes-base/nodes/Copper/descriptions/LeadDescription.ts
@@ -8,7 +8,7 @@ import {
phoneNumbersFixedCollection,
} from '../utils/sharedFields';
-export const leadOperations = [
+export const leadOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -45,9 +45,9 @@ export const leadOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const leadFields = [
+export const leadFields: INodeProperties[] = [
// ----------------------------------------
// lead: create
// ----------------------------------------
@@ -271,4 +271,4 @@ export const leadFields = [
phoneNumbersFixedCollection,
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Copper/descriptions/OpportunityDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/OpportunityDescription.ts
index 0117672e05..31496e3b76 100644
--- a/packages/nodes-base/nodes/Copper/descriptions/OpportunityDescription.ts
+++ b/packages/nodes-base/nodes/Copper/descriptions/OpportunityDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const opportunityOperations = [
+export const opportunityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const opportunityOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const opportunityFields = [
+export const opportunityFields: INodeProperties[] = [
// ----------------------------------------
// opportunity: create
// ----------------------------------------
@@ -281,4 +281,4 @@ export const opportunityFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Copper/descriptions/PersonDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/PersonDescription.ts
index 7ffa3b4da3..139da1a190 100644
--- a/packages/nodes-base/nodes/Copper/descriptions/PersonDescription.ts
+++ b/packages/nodes-base/nodes/Copper/descriptions/PersonDescription.ts
@@ -8,7 +8,7 @@ import {
phoneNumbersFixedCollection,
} from '../utils/sharedFields';
-export const personOperations = [
+export const personOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -45,9 +45,9 @@ export const personOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const personFields = [
+export const personFields: INodeProperties[] = [
// ----------------------------------------
// person: create
// ----------------------------------------
@@ -283,4 +283,4 @@ export const personFields = [
phoneNumbersFixedCollection,
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Copper/descriptions/ProjectDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/ProjectDescription.ts
index 0a07010aee..f44f2a500b 100644
--- a/packages/nodes-base/nodes/Copper/descriptions/ProjectDescription.ts
+++ b/packages/nodes-base/nodes/Copper/descriptions/ProjectDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const projectOperations = [
+export const projectOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const projectOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const projectFields = [
+export const projectFields: INodeProperties[] = [
// ----------------------------------------
// project: create
// ----------------------------------------
@@ -305,4 +305,4 @@ export const projectFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Copper/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/TaskDescription.ts
index 39af835c08..b497779b53 100644
--- a/packages/nodes-base/nodes/Copper/descriptions/TaskDescription.ts
+++ b/packages/nodes-base/nodes/Copper/descriptions/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const taskOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
// ----------------------------------------
// task: create
// ----------------------------------------
@@ -343,4 +343,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Copper/descriptions/UserDescription.ts b/packages/nodes-base/nodes/Copper/descriptions/UserDescription.ts
index 52c45db9f8..0507b64c97 100644
--- a/packages/nodes-base/nodes/Copper/descriptions/UserDescription.ts
+++ b/packages/nodes-base/nodes/Copper/descriptions/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const userOperations = [
default: 'getAll',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
// ----------------------------------------
// user: getAll
// ----------------------------------------
@@ -70,4 +70,4 @@ export const userFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Copper/utils/sharedFields.ts b/packages/nodes-base/nodes/Copper/utils/sharedFields.ts
index 2e76bd24ba..fe8615d2c7 100644
--- a/packages/nodes-base/nodes/Copper/utils/sharedFields.ts
+++ b/packages/nodes-base/nodes/Copper/utils/sharedFields.ts
@@ -1,5 +1,9 @@
+import {
+ INodeProperties
+} from 'n8n-workflow';
+
// for companies, leads, persons
-export const addressFixedCollection = {
+export const addressFixedCollection: INodeProperties = {
displayName: 'Address',
name: 'address',
placeholder: 'Add Address Fields',
@@ -47,7 +51,7 @@ export const addressFixedCollection = {
};
// for companies, leads, persons
-export const phoneNumbersFixedCollection = {
+export const phoneNumbersFixedCollection: INodeProperties = {
displayName: 'Phone Numbers',
name: 'phone_numbers',
placeholder: 'Add Phone Number',
@@ -79,7 +83,7 @@ export const phoneNumbersFixedCollection = {
};
// for persons, multiple emails
-export const emailsFixedCollection = {
+export const emailsFixedCollection: INodeProperties = {
displayName: 'Emails',
name: 'emails',
placeholder: 'Add Email',
@@ -111,7 +115,7 @@ export const emailsFixedCollection = {
};
// for leads, single email
-export const emailFixedCollection = {
+export const emailFixedCollection: INodeProperties = {
displayName: 'Email',
name: 'email',
placeholder: 'Add Email',
diff --git a/packages/nodes-base/nodes/Cortex/AnalyzerDescriptions.ts b/packages/nodes-base/nodes/Cortex/AnalyzerDescriptions.ts
index 1f9834cbd5..524d7c0684 100644
--- a/packages/nodes-base/nodes/Cortex/AnalyzerDescriptions.ts
+++ b/packages/nodes-base/nodes/Cortex/AnalyzerDescriptions.ts
@@ -6,7 +6,7 @@ import {
TLP,
} from './AnalyzerInterface';
-export const analyzersOperations = [
+export const analyzersOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,7 +29,7 @@ export const analyzersOperations = [
},
],
},
-] as INodeProperties[];
+];
export const analyzerFields: INodeProperties[] = [
{
diff --git a/packages/nodes-base/nodes/Cortex/JobDescription.ts b/packages/nodes-base/nodes/Cortex/JobDescription.ts
index 800455b089..c22c0b2ba0 100644
--- a/packages/nodes-base/nodes/Cortex/JobDescription.ts
+++ b/packages/nodes-base/nodes/Cortex/JobDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const jobOperations = [
+export const jobOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -30,7 +30,7 @@ export const jobOperations = [
],
default: 'get',
},
-] as INodeProperties[];
+];
export const jobFields: INodeProperties[] = [
{
diff --git a/packages/nodes-base/nodes/Cortex/ResponderDescription.ts b/packages/nodes-base/nodes/Cortex/ResponderDescription.ts
index b53ef59937..8ece48af49 100644
--- a/packages/nodes-base/nodes/Cortex/ResponderDescription.ts
+++ b/packages/nodes-base/nodes/Cortex/ResponderDescription.ts
@@ -6,7 +6,7 @@ import {
TLP,
} from './AnalyzerInterface';
-export const respondersOperations = [
+export const respondersOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,7 +29,7 @@ export const respondersOperations = [
],
default: 'execute',
},
-] as INodeProperties[];
+];
export const responderFields: INodeProperties[] = [
{
diff --git a/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts b/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts
index 7898a9289a..afebb7fe9e 100644
--- a/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts
+++ b/packages/nodes-base/nodes/CustomerIo/CampaignDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const campaignOperations = [
+export const campaignOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const campaignOperations = [
default: 'get',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const campaignFields = [
+export const campaignFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* campaign:get */
/* -------------------------------------------------------------------------- */
@@ -196,4 +196,4 @@ export const campaignFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts b/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts
index 7ccf04aeeb..58bcd3cfde 100644
--- a/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts
+++ b/packages/nodes-base/nodes/CustomerIo/CustomerDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const customerOperations = [
+export const customerOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const customerOperations = [
default: 'upsert',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const customerFields = [
+export const customerFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* customer:delete */
@@ -138,6 +138,7 @@ export const customerFields = [
displayName: 'Custom Properties',
name: 'customProperties',
type: 'fixedCollection',
+ default: {},
description: 'Custom Properties',
typeOptions: {
multipleValues: true,
@@ -186,4 +187,4 @@ export const customerFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/CustomerIo/EventDescription.ts b/packages/nodes-base/nodes/CustomerIo/EventDescription.ts
index 8d22a979d7..5c8d302f66 100644
--- a/packages/nodes-base/nodes/CustomerIo/EventDescription.ts
+++ b/packages/nodes-base/nodes/CustomerIo/EventDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const eventOperations = [
default: 'track',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* event:track */
@@ -133,6 +133,7 @@ export const eventFields = [
displayName: 'Custom Attributes',
name: 'customAttributes',
type: 'fixedCollection',
+ default: {},
description: 'Custom Properties',
typeOptions: {
multipleValues: true,
@@ -259,6 +260,7 @@ export const eventFields = [
displayName: 'Custom Attributes',
name: 'customAttributes',
type: 'fixedCollection',
+ default: {},
description: 'Custom Properties',
typeOptions: {
multipleValues: true,
@@ -292,4 +294,4 @@ export const eventFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts b/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts
index 3f1e691f27..2e104938c9 100644
--- a/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts
+++ b/packages/nodes-base/nodes/CustomerIo/SegmentDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const segmentOperations = [
+export const segmentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -25,9 +25,9 @@ export const segmentOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const segmentFields = [
+export const segmentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* segment:add */
@@ -70,4 +70,4 @@ export const segmentFields = [
},
description: 'A list of customer ids to add to the segment.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/DeepL/TextDescription.ts b/packages/nodes-base/nodes/DeepL/TextDescription.ts
index 7b2d1d5f1f..666ff5a7cc 100644
--- a/packages/nodes-base/nodes/DeepL/TextDescription.ts
+++ b/packages/nodes-base/nodes/DeepL/TextDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const textOperations = [
+export const textOperations: INodeProperties[] = [
{
displayName: 'Text',
name: 'text',
@@ -122,4 +122,4 @@ export const textOperations = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Demio/EventDescription.ts b/packages/nodes-base/nodes/Demio/EventDescription.ts
index 75d95156fd..1568300fec 100644
--- a/packages/nodes-base/nodes/Demio/EventDescription.ts
+++ b/packages/nodes-base/nodes/Demio/EventDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const eventOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* event:getAll */
@@ -342,4 +342,4 @@ export const eventFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Demio/ReportDescription.ts b/packages/nodes-base/nodes/Demio/ReportDescription.ts
index b83982f220..67f5639de3 100644
--- a/packages/nodes-base/nodes/Demio/ReportDescription.ts
+++ b/packages/nodes-base/nodes/Demio/ReportDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const reportOperations = [
+export const reportOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const reportOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const reportFields = [
+export const reportFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* report:get */
@@ -121,4 +121,4 @@ export const reportFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Discourse/CategoryDescription.ts b/packages/nodes-base/nodes/Discourse/CategoryDescription.ts
index 71c8de21e6..84a6500237 100644
--- a/packages/nodes-base/nodes/Discourse/CategoryDescription.ts
+++ b/packages/nodes-base/nodes/Discourse/CategoryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const categoryOperations = [
+export const categoryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,7 +35,7 @@ export const categoryOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
export const categoryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
diff --git a/packages/nodes-base/nodes/Discourse/GroupDescription.ts b/packages/nodes-base/nodes/Discourse/GroupDescription.ts
index 45448d89c0..ef301969a2 100644
--- a/packages/nodes-base/nodes/Discourse/GroupDescription.ts
+++ b/packages/nodes-base/nodes/Discourse/GroupDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const groupOperations = [
+export const groupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -40,7 +40,7 @@ export const groupOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
export const groupFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
diff --git a/packages/nodes-base/nodes/Discourse/PostDescription.ts b/packages/nodes-base/nodes/Discourse/PostDescription.ts
index 858ce64ac6..09bed8459b 100644
--- a/packages/nodes-base/nodes/Discourse/PostDescription.ts
+++ b/packages/nodes-base/nodes/Discourse/PostDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const postOperations = [
+export const postOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -40,7 +40,7 @@ export const postOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
export const postFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
diff --git a/packages/nodes-base/nodes/Discourse/SearchDescription.ts b/packages/nodes-base/nodes/Discourse/SearchDescription.ts
index 91846f3a36..634007e8b1 100644
--- a/packages/nodes-base/nodes/Discourse/SearchDescription.ts
+++ b/packages/nodes-base/nodes/Discourse/SearchDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const searchOperations = [
+export const searchOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -25,7 +25,7 @@ export const searchOperations = [
],
default: 'query',
},
-] as INodeProperties[];
+];
export const searchFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
diff --git a/packages/nodes-base/nodes/Discourse/UserDescription.ts b/packages/nodes-base/nodes/Discourse/UserDescription.ts
index 3c32eef7a3..46b4fafbb5 100644
--- a/packages/nodes-base/nodes/Discourse/UserDescription.ts
+++ b/packages/nodes-base/nodes/Discourse/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,7 +35,7 @@ export const userOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
diff --git a/packages/nodes-base/nodes/Discourse/UserGroupDescription.ts b/packages/nodes-base/nodes/Discourse/UserGroupDescription.ts
index cdd4fd0a77..c9a4295e5c 100644
--- a/packages/nodes-base/nodes/Discourse/UserGroupDescription.ts
+++ b/packages/nodes-base/nodes/Discourse/UserGroupDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userGroupOperations = [
+export const userGroupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -30,7 +30,7 @@ export const userGroupOperations = [
],
default: 'add',
},
-] as INodeProperties[];
+];
export const userGroupFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
diff --git a/packages/nodes-base/nodes/Drift/ContactDescription.ts b/packages/nodes-base/nodes/Drift/ContactDescription.ts
index 26d6598bba..c622b733a0 100644
--- a/packages/nodes-base/nodes/Drift/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Drift/ContactDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const contactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:create */
@@ -203,4 +203,4 @@ export const contactFields = [
},
description: 'Unique identifier for the contact.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ERPNext/DocumentDescription.ts b/packages/nodes-base/nodes/ERPNext/DocumentDescription.ts
index 775c658cc9..bab80be8ef 100644
--- a/packages/nodes-base/nodes/ERPNext/DocumentDescription.ts
+++ b/packages/nodes-base/nodes/ERPNext/DocumentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const documentOperations = [
+export const documentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const documentOperations = [
default: 'create',
description: 'Operation to perform.',
},
-] as INodeProperties[];
+];
-export const documentFields = [
+export const documentFields: INodeProperties[] = [
// ----------------------------------
// document: getAll
// ----------------------------------
@@ -143,6 +143,7 @@ export const documentFields = [
displayName: 'Filters',
name: 'filters',
type: 'fixedCollection',
+ default: {},
placeholder: 'Add Filter',
description: 'Custom Properties',
typeOptions: {
@@ -460,4 +461,4 @@ export const documentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.ts b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.ts
index dcd65720a9..4c08204c82 100644
--- a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.ts
+++ b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/DocumentDescription.ts
@@ -4,7 +4,7 @@ import {
import * as placeholders from './placeholders';
-export const documentOperations = [
+export const documentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -46,9 +46,9 @@ export const documentOperations = [
default: 'get',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const documentFields = [
+export const documentFields: INodeProperties[] = [
// ----------------------------------------
// document: delete
// ----------------------------------------
@@ -785,4 +785,4 @@ export const documentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts
index 5721a37a7a..1a983eb6fa 100644
--- a/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts
+++ b/packages/nodes-base/nodes/Elastic/Elasticsearch/descriptions/IndexDescription.ts
@@ -4,7 +4,7 @@ import {
import * as placeholders from './placeholders';
-export const indexOperations = [
+export const indexOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const indexOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const indexFields = [
+export const indexFields: INodeProperties[] = [
// ----------------------------------------
// index: create
// ----------------------------------------
@@ -319,4 +319,4 @@ export const indexFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Emelia/CampaignDescription.ts b/packages/nodes-base/nodes/Emelia/CampaignDescription.ts
index 279ed23bcb..2fc0826e12 100644
--- a/packages/nodes-base/nodes/Emelia/CampaignDescription.ts
+++ b/packages/nodes-base/nodes/Emelia/CampaignDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const campaignOperations = [
+export const campaignOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const campaignOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const campaignFields = [
+export const campaignFields: INodeProperties[] = [
// ----------------------------------
// campaign: addContact
// ----------------------------------
@@ -323,4 +323,4 @@ export const campaignFields = [
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Emelia/ContactListDescription.ts b/packages/nodes-base/nodes/Emelia/ContactListDescription.ts
index 5512f8734d..a303f39937 100644
--- a/packages/nodes-base/nodes/Emelia/ContactListDescription.ts
+++ b/packages/nodes-base/nodes/Emelia/ContactListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactListOperations = [
+export const contactListOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const contactListOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const contactListFields = [
+export const contactListFields: INodeProperties[] = [
// ----------------------------------
// contactList: add
// ----------------------------------
@@ -218,4 +218,4 @@ export const contactListFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Flow/TaskDescription.ts b/packages/nodes-base/nodes/Flow/TaskDescription.ts
index 076947adee..4ebaa7e8ef 100644
--- a/packages/nodes-base/nodes/Flow/TaskDescription.ts
+++ b/packages/nodes-base/nodes/Flow/TaskDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const taskOpeations = [
+export const taskOpeations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const taskOpeations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* task:create */
@@ -48,6 +48,7 @@ export const taskFields = [
displayName: 'Workspace ID',
name: 'workspaceId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -65,6 +66,7 @@ export const taskFields = [
displayName: 'Name',
name: 'name',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -233,6 +235,7 @@ export const taskFields = [
displayName: 'Workspace ID',
name: 'workspaceId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -250,6 +253,7 @@ export const taskFields = [
displayName: 'Task ID',
name: 'taskId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -419,6 +423,7 @@ export const taskFields = [
displayName: 'Task ID',
name: 'taskId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -663,4 +668,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts b/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts
index 6c6291147e..9e471fc2d5 100644
--- a/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Freshdesk/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -45,9 +45,9 @@ export const contactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:create/update */
@@ -419,4 +419,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts
index 17ea178ffd..b4b5016e7b 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AgentDescription.ts
@@ -6,7 +6,7 @@ import {
LANGUAGES,
} from '../constants';
-export const agentOperations = [
+export const agentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const agentOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const agentFields = [
+export const agentFields: INodeProperties[] = [
// ----------------------------------------
// agent: create
// ----------------------------------------
@@ -119,9 +119,7 @@ export const agentFields = [
description: 'Name of the role to assign to the agent. Choose from the list or specify an ID. You can also specify the ID using an expression.',
type: 'options',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentRoles',
- ],
+ loadOptionsMethod: 'getAgentRoles',
},
required: true,
default: '',
@@ -158,9 +156,7 @@ export const agentFields = [
description: 'Groups in which the permissions granted by the role apply. Required only when Scope is Specified Groups - ignored otherwise. Choose from the list or specify an ID using an expression.',
type: 'multiOptions',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
default: [],
},
@@ -204,9 +200,7 @@ export const agentFields = [
default: [],
description: 'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -235,9 +229,7 @@ export const agentFields = [
default: '',
description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getLocations',
- ],
+ loadOptionsMethod: 'getLocations',
},
},
{
@@ -247,9 +239,7 @@ export const agentFields = [
default: [],
description: 'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -265,9 +255,7 @@ export const agentFields = [
default: [],
description: 'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -439,9 +427,7 @@ export const agentFields = [
default: '',
description: 'ID of the department to which the agent belongs. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -482,9 +468,7 @@ export const agentFields = [
default: '',
description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getLocations',
- ],
+ loadOptionsMethod: 'getLocations',
},
},
{
@@ -559,9 +543,7 @@ export const agentFields = [
default: [],
description: 'IDs of the departments to which the agent belongs. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -602,9 +584,7 @@ export const agentFields = [
default: '',
description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getLocations',
- ],
+ loadOptionsMethod: 'getLocations',
},
},
{
@@ -614,9 +594,7 @@ export const agentFields = [
default: [],
description: 'Comma-separated IDs of the groups that the agent is a member of. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -632,9 +610,7 @@ export const agentFields = [
default: [],
description: 'Comma-separated IDs of the groups that the agent is an observer of. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -694,4 +670,4 @@ export const agentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts
index fe7616e76e..18cc1326d8 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AgentGroupDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const agentGroupOperations = [
+export const agentGroupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const agentGroupOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const agentGroupFields = [
+export const agentGroupFields: INodeProperties[] = [
// ----------------------------------------
// agentGroup: create
// ----------------------------------------
@@ -95,9 +95,7 @@ export const agentGroupFields = [
type: 'options',
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
description: 'ID of the user to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
},
@@ -108,9 +106,7 @@ export const agentGroupFields = [
default: [],
description: 'Comma-separated IDs of agents who are members of this group. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -120,9 +116,7 @@ export const agentGroupFields = [
default: [],
description: 'Comma-separated agent IDs who are observers of this group. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -308,9 +302,7 @@ export const agentGroupFields = [
default: '',
description: 'ID of the agent to whom an escalation email is sent if a ticket in this group is unassigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -320,9 +312,7 @@ export const agentGroupFields = [
default: [],
description: 'Comma-separated IDs of agents who are members of this group. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -338,9 +328,7 @@ export const agentGroupFields = [
default: [],
description: 'Comma-separated agent user IDs who are observers of this group. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -386,4 +374,4 @@ export const agentGroupFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts
index 8595fb9926..204c40358c 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AgentRoleDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const agentRoleOperations = [
+export const agentRoleOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -28,9 +28,9 @@ export const agentRoleOperations = [
],
default: 'get',
},
-] as INodeProperties[];
+];
-export const agentRoleFields = [
+export const agentRoleFields: INodeProperties[] = [
// ----------------------------------------
// agentRole: get
// ----------------------------------------
@@ -96,4 +96,4 @@ export const agentRoleFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts
index 73c5e433f1..b41fb4af4e 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AnnouncementDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const announcementOperations = [
+export const announcementOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const announcementOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const announcementFields = [
+export const announcementFields: INodeProperties[] = [
// ----------------------------------------
// announcement: create
// ----------------------------------------
@@ -164,9 +164,7 @@ export const announcementFields = [
default: [],
description: 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -333,9 +331,7 @@ export const announcementFields = [
default: [],
description: 'Comma-separated IDs of departments that may view this announcement. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -366,4 +362,4 @@ export const announcementFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts
index 9d815a793b..b1c0826bb4 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AssetDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const assetOperations = [
+export const assetOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const assetOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const assetFields = [
+export const assetFields: INodeProperties[] = [
// ----------------------------------------
// asset: create
// ----------------------------------------
@@ -74,9 +74,7 @@ export const assetFields = [
required: true,
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getAssetTypes',
- ],
+ loadOptionsMethod: 'getAssetTypes',
},
displayOptions: {
show: {
@@ -248,9 +246,7 @@ export const assetFields = [
default: '',
description: 'ID of the agent by whom the asset is managed. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -267,9 +263,7 @@ export const assetFields = [
default: '',
description: 'ID of the asset type to filter by. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAssetTypes',
- ],
+ loadOptionsMethod: 'getAssetTypes',
},
},
{
@@ -279,9 +273,7 @@ export const assetFields = [
default: '',
description: 'ID of the department to which the asset belongs. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -291,9 +283,7 @@ export const assetFields = [
default: '',
description: 'ID of the location to filter by. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getLocations',
- ],
+ loadOptionsMethod: 'getLocations',
},
},
{
@@ -375,4 +365,4 @@ export const assetFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts
index 7c4af2bc7a..73b11047ee 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/AssetTypeDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const assetTypeOperations = [
+export const assetTypeOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const assetTypeOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const assetTypeFields = [
+export const assetTypeFields: INodeProperties[] = [
// ----------------------------------------
// assetType: create
// ----------------------------------------
@@ -96,9 +96,7 @@ export const assetTypeFields = [
type: 'options',
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getAssetTypes',
- ],
+ loadOptionsMethod: 'getAssetTypes',
},
},
],
@@ -244,4 +242,4 @@ export const assetTypeFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts
index c447678b42..3168143a01 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/ChangeDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const changeOperations = [
+export const changeOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const changeOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const changeFields = [
+export const changeFields: INodeProperties[] = [
// ----------------------------------------
// change: create
// ----------------------------------------
@@ -57,9 +57,7 @@ export const changeFields = [
required: true,
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getRequesters',
- ],
+ loadOptionsMethod: 'getRequesters',
},
displayOptions: {
show: {
@@ -147,9 +145,7 @@ export const changeFields = [
default: '',
description: 'ID of the agent to whom the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -183,9 +179,7 @@ export const changeFields = [
default: '',
description: 'ID of the department requesting the change. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -202,9 +196,7 @@ export const changeFields = [
default: '',
description: 'ID of the agent group to which the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -518,9 +510,7 @@ export const changeFields = [
default: '',
description: 'ID of the agent to whom the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -554,9 +544,7 @@ export const changeFields = [
default: '',
description: 'ID of the department requesting the change. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -573,9 +561,7 @@ export const changeFields = [
default: '',
description: 'ID of the agent group to which the change is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -630,9 +616,7 @@ export const changeFields = [
default: '',
description: 'ID of the requester of the change. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getRequesters',
- ],
+ loadOptionsMethod: 'getRequesters',
},
},
{
@@ -699,4 +683,4 @@ export const changeFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts
index 7efcca4eff..cba79e8731 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/DepartmentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const departmentOperations = [
+export const departmentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const departmentOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const departmentFields = [
+export const departmentFields: INodeProperties[] = [
// ----------------------------------------
// department: create
// ----------------------------------------
@@ -272,4 +272,4 @@ export const departmentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts
index 3fdc2d3ac8..d6aecc60e7 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/LocationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const locationOperations = [
+export const locationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const locationOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const locationFields = [
+export const locationFields: INodeProperties[] = [
// ----------------------------------------
// location: create
// ----------------------------------------
@@ -323,4 +323,4 @@ export const locationFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts
index 742429a3d5..ed3926bdac 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/ProblemDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const problemOperations = [
+export const problemOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const problemOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const problemFields = [
+export const problemFields: INodeProperties[] = [
// ----------------------------------------
// problem: create
// ----------------------------------------
@@ -74,9 +74,7 @@ export const problemFields = [
required: true,
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getRequesters',
- ],
+ loadOptionsMethod: 'getRequesters',
},
displayOptions: {
show: {
@@ -130,9 +128,7 @@ export const problemFields = [
default: '',
description: 'ID of the agent to whom the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -142,9 +138,7 @@ export const problemFields = [
default: '',
description: 'ID of the department initiating the problem. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -161,9 +155,7 @@ export const problemFields = [
default: '',
description: 'ID of the agent group to which the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -366,9 +358,7 @@ export const problemFields = [
default: '',
description: 'ID of the agent to whom the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -378,9 +368,7 @@ export const problemFields = [
default: '',
description: 'ID of the department initiating the problem. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -404,9 +392,7 @@ export const problemFields = [
default: '',
description: 'ID of the agent group to which the problem is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -460,9 +446,7 @@ export const problemFields = [
default: '',
description: 'ID of the initiator of the problem. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getRequesters',
- ],
+ loadOptionsMethod: 'getRequesters',
},
},
{
@@ -493,4 +477,4 @@ export const problemFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts
index df54737060..db6a2cd38d 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/ProductDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const productOperations = [
+export const productOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const productOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const productFields = [
+export const productFields: INodeProperties[] = [
// ----------------------------------------
// product: create
// ----------------------------------------
@@ -57,9 +57,7 @@ export const productFields = [
required: true,
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getAssetTypes',
- ],
+ loadOptionsMethod: 'getAssetTypes',
},
displayOptions: {
show: {
@@ -295,9 +293,7 @@ export const productFields = [
description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.',
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getAssetTypes',
- ],
+ loadOptionsMethod: 'getAssetTypes',
},
},
{
@@ -361,4 +357,4 @@ export const productFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts
index bc57e0bb48..9753082e47 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/ReleaseDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const releaseOperations = [
+export const releaseOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const releaseOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const releaseFields = [
+export const releaseFields: INodeProperties[] = [
// ----------------------------------------
// release: create
// ----------------------------------------
@@ -230,9 +230,7 @@ export const releaseFields = [
default: '',
description: 'ID of the department initiating the release. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -249,9 +247,7 @@ export const releaseFields = [
default: '',
description: 'ID of the agent group to which the release is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
],
@@ -390,9 +386,7 @@ export const releaseFields = [
default: '',
description: 'ID of the department initiating the release. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -409,9 +403,7 @@ export const releaseFields = [
default: '',
description: 'ID of the agent group to which the release is assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -498,4 +490,4 @@ export const releaseFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts
index a2a348ec5f..1951f89d3f 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterDescription.ts
@@ -3,7 +3,7 @@ import {
} from 'n8n-workflow';
import { LANGUAGES } from '../constants';
-export const requesterOperations = [
+export const requesterOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const requesterOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const requesterFields = [
+export const requesterFields: INodeProperties[] = [
// ----------------------------------------
// requester: create
// ----------------------------------------
@@ -119,9 +119,7 @@ export const requesterFields = [
default: [],
description: 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -150,9 +148,7 @@ export const requesterFields = [
type: 'options',
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getLocations',
- ],
+ loadOptionsMethod: 'getLocations',
},
},
{
@@ -304,9 +300,7 @@ export const requesterFields = [
type: 'options',
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -341,9 +335,7 @@ export const requesterFields = [
description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.',
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getLocations',
- ],
+ loadOptionsMethod: 'getLocations',
},
},
{
@@ -424,9 +416,7 @@ export const requesterFields = [
default: [],
description: 'Comma-separated IDs of the departments associated with the requester. Choose from the list or specify an ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -461,9 +451,7 @@ export const requesterFields = [
default: '',
description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getLocations',
- ],
+ loadOptionsMethod: 'getLocations',
},
},
{
@@ -509,4 +497,4 @@ export const requesterFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts
index 1ed51ee6e4..9b0abba7f5 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/RequesterGroupDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const requesterGroupOperations = [
+export const requesterGroupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const requesterGroupOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const requesterGroupFields = [
+export const requesterGroupFields: INodeProperties[] = [
// ----------------------------------------
// requesterGroup: create
// ----------------------------------------
@@ -234,4 +234,4 @@ export const requesterGroupFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts
index d8a7255a5e..eb5e505cca 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/SoftwareDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const softwareOperations = [
+export const softwareOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const softwareOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const softwareFields = [
+export const softwareFields: INodeProperties[] = [
// ----------------------------------------
// software: create
// ----------------------------------------
@@ -344,4 +344,4 @@ export const softwareFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts b/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts
index 006e355a79..61f925055c 100644
--- a/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts
+++ b/packages/nodes-base/nodes/Freshservice/descriptions/TicketDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const ticketOperations = [
+export const ticketOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const ticketOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const ticketFields = [
+export const ticketFields: INodeProperties[] = [
// ----------------------------------------
// ticket: create
// ----------------------------------------
@@ -199,9 +199,7 @@ export const ticketFields = [
default: '',
description: 'ID of the department to which this ticket belongs. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -211,9 +209,7 @@ export const ticketFields = [
default: '',
description: 'ID of the group to which the ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -250,9 +246,7 @@ export const ticketFields = [
description: 'Choose from the list or specify an ID. You can also specify the ID using an expression.',
default: '',
typeOptions: {
- loadOptionsMethod: [
- 'getRequesters',
- ],
+ loadOptionsMethod: 'getRequesters',
},
},
],
@@ -369,9 +363,7 @@ export const ticketFields = [
default: '',
description: 'ID of the agent to whom the tickets have been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgents',
- ],
+ loadOptionsMethod: 'getAgents',
},
},
{
@@ -381,9 +373,7 @@ export const ticketFields = [
default: '',
description: 'ID of the group to which the tickets have been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -516,9 +506,7 @@ export const ticketFields = [
default: '',
description: 'ID of the department to which this ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getDepartments',
- ],
+ loadOptionsMethod: 'getDepartments',
},
},
{
@@ -542,9 +530,7 @@ export const ticketFields = [
default: '',
description: 'ID of the group to which the ticket has been assigned. Choose from the list or specify an ID. You can also specify the ID using an expression.',
typeOptions: {
- loadOptionsMethod: [
- 'getAgentGroups',
- ],
+ loadOptionsMethod: 'getAgentGroups',
},
},
{
@@ -637,4 +623,4 @@ export const ticketFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts
index 645aae75e2..f368c97e1b 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AccountDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const accountOperations = [
+export const accountOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const accountOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const accountFields = [
+export const accountFields: INodeProperties[] = [
// ----------------------------------------
// account: create
// ----------------------------------------
@@ -504,4 +504,4 @@ export const accountFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts
index 172d4c993f..fcdb127dd2 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/AppointmentDescription.ts
@@ -6,7 +6,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const appointmentOperations = [
+export const appointmentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const appointmentOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const appointmentFields = [
+export const appointmentFields: INodeProperties[] = [
// ----------------------------------------
// appointment: create
// ----------------------------------------
@@ -633,4 +633,4 @@ export const appointmentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts
index 9d53155360..b6fcbb2e0a 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const contactOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
// ----------------------------------------
// contact: create
// ----------------------------------------
@@ -665,4 +665,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts
index ad5ca251d6..439f1757e9 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/DealDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const dealOperations = [
+export const dealOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const dealOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const dealFields = [
+export const dealFields: INodeProperties[] = [
// ----------------------------------------
// deal: create
// ----------------------------------------
@@ -542,4 +542,4 @@ export const dealFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts
index d5f48085f1..9bb81d77b1 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/NoteDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const noteOperations = [
+export const noteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -33,9 +33,9 @@ export const noteOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const noteFields = [
+export const noteFields: INodeProperties[] = [
// ----------------------------------------
// note: create
// ----------------------------------------
@@ -211,4 +211,4 @@ export const noteFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts
index d410df0bbf..e7b08082c4 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/SalesActivityDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const salesActivityOperations = [
+export const salesActivityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const salesActivityOperations = [
],
default: 'get',
},
-] as INodeProperties[];
+];
-export const salesActivityFields = [
+export const salesActivityFields: INodeProperties[] = [
// ----------------------------------------
// salesActivity: create
// ----------------------------------------
@@ -403,6 +403,7 @@ export const salesActivityFields = [
name: 'end_date',
description: 'Timestamp that denotes the start of the sales activity',
type: 'dateTime',
+ default: '',
},
{
displayName: 'Latitude',
@@ -467,6 +468,7 @@ export const salesActivityFields = [
name: 'from_date',
description: 'Timestamp that denotes the start of the sales activity',
type: 'dateTime',
+ default: '',
},
{
displayName: 'Target ID',
@@ -505,4 +507,4 @@ export const salesActivityFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts
index 0f8fc6de33..b3eb19a420 100644
--- a/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts
+++ b/packages/nodes-base/nodes/FreshworksCrm/descriptions/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const taskOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
// ----------------------------------------
// task: create
// ----------------------------------------
@@ -477,4 +477,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/GetResponse/ContactDescription.ts b/packages/nodes-base/nodes/GetResponse/ContactDescription.ts
index 05dcc4442e..0cf2736f0b 100644
--- a/packages/nodes-base/nodes/GetResponse/ContactDescription.ts
+++ b/packages/nodes-base/nodes/GetResponse/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const contactOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:create */
/* -------------------------------------------------------------------------- */
@@ -642,4 +642,4 @@ export const contactFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Ghost/PostDescription.ts b/packages/nodes-base/nodes/Ghost/PostDescription.ts
index 11f920d1ce..2d3674014d 100644
--- a/packages/nodes-base/nodes/Ghost/PostDescription.ts
+++ b/packages/nodes-base/nodes/Ghost/PostDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const postOperations = [
+export const postOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -76,9 +76,9 @@ export const postOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const postFields = [
+export const postFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* post:create */
/* -------------------------------------------------------------------------- */
@@ -928,4 +928,4 @@ export const postFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Git/descriptions/AddConfigDescription.ts b/packages/nodes-base/nodes/Git/descriptions/AddConfigDescription.ts
index db336d5b9e..9b10649978 100644
--- a/packages/nodes-base/nodes/Git/descriptions/AddConfigDescription.ts
+++ b/packages/nodes-base/nodes/Git/descriptions/AddConfigDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const addConfigFields = [
+export const addConfigFields: INodeProperties[] = [
{
displayName: 'Key',
name: 'key',
@@ -68,4 +68,4 @@ export const addConfigFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts b/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts
index 478d3f4de6..42ecd5f05b 100644
--- a/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts
+++ b/packages/nodes-base/nodes/Git/descriptions/AddDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const addFields = [
+export const addFields: INodeProperties[] = [
{
displayName: 'Paths to Add',
name: 'pathsToAdd',
@@ -19,4 +19,4 @@ export const addFields = [
description: 'Comma separated list of paths (absolute or relative to Repository Path) of files or folders to add.',
required: true,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Git/descriptions/CloneDescription.ts b/packages/nodes-base/nodes/Git/descriptions/CloneDescription.ts
index 21546e9eb5..4d0ac9194e 100644
--- a/packages/nodes-base/nodes/Git/descriptions/CloneDescription.ts
+++ b/packages/nodes-base/nodes/Git/descriptions/CloneDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const cloneFields = [
+export const cloneFields: INodeProperties[] = [
{
displayName: 'Source Repository',
name: 'sourceRepository',
@@ -19,4 +19,4 @@ export const cloneFields = [
description: 'The URL or path of the repository to clone.',
required: true,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Git/descriptions/CommitDescription.ts b/packages/nodes-base/nodes/Git/descriptions/CommitDescription.ts
index e18f46b003..307ed5fe64 100644
--- a/packages/nodes-base/nodes/Git/descriptions/CommitDescription.ts
+++ b/packages/nodes-base/nodes/Git/descriptions/CommitDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const commitFields = [
+export const commitFields: INodeProperties[] = [
{
displayName: 'Message',
name: 'message',
@@ -41,4 +41,4 @@ export const commitFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts b/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts
index f17e903e5d..b774a7bab9 100644
--- a/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts
+++ b/packages/nodes-base/nodes/Git/descriptions/LogDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const logFields = [
+export const logFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -61,4 +61,4 @@ export const logFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Git/descriptions/PushDescription.ts b/packages/nodes-base/nodes/Git/descriptions/PushDescription.ts
index 797559b6d5..1175d59fce 100644
--- a/packages/nodes-base/nodes/Git/descriptions/PushDescription.ts
+++ b/packages/nodes-base/nodes/Git/descriptions/PushDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const pushFields = [
+export const pushFields: INodeProperties[] = [
{
displayName: 'Options',
name: 'options',
@@ -27,4 +27,4 @@ export const pushFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts b/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts
index bfd0f39fb0..6894ddaeb6 100644
--- a/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts
+++ b/packages/nodes-base/nodes/Git/descriptions/TagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const tagFields = [
+export const tagFields: INodeProperties[] = [
{
displayName: 'Name',
name: 'name',
@@ -18,4 +18,4 @@ export const tagFields = [
description: 'The name of the tag to create.',
required: true,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/AttendeeDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/AttendeeDescription.ts
index 709e9a2c00..fccd0b2e88 100644
--- a/packages/nodes-base/nodes/GoToWebinar/descriptions/AttendeeDescription.ts
+++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/AttendeeDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const attendeeOperations = [
+export const attendeeOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -31,9 +31,9 @@ export const attendeeOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const attendeeFields = [
+export const attendeeFields: INodeProperties[] = [
// ----------------------------------
// attendee: shared fields
// ----------------------------------
@@ -200,4 +200,4 @@ export const attendeeFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/CoorganizerDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/CoorganizerDescription.ts
index 717b63d3b1..f075715f4a 100644
--- a/packages/nodes-base/nodes/GoToWebinar/descriptions/CoorganizerDescription.ts
+++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/CoorganizerDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const coorganizerOperations = [
+export const coorganizerOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,9 +35,9 @@ export const coorganizerOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const coorganizerFields = [
+export const coorganizerFields: INodeProperties[] = [
// ----------------------------------
// coorganizer: create
// ----------------------------------
@@ -84,6 +84,7 @@ export const coorganizerFields = [
displayName: 'Organizer Key',
name: 'organizerKey',
type: 'string',
+ default: '',
description: 'The co-organizer\'s organizer key for the webinar.',
displayOptions: {
show: {
@@ -322,4 +323,4 @@ export const coorganizerFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/PanelistDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/PanelistDescription.ts
index d31ef9948f..79e5a2c80c 100644
--- a/packages/nodes-base/nodes/GoToWebinar/descriptions/PanelistDescription.ts
+++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/PanelistDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const panelistOperations = [
+export const panelistOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,9 +35,9 @@ export const panelistOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const panelistFields = [
+export const panelistFields: INodeProperties[] = [
// ----------------------------------
// panelist: create
// ----------------------------------
@@ -250,4 +250,4 @@ export const panelistFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/RegistrantDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/RegistrantDescription.ts
index 078f557bb5..93c2347055 100644
--- a/packages/nodes-base/nodes/GoToWebinar/descriptions/RegistrantDescription.ts
+++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/RegistrantDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const registrantOperations = [
+export const registrantOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,9 +35,9 @@ export const registrantOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const registrantFields = [
+export const registrantFields: INodeProperties[] = [
// ----------------------------------
// registrant: create
// ----------------------------------
@@ -472,4 +472,4 @@ export const registrantFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/SessionDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/SessionDescription.ts
index b9545237e5..053049c0c0 100644
--- a/packages/nodes-base/nodes/GoToWebinar/descriptions/SessionDescription.ts
+++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/SessionDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const sessionOperations = [
+export const sessionOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -31,9 +31,9 @@ export const sessionOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const sessionFields = [
+export const sessionFields: INodeProperties[] = [
// ----------------------------------
// session: getAll
// ----------------------------------
@@ -223,4 +223,4 @@ export const sessionFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/GoToWebinar/descriptions/WebinarDescription.ts b/packages/nodes-base/nodes/GoToWebinar/descriptions/WebinarDescription.ts
index c612d2e012..57c47c63cb 100644
--- a/packages/nodes-base/nodes/GoToWebinar/descriptions/WebinarDescription.ts
+++ b/packages/nodes-base/nodes/GoToWebinar/descriptions/WebinarDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const webinarOperations = [
+export const webinarOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const webinarOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const webinarFields = [
+export const webinarFields: INodeProperties[] = [
// ----------------------------------
// webinar: create
// ----------------------------------
@@ -466,6 +466,7 @@ export const webinarFields = [
displayName: 'Times',
name: 'times',
type: 'fixedCollection',
+ default: {},
typeOptions: {
multipleValues: true,
},
@@ -540,4 +541,4 @@ export const webinarFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Analytics/ReportDescription.ts b/packages/nodes-base/nodes/Google/Analytics/ReportDescription.ts
index dc84d3c650..d70bcfadd4 100644
--- a/packages/nodes-base/nodes/Google/Analytics/ReportDescription.ts
+++ b/packages/nodes-base/nodes/Google/Analytics/ReportDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const reportOperations = [
+export const reportOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const reportOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const reportFields = [
+export const reportFields: INodeProperties[] = [
{
displayName: 'View ID',
name: 'viewId',
@@ -354,4 +354,4 @@ export const reportFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Analytics/UserActivityDescription.ts b/packages/nodes-base/nodes/Google/Analytics/UserActivityDescription.ts
index 4201b900cb..d3cec1afe9 100644
--- a/packages/nodes-base/nodes/Google/Analytics/UserActivityDescription.ts
+++ b/packages/nodes-base/nodes/Google/Analytics/UserActivityDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userActivityOperations = [
+export const userActivityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const userActivityOperations = [
default: 'search',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userActivityFields = [
+export const userActivityFields: INodeProperties[] = [
{
displayName: 'View ID',
name: 'viewId',
@@ -157,4 +157,4 @@ export const userActivityFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/BigQuery/RecordDescription.ts b/packages/nodes-base/nodes/Google/BigQuery/RecordDescription.ts
index dcae15e41f..e671c65623 100644
--- a/packages/nodes-base/nodes/Google/BigQuery/RecordDescription.ts
+++ b/packages/nodes-base/nodes/Google/BigQuery/RecordDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const recordOperations = [
+export const recordOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const recordOperations = [
default: 'create',
description: 'Operation to perform.',
},
-] as INodeProperties[];
+];
-export const recordFields = [
+export const recordFields: INodeProperties[] = [
// ----------------------------------
// record: create
// ----------------------------------
@@ -336,4 +336,4 @@ export const recordFields = [
// },
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Calendar/CalendarDescription.ts b/packages/nodes-base/nodes/Google/Calendar/CalendarDescription.ts
index ab2f70a65b..14dc62d3bc 100644
--- a/packages/nodes-base/nodes/Google/Calendar/CalendarDescription.ts
+++ b/packages/nodes-base/nodes/Google/Calendar/CalendarDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const calendarOperations = [
+export const calendarOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const calendarOperations = [
default: 'availability',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const calendarFields = [
+export const calendarFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* calendar:availability */
/* -------------------------------------------------------------------------- */
@@ -138,4 +138,4 @@ export const calendarFields = [
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts b/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts
index 1b6c284e72..616117fd86 100644
--- a/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts
+++ b/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const eventOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* event:getAll */
/* -------------------------------------------------------------------------- */
@@ -1086,4 +1086,4 @@ export const eventFields = [
],
description: `If the event doesn't use the default reminders, this lists the reminders specific to the event`,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts b/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts
index bec7058c72..f11dcbe07c 100644
--- a/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const contactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:create */
/* -------------------------------------------------------------------------- */
@@ -1576,4 +1576,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Docs/DocumentDescription.ts b/packages/nodes-base/nodes/Google/Docs/DocumentDescription.ts
index 519d7c5dac..6bcaa56ea9 100644
--- a/packages/nodes-base/nodes/Google/Docs/DocumentDescription.ts
+++ b/packages/nodes-base/nodes/Google/Docs/DocumentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const documentOperations = [
+export const documentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -31,9 +31,9 @@ export const documentOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const documentFields = [
+export const documentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* document: create */
/* -------------------------------------------------------------------------- */
@@ -1209,4 +1209,4 @@ export const documentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/CollectionDescription.ts b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/CollectionDescription.ts
index df338c340f..c5db0ae57c 100644
--- a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/CollectionDescription.ts
+++ b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/CollectionDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const collectionOperations = [
+export const collectionOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const collectionOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const collectionFields = [
+export const collectionFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* collection:getAll */
/* -------------------------------------------------------------------------- */
@@ -111,4 +111,4 @@ export const collectionFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts
index fb95476a8a..8487a841d0 100644
--- a/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts
+++ b/packages/nodes-base/nodes/Google/Firebase/CloudFirestore/DocumentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const documentOperations = [
+export const documentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -54,9 +54,9 @@ export const documentOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const documentFields = [
+export const documentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* document:create */
/* -------------------------------------------------------------------------- */
@@ -742,4 +742,4 @@ export const documentFields = [
default: true,
description: 'Return a simplified version of the response instead of the raw data.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/GSuiteAdmin/GroupDescripion.ts b/packages/nodes-base/nodes/Google/GSuiteAdmin/GroupDescripion.ts
index 216da42d92..5f94961cd4 100644
--- a/packages/nodes-base/nodes/Google/GSuiteAdmin/GroupDescripion.ts
+++ b/packages/nodes-base/nodes/Google/GSuiteAdmin/GroupDescripion.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const groupOperations = [
+export const groupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const groupOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const groupFields = [
+export const groupFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* group:create */
/* -------------------------------------------------------------------------- */
@@ -325,4 +325,4 @@ export const groupFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts b/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts
index 1a47d40213..a881da4531 100644
--- a/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts
+++ b/packages/nodes-base/nodes/Google/GSuiteAdmin/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const userOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:create */
/* -------------------------------------------------------------------------- */
@@ -936,4 +936,4 @@ export const userFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts b/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts
index 5831037901..c7e039fa4f 100644
--- a/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts
+++ b/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const draftOperations = [
+export const draftOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const draftOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const draftFields = [
+export const draftFields: INodeProperties[] = [
{
displayName: 'Draft ID',
name: 'messageId',
@@ -417,4 +417,4 @@ export const draftFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts b/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts
index 0b02753f10..b9104a3267 100644
--- a/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts
+++ b/packages/nodes-base/nodes/Google/Gmail/LabelDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const labelOperations = [
+export const labelOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const labelOperations = [
default: 'create',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const labelFields = [
+export const labelFields: INodeProperties[] = [
{
displayName: 'Name',
name: 'name',
@@ -184,4 +184,4 @@ export const labelFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts b/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts
index 196c122ace..b1d70ff31d 100644
--- a/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts
+++ b/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const messageOperations = [
+export const messageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const messageOperations = [
default: 'send',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const messageFields = [
+export const messageFields: INodeProperties[] = [
{
displayName: 'Message ID',
name: 'messageId',
@@ -505,4 +505,4 @@ export const messageFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts b/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts
index 1481f76b86..fcc297469b 100644
--- a/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts
+++ b/packages/nodes-base/nodes/Google/Gmail/MessageLabelDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const messageLabelOperations = [
+export const messageLabelOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const messageLabelOperations = [
default: 'add',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const messageLabelFields = [
+export const messageLabelFields: INodeProperties[] = [
{
displayName: 'Message ID',
name: 'messageId',
@@ -74,4 +74,4 @@ export const messageLabelFields = [
},
description: 'The ID of the label',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/Task/TaskDescription.ts b/packages/nodes-base/nodes/Google/Task/TaskDescription.ts
index 90747569d6..c757365df7 100644
--- a/packages/nodes-base/nodes/Google/Task/TaskDescription.ts
+++ b/packages/nodes-base/nodes/Google/Task/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const taskOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* task:create */
/* -------------------------------------------------------------------------- */
@@ -497,4 +497,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts b/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts
index cdd6608726..e41e23e638 100644
--- a/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts
+++ b/packages/nodes-base/nodes/Google/YouTube/ChannelDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const channelOperations = [
+export const channelOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const channelOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const channelFields = [
+export const channelFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* channel:getAll */
/* -------------------------------------------------------------------------- */
@@ -583,4 +583,4 @@ export const channelFields = [
},
default: 'data',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts b/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts
index 631a58fcd2..987a83ccc2 100644
--- a/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts
+++ b/packages/nodes-base/nodes/Google/YouTube/PlaylistDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const playlistOperations = [
+export const playlistOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const playlistOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const playlistFields = [
+export const playlistFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* playlist:create */
/* -------------------------------------------------------------------------- */
@@ -561,4 +561,4 @@ export const playlistFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts b/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts
index 63bf1df296..a37381f9f3 100644
--- a/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts
+++ b/packages/nodes-base/nodes/Google/YouTube/PlaylistItemDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const playlistItemOperations = [
+export const playlistItemOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const playlistItemOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const playlistItemFields = [
+export const playlistItemFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* playlistItem:add */
/* -------------------------------------------------------------------------- */
@@ -401,4 +401,4 @@ export const playlistItemFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts b/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts
index e4b91b73ad..42af674ff3 100644
--- a/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts
+++ b/packages/nodes-base/nodes/Google/YouTube/VideoCategoryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const videoCategoryOperations = [
+export const videoCategoryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -25,9 +25,9 @@ export const videoCategoryOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const videoCategoryFields = [
+export const videoCategoryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* videoCategory:getAll */
/* -------------------------------------------------------------------------- */
@@ -92,4 +92,4 @@ export const videoCategoryFields = [
default: 25,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts b/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts
index cdef7e90fa..3df9d6dc4e 100644
--- a/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts
+++ b/packages/nodes-base/nodes/Google/YouTube/VideoDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const videoOperations = [
+export const videoOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const videoOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const videoFields = [
+export const videoFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* video:upload */
/* -------------------------------------------------------------------------- */
@@ -872,4 +872,4 @@ export const videoFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/ClientDescription.ts b/packages/nodes-base/nodes/Harvest/ClientDescription.ts
index fef5a88f93..bc12cf4866 100644
--- a/packages/nodes-base/nodes/Harvest/ClientDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/ClientDescription.ts
@@ -6,7 +6,7 @@ const resource = [
'client',
];
-export const clientOperations = [
+export const clientOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -48,9 +48,9 @@ export const clientOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const clientFields = [
+export const clientFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* client:getAll */
@@ -288,4 +288,4 @@ export const clientFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/CompanyDescription.ts b/packages/nodes-base/nodes/Harvest/CompanyDescription.ts
index 64948b0a15..3fa320eee7 100644
--- a/packages/nodes-base/nodes/Harvest/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/CompanyDescription.ts
@@ -6,7 +6,7 @@ const resource = [
'company',
];
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,4 +27,4 @@ export const companyOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/ContactDescription.ts b/packages/nodes-base/nodes/Harvest/ContactDescription.ts
index ac38607256..e968da1e71 100644
--- a/packages/nodes-base/nodes/Harvest/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/ContactDescription.ts
@@ -6,7 +6,7 @@ const resource = [
'contact',
];
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const contactOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:getAll */
@@ -353,4 +353,4 @@ export const contactFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/EstimateDescription.ts b/packages/nodes-base/nodes/Harvest/EstimateDescription.ts
index dbf918ba1c..d4c22e2bcb 100644
--- a/packages/nodes-base/nodes/Harvest/EstimateDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/EstimateDescription.ts
@@ -6,7 +6,7 @@ const resource = [
'estimate',
];
-export const estimateOperations = [
+export const estimateOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const estimateOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const estimateFields = [
+export const estimateFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* estimate:getAll */
@@ -402,4 +402,4 @@ export const estimateFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts b/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts
index 024fa25059..784d9913f6 100644
--- a/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/ExpenseDescription.ts
@@ -6,7 +6,7 @@ const resource = [
'expense',
];
-export const expenseOperations = [
+export const expenseOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const expenseOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const expenseFields = [
+export const expenseFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* expense:getAll */
@@ -406,4 +406,4 @@ export const expenseFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts b/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts
index 263636b08d..9a3ed00c49 100644
--- a/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/InvoiceDescription.ts
@@ -6,7 +6,7 @@ const resource = [
'invoice',
];
-export const invoiceOperations = [
+export const invoiceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const invoiceOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const invoiceFields = [
+export const invoiceFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* invoice:getAll */
@@ -483,4 +483,4 @@ export const invoiceFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/ProjectDescription.ts b/packages/nodes-base/nodes/Harvest/ProjectDescription.ts
index 067d94f111..d8e2949788 100644
--- a/packages/nodes-base/nodes/Harvest/ProjectDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/ProjectDescription.ts
@@ -6,7 +6,7 @@ const resource = [
'project',
];
-export const projectOperations = [
+export const projectOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const projectOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const projectFields = [
+export const projectFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* projects:getAll */
@@ -590,4 +590,4 @@ export const projectFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/TaskDescription.ts b/packages/nodes-base/nodes/Harvest/TaskDescription.ts
index c5b89773b1..00d059ef3d 100644
--- a/packages/nodes-base/nodes/Harvest/TaskDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/TaskDescription.ts
@@ -6,7 +6,7 @@ const resource = [
'task',
];
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const taskOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* task:getAll */
@@ -312,4 +312,4 @@ export const taskFields = [
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/TimeEntryDescription.ts b/packages/nodes-base/nodes/Harvest/TimeEntryDescription.ts
index 58ed292ace..c93ac5c9f4 100644
--- a/packages/nodes-base/nodes/Harvest/TimeEntryDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/TimeEntryDescription.ts
@@ -6,7 +6,7 @@ export const resource = [
'timeEntry',
];
-export const timeEntryOperations = [
+export const timeEntryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -66,9 +66,9 @@ export const timeEntryOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const timeEntryFields = [
+export const timeEntryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* timeEntry:getAll */
/* -------------------------------------------------------------------------- */
@@ -551,4 +551,4 @@ export const timeEntryFields = [
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Harvest/UserDescription.ts b/packages/nodes-base/nodes/Harvest/UserDescription.ts
index d3e2640cf5..7a54a58d59 100644
--- a/packages/nodes-base/nodes/Harvest/UserDescription.ts
+++ b/packages/nodes-base/nodes/Harvest/UserDescription.ts
@@ -6,7 +6,7 @@ const resource = [
'user',
];
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -53,9 +53,9 @@ export const userOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:getAll */
@@ -501,4 +501,4 @@ export const userFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts b/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts
index 154c2ae0f5..d29d2a85a2 100644
--- a/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts
+++ b/packages/nodes-base/nodes/HelpScout/ConversationDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const conversationOperations = [
+export const conversationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const conversationOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const conversationFields = [
+export const conversationFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* conversation:create */
/* -------------------------------------------------------------------------- */
@@ -635,4 +635,4 @@ export const conversationFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts b/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts
index 52f8e6299f..dd2afd369c 100644
--- a/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts
+++ b/packages/nodes-base/nodes/HelpScout/CustomerDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const customerOperations = [
+export const customerOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const customerOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const customerFields = [
+export const customerFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* customer:create */
/* -------------------------------------------------------------------------- */
@@ -848,4 +848,4 @@ export const customerFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/HelpScout/MailboxDescription.ts b/packages/nodes-base/nodes/HelpScout/MailboxDescription.ts
index d9aff61100..915cb8320b 100644
--- a/packages/nodes-base/nodes/HelpScout/MailboxDescription.ts
+++ b/packages/nodes-base/nodes/HelpScout/MailboxDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const mailboxOperations = [
+export const mailboxOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const mailboxOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const mailboxFields = [
+export const mailboxFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* mailbox:get */
@@ -94,4 +94,4 @@ export const mailboxFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts b/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts
index 6a16656980..95dfedfa55 100644
--- a/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts
+++ b/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const threadOperations = [
+export const threadOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const threadOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const threadFields = [
+export const threadFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* thread:create */
/* -------------------------------------------------------------------------- */
@@ -294,4 +294,4 @@ export const threadFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/HomeAssistant/CameraProxyDescription.ts b/packages/nodes-base/nodes/HomeAssistant/CameraProxyDescription.ts
index bd7f2b6852..6ff8c3d966 100644
--- a/packages/nodes-base/nodes/HomeAssistant/CameraProxyDescription.ts
+++ b/packages/nodes-base/nodes/HomeAssistant/CameraProxyDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/HomeAssistant/ConfigDescription.ts b/packages/nodes-base/nodes/HomeAssistant/ConfigDescription.ts
index 1606ab4df5..0cdda83720 100644
--- a/packages/nodes-base/nodes/HomeAssistant/ConfigDescription.ts
+++ b/packages/nodes-base/nodes/HomeAssistant/ConfigDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/HomeAssistant/EventDescription.ts b/packages/nodes-base/nodes/HomeAssistant/EventDescription.ts
index 6aa1ae1246..d143edc125 100644
--- a/packages/nodes-base/nodes/HomeAssistant/EventDescription.ts
+++ b/packages/nodes-base/nodes/HomeAssistant/EventDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/HomeAssistant/HistoryDescription.ts b/packages/nodes-base/nodes/HomeAssistant/HistoryDescription.ts
index 53b466d6e4..0f58ab4056 100644
--- a/packages/nodes-base/nodes/HomeAssistant/HistoryDescription.ts
+++ b/packages/nodes-base/nodes/HomeAssistant/HistoryDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/HomeAssistant/LogDescription.ts b/packages/nodes-base/nodes/HomeAssistant/LogDescription.ts
index ba1d5c651f..ca9c31a0f8 100644
--- a/packages/nodes-base/nodes/HomeAssistant/LogDescription.ts
+++ b/packages/nodes-base/nodes/HomeAssistant/LogDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/HomeAssistant/ServiceDescription.ts b/packages/nodes-base/nodes/HomeAssistant/ServiceDescription.ts
index d278d47227..a6cde1a24d 100644
--- a/packages/nodes-base/nodes/HomeAssistant/ServiceDescription.ts
+++ b/packages/nodes-base/nodes/HomeAssistant/ServiceDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts b/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts
index aa356f1c7a..ba0dd384cc 100644
--- a/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts
+++ b/packages/nodes-base/nodes/HomeAssistant/StateDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/HomeAssistant/TemplateDescription.ts b/packages/nodes-base/nodes/HomeAssistant/TemplateDescription.ts
index 6a5685e260..42503defa2 100644
--- a/packages/nodes-base/nodes/HomeAssistant/TemplateDescription.ts
+++ b/packages/nodes-base/nodes/HomeAssistant/TemplateDescription.ts
@@ -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. See template docs for more information.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts b/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts
index 053457f0bc..ae051da873 100644
--- a/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -59,9 +59,9 @@ export const companyOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* company:create */
@@ -1100,4 +1100,4 @@ export const companyFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts
index e6dc54e7e2..b0635ca889 100644
--- a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const contactOperations = [
default: 'upsert',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:upsert */
@@ -1098,4 +1098,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Hubspot/ContactListDescription.ts b/packages/nodes-base/nodes/Hubspot/ContactListDescription.ts
index f0746e94fc..5d493009d4 100644
--- a/packages/nodes-base/nodes/Hubspot/ContactListDescription.ts
+++ b/packages/nodes-base/nodes/Hubspot/ContactListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactListOperations = [
+export const contactListOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const contactListOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactListFields = [
+export const contactListFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contactList:add */
@@ -158,4 +158,4 @@ export const contactListFields = [
},
default: '',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Hubspot/DealDescription.ts b/packages/nodes-base/nodes/Hubspot/DealDescription.ts
index 93ad4c311c..41248ff01c 100644
--- a/packages/nodes-base/nodes/Hubspot/DealDescription.ts
+++ b/packages/nodes-base/nodes/Hubspot/DealDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const dealOperations = [
+export const dealOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -59,9 +59,9 @@ export const dealOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const dealFields = [
+export const dealFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* deal:create */
@@ -797,4 +797,4 @@ export const dealFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Hubspot/FormDescription.ts b/packages/nodes-base/nodes/Hubspot/FormDescription.ts
index 1ef8d23717..8f5af57407 100644
--- a/packages/nodes-base/nodes/Hubspot/FormDescription.ts
+++ b/packages/nodes-base/nodes/Hubspot/FormDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const formOperations = [
+export const formOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const formOperations = [
default: 'getFields',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const formFields = [
+export const formFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* form:submit */
@@ -323,4 +323,4 @@ export const formFields = [
default: '',
description: 'The ID of the form',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Hubspot/TicketDescription.ts b/packages/nodes-base/nodes/Hubspot/TicketDescription.ts
index 2fa3dbae4c..b8448f4423 100644
--- a/packages/nodes-base/nodes/Hubspot/TicketDescription.ts
+++ b/packages/nodes-base/nodes/Hubspot/TicketDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const ticketOperations = [
+export const ticketOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const ticketOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const ticketFields = [
+export const ticketFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* ticket:create */
@@ -545,4 +545,4 @@ export const ticketFields = [
default: '',
description: 'Unique identifier for a particular ticket',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/HumanticAI/ProfileDescription.ts b/packages/nodes-base/nodes/HumanticAI/ProfileDescription.ts
index bfe42e854b..8da1fa129d 100644
--- a/packages/nodes-base/nodes/HumanticAI/ProfileDescription.ts
+++ b/packages/nodes-base/nodes/HumanticAI/ProfileDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const profileOperations = [
+export const profileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const profileOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const profileFields = [
+export const profileFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* profile:create */
/* -------------------------------------------------------------------------- */
@@ -234,4 +234,4 @@ export const profileFields = [
},
description: `The resume in PDF or DOCX format.`,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Intercom/CompanyDescription.ts b/packages/nodes-base/nodes/Intercom/CompanyDescription.ts
index 2db69e1fcf..0a79b6c39b 100644
--- a/packages/nodes-base/nodes/Intercom/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/Intercom/CompanyDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const companyOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* company:users */
@@ -446,4 +446,4 @@ export const companyFields = [
],
description: 'A hash of key/value pairs to represent custom data you want to attribute to a user.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Intercom/LeadDescription.ts b/packages/nodes-base/nodes/Intercom/LeadDescription.ts
index 11d1a7bdb4..f80e08fe6d 100644
--- a/packages/nodes-base/nodes/Intercom/LeadDescription.ts
+++ b/packages/nodes-base/nodes/Intercom/LeadDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const leadOpeations = [
+export const leadOpeations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const leadOpeations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const leadFields = [
+export const leadFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* lead:delete */
@@ -82,6 +82,7 @@ export const leadFields = [
displayName: 'Value',
name: 'value',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -513,4 +514,4 @@ export const leadFields = [
],
description: 'A hash of key/value pairs to represent custom data you want to attribute to a user.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Intercom/UserDescription.ts b/packages/nodes-base/nodes/Intercom/UserDescription.ts
index d6c2fd68a9..45b3ab5773 100644
--- a/packages/nodes-base/nodes/Intercom/UserDescription.ts
+++ b/packages/nodes-base/nodes/Intercom/UserDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const userOpeations = [
+export const userOpeations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const userOpeations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:delete */
@@ -566,4 +566,4 @@ export const userFields = [
],
description: 'A hash of key/value pairs to represent custom data you want to attribute to a user.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts
index 9041916adc..5d7ca55a04 100644
--- a/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts
+++ b/packages/nodes-base/nodes/InvoiceNinja/ClientDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const clientOperations = [
+export const clientOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const clientOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const clientFields = [
+export const clientFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* client:create */
/* -------------------------------------------------------------------------- */
@@ -294,6 +294,7 @@ export const clientFields = [
displayName: 'Client ID',
name: 'clientId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -313,6 +314,7 @@ export const clientFields = [
displayName: 'Client ID',
name: 'clientId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -431,4 +433,4 @@ export const clientFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts
index e5e6ca81b8..4f9d3248bb 100644
--- a/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts
+++ b/packages/nodes-base/nodes/InvoiceNinja/ExpenseDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const expenseOperations = [
+export const expenseOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const expenseOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const expenseFields = [
+export const expenseFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* expense:create */
/* -------------------------------------------------------------------------- */
@@ -324,6 +324,7 @@ export const expenseFields = [
displayName: 'Expense ID',
name: 'expenseId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -343,6 +344,7 @@ export const expenseFields = [
displayName: 'Expense ID',
name: 'expenseId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -399,4 +401,4 @@ export const expenseFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/InvoiceNinja/InvoiceDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/InvoiceDescription.ts
index 382b55b231..27d6e9d444 100644
--- a/packages/nodes-base/nodes/InvoiceNinja/InvoiceDescription.ts
+++ b/packages/nodes-base/nodes/InvoiceNinja/InvoiceDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const invoiceOperations = [
+export const invoiceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const invoiceOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const invoiceFields = [
+export const invoiceFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* invoice:create */
/* -------------------------------------------------------------------------- */
@@ -316,6 +316,7 @@ export const invoiceFields = [
displayName: 'Invoice ID',
name: 'invoiceId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -335,6 +336,7 @@ export const invoiceFields = [
displayName: 'Invoice ID',
name: 'invoiceId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -354,6 +356,7 @@ export const invoiceFields = [
displayName: 'Invoice ID',
name: 'invoiceId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -478,4 +481,4 @@ export const invoiceFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/InvoiceNinja/PaymentDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/PaymentDescription.ts
index c0dfb4f793..13bad32b5f 100644
--- a/packages/nodes-base/nodes/InvoiceNinja/PaymentDescription.ts
+++ b/packages/nodes-base/nodes/InvoiceNinja/PaymentDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const paymentOperations = [
+export const paymentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const paymentOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const paymentFields = [
+export const paymentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* payment:create */
/* -------------------------------------------------------------------------- */
@@ -267,6 +267,7 @@ export const paymentFields = [
displayName: 'Payment ID',
name: 'paymentId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -286,6 +287,7 @@ export const paymentFields = [
displayName: 'Payment ID',
name: 'paymentId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -405,4 +407,4 @@ export const paymentFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/InvoiceNinja/QuoteDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/QuoteDescription.ts
index c1da036843..82a01bf423 100644
--- a/packages/nodes-base/nodes/InvoiceNinja/QuoteDescription.ts
+++ b/packages/nodes-base/nodes/InvoiceNinja/QuoteDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const quoteOperations = [
+export const quoteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const quoteOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const quoteFields = [
+export const quoteFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* quote:create */
/* -------------------------------------------------------------------------- */
@@ -316,6 +316,7 @@ export const quoteFields = [
displayName: 'Quote ID',
name: 'quoteId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -335,6 +336,7 @@ export const quoteFields = [
displayName: 'Quote ID',
name: 'quoteId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -354,6 +356,7 @@ export const quoteFields = [
displayName: 'Quote ID',
name: 'quoteId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -478,4 +481,4 @@ export const quoteFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/InvoiceNinja/TaskDescription.ts b/packages/nodes-base/nodes/InvoiceNinja/TaskDescription.ts
index 82ebd8e8ac..cb34f7de53 100644
--- a/packages/nodes-base/nodes/InvoiceNinja/TaskDescription.ts
+++ b/packages/nodes-base/nodes/InvoiceNinja/TaskDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const taskOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* task:create */
/* -------------------------------------------------------------------------- */
@@ -157,6 +157,7 @@ export const taskFields = [
displayName: 'Task ID',
name: 'taskId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -176,6 +177,7 @@ export const taskFields = [
displayName: 'Task ID',
name: 'taskId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -295,4 +297,4 @@ export const taskFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Iterable/EventDescription.ts b/packages/nodes-base/nodes/Iterable/EventDescription.ts
index bb92165495..5bc30efc03 100644
--- a/packages/nodes-base/nodes/Iterable/EventDescription.ts
+++ b/packages/nodes-base/nodes/Iterable/EventDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const eventOperations = [
default: 'track',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* event:track */
@@ -142,4 +142,4 @@ export const eventFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Iterable/UserDescription.ts b/packages/nodes-base/nodes/Iterable/UserDescription.ts
index 16e82c127a..deb77b2243 100644
--- a/packages/nodes-base/nodes/Iterable/UserDescription.ts
+++ b/packages/nodes-base/nodes/Iterable/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const userOperations = [
default: 'upsert',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:upsert */
@@ -313,4 +313,4 @@ export const userFields = [
default: '',
description: 'Email for a particular user',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Iterable/UserListDescription.ts b/packages/nodes-base/nodes/Iterable/UserListDescription.ts
index cb8e0f6dfb..be3068fecd 100644
--- a/packages/nodes-base/nodes/Iterable/UserListDescription.ts
+++ b/packages/nodes-base/nodes/Iterable/UserListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userListOperations = [
+export const userListOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const userListOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userListFields = [
+export const userListFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* userList:add */
@@ -205,4 +205,4 @@ export const userListFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Jira/IssueAttachmentDescription.ts b/packages/nodes-base/nodes/Jira/IssueAttachmentDescription.ts
index 39ad30a1a4..cee1ba02ff 100644
--- a/packages/nodes-base/nodes/Jira/IssueAttachmentDescription.ts
+++ b/packages/nodes-base/nodes/Jira/IssueAttachmentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const issueAttachmentOperations = [
+export const issueAttachmentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const issueAttachmentOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const issueAttachmentFields = [
+export const issueAttachmentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* issueAttachment:add */
@@ -263,4 +263,4 @@ export const issueAttachmentFields = [
default: '',
description: 'The ID of the attachment.',
},
-] as INodeProperties[];
\ No newline at end of file
+];
\ No newline at end of file
diff --git a/packages/nodes-base/nodes/Jira/IssueCommentDescription.ts b/packages/nodes-base/nodes/Jira/IssueCommentDescription.ts
index bfb66303da..d648bf1c28 100644
--- a/packages/nodes-base/nodes/Jira/IssueCommentDescription.ts
+++ b/packages/nodes-base/nodes/Jira/IssueCommentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const issueCommentOperations = [
+export const issueCommentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const issueCommentOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const issueCommentFields = [
+export const issueCommentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* issueComment:add */
@@ -89,6 +89,7 @@ export const issueCommentFields = [
displayName: 'Comment',
name: 'comment',
type: 'string',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -108,6 +109,7 @@ export const issueCommentFields = [
displayName: 'Document Format (JSON)',
name: 'commentJson',
type: 'json',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -181,6 +183,7 @@ export const issueCommentFields = [
displayName: 'Comment ID',
name: 'commentId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -347,6 +350,7 @@ export const issueCommentFields = [
displayName: 'Comment ID',
name: 'commentId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -386,6 +390,7 @@ export const issueCommentFields = [
displayName: 'Comment ID',
name: 'commentId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -419,6 +424,7 @@ export const issueCommentFields = [
displayName: 'Comment',
name: 'comment',
type: 'string',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -438,6 +444,7 @@ export const issueCommentFields = [
displayName: 'Document Format (JSON)',
name: 'commentJson',
type: 'json',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -485,4 +492,4 @@ export const issueCommentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Jira/IssueDescription.ts b/packages/nodes-base/nodes/Jira/IssueDescription.ts
index 9d2de0f1c5..ceb925c2d5 100644
--- a/packages/nodes-base/nodes/Jira/IssueDescription.ts
+++ b/packages/nodes-base/nodes/Jira/IssueDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const issueOperations = [
+export const issueOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -59,9 +59,9 @@ export const issueOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const issueFields = [
+export const issueFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* issue:create */
@@ -70,6 +70,7 @@ export const issueFields = [
displayName: 'Project',
name: 'project',
type: 'options',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -93,6 +94,7 @@ export const issueFields = [
displayName: 'Issue Type',
name: 'issueType',
type: 'options',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -1121,4 +1123,4 @@ export const issueFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Jira/UserDescription.ts b/packages/nodes-base/nodes/Jira/UserDescription.ts
index 11cb886535..e788e37b5d 100644
--- a/packages/nodes-base/nodes/Jira/UserDescription.ts
+++ b/packages/nodes-base/nodes/Jira/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const userOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:create */
@@ -45,6 +45,7 @@ export const userFields = [
displayName: 'Username',
name: 'username',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -61,6 +62,7 @@ export const userFields = [
displayName: 'Email Address',
name: 'emailAddress',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -204,4 +206,4 @@ export const userFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Keap/CompanyDescription.ts b/packages/nodes-base/nodes/Keap/CompanyDescription.ts
index c4db9d66f2..52398290e8 100644
--- a/packages/nodes-base/nodes/Keap/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/Keap/CompanyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const companyOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* company:create */
@@ -370,4 +370,4 @@ export const companyFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Keap/ContactDescription.ts b/packages/nodes-base/nodes/Keap/ContactDescription.ts
index a45eca0d72..4693a94253 100644
--- a/packages/nodes-base/nodes/Keap/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Keap/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const contactOperations = [
default: 'upsert',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:upsert */
@@ -755,4 +755,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts b/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts
index 80eb2bf5f2..8e80f45671 100644
--- a/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts
+++ b/packages/nodes-base/nodes/Keap/ContactNoteDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactNoteOperations = [
+export const contactNoteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const contactNoteOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactNoteFields = [
+export const contactNoteFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contactNote:create */
@@ -379,4 +379,4 @@ export const contactNoteFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Keap/ContactTagDescription.ts b/packages/nodes-base/nodes/Keap/ContactTagDescription.ts
index a212c112ae..c6b6c4d8fa 100644
--- a/packages/nodes-base/nodes/Keap/ContactTagDescription.ts
+++ b/packages/nodes-base/nodes/Keap/ContactTagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactTagOperations = [
+export const contactTagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const contactTagOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactTagFields = [
+export const contactTagFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contactTag:create */
@@ -176,4 +176,4 @@ export const contactTagFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts b/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts
index 8bf7b80815..874ce3d7a9 100644
--- a/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts
+++ b/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const ecommerceOrderOperations = [
+export const ecommerceOrderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const ecommerceOrderOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const ecommerceOrderFields = [
+export const ecommerceOrderFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* ecommerceOrder:create */
@@ -481,4 +481,4 @@ export const ecommerceOrderFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Keap/EcommerceProductDescription.ts b/packages/nodes-base/nodes/Keap/EcommerceProductDescription.ts
index 09ec6ea09a..b71fdfe0f0 100644
--- a/packages/nodes-base/nodes/Keap/EcommerceProductDescription.ts
+++ b/packages/nodes-base/nodes/Keap/EcommerceProductDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const ecommerceProductOperations = [
+export const ecommerceProductOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const ecommerceProductOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const ecommerceProductFields = [
+export const ecommerceProductFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* ecommerceProduct:create */
@@ -233,4 +233,4 @@ export const ecommerceProductFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Keap/EmailDescription.ts b/packages/nodes-base/nodes/Keap/EmailDescription.ts
index c91793e08c..661ebcefd6 100644
--- a/packages/nodes-base/nodes/Keap/EmailDescription.ts
+++ b/packages/nodes-base/nodes/Keap/EmailDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const emailOperations = [
+export const emailOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const emailOperations = [
default: 'createRecord',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const emailFields = [
+export const emailFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* email:createRecord */
@@ -459,4 +459,4 @@ export const emailFields = [
default: '',
description: 'Attachments to be sent with each copy of the email, maximum of 10 with size of 1MB each',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Keap/FileDescription.ts b/packages/nodes-base/nodes/Keap/FileDescription.ts
index 7038c99850..ad3cc19ab6 100644
--- a/packages/nodes-base/nodes/Keap/FileDescription.ts
+++ b/packages/nodes-base/nodes/Keap/FileDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const fileOperations = [
+export const fileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const fileOperations = [
default: 'delete',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fileFields = [
+export const fileFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* file:upload */
/* -------------------------------------------------------------------------- */
@@ -401,4 +401,4 @@ export const fileFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Kitemaker/descriptions/OrganizationDescription.ts b/packages/nodes-base/nodes/Kitemaker/descriptions/OrganizationDescription.ts
index ee478b044f..37120ee8e5 100644
--- a/packages/nodes-base/nodes/Kitemaker/descriptions/OrganizationDescription.ts
+++ b/packages/nodes-base/nodes/Kitemaker/descriptions/OrganizationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const organizationOperations = [
+export const organizationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,4 +24,4 @@ export const organizationOperations = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Kitemaker/descriptions/SpaceDescription.ts b/packages/nodes-base/nodes/Kitemaker/descriptions/SpaceDescription.ts
index c6afdae4d4..a8067d9a9c 100644
--- a/packages/nodes-base/nodes/Kitemaker/descriptions/SpaceDescription.ts
+++ b/packages/nodes-base/nodes/Kitemaker/descriptions/SpaceDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const spaceOperations = [
+export const spaceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const spaceOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const spaceFields = [
+export const spaceFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -68,4 +68,4 @@ export const spaceFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Kitemaker/descriptions/UserDescription.ts b/packages/nodes-base/nodes/Kitemaker/descriptions/UserDescription.ts
index 5267f3eb8b..a789f11d6c 100644
--- a/packages/nodes-base/nodes/Kitemaker/descriptions/UserDescription.ts
+++ b/packages/nodes-base/nodes/Kitemaker/descriptions/UserDescription.ts
@@ -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 = [
},
},
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -68,4 +68,4 @@ export const userFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Kitemaker/descriptions/WorkItemDescription.ts b/packages/nodes-base/nodes/Kitemaker/descriptions/WorkItemDescription.ts
index 637b279fde..8b8aecab1a 100644
--- a/packages/nodes-base/nodes/Kitemaker/descriptions/WorkItemDescription.ts
+++ b/packages/nodes-base/nodes/Kitemaker/descriptions/WorkItemDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const workItemOperations = [
+export const workItemOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,9 +35,9 @@ export const workItemOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const workItemFields = [
+export const workItemFields: INodeProperties[] = [
// ----------------------------------
// workItem: create
// ----------------------------------
@@ -369,4 +369,4 @@ export const workItemFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/ActivityDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/ActivityDescription.ts
index c55086c024..047a4a362a 100644
--- a/packages/nodes-base/nodes/Lemlist/descriptions/ActivityDescription.ts
+++ b/packages/nodes-base/nodes/Lemlist/descriptions/ActivityDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const activityOperations = [
+export const activityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const activityOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const activityFields = [
+export const activityFields: INodeProperties[] = [
// ----------------------------------
// activity: getAll
// ----------------------------------
@@ -137,4 +137,4 @@ export const activityFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/CampaignDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/CampaignDescription.ts
index f1702efdcc..b686886b22 100644
--- a/packages/nodes-base/nodes/Lemlist/descriptions/CampaignDescription.ts
+++ b/packages/nodes-base/nodes/Lemlist/descriptions/CampaignDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const campaignOperations = [
+export const campaignOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const campaignOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const campaignFields = [
+export const campaignFields: INodeProperties[] = [
// ----------------------------------
// campaign: getAll
// ----------------------------------
@@ -70,4 +70,4 @@ export const campaignFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/LeadDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/LeadDescription.ts
index d9cb1e5317..d6d4233940 100644
--- a/packages/nodes-base/nodes/Lemlist/descriptions/LeadDescription.ts
+++ b/packages/nodes-base/nodes/Lemlist/descriptions/LeadDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const leadOperations = [
+export const leadOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,9 +35,9 @@ export const leadOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const leadFields = [
+export const leadFields: INodeProperties[] = [
// ----------------------------------
// lead: create
// ----------------------------------
@@ -259,4 +259,4 @@ export const leadFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/TeamDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/TeamDescription.ts
index c09f51a582..166c80f867 100644
--- a/packages/nodes-base/nodes/Lemlist/descriptions/TeamDescription.ts
+++ b/packages/nodes-base/nodes/Lemlist/descriptions/TeamDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const teamOperations = [
+export const teamOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,11 +23,11 @@ export const teamOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const teamFields = [
+export const teamFields: INodeProperties[] = [
// ----------------------------------
// team: get
// ----------------------------------
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Lemlist/descriptions/UnsubscribeDescription.ts b/packages/nodes-base/nodes/Lemlist/descriptions/UnsubscribeDescription.ts
index d35ab0e9ce..1bb91207d2 100644
--- a/packages/nodes-base/nodes/Lemlist/descriptions/UnsubscribeDescription.ts
+++ b/packages/nodes-base/nodes/Lemlist/descriptions/UnsubscribeDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const unsubscribeOperations = [
+export const unsubscribeOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -31,9 +31,9 @@ export const unsubscribeOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const unsubscribeFields = [
+export const unsubscribeFields: INodeProperties[] = [
// ----------------------------------
// unsubscribe: add
// ----------------------------------
@@ -120,4 +120,4 @@ export const unsubscribeFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Line/NotificationDescription.ts b/packages/nodes-base/nodes/Line/NotificationDescription.ts
index ed55b2f371..1481641153 100644
--- a/packages/nodes-base/nodes/Line/NotificationDescription.ts
+++ b/packages/nodes-base/nodes/Line/NotificationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const notificationOperations = [
+export const notificationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const notificationOperations = [
default: 'send',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const notificationFields = [
+export const notificationFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* notification:send */
@@ -172,4 +172,4 @@ export const notificationFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/LingvaNex/ActivityDescription.ts b/packages/nodes-base/nodes/LingvaNex/ActivityDescription.ts
index fad53ff169..7ef55dd98e 100644
--- a/packages/nodes-base/nodes/LingvaNex/ActivityDescription.ts
+++ b/packages/nodes-base/nodes/LingvaNex/ActivityDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const activityOperations = [
+export const activityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const activityOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const activityFields = [
+export const activityFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* activity:create */
@@ -245,4 +245,4 @@ export const activityFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/LinkedIn/PostDescription.ts b/packages/nodes-base/nodes/LinkedIn/PostDescription.ts
index 287a59f48f..0cd26572dd 100644
--- a/packages/nodes-base/nodes/LinkedIn/PostDescription.ts
+++ b/packages/nodes-base/nodes/LinkedIn/PostDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const postOperations = [
+export const postOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const postOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const postFields = [
+export const postFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* post:create */
/* -------------------------------------------------------------------------- */
@@ -248,4 +248,4 @@ export const postFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Magento/CustomerDescription.ts b/packages/nodes-base/nodes/Magento/CustomerDescription.ts
index c3a3af60f8..5cb59d9ede 100644
--- a/packages/nodes-base/nodes/Magento/CustomerDescription.ts
+++ b/packages/nodes-base/nodes/Magento/CustomerDescription.ts
@@ -7,7 +7,7 @@ import {
getSearchFilters,
} from './GenericFunctions';
-export const customerOperations = [
+export const customerOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const customerOperations = [
default: 'create',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const customerFields = [
+export const customerFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* customer:create */
@@ -310,4 +310,4 @@ export const customerFields = [
'getSystemAttributes',
'getSystemAttributes',
),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Magento/GenericFunctions.ts b/packages/nodes-base/nodes/Magento/GenericFunctions.ts
index 7a17be3980..cf09bba885 100644
--- a/packages/nodes-base/nodes/Magento/GenericFunctions.ts
+++ b/packages/nodes-base/nodes/Magento/GenericFunctions.ts
@@ -11,6 +11,7 @@ import {
import {
IDataObject,
+ INodeProperties,
INodePropertyOptions,
NodeApiError,
} from 'n8n-workflow';
@@ -67,7 +68,7 @@ export async function magentoApiRequestAllItems(this: IHookFunctions | ILoadOpti
return returnData;
}
-export function getAddressesUi() {
+export function getAddressesUi(): INodeProperties {
return {
displayName: 'Addresses',
name: 'addresses',
@@ -175,14 +176,14 @@ export function getAddressesUi() {
name: 'default_billing',
type: 'boolean',
default: false,
- descrition: 'Weather this address is default billing address',
+ description: 'Weather this address is default billing address',
},
{
displayName: 'Default Shipping',
name: 'default_shipping',
type: 'boolean',
default: false,
- descrition: 'Weather this address is default shipping address',
+ description: 'Weather this address is default shipping address',
},
],
},
@@ -205,7 +206,7 @@ export function adjustAddresses(addresses: [{ street: string, [key: string]: str
return _addresses;
}
-export function getSearchFilters(resource: string, filterableAttributeFunction: string, sortableAttributeFunction: string) {
+export function getSearchFilters(resource: string, filterableAttributeFunction: string, sortableAttributeFunction: string): INodeProperties[] {
return [
{
displayName: 'Filter',
@@ -417,7 +418,7 @@ export function getSearchFilters(resource: string, filterableAttributeFunction:
];
}
-function getConditionTypeFields() {
+function getConditionTypeFields(): INodeProperties {
return {
displayName: 'Condition Type',
name: 'condition_type',
@@ -479,7 +480,7 @@ function getConditionTypeFields() {
};
}
-function getConditions(attributeFunction: string) {
+function getConditions(attributeFunction: string): INodeProperties[] {
return [
{
displayName: 'Field',
@@ -552,7 +553,7 @@ export function validateJSON(json: string | undefined): any { // tslint:disable-
return result;
}
-export function getCustomerOptionalFields() {
+export function getCustomerOptionalFields(): INodeProperties[] {
return [
getAddressesUi(),
{
@@ -717,7 +718,7 @@ export function getCustomerOptionalFields() {
];
}
-export function getProductOptionalFields() {
+export function getProductOptionalFields(): INodeProperties[] {
return [
{
displayName: 'Attribute Set Name/ID',
diff --git a/packages/nodes-base/nodes/Magento/InvoiceDescription.ts b/packages/nodes-base/nodes/Magento/InvoiceDescription.ts
index a0d4fd3e8b..2358bfe4dc 100644
--- a/packages/nodes-base/nodes/Magento/InvoiceDescription.ts
+++ b/packages/nodes-base/nodes/Magento/InvoiceDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const invoiceOperations = [
+export const invoiceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const invoiceOperations = [
default: 'create',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const invoiceFields = [
+export const invoiceFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* invoice:create */
@@ -48,4 +48,4 @@ export const invoiceFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Magento/OrderDescription.ts b/packages/nodes-base/nodes/Magento/OrderDescription.ts
index 3e79b5fa8f..b1fe08a168 100644
--- a/packages/nodes-base/nodes/Magento/OrderDescription.ts
+++ b/packages/nodes-base/nodes/Magento/OrderDescription.ts
@@ -6,7 +6,7 @@ import {
getSearchFilters,
} from './GenericFunctions';
-export const orderOperations = [
+export const orderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const orderOperations = [
default: 'cancel',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const orderFields = [
+export const orderFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* order:cancel */
@@ -120,4 +120,4 @@ export const orderFields = [
'getOrderAttributes',
),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Magento/ProductDescription.ts b/packages/nodes-base/nodes/Magento/ProductDescription.ts
index ec8fe09ef8..6d392e0f14 100644
--- a/packages/nodes-base/nodes/Magento/ProductDescription.ts
+++ b/packages/nodes-base/nodes/Magento/ProductDescription.ts
@@ -7,7 +7,7 @@ import {
getSearchFilters,
} from './GenericFunctions';
-export const productOperations = [
+export const productOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const productOperations = [
default: 'create',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const productFields = [
+export const productFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* product:create */
@@ -241,4 +241,4 @@ export const productFields = [
'getFilterableProductAttributes',
'getSortableProductAttributes'),
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts b/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts
index 0405cf7400..fb48d97cbe 100644
--- a/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts
+++ b/packages/nodes-base/nodes/MailerLite/SubscriberDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const subscriberOperations = [
+export const subscriberOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const subscriberOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const subscriberFields = [
+export const subscriberFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* subscriber:create */
@@ -51,6 +51,7 @@ export const subscriberFields = [
name: 'email',
type: 'string',
required: true,
+ default: '',
displayOptions: {
show: {
resource: [
@@ -412,4 +413,4 @@ export const subscriberFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Mailjet/EmailDescription.ts b/packages/nodes-base/nodes/Mailjet/EmailDescription.ts
index 56f8982dcb..bd378ca0b9 100644
--- a/packages/nodes-base/nodes/Mailjet/EmailDescription.ts
+++ b/packages/nodes-base/nodes/Mailjet/EmailDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const emailOperations = [
+export const emailOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const emailOperations = [
default: 'send',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const emailFields = [
+export const emailFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* email:send */
@@ -57,6 +57,7 @@ export const emailFields = [
displayName: 'To Email',
name: 'toEmail',
type: 'string',
+ default: '',
required: true,
placeholder: 'info@example.com',
description: 'Email address of the recipient. Multiple ones can be separated by comma.',
@@ -291,6 +292,7 @@ export const emailFields = [
displayName: 'To Email',
name: 'toEmail',
type: 'string',
+ default: '',
required: true,
placeholder: 'info@example.com',
description: 'Email address of the recipient. Multiple ones can be separated by comma.',
@@ -443,4 +445,4 @@ export const emailFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Mailjet/SmsDescription.ts b/packages/nodes-base/nodes/Mailjet/SmsDescription.ts
index f94e3f08f4..930b65ee41 100644
--- a/packages/nodes-base/nodes/Mailjet/SmsDescription.ts
+++ b/packages/nodes-base/nodes/Mailjet/SmsDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const smsOperations = [
+export const smsOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const smsOperations = [
default: 'send',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const smsFields = [
+export const smsFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* sms:send */
@@ -85,4 +85,4 @@ export const smsFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Matrix/AccountDescription.ts b/packages/nodes-base/nodes/Matrix/AccountDescription.ts
index c7283eebd4..d659168129 100644
--- a/packages/nodes-base/nodes/Matrix/AccountDescription.ts
+++ b/packages/nodes-base/nodes/Matrix/AccountDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const accountOperations = [
+export const accountOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,4 +24,4 @@ export const accountOperations = [
default: 'me',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Matrix/EventDescription.ts b/packages/nodes-base/nodes/Matrix/EventDescription.ts
index 81324a32bb..d2a34e6ff0 100644
--- a/packages/nodes-base/nodes/Matrix/EventDescription.ts
+++ b/packages/nodes-base/nodes/Matrix/EventDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,10 +24,10 @@ export const eventOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* event:get */
@@ -70,4 +70,4 @@ export const eventFields = [
required: true,
description: 'The room related to the event',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Matrix/MediaDescription.ts b/packages/nodes-base/nodes/Matrix/MediaDescription.ts
index aa236484d6..25f9bad750 100644
--- a/packages/nodes-base/nodes/Matrix/MediaDescription.ts
+++ b/packages/nodes-base/nodes/Matrix/MediaDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const mediaOperations = [
+export const mediaOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const mediaOperations = [
default: 'upload',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const mediaFields = [
+export const mediaFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* media:upload */
@@ -100,4 +100,4 @@ export const mediaFields = [
placeholder: 'mxc://matrix.org/uploaded-media-uri',
required: true,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Matrix/MessageDescription.ts b/packages/nodes-base/nodes/Matrix/MessageDescription.ts
index 498f3a8781..3b98e822bd 100644
--- a/packages/nodes-base/nodes/Matrix/MessageDescription.ts
+++ b/packages/nodes-base/nodes/Matrix/MessageDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const messageOperations = [
+export const messageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const messageOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const messageFields = [
+export const messageFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* message:create */
@@ -145,6 +145,7 @@ export const messageFields = [
{
displayName: 'Fallback Text',
name: 'fallbackText',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -262,4 +263,4 @@ export const messageFields = [
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Matrix/RoomDescription.ts b/packages/nodes-base/nodes/Matrix/RoomDescription.ts
index 8f07d4ff01..a08821e9c0 100644
--- a/packages/nodes-base/nodes/Matrix/RoomDescription.ts
+++ b/packages/nodes-base/nodes/Matrix/RoomDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const roomOperations = [
+export const roomOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,10 +44,10 @@ export const roomOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const roomFields = [
+export const roomFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* room:create */
/* -------------------------------------------------------------------------- */
@@ -274,4 +274,4 @@ export const roomFields = [
description: 'Reason for kick',
placeholder: 'Telling unfunny jokes',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Matrix/RoomMemberDescription.ts b/packages/nodes-base/nodes/Matrix/RoomMemberDescription.ts
index a72980e485..5b596dfe74 100644
--- a/packages/nodes-base/nodes/Matrix/RoomMemberDescription.ts
+++ b/packages/nodes-base/nodes/Matrix/RoomMemberDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const roomMemberOperations = [
+export const roomMemberOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,10 +24,10 @@ export const roomMemberOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const roomMemberFields = [
+export const roomMemberFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* roomMember:getAll */
/* -------------------------------------------------------------------------- */
@@ -142,4 +142,4 @@ export const roomMemberFields = [
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/channel/index.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/channel/index.ts
index fc47a38e72..ba51251fea 100644
--- a/packages/nodes-base/nodes/Mattermost/v1/actions/channel/index.ts
+++ b/packages/nodes-base/nodes/Mattermost/v1/actions/channel/index.ts
@@ -16,7 +16,7 @@ export {
};
-export const descriptions = [
+export const descriptions: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -69,4 +69,4 @@ export const descriptions = [
...restore.description,
...addUser.description,
...statistics.description,
-] as INodeProperties[];
\ No newline at end of file
+];
\ No newline at end of file
diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/message/index.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/message/index.ts
index f6e1e7657e..75222e115a 100644
--- a/packages/nodes-base/nodes/Mattermost/v1/actions/message/index.ts
+++ b/packages/nodes-base/nodes/Mattermost/v1/actions/message/index.ts
@@ -10,7 +10,7 @@ export {
postEphemeral,
};
-export const descriptions = [
+export const descriptions: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -45,4 +45,4 @@ export const descriptions = [
...del.description,
...post.description,
...postEphemeral.description,
-] as INodeProperties[];
\ No newline at end of file
+];
\ No newline at end of file
diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/index.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/index.ts
index 34a7a2bd14..e163c1c598 100644
--- a/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/index.ts
+++ b/packages/nodes-base/nodes/Mattermost/v1/actions/reaction/index.ts
@@ -11,7 +11,7 @@ export {
getAll,
};
-export const descriptions = [
+export const descriptions: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -46,4 +46,4 @@ export const descriptions = [
...create.description,
...del.description,
...getAll.description,
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Mattermost/v1/actions/user/index.ts b/packages/nodes-base/nodes/Mattermost/v1/actions/user/index.ts
index 346fff3ba0..59dfd8be5d 100644
--- a/packages/nodes-base/nodes/Mattermost/v1/actions/user/index.ts
+++ b/packages/nodes-base/nodes/Mattermost/v1/actions/user/index.ts
@@ -17,7 +17,7 @@ export {
};
-export const descriptions = [
+export const descriptions: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -70,5 +70,5 @@ export const descriptions = [
...getByEmail.description,
...getById.description,
...invite.description,
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Mautic/CampaignContactDescription.ts b/packages/nodes-base/nodes/Mautic/CampaignContactDescription.ts
index 55edfdbc7d..6ce9fa2d20 100644
--- a/packages/nodes-base/nodes/Mautic/CampaignContactDescription.ts
+++ b/packages/nodes-base/nodes/Mautic/CampaignContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const campaignContactOperations = [
+export const campaignContactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const campaignContactOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const campaignContactFields = [
+export const campaignContactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* campaignContact:add */
@@ -79,4 +79,4 @@ export const campaignContactFields = [
description: 'Campaign ID',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Mautic/CompanyContactDescription.ts b/packages/nodes-base/nodes/Mautic/CompanyContactDescription.ts
index bb4f3faece..be69fe84c9 100644
--- a/packages/nodes-base/nodes/Mautic/CompanyContactDescription.ts
+++ b/packages/nodes-base/nodes/Mautic/CompanyContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const companyContactOperations = [
+export const companyContactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const companyContactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const companyContactFields = [
+export const companyContactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* companyContact:add */
@@ -72,4 +72,4 @@ export const companyContactFields = [
default: '',
description: 'The ID of the company.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Mautic/CompanyDescription.ts b/packages/nodes-base/nodes/Mautic/CompanyDescription.ts
index cd6b447667..4eae5da1be 100644
--- a/packages/nodes-base/nodes/Mautic/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/Mautic/CompanyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const companyOperations = [
default: 'create',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* company:create */
@@ -667,4 +667,4 @@ export const companyFields = [
default: true,
description: 'Return a simplified version of the response instead of the raw data.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Mautic/ContactDescription.ts b/packages/nodes-base/nodes/Mautic/ContactDescription.ts
index a1aa9f75d6..fa974f3250 100644
--- a/packages/nodes-base/nodes/Mautic/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Mautic/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const contactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:create */
@@ -1239,4 +1239,4 @@ export const contactFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Mautic/ContactSegmentDescription.ts b/packages/nodes-base/nodes/Mautic/ContactSegmentDescription.ts
index 302002b9dc..9038f8e871 100644
--- a/packages/nodes-base/nodes/Mautic/ContactSegmentDescription.ts
+++ b/packages/nodes-base/nodes/Mautic/ContactSegmentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactSegmentOperations = [
+export const contactSegmentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const contactSegmentOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactSegmentFields = [
+export const contactSegmentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contactSegment:add */
@@ -79,4 +79,4 @@ export const contactSegmentFields = [
description: 'Segment ID',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts
index 67800133c9..370561c025 100644
--- a/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts
+++ b/packages/nodes-base/nodes/Microsoft/Dynamics/GenericFunctions.ts
@@ -10,6 +10,7 @@ import {
import {
IDataObject,
+ INodeProperties,
INodePropertyOptions,
NodeApiError,
} from 'n8n-workflow';
@@ -92,7 +93,7 @@ export function adjustAddresses(addresses: [{ [key: string]: string }]) {
return results;
}
-export function getAccountFields() {
+export function getAccountFields(): INodeProperties[] {
return [
{
displayName: 'Account Category',
diff --git a/packages/nodes-base/nodes/Microsoft/Dynamics/descriptions/AccountDescription.ts b/packages/nodes-base/nodes/Microsoft/Dynamics/descriptions/AccountDescription.ts
index 40bb6b51cd..6d323549f8 100644
--- a/packages/nodes-base/nodes/Microsoft/Dynamics/descriptions/AccountDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Dynamics/descriptions/AccountDescription.ts
@@ -6,7 +6,7 @@ import {
getAccountFields,
} from '../GenericFunctions';
-export const accountOperations = [
+export const accountOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const accountOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const accountFields = [
+export const accountFields: INodeProperties[] = [
// ----------------------------------------
// account:create
// ----------------------------------------
@@ -271,4 +271,4 @@ export const accountFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts b/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts
index c62e3d6f7c..e8ce953453 100644
--- a/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Excel/TableDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const tableOperations = [
+export const tableOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const tableOperations = [
default: 'addRow',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const tableFields = [
+export const tableFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* table:addRow */
@@ -621,4 +621,4 @@ export const tableFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts b/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts
index c4ff40d8d3..87ac38c8c4 100644
--- a/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Excel/WorkbookDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const workbookOperations = [
+export const workbookOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const workbookOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const workbookFields = [
+export const workbookFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* workbook:addWorksheet */
@@ -150,4 +150,4 @@ export const workbookFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts b/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts
index 9ccf6fa84d..e88d7aa42b 100644
--- a/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Excel/WorksheetDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const worksheetOperations = [
+export const worksheetOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const worksheetOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const worksheetFields = [
+export const worksheetFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* worksheet:getAll */
@@ -300,4 +300,4 @@ export const worksheetFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts b/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts
index b723a55540..98b13754b0 100644
--- a/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/OneDrive/FileDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const fileOperations = [
+export const fileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -54,9 +54,9 @@ export const fileOperations = [
default: 'upload',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fileFields = [
+export const fileFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* file:copy */
@@ -459,4 +459,4 @@ export const fileFields = [
placeholder: '',
description: 'Name of the binary property which contains the data for the file.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/OneDrive/FolderDescription.ts b/packages/nodes-base/nodes/Microsoft/OneDrive/FolderDescription.ts
index 2c6f8b5190..5e9ee8a5df 100644
--- a/packages/nodes-base/nodes/Microsoft/OneDrive/FolderDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/OneDrive/FolderDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const folderOperations = [
+export const folderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const folderOperations = [
default: 'getChildren',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const folderFields = [
+export const folderFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* folder:create */
@@ -216,4 +216,4 @@ export const folderFields = [
default: '',
description: 'The type of sharing link to create',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/DraftDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/DraftDescription.ts
index b6c397530b..202647534b 100644
--- a/packages/nodes-base/nodes/Microsoft/Outlook/DraftDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Outlook/DraftDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const draftOperations = [
+export const draftOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const draftOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const draftFields = [
+export const draftFields: INodeProperties[] = [
{
displayName: 'Message ID',
name: 'messageId',
@@ -301,4 +301,4 @@ export const draftFields = [
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/DraftMessageSharedDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/DraftMessageSharedDescription.ts
index 7d7d597e2c..c8ce7f0f0c 100644
--- a/packages/nodes-base/nodes/Microsoft/Outlook/DraftMessageSharedDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Outlook/DraftMessageSharedDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const draftMessageSharedFields = [
+export const draftMessageSharedFields: INodeProperties[] = [
// Get & Get All operations
{
@@ -213,4 +213,4 @@ export const draftMessageSharedFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/FolderDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/FolderDescription.ts
index da7492536a..aa5c92befb 100644
--- a/packages/nodes-base/nodes/Microsoft/Outlook/FolderDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Outlook/FolderDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const folderOperations = [
+export const folderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const folderOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const folderFields = [
+export const folderFields: INodeProperties[] = [
{
displayName: 'Folder ID',
name: 'folderId',
@@ -308,4 +308,4 @@ export const folderFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/FolderMessageDecription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/FolderMessageDecription.ts
index 436b3c223b..7fe4350e8c 100644
--- a/packages/nodes-base/nodes/Microsoft/Outlook/FolderMessageDecription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Outlook/FolderMessageDecription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const folderMessageOperations = [
+export const folderMessageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const folderMessageOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const folderMessageFields = [
+export const folderMessageFields: INodeProperties[] = [
{
displayName: 'Folder ID',
name: 'folderId',
@@ -119,4 +119,4 @@ export const folderMessageFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/MessageAttachmentDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/MessageAttachmentDescription.ts
index 46e85d52d8..4011d81fc1 100644
--- a/packages/nodes-base/nodes/Microsoft/Outlook/MessageAttachmentDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Outlook/MessageAttachmentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const messageAttachmentOperations = [
+export const messageAttachmentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const messageAttachmentOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const messageAttachmentFields = [
+export const messageAttachmentFields: INodeProperties[] = [
{
displayName: 'Message ID',
name: 'messageId',
@@ -213,4 +213,4 @@ export const messageAttachmentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Outlook/MessageDescription.ts b/packages/nodes-base/nodes/Microsoft/Outlook/MessageDescription.ts
index 8d8f6b3f0d..4ea67ef482 100644
--- a/packages/nodes-base/nodes/Microsoft/Outlook/MessageDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Outlook/MessageDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const messageOperations = [
+export const messageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -59,9 +59,9 @@ export const messageOperations = [
default: 'send',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const messageFields = [
+export const messageFields: INodeProperties[] = [
{
displayName: 'Message ID',
name: 'messageId',
@@ -636,4 +636,4 @@ export const messageFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Teams/ChannelDescription.ts b/packages/nodes-base/nodes/Microsoft/Teams/ChannelDescription.ts
index c771fba354..c3556a4e62 100644
--- a/packages/nodes-base/nodes/Microsoft/Teams/ChannelDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Teams/ChannelDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const channelOperations = [
+export const channelOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const channelOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const channelFields = [
+export const channelFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* channel:create */
@@ -382,4 +382,4 @@ export const channelFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Teams/ChannelMessageDescription.ts b/packages/nodes-base/nodes/Microsoft/Teams/ChannelMessageDescription.ts
index ede9af39d4..ac48429acb 100644
--- a/packages/nodes-base/nodes/Microsoft/Teams/ChannelMessageDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Teams/ChannelMessageDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const channelMessageOperations = [
+export const channelMessageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const channelMessageOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const channelMessageFields = [
+export const channelMessageFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* channelMessage:create */
@@ -243,4 +243,4 @@ export const channelMessageFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/Teams/TaskDescription.ts b/packages/nodes-base/nodes/Microsoft/Teams/TaskDescription.ts
index 6b555e8b80..e3d0ed8eee 100644
--- a/packages/nodes-base/nodes/Microsoft/Teams/TaskDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/Teams/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const taskOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* task:create */
@@ -448,4 +448,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/ToDo/LinkedResourceDescription.ts b/packages/nodes-base/nodes/Microsoft/ToDo/LinkedResourceDescription.ts
index ddccc8666d..0ccfb87707 100644
--- a/packages/nodes-base/nodes/Microsoft/ToDo/LinkedResourceDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/ToDo/LinkedResourceDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const linkedResourceOperations = [
+export const linkedResourceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const linkedResourceOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const linkedResourceFields = [
+export const linkedResourceFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* linkedResource:ALL */
/* -------------------------------------------------------------------------- */
@@ -279,4 +279,4 @@ export const linkedResourceFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/ToDo/ListDescription.ts b/packages/nodes-base/nodes/Microsoft/ToDo/ListDescription.ts
index 4bc175d92e..f43bd00fb4 100644
--- a/packages/nodes-base/nodes/Microsoft/ToDo/ListDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/ToDo/ListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const listOperations = [
+export const listOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const listOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const listFields = [
+export const listFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* list:create */
/* -------------------------------------------------------------------------- */
@@ -152,4 +152,4 @@ export const listFields = [
default: '',
description: 'List display name.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts b/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts
index cd6609a3fd..df39f19ae7 100644
--- a/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts
+++ b/packages/nodes-base/nodes/Microsoft/ToDo/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const taskOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* task:create */
/* -------------------------------------------------------------------------- */
@@ -351,4 +351,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MondayCom/BoardColumnDescription.ts b/packages/nodes-base/nodes/MondayCom/BoardColumnDescription.ts
index f1c2fff181..8106cfd39e 100644
--- a/packages/nodes-base/nodes/MondayCom/BoardColumnDescription.ts
+++ b/packages/nodes-base/nodes/MondayCom/BoardColumnDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties
} from 'n8n-workflow';
-export const boardColumnOperations = [
+export const boardColumnOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const boardColumnOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const boardColumnFields = [
+export const boardColumnFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* boardColumn:create */
/* -------------------------------------------------------------------------- */
@@ -227,4 +227,4 @@ export const boardColumnFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MondayCom/BoardDescription.ts b/packages/nodes-base/nodes/MondayCom/BoardDescription.ts
index a6a549588e..c828fe0027 100644
--- a/packages/nodes-base/nodes/MondayCom/BoardDescription.ts
+++ b/packages/nodes-base/nodes/MondayCom/BoardDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const boardOperations = [
+export const boardOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const boardOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const boardFields = [
+export const boardFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* board:archive */
@@ -217,4 +217,4 @@ export const boardFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MondayCom/BoardGroupDescription.ts b/packages/nodes-base/nodes/MondayCom/BoardGroupDescription.ts
index 3650ff8374..e15af81452 100644
--- a/packages/nodes-base/nodes/MondayCom/BoardGroupDescription.ts
+++ b/packages/nodes-base/nodes/MondayCom/BoardGroupDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const boardGroupOperations = [
+export const boardGroupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const boardGroupOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const boardGroupFields = [
+export const boardGroupFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* boardGroup:create */
@@ -148,4 +148,4 @@ export const boardGroupFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts b/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts
index 6b1d41c4b2..7fe33861f8 100644
--- a/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts
+++ b/packages/nodes-base/nodes/MondayCom/BoardItemDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const boardItemOperations = [
+export const boardItemOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -64,9 +64,9 @@ export const boardItemOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const boardItemFields = [
+export const boardItemFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* boardItem:addUpdate */
@@ -647,4 +647,4 @@ export const boardItemFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ActivityDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ActivityDescription.ts
index fe326632bd..42953e0a34 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ActivityDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ActivityDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const activityOperations = [
+export const activityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const activityOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const activityFields = [
+export const activityFields: INodeProperties[] = [
// ----------------------------------------
// activity: create
// ----------------------------------------
@@ -321,4 +321,4 @@ export const activityFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/CallDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/CallDescription.ts
index 1336515f70..817c710096 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/CallDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/CallDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const callOperations = [
+export const callOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const callOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const callFields = [
+export const callFields: INodeProperties[] = [
// ----------------------------------------
// call: create
// ----------------------------------------
@@ -256,4 +256,4 @@ export const callFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactDescription.ts
index 63027d6ace..3bbf6fa4f8 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const contactOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
// ----------------------------------------
// contact: create
// ----------------------------------------
@@ -397,4 +397,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactFieldDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactFieldDescription.ts
index cca52a7e63..82e6d07e86 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactFieldDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactFieldDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactFieldOperations = [
+export const contactFieldOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const contactFieldOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const contactFieldFields = [
+export const contactFieldFields: INodeProperties[] = [
// ----------------------------------------
// contactField: create
// ----------------------------------------
@@ -289,4 +289,4 @@ export const contactFieldFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactTagDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactTagDescription.ts
index d786e832c7..f7de03c720 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactTagDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ContactTagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactTagOperations = [
+export const contactTagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -26,9 +26,9 @@ export const contactTagOperations = [
],
default: 'add',
},
-] as INodeProperties[];
+];
-export const contactTagFields = [
+export const contactTagFields: INodeProperties[] = [
// ----------------------------------------
// tag: add
// ----------------------------------------
@@ -114,4 +114,4 @@ export const contactTagFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationDescription.ts
index 9c9f97a392..2c69f4f8e3 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const conversationOperations = [
+export const conversationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -38,9 +38,9 @@ export const conversationOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const conversationFields = [
+export const conversationFields: INodeProperties[] = [
// ----------------------------------------
// conversation: create
// ----------------------------------------
@@ -204,4 +204,4 @@ export const conversationFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationMessageDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationMessageDescription.ts
index 3fc42640f8..b9c772d6e8 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationMessageDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ConversationMessageDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const conversationMessageOperations = [
+export const conversationMessageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -28,9 +28,9 @@ export const conversationMessageOperations = [
],
default: 'add',
},
-] as INodeProperties[];
+];
-export const conversationMessageFields = [
+export const conversationMessageFields: INodeProperties[] = [
// ----------------------------------------
// conversationMessage: add
// ----------------------------------------
@@ -214,4 +214,4 @@ export const conversationMessageFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/JournalEntryDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/JournalEntryDescription.ts
index 8610e7c592..1424799bb4 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/JournalEntryDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/JournalEntryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const journalEntryOperations = [
+export const journalEntryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const journalEntryOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const journalEntryFields = [
+export const journalEntryFields: INodeProperties[] = [
// ----------------------------------------
// journalEntry: create
// ----------------------------------------
@@ -234,4 +234,4 @@ export const journalEntryFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/NoteDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/NoteDescription.ts
index d4c51cb83a..8b2b215321 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/NoteDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/NoteDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const noteOperations = [
+export const noteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const noteOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const noteFields = [
+export const noteFields: INodeProperties[] = [
// ----------------------------------------
// note: create
// ----------------------------------------
@@ -263,7 +263,8 @@ export const noteFields = [
name: 'is_favorited',
description: 'Whether the note has been favorited',
type: 'boolean',
+ default: false,
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/ReminderDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/ReminderDescription.ts
index fe51030d0a..63a1dbb5f4 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/ReminderDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/ReminderDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const reminderOperations = [
+export const reminderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const reminderOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const reminderFields = [
+export const reminderFields: INodeProperties[] = [
// ----------------------------------------
// reminder: create
// ----------------------------------------
@@ -391,4 +391,4 @@ export const reminderFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/TagDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/TagDescription.ts
index ed293abecf..3afec7f9d7 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/TagDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/TagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const tagOperations = [
+export const tagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const tagOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const tagFields = [
+export const tagFields: INodeProperties[] = [
// ----------------------------------------
// tag: create
// ----------------------------------------
@@ -195,4 +195,4 @@ export const tagFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/MonicaCrm/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/MonicaCrm/descriptions/TaskDescription.ts
index dd3a603682..c89fb17ee4 100644
--- a/packages/nodes-base/nodes/MonicaCrm/descriptions/TaskDescription.ts
+++ b/packages/nodes-base/nodes/MonicaCrm/descriptions/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const taskOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
// ----------------------------------------
// task: create
// ----------------------------------------
@@ -274,4 +274,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Netlify/DeployDescription.ts b/packages/nodes-base/nodes/Netlify/DeployDescription.ts
index 152b8b6826..013fb6218d 100644
--- a/packages/nodes-base/nodes/Netlify/DeployDescription.ts
+++ b/packages/nodes-base/nodes/Netlify/DeployDescription.ts
@@ -1,8 +1,8 @@
-import {
+import {
INodeProperties,
} from 'n8n-workflow';
-export const deployOperations = [
+export const deployOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,14 +39,15 @@ export const deployOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const deployFields = [
+export const deployFields: INodeProperties[] = [
{
displayName: 'Site ID',
name: 'siteId',
required: true,
type: 'options',
+ default: '',
typeOptions: {
loadOptionsMethod: 'getSites',
},
@@ -69,6 +70,7 @@ export const deployFields = [
name: 'deployId',
required: true,
type: 'string',
+ default: '',
displayOptions:{
show: {
resource: [
@@ -155,4 +157,4 @@ export const deployFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Netlify/SiteDescription.ts b/packages/nodes-base/nodes/Netlify/SiteDescription.ts
index c62fa69a7d..b379b9a056 100644
--- a/packages/nodes-base/nodes/Netlify/SiteDescription.ts
+++ b/packages/nodes-base/nodes/Netlify/SiteDescription.ts
@@ -1,8 +1,8 @@
-import {
+import {
INodeProperties,
} from 'n8n-workflow';
-export const siteOperations = [
+export const siteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,14 +34,15 @@ export const siteOperations = [
default: 'delete',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const siteFields = [
+export const siteFields: INodeProperties[] = [
{
displayName: 'Site ID',
name: 'siteId',
required: true,
type: 'string',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -95,4 +96,4 @@ export const siteFields = [
default: 50,
description: 'How many results to return',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/NocoDB/OperationDescription.ts b/packages/nodes-base/nodes/NocoDB/OperationDescription.ts
index c679e4c051..dbb2331cdd 100644
--- a/packages/nodes-base/nodes/NocoDB/OperationDescription.ts
+++ b/packages/nodes-base/nodes/NocoDB/OperationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const operationFields = [
+export const operationFields: INodeProperties[] = [
// ----------------------------------
// Shared
// ----------------------------------
@@ -380,4 +380,4 @@ export const operationFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Notion/BlockDescription.ts b/packages/nodes-base/nodes/Notion/BlockDescription.ts
index a9d2b773ca..75c04ad3ec 100644
--- a/packages/nodes-base/nodes/Notion/BlockDescription.ts
+++ b/packages/nodes-base/nodes/Notion/BlockDescription.ts
@@ -6,7 +6,7 @@ import {
blocks,
} from './Blocks';
-export const blockOperations = [
+export const blockOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -33,9 +33,9 @@ export const blockOperations = [
default: 'append',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const blockFields = [
+export const blockFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* block:append */
@@ -120,4 +120,4 @@ export const blockFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Notion/Blocks.ts b/packages/nodes-base/nodes/Notion/Blocks.ts
index 9c95ff2007..759a4a6261 100644
--- a/packages/nodes-base/nodes/Notion/Blocks.ts
+++ b/packages/nodes-base/nodes/Notion/Blocks.ts
@@ -82,7 +82,7 @@ const colors = [
},
];
-const annotation = [
+const annotation: INodeProperties[] = [
{
displayName: 'Annotations',
name: 'annotationUi',
@@ -136,9 +136,9 @@ const annotation = [
],
description: 'All annotations that apply to this rich text.',
},
-] as INodeProperties[];
+];
-const typeMention = [
+const typeMention: INodeProperties[] = [
{
displayName: 'Type',
name: 'mentionType',
@@ -284,9 +284,9 @@ const typeMention = [
default: '',
description: `An ISO 8601 formatted date, with optional time. Represents the end of a date range.`,
},
-] as INodeProperties[];
+];
-const typeEquation = [
+const typeEquation: INodeProperties[] = [
{
displayName: 'Expression',
name: 'expression',
@@ -301,9 +301,9 @@ const typeEquation = [
default: '',
description: '',
},
-] as INodeProperties[];
+];
-const typeText = [
+const typeText: INodeProperties[] = [
{
displayName: 'Text',
name: 'text',
@@ -348,9 +348,9 @@ const typeText = [
default: '',
description: 'The URL that this link points to.',
},
-] as INodeProperties[];
+];
-export const text = (displayOptions: IDisplayOptions) => [
+export const text = (displayOptions: IDisplayOptions): INodeProperties[] => [
{
displayName: 'Text',
name: 'text',
@@ -396,10 +396,10 @@ export const text = (displayOptions: IDisplayOptions) => [
},
],
description: 'Rich text in the block.',
- }] as INodeProperties[];
+ }];
-const todo = (type: string) => [{
+const todo = (type: string): INodeProperties[] => [{
displayName: 'Checked',
name: 'checked',
type: 'boolean',
@@ -412,9 +412,9 @@ const todo = (type: string) => [{
},
},
description: 'Whether the to_do is checked or not.',
-}] as INodeProperties[];
+}];
-const title = (type: string) => [{
+const title = (type: string): INodeProperties[] => [{
displayName: 'Title',
name: 'title',
type: 'string',
@@ -427,9 +427,9 @@ const title = (type: string) => [{
},
},
description: 'Plain text of page title.',
-}] as INodeProperties[];
+}];
-const richText = (displayOptions: IDisplayOptions) => [
+const richText = (displayOptions: IDisplayOptions): INodeProperties[] => [
{
displayName: 'Rich Text',
name: 'richText',
@@ -437,9 +437,9 @@ const richText = (displayOptions: IDisplayOptions) => [
displayOptions,
default: false,
},
-] as INodeProperties[];
+];
-const textContent = (displayOptions: IDisplayOptions) => [
+const textContent = (displayOptions: IDisplayOptions): INodeProperties[] => [
{
displayName: 'Text',
name: 'textContent',
@@ -447,7 +447,7 @@ const textContent = (displayOptions: IDisplayOptions) => [
displayOptions,
default: '',
},
-] as INodeProperties[];
+];
const block = (blockType: string) => {
const data: INodeProperties[] = [];
@@ -518,7 +518,7 @@ const block = (blockType: string) => {
return data;
};
-export const blocks = (resource: string, operation: string) => [{
+export const blocks = (resource: string, operation: string): INodeProperties[] => [{
displayName: 'Blocks',
name: 'blockUi',
type: 'fixedCollection',
@@ -565,5 +565,5 @@ export const blocks = (resource: string, operation: string) => [{
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Notion/DatabaseDescription.ts b/packages/nodes-base/nodes/Notion/DatabaseDescription.ts
index 5213e581ae..58dd1b94c8 100644
--- a/packages/nodes-base/nodes/Notion/DatabaseDescription.ts
+++ b/packages/nodes-base/nodes/Notion/DatabaseDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const databaseOperations = [
+export const databaseOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const databaseOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const databaseFields = [
+export const databaseFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* database:get */
@@ -97,4 +97,4 @@ export const databaseFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts
index 3594fc38ce..eaf861ccae 100644
--- a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts
+++ b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts
@@ -11,7 +11,7 @@ import {
filters,
} from './Filters';
-export const databasePageOperations = [
+export const databasePageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const databasePageOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const databasePageFields = [
+export const databasePageFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* databasePage:create */
@@ -1045,4 +1045,4 @@ export const databasePageFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Notion/Filters.ts b/packages/nodes-base/nodes/Notion/Filters.ts
index ee88dc1a09..4d55760d47 100644
--- a/packages/nodes-base/nodes/Notion/Filters.ts
+++ b/packages/nodes-base/nodes/Notion/Filters.ts
@@ -1,8 +1,12 @@
+import {
+ INodeProperties
+} from 'n8n-workflow';
+
import {
getConditions
} from './GenericFunctions';
-export const filters = [{
+export const filters: INodeProperties[] = [{
displayName: 'Property Name',
name: 'key',
type: 'options',
diff --git a/packages/nodes-base/nodes/Notion/PageDescription.ts b/packages/nodes-base/nodes/Notion/PageDescription.ts
index 4612eb8be8..c75277a6e9 100644
--- a/packages/nodes-base/nodes/Notion/PageDescription.ts
+++ b/packages/nodes-base/nodes/Notion/PageDescription.ts
@@ -6,7 +6,7 @@ import {
blocks,
} from './Blocks';
-export const pageOperations = [
+export const pageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -38,9 +38,9 @@ export const pageOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const pageFields = [
+export const pageFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* page:create */
@@ -329,4 +329,4 @@ export const pageFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Notion/UserDescription.ts b/packages/nodes-base/nodes/Notion/UserDescription.ts
index 42ce84bf49..b5fc5c012f 100644
--- a/packages/nodes-base/nodes/Notion/UserDescription.ts
+++ b/packages/nodes-base/nodes/Notion/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const userOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:get */
@@ -97,4 +97,4 @@ export const userFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Orbit/ActivityDescription.ts b/packages/nodes-base/nodes/Orbit/ActivityDescription.ts
index fad53ff169..7ef55dd98e 100644
--- a/packages/nodes-base/nodes/Orbit/ActivityDescription.ts
+++ b/packages/nodes-base/nodes/Orbit/ActivityDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const activityOperations = [
+export const activityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const activityOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const activityFields = [
+export const activityFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* activity:create */
@@ -245,4 +245,4 @@ export const activityFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Orbit/MemberDescription.ts b/packages/nodes-base/nodes/Orbit/MemberDescription.ts
index 60d4fa7600..c220f72fa9 100644
--- a/packages/nodes-base/nodes/Orbit/MemberDescription.ts
+++ b/packages/nodes-base/nodes/Orbit/MemberDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const memberOperations = [
+export const memberOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const memberOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const memberFields = [
+export const memberFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* member:delete */
@@ -878,4 +878,4 @@ export const memberFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Orbit/NoteDescription.ts b/packages/nodes-base/nodes/Orbit/NoteDescription.ts
index d643418177..b6f425b1ef 100644
--- a/packages/nodes-base/nodes/Orbit/NoteDescription.ts
+++ b/packages/nodes-base/nodes/Orbit/NoteDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const noteOperations = [
+export const noteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const noteOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const noteFields = [
+export const noteFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* note:create */
@@ -269,4 +269,4 @@ export const noteFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Orbit/PostDescription.ts b/packages/nodes-base/nodes/Orbit/PostDescription.ts
index f54a0be6c9..f782b06e47 100644
--- a/packages/nodes-base/nodes/Orbit/PostDescription.ts
+++ b/packages/nodes-base/nodes/Orbit/PostDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const postOperations = [
+export const postOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const postOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const postFields = [
+export const postFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* post:create */
@@ -270,4 +270,4 @@ export const postFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Oura/ProfileDescription.ts b/packages/nodes-base/nodes/Oura/ProfileDescription.ts
index b3e028c8a8..3ab715ad50 100644
--- a/packages/nodes-base/nodes/Oura/ProfileDescription.ts
+++ b/packages/nodes-base/nodes/Oura/ProfileDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const profileOperations = [
+export const profileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,4 +24,4 @@ export const profileOperations = [
default: 'get',
description: 'Operation to perform.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Oura/SummaryDescription.ts b/packages/nodes-base/nodes/Oura/SummaryDescription.ts
index 0512eb1e22..55cc5c0c68 100644
--- a/packages/nodes-base/nodes/Oura/SummaryDescription.ts
+++ b/packages/nodes-base/nodes/Oura/SummaryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const summaryOperations = [
+export const summaryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const summaryOperations = [
default: 'getSleep',
description: 'Operation to perform.',
},
-] as INodeProperties[];
+];
-export const summaryFields = [
+export const summaryFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -102,4 +102,4 @@ export const summaryFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Paddle/CouponDescription.ts b/packages/nodes-base/nodes/Paddle/CouponDescription.ts
index 2f1f7612d9..3e6c6f5c30 100644
--- a/packages/nodes-base/nodes/Paddle/CouponDescription.ts
+++ b/packages/nodes-base/nodes/Paddle/CouponDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Paddle/OrderDescription.ts b/packages/nodes-base/nodes/Paddle/OrderDescription.ts
index f9d6c9859f..18020fca22 100644
--- a/packages/nodes-base/nodes/Paddle/OrderDescription.ts
+++ b/packages/nodes-base/nodes/Paddle/OrderDescription.ts
@@ -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 buyer’s checkout.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Paddle/PaymentDescription.ts b/packages/nodes-base/nodes/Paddle/PaymentDescription.ts
index 3a4c5a44a3..4438625993 100644
--- a/packages/nodes-base/nodes/Paddle/PaymentDescription.ts
+++ b/packages/nodes-base/nodes/Paddle/PaymentDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Paddle/PlanDescription.ts b/packages/nodes-base/nodes/Paddle/PlanDescription.ts
index 8df2edda33..845157fd08 100644
--- a/packages/nodes-base/nodes/Paddle/PlanDescription.ts
+++ b/packages/nodes-base/nodes/Paddle/PlanDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Paddle/ProductDescription.ts b/packages/nodes-base/nodes/Paddle/ProductDescription.ts
index 2db617ec8c..dcfadee973 100644
--- a/packages/nodes-base/nodes/Paddle/ProductDescription.ts
+++ b/packages/nodes-base/nodes/Paddle/ProductDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Paddle/UserDescription.ts b/packages/nodes-base/nodes/Paddle/UserDescription.ts
index b135ac6934..9fe2dfda46 100644
--- a/packages/nodes-base/nodes/Paddle/UserDescription.ts
+++ b/packages/nodes-base/nodes/Paddle/UserDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts b/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts
index 769b6c5c7f..207bfd08a4 100644
--- a/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts
+++ b/packages/nodes-base/nodes/PagerDuty/IncidentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const incidentOperations = [
+export const incidentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const incidentOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const incidentFields = [
+export const incidentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* incident:create */
@@ -633,4 +633,4 @@ export const incidentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/PagerDuty/IncidentNoteDescription.ts b/packages/nodes-base/nodes/PagerDuty/IncidentNoteDescription.ts
index 4ffc85b6de..5d331304ab 100644
--- a/packages/nodes-base/nodes/PagerDuty/IncidentNoteDescription.ts
+++ b/packages/nodes-base/nodes/PagerDuty/IncidentNoteDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const incidentNoteOperations = [
+export const incidentNoteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const incidentNoteOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const incidentNoteFields = [
+export const incidentNoteFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* incidentNote:create */
@@ -155,4 +155,4 @@ export const incidentNoteFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts b/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts
index 8967cfa8d3..063e47268e 100644
--- a/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts
+++ b/packages/nodes-base/nodes/PagerDuty/LogEntryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const logEntryOperations = [
+export const logEntryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const logEntryOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const logEntryFields = [
+export const logEntryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* logEntry:get */
/* -------------------------------------------------------------------------- */
@@ -172,4 +172,4 @@ export const logEntryFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/PagerDuty/UserDescription.ts b/packages/nodes-base/nodes/PagerDuty/UserDescription.ts
index b651a1bd9a..bec35b25dd 100644
--- a/packages/nodes-base/nodes/PagerDuty/UserDescription.ts
+++ b/packages/nodes-base/nodes/PagerDuty/UserDescription.ts
@@ -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: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:get */
/* -------------------------------------------------------------------------- */
@@ -48,4 +48,4 @@ export const userFields = [
},
description: 'Unique identifier for the user.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/PayPal/PaymentDescription.ts b/packages/nodes-base/nodes/PayPal/PaymentDescription.ts
index 9c3edf143a..5cf89c5399 100644
--- a/packages/nodes-base/nodes/PayPal/PaymentDescription.ts
+++ b/packages/nodes-base/nodes/PayPal/PaymentDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts b/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts
index 2c97ef422f..875bfd2c7f 100644
--- a/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts
+++ b/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const agentOperations = [
+export const agentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const agentOperations = [
default: 'launch',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const agentFields = [
+export const agentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* agent:delete */
@@ -448,4 +448,4 @@ export const agentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts b/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts
index 5d9b52346d..23b4f329aa 100644
--- a/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts
+++ b/packages/nodes-base/nodes/PhilipsHue/LightDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const lightOperations = [
+export const lightOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const lightOperations = [
default: 'update',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const lightFields = [
+export const lightFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* light:delete */
@@ -341,4 +341,4 @@ export const lightFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Plivo/CallDescription.ts b/packages/nodes-base/nodes/Plivo/CallDescription.ts
index 573545057c..458c3398d9 100644
--- a/packages/nodes-base/nodes/Plivo/CallDescription.ts
+++ b/packages/nodes-base/nodes/Plivo/CallDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const callOperations = [
+export const callOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const callOperations = [
default: 'make',
description: 'Operation to perform.',
},
-] as INodeProperties[];
+];
-export const callFields = [
+export const callFields: INodeProperties[] = [
// ----------------------------------
// call: make
// ----------------------------------
@@ -114,4 +114,4 @@ export const callFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Plivo/MmsDescription.ts b/packages/nodes-base/nodes/Plivo/MmsDescription.ts
index 398ae5f182..6929ecea12 100644
--- a/packages/nodes-base/nodes/Plivo/MmsDescription.ts
+++ b/packages/nodes-base/nodes/Plivo/MmsDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const mmsOperations = [
+export const mmsOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const mmsOperations = [
default: 'send',
description: 'Operation to perform.',
},
-] as INodeProperties[];
+];
-export const mmsFields = [
+export const mmsFields: INodeProperties[] = [
// ----------------------------------
// mms: send
// ----------------------------------
@@ -104,4 +104,4 @@ export const mmsFields = [
},
description: 'Comma-separated list of media URLs of the files from your file server.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Plivo/SmsDescription.ts b/packages/nodes-base/nodes/Plivo/SmsDescription.ts
index ef1774fb93..d9ce3078ed 100644
--- a/packages/nodes-base/nodes/Plivo/SmsDescription.ts
+++ b/packages/nodes-base/nodes/Plivo/SmsDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const smsOperations = [
+export const smsOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const smsOperations = [
default: 'send',
description: 'Operation to perform.',
},
-] as INodeProperties[];
+];
-export const smsFields = [
+export const smsFields: INodeProperties[] = [
// ----------------------------------
// sms: send
// ----------------------------------
@@ -86,4 +86,4 @@ export const smsFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/PostHog/AliasDescription.ts b/packages/nodes-base/nodes/PostHog/AliasDescription.ts
index 072a450dd7..c455abcb7c 100644
--- a/packages/nodes-base/nodes/PostHog/AliasDescription.ts
+++ b/packages/nodes-base/nodes/PostHog/AliasDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const aliasOperations = [
+export const aliasOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const aliasOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const aliasFields = [
+export const aliasFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* alias:create */
@@ -123,4 +123,4 @@ export const aliasFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/PostHog/EventDescription.ts b/packages/nodes-base/nodes/PostHog/EventDescription.ts
index 920f636c87..5365757974 100644
--- a/packages/nodes-base/nodes/PostHog/EventDescription.ts
+++ b/packages/nodes-base/nodes/PostHog/EventDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const eventOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* event:create */
@@ -123,4 +123,4 @@ export const eventFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/PostHog/IdentityDescription.ts b/packages/nodes-base/nodes/PostHog/IdentityDescription.ts
index 4f9aff6138..227d3ef471 100644
--- a/packages/nodes-base/nodes/PostHog/IdentityDescription.ts
+++ b/packages/nodes-base/nodes/PostHog/IdentityDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const identityOperations = [
+export const identityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const identityOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const identityFields = [
+export const identityFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* identity:create */
@@ -110,4 +110,4 @@ export const identityFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/PostHog/TrackDescription.ts b/packages/nodes-base/nodes/PostHog/TrackDescription.ts
index fb45d329f6..4643600909 100644
--- a/packages/nodes-base/nodes/PostHog/TrackDescription.ts
+++ b/packages/nodes-base/nodes/PostHog/TrackDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const trackOperations = [
+export const trackOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const trackOperations = [
default: 'page',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const trackFields = [
+export const trackFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* track:page */
@@ -172,4 +172,4 @@ export const trackFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ProfitWell/CompanyDescription.ts b/packages/nodes-base/nodes/ProfitWell/CompanyDescription.ts
index 40a1be77dd..42f6c8d56e 100644
--- a/packages/nodes-base/nodes/ProfitWell/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/ProfitWell/CompanyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,4 +24,4 @@ export const companyOperations = [
default: 'getSetting',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ProfitWell/MetricDescription.ts b/packages/nodes-base/nodes/ProfitWell/MetricDescription.ts
index 74ed1329e1..07640bd2fc 100644
--- a/packages/nodes-base/nodes/ProfitWell/MetricDescription.ts
+++ b/packages/nodes-base/nodes/ProfitWell/MetricDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const metricOperations = [
+export const metricOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const metricOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const metricFields = [
+export const metricFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* metric:get */
@@ -436,4 +436,4 @@ export const metricFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBase/FieldDescription.ts b/packages/nodes-base/nodes/QuickBase/FieldDescription.ts
index 43423d0e5d..d22be78a53 100644
--- a/packages/nodes-base/nodes/QuickBase/FieldDescription.ts
+++ b/packages/nodes-base/nodes/QuickBase/FieldDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const fieldOperations = [
+export const fieldOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const fieldOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fieldFields = [
+export const fieldFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* field:getAll */
/* -------------------------------------------------------------------------- */
@@ -115,4 +115,4 @@ export const fieldFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBase/FileDescription.ts b/packages/nodes-base/nodes/QuickBase/FileDescription.ts
index 8efa59ef2f..17eee8bcae 100644
--- a/packages/nodes-base/nodes/QuickBase/FileDescription.ts
+++ b/packages/nodes-base/nodes/QuickBase/FileDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const fileOperations = [
+export const fileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const fileOperations = [
default: 'download',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fileFields = [
+export const fileFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* file:download */
/* -------------------------------------------------------------------------- */
@@ -129,4 +129,4 @@ export const fileFields = [
description: 'Object property name which holds binary data.',
required: true,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBase/RecordDescription.ts b/packages/nodes-base/nodes/QuickBase/RecordDescription.ts
index e6316cf014..86de74ca35 100644
--- a/packages/nodes-base/nodes/QuickBase/RecordDescription.ts
+++ b/packages/nodes-base/nodes/QuickBase/RecordDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const recordOperations = [
+export const recordOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const recordOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const recordFields = [
+export const recordFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* record:create */
/* -------------------------------------------------------------------------- */
@@ -583,4 +583,4 @@ export const recordFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBase/ReportDescription.ts b/packages/nodes-base/nodes/QuickBase/ReportDescription.ts
index ea3406dc4e..44a6f34763 100644
--- a/packages/nodes-base/nodes/QuickBase/ReportDescription.ts
+++ b/packages/nodes-base/nodes/QuickBase/ReportDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const reportOperations = [
+export const reportOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const reportOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const reportFields = [
+export const reportFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* report:get */
/* -------------------------------------------------------------------------- */
@@ -153,4 +153,4 @@ export const reportFields = [
default: 100,
description: 'Number of results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/GenericFunctions.ts b/packages/nodes-base/nodes/QuickBooks/GenericFunctions.ts
index 72e3742939..3b86ec9f95 100644
--- a/packages/nodes-base/nodes/QuickBooks/GenericFunctions.ts
+++ b/packages/nodes-base/nodes/QuickBooks/GenericFunctions.ts
@@ -7,6 +7,7 @@ import {
IDataObject,
ILoadOptionsFunctions,
INodeExecutionData,
+ INodeProperties,
INodePropertyOptions,
NodeApiError,
} from 'n8n-workflow';
@@ -445,12 +446,12 @@ export function populateFields(
export const toOptions = (option: string) => ({ name: option, value: option });
-export const toDisplayName = ({ name, value }: Option) => {
+export const toDisplayName = ({ name, value }: Option): INodePropertyOptions => {
return { name: splitPascalCase(name), value };
};
export const splitPascalCase = (word: string) => {
- return word.match(/($[a-z])|[A-Z][^A-Z]+/g)?.join(' ');
+ return word.match(/($[a-z])|[A-Z][^A-Z]+/g)!.join(' ');
};
export function adjustTransactionDates(
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillAdditionalFieldsOptions.ts
index 5d872f6461..7b4040d636 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillAdditionalFieldsOptions.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillAdditionalFieldsOptions.ts
@@ -1,4 +1,8 @@
-export const billAdditionalFieldsOptions = [
+import {
+ INodeProperties
+} from 'n8n-workflow';
+
+export const billAdditionalFieldsOptions: INodeProperties[] = [
{
displayName: 'Accounts Payable Account',
name: 'APAccountRef',
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillDescription.ts
index 211220266d..5019303b1a 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Bill/BillDescription.ts
@@ -6,7 +6,7 @@ import {
billAdditionalFieldsOptions,
} from './BillAdditionalFieldsOptions';
-export const billOperations = [
+export const billOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -43,9 +43,9 @@ export const billOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const billFields = [
+export const billFields: INodeProperties[] = [
// ----------------------------------
// bill: create
// ----------------------------------
@@ -327,4 +327,4 @@ export const billFields = [
// filter out fields that cannot be updated
options: billAdditionalFieldsOptions.filter(property => property.name !== 'TotalAmt' && property.name !== 'Balance'),
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerAdditionalFieldsOptions.ts
index db037f9ff5..c299df7f00 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerAdditionalFieldsOptions.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerAdditionalFieldsOptions.ts
@@ -1,4 +1,8 @@
-export const customerAdditionalFieldsOptions = [
+import {
+ INodeProperties,
+} from 'n8n-workflow';
+
+export const customerAdditionalFieldsOptions: INodeProperties[] = [
{
displayName: 'Active',
name: 'Active',
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerDescription.ts
index 56b53bec29..63e747c72a 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Customer/CustomerDescription.ts
@@ -6,7 +6,7 @@ import {
customerAdditionalFieldsOptions,
} from './CustomerAdditionalFieldsOptions';
-export const customerOperations = [
+export const customerOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const customerOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const customerFields = [
+export const customerFields: INodeProperties[] = [
// ----------------------------------
// customer: create
// ----------------------------------
@@ -219,4 +219,4 @@ export const customerFields = [
},
options: customerAdditionalFieldsOptions,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeAdditionalFieldsOptions.ts
index e10304ad33..0a7beadb89 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeAdditionalFieldsOptions.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeAdditionalFieldsOptions.ts
@@ -1,4 +1,8 @@
-export const employeeAdditionalFieldsOptions = [
+import {
+ INodeProperties,
+} from 'n8n-workflow';
+
+export const employeeAdditionalFieldsOptions: INodeProperties[] = [
{
displayName: 'Active',
name: 'Active',
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeDescription.ts
index 5fb94c4563..9629a26646 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Employee/EmployeeDescription.ts
@@ -6,7 +6,7 @@ import {
employeeAdditionalFieldsOptions,
} from './EmployeeAdditionalFieldsOptions';
-export const employeeOperations = [
+export const employeeOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const employeeOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const employeeFields = [
+export const employeeFields: INodeProperties[] = [
// ----------------------------------
// employee: create
// ----------------------------------
@@ -233,4 +233,4 @@ export const employeeFields = [
},
options: employeeAdditionalFieldsOptions,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateAdditionalFieldsOptions.ts
index 9532b7f442..96b811770e 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateAdditionalFieldsOptions.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateAdditionalFieldsOptions.ts
@@ -1,4 +1,8 @@
-export const estimateAdditionalFieldsOptions = [
+import {
+ INodeProperties,
+} from 'n8n-workflow';
+
+export const estimateAdditionalFieldsOptions: INodeProperties[] = [
{
displayName: 'Apply Tax After Discount',
name: 'ApplyTaxAfterDiscount',
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.ts
index 25d4af1f3b..d59da70cc3 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Estimate/EstimateDescription.ts
@@ -6,7 +6,7 @@ import {
estimateAdditionalFieldsOptions,
} from './EstimateAdditionalFieldsOptions';
-export const estimateOperations = [
+export const estimateOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const estimateOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const estimateFields = [
+export const estimateFields: INodeProperties[] = [
// ----------------------------------
// estimate: create
// ----------------------------------
@@ -422,4 +422,4 @@ export const estimateFields = [
// filter out fields that cannot be updated
options: estimateAdditionalFieldsOptions.filter(property => property.name !== 'TotalAmt' && property.name !== 'TotalTax'),
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceAdditionalFieldsOptions.ts
index 49a70e085e..df1f15f002 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceAdditionalFieldsOptions.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceAdditionalFieldsOptions.ts
@@ -1,4 +1,8 @@
-export const invoiceAdditionalFieldsOptions = [
+import {
+ INodeProperties,
+} from 'n8n-workflow';
+
+export const invoiceAdditionalFieldsOptions: INodeProperties[] = [
{
displayName: 'Balance',
name: 'Balance',
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.ts
index 9ad251c7d2..394252fffb 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Invoice/InvoiceDescription.ts
@@ -6,7 +6,7 @@ import {
invoiceAdditionalFieldsOptions
} from './InvoiceAdditionalFieldsOptions';
-export const invoiceOperations = [
+export const invoiceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -51,9 +51,9 @@ export const invoiceOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const invoiceFields = [
+export const invoiceFields: INodeProperties[] = [
// ----------------------------------
// invoice: create
// ----------------------------------
@@ -448,4 +448,4 @@ export const invoiceFields = [
// filter out fields that cannot be updated
options: invoiceAdditionalFieldsOptions.filter(property => property.name !== 'TotalAmt' && property.name !== 'Balance'),
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Item/ItemDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Item/ItemDescription.ts
index 23d55fad6b..30f7ce38a6 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Item/ItemDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Item/ItemDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const itemOperations = [
+export const itemOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const itemOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const itemFields = [
+export const itemFields: INodeProperties[] = [
// ----------------------------------
// item: get
// ----------------------------------
@@ -126,4 +126,4 @@ export const itemFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentAdditionalFieldsOptions.ts
index e683fd2e2b..faceace40f 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentAdditionalFieldsOptions.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentAdditionalFieldsOptions.ts
@@ -1,4 +1,8 @@
-export const paymentAdditionalFieldsOptions = [
+import {
+ INodeProperties,
+} from 'n8n-workflow';
+
+export const paymentAdditionalFieldsOptions: INodeProperties[] = [
{
displayName: 'Transaction Date',
name: 'TxnDate',
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentDescription.ts
index 9ccd3238af..144727655f 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Payment/PaymentDescription.ts
@@ -6,7 +6,7 @@ import {
paymentAdditionalFieldsOptions
} from './PaymentAdditionalFieldsOptions';
-export const paymentOperations = [
+export const paymentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -51,9 +51,9 @@ export const paymentOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const paymentFields = [
+export const paymentFields: INodeProperties[] = [
// ----------------------------------
// payment: create
// ----------------------------------
@@ -396,4 +396,4 @@ export const paymentFields = [
},
options: paymentAdditionalFieldsOptions,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Purchase/PurchaseDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Purchase/PurchaseDescription.ts
index 16827948b1..4e3b360f75 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Purchase/PurchaseDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Purchase/PurchaseDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const purchaseOperations = [
+export const purchaseOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const purchaseOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const purchaseFields = [
+export const purchaseFields: INodeProperties[] = [
// ----------------------------------
// purchase: get
// ----------------------------------
@@ -126,4 +126,4 @@ export const purchaseFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Transaction/TransactionDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Transaction/TransactionDescription.ts
index 3485305d76..982f3d379d 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Transaction/TransactionDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Transaction/TransactionDescription.ts
@@ -16,7 +16,7 @@ import {
TRANSACTION_TYPES,
} from './constants';
-export const transactionOperations = [
+export const transactionOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const transactionOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const transactionFields = [
+export const transactionFields: INodeProperties[] = [
// ----------------------------------
// transaction: getReport
// ----------------------------------
@@ -395,4 +395,4 @@ export const transactionFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorAdditionalFieldsOptions.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorAdditionalFieldsOptions.ts
index 68b27a208b..950e28c112 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorAdditionalFieldsOptions.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorAdditionalFieldsOptions.ts
@@ -1,4 +1,8 @@
-export const vendorAdditionalFieldsOptions = [
+import {
+ INodeProperties,
+} from 'n8n-workflow';
+
+export const vendorAdditionalFieldsOptions: INodeProperties[] = [
{
displayName: 'Account Number',
name: 'AcctNum',
diff --git a/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorDescription.ts b/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorDescription.ts
index d675e70688..0f583f3a41 100644
--- a/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorDescription.ts
+++ b/packages/nodes-base/nodes/QuickBooks/descriptions/Vendor/VendorDescription.ts
@@ -6,7 +6,7 @@ import {
vendorAdditionalFieldsOptions,
} from './VendorAdditionalFieldsOptions';
-export const vendorOperations = [
+export const vendorOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const vendorOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const vendorFields = [
+export const vendorFields: INodeProperties[] = [
// ----------------------------------
// vendor: create
// ----------------------------------
@@ -219,4 +219,4 @@ export const vendorFields = [
},
options: vendorAdditionalFieldsOptions,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts
index da8c3c2308..fcbdc938b6 100644
--- a/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts
+++ b/packages/nodes-base/nodes/Raindrop/descriptions/BookmarkDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const bookmarkOperations = [
+export const bookmarkOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const bookmarkOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const bookmarkFields = [
+export const bookmarkFields: INodeProperties[] = [
// ----------------------------------
// bookmark: create
// ----------------------------------
@@ -317,4 +317,4 @@ export const bookmarkFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/CollectionDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/CollectionDescription.ts
index c8232b8c2f..c198d94d4b 100644
--- a/packages/nodes-base/nodes/Raindrop/descriptions/CollectionDescription.ts
+++ b/packages/nodes-base/nodes/Raindrop/descriptions/CollectionDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const collectionOperations = [
+export const collectionOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const collectionOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const collectionFields = [
+export const collectionFields: INodeProperties[] = [
// ----------------------------------
// collection: create
// ----------------------------------
@@ -355,4 +355,4 @@ export const collectionFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/TagDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/TagDescription.ts
index 2579be7ca8..6ce13508a1 100644
--- a/packages/nodes-base/nodes/Raindrop/descriptions/TagDescription.ts
+++ b/packages/nodes-base/nodes/Raindrop/descriptions/TagDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const tagOperations = [
+export const tagOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const tagOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const tagFields = [
+export const tagFields: INodeProperties[] = [
// ----------------------------------
// tag: delete
// ----------------------------------
@@ -152,4 +152,4 @@ export const tagFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Raindrop/descriptions/UserDescription.ts b/packages/nodes-base/nodes/Raindrop/descriptions/UserDescription.ts
index 8d452487a3..42d7c103e4 100644
--- a/packages/nodes-base/nodes/Raindrop/descriptions/UserDescription.ts
+++ b/packages/nodes-base/nodes/Raindrop/descriptions/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const userOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
// ----------------------------------
// user: get
// ----------------------------------
@@ -68,4 +68,4 @@ export const userFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Reddit/PostCommentDescription.ts b/packages/nodes-base/nodes/Reddit/PostCommentDescription.ts
index 075ad92d8f..c67dcd8a6b 100644
--- a/packages/nodes-base/nodes/Reddit/PostCommentDescription.ts
+++ b/packages/nodes-base/nodes/Reddit/PostCommentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const postCommentOperations = [
+export const postCommentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const postCommentOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const postCommentFields = [
+export const postCommentFields: INodeProperties[] = [
// ----------------------------------
// postComment: create
// ----------------------------------
@@ -228,4 +228,4 @@ export const postCommentFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Reddit/PostDescription.ts b/packages/nodes-base/nodes/Reddit/PostDescription.ts
index 43f960dc3e..41d454070a 100644
--- a/packages/nodes-base/nodes/Reddit/PostDescription.ts
+++ b/packages/nodes-base/nodes/Reddit/PostDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const postOperations = [
+export const postOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const postOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const postFields = [
+export const postFields: INodeProperties[] = [
// ----------------------------------
// post: create
// ----------------------------------
@@ -515,4 +515,4 @@ export const postFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Reddit/ProfileDescription.ts b/packages/nodes-base/nodes/Reddit/ProfileDescription.ts
index 1ff0730603..5f8f65e8c4 100644
--- a/packages/nodes-base/nodes/Reddit/ProfileDescription.ts
+++ b/packages/nodes-base/nodes/Reddit/ProfileDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const profileOperations = [
+export const profileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,10 +23,10 @@ export const profileOperations = [
default: 'get',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const profileFields = [
+export const profileFields: INodeProperties[] = [
{
displayName: 'Details',
name: 'details',
@@ -77,4 +77,4 @@ export const profileFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Reddit/SubredditDescription.ts b/packages/nodes-base/nodes/Reddit/SubredditDescription.ts
index c7c2c7626f..d24919dcc0 100644
--- a/packages/nodes-base/nodes/Reddit/SubredditDescription.ts
+++ b/packages/nodes-base/nodes/Reddit/SubredditDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const subredditOperations = [
+export const subredditOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const subredditOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const subredditFields = [
+export const subredditFields: INodeProperties[] = [
// ----------------------------------
// subreddit: get
// ----------------------------------
@@ -159,4 +159,4 @@ export const subredditFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Reddit/UserDescription.ts b/packages/nodes-base/nodes/Reddit/UserDescription.ts
index e181c3c6d7..1defaf6e1f 100644
--- a/packages/nodes-base/nodes/Reddit/UserDescription.ts
+++ b/packages/nodes-base/nodes/Reddit/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const userOperations = [
default: 'get',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
{
displayName: 'Username',
name: 'username',
@@ -137,4 +137,4 @@ export const userFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/AccountDescription.ts b/packages/nodes-base/nodes/Salesforce/AccountDescription.ts
index b00a4331dc..4053d454c5 100644
--- a/packages/nodes-base/nodes/Salesforce/AccountDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/AccountDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const accountOperations = [
+export const accountOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -59,9 +59,9 @@ export const accountOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const accountFields = [
+export const accountFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* account:create */
@@ -270,7 +270,7 @@ export const accountFields = [
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
- type: 'integer',
+ type: 'number',
default: '',
description: 'Number of employees',
},
@@ -304,6 +304,7 @@ export const accountFields = [
displayName: 'SicDesc',
name: 'sicDesc',
type: 'string',
+ default: '',
typeOptions: {
alwaysOpenEditWindow: true,
},
@@ -577,7 +578,7 @@ export const accountFields = [
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
- type: 'integer',
+ type: 'number',
default: '',
description: 'Number of employees',
},
@@ -592,6 +593,7 @@ export const accountFields = [
displayName: 'SicDesc',
name: 'sicDesc',
type: 'string',
+ default: '',
typeOptions: {
alwaysOpenEditWindow: true,
},
@@ -905,4 +907,4 @@ export const accountFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts b/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts
index 624fe18128..c2797035b6 100644
--- a/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/AttachmentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const attachmentOperations = [
+export const attachmentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const attachmentOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const attachmentFields = [
+export const attachmentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* attachment:create */
@@ -412,4 +412,4 @@ export const attachmentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/CaseDescription.ts b/packages/nodes-base/nodes/Salesforce/CaseDescription.ts
index aadf26e206..263bcd943e 100644
--- a/packages/nodes-base/nodes/Salesforce/CaseDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/CaseDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const caseOperations = [
+export const caseOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -52,9 +52,9 @@ export const caseOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const caseFields = [
+export const caseFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* case:create */
@@ -716,4 +716,4 @@ export const caseFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/ContactDescription.ts b/packages/nodes-base/nodes/Salesforce/ContactDescription.ts
index e47db24b0d..a49fe57c5b 100644
--- a/packages/nodes-base/nodes/Salesforce/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -64,9 +64,9 @@ export const contactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:create */
@@ -1047,4 +1047,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/CustomObjectDescription.ts b/packages/nodes-base/nodes/Salesforce/CustomObjectDescription.ts
index 972633ed79..77ac5be940 100644
--- a/packages/nodes-base/nodes/Salesforce/CustomObjectDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/CustomObjectDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const customObjectOperations = [
+export const customObjectOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const customObjectOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const customObjectFields = [
+export const customObjectFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* customObject:create */
@@ -575,4 +575,4 @@ export const customObjectFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/DocumentDescription.ts b/packages/nodes-base/nodes/Salesforce/DocumentDescription.ts
index 901f429a13..b6db104abb 100644
--- a/packages/nodes-base/nodes/Salesforce/DocumentDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/DocumentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const documentOperations = [
+export const documentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const documentOperations = [
default: 'upload',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const documentFields = [
+export const documentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* document:upload */
@@ -112,4 +112,4 @@ export const documentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/FlowDescription.ts b/packages/nodes-base/nodes/Salesforce/FlowDescription.ts
index 49a6af771f..76f18cfdf7 100644
--- a/packages/nodes-base/nodes/Salesforce/FlowDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/FlowDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const flowOperations = [
+export const flowOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const flowOperations = [
default: 'invoke',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const flowFields = [
+export const flowFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* flow:getAll */
@@ -182,4 +182,4 @@ export const flowFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/LeadDescription.ts b/packages/nodes-base/nodes/Salesforce/LeadDescription.ts
index fe33c3eb45..36f4b47166 100644
--- a/packages/nodes-base/nodes/Salesforce/LeadDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/LeadDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const leadOperations = [
+export const leadOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -64,9 +64,9 @@ export const leadOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const leadFields = [
+export const leadFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* lead:create */
@@ -257,7 +257,7 @@ export const leadFields = [
{
displayName: 'Is Unread By Owner',
name: 'IsUnreadByOwner',
- type: 'Boolean',
+ type: 'boolean',
default: false,
description: 'If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
},
@@ -517,7 +517,7 @@ export const leadFields = [
{
displayName: 'Is Unread By Owner',
name: 'IsUnreadByOwner',
- type: 'Boolean',
+ type: 'boolean',
default: false,
description: 'If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
},
@@ -983,4 +983,4 @@ export const leadFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts b/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts
index f4d4f529ea..3d78f17ccc 100644
--- a/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/OpportunityDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const opportunityOperations = [
+export const opportunityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -59,9 +59,9 @@ export const opportunityOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const opportunityFields = [
+export const opportunityFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* opportunity:create */
@@ -813,4 +813,4 @@ export const opportunityFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/SearchDescription.ts b/packages/nodes-base/nodes/Salesforce/SearchDescription.ts
index e13e8fa616..bfabdd594e 100644
--- a/packages/nodes-base/nodes/Salesforce/SearchDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/SearchDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const searchOperations = [
+export const searchOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const searchOperations = [
default: 'query',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const searchFields = [
+export const searchFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* search:query */
@@ -49,4 +49,4 @@ export const searchFields = [
},
description: 'A SOQL query. An example query parameter string might look like: “SELECT+Name+FROM+MyObject”. If the SOQL query string is invalid, a MALFORMED_QUERY response is returned.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/TaskDescription.ts b/packages/nodes-base/nodes/Salesforce/TaskDescription.ts
index ff7a7389bc..17bf443fbe 100644
--- a/packages/nodes-base/nodes/Salesforce/TaskDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const taskOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* task:create */
@@ -939,4 +939,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesforce/UserDescription.ts b/packages/nodes-base/nodes/Salesforce/UserDescription.ts
index ecfc95bf78..7352b17a5a 100644
--- a/packages/nodes-base/nodes/Salesforce/UserDescription.ts
+++ b/packages/nodes-base/nodes/Salesforce/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const userOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:get */
@@ -188,4 +188,4 @@ export const userFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts b/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts
index 47174e2a06..0c97c5e413 100644
--- a/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts
+++ b/packages/nodes-base/nodes/Salesmate/ActivityDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const activityOperations = [
+export const activityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const activityOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const activityFields = [
+export const activityFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* activity:create */
@@ -626,4 +626,4 @@ export const activityFields = [
},
description: 'If more than one activity add them separated by ,',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts b/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts
index 8b689c73da..f1dbb16031 100644
--- a/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/Salesmate/CompanyDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const companyOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* company:create */
@@ -723,4 +723,4 @@ export const companyFields = [
},
description: 'If more than one company add them separated by ,',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Salesmate/DealDescription.ts b/packages/nodes-base/nodes/Salesmate/DealDescription.ts
index 97c91421c3..65b5cc1b87 100644
--- a/packages/nodes-base/nodes/Salesmate/DealDescription.ts
+++ b/packages/nodes-base/nodes/Salesmate/DealDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const dealOperations = [
+export const dealOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const dealOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const dealFields = [
+export const dealFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* deal:create */
@@ -894,4 +894,4 @@ export const dealFields = [
},
description: 'If more than one deal add them separated by ,',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SeaTable/RowDescription.ts b/packages/nodes-base/nodes/SeaTable/RowDescription.ts
index 0601585318..8e09b34f50 100644
--- a/packages/nodes-base/nodes/SeaTable/RowDescription.ts
+++ b/packages/nodes-base/nodes/SeaTable/RowDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const rowOperations = [
+export const rowOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -37,9 +37,9 @@ export const rowOperations = [
default: 'create',
description: 'The operation being performed',
},
-] as INodeProperties[];
+];
-export const rowFields = [
+export const rowFields: INodeProperties[] = [
// ----------------------------------
// shared
// ----------------------------------
@@ -345,4 +345,4 @@ export const rowFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/CompanyDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/CompanyDescription.ts
index 5b26ca780d..dc0e33b580 100644
--- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/CompanyDescription.ts
+++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/CompanyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const companyOperations = [
],
default: 'getFactor',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
{
displayName: 'Scorecard Identifier',
name: 'scorecardIdentifier',
@@ -250,4 +250,4 @@ export const companyFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/IndustryDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/IndustryDescription.ts
index 3d9dbc8b43..bc2b1068b7 100644
--- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/IndustryDescription.ts
+++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/IndustryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const industryOperations = [
+export const industryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -31,13 +31,14 @@ export const industryOperations = [
],
default: 'getFactor',
},
-] as INodeProperties[];
+];
-export const industryFields = [
+export const industryFields: INodeProperties[] = [
{
displayName: 'Industry',
name: 'industry',
type: 'options',
+ default: 'food',
options: [
{
name: 'Food',
@@ -170,4 +171,4 @@ export const industryFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts
index 2710d42ea8..ca275bde8d 100644
--- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts
+++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/InviteDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const inviteOperations = [
+export const inviteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const inviteOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const inviteFields = [
+export const inviteFields: INodeProperties[] = [
{
displayName: 'Email',
name: 'email',
@@ -175,4 +175,4 @@ export const inviteFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioCompanyDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioCompanyDescription.ts
index 6842e531fa..8e3ef9cb12 100644
--- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioCompanyDescription.ts
+++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioCompanyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const portfolioCompanyOperations = [
+export const portfolioCompanyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const portfolioCompanyOperations = [
],
default: 'add',
},
-] as INodeProperties[];
+];
-export const portfolioCompanyFields = [
+export const portfolioCompanyFields: INodeProperties[] = [
{
displayName: 'Portfolio ID',
name: 'portfolioId',
@@ -184,5 +184,5 @@ export const portfolioCompanyFields = [
description: 'Company\'s domain name',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioDescription.ts
index f6cbe5d6a6..a9d0594c28 100644
--- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioDescription.ts
+++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/PortfolioDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const portfolioOperations = [
+export const portfolioOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const portfolioOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const portfolioFields = [
+export const portfolioFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -174,5 +174,5 @@ export const portfolioFields = [
],
default: 'shared',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SecurityScorecard/descriptions/ReportDescription.ts b/packages/nodes-base/nodes/SecurityScorecard/descriptions/ReportDescription.ts
index 9501d66a05..34d21d4648 100644
--- a/packages/nodes-base/nodes/SecurityScorecard/descriptions/ReportDescription.ts
+++ b/packages/nodes-base/nodes/SecurityScorecard/descriptions/ReportDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const reportOperations = [
+export const reportOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const reportOperations = [
],
default: 'getAll',
},
-] as INodeProperties[];
+];
-export const reportFields = [
+export const reportFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -217,6 +217,7 @@ export const reportFields = [
displayName: 'Date',
name: 'date',
type: 'dateTime',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -380,4 +381,4 @@ export const reportFields = [
},
description: 'Name of the binary property to which to write the data of the read file.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Segment/GroupDescription.ts b/packages/nodes-base/nodes/Segment/GroupDescription.ts
index bf7e442cad..84bfa76546 100644
--- a/packages/nodes-base/nodes/Segment/GroupDescription.ts
+++ b/packages/nodes-base/nodes/Segment/GroupDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const groupOperations = [
+export const groupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const groupOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const groupFields = [
+export const groupFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* group:add */
@@ -349,4 +349,4 @@ export const groupFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Segment/IdentifyDescription.ts b/packages/nodes-base/nodes/Segment/IdentifyDescription.ts
index 0665799656..976da4ff34 100644
--- a/packages/nodes-base/nodes/Segment/IdentifyDescription.ts
+++ b/packages/nodes-base/nodes/Segment/IdentifyDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const identifyOperations = [
+export const identifyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const identifyOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const identifyFields = [
+export const identifyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* identify:create */
@@ -331,4 +331,4 @@ export const identifyFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Segment/TrackDescription.ts b/packages/nodes-base/nodes/Segment/TrackDescription.ts
index 5bf3d0d57e..96a064897c 100644
--- a/packages/nodes-base/nodes/Segment/TrackDescription.ts
+++ b/packages/nodes-base/nodes/Segment/TrackDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const trackOperations = [
+export const trackOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const trackOperations = [
default: 'event',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const trackFields = [
+export const trackFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* track:event */
@@ -673,4 +673,4 @@ export const trackFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SendGrid/ContactDescription.ts b/packages/nodes-base/nodes/SendGrid/ContactDescription.ts
index a94fccc986..e8befc3991 100644
--- a/packages/nodes-base/nodes/SendGrid/ContactDescription.ts
+++ b/packages/nodes-base/nodes/SendGrid/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const contactOperations = [
default: 'upsert',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:getAll */
/* -------------------------------------------------------------------------- */
@@ -295,6 +295,7 @@ export const contactFields = [
displayName: 'Contact IDs',
name: 'ids',
type: 'string',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -401,4 +402,4 @@ export const contactFields = [
default: '',
description: 'Email of the contact.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SendGrid/ListDescription.ts b/packages/nodes-base/nodes/SendGrid/ListDescription.ts
index 23da1e836e..33d826514b 100644
--- a/packages/nodes-base/nodes/SendGrid/ListDescription.ts
+++ b/packages/nodes-base/nodes/SendGrid/ListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const listOperations = [
+export const listOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const listOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const listFields = [
+export const listFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* list:getAll */
/* -------------------------------------------------------------------------- */
@@ -230,4 +230,4 @@ export const listFields = [
default: '',
description: 'Name of the list.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SendGrid/MailDescription.ts b/packages/nodes-base/nodes/SendGrid/MailDescription.ts
index afe6ca0a41..383733f0f6 100644
--- a/packages/nodes-base/nodes/SendGrid/MailDescription.ts
+++ b/packages/nodes-base/nodes/SendGrid/MailDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const mailOperations = [
+export const mailOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const mailOperations = [
default: 'send',
description: 'Operation to perform.',
},
-] as INodeProperties[];
+];
-export const mailFields = [
+export const mailFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* mail:send */
/* -------------------------------------------------------------------------- */
@@ -343,7 +343,7 @@ export const mailFields = [
},
],
},
-] as INodeProperties[];
+];
export type SendMailBody = {
personalizations: Array<{
diff --git a/packages/nodes-base/nodes/Sendy/CampaignDescription.ts b/packages/nodes-base/nodes/Sendy/CampaignDescription.ts
index 7c077ff3f8..a6e31830cf 100644
--- a/packages/nodes-base/nodes/Sendy/CampaignDescription.ts
+++ b/packages/nodes-base/nodes/Sendy/CampaignDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const campaignOperations = [
+export const campaignOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const campaignOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const campaignFields = [
+export const campaignFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* campaign:create */
@@ -245,4 +245,4 @@ export const campaignFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Sendy/SubscriberDescription.ts b/packages/nodes-base/nodes/Sendy/SubscriberDescription.ts
index 303973ce3a..3972ba2a10 100644
--- a/packages/nodes-base/nodes/Sendy/SubscriberDescription.ts
+++ b/packages/nodes-base/nodes/Sendy/SubscriberDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const subscriberOperations = [
+export const subscriberOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const subscriberOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const subscriberFields = [
+export const subscriberFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* subscriber:add */
@@ -284,4 +284,4 @@ export const subscriberFields = [
default: '',
description: `The list id you want to subscribe a user to. This encrypted & hashed id can be found under View all lists section named ID.`,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SentryIo/EventDescription.ts b/packages/nodes-base/nodes/SentryIo/EventDescription.ts
index b4d1d024aa..20894aea7a 100644
--- a/packages/nodes-base/nodes/SentryIo/EventDescription.ts
+++ b/packages/nodes-base/nodes/SentryIo/EventDescription.ts
@@ -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: 'get',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* event:getAll */
/* -------------------------------------------------------------------------- */
@@ -138,7 +138,7 @@ export const eventFields = [
default: 100,
description: 'How many results to return.',
},
-
+
/* -------------------------------------------------------------------------- */
/* event:get */
/* -------------------------------------------------------------------------- */
@@ -202,4 +202,4 @@ export const eventFields = [
required: true,
description: 'The ID of the event to retrieve (either the numeric primary-key or the hexadecimal ID as reported by the raven client).',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SentryIo/IssueDescription.ts b/packages/nodes-base/nodes/SentryIo/IssueDescription.ts
index 20977b6ac9..83b5c2b094 100644
--- a/packages/nodes-base/nodes/SentryIo/IssueDescription.ts
+++ b/packages/nodes-base/nodes/SentryIo/IssueDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const issueOperations = [
+export const issueOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const issueOperations = [
default: 'get',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const issueFields = [
+export const issueFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* issue:get/delete */
/* -------------------------------------------------------------------------- */
@@ -306,4 +306,4 @@ export const issueFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts b/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts
index ed8fb7008c..791b6af406 100644
--- a/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts
+++ b/packages/nodes-base/nodes/SentryIo/OrganizationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const organizationOperations = [
+export const organizationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const organizationOperations = [
default: 'get',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const organizationFields = [
+export const organizationFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* organization:getAll */
/* -------------------------------------------------------------------------- */
@@ -220,6 +220,7 @@ export const organizationFields = [
typeOptions: {
loadOptionsMethod: 'getOrganizations',
},
+ default: '',
displayOptions: {
show: {
resource: [
@@ -266,4 +267,4 @@ export const organizationFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts b/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts
index d19de2e7d8..80e448fa10 100644
--- a/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts
+++ b/packages/nodes-base/nodes/SentryIo/ProjectDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const projectOperations = [
+export const projectOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const projectOperations = [
default: 'get',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const projectFields = [
+export const projectFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* project:create/get */
/* -------------------------------------------------------------------------- */
@@ -375,4 +375,4 @@ export const projectFields = [
required: true,
description: 'The slug of the project to delete.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts b/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts
index 3322efe143..a33b4b6309 100644
--- a/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts
+++ b/packages/nodes-base/nodes/SentryIo/ReleaseDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const releaseOperations = [
+export const releaseOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const releaseOperations = [
default: 'get',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const releaseFields = [
+export const releaseFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* release:getAll */
/* -------------------------------------------------------------------------- */
@@ -672,4 +672,4 @@ export const releaseFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/SentryIo/TeamDescription.ts b/packages/nodes-base/nodes/SentryIo/TeamDescription.ts
index f57ad9cec5..a96c10d855 100644
--- a/packages/nodes-base/nodes/SentryIo/TeamDescription.ts
+++ b/packages/nodes-base/nodes/SentryIo/TeamDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const teamOperations = [
+export const teamOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const teamOperations = [
default: 'get',
description: 'The operation to perform',
},
-] as INodeProperties[];
+];
-export const teamFields = [
+export const teamFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* team:getAll */
/* -------------------------------------------------------------------------- */
@@ -361,4 +361,4 @@ export const teamFields = [
required: true,
description: 'The slug of the team to delete.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ServiceNow/BusinessServiceDescription.ts b/packages/nodes-base/nodes/ServiceNow/BusinessServiceDescription.ts
index 74696709f5..c5fd6dd0fe 100644
--- a/packages/nodes-base/nodes/ServiceNow/BusinessServiceDescription.ts
+++ b/packages/nodes-base/nodes/ServiceNow/BusinessServiceDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const businessServiceOperations = [
+export const businessServiceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const businessServiceOperations = [
],
default: 'getAll',
},
-] as INodeProperties[];
+];
-export const businessServiceFields = [
+export const businessServiceFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* businessService:getAll */
@@ -134,4 +134,4 @@ export const businessServiceFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ServiceNow/ConfigurationItemsDescription.ts b/packages/nodes-base/nodes/ServiceNow/ConfigurationItemsDescription.ts
index 8537312f25..1d3f738f08 100644
--- a/packages/nodes-base/nodes/ServiceNow/ConfigurationItemsDescription.ts
+++ b/packages/nodes-base/nodes/ServiceNow/ConfigurationItemsDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const configurationItemsOperations = [
+export const configurationItemsOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const configurationItemsOperations = [
],
default: 'getAll',
},
-] as INodeProperties[];
+];
-export const configurationItemsFields = [
+export const configurationItemsFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* configurationItems:getAll */
@@ -134,4 +134,4 @@ export const configurationItemsFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ServiceNow/DepartmentDescription.ts b/packages/nodes-base/nodes/ServiceNow/DepartmentDescription.ts
index 928f568db8..28c3d93090 100644
--- a/packages/nodes-base/nodes/ServiceNow/DepartmentDescription.ts
+++ b/packages/nodes-base/nodes/ServiceNow/DepartmentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const departmentOperations = [
+export const departmentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const departmentOperations = [
],
default: 'getAll',
},
-] as INodeProperties[];
+];
-export const departmentFields = [
+export const departmentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* department:getAll */
@@ -134,4 +134,4 @@ export const departmentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ServiceNow/DictionaryDescription.ts b/packages/nodes-base/nodes/ServiceNow/DictionaryDescription.ts
index 84fe64dfb2..ba1152b31c 100644
--- a/packages/nodes-base/nodes/ServiceNow/DictionaryDescription.ts
+++ b/packages/nodes-base/nodes/ServiceNow/DictionaryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const dictionaryOperations = [
+export const dictionaryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const dictionaryOperations = [
],
default: 'getAll',
},
-] as INodeProperties[];
+];
-export const dictionaryFields = [
+export const dictionaryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* dictionary:getAll */
@@ -134,4 +134,4 @@ export const dictionaryFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ServiceNow/IncidentDescription.ts b/packages/nodes-base/nodes/ServiceNow/IncidentDescription.ts
index 5d5ce44656..ba06f0d45e 100644
--- a/packages/nodes-base/nodes/ServiceNow/IncidentDescription.ts
+++ b/packages/nodes-base/nodes/ServiceNow/IncidentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const incidentOperations = [
+export const incidentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -38,9 +38,9 @@ export const incidentOperations = [
],
default: 'get',
},
-] as INodeProperties[];
+];
-export const incidentFields = [
+export const incidentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* incident:create */
/* -------------------------------------------------------------------------- */
@@ -670,4 +670,4 @@ export const incidentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ServiceNow/TableRecordDescription.ts b/packages/nodes-base/nodes/ServiceNow/TableRecordDescription.ts
index f5f2074530..9c60fbc511 100644
--- a/packages/nodes-base/nodes/ServiceNow/TableRecordDescription.ts
+++ b/packages/nodes-base/nodes/ServiceNow/TableRecordDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const tableRecordOperations = [
+export const tableRecordOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -38,9 +38,9 @@ export const tableRecordOperations = [
],
default: 'get',
},
-] as INodeProperties[];
+];
-export const tableRecordFields = [
+export const tableRecordFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* tableRecord:create */
/* -------------------------------------------------------------------------- */
@@ -552,4 +552,4 @@ export const tableRecordFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ServiceNow/UserDescription.ts b/packages/nodes-base/nodes/ServiceNow/UserDescription.ts
index 494a312957..ca76b3c4b4 100644
--- a/packages/nodes-base/nodes/ServiceNow/UserDescription.ts
+++ b/packages/nodes-base/nodes/ServiceNow/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -38,9 +38,9 @@ export const userOperations = [
],
default: 'get',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:create */
/* -------------------------------------------------------------------------- */
@@ -729,4 +729,4 @@ export const userFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ServiceNow/UserGroupDescription.ts b/packages/nodes-base/nodes/ServiceNow/UserGroupDescription.ts
index d98c3a74ff..271e7ea76d 100644
--- a/packages/nodes-base/nodes/ServiceNow/UserGroupDescription.ts
+++ b/packages/nodes-base/nodes/ServiceNow/UserGroupDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userGroupOperations = [
+export const userGroupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const userGroupOperations = [
],
default: 'getAll',
},
-] as INodeProperties[];
+];
-export const userGroupFields = [
+export const userGroupFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* userGroup:getAll */
@@ -134,4 +134,4 @@ export const userGroupFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/ServiceNow/UserRoleDescription.ts b/packages/nodes-base/nodes/ServiceNow/UserRoleDescription.ts
index f8cde5ca44..59bb84f4fa 100644
--- a/packages/nodes-base/nodes/ServiceNow/UserRoleDescription.ts
+++ b/packages/nodes-base/nodes/ServiceNow/UserRoleDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userRoleOperations = [
+export const userRoleOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const userRoleOperations = [
],
default: 'getAll',
},
-] as INodeProperties[];
+];
-export const userRoleFields = [
+export const userRoleFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* userRole:getAll */
@@ -134,4 +134,4 @@ export const userRoleFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Shopify/OrderDescription.ts b/packages/nodes-base/nodes/Shopify/OrderDescription.ts
index eb2d9f8dd8..eaf1549c92 100644
--- a/packages/nodes-base/nodes/Shopify/OrderDescription.ts
+++ b/packages/nodes-base/nodes/Shopify/OrderDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const orderOperations = [
+export const orderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const orderOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const orderFields = [
+export const orderFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* order:create */
@@ -949,4 +949,4 @@ export const orderFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Shopify/ProductDescription.ts b/packages/nodes-base/nodes/Shopify/ProductDescription.ts
index 5cf7b95238..ed56cddbeb 100644
--- a/packages/nodes-base/nodes/Shopify/ProductDescription.ts
+++ b/packages/nodes-base/nodes/Shopify/ProductDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const productOperations = [
+export const productOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const productOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const productFields = [
+export const productFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* product:create/update */
@@ -782,4 +782,4 @@ export const productFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Slack/ChannelDescription.ts b/packages/nodes-base/nodes/Slack/ChannelDescription.ts
index ba49482675..5d4a5e6dd6 100644
--- a/packages/nodes-base/nodes/Slack/ChannelDescription.ts
+++ b/packages/nodes-base/nodes/Slack/ChannelDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const channelOperations = [
+export const channelOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -104,9 +104,9 @@ export const channelOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const channelFields = [
+export const channelFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* channel:archive */
@@ -1002,4 +1002,4 @@ export const channelFields = [
required: true,
description: 'The ID of the channel to unarchive.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Slack/FileDescription.ts b/packages/nodes-base/nodes/Slack/FileDescription.ts
index 2ef166a694..44caf06b1b 100644
--- a/packages/nodes-base/nodes/Slack/FileDescription.ts
+++ b/packages/nodes-base/nodes/Slack/FileDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const fileOperations = [
+export const fileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -32,9 +32,9 @@ export const fileOperations = [
default: 'upload',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const fileFields = [
+export const fileFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* file:upload */
@@ -321,4 +321,4 @@ export const fileFields = [
},
default: '',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Slack/MessageDescription.ts b/packages/nodes-base/nodes/Slack/MessageDescription.ts
index 8b985474fc..f946a1f795 100644
--- a/packages/nodes-base/nodes/Slack/MessageDescription.ts
+++ b/packages/nodes-base/nodes/Slack/MessageDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const messageOperations = [
+export const messageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const messageOperations = [
default: 'post',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const messageFields = [
+export const messageFields: INodeProperties[] = [
/* ----------------------------------------------------------------------- */
/* message:getPermalink
@@ -1711,4 +1711,4 @@ export const messageFields = [
},
description: `Timestamp of the message to be deleted.`,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Slack/ReactionDescription.ts b/packages/nodes-base/nodes/Slack/ReactionDescription.ts
index 0e41dc9282..9ee515fb55 100644
--- a/packages/nodes-base/nodes/Slack/ReactionDescription.ts
+++ b/packages/nodes-base/nodes/Slack/ReactionDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const reactionOperations = [
+export const reactionOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -32,9 +32,9 @@ export const reactionOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const reactionFields = [
+export const reactionFields: INodeProperties[] = [
{
displayName: 'Channel',
name: 'channelId',
@@ -98,4 +98,4 @@ export const reactionFields = [
},
description: `Timestamp of the message.`,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Slack/StarDescription.ts b/packages/nodes-base/nodes/Slack/StarDescription.ts
index 66d95c127c..9dce692568 100644
--- a/packages/nodes-base/nodes/Slack/StarDescription.ts
+++ b/packages/nodes-base/nodes/Slack/StarDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const starOperations = [
+export const starOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -32,9 +32,9 @@ export const starOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const starFields = [
+export const starFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* star:add */
@@ -190,4 +190,4 @@ export const starFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Slack/UserDescription.ts b/packages/nodes-base/nodes/Slack/UserDescription.ts
index 7505a3b8d7..43c36920c4 100644
--- a/packages/nodes-base/nodes/Slack/UserDescription.ts
+++ b/packages/nodes-base/nodes/Slack/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const userOperations = [
default: 'info',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:info */
@@ -82,4 +82,4 @@ export const userFields = [
required: true,
description: 'The ID of the user to get the online status of.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Slack/UserGroupDescription.ts b/packages/nodes-base/nodes/Slack/UserGroupDescription.ts
index f352e6af23..87a707405d 100644
--- a/packages/nodes-base/nodes/Slack/UserGroupDescription.ts
+++ b/packages/nodes-base/nodes/Slack/UserGroupDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userGroupOperations = [
+export const userGroupOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const userGroupOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userGroupFields = [
+export const userGroupFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* userGroup:create */
@@ -375,4 +375,4 @@ export const userGroupFields = [
},
],
},
-] as INodeProperties[];
\ No newline at end of file
+];
\ No newline at end of file
diff --git a/packages/nodes-base/nodes/Slack/UserProfileDescription.ts b/packages/nodes-base/nodes/Slack/UserProfileDescription.ts
index 9bf9d103ef..30a170c452 100644
--- a/packages/nodes-base/nodes/Slack/UserProfileDescription.ts
+++ b/packages/nodes-base/nodes/Slack/UserProfileDescription.ts
@@ -3,7 +3,7 @@ import {
} from 'n8n-workflow';
import { text } from 'express';
-export const userProfileOperations = [
+export const userProfileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -30,9 +30,9 @@ export const userProfileOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userProfileFields = [
+export const userProfileFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* userProfile:update */
@@ -181,4 +181,4 @@ export const userProfileFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Spontit/PushDescription.ts b/packages/nodes-base/nodes/Spontit/PushDescription.ts
index ebceb06eb6..140ac0e11f 100644
--- a/packages/nodes-base/nodes/Spontit/PushDescription.ts
+++ b/packages/nodes-base/nodes/Spontit/PushDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const pushOperations = [
+export const pushOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const pushOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const pushFields = [
+export const pushFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* push:create */
/* -------------------------------------------------------------------------- */
@@ -152,4 +152,4 @@ export const pushFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Storyblok/StoryContentDescription.ts b/packages/nodes-base/nodes/Storyblok/StoryContentDescription.ts
index 48b78e9d54..e3e2615fa5 100644
--- a/packages/nodes-base/nodes/Storyblok/StoryContentDescription.ts
+++ b/packages/nodes-base/nodes/Storyblok/StoryContentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const storyContentOperations = [
+export const storyContentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -32,9 +32,9 @@ export const storyContentOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const storyContentFields = [
+export const storyContentFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* story:get */
@@ -140,4 +140,4 @@ export const storyContentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Storyblok/StoryManagementDescription.ts b/packages/nodes-base/nodes/Storyblok/StoryManagementDescription.ts
index 9e0acb49c3..4681e4cbef 100644
--- a/packages/nodes-base/nodes/Storyblok/StoryManagementDescription.ts
+++ b/packages/nodes-base/nodes/Storyblok/StoryManagementDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const storyManagementOperations = [
+export const storyManagementOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -52,9 +52,9 @@ export const storyManagementOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const storyManagementFields = [
+export const storyManagementFields: INodeProperties[] = [
// /* -------------------------------------------------------------------------- */
// /* story:create */
@@ -644,4 +644,4 @@ export const storyManagementFields = [
},
description: 'Numeric ID of the story.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Strapi/EntryDescription.ts b/packages/nodes-base/nodes/Strapi/EntryDescription.ts
index 8050e6b94b..d2c7a4850a 100644
--- a/packages/nodes-base/nodes/Strapi/EntryDescription.ts
+++ b/packages/nodes-base/nodes/Strapi/EntryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const entryOperations = [
+export const entryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const entryOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const entryFields = [
+export const entryFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* entry:create */
/* -------------------------------------------------------------------------- */
@@ -345,4 +345,4 @@ export const entryFields = [
placeholder: 'id,name,description',
description: 'Comma separated list of the properties which should used as columns for the new rows.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Strava/ActivityDescription.ts b/packages/nodes-base/nodes/Strava/ActivityDescription.ts
index 34b57945ff..a1e4875300 100644
--- a/packages/nodes-base/nodes/Strava/ActivityDescription.ts
+++ b/packages/nodes-base/nodes/Strava/ActivityDescription.ts
@@ -3,7 +3,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const activityOperations = [
+export const activityOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -60,9 +60,9 @@ export const activityOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const activityFields = [
+export const activityFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* activity:create */
@@ -107,6 +107,7 @@ export const activityFields = [
displayName: 'Start Date',
name: 'startDate',
type: 'dateTime',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -413,4 +414,4 @@ export const activityFields = [
default: 50,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Stripe/descriptions/BalanceDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/BalanceDescription.ts
index 34dc2d55cb..5d4159620e 100644
--- a/packages/nodes-base/nodes/Stripe/descriptions/BalanceDescription.ts
+++ b/packages/nodes-base/nodes/Stripe/descriptions/BalanceDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const balanceOperations = [
+export const balanceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,4 +24,4 @@ export const balanceOperations = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Stripe/descriptions/ChargeDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/ChargeDescription.ts
index 060d25ad50..61341ac681 100644
--- a/packages/nodes-base/nodes/Stripe/descriptions/ChargeDescription.ts
+++ b/packages/nodes-base/nodes/Stripe/descriptions/ChargeDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const chargeOperations = [
+export const chargeOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const chargeOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const chargeFields = [
+export const chargeFields: INodeProperties[] = [
// ----------------------------------
// charge: create
// ----------------------------------
@@ -388,6 +388,7 @@ export const chargeFields = [
displayName: 'Metadata',
name: 'metadata',
type: 'fixedCollection',
+ default: {},
placeholder: 'Add Metadata Item',
description: 'Set of key-value pairs to attach to the charge to update',
typeOptions: {
@@ -425,6 +426,7 @@ export const chargeFields = [
displayName: 'Shipping',
name: 'shipping',
type: 'fixedCollection',
+ default: {},
description: 'Shipping information for the charge',
placeholder: 'Add Field',
typeOptions: {
@@ -506,4 +508,4 @@ export const chargeFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Stripe/descriptions/CouponDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/CouponDescription.ts
index cf5a2d7c03..614022f958 100644
--- a/packages/nodes-base/nodes/Stripe/descriptions/CouponDescription.ts
+++ b/packages/nodes-base/nodes/Stripe/descriptions/CouponDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const couponOperations = [
+export const couponOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const couponOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const couponFields = [
+export const couponFields: INodeProperties[] = [
// ----------------------------------
// coupon: create
// ----------------------------------
@@ -210,4 +210,4 @@ export const couponFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Stripe/descriptions/CustomerCardDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/CustomerCardDescription.ts
index 68d4a44980..4583494dfc 100644
--- a/packages/nodes-base/nodes/Stripe/descriptions/CustomerCardDescription.ts
+++ b/packages/nodes-base/nodes/Stripe/descriptions/CustomerCardDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const customerCardOperations = [
+export const customerCardOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const customerCardOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const customerCardFields = [
+export const customerCardFields: INodeProperties[] = [
// ----------------------------------
// customerCard: add
// ----------------------------------
@@ -157,4 +157,4 @@ export const customerCardFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Stripe/descriptions/CustomerDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/CustomerDescription.ts
index beb4398551..ff66fc206b 100644
--- a/packages/nodes-base/nodes/Stripe/descriptions/CustomerDescription.ts
+++ b/packages/nodes-base/nodes/Stripe/descriptions/CustomerDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const customerOperations = [
+export const customerOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const customerOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const customerFields = [
+export const customerFields: INodeProperties[] = [
// ----------------------------------
// customer: create
// ----------------------------------
@@ -199,6 +199,7 @@ export const customerFields = [
displayName: 'Shipping',
name: 'shipping',
type: 'fixedCollection',
+ default: {},
description: 'Shipping information for the customer',
typeOptions: {
multipleValues: true,
@@ -514,6 +515,7 @@ export const customerFields = [
displayName: 'Metadata',
name: 'metadata',
type: 'fixedCollection',
+ default: {},
placeholder: 'Add Metadata Item',
description: 'Set of key-value pairs to attach to the customer to create',
typeOptions: {
@@ -646,4 +648,4 @@ export const customerFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Stripe/descriptions/SourceDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/SourceDescription.ts
index e87e87d146..26b9e96d25 100644
--- a/packages/nodes-base/nodes/Stripe/descriptions/SourceDescription.ts
+++ b/packages/nodes-base/nodes/Stripe/descriptions/SourceDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const sourceOperations = [
+export const sourceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const sourceOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const sourceFields = [
+export const sourceFields: INodeProperties[] = [
// ----------------------------------
// source: create
// ----------------------------------
@@ -243,4 +243,4 @@ export const sourceFields = [
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Stripe/descriptions/TokenDescription.ts b/packages/nodes-base/nodes/Stripe/descriptions/TokenDescription.ts
index ae454bf79c..59ccbd68d5 100644
--- a/packages/nodes-base/nodes/Stripe/descriptions/TokenDescription.ts
+++ b/packages/nodes-base/nodes/Stripe/descriptions/TokenDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const tokenOperations = [
+export const tokenOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const tokenOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const tokenFields = [
+export const tokenFields: INodeProperties[] = [
// ----------------------------------
// token: create
// ----------------------------------
@@ -137,4 +137,4 @@ export const tokenFields = [
default: '',
placeholder: '2022',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Taiga/descriptions/EpicDescription.ts b/packages/nodes-base/nodes/Taiga/descriptions/EpicDescription.ts
index 69ab59ec5c..9eca036deb 100644
--- a/packages/nodes-base/nodes/Taiga/descriptions/EpicDescription.ts
+++ b/packages/nodes-base/nodes/Taiga/descriptions/EpicDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const epicOperations = [
+export const epicOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const epicOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const epicFields = [
+export const epicFields: INodeProperties[] = [
// ----------------------------------------
// epic: create
// ----------------------------------------
@@ -426,4 +426,4 @@ export const epicFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Taiga/descriptions/IssueDescription.ts b/packages/nodes-base/nodes/Taiga/descriptions/IssueDescription.ts
index 697dc9e4e4..02baf90754 100644
--- a/packages/nodes-base/nodes/Taiga/descriptions/IssueDescription.ts
+++ b/packages/nodes-base/nodes/Taiga/descriptions/IssueDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const issueOperations = [
+export const issueOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const issueOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const issueFields = [
+export const issueFields: INodeProperties[] = [
// ----------------------------------------
// issue: create
// ----------------------------------------
@@ -660,4 +660,4 @@ export const issueFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Taiga/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/Taiga/descriptions/TaskDescription.ts
index f2c90d2d32..08072d3359 100644
--- a/packages/nodes-base/nodes/Taiga/descriptions/TaskDescription.ts
+++ b/packages/nodes-base/nodes/Taiga/descriptions/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const taskOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
// ----------------------------------------
// task: create
// ----------------------------------------
@@ -606,4 +606,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Taiga/descriptions/UserStoryDescription.ts b/packages/nodes-base/nodes/Taiga/descriptions/UserStoryDescription.ts
index 9d046a934e..24475befec 100644
--- a/packages/nodes-base/nodes/Taiga/descriptions/UserStoryDescription.ts
+++ b/packages/nodes-base/nodes/Taiga/descriptions/UserStoryDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userStoryOperations = [
+export const userStoryOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const userStoryOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const userStoryFields = [
+export const userStoryFields: INodeProperties[] = [
// ----------------------------------------
// userStory: create
// ----------------------------------------
@@ -618,4 +618,4 @@ export const userStoryFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Tapfiliate/AffiliateDescription.ts b/packages/nodes-base/nodes/Tapfiliate/AffiliateDescription.ts
index 42a9245281..631ea74178 100644
--- a/packages/nodes-base/nodes/Tapfiliate/AffiliateDescription.ts
+++ b/packages/nodes-base/nodes/Tapfiliate/AffiliateDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const affiliateOperations = [
+export const affiliateOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const affiliateOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const affiliateFields = [
+export const affiliateFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* affiliate:create */
/* -------------------------------------------------------------------------- */
@@ -189,6 +189,7 @@ export const affiliateFields = [
name: 'affiliateId',
required: true,
type: 'string',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -210,6 +211,7 @@ export const affiliateFields = [
name: 'affiliateId',
type: 'string',
required: true,
+ default: '',
displayOptions: {
show: {
resource: [
@@ -328,4 +330,4 @@ export const affiliateFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts b/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts
index d65d38794d..37441deb03 100644
--- a/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts
+++ b/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const affiliateMetadataOperations = [
+export const affiliateMetadataOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const affiliateMetadataOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const affiliateMetadataFields = [
+export const affiliateMetadataFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* affiliateMetadata:add */
/* -------------------------------------------------------------------------- */
@@ -45,6 +45,7 @@ export const affiliateMetadataFields = [
name: 'affiliateId',
type: 'string',
required: true,
+ default: '',
displayOptions: {
show: {
resource: [
@@ -109,6 +110,7 @@ export const affiliateMetadataFields = [
name: 'affiliateId',
type: 'string',
required: true,
+ default: '',
displayOptions: {
show: {
resource: [
@@ -147,6 +149,7 @@ export const affiliateMetadataFields = [
name: 'affiliateId',
type: 'string',
required: true,
+ default: '',
displayOptions: {
show: {
resource: [
@@ -193,4 +196,4 @@ export const affiliateMetadataFields = [
default: '',
description: 'Value to set for the metadata key.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Tapfiliate/ProgramAffiliateDescription.ts b/packages/nodes-base/nodes/Tapfiliate/ProgramAffiliateDescription.ts
index b2f6b3d396..ac29852806 100644
--- a/packages/nodes-base/nodes/Tapfiliate/ProgramAffiliateDescription.ts
+++ b/packages/nodes-base/nodes/Tapfiliate/ProgramAffiliateDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const programAffiliateOperations = [
+export const programAffiliateOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const programAffiliateOperations = [
default: 'add',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const programAffiliateFields = [
+export const programAffiliateFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* programAffiliate:add */
/* -------------------------------------------------------------------------- */
@@ -75,6 +75,7 @@ export const programAffiliateFields = [
displayName: 'Affiliate ID',
name: 'affiliateId',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -149,6 +150,7 @@ export const programAffiliateFields = [
displayName: 'Affiliate ID',
name: 'affiliateId',
type: 'string',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -189,6 +191,7 @@ export const programAffiliateFields = [
displayName: 'Affiliate ID',
name: 'affiliateId',
type: 'string',
+ default: '',
displayOptions: {
show: {
resource: [
@@ -231,6 +234,7 @@ export const programAffiliateFields = [
name: 'affiliateId',
type: 'string',
required: true,
+ default: '',
displayOptions: {
show: {
resource: [
@@ -356,4 +360,4 @@ export const programAffiliateFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts
index d6d72e2361..86ebd8631e 100644
--- a/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts
+++ b/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts
@@ -6,7 +6,7 @@ import {
TLP,
} from '../interfaces/AlertInterface';
-export const alertOperations = [
+export const alertOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const alertOperations = [
},
default: 'create',
},
-] as INodeProperties[];
+];
-export const alertFields = [
+export const alertFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -1002,4 +1002,4 @@ export const alertFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts
index 60f7f8f8ca..f6dd1b3a54 100644
--- a/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts
+++ b/packages/nodes-base/nodes/TheHive/descriptions/CaseDescription.ts
@@ -6,7 +6,7 @@ import {
TLP,
} from '../interfaces/AlertInterface';
-export const caseOperations = [
+export const caseOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const caseOperations = [
loadOptionsMethod: 'loadCaseOptions',
},
},
-] as INodeProperties[];
+];
-export const caseFields = [
+export const caseFields: INodeProperties[] = [
{
displayName: 'Return All',
name: 'returnAll',
@@ -929,4 +929,4 @@ export const caseFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/TheHive/descriptions/LogDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/LogDescription.ts
index 7062739ffb..e9cf068237 100644
--- a/packages/nodes-base/nodes/TheHive/descriptions/LogDescription.ts
+++ b/packages/nodes-base/nodes/TheHive/descriptions/LogDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const logOperations = [
+export const logOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const logOperations = [
},
],
},
-] as INodeProperties[];
+];
-export const logFields = [
+export const logFields: INodeProperties[] = [
{
displayName: 'Task ID',
name: 'taskId',
@@ -107,6 +107,7 @@ export const logFields = [
displayName: 'Log ID',
name: 'id',
type: 'string',
+ default: '',
required: true,
displayOptions: {
show: {
@@ -259,4 +260,4 @@ export const logFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts
index 9c2386569e..76d345e031 100644
--- a/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts
+++ b/packages/nodes-base/nodes/TheHive/descriptions/ObservableDescription.ts
@@ -6,7 +6,7 @@ import {
TLP,
} from '../interfaces/AlertInterface';
-export const observableOperations = [
+export const observableOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const observableOperations = [
loadOptionsMethod: 'loadObservableOptions',
},
},
-] as INodeProperties[];
+];
-export const observableFields = [
+export const observableFields: INodeProperties[] = [
{
displayName: 'Case ID',
name: 'caseId',
@@ -674,4 +674,4 @@ export const observableFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts
index bcee27ae02..6c2a20c03a 100644
--- a/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts
+++ b/packages/nodes-base/nodes/TheHive/descriptions/TaskDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const taskOperations = [
+export const taskOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const taskOperations = [
loadOptionsMethod: 'loadTaskOptions',
},
},
-] as INodeProperties[];
+];
-export const taskFields = [
+export const taskFields: INodeProperties[] = [
{
displayName: 'Task ID',
name: 'id',
@@ -465,4 +465,4 @@ export const taskFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/TravisCi/BuildDescription.ts b/packages/nodes-base/nodes/TravisCi/BuildDescription.ts
index 2afd7e5cd6..184bf4ab5e 100644
--- a/packages/nodes-base/nodes/TravisCi/BuildDescription.ts
+++ b/packages/nodes-base/nodes/TravisCi/BuildDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const buildOperations = [
+export const buildOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const buildOperations = [
default: 'cancel',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const buildFields = [
+export const buildFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* build:cancel */
@@ -353,4 +353,4 @@ export const buildFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Trello/AttachmentDescription.ts b/packages/nodes-base/nodes/Trello/AttachmentDescription.ts
index 8be93f6348..d153dff694 100644
--- a/packages/nodes-base/nodes/Trello/AttachmentDescription.ts
+++ b/packages/nodes-base/nodes/Trello/AttachmentDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Trello/BoardDescription.ts b/packages/nodes-base/nodes/Trello/BoardDescription.ts
index 7498a21333..df2402d977 100644
--- a/packages/nodes-base/nodes/Trello/BoardDescription.ts
+++ b/packages/nodes-base/nodes/Trello/BoardDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Trello/CardCommentDescription.ts b/packages/nodes-base/nodes/Trello/CardCommentDescription.ts
index 6c4f38fcca..750d69d647 100644
--- a/packages/nodes-base/nodes/Trello/CardCommentDescription.ts
+++ b/packages/nodes-base/nodes/Trello/CardCommentDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Trello/CardDescription.ts b/packages/nodes-base/nodes/Trello/CardDescription.ts
index 15928370f2..0a998d11a1 100644
--- a/packages/nodes-base/nodes/Trello/CardDescription.ts
+++ b/packages/nodes-base/nodes/Trello/CardDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Trello/ChecklistDescription.ts b/packages/nodes-base/nodes/Trello/ChecklistDescription.ts
index c0e65077af..a57916dbde 100644
--- a/packages/nodes-base/nodes/Trello/ChecklistDescription.ts
+++ b/packages/nodes-base/nodes/Trello/ChecklistDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Trello/LabelDescription.ts b/packages/nodes-base/nodes/Trello/LabelDescription.ts
index fee245ec24..579e22a129 100644
--- a/packages/nodes-base/nodes/Trello/LabelDescription.ts
+++ b/packages/nodes-base/nodes/Trello/LabelDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Trello/ListDescription.ts b/packages/nodes-base/nodes/Trello/ListDescription.ts
index 21bd54f18f..dcad00a987 100644
--- a/packages/nodes-base/nodes/Trello/ListDescription.ts
+++ b/packages/nodes-base/nodes/Trello/ListDescription.ts
@@ -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[];
+];
diff --git a/packages/nodes-base/nodes/Twist/ChannelDescription.ts b/packages/nodes-base/nodes/Twist/ChannelDescription.ts
index fd0e33a3eb..bc7ae34184 100644
--- a/packages/nodes-base/nodes/Twist/ChannelDescription.ts
+++ b/packages/nodes-base/nodes/Twist/ChannelDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const channelOperations = [
+export const channelOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -54,9 +54,9 @@ export const channelOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const channelFields = [
+export const channelFields: INodeProperties[] = [
/*-------------------------------------------------------------------------- */
/* channel:create */
/* ------------------------------------------------------------------------- */
@@ -445,4 +445,4 @@ export const channelFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Twist/CommentDescription.ts b/packages/nodes-base/nodes/Twist/CommentDescription.ts
index 0aa0500d1a..b2b67bd2c6 100644
--- a/packages/nodes-base/nodes/Twist/CommentDescription.ts
+++ b/packages/nodes-base/nodes/Twist/CommentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const commentOperations = [
+export const commentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const commentOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const commentFields = [
+export const commentFields: INodeProperties[] = [
/*-------------------------------------------------------------------------- */
/* comment:create */
/* ------------------------------------------------------------------------- */
@@ -107,6 +107,7 @@ export const commentFields = [
displayName: 'Actions',
name: 'actionsUi',
type: 'fixedCollection',
+ default: {},
placeholder: 'Add Action',
typeOptions: {
multipleValues: true,
@@ -446,6 +447,7 @@ export const commentFields = [
displayName: 'Actions',
name: 'actionsUi',
type: 'fixedCollection',
+ default: {},
placeholder: 'Add Action',
typeOptions: {
multipleValues: true,
@@ -558,4 +560,4 @@ export const commentFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Twist/MessageConversationDescription.ts b/packages/nodes-base/nodes/Twist/MessageConversationDescription.ts
index c08201339e..07896c0646 100644
--- a/packages/nodes-base/nodes/Twist/MessageConversationDescription.ts
+++ b/packages/nodes-base/nodes/Twist/MessageConversationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties
} from 'n8n-workflow';
-export const messageConversationOperations = [
+export const messageConversationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const messageConversationOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const messageConversationFields = [
+export const messageConversationFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* messageConversation:create */
@@ -135,6 +135,7 @@ export const messageConversationFields = [
displayName: 'Actions',
name: 'actionsUi',
type: 'fixedCollection',
+ default: {},
placeholder: 'Add Action',
typeOptions: {
multipleValues: true,
@@ -376,7 +377,7 @@ export const messageConversationFields = [
required: true,
description: 'The ID of the conversation message.',
},
-
+
/* -------------------------------------------------------------------------- */
/* messageConversation:update */
/* -------------------------------------------------------------------------- */
@@ -419,6 +420,7 @@ export const messageConversationFields = [
displayName: 'Actions',
name: 'actionsUi',
type: 'fixedCollection',
+ default: {},
placeholder: 'Add Action',
typeOptions: {
multipleValues: true,
@@ -528,4 +530,4 @@ export const messageConversationFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Twist/ThreadDescription.ts b/packages/nodes-base/nodes/Twist/ThreadDescription.ts
index 4ce8f48a47..87359296e0 100644
--- a/packages/nodes-base/nodes/Twist/ThreadDescription.ts
+++ b/packages/nodes-base/nodes/Twist/ThreadDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const threadOperations = [
+export const threadOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const threadOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const threadFields = [
+export const threadFields: INodeProperties[] = [
/*-------------------------------------------------------------------------- */
/* thread:create */
/* ------------------------------------------------------------------------- */
@@ -125,6 +125,7 @@ export const threadFields = [
displayName: 'Actions',
name: 'actionsUi',
type: 'fixedCollection',
+ default: {},
placeholder: 'Add Action',
typeOptions: {
multipleValues: true,
@@ -445,6 +446,7 @@ export const threadFields = [
displayName: 'Actions',
name: 'actionsUi',
type: 'fixedCollection',
+ default: {},
placeholder: 'Add Action',
typeOptions: {
multipleValues: true,
@@ -564,4 +566,4 @@ export const threadFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Twitter/DirectMessageDescription.ts b/packages/nodes-base/nodes/Twitter/DirectMessageDescription.ts
index 0fb8e15cb1..bdf645a7b9 100644
--- a/packages/nodes-base/nodes/Twitter/DirectMessageDescription.ts
+++ b/packages/nodes-base/nodes/Twitter/DirectMessageDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const directMessageOperations = [
+export const directMessageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const directMessageOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const directMessageFields = [
+export const directMessageFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* directMessage:create */
/* -------------------------------------------------------------------------- */
@@ -95,4 +95,4 @@ export const directMessageFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Twitter/TweetDescription.ts b/packages/nodes-base/nodes/Twitter/TweetDescription.ts
index bd643e92af..1632b40813 100644
--- a/packages/nodes-base/nodes/Twitter/TweetDescription.ts
+++ b/packages/nodes-base/nodes/Twitter/TweetDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const tweetOperations = [
+export const tweetOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const tweetOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const tweetFields = [
+export const tweetFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* tweet:create */
/* -------------------------------------------------------------------------- */
@@ -477,4 +477,4 @@ export const tweetFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/UnleashedSoftware/SalesOrderDescription.ts b/packages/nodes-base/nodes/UnleashedSoftware/SalesOrderDescription.ts
index 2bae450eea..47080b1c19 100644
--- a/packages/nodes-base/nodes/UnleashedSoftware/SalesOrderDescription.ts
+++ b/packages/nodes-base/nodes/UnleashedSoftware/SalesOrderDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const salesOrderOperations = [
+export const salesOrderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -24,9 +24,9 @@ export const salesOrderOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const salesOrderFields = [
+export const salesOrderFields: INodeProperties[] = [
/* ------------------------------------------------------------------------- */
/* salesOrder:getAll */
@@ -164,4 +164,4 @@ export const salesOrderFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/UnleashedSoftware/StockOnHandDescription.ts b/packages/nodes-base/nodes/UnleashedSoftware/StockOnHandDescription.ts
index 858a6e3f45..bc290756ec 100644
--- a/packages/nodes-base/nodes/UnleashedSoftware/StockOnHandDescription.ts
+++ b/packages/nodes-base/nodes/UnleashedSoftware/StockOnHandDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const stockOnHandOperations = [
+export const stockOnHandOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const stockOnHandOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const stockOnHandFields = [
+export const stockOnHandFields: INodeProperties[] = [
/* ------------------------------------------------------------------------- */
/* stockOnHand:get */
@@ -164,4 +164,4 @@ export const stockOnHandFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Uplead/CompanyDesciption.ts b/packages/nodes-base/nodes/Uplead/CompanyDesciption.ts
index 39ca13e01a..51d43d8a1d 100644
--- a/packages/nodes-base/nodes/Uplead/CompanyDesciption.ts
+++ b/packages/nodes-base/nodes/Uplead/CompanyDesciption.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const companyOperations = [
+export const companyOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -21,9 +21,9 @@ export const companyOperations = [
default: 'enrich',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const companyFields = [
+export const companyFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* company:enrich */
@@ -62,4 +62,4 @@ export const companyFields = [
},
description: 'the domain name (e.g – amazon.com)',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Uplead/PersonDescription.ts b/packages/nodes-base/nodes/Uplead/PersonDescription.ts
index 8e65faa64a..5be197493d 100644
--- a/packages/nodes-base/nodes/Uplead/PersonDescription.ts
+++ b/packages/nodes-base/nodes/Uplead/PersonDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const personOperations = [
+export const personOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -21,9 +21,9 @@ export const personOperations = [
default: 'enrich',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const personFields = [
+export const personFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* person:enrich */
@@ -96,4 +96,4 @@ export const personFields = [
},
description: 'The domain name (e.g – salesforce.com)',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/UptimeRobot/AlertContactDescription.ts b/packages/nodes-base/nodes/UptimeRobot/AlertContactDescription.ts
index 430dc2b1bb..802d08e552 100644
--- a/packages/nodes-base/nodes/UptimeRobot/AlertContactDescription.ts
+++ b/packages/nodes-base/nodes/UptimeRobot/AlertContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const alertContactOperations = [
+export const alertContactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const alertContactOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const alertContactFields = [
+export const alertContactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* alertContact:create */
/* -------------------------------------------------------------------------- */
@@ -297,4 +297,4 @@ export const alertContactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/UptimeRobot/MaintenanceWindowDescription.ts b/packages/nodes-base/nodes/UptimeRobot/MaintenanceWindowDescription.ts
index e99f474069..1a1a5e9d19 100644
--- a/packages/nodes-base/nodes/UptimeRobot/MaintenanceWindowDescription.ts
+++ b/packages/nodes-base/nodes/UptimeRobot/MaintenanceWindowDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const maintenanceWindowOperations = [
+export const maintenanceWindowOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -45,9 +45,9 @@ export const maintenanceWindowOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const maintenanceWindowFields = [
+export const maintenanceWindowFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* maintenanceWindow:create */
/* -------------------------------------------------------------------------- */
@@ -465,4 +465,4 @@ export const maintenanceWindowFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/UptimeRobot/MonitorDescription.ts b/packages/nodes-base/nodes/UptimeRobot/MonitorDescription.ts
index fd71e74948..2d2ec294a4 100644
--- a/packages/nodes-base/nodes/UptimeRobot/MonitorDescription.ts
+++ b/packages/nodes-base/nodes/UptimeRobot/MonitorDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const monitorOperations = [
+export const monitorOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const monitorOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const monitorFields = [
+export const monitorFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* monitor:create */
/* -------------------------------------------------------------------------- */
@@ -509,4 +509,4 @@ export const monitorFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/UptimeRobot/PublicStatusPageDescription.ts b/packages/nodes-base/nodes/UptimeRobot/PublicStatusPageDescription.ts
index 56b0a4fc6f..24eced7299 100644
--- a/packages/nodes-base/nodes/UptimeRobot/PublicStatusPageDescription.ts
+++ b/packages/nodes-base/nodes/UptimeRobot/PublicStatusPageDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const publicStatusPageOperations = [
+export const publicStatusPageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const publicStatusPageOperations = [
default: 'getAll',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const publicStatusPageFields = [
+export const publicStatusPageFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* publicStatusPage:create */
/* -------------------------------------------------------------------------- */
@@ -335,4 +335,4 @@ export const publicStatusPageFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Vero/EventDescripion.ts b/packages/nodes-base/nodes/Vero/EventDescripion.ts
index 54c0d0e32e..5ba1f5d136 100644
--- a/packages/nodes-base/nodes/Vero/EventDescripion.ts
+++ b/packages/nodes-base/nodes/Vero/EventDescripion.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const eventOperations = [
+export const eventOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -22,9 +22,9 @@ export const eventOperations = [
default: 'track',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const eventFields = [
+export const eventFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* event:track */
@@ -241,4 +241,4 @@ export const eventFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Vero/UserDescription.ts b/packages/nodes-base/nodes/Vero/UserDescription.ts
index cd33f2a05b..4fee2cfaf9 100644
--- a/packages/nodes-base/nodes/Vero/UserDescription.ts
+++ b/packages/nodes-base/nodes/Vero/UserDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -52,9 +52,9 @@ export const userOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:create */
@@ -372,4 +372,4 @@ export const userFields = [
},
description: 'Tags to remove separated by ","',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Webflow/ItemDescription.ts b/packages/nodes-base/nodes/Webflow/ItemDescription.ts
index fcea401341..c301bec0b9 100644
--- a/packages/nodes-base/nodes/Webflow/ItemDescription.ts
+++ b/packages/nodes-base/nodes/Webflow/ItemDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const itemOperations = [
+export const itemOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const itemOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const itemFields = [
+export const itemFields: INodeProperties[] = [
// ----------------------------------
// item: create
// ----------------------------------
@@ -447,4 +447,4 @@ export const itemFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wekan/BoardDescription.ts b/packages/nodes-base/nodes/Wekan/BoardDescription.ts
index 41b7dec9be..0d7c8adadf 100644
--- a/packages/nodes-base/nodes/Wekan/BoardDescription.ts
+++ b/packages/nodes-base/nodes/Wekan/BoardDescription.ts
@@ -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
@@ -304,4 +304,4 @@ export const boardFields = [
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts b/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts
index 955690f07b..7dfe92ea2d 100644
--- a/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts
+++ b/packages/nodes-base/nodes/Wekan/CardCommentDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const cardCommentOperations = [
+export const cardCommentOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const cardCommentOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const cardCommentFields = [
+export const cardCommentFields: INodeProperties[] = [
// ----------------------------------
// cardComment:create
// ----------------------------------
@@ -457,4 +457,4 @@ export const cardCommentFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wekan/CardDescription.ts b/packages/nodes-base/nodes/Wekan/CardDescription.ts
index bc0ada4aa6..4189021407 100644
--- a/packages/nodes-base/nodes/Wekan/CardDescription.ts
+++ b/packages/nodes-base/nodes/Wekan/CardDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const cardOperations = [
+export const cardOperations: INodeProperties[] = [
// ----------------------------------
// card
// ----------------------------------
@@ -47,9 +47,9 @@ export const cardOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const cardFields = [
+export const cardFields: INodeProperties[] = [
// ----------------------------------
// card:create
// ----------------------------------
@@ -841,4 +841,4 @@ export const cardFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts b/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts
index 390cdeefa9..69b009bb1f 100644
--- a/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts
+++ b/packages/nodes-base/nodes/Wekan/ChecklistDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const checklistOperations = [
+export const checklistOperations: INodeProperties[] = [
// ----------------------------------
// checklist
// ----------------------------------
@@ -43,9 +43,9 @@ export const checklistOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const checklistFields = [
+export const checklistFields: INodeProperties[] = [
// ----------------------------------
// checklist:create
// ----------------------------------
@@ -471,4 +471,4 @@ export const checklistFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts b/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts
index d9170c1ae2..4bfacf18c0 100644
--- a/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts
+++ b/packages/nodes-base/nodes/Wekan/ChecklistItemDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const checklistItemOperations = [
+export const checklistItemOperations: INodeProperties[] = [
// ----------------------------------
// checklistItem
// ----------------------------------
@@ -38,9 +38,9 @@ export const checklistItemOperations = [
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const checklistItemFields = [
+export const checklistItemFields: INodeProperties[] = [
// ----------------------------------
// checklistItem:delete
// ----------------------------------
@@ -442,4 +442,4 @@ export const checklistItemFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wekan/ListDescription.ts b/packages/nodes-base/nodes/Wekan/ListDescription.ts
index aa28f3661b..bd013efc14 100644
--- a/packages/nodes-base/nodes/Wekan/ListDescription.ts
+++ b/packages/nodes-base/nodes/Wekan/ListDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const listOperations = [
+export const listOperations: INodeProperties[] = [
// ----------------------------------
// list
// ----------------------------------
@@ -42,9 +42,9 @@ export const listOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const listFields = [
+export const listFields: INodeProperties[] = [
// ----------------------------------
// list:create
// ----------------------------------
@@ -247,4 +247,4 @@ export const listFields = [
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wise/descriptions/AccountDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/AccountDescription.ts
index 5b7fd3d5fa..3e27b964e5 100644
--- a/packages/nodes-base/nodes/Wise/descriptions/AccountDescription.ts
+++ b/packages/nodes-base/nodes/Wise/descriptions/AccountDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const accountOperations = [
+export const accountOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const accountOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const accountFields = [
+export const accountFields: INodeProperties[] = [
// ----------------------------------
// account: getBalances
// ----------------------------------
@@ -192,4 +192,4 @@ export const accountFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wise/descriptions/ExchangeRateDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/ExchangeRateDescription.ts
index bee99e6fe4..b56cbb2522 100644
--- a/packages/nodes-base/nodes/Wise/descriptions/ExchangeRateDescription.ts
+++ b/packages/nodes-base/nodes/Wise/descriptions/ExchangeRateDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const exchangeRateOperations = [
+export const exchangeRateOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const exchangeRateOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const exchangeRateFields = [
+export const exchangeRateFields: INodeProperties[] = [
// ----------------------------------
// exchangeRate: get
// ----------------------------------
@@ -137,4 +137,4 @@ export const exchangeRateFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wise/descriptions/ProfileDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/ProfileDescription.ts
index dfa8e88c53..10648d3f05 100644
--- a/packages/nodes-base/nodes/Wise/descriptions/ProfileDescription.ts
+++ b/packages/nodes-base/nodes/Wise/descriptions/ProfileDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const profileOperations = [
+export const profileOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const profileOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const profileFields = [
+export const profileFields: INodeProperties[] = [
// ----------------------------------
// profile: get
// ----------------------------------
@@ -54,4 +54,4 @@ export const profileFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wise/descriptions/QuoteDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/QuoteDescription.ts
index 6cb5446d87..66b1eaf3e8 100644
--- a/packages/nodes-base/nodes/Wise/descriptions/QuoteDescription.ts
+++ b/packages/nodes-base/nodes/Wise/descriptions/QuoteDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const quoteOperations = [
+export const quoteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -27,9 +27,9 @@ export const quoteOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const quoteFields = [
+export const quoteFields: INodeProperties[] = [
// ----------------------------------
// quote: create
// ----------------------------------
@@ -178,4 +178,4 @@ export const quoteFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wise/descriptions/RecipientDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/RecipientDescription.ts
index 9479a8808b..977e38bd1a 100644
--- a/packages/nodes-base/nodes/Wise/descriptions/RecipientDescription.ts
+++ b/packages/nodes-base/nodes/Wise/descriptions/RecipientDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const recipientOperations = [
+export const recipientOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -23,9 +23,9 @@ export const recipientOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const recipientFields = [
+export const recipientFields: INodeProperties[] = [
// ----------------------------------
// recipient: getAll
// ----------------------------------
@@ -70,4 +70,4 @@ export const recipientFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wise/descriptions/TransferDescription.ts b/packages/nodes-base/nodes/Wise/descriptions/TransferDescription.ts
index 6c191765e3..09530c3e8b 100644
--- a/packages/nodes-base/nodes/Wise/descriptions/TransferDescription.ts
+++ b/packages/nodes-base/nodes/Wise/descriptions/TransferDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const transferOperations = [
+export const transferOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const transferOperations = [
},
},
},
-] as INodeProperties[];
+];
-export const transferFields = [
+export const transferFields: INodeProperties[] = [
// ----------------------------------
// transfer: create
// ----------------------------------
@@ -457,4 +457,4 @@ export const transferFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts b/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts
index 65c8dcd242..f1e8f9ba40 100644
--- a/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts
+++ b/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const orderOperations = [
+export const orderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const orderOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const orderFields = [
+export const orderFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* order:create */
@@ -1688,4 +1688,4 @@ export const orderFields = [
default: '',
description: 'order ID.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts b/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts
index d486b978d1..9eb30f5905 100644
--- a/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts
+++ b/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const productOperations = [
+export const productOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const productOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const productFields = [
+export const productFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* product:create */
@@ -1432,4 +1432,4 @@ export const productFields = [
default: '',
description: 'Product ID.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/WooCommerce/descriptions/CustomerDescription.ts b/packages/nodes-base/nodes/WooCommerce/descriptions/CustomerDescription.ts
index 4a52553fea..5393e0322a 100644
--- a/packages/nodes-base/nodes/WooCommerce/descriptions/CustomerDescription.ts
+++ b/packages/nodes-base/nodes/WooCommerce/descriptions/CustomerDescription.ts
@@ -7,7 +7,7 @@ import {
customerUpdateFields,
} from './shared';
-export const customerOperations = [
+export const customerOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -48,9 +48,9 @@ export const customerOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const customerFields = [
+export const customerFields: INodeProperties[] = [
// ----------------------------------------
// customer: create
// ----------------------------------------
@@ -251,4 +251,4 @@ export const customerFields = [
},
},
customerUpdateFields,
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/WooCommerce/descriptions/shared.ts b/packages/nodes-base/nodes/WooCommerce/descriptions/shared.ts
index 7800b8554a..d6b64bcf42 100644
--- a/packages/nodes-base/nodes/WooCommerce/descriptions/shared.ts
+++ b/packages/nodes-base/nodes/WooCommerce/descriptions/shared.ts
@@ -1,4 +1,8 @@
-const customerAddressOptions = [
+import {
+ INodeProperties,
+} from 'n8n-workflow';
+
+const customerAddressOptions: INodeProperties[] = [
{
displayName: 'First Name',
name: 'first_name',
@@ -67,7 +71,7 @@ const customerAddressOptions = [
},
];
-const customerUpdateOptions = [
+const customerUpdateOptions: INodeProperties[] = [
{
displayName: 'Billing Address',
name: 'billing',
@@ -144,7 +148,7 @@ const customerUpdateOptions = [
},
];
-const customerCreateOptions = [
+const customerCreateOptions: INodeProperties[] = [
...customerUpdateOptions,
{
displayName: 'Username',
@@ -154,7 +158,7 @@ const customerCreateOptions = [
},
];
-export const customerCreateFields = {
+export const customerCreateFields: INodeProperties = {
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
@@ -173,7 +177,7 @@ export const customerCreateFields = {
options: customerCreateOptions,
};
-export const customerUpdateFields = {
+export const customerUpdateFields: INodeProperties = {
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
diff --git a/packages/nodes-base/nodes/Wordpress/PostDescription.ts b/packages/nodes-base/nodes/Wordpress/PostDescription.ts
index 3e2f26154f..68583fe4e3 100644
--- a/packages/nodes-base/nodes/Wordpress/PostDescription.ts
+++ b/packages/nodes-base/nodes/Wordpress/PostDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const postOperations = [
+export const postOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const postOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const postFields = [
+export const postFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* post:create */
@@ -823,4 +823,4 @@ export const postFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Wordpress/UserDescription.ts b/packages/nodes-base/nodes/Wordpress/UserDescription.ts
index c9d64643d9..0177ccb205 100644
--- a/packages/nodes-base/nodes/Wordpress/UserDescription.ts
+++ b/packages/nodes-base/nodes/Wordpress/UserDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const userOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:create */
@@ -564,4 +564,4 @@ export const userFields = [
},
description: `Reassign the deleted user's posts and links to this user ID.`,
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Xero/ContactDescription.ts b/packages/nodes-base/nodes/Xero/ContactDescription.ts
index 2023729442..2ce00ec5ab 100644
--- a/packages/nodes-base/nodes/Xero/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Xero/ContactDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const contactOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* contact:create */
@@ -835,4 +835,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Xero/InvoiceDescription.ts b/packages/nodes-base/nodes/Xero/InvoiceDescription.ts
index b2505da4f1..1d73c5f3eb 100644
--- a/packages/nodes-base/nodes/Xero/InvoiceDescription.ts
+++ b/packages/nodes-base/nodes/Xero/InvoiceDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const invoiceOperations = [
+export const invoiceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -39,9 +39,9 @@ export const invoiceOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const invoiceFields = [
+export const invoiceFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* invoice:create */
@@ -980,4 +980,4 @@ export const invoiceFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Yourls/UrlDescription.ts b/packages/nodes-base/nodes/Yourls/UrlDescription.ts
index ccfdaef0ac..9778b163cf 100644
--- a/packages/nodes-base/nodes/Yourls/UrlDescription.ts
+++ b/packages/nodes-base/nodes/Yourls/UrlDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const urlOperations = [
+export const urlOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -34,9 +34,9 @@ export const urlOperations = [
default: 'shorten',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const urlFields = [
+export const urlFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* url:shorten */
@@ -134,4 +134,4 @@ export const urlFields = [
default: '',
description: 'The short URL for which to get stats.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts b/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts
index 7b11fac701..46498a084a 100644
--- a/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts
+++ b/packages/nodes-base/nodes/Zendesk/ConditionDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const conditionFields = [
+export const conditionFields: INodeProperties[] = [
{
displayName: 'Resource',
name: 'resource',
@@ -333,4 +333,4 @@ export const conditionFields = [
},
default: '',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zendesk/OrganizationDescription.ts b/packages/nodes-base/nodes/Zendesk/OrganizationDescription.ts
index 023ff678a9..df0a2ee876 100644
--- a/packages/nodes-base/nodes/Zendesk/OrganizationDescription.ts
+++ b/packages/nodes-base/nodes/Zendesk/OrganizationDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const organizationOperations = [
+export const organizationOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -54,9 +54,9 @@ export const organizationOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const organizationFields = [
+export const organizationFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* organization:create */
@@ -375,4 +375,4 @@ export const organizationFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zendesk/TicketDescription.ts b/packages/nodes-base/nodes/Zendesk/TicketDescription.ts
index 6008351dc8..032889d8e7 100644
--- a/packages/nodes-base/nodes/Zendesk/TicketDescription.ts
+++ b/packages/nodes-base/nodes/Zendesk/TicketDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const ticketOperations = [
+export const ticketOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -49,9 +49,9 @@ export const ticketOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const ticketFields = [
+export const ticketFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* ticket:create */
@@ -820,4 +820,4 @@ export const ticketFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zendesk/TicketFieldDescription.ts b/packages/nodes-base/nodes/Zendesk/TicketFieldDescription.ts
index 9ba754eef4..34dc418d55 100644
--- a/packages/nodes-base/nodes/Zendesk/TicketFieldDescription.ts
+++ b/packages/nodes-base/nodes/Zendesk/TicketFieldDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const ticketFieldOperations = [
+export const ticketFieldOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -29,9 +29,9 @@ export const ticketFieldOperations = [
default: 'get',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const ticketFieldFields = [
+export const ticketFieldFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* ticketField:get */
@@ -99,4 +99,4 @@ export const ticketFieldFields = [
default: 100,
description: 'How many results to return.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zendesk/UserDescription.ts b/packages/nodes-base/nodes/Zendesk/UserDescription.ts
index f181e5c1b0..3c55fe2135 100644
--- a/packages/nodes-base/nodes/Zendesk/UserDescription.ts
+++ b/packages/nodes-base/nodes/Zendesk/UserDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -58,9 +58,9 @@ export const userOperations = [
],
default: 'create',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:create */
@@ -823,4 +823,4 @@ export const userFields = [
},
},
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/AccountDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/AccountDescription.ts
index 6351d49f4d..52498a2461 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/AccountDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/AccountDescription.ts
@@ -10,7 +10,7 @@ import {
shippingAddress,
} from './SharedFields';
-export const accountOperations = [
+export const accountOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -57,9 +57,9 @@ export const accountOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const accountFields = [
+export const accountFields: INodeProperties[] = [
// ----------------------------------------
// account: create
// ----------------------------------------
@@ -412,4 +412,4 @@ export const accountFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/ContactDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/ContactDescription.ts
index fc58c8f6f4..40f18f6685 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/ContactDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/ContactDescription.ts
@@ -10,7 +10,7 @@ import {
otherAddress,
} from './SharedFields';
-export const contactOperations = [
+export const contactOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -57,9 +57,9 @@ export const contactOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const contactFields = [
+export const contactFields: INodeProperties[] = [
// ----------------------------------------
// contact: create
// ----------------------------------------
@@ -587,4 +587,4 @@ export const contactFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/DealDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/DealDescription.ts
index 312c9b855b..cc41e9ccf0 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/DealDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/DealDescription.ts
@@ -8,7 +8,7 @@ import {
makeGetAllFields,
} from './SharedFields';
-export const dealOperations = [
+export const dealOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -55,9 +55,9 @@ export const dealOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const dealFields = [
+export const dealFields: INodeProperties[] = [
// ----------------------------------------
// deal: create
// ----------------------------------------
@@ -382,4 +382,4 @@ export const dealFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/InvoiceDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/InvoiceDescription.ts
index 4ede26523f..0d38596cf8 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/InvoiceDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/InvoiceDescription.ts
@@ -11,7 +11,7 @@ import {
shippingAddress,
} from './SharedFields';
-export const invoiceOperations = [
+export const invoiceOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -58,9 +58,9 @@ export const invoiceOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const invoiceFields = [
+export const invoiceFields: INodeProperties[] = [
// ----------------------------------------
// invoice: create
// ----------------------------------------
@@ -460,4 +460,4 @@ export const invoiceFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/LeadDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/LeadDescription.ts
index 1f26dd04e7..4cd2b20d4d 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/LeadDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/LeadDescription.ts
@@ -9,7 +9,7 @@ import {
makeGetAllFields,
} from './SharedFields';
-export const leadOperations = [
+export const leadOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -61,9 +61,9 @@ export const leadOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const leadFields = [
+export const leadFields: INodeProperties[] = [
// ----------------------------------------
// lead: create
// ----------------------------------------
@@ -691,4 +691,4 @@ export const leadFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/ProductDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/ProductDescription.ts
index 19b6f880c6..3862941fdc 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/ProductDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/ProductDescription.ts
@@ -7,7 +7,7 @@ import {
makeGetAllFields,
} from './SharedFields';
-export const productOperations = [
+export const productOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -54,9 +54,9 @@ export const productOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const productFields = [
+export const productFields: INodeProperties[] = [
// ----------------------------------------
// product: create
// ----------------------------------------
@@ -349,4 +349,4 @@ export const productFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/PurchaseOrderDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/PurchaseOrderDescription.ts
index 2ef0b573f8..5acdca56e5 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/PurchaseOrderDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/PurchaseOrderDescription.ts
@@ -11,7 +11,7 @@ import {
shippingAddress,
} from './SharedFields';
-export const purchaseOrderOperations = [
+export const purchaseOrderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -58,9 +58,9 @@ export const purchaseOrderOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const purchaseOrderFields = [
+export const purchaseOrderFields: INodeProperties[] = [
// ----------------------------------------
// purchaseOrder: create
// ----------------------------------------
@@ -587,4 +587,4 @@ export const purchaseOrderFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/QuoteDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/QuoteDescription.ts
index 0ecf64adaf..9e4d92f2ba 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/QuoteDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/QuoteDescription.ts
@@ -11,7 +11,7 @@ import {
shippingAddress,
} from './SharedFields';
-export const quoteOperations = [
+export const quoteOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -58,9 +58,9 @@ export const quoteOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const quoteFields = [
+export const quoteFields: INodeProperties[] = [
// ----------------------------------------
// quote: create
// ----------------------------------------
@@ -456,4 +456,4 @@ export const quoteFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/SalesOrderDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/SalesOrderDescription.ts
index 35547664cf..3ba26f67dd 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/SalesOrderDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/SalesOrderDescription.ts
@@ -11,7 +11,7 @@ import {
shippingAddress,
} from './SharedFields';
-export const salesOrderOperations = [
+export const salesOrderOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -58,9 +58,9 @@ export const salesOrderOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const salesOrderFields = [
+export const salesOrderFields: INodeProperties[] = [
// ----------------------------------------
// salesOrder: create + upsert
// ----------------------------------------
@@ -566,4 +566,4 @@ export const salesOrderFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/SharedFields.ts b/packages/nodes-base/nodes/Zoho/descriptions/SharedFields.ts
index e7030ba28f..64798505e7 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/SharedFields.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/SharedFields.ts
@@ -1,7 +1,10 @@
+import {
+ INodeProperties
+} from 'n8n-workflow';
import { capitalizeInitial } from '../GenericFunctions';
import { CamelCaseResource } from '../types';
-export const billingAddress = {
+export const billingAddress: INodeProperties = {
displayName: 'Billing Address',
name: 'Billing_Address',
type: 'fixedCollection',
@@ -47,7 +50,7 @@ export const billingAddress = {
],
};
-export const shippingAddress = {
+export const shippingAddress: INodeProperties = {
displayName: 'Shipping Address',
name: 'Shipping_Address',
type: 'fixedCollection',
@@ -93,7 +96,7 @@ export const shippingAddress = {
],
};
-export const mailingAddress = {
+export const mailingAddress: INodeProperties = {
displayName: 'Mailing Address',
name: 'Mailing_Address',
type: 'fixedCollection',
@@ -139,7 +142,7 @@ export const mailingAddress = {
],
};
-export const otherAddress = {
+export const otherAddress: INodeProperties = {
displayName: 'Other Address',
name: 'Other_Address',
type: 'fixedCollection',
@@ -179,7 +182,7 @@ export const otherAddress = {
],
};
-export const address = {
+export const address: INodeProperties = {
displayName: 'Address',
name: 'Address',
type: 'fixedCollection',
@@ -245,7 +248,7 @@ export const address = {
// },
// },
-export const productDetailsOptions = [
+export const productDetailsOptions: INodeProperties[] = [
{
displayName: 'List Price',
name: 'list_price',
@@ -311,7 +314,7 @@ export const productDetailsOptions = [
},
];
-export const makeGetAllFields = (resource: CamelCaseResource) => {
+export const makeGetAllFields = (resource: CamelCaseResource): INodeProperties[] => {
const loadOptionsMethod = `get${capitalizeInitial(resource)}Fields`;
return [
@@ -443,7 +446,7 @@ export const makeGetAllFields = (resource: CamelCaseResource) => {
];
};
-export const makeCustomFieldsFixedCollection = (resource: CamelCaseResource) => {
+export const makeCustomFieldsFixedCollection = (resource: CamelCaseResource): INodeProperties => {
const loadOptionsMethod = `getCustom${capitalizeInitial(resource)}Fields`;
return {
diff --git a/packages/nodes-base/nodes/Zoho/descriptions/VendorDescription.ts b/packages/nodes-base/nodes/Zoho/descriptions/VendorDescription.ts
index ff15df5ea7..deb14ef412 100644
--- a/packages/nodes-base/nodes/Zoho/descriptions/VendorDescription.ts
+++ b/packages/nodes-base/nodes/Zoho/descriptions/VendorDescription.ts
@@ -9,7 +9,7 @@ import {
makeGetAllFields,
} from './SharedFields';
-export const vendorOperations = [
+export const vendorOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -56,9 +56,9 @@ export const vendorOperations = [
default: 'create',
description: 'Operation to perform',
},
-] as INodeProperties[];
+];
-export const vendorFields = [
+export const vendorFields: INodeProperties[] = [
// ----------------------------------------
// vendor: create
// ----------------------------------------
@@ -298,4 +298,4 @@ export const vendorFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoom/MeetingDescription.ts b/packages/nodes-base/nodes/Zoom/MeetingDescription.ts
index 294c47efe3..fcc6528b7b 100644
--- a/packages/nodes-base/nodes/Zoom/MeetingDescription.ts
+++ b/packages/nodes-base/nodes/Zoom/MeetingDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const meetingOperations = [
+export const meetingOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const meetingOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const meetingFields = [
+export const meetingFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* meeting:create */
/* -------------------------------------------------------------------------- */
@@ -748,4 +748,4 @@ export const meetingFields = [
},
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts b/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts
index 7419e04ed7..3f889a41e5 100644
--- a/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts
+++ b/packages/nodes-base/nodes/Zoom/MeetingRegistrantDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const meetingRegistrantOperations = [
+export const meetingRegistrantOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -35,9 +35,9 @@ export const meetingRegistrantOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const meetingRegistrantFields = [
+export const meetingRegistrantFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* meetingRegistrant:create */
/* -------------------------------------------------------------------------- */
@@ -440,4 +440,4 @@ export const meetingRegistrantFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zoom/WebinarDescription.ts b/packages/nodes-base/nodes/Zoom/WebinarDescription.ts
index 648fe43c24..5e1213b016 100644
--- a/packages/nodes-base/nodes/Zoom/WebinarDescription.ts
+++ b/packages/nodes-base/nodes/Zoom/WebinarDescription.ts
@@ -2,7 +2,7 @@ import {
INodeProperties,
} from 'n8n-workflow';
-export const webinarOperations = [
+export const webinarOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -44,9 +44,9 @@ export const webinarOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const webinarFields = [
+export const webinarFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* webinar:create */
/* -------------------------------------------------------------------------- */
@@ -662,4 +662,4 @@ export const webinarFields = [
],
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zulip/MessageDescription.ts b/packages/nodes-base/nodes/Zulip/MessageDescription.ts
index 454b51ac1d..9c23bcdd21 100644
--- a/packages/nodes-base/nodes/Zulip/MessageDescription.ts
+++ b/packages/nodes-base/nodes/Zulip/MessageDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const messageOperations = [
+export const messageOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -47,9 +47,9 @@ export const messageOperations = [
default: 'sendPrivate',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const messageFields = [
+export const messageFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* message:sendPrivate */
@@ -125,7 +125,9 @@ export const messageFields = [
name: 'topic',
type: 'options',
typeOptions: {
- loadOptionsDependsOn: 'stream',
+ loadOptionsDependsOn: [
+ 'stream',
+ ],
loadOptionsMethod: 'getTopics',
},
required: true,
@@ -304,4 +306,4 @@ export const messageFields = [
},
description: 'Name of the binary property to which to write the data of the read file.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zulip/StreamDescription.ts b/packages/nodes-base/nodes/Zulip/StreamDescription.ts
index bccf8cf1d3..3ea83a6222 100644
--- a/packages/nodes-base/nodes/Zulip/StreamDescription.ts
+++ b/packages/nodes-base/nodes/Zulip/StreamDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const streamOperations = [
+export const streamOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const streamOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const streamFields = [
+export const streamFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* stream:create */
/* -------------------------------------------------------------------------- */
@@ -493,4 +493,4 @@ export const streamFields = [
description: 'ID of stream to delete.',
},
-] as INodeProperties[];
+];
diff --git a/packages/nodes-base/nodes/Zulip/UserDescription.ts b/packages/nodes-base/nodes/Zulip/UserDescription.ts
index 164432e5b0..0c137dd383 100644
--- a/packages/nodes-base/nodes/Zulip/UserDescription.ts
+++ b/packages/nodes-base/nodes/Zulip/UserDescription.ts
@@ -1,6 +1,6 @@
import { INodeProperties } from 'n8n-workflow';
-export const userOperations = [
+export const userOperations: INodeProperties[] = [
{
displayName: 'Operation',
name: 'operation',
@@ -42,9 +42,9 @@ export const userOperations = [
default: 'create',
description: 'The operation to perform.',
},
-] as INodeProperties[];
+];
-export const userFields = [
+export const userFields: INodeProperties[] = [
/* -------------------------------------------------------------------------- */
/* user:create */
/* -------------------------------------------------------------------------- */
@@ -321,4 +321,4 @@ export const userFields = [
default: '',
description: 'The ID of user to deactivate.',
},
-] as INodeProperties[];
+];
diff --git a/packages/workflow/src/Interfaces.ts b/packages/workflow/src/Interfaces.ts
index aa724cb0df..8a8422b210 100644
--- a/packages/workflow/src/Interfaces.ts
+++ b/packages/workflow/src/Interfaces.ts
@@ -676,7 +676,7 @@ export interface INodeProperties {
}
export interface INodePropertyOptions {
name: string;
- value: string | number;
+ value: string | number | boolean;
description?: string;
}