n8n
Version:
n8n Workflow Automation Tool
18 lines (17 loc) • 1.24 kB
TypeScript
import { GetWorkflowQueryDto, ListWorkflowHistoryQueryDto, WorkflowPublicDto, WorkflowVersionHistoryListPublicDto } from '@n8n/api-types';
import { GlobalConfig } from '@n8n/config';
import type { AuthenticatedRequest } from '@n8n/db';
import type { Response } from 'express';
import { EventService } from '../../../events/event.service';
import { WorkflowFinderService } from '../../../workflows/workflow-finder.service';
import { WorkflowHistoryService } from '../../../workflows/workflow-history/workflow-history.service';
export declare class WorkflowsPublicController {
private readonly workflowHistoryService;
private readonly workflowFinderService;
private readonly eventService;
private readonly globalConfig;
constructor(workflowHistoryService: WorkflowHistoryService, workflowFinderService: WorkflowFinderService, eventService: EventService, globalConfig: GlobalConfig);
getWorkflow(req: AuthenticatedRequest, _res: Response, workflowId: string, query: GetWorkflowQueryDto): Promise<WorkflowPublicDto>;
private toWorkflowPublicDto;
getWorkflowHistory(req: AuthenticatedRequest, _res: Response, workflowId: string, query: ListWorkflowHistoryQueryDto): Promise<WorkflowVersionHistoryListPublicDto>;
}