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.
15 lines (14 loc) • 867 B
TypeScript
import type { IDataObject, IExecuteFunctions, IHttpRequestMethods, ILoadOptionsFunctions } from 'n8n-workflow';
export declare const RD_CRM_V2_BASE_URL = "https://api.rd.services/crm/v2";
type RdV2Context = IExecuteFunctions | ILoadOptionsFunctions;
/**
* Make a single authenticated request to the RD Station CRM v2 API (OAuth2).
* Request bodies are wrapped in a JSON:API `{ data: ... }` envelope.
*/
export declare function rdCrmV2Request(this: RdV2Context, method: IHttpRequestMethods, endpoint: string, body?: IDataObject, qs?: IDataObject): Promise<any>;
/**
* Fetch every page of a v2 list endpoint by following `links.next` until it is absent.
* Each `links.next` URL already carries the active filter/sort/page params.
*/
export declare function rdCrmV2RequestAllItems(this: RdV2Context, endpoint: string, qs?: IDataObject): Promise<any[]>;
export {};