/** * HubSpot Node - Version 2.1 * Discriminator: resource=deal, operation=search */ interface Credentials { hubspotApi: CredentialReference; hubspotAppToken: CredentialReference; hubspotOAuth2Api: CredentialReference; } /** Search contacts */ export type HubspotV21DealSearchParams = { resource: 'deal'; operation: 'search'; authentication?: 'apiKey' | 'appToken' | 'oAuth2' | Expression; /** * Whether to return all results or only up to a given limit * @default false */ returnAll?: boolean | Expression; /** * Max number of results to return * @displayOptions.show { returnAll: [false] } * @default 100 */ limit?: number | Expression; /** * When multiple filters are provided within a Filter Group, they will be combined using a logical AND operator. When multiple Filter Groups are provided, they will be combined using a logical OR operator. The system supports a maximum of three Filter Groups with up to three filters each. More info <a href="https://developers.hubspot.com/docs/api/crm/search">here</a> * @default {} */ filterGroupsUi?: { /** Filter Group */ filterGroupsValues?: Array<{ /** Use filters to limit the results to only CRM objects with matching property values. More info <a href="https://developers.hubspot.com/docs/api/crm/search">here</a>. * @default {} */ filtersUi?: { /** Filter */ filterValues?: Array<{ /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> */ propertyName?: string | Expression; /** Type * @default ={{$parameter["&propertyName"].split("|")[1]}} */ type?: unknown; /** Operator * @displayOptions.hide { type: ["number"] } * @default EQ */ operator?: 'CONTAINS_TOKEN' | 'EQ' | 'HAS_PROPERTY' | 'NOT_HAS_PROPERTY' | 'NEQ' | Expression; /** Operator * @displayOptions.show { type: ["number"] } * @default EQ */ operator?: 'CONTAINS_TOKEN' | 'EQ' | 'GT' | 'GTE' | 'HAS_PROPERTY' | 'NOT_HAS_PROPERTY' | 'LT' | 'LTE' | 'NEQ' | Expression; /** Value * @displayOptions.hide { operator: ["HAS_PROPERTY", "NOT_HAS_PROPERTY"] } */ value?: string | Expression | PlaceholderValue; }>; }; }>; }; /** * Options * @default {} */ additionalFields?: { /** Defines the direction in which search results are ordered. Default value is Descending. * @default DESCENDING */ direction?: 'ASCENDING' | 'DESCENDING' | Expression; /** 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[]; /** Perform a text search against all property values for an object type */ query?: string | Expression | PlaceholderValue; /** Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a> * @default createdate */ sortBy?: string | Expression; }; }; export type HubspotV21DealSearchOutput = { archived?: boolean; createdAt?: string; id?: string; properties?: { createdate?: string; dealstage?: string; hs_lastmodifieddate?: string; hs_object_id?: string; }; updatedAt?: string; }; export type HubspotV21DealSearchNode = { type: 'n8n-nodes-base.hubspot'; version: 2.1; credentials?: Credentials; config: NodeConfig; output?: Items; };