UNPKG

n8n

Version:

n8n Workflow Automation Tool

15 lines (14 loc) 928 B
import * as express from 'express'; import { IWorkflowExecuteAdditionalData, WebhookHttpMethod, Workflow, WorkflowActivateMode, WorkflowExecuteMode } from 'n8n-workflow'; import { IResponseCallbackData, IWorkflowDb } from '.'; export declare class TestWebhooks { private testWebhookData; private activeWebhooks; constructor(); callTestWebhook(httpMethod: WebhookHttpMethod, path: string, request: express.Request, response: express.Response): Promise<IResponseCallbackData>; getWebhookMethods(path: string): Promise<string[]>; needsWebhookData(workflowData: IWorkflowDb, workflow: Workflow, additionalData: IWorkflowExecuteAdditionalData, mode: WorkflowExecuteMode, activation: WorkflowActivateMode, sessionId?: string, destinationNode?: string): Promise<boolean>; cancelTestWebhook(workflowId: string): boolean; removeAll(): Promise<void>; } export declare function getInstance(): TestWebhooks;