diff --git a/.eslintrc.js b/.eslintrc.js index eb05202dd7..a4386e0e81 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -381,7 +381,8 @@ module.exports = { "n8n-nodes-base/node-class-description-outputs-wrong": "error", "n8n-nodes-base/node-execute-block-double-assertion-for-items": "error", "n8n-nodes-base/node-param-default-wrong-for-collection": "error", - "n8n-nodes-base/node-param-default-wrong-for-boolean": "error" + "n8n-nodes-base/node-param-default-wrong-for-boolean": "error", + "n8n-nodes-base/node-param-default-wrong-for-fixed-collection": "error", } }, ], diff --git a/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts b/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts index 5ad7166346..9bebbf81ef 100644 --- a/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts +++ b/packages/nodes-base/nodes/ActionNetwork/descriptions/SharedFields.ts @@ -128,7 +128,7 @@ const postalAddressesFields: INodeProperties[] = [ displayName: 'Location', name: 'location', type: 'fixedCollection', - default: '', + default: {}, options: [ { displayName: 'Location Fields', diff --git a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts index 7d421ece17..e7e13f38a8 100644 --- a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts @@ -206,7 +206,7 @@ export const companyFields: INodeProperties[] = [ ], }, }, - default: '', + default: {}, placeholder: 'Add Condition', options: [ { diff --git a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts index ba839988f2..097628cccc 100644 --- a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts @@ -206,7 +206,7 @@ export const contactFields: INodeProperties[] = [ ], }, }, - default: '', + default: {}, placeholder: 'Add Condition', options: [ { diff --git a/packages/nodes-base/nodes/Automizy/ContactDescription.ts b/packages/nodes-base/nodes/Automizy/ContactDescription.ts index 5a46d45928..348435a86a 100644 --- a/packages/nodes-base/nodes/Automizy/ContactDescription.ts +++ b/packages/nodes-base/nodes/Automizy/ContactDescription.ts @@ -110,7 +110,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, @@ -394,7 +394,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Autopilot/ContactDescription.ts b/packages/nodes-base/nodes/Autopilot/ContactDescription.ts index 6617486da2..d4f14af207 100644 --- a/packages/nodes-base/nodes/Autopilot/ContactDescription.ts +++ b/packages/nodes-base/nodes/Autopilot/ContactDescription.ts @@ -91,7 +91,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts b/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts index d64d37b506..20c3f01afd 100644 --- a/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts +++ b/packages/nodes-base/nodes/Aws/DynamoDB/ItemDescription.ts @@ -175,7 +175,7 @@ export const itemFields: INodeProperties[] = [ description: 'Substitution tokens for attribute names in an expression. Only needed when the parameter "condition expression" is set', placeholder: 'Add Attribute Value', type: 'fixedCollection', - default: '', + default: {}, required: true, typeOptions: { multipleValues: true, @@ -230,7 +230,7 @@ export const itemFields: INodeProperties[] = [ name: 'eanUi', placeholder: 'Add Expression', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -401,7 +401,7 @@ export const itemFields: INodeProperties[] = [ name: 'eanUi', placeholder: 'Add Expression', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -433,7 +433,7 @@ export const itemFields: INodeProperties[] = [ description: 'Substitution tokens for attribute names in an expression. Only needed when the parameter "condition expression" is set', placeholder: 'Add Attribute Value', type: 'fixedCollection', - default: '', + default: {}, required: true, typeOptions: { multipleValues: true, @@ -624,7 +624,7 @@ export const itemFields: INodeProperties[] = [ name: 'eanUi', placeholder: 'Add Expression', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -733,7 +733,7 @@ export const itemFields: INodeProperties[] = [ description: 'Substitution tokens for attribute names in an expression', placeholder: 'Add Attribute Value', type: 'fixedCollection', - default: '', + default: {}, required: true, typeOptions: { multipleValues: true, @@ -931,7 +931,7 @@ export const itemFields: INodeProperties[] = [ name: 'eanUi', placeholder: 'Add Expression', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts b/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts index 60a484d3c1..854fdc2fb7 100644 --- a/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts +++ b/packages/nodes-base/nodes/Aws/Rekognition/AwsRekognition.node.ts @@ -205,7 +205,7 @@ export class AwsRekognition implements INodeType { displayName: 'Regions of Interest', name: 'regionsOfInterestUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Region of Interest', displayOptions: { show: { diff --git a/packages/nodes-base/nodes/Aws/S3/FileDescription.ts b/packages/nodes-base/nodes/Aws/S3/FileDescription.ts index 11bdfc8e52..f098536539 100644 --- a/packages/nodes-base/nodes/Aws/S3/FileDescription.ts +++ b/packages/nodes-base/nodes/Aws/S3/FileDescription.ts @@ -671,7 +671,7 @@ export const fileFields: INodeProperties[] = [ name: 'tagsUi', placeholder: 'Add Tag', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts index 22d47ca3c7..9f802ed6b9 100644 --- a/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts +++ b/packages/nodes-base/nodes/Cisco/Webex/descriptions/MeetingDescription.ts @@ -200,7 +200,7 @@ export const meetingFields: INodeProperties[] = [ typeOptions: { multipleValues: true, }, - default: '', + default: {}, placeholder: 'Add Invitee', options: [ { @@ -785,7 +785,7 @@ export const meetingFields: INodeProperties[] = [ typeOptions: { multipleValues: true, }, - default: '', + default: {}, placeholder: 'Add Invitee', options: [ { diff --git a/packages/nodes-base/nodes/GetResponse/ContactDescription.ts b/packages/nodes-base/nodes/GetResponse/ContactDescription.ts index 0cf2736f0b..d56ba79215 100644 --- a/packages/nodes-base/nodes/GetResponse/ContactDescription.ts +++ b/packages/nodes-base/nodes/GetResponse/ContactDescription.ts @@ -108,7 +108,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, @@ -557,7 +557,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts b/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts index bcd9ef5501..c2c3b1b143 100644 --- a/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts +++ b/packages/nodes-base/nodes/Google/Calendar/EventDescription.ts @@ -391,7 +391,7 @@ export const eventFields: INodeProperties[] = [ displayName: 'Reminders', name: 'remindersUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Reminder', typeOptions: { multipleValues: true, @@ -1011,7 +1011,7 @@ export const eventFields: INodeProperties[] = [ displayName: 'Reminders', name: 'remindersUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Reminder', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts b/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts index 959a416590..9105daa307 100644 --- a/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts +++ b/packages/nodes-base/nodes/Google/Contacts/ContactDescription.ts @@ -177,7 +177,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Company', name: 'companyUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Company', typeOptions: { multipleValues: true, @@ -219,7 +219,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, @@ -251,7 +251,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Emails', name: 'emailsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Email', typeOptions: { multipleValues: true, @@ -297,7 +297,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Events', name: 'eventsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Event', description: 'An event related to the person.', typeOptions: { @@ -383,7 +383,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Phone', name: 'phoneUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Phone', typeOptions: { multipleValues: true, @@ -464,7 +464,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Relations', name: 'relationsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Relation', typeOptions: { multipleValues: true, @@ -1245,7 +1245,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Company', name: 'companyUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Company', typeOptions: { multipleValues: true, @@ -1287,7 +1287,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, @@ -1319,7 +1319,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Emails', name: 'emailsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Email', typeOptions: { multipleValues: true, @@ -1365,7 +1365,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Events', name: 'eventsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Event', description: 'An event related to the person.', typeOptions: { @@ -1451,7 +1451,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Phone', name: 'phoneUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Phone', typeOptions: { multipleValues: true, @@ -1532,7 +1532,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Relations', name: 'relationsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Relation', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts index 3fd69d2760..245a83aba7 100644 --- a/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts +++ b/packages/nodes-base/nodes/Google/Drive/GoogleDrive.node.ts @@ -2038,7 +2038,7 @@ export class GoogleDrive implements INodeType { name: 'appPropertiesUi', placeholder: 'Add Property', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -2071,7 +2071,7 @@ export class GoogleDrive implements INodeType { name: 'propertiesUi', placeholder: 'Add Property', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts b/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts index c7e039fa4f..0f63664cbc 100644 --- a/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/DraftDescription.ts @@ -214,7 +214,7 @@ export const draftFields: INodeProperties[] = [ ], }, ], - default: '', + default: {}, description: 'Array of supported attachments to add to the message.', }, ], diff --git a/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts b/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts index b1d70ff31d..c3acf8302e 100644 --- a/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts +++ b/packages/nodes-base/nodes/Google/Gmail/MessageDescription.ts @@ -249,7 +249,7 @@ export const messageFields: INodeProperties[] = [ ], }, ], - default: '', + default: {}, description: 'Array of supported attachments to add to the message.', }, { diff --git a/packages/nodes-base/nodes/Google/Perspective/GooglePerspective.node.ts b/packages/nodes-base/nodes/Google/Perspective/GooglePerspective.node.ts index 555fc296be..3c298bf20a 100644 --- a/packages/nodes-base/nodes/Google/Perspective/GooglePerspective.node.ts +++ b/packages/nodes-base/nodes/Google/Perspective/GooglePerspective.node.ts @@ -82,7 +82,7 @@ export class GooglePerspective implements INodeType { displayName: 'Attributes to Analyze', name: 'requestedAttributesUi', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts b/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts index 95dfedfa55..9a846443de 100644 --- a/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts +++ b/packages/nodes-base/nodes/HelpScout/ThreadDescription.ts @@ -230,7 +230,7 @@ export const threadFields: INodeProperties[] = [ ], }, ], - default: '', + default: {}, description: 'Array of supported attachments to add to the message.', }, /* -------------------------------------------------------------------------- */ diff --git a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts index b0635ca889..0a4abcd15b 100644 --- a/packages/nodes-base/nodes/Hubspot/ContactDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/ContactDescription.ts @@ -915,7 +915,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Filter Groups', name: 'filterGroupsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Filter Group', typeOptions: { multipleValues: true, @@ -940,7 +940,7 @@ export const contactFields: INodeProperties[] = [ displayName: 'Filters', name: 'filtersUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Filter', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Hubspot/DealDescription.ts b/packages/nodes-base/nodes/Hubspot/DealDescription.ts index 41248ff01c..9405fad785 100644 --- a/packages/nodes-base/nodes/Hubspot/DealDescription.ts +++ b/packages/nodes-base/nodes/Hubspot/DealDescription.ts @@ -618,7 +618,7 @@ export const dealFields: INodeProperties[] = [ displayName: 'Filter Groups', name: 'filterGroupsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Filter Group', typeOptions: { multipleValues: true, @@ -643,7 +643,7 @@ export const dealFields: INodeProperties[] = [ displayName: 'Filters', name: 'filtersUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Filter', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Intercom/CompanyDescription.ts b/packages/nodes-base/nodes/Intercom/CompanyDescription.ts index 0a79b6c39b..896c30a154 100644 --- a/packages/nodes-base/nodes/Intercom/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Intercom/CompanyDescription.ts @@ -404,7 +404,7 @@ export const companyFields: INodeProperties[] = [ displayName: 'Custom Attributes', name: 'customAttributesUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Attribute', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Intercom/LeadDescription.ts b/packages/nodes-base/nodes/Intercom/LeadDescription.ts index f80e08fe6d..3cf079ee60 100644 --- a/packages/nodes-base/nodes/Intercom/LeadDescription.ts +++ b/packages/nodes-base/nodes/Intercom/LeadDescription.ts @@ -472,7 +472,7 @@ export const leadFields: INodeProperties[] = [ displayName: 'Custom Attributes', name: 'customAttributesUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Attribute', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Intercom/UserDescription.ts b/packages/nodes-base/nodes/Intercom/UserDescription.ts index f14cf3eca3..45423b3ba3 100644 --- a/packages/nodes-base/nodes/Intercom/UserDescription.ts +++ b/packages/nodes-base/nodes/Intercom/UserDescription.ts @@ -524,7 +524,7 @@ export const userFields: INodeProperties[] = [ displayName: 'Custom Attributes', name: 'customAttributesUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Attribute', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Iterable/EventDescription.ts b/packages/nodes-base/nodes/Iterable/EventDescription.ts index 5bc30efc03..0ca15d1740 100644 --- a/packages/nodes-base/nodes/Iterable/EventDescription.ts +++ b/packages/nodes-base/nodes/Iterable/EventDescription.ts @@ -84,7 +84,7 @@ export const eventFields: INodeProperties[] = [ displayName: 'Data Fields', name: 'dataFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Data Field', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Iterable/UserDescription.ts b/packages/nodes-base/nodes/Iterable/UserDescription.ts index deb77b2243..ae4505fe61 100644 --- a/packages/nodes-base/nodes/Iterable/UserDescription.ts +++ b/packages/nodes-base/nodes/Iterable/UserDescription.ts @@ -128,7 +128,7 @@ export const userFields: INodeProperties[] = [ displayName: 'Data Fields', name: 'dataFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Data Field', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Jenkins/Jenkins.node.ts b/packages/nodes-base/nodes/Jenkins/Jenkins.node.ts index c297fb2b63..53f5b2168f 100644 --- a/packages/nodes-base/nodes/Jenkins/Jenkins.node.ts +++ b/packages/nodes-base/nodes/Jenkins/Jenkins.node.ts @@ -170,7 +170,7 @@ export class Jenkins implements INodeType { }, }, required: true, - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/Jira/IssueDescription.ts b/packages/nodes-base/nodes/Jira/IssueDescription.ts index 5eace303a8..946371faca 100644 --- a/packages/nodes-base/nodes/Jira/IssueDescription.ts +++ b/packages/nodes-base/nodes/Jira/IssueDescription.ts @@ -182,7 +182,7 @@ export const issueFields: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, @@ -347,7 +347,7 @@ export const issueFields: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Keap/CompanyDescription.ts b/packages/nodes-base/nodes/Keap/CompanyDescription.ts index 52398290e8..8f7711a552 100644 --- a/packages/nodes-base/nodes/Keap/CompanyDescription.ts +++ b/packages/nodes-base/nodes/Keap/CompanyDescription.ts @@ -106,7 +106,7 @@ export const companyFields: INodeProperties[] = [ typeOptions: { multipleValues: false, }, - default: '', + default: {}, placeholder: 'Add Address', displayOptions: { show: { diff --git a/packages/nodes-base/nodes/Keap/ContactDescription.ts b/packages/nodes-base/nodes/Keap/ContactDescription.ts index 4693a94253..7843f760b4 100644 --- a/packages/nodes-base/nodes/Keap/ContactDescription.ts +++ b/packages/nodes-base/nodes/Keap/ContactDescription.ts @@ -241,7 +241,7 @@ export const contactFields: INodeProperties[] = [ typeOptions: { multipleValues: true, }, - default: '', + default: {}, placeholder: 'Add Address', displayOptions: { show: { @@ -506,7 +506,7 @@ export const contactFields: INodeProperties[] = [ typeOptions: { multipleValues: true, }, - default: '', + default: {}, placeholder: 'Add Social Account', displayOptions: { show: { diff --git a/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts b/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts index 874ce3d7a9..443bbd1a7d 100644 --- a/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts +++ b/packages/nodes-base/nodes/Keap/EcommerceOrderDescripion.ts @@ -175,7 +175,7 @@ export const ecommerceOrderFields: INodeProperties[] = [ typeOptions: { multipleValues: false, }, - default: '', + default: {}, placeholder: 'Add Address', displayOptions: { show: { diff --git a/packages/nodes-base/nodes/Keap/EmailDescription.ts b/packages/nodes-base/nodes/Keap/EmailDescription.ts index 661ebcefd6..ccec96dd4f 100644 --- a/packages/nodes-base/nodes/Keap/EmailDescription.ts +++ b/packages/nodes-base/nodes/Keap/EmailDescription.ts @@ -456,7 +456,7 @@ export const emailFields: INodeProperties[] = [ ], }, ], - default: '', + default: {}, description: 'Attachments to be sent with each copy of the email, maximum of 10 with size of 1MB each', }, ]; diff --git a/packages/nodes-base/nodes/KoBoToolbox/FormDescription.ts b/packages/nodes-base/nodes/KoBoToolbox/FormDescription.ts index daf0536204..e204977ae7 100644 --- a/packages/nodes-base/nodes/KoBoToolbox/FormDescription.ts +++ b/packages/nodes-base/nodes/KoBoToolbox/FormDescription.ts @@ -122,7 +122,7 @@ export const formFields: INodeProperties[] = [ typeOptions: { multipleValues: false, }, - default: '', + default: {}, placeholder: 'Add Sort', options: [ { diff --git a/packages/nodes-base/nodes/Magento/GenericFunctions.ts b/packages/nodes-base/nodes/Magento/GenericFunctions.ts index baede8153a..150c9605ce 100644 --- a/packages/nodes-base/nodes/Magento/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Magento/GenericFunctions.ts @@ -283,7 +283,7 @@ export function getSearchFilters(resource: string, filterableAttributeFunction: ], }, }, - default: '', + default: {}, placeholder: 'Add Condition', options: [ { @@ -571,7 +571,7 @@ export function getCustomerOptionalFields(): INodeProperties[] { typeOptions: { multipleValues: true, }, - default: '', + default: {}, placeholder: 'Add Custom Attribute', options: [ { diff --git a/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts b/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts index 97cc9b1529..30b2ab60a3 100644 --- a/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts +++ b/packages/nodes-base/nodes/Mandrill/Mandrill.node.ts @@ -458,7 +458,7 @@ export class Mandrill implements INodeType { name: 'mergeVarsUi', placeholder: 'Add Merge Vars', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -496,7 +496,7 @@ export class Mandrill implements INodeType { name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -634,7 +634,7 @@ export class Mandrill implements INodeType { ], }, ], - default: '', + default: {}, description: 'Array of supported attachments to add to the message.', }, { @@ -662,7 +662,7 @@ export class Mandrill implements INodeType { name: 'headersUi', placeholder: 'Add Headers', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/Notion/Blocks.ts b/packages/nodes-base/nodes/Notion/Blocks.ts index e9f3654858..6e50b81368 100644 --- a/packages/nodes-base/nodes/Notion/Blocks.ts +++ b/packages/nodes-base/nodes/Notion/Blocks.ts @@ -357,7 +357,7 @@ export const text = (displayOptions: IDisplayOptions): INodeProperties[] => [ name: 'text', placeholder: 'Add Text', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -526,7 +526,7 @@ export const blocks = (resource: string, operation: string): INodeProperties[] = typeOptions: { multipleValues: true, }, - default: '', + default: {}, displayOptions: { show: { resource: [ diff --git a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts index c300bcf635..2989abf4b1 100644 --- a/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts +++ b/packages/nodes-base/nodes/Notion/DatabasePageDescription.ts @@ -170,7 +170,7 @@ export const databasePageFields = [ ], }, }, - default: '', + default: {}, placeholder: 'Add Property', options: [ { @@ -585,7 +585,7 @@ export const databasePageFields = [ ], }, }, - default: '', + default: {}, placeholder: 'Add Property', options: [ { diff --git a/packages/nodes-base/nodes/Notion/GenericFunctions.ts b/packages/nodes-base/nodes/Notion/GenericFunctions.ts index 5c8c2a3543..4bf3b434d6 100644 --- a/packages/nodes-base/nodes/Notion/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Notion/GenericFunctions.ts @@ -874,7 +874,7 @@ export function getSearchFilters(resource: string) { ], }, }, - default: '', + default: {}, placeholder: 'Add Condition', options: [ { diff --git a/packages/nodes-base/nodes/Paddle/CouponDescription.ts b/packages/nodes-base/nodes/Paddle/CouponDescription.ts index 3e6c6f5c30..0e3a4004e6 100644 --- a/packages/nodes-base/nodes/Paddle/CouponDescription.ts +++ b/packages/nodes-base/nodes/Paddle/CouponDescription.ts @@ -643,7 +643,7 @@ export const couponFields: INodeProperties[] = [ displayName: 'Discount', name: 'discount', type: 'fixedCollection', - default: 'discountProperties', + default: {}, options: [ { displayName: 'Discount Properties', diff --git a/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts b/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts index 875bfd2c7f..301282f414 100644 --- a/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts +++ b/packages/nodes-base/nodes/Phantombuster/AgentDescription.ts @@ -338,7 +338,7 @@ export const agentFields: INodeProperties[] = [ name: 'argumentsUi', placeholder: 'Add Argument', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -377,7 +377,7 @@ export const agentFields: INodeProperties[] = [ name: 'bonusArgumentUi', placeholder: 'Add Bonus Argument', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/Pushover/Pushover.node.ts b/packages/nodes-base/nodes/Pushover/Pushover.node.ts index 8217fee094..e978014b2b 100644 --- a/packages/nodes-base/nodes/Pushover/Pushover.node.ts +++ b/packages/nodes-base/nodes/Pushover/Pushover.node.ts @@ -238,7 +238,7 @@ export class Pushover implements INodeType { ], }, ], - default: '', + default: {}, }, { displayName: 'Device', diff --git a/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts b/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts index 446a5c4da7..a20252d776 100644 --- a/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts +++ b/packages/nodes-base/nodes/Rocketchat/Rocketchat.node.ts @@ -336,7 +336,7 @@ export class Rocketchat implements INodeType { typeOptions: { multipleValues: true, }, - default: '', + default: {}, options: [ { name: 'fieldsValues', diff --git a/packages/nodes-base/nodes/Shopify/OrderDescription.ts b/packages/nodes-base/nodes/Shopify/OrderDescription.ts index 729a9e735e..50841c79a0 100644 --- a/packages/nodes-base/nodes/Shopify/OrderDescription.ts +++ b/packages/nodes-base/nodes/Shopify/OrderDescription.ts @@ -73,7 +73,7 @@ export const orderFields: INodeProperties[] = [ name: 'billingAddressUi', placeholder: 'Add Billing Address', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: false, }, @@ -152,7 +152,7 @@ export const orderFields: INodeProperties[] = [ name: 'discountCodesUi', placeholder: 'Add Discount Code', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -302,7 +302,7 @@ export const orderFields: INodeProperties[] = [ name: 'shippingAddressUi', placeholder: 'Add Shipping', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: false, }, @@ -859,7 +859,7 @@ export const orderFields: INodeProperties[] = [ name: 'shippingAddressUi', placeholder: 'Add Shipping', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: false, }, diff --git a/packages/nodes-base/nodes/Supabase/GenericFunctions.ts b/packages/nodes-base/nodes/Supabase/GenericFunctions.ts index 2b30eb40a3..5e21b46af7 100644 --- a/packages/nodes-base/nodes/Supabase/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Supabase/GenericFunctions.ts @@ -130,7 +130,7 @@ export function getFilters( ], }, }, - default: '', + default: {}, placeholder: 'Add Condition', options: [ { diff --git a/packages/nodes-base/nodes/Supabase/RowDescription.ts b/packages/nodes-base/nodes/Supabase/RowDescription.ts index 76d0b88ce9..cc9e18dc60 100644 --- a/packages/nodes-base/nodes/Supabase/RowDescription.ts +++ b/packages/nodes-base/nodes/Supabase/RowDescription.ts @@ -243,7 +243,7 @@ export const rowFields: INodeProperties[] = [ ], }, }, - default: '', + default: {}, placeholder: 'Add Condition', options: [ { diff --git a/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts b/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts index 37441deb03..2ce45e67bb 100644 --- a/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts +++ b/packages/nodes-base/nodes/Tapfiliate/AffiliateMetadataDescription.ts @@ -73,7 +73,7 @@ export const affiliateMetadataFields: INodeProperties[] = [ ], }, }, - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts b/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts index b50e22c309..01c2e05471 100644 --- a/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts +++ b/packages/nodes-base/nodes/TheHive/descriptions/AlertDescription.ts @@ -363,7 +363,7 @@ export const alertFields: INodeProperties[] = [ name: 'artifactUi', type: 'fixedCollection', placeholder: 'Add Artifact', - default: '', + default: {}, displayOptions: { show: { resource: [ @@ -621,7 +621,7 @@ export const alertFields: INodeProperties[] = [ name: 'artifactUi', type: 'fixedCollection', placeholder: 'Add Artifact', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts b/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts index f1e8f9ba40..2303a6488f 100644 --- a/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts +++ b/packages/nodes-base/nodes/WooCommerce/OrderDescription.ts @@ -173,7 +173,7 @@ export const orderFields: INodeProperties[] = [ name: 'billingUi', placeholder: 'Add Billing', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: false, }, @@ -263,7 +263,7 @@ export const orderFields: INodeProperties[] = [ name: 'couponLinesUi', placeholder: 'Add Coupon Line', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -295,7 +295,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -332,7 +332,7 @@ export const orderFields: INodeProperties[] = [ name: 'feeLinesUi', placeholder: 'Add Fee Line', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -395,7 +395,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -432,7 +432,7 @@ export const orderFields: INodeProperties[] = [ name: 'lineItemsUi', placeholder: 'Add Line Item', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -506,7 +506,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -543,7 +543,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -586,7 +586,7 @@ export const orderFields: INodeProperties[] = [ name: 'shippingUi', placeholder: 'Add Shipping', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: false, }, @@ -664,7 +664,7 @@ export const orderFields: INodeProperties[] = [ name: 'shippingLinesUi', placeholder: 'Add Shipping Line', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -710,7 +710,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -879,7 +879,7 @@ export const orderFields: INodeProperties[] = [ name: 'billingUi', placeholder: 'Add Billing', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: false, }, @@ -969,7 +969,7 @@ export const orderFields: INodeProperties[] = [ name: 'couponLinesUi', placeholder: 'Add Coupon Line', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -1001,7 +1001,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -1038,7 +1038,7 @@ export const orderFields: INodeProperties[] = [ name: 'feeLinesUi', placeholder: 'Add Fee Line', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -1101,7 +1101,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -1138,7 +1138,7 @@ export const orderFields: INodeProperties[] = [ name: 'lineItemsUi', placeholder: 'Add Line Item', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -1212,7 +1212,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -1249,7 +1249,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -1292,7 +1292,7 @@ export const orderFields: INodeProperties[] = [ name: 'shippingUi', placeholder: 'Add Shipping', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: false, }, @@ -1370,7 +1370,7 @@ export const orderFields: INodeProperties[] = [ name: 'shippingLinesUi', placeholder: 'Add Shipping Line', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -1416,7 +1416,7 @@ export const orderFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts b/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts index 9eb30f5905..33379085bc 100644 --- a/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts +++ b/packages/nodes-base/nodes/WooCommerce/ProductDescription.ts @@ -427,7 +427,7 @@ export const productFields: INodeProperties[] = [ name: 'dimensionsUi', placeholder: 'Add Dimension', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: false, }, @@ -477,7 +477,7 @@ export const productFields: INodeProperties[] = [ name: 'imagesUi', placeholder: 'Add Image', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -527,7 +527,7 @@ export const productFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -952,7 +952,7 @@ export const productFields: INodeProperties[] = [ name: 'dimensionsUi', placeholder: 'Add Dimension', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: false, }, @@ -1002,7 +1002,7 @@ export const productFields: INodeProperties[] = [ name: 'imagesUi', placeholder: 'Add Image', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -1052,7 +1052,7 @@ export const productFields: INodeProperties[] = [ name: 'metadataUi', placeholder: 'Add Metadata', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/Xero/ContactDescription.ts b/packages/nodes-base/nodes/Xero/ContactDescription.ts index 3599965b9f..a4552663bc 100644 --- a/packages/nodes-base/nodes/Xero/ContactDescription.ts +++ b/packages/nodes-base/nodes/Xero/ContactDescription.ts @@ -115,7 +115,7 @@ export const contactFields: INodeProperties[] = [ typeOptions: { multipleValues: true, }, - default: '', + default: {}, placeholder: 'Add Address', options: [ { @@ -257,7 +257,7 @@ export const contactFields: INodeProperties[] = [ typeOptions: { multipleValues: true, }, - default: '', + default: {}, placeholder: 'Add Phone', options: [ { @@ -590,7 +590,7 @@ export const contactFields: INodeProperties[] = [ typeOptions: { multipleValues: true, }, - default: '', + default: {}, placeholder: 'Add Address', options: [ { @@ -739,7 +739,7 @@ export const contactFields: INodeProperties[] = [ typeOptions: { multipleValues: true, }, - default: '', + default: {}, placeholder: 'Add Phone', options: [ { diff --git a/packages/nodes-base/nodes/Xero/InvoiceDescription.ts b/packages/nodes-base/nodes/Xero/InvoiceDescription.ts index 1d73c5f3eb..6a7dab58e1 100644 --- a/packages/nodes-base/nodes/Xero/InvoiceDescription.ts +++ b/packages/nodes-base/nodes/Xero/InvoiceDescription.ts @@ -119,7 +119,7 @@ export const invoiceFields: INodeProperties[] = [ name: 'lineItemsUi', placeholder: 'Add Line Item', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, @@ -582,7 +582,7 @@ export const invoiceFields: INodeProperties[] = [ name: 'lineItemsUi', placeholder: 'Add Line Item', type: 'fixedCollection', - default: '', + default: {}, typeOptions: { multipleValues: true, }, diff --git a/packages/nodes-base/nodes/Zammad/descriptions/GroupDescription.ts b/packages/nodes-base/nodes/Zammad/descriptions/GroupDescription.ts index 26db09a35a..dbc5339fa6 100644 --- a/packages/nodes-base/nodes/Zammad/descriptions/GroupDescription.ts +++ b/packages/nodes-base/nodes/Zammad/descriptions/GroupDescription.ts @@ -150,7 +150,7 @@ export const groupDescription: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, @@ -219,7 +219,7 @@ export const groupDescription: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Zammad/descriptions/OrganizationDescription.ts b/packages/nodes-base/nodes/Zammad/descriptions/OrganizationDescription.ts index e0ca4e9443..b069ebec88 100644 --- a/packages/nodes-base/nodes/Zammad/descriptions/OrganizationDescription.ts +++ b/packages/nodes-base/nodes/Zammad/descriptions/OrganizationDescription.ts @@ -149,7 +149,7 @@ export const organizationDescription: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, @@ -218,7 +218,7 @@ export const organizationDescription: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Zammad/descriptions/TicketDescription.ts b/packages/nodes-base/nodes/Zammad/descriptions/TicketDescription.ts index 2a6a9a978c..b70a54a949 100644 --- a/packages/nodes-base/nodes/Zammad/descriptions/TicketDescription.ts +++ b/packages/nodes-base/nodes/Zammad/descriptions/TicketDescription.ts @@ -257,7 +257,7 @@ export const ticketDescription: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, diff --git a/packages/nodes-base/nodes/Zammad/descriptions/UserDescription.ts b/packages/nodes-base/nodes/Zammad/descriptions/UserDescription.ts index 7d876e2ab9..55b20a1edf 100644 --- a/packages/nodes-base/nodes/Zammad/descriptions/UserDescription.ts +++ b/packages/nodes-base/nodes/Zammad/descriptions/UserDescription.ts @@ -216,7 +216,7 @@ export const userDescription: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true, @@ -393,7 +393,7 @@ export const userDescription: INodeProperties[] = [ displayName: 'Custom Fields', name: 'customFieldsUi', type: 'fixedCollection', - default: '', + default: {}, placeholder: 'Add Custom Field', typeOptions: { multipleValues: true,