UNPKG

n8n

Version:

n8n Workflow Automation Tool

16 lines (15 loc) 1.06 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 { SharedWorkflowRepository } from '../../databases/repositories/shared-workflow.repository'; import { WorkflowHistoryRepository } from '../../databases/repositories/workflow-history.repository'; export declare class WorkflowHistoryService { private readonly logger; private readonly workflowHistoryRepository; private readonly sharedWorkflowRepository; constructor(logger: Logger, workflowHistoryRepository: WorkflowHistoryRepository, sharedWorkflowRepository: SharedWorkflowRepository); 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>; }