mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
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:
parent
7ecd5e59ec
commit
f1589d4f0f
|
@ -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'],
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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'],
|
||||
|
|
|
@ -193,6 +193,7 @@ export class Postgres implements INodeType {
|
|||
displayName: 'Return Fields',
|
||||
name: 'returnFields',
|
||||
type: 'string',
|
||||
requiresDataPath: 'multiple',
|
||||
displayOptions: {
|
||||
show: {
|
||||
operation: ['insert', 'update'],
|
||||
|
|
|
@ -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".',
|
||||
},
|
||||
|
|
|
@ -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"',
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue