UNPKG

n8n-nodes-arubacentral

Version:

n8n community node for Aruba Central API integration with comprehensive monitoring, configuration, and management capabilities

19 lines (18 loc) 1.08 kB
import { IExecuteFunctions, IHttpRequestMethods, IDataObject, INodeExecutionData } from 'n8n-workflow'; /** * Helper function to handle pagination for Aruba Central API endpoints * @param this The IExecuteFunctions context * @param endpoint API endpoint to call * @param method HTTP method to use * @param body Request body (if applicable) * @param queryParams Query parameters * @param dataLocator Information to locate data in the response * @param returnAll Whether to return all results or respect limit parameter * @param limit Maximum number of results to return if not returning all * @param batchSize Optional batch size for pagination (if endpoint has specific limits) * @returns Array of INodeExecutionData objects containing all results */ export declare function handlePagination(this: IExecuteFunctions, endpoint: string, method: IHttpRequestMethods, body: IDataObject, queryParams: IDataObject, dataLocator: { path: string[]; fallbackPaths?: string[][]; }, returnAll: boolean, limit?: number, batchSize?: number): Promise<INodeExecutionData[]>;