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 accountOperations = [
},
},
options: [
{
name: 'Add Note',
value: 'addNote',
description: 'Add note to an account',
},
{
name: 'Create',
value: 'create',
description: 'Create an account',
},
{
name: 'Update',
value: 'update',
description: 'Update an account',
},
{
name: 'Get',
value: 'get',
description: 'Get an account',
},
{
name: 'Get Summary',
value: 'getSummary',
description: `Returns an overview of account's metadata.`,
},
{
name: 'Get All',
value: 'getAll',
description: 'Get all accounts',
},
{
name: 'Get Summary',
value: 'getSummary',
description: `Returns an overview of account's metadata.`,
},
{
name: 'Delete',
value: 'delete',
description: 'Delete an account',
},
{
name: 'Add Note',
value: 'addNote',
description: 'Add note to an account',
name: 'Update',
value: 'update',
description: 'Update an account',
},
],
default: 'create',
@@ -94,108 +94,6 @@ export const accountFields = [
},
},
options: [
{
displayName: 'Fax',
name: 'fax',
type: 'string',
default: '',
description: 'Fax number for the account.',
},
{
displayName: 'Type',
name: 'type',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccountTypes',
},
description: 'Type of account',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the account.',
},
{
displayName: 'Jigsaw',
name: 'jigsaw',
type: 'string',
default: '',
description: 'references the ID of a company in Data.com',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the account.',
},
{
displayName: 'SicDesc',
name: 'sicDesc',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
description: 'A brief description of an organizations line of business, based on its SIC code.',
},
{
displayName: 'Website',
name: 'website',
type: 'string',
default: '',
description: 'The website of this account. Maximum of 255 characters.',
},
{
displayName: 'Industry',
name: 'industry',
type: 'string',
default: '',
description: 'The website of this account. Maximum of 255 characters.',
},
{
displayName: 'Parent Id',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any.',
},
{
displayName: 'Billing City',
name: 'billingCity',
type: 'string',
default: '',
description: 'Details for the billing address of this account. Maximum size is 40 characters.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'Text description of the account. Limited to 32,000 KB.',
},
{
displayName: 'Billing State',
name: 'billingState',
type: 'string',
default: '',
description: 'Details for the billing address of this account. Maximum size is 80 characters.',
},
{
displayName: 'Shipping City',
name: 'shippingCity',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. City maximum size is 40 characters',
},
{
displayName: 'Account Source',
name: 'accountSource',
@@ -217,18 +115,11 @@ export const accountFields = [
description: 'Estimated annual revenue of the account.',
},
{
displayName: 'Billing Street',
name: 'billingStreet',
displayName: 'Billing City',
name: 'billingCity',
type: 'string',
default: '',
description: 'Street address for the billing address of this account.',
},
{
displayName: 'Shipping State',
name: 'shippingState',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. State maximum size is 80 characters.',
description: 'Details for the billing address of this account. Maximum size is 40 characters.',
},
{
displayName: 'Billing Country',
@@ -237,20 +128,6 @@ export const accountFields = [
default: '',
description: 'Details for the billing address of this account. Maximum size is 80 characters.',
},
{
displayName: 'Shipping Street',
name: 'shippingStreet',
type: 'string',
default: '',
description: 'The street address of the shipping address for this account. Maximum of 255 characters.',
},
{
displayName: 'Shipping Country',
name: 'shippingCountry',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. Country maximum size is 80 characters.',
},
{
displayName: 'Billing Postal Code',
name: 'billingPostalCode',
@@ -258,6 +135,51 @@ export const accountFields = [
default: '',
description: 'Details for the billing address of this account. Maximum size is 20 characters.',
},
{
displayName: 'Billing State',
name: 'billingState',
type: 'string',
default: '',
description: 'Details for the billing address of this account. Maximum size is 80 characters.',
},
{
displayName: 'Billing Street',
name: 'billingStreet',
type: 'string',
default: '',
description: 'Street address for the billing address of this account.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'Text description of the account. Limited to 32,000 KB.',
},
{
displayName: 'Fax',
name: 'fax',
type: 'string',
default: '',
description: 'Fax number for the account.',
},
{
displayName: 'Jigsaw',
name: 'jigsaw',
type: 'string',
default: '',
description: 'references the ID of a company in Data.com',
},
{
displayName: 'Industry',
name: 'industry',
type: 'string',
default: '',
description: 'The website of this account. Maximum of 255 characters.',
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
@@ -265,6 +187,63 @@ export const accountFields = [
default: '',
description: 'Number of employees',
},
{
displayName: 'Owner',
name: 'owner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the account.',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the account.',
},
{
displayName: 'SicDesc',
name: 'sicDesc',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
description: 'A brief description of an organizations line of business, based on its SIC code.',
},
{
displayName: 'Type',
name: 'type',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccountTypes',
},
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',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. City maximum size is 40 characters',
},
{
displayName: 'Shipping Country',
name: 'shippingCountry',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. Country maximum size is 80 characters.',
},
{
displayName: 'Shipping Postal Code',
name: 'shippingPostalCode',
@@ -272,6 +251,27 @@ export const accountFields = [
default: '',
description: 'Details of the shipping address for this account. Postal code maximum size is 20 characters.',
},
{
displayName: 'Shipping State',
name: 'shippingState',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. State maximum size is 80 characters.',
},
{
displayName: 'Shipping Street',
name: 'shippingStreet',
type: 'string',
default: '',
description: 'The street address of the shipping address for this account. Maximum of 255 characters.',
},
{
displayName: 'Website',
name: 'website',
type: 'string',
default: '',
description: 'The website of this account. Maximum of 255 characters.',
},
],
},
/* -------------------------------------------------------------------------- */
@@ -312,115 +312,6 @@ export const accountFields = [
},
},
options: [
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
description: 'Name of the account. Maximum size is 255 characters.',
},
{
displayName: 'Fax',
name: 'fax',
type: 'string',
default: '',
description: 'Fax number for the account.',
},
{
displayName: 'Type',
name: 'type',
type: 'options',
default: '',
typeOptions: {
loadOptionsMethod: 'getAccountTypes',
},
description: 'Type of account',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the account.',
},
{
displayName: 'Jigsaw',
name: 'jigsaw',
type: 'string',
default: '',
description: 'references the ID of a company in Data.com',
},
{
displayName: 'Owner',
name: 'ownerId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the account.',
},
{
displayName: 'SicDesc',
name: 'sicDesc',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
description: 'A brief description of an organizations line of business, based on its SIC code.',
},
{
displayName: 'Website',
name: 'website',
type: 'string',
default: '',
description: 'The website of this account. Maximum of 255 characters.',
},
{
displayName: 'Industry',
name: 'industry',
type: 'string',
default: '',
description: 'The website of this account. Maximum of 255 characters.',
},
{
displayName: 'Parent Id',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any.',
},
{
displayName: 'Billing City',
name: 'billingCity',
type: 'string',
default: '',
description: 'Details for the billing address of this account. Maximum size is 40 characters.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'Text description of the account. Limited to 32,000 KB.',
},
{
displayName: 'Billing State',
name: 'billingState',
type: 'string',
default: '',
description: 'Details for the billing address of this account. Maximum size is 80 characters.',
},
{
displayName: 'Shipping City',
name: 'shippingCity',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. City maximum size is 40 characters',
},
{
displayName: 'Account Source',
name: 'accountSource',
@@ -442,18 +333,11 @@ export const accountFields = [
description: 'Estimated annual revenue of the account.',
},
{
displayName: 'Billing Street',
name: 'billingStreet',
displayName: 'Billing City',
name: 'billingCity',
type: 'string',
default: '',
description: 'Street address for the billing address of this account.',
},
{
displayName: 'Shipping State',
name: 'shippingState',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. State maximum size is 80 characters.',
description: 'Details for the billing address of this account. Maximum size is 40 characters.',
},
{
displayName: 'Billing Country',
@@ -462,20 +346,6 @@ export const accountFields = [
default: '',
description: 'Details for the billing address of this account. Maximum size is 80 characters.',
},
{
displayName: 'Shipping Street',
name: 'shippingStreet',
type: 'string',
default: '',
description: 'The street address of the shipping address for this account. Maximum of 255 characters.',
},
{
displayName: 'Shipping Country',
name: 'shippingCountry',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. Country maximum size is 80 characters.',
},
{
displayName: 'Billing Postal Code',
name: 'billingPostalCode',
@@ -483,6 +353,85 @@ export const accountFields = [
default: '',
description: 'Details for the billing address of this account. Maximum size is 20 characters.',
},
{
displayName: 'Billing State',
name: 'billingState',
type: 'string',
default: '',
description: 'Details for the billing address of this account. Maximum size is 80 characters.',
},
{
displayName: 'Billing Street',
name: 'billingStreet',
type: 'string',
default: '',
description: 'Street address for the billing address of this account.',
},
{
displayName: 'Description',
name: 'description',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'Text description of the account. Limited to 32,000 KB.',
},
{
displayName: 'Fax',
name: 'fax',
type: 'string',
default: '',
description: 'Fax number for the account.',
},
{
displayName: 'Industry',
name: 'industry',
type: 'string',
default: '',
description: 'The website of this account. Maximum of 255 characters.',
},
{
displayName: 'Jigsaw',
name: 'jigsaw',
type: 'string',
default: '',
description: 'references the ID of a company in Data.com',
},
{
displayName: 'Owner',
name: 'ownerId',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getUsers',
},
default: '',
description: 'The owner of the account.',
},
{
displayName: 'Phone',
name: 'phone',
type: 'string',
default: '',
description: 'Phone number for the account.',
},
{
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',
@@ -490,6 +439,36 @@ export const accountFields = [
default: '',
description: 'Number of employees',
},
{
displayName: 'Parent Id',
name: 'parentId',
type: 'string',
default: '',
description: 'ID of the parent object, if any.',
},
{
displayName: 'SicDesc',
name: 'sicDesc',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
description: 'A brief description of an organizations line of business, based on its SIC code.',
},
{
displayName: 'Shipping City',
name: 'shippingCity',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. City maximum size is 40 characters',
},
{
displayName: 'Shipping Country',
name: 'shippingCountry',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. Country maximum size is 80 characters.',
},
{
displayName: 'Shipping Postal Code',
name: 'shippingPostalCode',
@@ -497,6 +476,27 @@ export const accountFields = [
default: '',
description: 'Details of the shipping address for this account. Postal code maximum size is 20 characters.',
},
{
displayName: 'Shipping State',
name: 'shippingState',
type: 'string',
default: '',
description: 'Details of the shipping address for this account. State maximum size is 80 characters.',
},
{
displayName: 'Shipping Street',
name: 'shippingStreet',
type: 'string',
default: '',
description: 'The street address of the shipping address for this account. Maximum of 255 characters.',
},
{
displayName: 'Website',
name: 'website',
type: 'string',
default: '',
description: 'The website of this account. Maximum of 255 characters.',
},
],
},
@@ -678,6 +678,13 @@ export const accountFields = [
},
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: 'ownerId',
@@ -688,13 +695,6 @@ export const accountFields = [
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[];