diff --git a/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts b/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts index be217de2ed..b26316f475 100644 --- a/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts +++ b/packages/nodes-base/nodes/AgileCrm/AgileCrm.node.ts @@ -171,9 +171,6 @@ export class AgileCrm implements INodeType { if (additionalFields.starValue) { body.star_value = additionalFields.starValue as string; } - if (additionalFields.leadScore) { - body.lead_score = additionalFields.leadScore as string; - } if (additionalFields.tags) { body.tags = additionalFields.tags as string[]; } @@ -325,15 +322,17 @@ export class AgileCrm implements INodeType { if (additionalFields.starValue) { body.star_value = additionalFields.starValue as string; } - if (additionalFields.leadScore) { - body.lead_score = additionalFields.leadScore as string; - } if (additionalFields.tags) { body.tags = additionalFields.tags as string[]; } // Contact specific properties if(resource === 'contact'){ + + if (additionalFields.leadScore) { + body.lead_score = additionalFields.leadScore as string; + } + if(additionalFields.firstName){ properties.push({ type: 'SYSTEM', diff --git a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts index 08a7fa1df9..a3bfaafc3f 100644 --- a/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/CompanyDescription.ts @@ -14,6 +14,16 @@ export const companyOperations = [ }, }, options: [ + { + name: 'Create', + value: 'create', + description: 'Create a new company', + }, + { + name: 'Delete', + value: 'delete', + description: 'Delete a company', + }, { name: 'Get', value: 'get', @@ -24,21 +34,11 @@ export const companyOperations = [ value: 'getAll', description: 'Get all companies', }, - { - name: 'Create', - value: 'create', - description: 'Create a new company', - }, { name: 'Update', value: 'update', description: 'Update company properties', }, - { - name: 'Delete', - value: 'delete', - description: 'Delete a company', - }, ], default: 'get', description: 'The operation to perform.', @@ -170,6 +170,41 @@ export const companyFields = [ }, }, options: [ + { + displayName: 'Address', + name: 'email', + type: 'string', + + default: '', + placeholder: 'Company address', + description: 'Company address.', + }, + { + displayName: 'Email', + name: 'email', + type: 'string', + + default: '', + placeholder: 'Company email', + description: 'Company email.', + }, + { + displayName: 'Name', + name: 'name', + type: 'string', + default: '', + placeholder: 'Company name', + description: 'Company name.', + }, + { + displayName: 'Phone', + name: 'phone', + type: 'string', + + default: '', + placeholder: 'Company phone', + description: 'Company phone.', + }, { displayName: 'Star Value', name: 'starValue', @@ -203,16 +238,6 @@ export const companyFields = [ }, ] }, - { - displayName: 'Lead Score', - name: 'leadScore', - type: 'number', - default: '', - description: 'Score of company. This is not applicable for companies.', - typeOptions: { - minValue: 0 - } - }, { displayName: 'Tags', name: 'tags', @@ -225,38 +250,12 @@ export const companyFields = [ placeholder: 'Tag', description: 'Unique identifiers added to company, for easy management of companys. This is not applicable for companies.', }, - { - displayName: 'Name', - name: 'name', - type: 'string', - default: '', - placeholder: 'Company name', - description: 'Company name.', - }, - { - displayName: 'Email', - name: 'email', - type: 'string', - - default: '', - placeholder: 'Company email', - description: 'Company email.', - }, - { - displayName: 'Address', - name: 'email', - type: 'string', - - default: '', - placeholder: 'Company address', - description: 'Company address.', - }, { displayName: 'Website', name: 'websiteOptions', type: 'fixedCollection', - description: 'companys websites.', + description: 'Companies websites.', typeOptions: { multipleValues: true, }, @@ -271,12 +270,31 @@ export const companyFields = [ type: 'options', required: true, default: '', - description: 'Type of website.', options: [ { - name: 'URL', - value: 'url', + name: 'FACEBOOK', + value: 'facebook', + }, + { + name: 'FEED', + value: 'feed', + }, + { + name: 'FLICKR', + value: 'flickr', + }, + { + name: 'LINKEDIN', + value: 'linkedin', + }, + { + name: 'GITHUB', + value: 'github', + }, + { + name: 'GOOGLE_PLUS', + value: 'googlePlus', }, { name: 'SKYPE', @@ -287,33 +305,13 @@ export const companyFields = [ value: 'twitter', }, { - name: 'LINKEDIN', - value: 'linkedin', - }, - { - name: 'FACEBOOK', - value: 'facebook', + name: 'URL', + value: 'url', }, { name: 'XING', value: 'xing', }, - { - name: 'FEED', - value: 'feed', - }, - { - name: 'GOOGLE_PLUS', - value: 'googlePlus', - }, - { - name: 'FLICKR', - value: 'flickr', - }, - { - name: 'GITHUB', - value: 'github', - }, { name: 'YOUTUBE', value: 'youtube', @@ -334,15 +332,6 @@ export const companyFields = [ ] }, - { - displayName: 'Phone', - name: 'phone', - type: 'string', - - default: '', - placeholder: 'Company phone', - description: 'Company phone.', - }, { displayName: 'Custom Properties', name: 'customProperties', @@ -386,7 +375,6 @@ export const companyFields = [ } ] }, - ] }, ], @@ -410,7 +398,7 @@ export const companyFields = [ }, }, default: '', - description: 'Unique identifier for a particular company', + description: 'ID of company to delete', }, /* -------------------------------------------------------------------------- */ /* company:update */ @@ -494,6 +482,22 @@ export const companyFields = [ }, }, options: [ + { + displayName: 'Address', + name: 'email', + type: 'string', + default: '', + placeholder: 'Company address', + description: 'Company address.', + }, + { + displayName: 'Email', + name: 'email', + type: 'string', + default: '', + placeholder: 'Company email', + description: 'Company email.', + }, { displayName: 'Star Value', name: 'starValue', @@ -527,16 +531,6 @@ export const companyFields = [ }, ] }, - { - displayName: 'Lead Score', - name: 'leadScore', - type: 'number', - default: '', - description: 'Score of company. This is not applicable for companies.', - typeOptions: { - minValue: 0 - } - }, { displayName: 'Tags', name: 'tags', @@ -558,20 +552,12 @@ export const companyFields = [ description: 'Company name.', }, { - displayName: 'Email', - name: 'email', + displayName: 'Phone', + name: 'phone', type: 'string', default: '', - placeholder: 'Company email', - description: 'Company email.', - }, - { - displayName: 'Address', - name: 'email', - type: 'string', - default: '', - placeholder: 'Company address', - description: 'Company address.', + placeholder: 'Company phone', + description: 'Company phone.', }, { displayName: 'Website', @@ -595,8 +581,28 @@ export const companyFields = [ description: 'Type of website.', options: [ { - name: 'URL', - value: 'url', + name: 'FACEBOOK', + value: 'facebook', + }, + { + name: 'FEED', + value: 'feed', + }, + { + name: 'FLICKR', + value: 'flickr', + }, + { + name: 'LINKEDIN', + value: 'linkedin', + }, + { + name: 'GITHUB', + value: 'github', + }, + { + name: 'GOOGLE_PLUS', + value: 'googlePlus', }, { name: 'SKYPE', @@ -607,33 +613,13 @@ export const companyFields = [ value: 'twitter', }, { - name: 'LINKEDIN', - value: 'linkedin', - }, - { - name: 'FACEBOOK', - value: 'facebook', + name: 'URL', + value: 'url', }, { name: 'XING', value: 'xing', }, - { - name: 'FEED', - value: 'feed', - }, - { - name: 'GOOGLE_PLUS', - value: 'googlePlus', - }, - { - name: 'FLICKR', - value: 'flickr', - }, - { - name: 'GITHUB', - value: 'github', - }, { name: 'YOUTUBE', value: 'youtube', @@ -650,17 +636,8 @@ export const companyFields = [ } ] }, - ] }, - { - displayName: 'Phone', - name: 'phone', - type: 'string', - default: '', - placeholder: 'Company phone', - description: 'Company phone.', - }, { displayName: 'Custom Properties', name: 'customProperties', diff --git a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts index fd7d652867..88b38c403d 100644 --- a/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/ContactDescription.ts @@ -15,6 +15,16 @@ export const contactOperations = [ }, }, options: [ + { + name: 'Create', + value: 'create', + description: 'Create a new contact', + }, + { + name: 'Delete', + value: 'delete', + description: 'Delete a contact', + }, { name: 'Get', value: 'get', @@ -25,21 +35,11 @@ export const contactOperations = [ value: 'getAll', description: 'Get all contacts', }, - { - name: 'Create', - value: 'create', - description: 'Create a new contact', - }, { name: 'Update', value: 'update', description: 'Update contact properties', }, - { - name: 'Delete', - value: 'delete', - description: 'Delete a contact', - }, ], default: 'get', description: 'The operation to perform.', @@ -68,28 +68,9 @@ export const contactFields = [ default: '', description: 'Unique identifier for a particular contact', }, - - /* -------------------------------------------------------------------------- */ /* contact:get all */ /* -------------------------------------------------------------------------- */ - { - displayName: 'Return All', - name: 'returnAll', - type: 'boolean', - displayOptions: { - show: { - resource: [ - 'contact', - ], - operation: [ - 'getAll', - ], - }, - }, - default: false, - description: 'If all results should be returned or only up to a given limit.', - }, { displayName: 'Limit', name: 'limit', @@ -109,6 +90,23 @@ export const contactFields = [ }, } }, + { + displayName: 'Return All', + name: 'returnAll', + type: 'boolean', + displayOptions: { + show: { + resource: [ + 'contact', + ], + operation: [ + 'getAll', + ], + }, + }, + default: false, + description: 'If all results should be returned or only up to a given limit.', + }, /* -------------------------------------------------------------------------- */ /* contact:create */ @@ -176,137 +174,6 @@ export const contactFields = [ }, }, options: [ - { - displayName: 'Star Value', - name: 'starValue', - type: 'options', - default: '', - description: 'Rating of contact (Max value 5). This is not applicable for companies.', - options: [ - { - name: '0', - value: 0 - }, - { - name: '1', - value: 1 - }, - { - name: '2', - value: 2 - }, - { - name: '3', - value: 3 - }, - { - name: '4', - value: 4 - }, - { - name: '5', - value: 5 - }, - ] - }, - { - displayName: 'Lead Score', - name: 'leadScore', - type: 'number', - default: '', - description: 'Score of contact. This is not applicable for companies.', - typeOptions: { - minValue: 0 - } - }, - { - displayName: 'Tags', - name: 'tags', - type: 'string', - typeOptions: { - multipleValues: true, - multipleValueButtonText: 'Add Tag', - }, - default: [], - placeholder: 'Tag', - description: 'Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies.', - }, - { - displayName: 'First Name', - name: 'firstName', - type: 'string', - default: "", - placeholder: 'First Name', - description: 'Contact first name.', - }, - { - displayName: 'Last Name', - name: 'lastName', - type: 'string', - default: "", - placeholder: 'Last Name', - description: 'Contact last name.', - }, - { - displayName: 'Company', - name: 'company', - type: 'string', - default: "", - placeholder: 'Company', - description: 'Company Name.', - }, - { - displayName: 'Title', - name: 'title', - type: 'string', - default: "", - placeholder: 'Title', - description: 'Professional title.', - }, - { - displayName: 'Email', - name: 'emailOptions', - type: 'fixedCollection', - description: 'Contact email.', - typeOptions: { - multipleValues: true, - }, - options: [ - { - displayName: 'Email Properties', - name: 'emailProperties', - values: [ - { - displayName: 'Type', - name: 'subtype', - type: 'options', - required: true, - default: "", - description: 'Type of Email', - options: [ - { - name: 'Work', - value: 'work' - }, - { - name: 'Personal', - value: 'personal' - } - ] - }, - { - displayName: 'Email', - name: 'email', - type: 'string', - required: true, - default: "", - description: 'Email', - } - ] - }, - - ] - }, { displayName: 'Address', name: 'addressOptions', @@ -357,6 +224,202 @@ export const contactFields = [ ] }, + { + displayName: 'Company', + name: 'company', + type: 'string', + default: "", + placeholder: 'Company', + description: 'Company Name.', + }, + { + displayName: 'Email', + name: 'emailOptions', + type: 'fixedCollection', + description: 'Contact email.', + typeOptions: { + multipleValues: true, + }, + options: [ + { + displayName: 'Email Properties', + name: 'emailProperties', + values: [ + { + displayName: 'Type', + name: 'subtype', + type: 'options', + required: true, + default: "", + description: 'Type of Email', + options: [ + { + name: 'Work', + value: 'work' + }, + { + name: 'Personal', + value: 'personal' + } + ] + }, + { + displayName: 'Email', + name: 'email', + type: 'string', + required: true, + default: "", + description: 'Email', + } + ] + }, + + ] + }, + { + displayName: 'First Name', + name: 'firstName', + type: 'string', + default: "", + placeholder: 'First Name', + description: 'Contact first name.', + }, + { + displayName: 'Last Name', + name: 'lastName', + type: 'string', + default: "", + placeholder: 'Last Name', + description: 'Contact last name.', + }, + { + displayName: 'Lead Score', + name: 'leadScore', + type: 'number', + default: '', + description: 'Lead score of contact', + typeOptions: { + minValue: 0 + } + }, + { + displayName: 'Star Value', + name: 'starValue', + type: 'options', + default: '', + description: 'Rating of contact (Max value 5). This is not applicable for companies.', + options: [ + { + name: '0', + value: 0 + }, + { + name: '1', + value: 1 + }, + { + name: '2', + value: 2 + }, + { + name: '3', + value: 3 + }, + { + name: '4', + value: 4 + }, + { + name: '5', + value: 5 + }, + ] + }, + { + displayName: 'Phone', + name: 'phoneOptions', + type: 'fixedCollection', + description: 'Contacts phone.', + typeOptions: { + multipleValues: true, + }, + options: [ + { + displayName: 'Phone properties', + name: 'phoneProperties', + values: [ + { + displayName: 'Type', + name: 'subtype', + type: 'options', + required: true, + default: "", + description: 'Type of phone number.', + options: [ + { + name: 'Home', + value: 'home' + }, + { + name: 'Work', + value: 'work' + } + , + { + name: 'Mobile', + value: 'mobile' + }, + { + name: 'Main', + value: 'main' + }, + { + name: 'Home Fax', + value: 'homeFax' + }, + { + name: 'Work Fax', + value: 'workFax' + }, + { + name: 'Other', + value: 'other' + }, + ] + }, + { + displayName: 'Number', + name: 'number', + type: 'string', + required: true, + default: "", + description: 'Phone number.', + } + ] + }, + + ] + }, + { + displayName: 'Tags', + name: 'tags', + type: 'string', + typeOptions: { + multipleValues: true, + multipleValueButtonText: 'Add Tag', + }, + default: [], + placeholder: 'Tag', + description: 'Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies.', + }, + { + displayName: 'Title', + name: 'title', + type: 'string', + default: "", + placeholder: 'Title', + description: 'Professional title.', + }, { displayName: 'Website', name: 'websiteOptions', @@ -437,71 +500,6 @@ export const contactFields = [ ] }, - { - displayName: 'Phone', - name: 'phoneOptions', - type: 'fixedCollection', - description: 'Contacts phone.', - typeOptions: { - multipleValues: true, - }, - options: [ - { - displayName: 'Phone properties', - name: 'phoneProperties', - values: [ - { - displayName: 'Type', - name: 'subtype', - type: 'options', - required: true, - default: "", - description: 'Type of phone number.', - options: [ - { - name: 'Home', - value: 'home' - }, - { - name: 'Work', - value: 'work' - } - , - { - name: 'Mobile', - value: 'mobile' - }, - { - name: 'Main', - value: 'main' - }, - { - name: 'Home Fax', - value: 'homeFax' - }, - { - name: 'Work Fax', - value: 'workFax' - }, - { - name: 'Other', - value: 'other' - }, - ] - }, - { - displayName: 'Number', - name: 'number', - type: 'string', - required: true, - default: "", - description: 'Phone number.', - } - ] - }, - - ] - }, { displayName: 'Custom Properties', name: 'customProperties', @@ -647,138 +645,6 @@ export const contactFields = [ }, }, options: [ - { - displayName: 'Star Value', - name: 'starValue', - type: 'options', - default: '', - description: 'Rating of contact (Max value 5). This is not applicable for companies.', - options: [ - { - name: '0', - value: 0 - }, - { - name: '1', - value: 1 - }, - { - name: '2', - value: 2 - }, - { - name: '3', - value: 3 - }, - { - name: '4', - value: 4 - }, - { - name: '5', - value: 5 - }, - ] - }, - { - displayName: 'Lead Score', - name: 'leadScore', - type: 'number', - default: '', - description: 'Score of contact. This is not applicable for companies.', - typeOptions: { - minValue: 0 - } - }, - { - displayName: 'Tags', - name: 'tags', - type: 'string', - typeOptions: { - multipleValues: true, - multipleValueButtonText: 'Add Tag', - }, - default: [], - placeholder: 'Tag', - description: 'Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies.', - }, - { - displayName: 'First Name', - name: 'firstName', - type: 'string', - default: "", - placeholder: 'First Name', - description: 'Contact first name.', - }, - { - displayName: 'Last Name', - name: 'lastName', - type: 'string', - default: "", - placeholder: 'Last Name', - description: 'Contact last name.', - }, - { - displayName: 'Company', - name: 'company', - type: 'string', - default: "", - placeholder: 'Company', - description: 'Company Name.', - }, - { - displayName: 'Title', - name: 'title', - type: 'string', - default: "", - placeholder: 'Title', - description: 'Professional title.', - }, - { - displayName: 'Email', - name: 'emailOptions', - type: 'fixedCollection', - description: 'Contact email.', - typeOptions: { - multipleValues: true, - }, - options: [ - { - displayName: 'Email Properties', - name: 'emailProperties', - values: [ - { - displayName: 'Type', - name: 'subtype', - type: 'options', - required: true, - default: "", - - description: 'Type of Email', - options: [ - { - name: 'Work', - value: 'work' - }, - { - name: 'Personal', - value: 'personal' - } - ] - }, - { - displayName: 'Email', - name: 'email', - type: 'string', - required: true, - default: "", - description: 'Email', - } - ] - }, - - ] - }, { displayName: 'Address', name: 'addressOptions', @@ -830,17 +696,25 @@ export const contactFields = [ ] }, { - displayName: 'Website', - name: 'websiteOptions', + displayName: 'Company', + name: 'company', + type: 'string', + default: "", + placeholder: 'Company', + description: 'Company Name.', + }, + { + displayName: 'Email', + name: 'emailOptions', type: 'fixedCollection', - description: 'Contacts websites.', + description: 'Contact email.', typeOptions: { multipleValues: true, }, options: [ { - displayName: 'Website properties.', - name: 'websiteProperties', + displayName: 'Email Properties', + name: 'emailProperties', values: [ { displayName: 'Type', @@ -848,68 +722,90 @@ export const contactFields = [ type: 'options', required: true, default: "", - - description: 'Type of website.', + description: 'Type of Email', options: [ { - name: 'URL', - value: 'url', + name: 'Work', + value: 'work' }, { - name: 'SKYPE', - value: 'skype', - }, - { - name: 'TWITTER', - value: 'twitter', - }, - { - name: 'LINKEDIN', - value: 'linkedin', - }, - { - name: 'FACEBOOK', - value: 'facebook', - }, - { - name: 'XING', - value: 'xing', - }, - { - name: 'FEED', - value: 'feed', - }, - { - name: 'GOOGLE_PLUS', - value: 'googlePlus', - }, - { - name: 'FLICKR', - value: 'flickr', - }, - { - name: 'GITHUB', - value: 'github', - }, - { - name: 'YOUTUBE', - value: 'youtube', - }, + name: 'Personal', + value: 'personal' + } ] }, { - displayName: 'URL', - name: 'url', + displayName: 'Email', + name: 'email', type: 'string', required: true, default: "", - description: 'Website URL', + description: 'Email', } ] }, ] }, + { + displayName: 'First Name', + name: 'firstName', + type: 'string', + default: "", + placeholder: 'First Name', + description: 'Contact first name.', + }, + { + displayName: 'Last Name', + name: 'lastName', + type: 'string', + default: "", + placeholder: 'Last Name', + description: 'Contact last name.', + }, + { + displayName: 'Lead Score', + name: 'leadScore', + type: 'number', + default: '', + description: 'Lead score of contact', + typeOptions: { + minValue: 0 + } + }, + { + displayName: 'Star Value', + name: 'starValue', + type: 'options', + default: '', + description: 'Rating of contact (Max value 5). This is not applicable for companies.', + options: [ + { + name: '0', + value: 0 + }, + { + name: '1', + value: 1 + }, + { + name: '2', + value: 2 + }, + { + name: '3', + value: 3 + }, + { + name: '4', + value: 4 + }, + { + name: '5', + value: 5 + }, + ] + }, { displayName: 'Phone', name: 'phoneOptions', @@ -975,6 +871,106 @@ export const contactFields = [ ] }, + { + displayName: 'Tags', + name: 'tags', + type: 'string', + typeOptions: { + multipleValues: true, + multipleValueButtonText: 'Add Tag', + }, + default: [], + placeholder: 'Tag', + description: 'Unique identifiers added to contact, for easy management of contacts. This is not applicable for companies.', + }, + { + displayName: 'Title', + name: 'title', + type: 'string', + default: "", + placeholder: 'Title', + description: 'Professional title.', + }, + { + displayName: 'Website', + name: 'websiteOptions', + type: 'fixedCollection', + description: 'Contacts websites.', + typeOptions: { + multipleValues: true, + }, + options: [ + { + displayName: 'Website properties.', + name: 'websiteProperties', + values: [ + { + displayName: 'Type', + name: 'subtype', + type: 'options', + required: true, + default: "", + description: 'Type of website.', + options: [ + { + name: 'URL', + value: 'url', + }, + { + name: 'SKYPE', + value: 'skype', + }, + { + name: 'TWITTER', + value: 'twitter', + }, + { + name: 'LINKEDIN', + value: 'linkedin', + }, + { + name: 'FACEBOOK', + value: 'facebook', + }, + { + name: 'XING', + value: 'xing', + }, + { + name: 'FEED', + value: 'feed', + }, + { + name: 'GOOGLE_PLUS', + value: 'googlePlus', + }, + { + name: 'FLICKR', + value: 'flickr', + }, + { + name: 'GITHUB', + value: 'github', + }, + { + name: 'YOUTUBE', + value: 'youtube', + }, + ] + }, + { + displayName: 'URL', + name: 'url', + type: 'string', + required: true, + default: "", + description: 'Website URL', + } + ] + }, + + ] + }, { displayName: 'Custom Properties', name: 'customProperties', diff --git a/packages/nodes-base/nodes/AgileCrm/DealDescription.ts b/packages/nodes-base/nodes/AgileCrm/DealDescription.ts index 2ee7e9d1a2..673fe68524 100644 --- a/packages/nodes-base/nodes/AgileCrm/DealDescription.ts +++ b/packages/nodes-base/nodes/AgileCrm/DealDescription.ts @@ -15,6 +15,16 @@ export const dealOperations = [ }, }, options: [ + { + name: 'Create', + value: 'create', + description: 'Create a new deal', + }, + { + name: 'Delete', + value: 'delete', + description: 'Delete a deal', + }, { name: 'Get', value: 'get', @@ -25,21 +35,12 @@ export const dealOperations = [ value: 'getAll', description: 'Get all deals', }, - { - name: 'Create', - value: 'create', - description: 'Create a new deal', - }, { name: 'Update', value: 'update', description: 'Update deal properties', }, - { - name: 'Delete', - value: 'delete', - description: 'Delete a deal', - }, + ], default: 'get', description: 'The operation to perform.', @@ -73,23 +74,6 @@ export const dealFields = [ /* -------------------------------------------------------------------------- */ /* deal:get all */ /* -------------------------------------------------------------------------- */ - { - displayName: 'Return All', - name: 'returnAll', - type: 'boolean', - displayOptions: { - show: { - resource: [ - 'deal', - ], - operation: [ - 'getAll', - ], - }, - }, - default: false, - description: 'If all results should be returned or only up to a given limit.', - }, { displayName: 'Limit', name: 'limit', @@ -109,6 +93,24 @@ export const dealFields = [ }, } }, + { + displayName: 'Return All', + name: 'returnAll', + type: 'boolean', + displayOptions: { + show: { + resource: [ + 'deal', + ], + operation: [ + 'getAll', + ], + }, + }, + default: false, + description: 'If all results should be returned or only up to a given limit.', + }, + /* -------------------------------------------------------------------------- */ /* deal:create */ @@ -180,6 +182,27 @@ export const dealFields = [ default: '', description: 'Milestone of deal.', }, + { + displayName: 'Name', + name: 'name', + type: 'string', + required: true, + displayOptions: { + show: { + resource: [ + 'deal', + ], + operation: [ + 'create', + ], + jsonParameters: [ + false, + ], + }, + }, + default: '', + description: 'Name of deal.', + }, { displayName: 'Probability', name: 'probability', @@ -205,27 +228,6 @@ export const dealFields = [ default: 50, description: 'Expected probability.', }, - { - displayName: 'Name', - name: 'name', - type: 'string', - required: true, - displayOptions: { - show: { - resource: [ - 'deal', - ], - operation: [ - 'create', - ], - jsonParameters: [ - false, - ], - }, - }, - default: '', - description: 'Name of deal.', - }, { displayName: 'JSON Parameters', name: 'jsonParameters', @@ -355,7 +357,7 @@ export const dealFields = [ }, }, default: '', - description: 'Unique identifier for a particular deal', + description: 'ID of deal to delete', }, /* -------------------------------------------------------------------------- */ @@ -377,7 +379,7 @@ export const dealFields = [ }, }, default: '', - description: 'Unique identifier for a particular deal', + description: 'Id of deal to update', }, { @@ -398,7 +400,7 @@ export const dealFields = [ }, }, { - displayName: ' Additional Fields', + displayName: 'Additional Fields', name: 'additionalFieldsJson', type: 'json', typeOptions: { @@ -452,6 +454,13 @@ export const dealFields = [ default: '', description: 'Expected Value of deal.', }, + { + displayName: 'Name', + name: 'name', + type: 'string', + default: '', + description: 'Name of deal.', + }, { displayName: 'Probability', name: 'probability', @@ -463,13 +472,6 @@ export const dealFields = [ default: 50, description: 'Expected Value of deal.', }, - { - displayName: 'Name', - name: 'name', - type: 'string', - default: '', - description: 'Name of deal.', - }, { displayName: 'Contact Ids', name: 'contactIds',