feat: Add Required path name mapping to multiple nodes (#5369)

*  Add requiresDataPath to Set

* Add Data path mapping to rename keys

* Add required path name to airtable

* Add required data path

* Add required data path to airtable trigger

* Fix multiple keyword for required path

* ️use multiple for Airtable ignore fields

---------

Co-authored-by: Marcus <marcus@n8n.io>
This commit is contained in:
agobrech 2023-02-21 14:49:59 +01:00 committed by GitHub
parent 7ecd5e59ec
commit f1589d4f0f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 0 deletions

View file

@ -186,6 +186,7 @@ export class Airtable implements INodeType {
multipleValues: true,
multipleValueButtonText: 'Add Field',
},
requiresDataPath: 'single',
displayOptions: {
show: {
addAllFields: [false],
@ -264,6 +265,7 @@ export class Airtable implements INodeType {
name: 'downloadFieldNames',
type: 'string',
required: true,
requiresDataPath: 'multiple',
displayOptions: {
show: {
operation: ['list'],
@ -291,6 +293,7 @@ export class Airtable implements INodeType {
displayName: 'Fields',
name: 'fields',
type: 'string',
requiresDataPath: 'single',
typeOptions: {
multipleValues: true,
multipleValueButtonText: 'Add Field',
@ -419,6 +422,7 @@ export class Airtable implements INodeType {
multipleValues: true,
multipleValueButtonText: 'Add Field',
},
requiresDataPath: 'single',
displayOptions: {
show: {
updateAllFields: [false],
@ -461,6 +465,7 @@ export class Airtable implements INodeType {
displayName: 'Ignore Fields',
name: 'ignoreFields',
type: 'string',
requiresDataPath: 'multiple',
displayOptions: {
show: {
'/operation': ['update'],

View file

@ -163,6 +163,7 @@ export class AirtableTrigger implements INodeType {
displayName: 'Fields',
name: 'fields',
type: 'string',
requiresDataPath: 'multiple',
default: '',
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-id
description:

View file

@ -126,6 +126,7 @@ export class MySql implements INodeType {
operation: ['insert'],
},
},
requiresDataPath: 'multiple',
default: '',
placeholder: 'id,name,description',
description:
@ -231,6 +232,7 @@ export class MySql implements INodeType {
displayName: 'Columns',
name: 'columns',
type: 'string',
requiresDataPath: 'multiple',
displayOptions: {
show: {
operation: ['update'],

View file

@ -193,6 +193,7 @@ export class Postgres implements INodeType {
displayName: 'Return Fields',
name: 'returnFields',
type: 'string',
requiresDataPath: 'multiple',
displayOptions: {
show: {
operation: ['insert', 'update'],

View file

@ -51,6 +51,7 @@ export class RenameKeys implements INodeType {
type: 'string',
default: '',
placeholder: 'currentKey',
requiresDataPath: 'single',
description:
'The current name of the key. It is also possible to define deep keys by using dot-notation like for example: "level1.level2.currentKey".',
},

View file

@ -52,6 +52,7 @@ export class Set implements INodeType {
displayName: 'Name',
name: 'name',
type: 'string',
requiresDataPath: 'single',
default: 'propertyName',
description:
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
@ -75,6 +76,7 @@ export class Set implements INodeType {
name: 'name',
type: 'string',
default: 'propertyName',
requiresDataPath: 'single',
description:
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
},
@ -96,6 +98,7 @@ export class Set implements INodeType {
name: 'name',
type: 'string',
default: 'propertyName',
requiresDataPath: 'single',
description:
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
},