UNPKG

n8n

Version:

n8n Workflow Automation Tool

25 lines (24 loc) 1.07 kB
import type { AuthenticatedRequest } from '@n8n/db'; import { WorkflowFinderService } from '../workflows/workflow-finder.service'; import { EvaluationConfigService } from './evaluation-config.service'; type WorkflowParam = { workflowId: string; }; type ConfigParam = { workflowId: string; configId: string; }; export declare class EvaluationConfigController { private readonly service; private readonly workflowFinderService; constructor(service: EvaluationConfigService, workflowFinderService: WorkflowFinderService); private assertWorkflowAccess; list(req: AuthenticatedRequest<WorkflowParam>): Promise<import("@n8n/db").EvaluationConfig[]>; get(req: AuthenticatedRequest<ConfigParam>): Promise<import("@n8n/db").EvaluationConfig>; create(req: AuthenticatedRequest<WorkflowParam>): Promise<import("@n8n/db").EvaluationConfig>; update(req: AuthenticatedRequest<ConfigParam>): Promise<import("@n8n/db").EvaluationConfig>; delete(req: AuthenticatedRequest<ConfigParam>): Promise<{ success: boolean; }>; } export {};