UNPKG

n8n

Version:

n8n Workflow Automation Tool

13 lines (12 loc) 690 B
import { ListInsightsWorkflowQueryDto } from '@n8n/api-types'; import type { InsightsSummary, InsightsByTime, InsightsByWorkflow } from '@n8n/api-types'; import { AuthenticatedRequest } from '../../requests'; import { InsightsService } from './insights.service'; export declare class InsightsController { private readonly insightsService; private readonly maxAgeInDaysFilteredInsights; constructor(insightsService: InsightsService); getInsightsSummary(): Promise<InsightsSummary>; getInsightsByWorkflow(_req: AuthenticatedRequest, _res: Response, payload: ListInsightsWorkflowQueryDto): Promise<InsightsByWorkflow>; getInsightsByTime(): Promise<InsightsByTime[]>; }