UNPKG

n8n-nodes-rd-station-crm

Version:

n8n community node for RD Station CRM: API v1 (private token) and API v2 (OAuth2) — contacts, deals, organizations, tasks, notes, pipelines, stages, products, custom fields, sources, campaigns, loss reasons, users, teams and a real webhook trigger.

20 lines (19 loc) 1.18 kB
import type { IDataObject, IExecuteFunctions, IHookFunctions, IHttpRequestMethods, ILoadOptionsFunctions, IWebhookFunctions } from 'n8n-workflow'; export declare const RD_CRM_BASE_URL = "https://crm.rdstation.com/api/v1"; type RdContext = IExecuteFunctions | ILoadOptionsFunctions | IHookFunctions | IWebhookFunctions; /** * Make a single authenticated request to the RD Station CRM v1 API. * The private token is injected as a query-string param by the credential. */ export declare function rdCrmApiRequest(this: RdContext, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, qs?: IDataObject): Promise<any>; /** * Fetch every page of a paginated RD Station CRM list endpoint. * * Handles the two response shapes the API uses: * - `{ [propertyName]: [...], has_more: boolean, total: number }` * - a bare array `[...]` * * @param propertyName key that holds the array in wrapped responses (e.g. "deals", "contacts"). */ export declare function rdCrmApiRequestAllItems(this: IExecuteFunctions | ILoadOptionsFunctions, propertyName: string, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, qs?: IDataObject): Promise<any[]>; export {};