Minor improvements zu Salesforce-Node

This commit is contained in:
Jan Oberhauser
2020-02-12 22:35:56 -08:00
parent 2eaeb4f4c2
commit f64a1a9bf1
10 changed files with 1553 additions and 1542 deletions

View File

@@ -13,36 +13,6 @@ export const leadOperations = [
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a lead',
},
{
name: 'Update',
value: 'update',
description: 'Update a lead',
},
{
name: 'Get',
value: 'get',
description: 'Get a lead',
},
{
name: 'Get Summary',
value: 'getSummary',
description: `Returns an overview of Lead's metadata.`,
},
{
name: 'Get All',
value: 'getAll',
description: 'Get all leads',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a lead',
},
{
name: 'Add Lead To Campaign',
value: 'addToCampaign',
@@ -53,6 +23,36 @@ export const leadOperations = [
value: 'addNote',
description: 'Add note to a lead',
},
{
name: 'Create',
value: 'create',
description: 'Create a lead',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a lead',
},
{
name: 'Get',
value: 'get',
description: 'Get a lead',
},
{
name: 'Get All',
value: 'getAll',
description: 'Get all leads',
},
{
name: 'Get Summary',
value: 'getSummary',
description: `Returns an overview of Lead's metadata.`,
},
{
name: 'Update',
value: 'update',
description: 'Update a lead',
},
],
default: 'create',
description: 'The operation to perform.',
@@ -117,6 +117,17 @@ export const leadFields = [
},
},
options: [
{
displayName: 'Annual Revenue',
name: 'annualRevenue',
type: 'number',
typeOptions: {
numberPrecision: 2,
numberStepSize: 1,
},
default: '',
description: 'Annual revenue for the company of the lead.',
},
{
displayName: 'City',
name: 'city',
@@ -124,6 +135,16 @@ export const leadFields = [
default: '',
description: 'City for the address of the lead.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'Description of the lead.',
},
{
displayName: 'Email',
name: 'email',
@@ -132,25 +153,25 @@ export const leadFields = [
description: 'Email address for the lead.',
},
{
displayName: 'Phone',
name: 'phone',
displayName: 'Fist Name',
name: 'firstname',
type: 'string',
default: '',
description: 'Phone number for the lead.',
description: 'First name of the lead. Limited to 40 characters.',
},
{
displayName: 'State',
name: 'state',
displayName: 'Industry',
name: 'industry',
type: 'string',
default: '',
description: 'State for the address of the lead.',
description: 'Website for the lead.',
},
{
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'Title for the lead, for example CFO or CEO.',
displayName: 'Is Unread By Owner',
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.',
},
{
displayName: 'Jigsaw',
@@ -160,6 +181,50 @@ export const leadFields = [
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',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained.',
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
type: 'number',
typeOptions: {
numberStepSize: 1,
},
default: '',
description: 'Number of employees at the leads company. Label is Employees.',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the lead.',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the lead.',
},
{
displayName: 'Postal Code',
name: 'postalCode',
type: 'string',
default: '',
description: 'Postal code for the address of the lead. Label is Zip/Postal Code.',
},
{
displayName: 'Rating',
name: 'rating',
@@ -167,6 +232,20 @@ export const leadFields = [
default: '',
description: 'Rating of the lead.',
},
{
displayName: 'Salutation',
name: 'salutation',
type: 'string',
default: '',
description: 'Salutation for the lead.',
},
{
displayName: 'State',
name: 'state',
type: 'string',
default: '',
description: 'State for the address of the lead.',
},
{
displayName: 'Status',
name: 'status',
@@ -185,14 +264,11 @@ export const leadFields = [
description: 'Street number and name for the address of the lead',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'The owner of the lead.',
description: 'Title for the lead, for example CFO or CEO.',
},
{
displayName: 'Website',
@@ -201,82 +277,6 @@ export const leadFields = [
default: '',
description: 'Website for the lead.',
},
{
displayName: 'Industry',
name: 'industry',
type: 'string',
default: '',
description: 'Website for the lead.',
},
{
displayName: 'Fist Name',
name: 'firstname',
type: 'string',
default: '',
description: 'First name of the lead. Limited to 40 characters.',
},
{
displayName: 'Lead Source',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained.',
},
{
displayName: 'Postal Code',
name: 'postalCode',
type: 'string',
default: '',
description: 'Postal code for the address of the lead. Label is Zip/Postal Code.',
},
{
displayName: 'Salutation',
name: 'salutation',
type: 'string',
default: '',
description: 'Salutation for the lead.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'Description of the lead.',
},
{
displayName: 'Annual Revenue',
name: 'annualRevenue',
type: 'number',
typeOptions: {
numberPrecision: 2,
numberStepSize: 1,
},
default: '',
description: 'Annual revenue for the company of the lead.',
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
type: 'number',
typeOptions: {
numberStepSize: 1,
},
default: '',
description: 'Number of employees at the leads company. Label is Employees.',
},
{
displayName: 'Is Unread By Owner',
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.',
},
]
},
/* -------------------------------------------------------------------------- */
@@ -318,18 +318,15 @@ export const leadFields = [
},
options: [
{
displayName: 'Company',
name: 'company',
type: 'string',
displayName: 'Annual Revenue',
name: 'annualRevenue',
type: 'number',
typeOptions: {
numberPrecision: 2,
numberStepSize: 1,
},
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: 'Last Name',
name: 'lastname',
type: 'string',
default: '',
description: 'Required. Last name of the lead. Limited to 80 characters.',
description: 'Annual revenue for the company of the lead.',
},
{
displayName: 'City',
@@ -338,6 +335,23 @@ export const leadFields = [
default: '',
description: 'City for the address of the lead.',
},
{
displayName: 'Company',
name: 'company',
type: 'string',
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: 'Description',
name: 'description',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'Description of the lead.',
},
{
displayName: 'Email',
name: 'email',
@@ -346,25 +360,25 @@ export const leadFields = [
description: 'Email address for the lead.',
},
{
displayName: 'Phone',
name: 'phone',
displayName: 'Fist Name',
name: 'firstname',
type: 'string',
default: '',
description: 'Phone number for the lead.',
description: 'First name of the lead. Limited to 40 characters.',
},
{
displayName: 'State',
name: 'state',
displayName: 'Industry',
name: 'industry',
type: 'string',
default: '',
description: 'State for the address of the lead.',
description: 'Website for the lead.',
},
{
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'Title for the lead, for example CFO or CEO.',
displayName: 'Is Unread By Owner',
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.',
},
{
displayName: 'Jigsaw',
@@ -374,6 +388,57 @@ export const leadFields = [
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',
name: 'lastname',
type: 'string',
default: '',
description: 'Required. Last name of the lead. Limited to 80 characters.',
},
{
displayName: 'Lead Source',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained.',
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
type: 'number',
typeOptions: {
numberStepSize: 1,
},
default: '',
description: 'Number of employees at the leads company. Label is Employees.',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the lead.',
},
{
displayName: 'Postal Code',
name: 'postalCode',
type: 'string',
default: '',
description: 'Postal code for the address of the lead. Label is Zip/Postal Code.',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the lead.',
},
{
displayName: 'Rating',
name: 'rating',
@@ -381,6 +446,20 @@ export const leadFields = [
default: '',
description: 'Rating of the lead.',
},
{
displayName: 'Salutation',
name: 'salutation',
type: 'string',
default: '',
description: 'Salutation for the lead.',
},
{
displayName: 'State',
name: 'state',
type: 'string',
default: '',
description: 'State for the address of the lead.',
},
{
displayName: 'Status',
name: 'status',
@@ -399,14 +478,11 @@ export const leadFields = [
description: 'Street number and name for the address of the lead',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
displayName: 'Title',
name: 'title',
type: 'string',
default: '',
description: 'The owner of the lead.',
description: 'Title for the lead, for example CFO or CEO.',
},
{
displayName: 'Website',
@@ -415,82 +491,6 @@ export const leadFields = [
default: '',
description: 'Website for the lead.',
},
{
displayName: 'Industry',
name: 'industry',
type: 'string',
default: '',
description: 'Website for the lead.',
},
{
displayName: 'Fist Name',
name: 'firstname',
type: 'string',
default: '',
description: 'First name of the lead. Limited to 40 characters.',
},
{
displayName: 'Lead Source',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained.',
},
{
displayName: 'Postal Code',
name: 'postalCode',
type: 'string',
default: '',
description: 'Postal code for the address of the lead. Label is Zip/Postal Code.',
},
{
displayName: 'Salutation',
name: 'salutation',
type: 'string',
default: '',
description: 'Salutation for the lead.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'Description of the lead.',
},
{
displayName: 'Annual Revenue',
name: 'annualRevenue',
type: 'number',
typeOptions: {
numberPrecision: 2,
numberStepSize: 1,
},
default: '',
description: 'Annual revenue for the company of the lead.',
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
type: 'number',
typeOptions: {
numberStepSize: 1,
},
default: '',
description: 'Number of employees at the leads company. Label is Employees.',
},
{
displayName: 'Is Unread By Owner',
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.',
},
]
},
@@ -740,6 +740,13 @@ export const leadFields = [
},
description: 'Body of the note. Limited to 32 KB.',
},
{
displayName: 'Is Private',
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',
},
{
displayName: 'Owner',
name: 'owner',
@@ -750,13 +757,6 @@ export const leadFields = [
default: '',
description: 'ID of the user who owns the note.',
},
{
displayName: 'Is Private',
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',
},
]
},
] as INodeProperties[];