UNPKG

@n8n-plus/n8n-plus

Version:

n8n Workflow Automation Tool (plus edition)

24 lines (23 loc) 1.44 kB
import { Logger } from '@n8n/backend-common'; import type { User, WorkflowHistoryUpdate } from '@n8n/db'; import { WorkflowHistory, WorkflowHistoryRepository } from '@n8n/db'; import type { EntityManager } from '@n8n/typeorm'; 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, settings?: { includePublishHistory?: boolean; }): Promise<WorkflowHistory>; findVersion(workflowId: string, versionId: string): Promise<WorkflowHistory | null>; saveVersion(user: User | string, workflow: IWorkflowBase, workflowId: string, autosaved?: boolean, transactionManager?: EntityManager): Promise<void>; updateVersion(versionId: string, workflowId: string, updateData: WorkflowHistoryUpdate): Promise<void>; getVersionsByIds(user: User, workflowId: string, versionIds: string[]): Promise<Array<{ versionId: string; createdAt: Date; }>>; }