UNPKG

@apify/n8n-nodes-apify

Version:
24 lines (23 loc) 1.74 kB
import { type IExecuteFunctions, type IHookFunctions, type ILoadOptionsFunctions, IHttpRequestOptions, INodeExecutionData } from 'n8n-workflow'; type IApiRequestOptions = Omit<IHttpRequestOptions, 'url'> & { uri?: string; }; export declare function apiRequest(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, requestOptions: IApiRequestOptions): Promise<any>; interface RetryOptions { interval?: number; exponential?: number; maxRetries?: number; retryNetworkErrors?: boolean; } export declare function retryWithExponentialBackoff(fn: () => Promise<any>, options?: RetryOptions): Promise<any>; export declare function apiRequestAllItems(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, requestOptions: IApiRequestOptions): Promise<any>; export declare function pollRunStatus(this: IHookFunctions | IExecuteFunctions | ILoadOptionsFunctions, runId: string): Promise<any>; export declare function getActorOrTaskId(this: IHookFunctions): string; export declare function getCondition(this: IHookFunctions, resource: string, id: string): object; export declare function normalizeEventTypes(selected: string[]): string[]; export declare function generateIdempotencyKey(resource: string, actorOrTaskId: string, eventTypes: string[]): string; export declare function compose(...fns: Function[]): (x: any) => any; export declare function customBodyParser(input: string | object): any; export declare function isUsedAsAiTool(nodeType: string): boolean; export declare function executeAndLinkItems<T extends INodeExecutionData | INodeExecutionData[]>(this: IExecuteFunctions, executeFn: (this: IExecuteFunctions, itemIndex: number) => Promise<T>): Promise<INodeExecutionData[][]>; export {};