n8n
Version:
n8n Workflow Automation Tool
10 lines (9 loc) • 1.25 kB
TypeScript
import * as express from 'express';
import { IExecuteResponsePromiseData, INode, IRunExecutionData, IWebhookData, IWorkflowExecuteAdditionalData, Workflow, WorkflowExecuteMode } from 'n8n-workflow';
import { IResponseCallbackData, IWorkflowDb } from '.';
export declare function getWorkflowWebhooks(workflow: Workflow, additionalData: IWorkflowExecuteAdditionalData, destinationNode?: string, ignoreRestartWehbooks?: boolean): IWebhookData[];
export declare function decodeWebhookResponse(response: IExecuteResponsePromiseData): IExecuteResponsePromiseData;
export declare function encodeWebhookResponse(response: IExecuteResponsePromiseData): IExecuteResponsePromiseData;
export declare function getWorkflowWebhooksBasic(workflow: Workflow): IWebhookData[];
export declare function executeWebhook(workflow: Workflow, webhookData: IWebhookData, workflowData: IWorkflowDb, workflowStartNode: INode, executionMode: WorkflowExecuteMode, sessionId: string | undefined, runExecutionData: IRunExecutionData | undefined, executionId: string | undefined, req: express.Request, res: express.Response, responseCallback: (error: Error | null, data: IResponseCallbackData) => void): Promise<string | undefined>;
export declare function getWebhookBaseUrl(): string;