mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +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:
@@ -43,7 +43,7 @@ export const contactOperations = [
|
||||
{
|
||||
name: 'Get Summary',
|
||||
value: 'getSummary',
|
||||
description: `Returns an overview of contact's metadata.`,
|
||||
description: `Returns an overview of contact's metadata`,
|
||||
},
|
||||
{
|
||||
name: 'Get All',
|
||||
@@ -63,9 +63,9 @@ export const contactOperations = [
|
||||
|
||||
export const contactFields = [
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:create */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Last Name',
|
||||
name: 'lastname',
|
||||
@@ -335,13 +335,6 @@ export const contactFields = [
|
||||
default: '',
|
||||
description: 'Phone number for the contact.',
|
||||
},
|
||||
{
|
||||
displayName: 'Title',
|
||||
name: 'title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Title of the contact such as CEO or Vice President.',
|
||||
},
|
||||
{
|
||||
displayName: 'Salutation',
|
||||
name: 'salutation',
|
||||
@@ -349,11 +342,19 @@ export const contactFields = [
|
||||
default: '',
|
||||
description: 'Honorific abbreviation, word, or phrase to be used in front of name in greetings, such as Dr. or Mrs.',
|
||||
},
|
||||
{
|
||||
displayName: 'Title',
|
||||
name: 'title',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Title of the contact such as CEO or Vice President.',
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:update */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Contact ID',
|
||||
name: 'contactId',
|
||||
@@ -370,7 +371,7 @@ export const contactFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of contact that needs to be fetched',
|
||||
description: 'ID of contact that needs to be fetched.',
|
||||
},
|
||||
{
|
||||
displayName: 'Update Fields',
|
||||
@@ -640,9 +641,9 @@ export const contactFields = [
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:get */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Contact ID',
|
||||
name: 'contactId',
|
||||
@@ -659,11 +660,12 @@ export const contactFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of contact that needs to be fetched',
|
||||
description: 'ID of contact that needs to be fetched.',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:delete */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Contact ID',
|
||||
name: 'contactId',
|
||||
@@ -680,11 +682,12 @@ export const contactFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of contact that needs to be fetched',
|
||||
description: 'ID of contact that needs to be fetched',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:getAll */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Return All',
|
||||
name: 'returnAll',
|
||||
@@ -743,6 +746,69 @@ export const contactFields = [
|
||||
},
|
||||
},
|
||||
options: [
|
||||
{
|
||||
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: 'getContactFields',
|
||||
},
|
||||
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: '',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
displayName: 'Fields',
|
||||
name: 'fields',
|
||||
@@ -753,9 +819,9 @@ export const contactFields = [
|
||||
],
|
||||
},
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:addToCampaign */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:addToCampaign */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Contact ID',
|
||||
name: 'contactId',
|
||||
@@ -772,7 +838,7 @@ export const contactFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of contact that needs to be fetched',
|
||||
description: 'ID of contact that needs to be fetched.',
|
||||
},
|
||||
{
|
||||
displayName: 'Campaign',
|
||||
@@ -793,7 +859,7 @@ export const contactFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of the campaign that needs to be fetched',
|
||||
description: 'ID of the campaign that needs to be fetched.',
|
||||
},
|
||||
{
|
||||
displayName: 'Options',
|
||||
@@ -817,13 +883,14 @@ export const contactFields = [
|
||||
name: 'status',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: 'Controls the HasResponded flag on this object',
|
||||
description: 'Controls the HasResponded flag on this object.',
|
||||
},
|
||||
],
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:addNote */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* contact:addNote */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'Contact ID',
|
||||
name: 'contactId',
|
||||
@@ -840,7 +907,7 @@ export const contactFields = [
|
||||
],
|
||||
},
|
||||
},
|
||||
description: 'Id of contact that needs to be fetched',
|
||||
description: 'ID of contact that needs to be fetched.',
|
||||
},
|
||||
{
|
||||
displayName: 'Title',
|
||||
|
||||
Reference in New Issue
Block a user