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,40 +13,40 @@ export const opportunityOperations = [
},
},
options: [
{
name: 'Add Note',
value: 'addNote',
description: 'Add note to an opportunity',
},
{
name: 'Create',
value: 'create',
description: 'Create an opportunity',
},
{
name: 'Update',
value: 'update',
description: 'Update an opportunity',
},
{
name: 'Get',
value: 'get',
description: 'Get an opportunity',
},
{
name: 'Get Summary',
value: 'getSummary',
description: `Returns an overview of opportunity's metadata.`,
},
{
name: 'Get All',
value: 'getAll',
description: 'Get all opportunitys',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete an opportunity',
},
{
name: 'Add Note',
value: 'addNote',
description: 'Add note to an opportunity',
name: 'Get',
value: 'get',
description: 'Get an opportunity',
},
{
name: 'Get All',
value: 'getAll',
description: 'Get all opportunitys',
},
{
name: 'Get Summary',
value: 'getSummary',
description: `Returns an overview of opportunity's metadata.`,
},
{
name: 'Update',
value: 'update',
description: 'Update an opportunity',
},
],
default: 'create',
@@ -133,6 +133,101 @@ export const opportunityFields = [
},
},
options: [
{
displayName: 'Account',
name: 'accountId',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
description: 'ID of the account associated with this opportunity.',
},
{
displayName: 'Amount',
name: 'amount',
type: 'number',
typeOptions: {
numberPrecision: 2,
},
default: '',
description: 'Estimated total sale amount',
},
{
displayName: 'Campaign',
name: 'campaignId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
default: '',
description: 'Id of the campaign that needs to be fetched',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'A description of the opportunity. Label is Contact Description. Limit: 32 KB.',
},
{
displayName: 'Forecast Category Name',
name: 'forecastCategoryName',
type: 'string',
default: '',
description: 'It is implied, but not directly controlled, by the StageName field',
},
{
displayName: 'Lead Source',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained.',
},
{
displayName: 'Next Step',
name: 'nextStep',
type: 'string',
default: '',
description: 'Description of next task in closing opportunity. Limit: 255 characters.',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the opportunity.',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the opportunity.',
},
{
displayName: 'Pricebook2 Id',
name: 'pricebook2Id',
type: 'string',
default: '',
description: 'ID of a related Pricebook2 object',
},
{
displayName: 'Probability',
name: 'probability',
type: 'number',
typeOptions: {
numberPrecision: 1,
},
default: '',
description: 'Percentage of estimated confidence in closing the opportunity',
},
{
displayName: 'Type',
name: 'type',
@@ -150,101 +245,6 @@ export const opportunityFields = [
],
description: 'Type of opportunity. For example, Existing Business or New Business. Label is Opportunity Type.',
},
{
displayName: 'Amount',
name: 'amount',
type: 'number',
typeOptions: {
numberPrecision: 2,
},
default: '',
description: 'Estimated total sale amount',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the opportunity.',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the opportunity.',
},
{
displayName: 'Next Step',
name: 'nextStep',
type: 'string',
default: '',
description: 'Description of next task in closing opportunity. Limit: 255 characters.',
},
{
displayName: 'Account',
name: 'accountId',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
description: 'ID of the account associated with this opportunity.',
},
{
displayName: 'Campaign',
name: 'campaignId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
default: '',
description: 'Id of the campaign that needs to be fetched',
},
{
displayName: 'Lead Source',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'A description of the opportunity. Label is Contact Description. Limit: 32 KB.',
},
{
displayName: 'Probability',
name: 'probability',
type: 'number',
typeOptions: {
numberPrecision: 1,
},
default: '',
description: 'Percentage of estimated confidence in closing the opportunity',
},
{
displayName: 'Pricebook2 Id',
name: 'pricebook2Id',
type: 'string',
default: '',
description: 'ID of a related Pricebook2 object',
},
{
displayName: 'Forecast Category Name',
name: 'forecastCategoryName',
type: 'string',
default: '',
description: 'It is implied, but not directly controlled, by the StageName field',
},
],
},
/* -------------------------------------------------------------------------- */
@@ -286,11 +286,34 @@ export const opportunityFields = [
},
options: [
{
displayName: 'Name',
name: 'name',
type: 'string',
displayName: 'Account',
name: 'accountId',
type: 'options',
default: '',
description: 'Required. Last name of the opportunity. Limited to 80 characters.',
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
description: 'ID of the account associated with this opportunity.',
},
{
displayName: 'Amount',
name: 'amount',
type: 'number',
typeOptions: {
numberPrecision: 2,
},
default: '',
description: 'Estimated total sale amount',
},
{
displayName: 'Campaign',
name: 'campaignId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
default: '',
description: 'Id of the campaign that needs to be fetched',
},
{
displayName: 'Close Date',
@@ -299,6 +322,78 @@ export const opportunityFields = [
default: '',
description: 'Required. Date when the opportunity is expected to close.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'A description of the opportunity. Label is Contact Description. Limit: 32 KB.',
},
{
displayName: 'Forecast Category Name',
name: 'forecastCategoryName',
type: 'string',
default: '',
description: 'It is implied, but not directly controlled, by the StageName field',
},
{
displayName: 'Lead Source',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained.',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Required. Last name of the opportunity. Limited to 80 characters.',
},
{
displayName: 'Next Step',
name: 'nextStep',
type: 'string',
default: '',
description: 'Description of next task in closing opportunity. Limit: 255 characters.',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the opportunity.',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the opportunity.',
},
{
displayName: 'Pricebook2 Id',
name: 'pricebook2Id',
type: 'string',
default: '',
description: 'ID of a related Pricebook2 object',
},
{
displayName: 'Probability',
name: 'probability',
type: 'number',
typeOptions: {
numberPrecision: 1,
},
default: '',
description: 'Percentage of estimated confidence in closing the opportunity',
},
{
displayName: 'Stage Name',
name: 'stageName',
@@ -326,101 +421,6 @@ export const opportunityFields = [
],
description: 'Type of opportunity. For example, Existing Business or New Business. Label is Opportunity Type.',
},
{
displayName: 'Amount',
name: 'amount',
type: 'number',
typeOptions: {
numberPrecision: 2,
},
default: '',
description: 'Estimated total sale amount',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the opportunity.',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the opportunity.',
},
{
displayName: 'Next Step',
name: 'nextStep',
type: 'string',
default: '',
description: 'Description of next task in closing opportunity. Limit: 255 characters.',
},
{
displayName: 'Account',
name: 'accountId',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccounts',
},
description: 'ID of the account associated with this opportunity.',
},
{
displayName: 'Campaign',
name: 'campaignId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCampaigns',
},
default: '',
description: 'Id of the campaign that needs to be fetched',
},
{
displayName: 'Lead Source',
name: 'leadSource',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getLeadSources',
},
default: '',
description: 'Source from which the lead was obtained.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: 'A description of the opportunity. Label is Contact Description. Limit: 32 KB.',
},
{
displayName: 'Probability',
name: 'probability',
type: 'number',
typeOptions: {
numberPrecision: 1,
},
default: '',
description: 'Percentage of estimated confidence in closing the opportunity',
},
{
displayName: 'Pricebook2 Id',
name: 'pricebook2Id',
type: 'string',
default: '',
description: 'ID of a related Pricebook2 object',
},
{
displayName: 'Forecast Category Name',
name: 'forecastCategoryName',
type: 'string',
default: '',
description: 'It is implied, but not directly controlled, by the StageName field',
},
],
},
@@ -603,6 +603,13 @@ export const opportunityFields = [
},
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',
@@ -613,13 +620,6 @@ export const opportunityFields = [
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[];