UNPKG

n8n

Version:

n8n Workflow Automation Tool

22 lines (21 loc) 1.37 kB
import { Logger } from '@n8n/backend-common'; import { WorkflowRepository } from '@n8n/db'; import type { Response } from 'express'; import type { IHttpRequestMethods } from 'n8n-workflow'; import { NodeTypes } from '../node-types'; import { WebhookService } from '../webhooks/webhook.service'; import { WorkflowStaticDataService } from '../workflows/workflow-static-data.service'; import type { ExpectedWebhookNodeType } from './node-type-matcher'; import type { IWebhookResponseCallbackData, IWebhookManager, WebhookAccessControlOptions, WebhookRequest } from './webhook.types'; 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, expectedNodeType?: ExpectedWebhookNodeType): Promise<IWebhookResponseCallbackData>; private findWebhook; }