UNPKG

n8n

Version:

n8n Workflow Automation Tool

21 lines (20 loc) 1.28 kB
import type { Response } from 'express'; import type { IHttpRequestMethods } from 'n8n-workflow'; import { WorkflowRepository } from '../databases/repositories/workflow.repository'; import type { IWebhookResponseCallbackData, IWebhookManager, WebhookAccessControlOptions, WebhookRequest } from './webhook.types'; import { Logger } from '../Logger'; import { NodeTypes } from '../NodeTypes'; import { WebhookService } from '../webhooks/webhook.service'; import { WorkflowStaticDataService } from '../workflows/workflowStaticData.service'; export declare class LiveWebhooks implements IWebhookManager { private readonly logger; private readonly nodeTypes; private readonly webhookService; private readonly workflowRepository; private readonly workflowStaticDataService; constructor(logger: Logger, nodeTypes: NodeTypes, webhookService: WebhookService, workflowRepository: WorkflowRepository, workflowStaticDataService: WorkflowStaticDataService); getWebhookMethods(path: string): Promise<IHttpRequestMethods[]>; findAccessControlOptions(path: string, httpMethod: IHttpRequestMethods): Promise<WebhookAccessControlOptions>; executeWebhook(request: WebhookRequest, response: Response): Promise<IWebhookResponseCallbackData>; private findWebhook; }