n8n/packages/nodes-base/nodes/Hubspot/CompanyDescription.ts

1112 lines
26 KiB
TypeScript
Raw Normal View History

2020-04-17 14:42:41 -07:00
import {
INodeProperties,
} from 'n8n-workflow';
2020-04-17 14:42:41 -07:00
export const companyOperations = [
{
displayName: 'Operation',
name: 'operation',
type: 'options',
displayOptions: {
show: {
resource: [
'company',
],
},
},
options: [
{
name: 'Create',
value: 'create',
description: 'Create a company',
},
{
name: 'Delete',
value: 'delete',
description: 'Delete a company',
},
{
name: 'Get',
value: 'get',
description: 'Get a company',
},
{
name: 'Get All',
value: 'getAll',
description: 'Get all companies',
2020-04-17 14:42:41 -07:00
},
{
name: 'Get Recently Created',
value: 'getRecentlyCreated',
description: 'Get recently created companies',
},
{
name: 'Get Recently Modified',
value: 'getRecentlyModified',
description: 'Get recently modified companies',
},
{
name: 'Search By Domain',
value: 'searchByDomain',
description: 'Search companies by domain',
},
{
name: 'Update',
value: 'update',
description: 'Update a company',
},
],
default: 'create',
description: 'The operation to perform.',
},
] as INodeProperties[];
export const companyFields = [
/* -------------------------------------------------------------------------- */
/* company:create */
/* -------------------------------------------------------------------------- */
2020-04-17 14:42:41 -07:00
{
displayName: 'Name',
name: 'name',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'create',
],
},
},
default: '',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'create',
],
},
},
options: [
{
displayName: 'About Us',
name: 'aboutUs',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
},
{
displayName: 'Annual Revenue',
name: 'annualRevenue',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'The actual or estimated annual revenue of the company',
},
{
displayName: 'City',
name: 'city',
type: 'string',
default: '',
description: 'The city where the company is located.',
},
{
displayName: 'Close Date',
name: 'closeDate',
type: 'dateTime',
default: '',
description: 'The date the company or organization was closed as a customer',
},
{
displayName: 'Company Domain Name',
name: 'companyDomainName',
type: 'string',
default: '',
2020-10-22 06:46:03 -07:00
description: 'The domain name of the company or organization',
2020-04-17 14:42:41 -07:00
},
{
displayName: 'Company Owner',
2020-04-17 14:42:41 -07:00
name: 'companyOwner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getOwners',
},
default: '',
description: 'The owner of the company',
},
{
displayName: 'Country/Region',
name: 'countryRegion',
type: 'string',
default: '',
2020-10-22 06:46:03 -07:00
description: 'The country/region in which the company or organization is located.',
2020-04-17 14:42:41 -07:00
},
{
displayName: 'Custom Properties',
name: 'customPropertiesUi',
placeholder: 'Add Custom Property',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
default: {},
options: [
{
name: 'customPropertiesValues',
displayName: 'Custom Property',
values: [
{
displayName: 'Property',
name: 'property',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanyCustomProperties',
},
default: '',
description: 'Name of the property.',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value of the property',
},
],
},
],
},
2020-04-17 14:42:41 -07:00
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: `A short statement about the company's mission and goals.`,
},
{
displayName: 'Facebook Fans',
name: 'facebookFans',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'Number of facebook fans',
},
{
displayName: 'Google Plus Page',
name: 'googlePlusPage',
type: 'string',
default: '',
description: 'The URL of the Google Plus page for the company or organization',
},
{
displayName: 'Industry',
name: 'industry',
type: 'options',
typeOptions: {
2020-10-22 06:46:03 -07:00
loadOptionsMethod: 'getCompanyIndustries',
2020-04-17 14:42:41 -07:00
},
default: '',
description: 'The type of business the company performs.',
},
{
displayName: 'Is Public',
name: 'isPublic',
type: 'boolean',
default: false,
description: 'Indicates that the company is publicly traded.',
},
{
displayName: 'Lead Status',
name: 'leadStatus',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanyleadStatuses',
},
default: '',
description: `The company's sales, prospecting or outreach status`,
},
{
displayName: 'Lifecycle Stage',
name: 'lifecycleStatus',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanylifecycleStages',
},
default: '',
description: 'The most advanced lifecycle stage across all contacts associated with this company or organization',
},
{
displayName: 'LinkedIn Bio',
name: 'linkedinBio',
type: 'string',
default: '',
description: 'The LinkedIn bio for the company or organization',
},
{
displayName: 'LinkedIn Company Page',
name: 'linkedInCompanyPage',
type: 'string',
default: '',
description: 'The URL of the LinkedIn company page for the company or organization',
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'The total number of employees who work for the company or organization',
},
{
displayName: 'Original Source Type',
name: 'originalSourceType',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanySourceTypes',
},
default: '',
description: 'Original source for the contact with the earliest activity for this company or organization',
},
{
displayName: 'Phone Number',
name: 'phoneNumber',
type: 'string',
default: '',
description: `A company's primary phone number. Powered by HubSpot Insights.`,
},
{
displayName: 'Postal Code',
name: 'postalCode',
type: 'string',
default: '',
description: 'The postal or zip code of the company or organization. Powered by HubSpot Insights.',
},
{
displayName: 'State/Region',
name: 'stateRegion',
type: 'string',
default: '',
description: 'The state or region in which the company or organization is located. Powered by HubSpot Insights.',
},
{
displayName: 'Street Address',
name: 'streetAddress',
type: 'string',
default: '',
description: 'The street address of the company or organization, including unit number. Powered by HubSpot Insights.',
},
{
displayName: 'Street Address 2',
name: 'streetAddress2',
type: 'string',
default: '',
description: 'The additional address of the company or organization. Powered by HubSpot Insights.',
},
{
displayName: 'Target Account',
name: 'targetAccount',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanyTargetAccounts',
},
default: '',
description: 'The Target Account property is a means to flag high priority companies if you are following an account based strategy',
},
{
displayName: 'Timezone',
name: 'timezone',
type: 'string',
default: '',
description: 'The time zone where the company or organization is located. Powered by HubSpot Insights.',
},
{
displayName: 'Total Money Raised',
name: 'totalMoneyRaised',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'The total amount of money raised by the company. Powered by HubSpot Insights.',
},
{
displayName: 'Twitter Bio',
name: 'twitterBio',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'The Twitter bio of the company or organization',
},
{
displayName: 'Twitter Followers',
name: 'twitterFollowers',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'The number of Twitter followers of the company or organization',
},
{
displayName: 'Twitter Handle',
name: 'twitterHandle',
type: 'string',
default: '',
description: 'The main twitter account of the company or organization',
},
{
displayName: 'Type',
name: 'type',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanyTypes',
},
default: '',
description: 'The optional classification of this company record - prospect, partner, etc.',
},
{
displayName: 'Web Technologies',
name: 'webTechnologies',
type: 'options',
typeOptions: {
2020-10-22 06:46:03 -07:00
loadOptionsMethod: 'getCompanyWebTechnologies',
2020-04-17 14:42:41 -07:00
},
default: '',
description: 'The web technologies used by the company or organization. Powered by HubSpot Insights.',
},
{
displayName: 'Website URL',
name: 'websiteUrl',
type: 'string',
default: '',
description: 'The main website of the company or organization. This property is used to identify unique companies. Powered by HubSpot Insights.',
},
{
displayName: 'Year Founded',
2020-04-17 14:42:41 -07:00
name: 'yearFounded',
type: 'string',
default: '',
description: 'The year the company was created. Powered by HubSpot Insights.',
},
2020-10-22 06:46:03 -07:00
],
2020-04-17 14:42:41 -07:00
},
/* -------------------------------------------------------------------------- */
/* company:update */
/* -------------------------------------------------------------------------- */
2020-04-17 14:42:41 -07:00
{
displayName: 'Company ID',
name: 'companyId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'update',
],
},
},
default: '',
description: 'Unique identifier for a particular company',
},
{
displayName: 'Update Fields',
name: 'updateFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'update',
],
},
},
options: [
{
displayName: 'About Us',
name: 'aboutUs',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
},
{
displayName: 'Annual Revenue',
name: 'annualRevenue',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'The actual or estimated annual revenue of the company',
},
{
displayName: 'City',
name: 'city',
type: 'string',
default: '',
description: 'The city where the company is located.',
},
{
displayName: 'Close Date',
name: 'closeDate',
type: 'dateTime',
default: '',
description: 'The date the company or organization was closed as a customer',
},
{
displayName: 'Company Domain Name',
name: 'companyDomainName',
type: 'string',
default: '',
2020-10-22 06:46:03 -07:00
description: 'The domain name of the company or organization',
2020-04-17 14:42:41 -07:00
},
{
displayName: 'Company Owmer',
name: 'companyOwner',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getOwners',
},
default: '',
description: 'The owner of the company',
},
{
displayName: 'Country/Region',
name: 'countryRegion',
type: 'string',
default: '',
2020-10-22 06:46:03 -07:00
description: 'The country/region in which the company or organization is located.',
2020-04-17 14:42:41 -07:00
},
{
displayName: 'Custom Properties',
name: 'customPropertiesUi',
placeholder: 'Add Custom Property',
type: 'fixedCollection',
typeOptions: {
multipleValues: true,
},
default: {},
options: [
{
name: 'customPropertiesValues',
displayName: 'Custom Property',
values: [
{
displayName: 'Property',
name: 'property',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanyCustomProperties',
},
default: '',
description: 'Name of the property.',
},
{
displayName: 'Value',
name: 'value',
type: 'string',
default: '',
description: 'Value of the property',
},
],
},
],
},
2020-04-17 14:42:41 -07:00
{
displayName: 'Description',
name: 'description',
type: 'string',
default: '',
description: `A short statement about the company's mission and goals.`,
},
{
displayName: 'Facebook Fans',
name: 'facebookFans',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'Number of facebook fans',
},
{
displayName: 'Google Plus Page',
name: 'googlePlusPage',
type: 'string',
default: '',
description: 'The URL of the Google Plus page for the company or organization',
},
{
displayName: 'Industry',
name: 'industry',
type: 'options',
typeOptions: {
2020-10-22 06:46:03 -07:00
loadOptionsMethod: 'getCompanyIndustries',
2020-04-17 14:42:41 -07:00
},
default: '',
description: 'The type of business the company performs.',
},
{
displayName: 'Is Public',
name: 'isPublic',
type: 'boolean',
default: false,
description: 'Indicates that the company is publicly traded.',
},
{
displayName: 'Lead Status',
name: 'leadStatus',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanyleadStatuses',
},
default: '',
description: `The company's sales, prospecting or outreach status`,
},
{
displayName: 'Lifecycle Stage',
name: 'lifecycleStatus',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanylifecycleStages',
},
default: '',
description: 'The most advanced lifecycle stage across all contacts associated with this company or organization',
},
{
displayName: 'Linkedin Bio',
name: 'linkedinBio',
type: 'string',
default: '',
description: 'The LinkedIn bio for the company or organization',
},
{
displayName: 'LinkedIn Company Page',
name: 'linkedInCompanyPage',
type: 'string',
default: '',
description: 'The URL of the LinkedIn company page for the company or organization',
},
{
displayName: 'Name',
name: 'name',
type: 'string',
default: '',
},
{
displayName: 'Number Of Employees',
name: 'numberOfEmployees',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'The total number of employees who work for the company or organization',
},
{
displayName: 'Original Source Type',
name: 'originalSourceType',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanySourceTypes',
},
default: '',
description: 'Original source for the contact with the earliest activity for this company or organization',
},
{
displayName: 'Phone Number',
name: 'phoneNumber',
type: 'string',
default: '',
description: `A company's primary phone number. Powered by HubSpot Insights.`,
},
{
displayName: 'Postal Code',
name: 'postalCode',
type: 'string',
default: '',
description: 'The postal or zip code of the company or organization. Powered by HubSpot Insights.',
},
{
displayName: 'State/Region',
name: 'stateRegion',
type: 'string',
default: '',
description: 'The state or region in which the company or organization is located. Powered by HubSpot Insights.',
},
{
displayName: 'Street Address',
name: 'streetAddress',
type: 'string',
default: '',
description: 'The street address of the company or organization, including unit number. Powered by HubSpot Insights.',
},
{
displayName: 'Street Address 2',
name: 'streetAddress2',
type: 'string',
default: '',
description: 'The additional address of the company or organization. Powered by HubSpot Insights.',
},
{
displayName: 'Target Account',
name: 'targetAccount',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanyTargetAccounts',
},
default: '',
description: 'The Target Account property is a means to flag high priority companies if you are following an account based strategy',
},
{
displayName: 'Timezone',
name: 'timezone',
type: 'string',
default: '',
description: 'The time zone where the company or organization is located. Powered by HubSpot Insights.',
},
{
displayName: 'Total Money Raised',
name: 'totalMoneyRaised',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'The total amount of money raised by the company. Powered by HubSpot Insights.',
},
{
displayName: 'Twitter Bio',
name: 'twitterBio',
type: 'string',
typeOptions: {
alwaysOpenEditWindow: true,
},
default: '',
description: 'The Twitter bio of the company or organization',
},
{
displayName: 'Twitter Followers',
name: 'twitterFollowers',
type: 'number',
typeOptions: {
minValue: 0,
},
default: 0,
description: 'The number of Twitter followers of the company or organization',
},
{
displayName: 'Twitter Handle',
name: 'twitterHandle',
type: 'string',
default: '',
description: 'The main twitter account of the company or organization',
},
{
displayName: 'Type',
name: 'type',
type: 'options',
typeOptions: {
loadOptionsMethod: 'getCompanyTypes',
},
default: '',
description: 'The optional classification of this company record - prospect, partner, etc.',
},
{
displayName: 'Web Technologies',
name: 'webTechnologies',
type: 'options',
typeOptions: {
2020-10-22 06:46:03 -07:00
loadOptionsMethod: 'getCompanyWebTechnologies',
2020-04-17 14:42:41 -07:00
},
default: '',
description: 'The web technologies used by the company or organization. Powered by HubSpot Insights.',
},
{
displayName: 'Website URL',
name: 'websiteUrl',
type: 'string',
default: '',
description: 'The main website of the company or organization. This property is used to identify unique companies. Powered by HubSpot Insights.',
},
{
displayName: 'Year Founded',
2020-04-17 14:42:41 -07:00
name: 'yearFounded',
type: 'string',
default: '',
description: 'The year the company was created. Powered by HubSpot Insights.',
},
2020-10-22 06:46:03 -07:00
],
2020-04-17 14:42:41 -07:00
},
/* -------------------------------------------------------------------------- */
/* company:get */
/* -------------------------------------------------------------------------- */
2020-04-17 14:42:41 -07:00
{
displayName: 'Company ID',
name: 'companyId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'get',
],
},
},
default: '',
description: 'Unique identifier for a particular company',
},
{
displayName: 'Additional Fields',
name: 'additionalFields',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'get',
],
},
},
options: [
{
displayName: 'Include Merge Audits',
name: 'includeMergeAudits',
type: 'boolean',
default: false,
description: `Returns any merge history if the company has been previously merged with another company record. Defaults to false.`,
},
2020-10-22 06:46:03 -07:00
],
2020-04-17 14:42:41 -07:00
},
/* -------------------------------------------------------------------------- */
/* company:getAll */
/* -------------------------------------------------------------------------- */
2020-04-17 14:42:41 -07:00
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'getAll',
],
},
},
default: false,
description: 'If all results should be returned or only up to a given limit.',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'getAll',
],
returnAll: [
false,
],
},
},
typeOptions: {
minValue: 1,
maxValue: 250,
},
default: 100,
description: 'How many results to return.',
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'getAll',
],
},
},
options: [
{
displayName: 'Include Merge Audits',
name: 'includeMergeAudits',
type: 'boolean',
default: false,
description: `Returns any merge history if a company has been previously merged with another company record. Defaults to false.`,
},
{
displayName: 'Properties',
name: 'properties',
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getCompanyProperties',
},
default: '',
description: `Used to include specific company properties in the results.<br/>
By default, the results will only include company ID and will not include the values for any properties for your companys.<br/>
Including this parameter will include the data for the specified property in the results.<br/>
You can include this parameter multiple times to request multiple properties separed by ,.`,
},
{
displayName: 'Properties With History',
name: 'propertiesWithHistory',
type: 'string',
default: '',
:zap: Remove unnessasry <br/> (#2340) * introduce analytics * add user survey backend * add user survey backend * set answers on survey submit Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> * change name to personalization * lint Co-authored-by: Mutasem Aldmour <4711238+mutdmour@users.noreply.github.com> * N8n 2495 add personalization modal (#2280) * update modals * add onboarding modal * implement questions * introduce analytics * simplify impl * implement survey handling * add personalized cateogry * update modal behavior * add thank you view * handle empty cases * rename modal * standarize modal names * update image, add tags to headings * remove unused file * remove unused interfaces * clean up footer spacing * introduce analytics * refactor to fix bug * update endpoint * set min height * update stories * update naming from questions to survey * remove spacing after core categories * fix bug in logic * sort nodes * rename types * merge with be * rename userSurvey * clean up rest api * use constants for keys * use survey keys * clean up types * move personalization to its own file Co-authored-by: ahsan-virani <ahsan.virani@gmail.com> * update parameter inputs to be multiline * update spacing * Survey new options (#2300) * split up options * fix quotes * remove unused import * refactor node credentials * add user created workflow event (#2301) * update multi params * simplify env vars * fix versionCli on FE * update personalization env * clean up node detail settings * fix event User opened Credentials panel * fix font sizes across modals * clean up input spacing * fix select modal spacing * increase spacing * fix input copy * fix webhook, tab spacing, retry button * fix button sizes * fix button size * add mini xlarge sizes * fix webhook spacing * fix nodes panel event * fix workflow id in workflow execute event * improve telemetry error logging * fix config and stop process events * add flush call on n8n stop * ready for release * fix input error highlighting * revert change * update toggle spacing * fix delete positioning * keep tooltip while focused * set strict size * increase left spacing * fix sort icons * remove unnessasry <br/> * remove unnessary break * remove unnessary margin * clean unused functionality * remove unnessary css * remove duplicate tracking * only show tooltip when hovering over label * remove extra space * add br * remove extra space * clean up commas * clean up commas * remove extra space * remove extra space * rewrite desc * add commas * add space * remove extra space * add space * add dot * update credentials section * use includes Co-authored-by: ahsan-virani <ahsan.virani@gmail.com> Co-authored-by: Jan Oberhauser <jan.oberhauser@gmail.com>
2021-10-27 13:00:13 -07:00
description: `Works similarly to properties=, but this parameter will include the history for the specified property,
2020-04-17 14:42:41 -07:00
instead of just including the current value. Use this parameter when you need the full history of changes to a property's value.`,
},
2020-10-22 06:46:03 -07:00
],
2020-04-17 14:42:41 -07:00
},
/* -------------------------------------------------------------------------- */
/* company:delete */
/* -------------------------------------------------------------------------- */
2020-04-17 14:42:41 -07:00
{
displayName: 'Company ID',
name: 'companyId',
type: 'string',
required: true,
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'delete',
],
},
},
default: '',
description: 'Unique identifier for a particular company',
},
/* -------------------------------------------------------------------------- */
/* company:getRecentlyCreated company:getRecentlyModifie */
/* -------------------------------------------------------------------------- */
2020-04-17 14:42:41 -07:00
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'getRecentlyCreated',
'getRecentlyModified',
],
},
},
default: false,
description: 'If all results should be returned or only up to a given limit.',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'getRecentlyCreated',
'getRecentlyModified',
],
returnAll: [
false,
],
},
},
typeOptions: {
minValue: 1,
maxValue: 250,
},
default: 100,
description: 'How many results to return.',
},
{
displayName: 'Filters',
name: 'filters',
type: 'collection',
placeholder: 'Add Filter',
default: {},
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'getRecentlyModified',
],
},
},
options: [
{
displayName: 'Since',
name: 'since',
type: 'dateTime',
default: '',
description: `Only return companys created after timestamp x`,
},
{
displayName: 'Include Property Versions',
name: 'includePropertyVersions',
type: 'boolean',
default: false,
description: `By default, you will only get data for the most recent version of a property in the "versions" data.<br/>
If you include this parameter, you will get data for all previous versions.`,
},
2020-10-22 06:46:03 -07:00
],
2020-04-17 14:42:41 -07:00
},
/* -------------------------------------------------------------------------- */
/* company:searchByDomain */
/* -------------------------------------------------------------------------- */
2020-04-17 14:42:41 -07:00
{
displayName: 'Domain',
name: 'domain',
type: 'string',
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'searchByDomain',
],
},
},
required: true,
default: '',
},
{
displayName: 'Return All',
name: 'returnAll',
type: 'boolean',
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'searchByDomain',
],
},
},
default: false,
description: 'If all results should be returned or only up to a given limit.',
},
{
displayName: 'Limit',
name: 'limit',
type: 'number',
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'searchByDomain',
],
returnAll: [
false,
],
},
},
typeOptions: {
minValue: 1,
maxValue: 250,
},
default: 100,
description: 'How many results to return.',
},
{
displayName: 'Options',
name: 'options',
type: 'collection',
placeholder: 'Add Field',
default: {},
displayOptions: {
show: {
resource: [
'company',
],
operation: [
'searchByDomain',
],
},
},
options: [
{
displayName: 'Properties',
name: 'properties',
type: 'multiOptions',
typeOptions: {
loadOptionsMethod: 'getCompanyProperties',
},
default: '',
description: `Used to include specific company properties in the results.<br/>
By default, the results will only include company ID and will not include the values for any properties for your companys.<br/>
Including this parameter will include the data for the specified property in the results.<br/>
You can include this parameter multiple times to request multiple properties separed by ,.`,
},
2020-10-22 06:46:03 -07:00
],
2020-04-17 14:42:41 -07:00
},
] as INodeProperties[];