n8n
Version:
n8n Workflow Automation Tool
15 lines (14 loc) • 893 B
TypeScript
import { Logger } from '@n8n/backend-common';
import type { User, WorkflowHistory } from '@n8n/db';
import { WorkflowHistoryRepository } from '@n8n/db';
import type { IWorkflowBase } from 'n8n-workflow';
import { WorkflowFinderService } from '../workflow-finder.service';
export declare class WorkflowHistoryService {
private readonly logger;
private readonly workflowHistoryRepository;
private readonly workflowFinderService;
constructor(logger: Logger, workflowHistoryRepository: WorkflowHistoryRepository, workflowFinderService: WorkflowFinderService);
getList(user: User, workflowId: string, take: number, skip: number): Promise<Array<Omit<WorkflowHistory, 'nodes' | 'connections'>>>;
getVersion(user: User, workflowId: string, versionId: string): Promise<WorkflowHistory>;
saveVersion(user: User, workflow: IWorkflowBase, workflowId: string): Promise<void>;
}