n8n-nodes-base
Version:
Base nodes of n8n
51 lines (47 loc) • 1.97 kB
text/typescript
/**
* HubSpot Node - Version 1
* Discriminator: resource=contact, operation=get
*/
interface Credentials {
hubspotApi: CredentialReference;
hubspotAppToken: CredentialReference;
hubspotOAuth2Api: CredentialReference;
}
/** Get a contact */
export type HubspotV1ContactGetParams = {
resource: 'contact';
operation: 'get';
authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression<string>;
/**
* Unique identifier for a particular contact
*/
contactId?: string | Expression<string> | PlaceholderValue;
/**
* Additional Fields
* @default {}
*/
additionalFields?: {
/** Specify which form submissions should be fetched
* @default all
*/
formSubmissionMode?: 'all' | 'none' | 'newest' | 'oldest' | Expression<string>;
/** Whether current list memberships should be fetched for the contact
* @default true
*/
listMemberships?: boolean | Expression<boolean>;
/** <p>Used to include specific company properties in the results. By default, the results will only include company ID and will not include the values for any properties for your company.</p><p>Including this parameter will include the data for the specified property in the results. You can include this parameter multiple times to request multiple properties separated by a comma: <code>,</code>.</p>. Choose from the list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.
* @default []
*/
properties?: string[];
/** Specify if the current value for a property should be fetched, or the value and all the historical values for that property
* @default valueAndHistory
*/
propertyMode?: 'valueAndHistory' | 'valueOnly' | Expression<string>;
};
};
export type HubspotV1ContactGetNode = {
type: 'n8n-nodes-base.hubspot';
version: 1;
credentials?: Credentials;
config: NodeConfig<HubspotV1ContactGetParams>;
};