UNPKG

n8n

Version:

n8n Workflow Automation Tool

18 lines (17 loc) 1.06 kB
import { OutboundHttp } from '@n8n/backend-network'; import { GlobalConfig } from '@n8n/config'; import { AuthenticatedRequest } from '@n8n/db'; import { NextFunction, Response } from 'express'; export declare class TelemetryController { private readonly globalConfig; private readonly outboundHttp; proxy: import("http-proxy-middleware").RequestHandler<import("http").IncomingMessage, import("http").ServerResponse<import("http").IncomingMessage>, (err?: any) => void>; constructor(globalConfig: GlobalConfig, outboundHttp: OutboundHttp); private applyCors; proxyPreflight(req: AuthenticatedRequest, res: Response): void; track(req: AuthenticatedRequest, res: Response, next: NextFunction): Promise<void>; identify(req: AuthenticatedRequest, res: Response, next: NextFunction): Promise<void>; page(req: AuthenticatedRequest, res: Response, next: NextFunction): Promise<void>; sourceConfigPreflight(req: AuthenticatedRequest, res: Response): void; sourceConfig(req: AuthenticatedRequest, res: Response): Promise<void>; }