UNPKG

n8n

Version:

n8n Workflow Automation Tool

16 lines (15 loc) 1.02 kB
import { Logger } from 'n8n-core'; import type { IWorkflowBase } from 'n8n-workflow'; import type { User } from '../../databases/entities/user'; import type { WorkflowHistory } from '../../databases/entities/workflow-history'; import { WorkflowHistoryRepository } from '../../databases/repositories/workflow-history.repository'; 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>; }