UNPKG

n8n

Version:

n8n Workflow Automation Tool

17 lines (16 loc) 950 B
import type express from 'express'; import { NodeTypes } from '../NodeTypes'; import type { IWebhookResponseCallbackData, IWebhookManager, WaitingWebhookRequest } from './webhook.types'; import { ExecutionRepository } from '../databases/repositories/execution.repository'; import { Logger } from '../Logger'; import type { IExecutionResponse } from '../Interfaces'; export declare class WaitingWebhooks implements IWebhookManager { protected readonly logger: Logger; private readonly nodeTypes; private readonly executionRepository; protected includeForms: boolean; constructor(logger: Logger, nodeTypes: NodeTypes, executionRepository: ExecutionRepository); protected logReceivedWebhook(method: string, executionId: string): void; protected disableNode(execution: IExecutionResponse, _method?: string): void; executeWebhook(req: WaitingWebhookRequest, res: express.Response): Promise<IWebhookResponseCallbackData>; }