UNPKG

@apify/n8n-nodes-apify

Version:
18 lines (17 loc) 1.62 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>; export declare function retryWithExponentialBackoff(fn: () => Promise<any>, interval?: number, exponential?: number, maxRetries?: number): 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) => Promise<T>): Promise<INodeExecutionData[][]>; export {};