UNPKG

n8n

Version:

n8n Workflow Automation Tool

9 lines (8 loc) 1.34 kB
import type express from 'express'; import type { IExecuteResponsePromiseData, IHttpRequestMethods, INode, IRunExecutionData, IWebhookData, IWorkflowExecuteAdditionalData, Workflow, WorkflowExecuteMode } from 'n8n-workflow'; import type { IResponseCallbackData, IWebhookManager, IWorkflowDb, WebhookCORSRequest, WebhookRequest } from './Interfaces'; export declare const WEBHOOK_METHODS: IHttpRequestMethods[]; export declare const webhookRequestHandler: (webhookManager: IWebhookManager) => (req: WebhookRequest | WebhookCORSRequest, res: express.Response) => Promise<void>; export declare function getWorkflowWebhooks(workflow: Workflow, additionalData: IWorkflowExecuteAdditionalData, destinationNode?: string, ignoreRestartWebhooks?: boolean): IWebhookData[]; export declare function encodeWebhookResponse(response: IExecuteResponsePromiseData): IExecuteResponsePromiseData; export declare function executeWebhook(workflow: Workflow, webhookData: IWebhookData, workflowData: IWorkflowDb, workflowStartNode: INode, executionMode: WorkflowExecuteMode, pushRef: string | undefined, runExecutionData: IRunExecutionData | undefined, executionId: string | undefined, req: WebhookRequest, res: express.Response, responseCallback: (error: Error | null, data: IResponseCallbackData) => void, destinationNode?: string): Promise<string | undefined>;