n8n-nodes-base
Version:
Base nodes of n8n
57 lines (53 loc) • 2.39 kB
text/typescript
/**
* HubSpot Node - Version 2.1
* Discriminator: resource=deal, operation=get
*/
interface Credentials {
hubspotApi: CredentialReference;
hubspotAppToken: CredentialReference;
hubspotOAuth2Api: CredentialReference;
}
/** Get a contact */
export type HubspotV21DealGetParams = {
resource: 'deal';
operation: 'get';
authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression<string>;
/**
* Deal to Get
* @default {"mode":"list","value":""}
*/
dealId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/**
* Filters
* @default {}
*/
filters?: {
/** By default, you will only get data for the most recent version of a property in the "versions" data. If you include this parameter, you will get data for all previous versions.
* @default false
*/
includePropertyVersions?: boolean | Expression<boolean>;
/** <p>Used to include specific deal properties in the results. By default, the results will only include Deal ID and will not include the values for any properties for your Deals.</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 {}
*/
propertiesCollection?: {
/** Deal Properties to Include
*/
propertiesValues?: {
/** Whether to include specific Deal properties in the returned results. Choose from a list, or specify IDs using an <a href="https://docs.n8n.io/code/expressions/">expression</a>. 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 HubspotV21DealGetNode = {
type: 'n8n-nodes-base.hubspot';
version: 2.1;
credentials?: Credentials;
config: NodeConfig<HubspotV21DealGetParams>;
};