mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
⚡ Add filters to all getAll operations to Salesforce Node (#1292)
* ⚡ Add filters to all get:All operations * ⚡ Small fix * ⚡Add description to condition fields * ⚡ Minor improvements to Salesforce-Node Co-authored-by: Harshil <ghagrawal17@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
This commit is contained in:
@@ -58,9 +58,9 @@ export const accountOperations = [
|
||||
|
||||
export const accountFields = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Name',
|
||||
name: 'name',
|
||||
@@ -104,7 +104,7 @@ export const accountFields = [
|
||||
loadOptionsMethod: 'getAccountSources',
|
||||
},
|
||||
default: '',
|
||||
description: 'The source of the account record',
|
||||
description: 'The source of the account record.',
|
||||
},
|
||||
{
|
||||
displayName: 'Annual Revenue',
|
||||
@@ -209,7 +209,7 @@ export const accountFields = [
|
||||
name: 'jigsaw',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'references the ID of a company in Data.com',
|
||||
description: 'References the ID of a company in Data.com',
|
||||
},
|
||||
{
|
||||
displayName: 'Industry',
|
||||
@@ -262,7 +262,7 @@ export const accountFields = [
|
||||
description: 'Type of account',
|
||||
},
|
||||
{
|
||||
displayName: 'Parent Id',
|
||||
displayName: 'Parent ID',
|
||||
name: 'parentId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
@@ -312,9 +312,10 @@ export const accountFields = [
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Account ID',
|
||||
name: 'accountId',
|
||||
@@ -331,7 +332,7 @@ export const accountFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of account that needs to be fetched',
|
||||
description: 'ID of account that needs to be fetched.',
|
||||
},
|
||||
{
|
||||
displayName: 'Update Fields',
|
||||
@@ -358,7 +359,7 @@ export const accountFields = [
|
||||
loadOptionsMethod: 'getAccountSources',
|
||||
},
|
||||
default: '',
|
||||
description: 'The source of the account record',
|
||||
description: 'The source of the account record.',
|
||||
},
|
||||
{
|
||||
displayName: 'Annual Revenue',
|
||||
@@ -470,7 +471,7 @@ export const accountFields = [
|
||||
name: 'jigsaw',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'references the ID of a company in Data.com',
|
||||
description: 'References the ID of a company in Data.com',
|
||||
},
|
||||
{
|
||||
displayName: 'Owner',
|
||||
@@ -514,7 +515,7 @@ export const accountFields = [
|
||||
description: 'Number of employees',
|
||||
},
|
||||
{
|
||||
displayName: 'Parent Id',
|
||||
displayName: 'Parent ID',
|
||||
name: 'parentId',
|
||||
type: 'string',
|
||||
default: '',
|
||||
@@ -574,9 +575,9 @@ export const accountFields = [
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Account ID',
|
||||
name: 'accountId',
|
||||
@@ -593,11 +594,12 @@ export const accountFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of account that needs to be fetched',
|
||||
description: 'ID of account that needs to be fetched.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Account ID',
|
||||
name: 'accountId',
|
||||
@@ -614,11 +616,12 @@ export const accountFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of account that needs to be fetched',
|
||||
description: 'ID of account that needs to be fetched.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Return All',
|
||||
name: 'returnAll',
|
||||
@@ -684,11 +687,75 @@ export const accountFields = [
|
||||
default: '',
|
||||
description: 'Fields to include separated by ,',
|
||||
},
|
||||
{
|
||||
displayName: 'Conditions',
|
||||
name: 'conditionsUi',
|
||||
placeholder: 'Add Condition',
|
||||
type: 'fixedCollection',
|
||||
typeOptions: {
|
||||
multipleValues: true,
|
||||
},
|
||||
description: 'The condition to set.',
|
||||
default: {},
|
||||
options: [
|
||||
{
|
||||
name: 'conditionValues',
|
||||
displayName: 'Condition',
|
||||
values: [
|
||||
{
|
||||
displayName: 'Field',
|
||||
name: 'field',
|
||||
type: 'options',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getAccountFields',
|
||||
},
|
||||
default: '',
|
||||
description: 'For date, number, or boolean, please use expressions',
|
||||
},
|
||||
{
|
||||
displayName: 'Operation',
|
||||
name: 'operation',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: '=',
|
||||
value: 'equal',
|
||||
},
|
||||
{
|
||||
name: '>',
|
||||
value: '>',
|
||||
},
|
||||
{
|
||||
name: '<',
|
||||
value: '<',
|
||||
},
|
||||
{
|
||||
name: '>=',
|
||||
value: '>=',
|
||||
},
|
||||
{
|
||||
name: '<=',
|
||||
value: '<=',
|
||||
},
|
||||
],
|
||||
default: 'equal',
|
||||
},
|
||||
{
|
||||
displayName: 'Value',
|
||||
name: 'value',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:addNote */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* account:addNote */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Account ID',
|
||||
name: 'accountId',
|
||||
@@ -705,7 +772,7 @@ export const accountFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of account that needs to be fetched',
|
||||
description: 'ID of account that needs to be fetched.',
|
||||
},
|
||||
{
|
||||
displayName: 'Title',
|
||||
|
||||
Reference in New Issue
Block a user