Skip to content

Commit

Permalink
feat(Salesforce Node): Add country field (#3314)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency authored May 24, 2022
1 parent 5c5de0c commit 90a1bc1
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 88 deletions.
106 changes: 53 additions & 53 deletions packages/nodes-base/nodes/Salesforce/AccountDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export const accountOperations: INodeProperties[] = [
value: 'upsert',
description: 'Create a new account, or update the current one if it already exists (upsert)',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete an account',
},
{
name: 'Get',
value: 'get',
Expand All @@ -46,11 +51,6 @@ export const accountOperations: INodeProperties[] = [
value: 'getSummary',
description: 'Returns an overview of account\'s metadata',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete an account',
},
{
name: 'Update',
value: 'update',
Expand Down Expand Up @@ -152,16 +152,6 @@ export const accountFields: INodeProperties[] = [
default: '',
description: 'Account number assigned to this account (not the unique ID). Maximum size is 40 characters.',
},
{
displayName: 'Account Source',
name: 'accountSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAccountSources',
},
default: '',
description: 'The source of the account record',
},
{
displayName: 'Annual Revenue',
name: 'annualRevenue',
Expand All @@ -172,6 +162,16 @@ export const accountFields: INodeProperties[] = [
default: '',
description: 'Estimated annual revenue of the account',
},
{
displayName: 'Account Source',
name: 'accountSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getAccountSources',
},
default: '',
description: 'The source of the account record',
},
{
displayName: 'Billing City',
name: 'billingCity',
Expand Down Expand Up @@ -290,6 +290,13 @@ export const accountFields: INodeProperties[] = [
default: '',
description: 'The owner of the account',
},
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any',
},
{
displayName: 'Phone',
name: 'phone',
Expand Down Expand Up @@ -326,13 +333,6 @@ export const accountFields: INodeProperties[] = [
},
description: 'Type of account',
},
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any',
},
{
displayName: 'Shipping City',
name: 'shippingCity',
Expand Down Expand Up @@ -545,6 +545,19 @@ export const accountFields: INodeProperties[] = [
default: '',
description: 'References the ID of a company in Data.com',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name of the account. Maximum size is 255 characters.',
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
type: 'number',
default: '',
},
{
displayName: 'Owner',
name: 'ownerId',
Expand All @@ -555,6 +568,13 @@ export const accountFields: INodeProperties[] = [
default: '',
description: 'The owner of the account',
},
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any',
},
{
displayName: 'Phone',
name: 'phone',
Expand All @@ -571,36 +591,6 @@ export const accountFields: INodeProperties[] = [
},
default: '',
},
{
displayName: 'Type',
name: 'type',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccountTypes',
},
description: 'Type of account',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name of the account. Maximum size is 255 characters.',
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
type: 'number',
default: '',
},
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any',
},
{
displayName: 'SicDesc',
name: 'sicDesc',
Expand Down Expand Up @@ -646,6 +636,16 @@ export const accountFields: INodeProperties[] = [
default: '',
description: 'The street address of the shipping address for this account. Maximum of 255 characters.',
},
{
displayName: 'Type',
name: 'type',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccountTypes',
},
description: 'Type of account',
},
{
displayName: 'Website',
name: 'website',
Expand Down Expand Up @@ -906,7 +906,7 @@ export const accountFields: INodeProperties[] = [
name: 'isPrivate',
type: 'boolean',
default: false,
description: 'If true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API',
description: 'Whether true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API',
},
{
displayName: 'Owner',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export const attachmentFields: INodeProperties[] = [
name: 'isPrivate',
type: 'boolean',
default: false,
description: 'Indicates whether this record is viewable only by the owner and administrators (true) or viewable by all otherwise-allowed users (false)',
description: 'Whether this record is viewable only by the owner and administrators (true) or viewable by all otherwise-allowed users (false)',
},
{
displayName: 'Owner',
Expand Down
16 changes: 8 additions & 8 deletions packages/nodes-base/nodes/Salesforce/CaseDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ export const caseOperations: INodeProperties[] = [
value: 'create',
description: 'Create a case',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a case',
},
{
name: 'Get',
value: 'get',
Expand All @@ -39,11 +44,6 @@ export const caseOperations: INodeProperties[] = [
value: 'getSummary',
description: 'Returns an overview of case\'s metadata',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a case',
},
{
name: 'Update',
value: 'update',
Expand Down Expand Up @@ -159,7 +159,7 @@ export const caseFields: INodeProperties[] = [
name: 'isEscalated',
type: 'boolean',
default: false,
description: 'Indicates whether the case has been escalated (true) or not',
description: 'Whether indicates whether the case has been escalated (true) or not',
},
{
displayName: 'Origin',
Expand Down Expand Up @@ -365,7 +365,7 @@ export const caseFields: INodeProperties[] = [
name: 'isEscalated',
type: 'boolean',
default: false,
description: 'Indicates whether the case has been escalated (true) or not',
description: 'Whether the case has been escalated (true) or not',
},
{
displayName: 'Origin',
Expand Down Expand Up @@ -713,7 +713,7 @@ export const caseFields: INodeProperties[] = [
name: 'isPublished',
type: 'boolean',
default: false,
description: 'Indicates whether the CaseComment is visible to customers in the Self-Service portal (true) or not (false)',
description: 'Whether the CaseComment is visible to customers in the Self-Service portal (true) or not (false)',
},
],
},
Expand Down
14 changes: 7 additions & 7 deletions packages/nodes-base/nodes/Salesforce/ContactDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export const contactOperations: INodeProperties[] = [
value: 'addNote',
description: 'Add note to a contact',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a contact',
},
{
name: 'Create',
value: 'create',
Expand All @@ -36,11 +41,6 @@ export const contactOperations: INodeProperties[] = [
value: 'upsert',
description: 'Create a new contact, or update the current one if it already exists (upsert)',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a contact',
},
{
name: 'Get',
value: 'get',
Expand Down Expand Up @@ -575,7 +575,7 @@ export const contactFields: INodeProperties[] = [
name: 'jigsaw',
type: 'string',
default: '',
description: 'references the ID of a contact in Data.com. If a contact has a value in this field, it means that a contact was imported as a contact from Data.com.',
description: 'References the ID of a contact in Data.com. If a contact has a value in this field, it means that a contact was imported as a contact from Data.com.',
},
{
displayName: 'Last Name',
Expand Down Expand Up @@ -1032,7 +1032,7 @@ export const contactFields: INodeProperties[] = [
name: 'isPrivate',
type: 'boolean',
default: false,
description: 'If true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API',
description: 'Whether only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API',
},
{
displayName: 'Owner',
Expand Down
10 changes: 5 additions & 5 deletions packages/nodes-base/nodes/Salesforce/CustomObjectDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ export const customObjectOperations: INodeProperties[] = [
value: 'upsert',
description: 'Create a new record, or update the current one if it already exists (upsert)',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a custom object record',
},
{
name: 'Get',
value: 'get',
Expand All @@ -36,11 +41,6 @@ export const customObjectOperations: INodeProperties[] = [
value: 'getAll',
description: 'Get all custom object records',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a custom object record',
},
{
name: 'Update',
value: 'update',
Expand Down
4 changes: 2 additions & 2 deletions packages/nodes-base/nodes/Salesforce/FlowDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const flowFields: INodeProperties[] = [
minValue: 1,
maxValue: 500,
},
default: 100,
default: 50,
description: 'Max number of results to return',
},

Expand Down Expand Up @@ -114,7 +114,7 @@ export const flowFields: INodeProperties[] = [
],
},
},
description: 'If the input variables should be set via the value-key pair UI or JSON/RAW',
description: 'Whether the input variables should be set via the value-key pair UI or JSON/RAW',
},
{
displayName: 'Variables',
Expand Down
24 changes: 19 additions & 5 deletions packages/nodes-base/nodes/Salesforce/LeadDescription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,13 @@ export const leadFields: INodeProperties[] = [
default: '',
description: 'City for the address of the lead',
},
{
displayName: 'Country',
name: 'country',
type: 'string',
default: '',
description: 'Country of the lead',
},
{
displayName: 'Custom Fields',
name: 'customFieldsUi',
Expand Down Expand Up @@ -258,14 +265,14 @@ export const leadFields: INodeProperties[] = [
name: 'IsUnreadByOwner',
type: 'boolean',
default: false,
description: 'If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
description: 'Whether true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
},
{
displayName: 'Jigsaw',
name: 'jigsaw',
type: 'string',
default: '',
description: 'references the ID of a contact in Data.com. If a lead has a value in this field, it means that a contact was imported as a lead from Data.com.',
description: 'References the ID of a contact in Data.com. If a lead has a value in this field, it means that a contact was imported as a lead from Data.com.',
},
{
displayName: 'Lead Source',
Expand Down Expand Up @@ -441,6 +448,13 @@ export const leadFields: INodeProperties[] = [
default: '',
description: 'Company of the lead. If person account record types have been enabled, and if the value of Company is null, the lead converts to a person account.',
},
{
displayName: 'Country',
name: 'country',
type: 'string',
default: '',
description: 'Country of the lead',
},
{
displayName: 'Custom Fields',
name: 'customFieldsUi',
Expand Down Expand Up @@ -513,14 +527,14 @@ export const leadFields: INodeProperties[] = [
name: 'IsUnreadByOwner',
type: 'boolean',
default: false,
description: 'If true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
description: 'Whether true, lead has been assigned, but not yet viewed. See Unread Leads for more information. Label is Unread By Owner.',
},
{
displayName: 'Jigsaw',
name: 'jigsaw',
type: 'string',
default: '',
description: 'references the ID of a contact in Data.com. If a lead has a value in this field, it means that a contact was imported as a lead from Data.com.',
description: 'References the ID of a contact in Data.com. If a lead has a value in this field, it means that a contact was imported as a lead from Data.com.',
},
{
displayName: 'Last Name',
Expand Down Expand Up @@ -960,7 +974,7 @@ export const leadFields: INodeProperties[] = [
name: 'isPrivate',
type: 'boolean',
default: false,
description: 'If true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API',
description: 'Whether true, only the note owner or a user with the “Modify All Data” permission can view the note or query it via the API',
},
{
displayName: 'Owner',
Expand Down
Loading

0 comments on commit 90a1bc1

Please sign in to comment.