UNPKG

n8n

Version:

n8n Workflow Automation Tool

30 lines (29 loc) 1.47 kB
import { PaginationDto, WorkflowHistoryVersionsByIdsDto, UpdateWorkflowHistoryVersionDto } from '@n8n/api-types'; import { AuthenticatedRequest } from '@n8n/db'; import { WorkflowHistoryRequest } from '../../requests'; import { WorkflowHistoryService } from './workflow-history.service'; export declare class WorkflowHistoryController { private readonly historyService; constructor(historyService: WorkflowHistoryService); getList(req: WorkflowHistoryRequest.GetList, _res: Response, query: PaginationDto): Promise<Omit<import("@n8n/db").WorkflowHistory, "nodes" | "connections" | "nodeGroups">[]>; getVersion(req: WorkflowHistoryRequest.GetVersion): Promise<import("@n8n/db").WorkflowHistory>; getVersionsByIds(req: WorkflowHistoryRequest.GetList, _res: Response, body: WorkflowHistoryVersionsByIdsDto): Promise<{ versions: { versionId: string; createdAt: Date; }[]; }>; getPublishTimeline(req: WorkflowHistoryRequest.GetList): Promise<{ id: number; workflowId: string; versionId: string | null; event: "activated" | "deactivated"; createdAt: Date; user: import("@n8n/db").User | null; versionName: string | null; }[]>; updateVersion(req: AuthenticatedRequest<{ workflowId: string; versionId: string; }>, _res: Response, workflowId: string, versionId: string, body: UpdateWorkflowHistoryVersionDto): Promise<void>; }