feat(Salesforce Node): Add country field (#3314)

This commit is contained in:
Michael Kret 2022-05-24 09:56:33 +03:00 committed by GitHub
parent 5c5de0c92c
commit 90a1bc120b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 102 additions and 88 deletions

View file

@ -31,6 +31,11 @@ export const accountOperations: INodeProperties[] = [
value: 'upsert', value: 'upsert',
description: 'Create a new account, or update the current one if it already exists (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', name: 'Get',
value: 'get', value: 'get',
@ -46,11 +51,6 @@ export const accountOperations: INodeProperties[] = [
value: 'getSummary', value: 'getSummary',
description: 'Returns an overview of account\'s metadata', description: 'Returns an overview of account\'s metadata',
}, },
{
name: 'Delete',
value: 'delete',
description: 'Delete an account',
},
{ {
name: 'Update', name: 'Update',
value: 'update', value: 'update',
@ -152,16 +152,6 @@ export const accountFields: INodeProperties[] = [
default: '', default: '',
description: 'Account number assigned to this account (not the unique ID). Maximum size is 40 characters.', 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', displayName: 'Annual Revenue',
name: 'annualRevenue', name: 'annualRevenue',
@ -172,6 +162,16 @@ export const accountFields: INodeProperties[] = [
default: '', default: '',
description: 'Estimated annual revenue of the account', 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', displayName: 'Billing City',
name: 'billingCity', name: 'billingCity',
@ -290,6 +290,13 @@ export const accountFields: INodeProperties[] = [
default: '', default: '',
description: 'The owner of the account', description: 'The owner of the account',
}, },
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any',
},
{ {
displayName: 'Phone', displayName: 'Phone',
name: 'phone', name: 'phone',
@ -326,13 +333,6 @@ export const accountFields: INodeProperties[] = [
}, },
description: 'Type of account', description: 'Type of account',
}, },
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any',
},
{ {
displayName: 'Shipping City', displayName: 'Shipping City',
name: 'shippingCity', name: 'shippingCity',
@ -545,6 +545,19 @@ export const accountFields: INodeProperties[] = [
default: '', default: '',
description: 'References the ID of a company in Data.com', 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', displayName: 'Owner',
name: 'ownerId', name: 'ownerId',
@ -555,6 +568,13 @@ export const accountFields: INodeProperties[] = [
default: '', default: '',
description: 'The owner of the account', description: 'The owner of the account',
}, },
{
displayName: 'Parent ID',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any',
},
{ {
displayName: 'Phone', displayName: 'Phone',
name: 'phone', name: 'phone',
@ -571,36 +591,6 @@ export const accountFields: INodeProperties[] = [
}, },
default: '', 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', displayName: 'SicDesc',
name: 'sicDesc', name: 'sicDesc',
@ -646,6 +636,16 @@ export const accountFields: INodeProperties[] = [
default: '', default: '',
description: 'The street address of the shipping address for this account. Maximum of 255 characters.', 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', displayName: 'Website',
name: 'website', name: 'website',
@ -906,7 +906,7 @@ export const accountFields: INodeProperties[] = [
name: 'isPrivate', name: 'isPrivate',
type: 'boolean', type: 'boolean',
default: false, 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', displayName: 'Owner',

View file

@ -139,7 +139,7 @@ export const attachmentFields: INodeProperties[] = [
name: 'isPrivate', name: 'isPrivate',
type: 'boolean', type: 'boolean',
default: false, 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', displayName: 'Owner',

View file

@ -24,6 +24,11 @@ export const caseOperations: INodeProperties[] = [
value: 'create', value: 'create',
description: 'Create a case', description: 'Create a case',
}, },
{
name: 'Delete',
value: 'delete',
description: 'Delete a case',
},
{ {
name: 'Get', name: 'Get',
value: 'get', value: 'get',
@ -39,11 +44,6 @@ export const caseOperations: INodeProperties[] = [
value: 'getSummary', value: 'getSummary',
description: 'Returns an overview of case\'s metadata', description: 'Returns an overview of case\'s metadata',
}, },
{
name: 'Delete',
value: 'delete',
description: 'Delete a case',
},
{ {
name: 'Update', name: 'Update',
value: 'update', value: 'update',
@ -159,7 +159,7 @@ export const caseFields: INodeProperties[] = [
name: 'isEscalated', name: 'isEscalated',
type: 'boolean', type: 'boolean',
default: false, 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', displayName: 'Origin',
@ -365,7 +365,7 @@ export const caseFields: INodeProperties[] = [
name: 'isEscalated', name: 'isEscalated',
type: 'boolean', type: 'boolean',
default: false, 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', displayName: 'Origin',
@ -713,7 +713,7 @@ export const caseFields: INodeProperties[] = [
name: 'isPublished', name: 'isPublished',
type: 'boolean', type: 'boolean',
default: false, 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)',
}, },
], ],
}, },

View file

@ -26,6 +26,11 @@ export const contactOperations: INodeProperties[] = [
value: 'addNote', value: 'addNote',
description: 'Add note to a contact', description: 'Add note to a contact',
}, },
{
name: 'Delete',
value: 'delete',
description: 'Delete a contact',
},
{ {
name: 'Create', name: 'Create',
value: 'create', value: 'create',
@ -36,11 +41,6 @@ export const contactOperations: INodeProperties[] = [
value: 'upsert', value: 'upsert',
description: 'Create a new contact, or update the current one if it already exists (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', name: 'Get',
value: 'get', value: 'get',
@ -575,7 +575,7 @@ export const contactFields: INodeProperties[] = [
name: 'jigsaw', name: 'jigsaw',
type: 'string', type: 'string',
default: '', 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', displayName: 'Last Name',
@ -1032,7 +1032,7 @@ export const contactFields: INodeProperties[] = [
name: 'isPrivate', name: 'isPrivate',
type: 'boolean', type: 'boolean',
default: false, 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', displayName: 'Owner',

View file

@ -26,6 +26,11 @@ export const customObjectOperations: INodeProperties[] = [
value: 'upsert', value: 'upsert',
description: 'Create a new record, or update the current one if it already exists (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', name: 'Get',
value: 'get', value: 'get',
@ -36,11 +41,6 @@ export const customObjectOperations: INodeProperties[] = [
value: 'getAll', value: 'getAll',
description: 'Get all custom object records', description: 'Get all custom object records',
}, },
{
name: 'Delete',
value: 'delete',
description: 'Delete a custom object record',
},
{ {
name: 'Update', name: 'Update',
value: 'update', value: 'update',

View file

@ -74,7 +74,7 @@ export const flowFields: INodeProperties[] = [
minValue: 1, minValue: 1,
maxValue: 500, maxValue: 500,
}, },
default: 100, default: 50,
description: 'Max number of results to return', description: 'Max number of results to return',
}, },
@ -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', displayName: 'Variables',

View file

@ -186,6 +186,13 @@ export const leadFields: INodeProperties[] = [
default: '', default: '',
description: 'City for the address of the lead', description: 'City for the address of the lead',
}, },
{
displayName: 'Country',
name: 'country',
type: 'string',
default: '',
description: 'Country of the lead',
},
{ {
displayName: 'Custom Fields', displayName: 'Custom Fields',
name: 'customFieldsUi', name: 'customFieldsUi',
@ -258,14 +265,14 @@ export const leadFields: INodeProperties[] = [
name: 'IsUnreadByOwner', name: 'IsUnreadByOwner',
type: 'boolean', type: 'boolean',
default: false, 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', displayName: 'Jigsaw',
name: 'jigsaw', name: 'jigsaw',
type: 'string', type: 'string',
default: '', 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', displayName: 'Lead Source',
@ -441,6 +448,13 @@ export const leadFields: INodeProperties[] = [
default: '', 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.', 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', displayName: 'Custom Fields',
name: 'customFieldsUi', name: 'customFieldsUi',
@ -513,14 +527,14 @@ export const leadFields: INodeProperties[] = [
name: 'IsUnreadByOwner', name: 'IsUnreadByOwner',
type: 'boolean', type: 'boolean',
default: false, 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', displayName: 'Jigsaw',
name: 'jigsaw', name: 'jigsaw',
type: 'string', type: 'string',
default: '', 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', displayName: 'Last Name',
@ -960,7 +974,7 @@ export const leadFields: INodeProperties[] = [
name: 'isPrivate', name: 'isPrivate',
type: 'boolean', type: 'boolean',
default: false, 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', displayName: 'Owner',

View file

@ -800,7 +800,7 @@ export const opportunityFields: INodeProperties[] = [
name: 'isPrivate', name: 'isPrivate',
type: 'boolean', type: 'boolean',
default: false, 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', displayName: 'Owner',

View file

@ -189,7 +189,7 @@ export const taskFields: INodeProperties[] = [
name: 'isReminderSet', name: 'isReminderSet',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'Indicates whether a popup reminder has been set for the task (true) or not (false)', description: 'Whether a popup reminder has been set for the task (true) or not (false)',
}, },
{ {
displayName: 'Owner', displayName: 'Owner',
@ -323,11 +323,11 @@ export const taskFields: INodeProperties[] = [
default: '', default: '',
options: [ options: [
{ {
name: 'After due date', name: 'After Due Date',
value: 'RecurrenceRegenerateAfterDueDate', value: 'RecurrenceRegenerateAfterDueDate',
}, },
{ {
name: 'After date completed', name: 'After Date Completed',
value: 'RecurrenceRegenerateAfterToday', value: 'RecurrenceRegenerateAfterToday',
}, },
{ {
@ -528,7 +528,7 @@ export const taskFields: INodeProperties[] = [
name: 'isReminderSet', name: 'isReminderSet',
type: 'boolean', type: 'boolean',
default: false, default: false,
description: 'Indicates whether a popup reminder has been set for the task (true) or not (false)', description: 'Whether a popup reminder has been set for the task (true) or not (false)',
}, },
{ {
displayName: 'Owner', displayName: 'Owner',
@ -679,11 +679,11 @@ export const taskFields: INodeProperties[] = [
default: '', default: '',
options: [ options: [
{ {
name: 'After due date', name: 'After Due Date',
value: 'RecurrenceRegenerateAfterDueDate', value: 'RecurrenceRegenerateAfterDueDate',
}, },
{ {
name: 'After date completed', name: 'After Date Completed',
value: 'RecurrenceRegenerateAfterToday', value: 'RecurrenceRegenerateAfterToday',
}, },
{ {