mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -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,
|
multipleValues: true,
|
||||||
multipleValueButtonText: 'Add Field',
|
multipleValueButtonText: 'Add Field',
|
||||||
},
|
},
|
||||||
|
requiresDataPath: 'single',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
addAllFields: [false],
|
addAllFields: [false],
|
||||||
|
@ -264,6 +265,7 @@ export class Airtable implements INodeType {
|
||||||
name: 'downloadFieldNames',
|
name: 'downloadFieldNames',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
required: true,
|
required: true,
|
||||||
|
requiresDataPath: 'multiple',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: ['list'],
|
operation: ['list'],
|
||||||
|
@ -291,6 +293,7 @@ export class Airtable implements INodeType {
|
||||||
displayName: 'Fields',
|
displayName: 'Fields',
|
||||||
name: 'fields',
|
name: 'fields',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
requiresDataPath: 'single',
|
||||||
typeOptions: {
|
typeOptions: {
|
||||||
multipleValues: true,
|
multipleValues: true,
|
||||||
multipleValueButtonText: 'Add Field',
|
multipleValueButtonText: 'Add Field',
|
||||||
|
@ -419,6 +422,7 @@ export class Airtable implements INodeType {
|
||||||
multipleValues: true,
|
multipleValues: true,
|
||||||
multipleValueButtonText: 'Add Field',
|
multipleValueButtonText: 'Add Field',
|
||||||
},
|
},
|
||||||
|
requiresDataPath: 'single',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
updateAllFields: [false],
|
updateAllFields: [false],
|
||||||
|
@ -461,6 +465,7 @@ export class Airtable implements INodeType {
|
||||||
displayName: 'Ignore Fields',
|
displayName: 'Ignore Fields',
|
||||||
name: 'ignoreFields',
|
name: 'ignoreFields',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
requiresDataPath: 'multiple',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
'/operation': ['update'],
|
'/operation': ['update'],
|
||||||
|
|
|
@ -163,6 +163,7 @@ export class AirtableTrigger implements INodeType {
|
||||||
displayName: 'Fields',
|
displayName: 'Fields',
|
||||||
name: 'fields',
|
name: 'fields',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
requiresDataPath: 'multiple',
|
||||||
default: '',
|
default: '',
|
||||||
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-id
|
// eslint-disable-next-line n8n-nodes-base/node-param-description-miscased-id
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -126,6 +126,7 @@ export class MySql implements INodeType {
|
||||||
operation: ['insert'],
|
operation: ['insert'],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
requiresDataPath: 'multiple',
|
||||||
default: '',
|
default: '',
|
||||||
placeholder: 'id,name,description',
|
placeholder: 'id,name,description',
|
||||||
description:
|
description:
|
||||||
|
@ -231,6 +232,7 @@ export class MySql implements INodeType {
|
||||||
displayName: 'Columns',
|
displayName: 'Columns',
|
||||||
name: 'columns',
|
name: 'columns',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
requiresDataPath: 'multiple',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: ['update'],
|
operation: ['update'],
|
||||||
|
|
|
@ -193,6 +193,7 @@ export class Postgres implements INodeType {
|
||||||
displayName: 'Return Fields',
|
displayName: 'Return Fields',
|
||||||
name: 'returnFields',
|
name: 'returnFields',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
requiresDataPath: 'multiple',
|
||||||
displayOptions: {
|
displayOptions: {
|
||||||
show: {
|
show: {
|
||||||
operation: ['insert', 'update'],
|
operation: ['insert', 'update'],
|
||||||
|
|
|
@ -51,6 +51,7 @@ export class RenameKeys implements INodeType {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: '',
|
default: '',
|
||||||
placeholder: 'currentKey',
|
placeholder: 'currentKey',
|
||||||
|
requiresDataPath: 'single',
|
||||||
description:
|
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".',
|
'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',
|
displayName: 'Name',
|
||||||
name: 'name',
|
name: 'name',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
requiresDataPath: 'single',
|
||||||
default: 'propertyName',
|
default: 'propertyName',
|
||||||
description:
|
description:
|
||||||
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
|
'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',
|
name: 'name',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: 'propertyName',
|
default: 'propertyName',
|
||||||
|
requiresDataPath: 'single',
|
||||||
description:
|
description:
|
||||||
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
|
'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',
|
name: 'name',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
default: 'propertyName',
|
default: 'propertyName',
|
||||||
|
requiresDataPath: 'single',
|
||||||
description:
|
description:
|
||||||
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
|
'Name of the property to write data to. Supports dot-notation. Example: "data.person[0].name"',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue