UNPKG

n8n

Version:

n8n Workflow Automation Tool

21 lines (20 loc) 867 B
import { WorkflowRepository, type WorkflowEntity } from '@n8n/db'; import { WorkflowFinderService } from '../../../../workflows/workflow-finder.service'; export interface WorkflowIdConflict { sourceWorkflowId: string; existingWorkflowId: string; existingProjectId: string | null; isArchived: boolean; name: string; } export declare class WorkflowImportMatchService { private readonly workflowFinderService; private readonly workflowRepository; constructor(workflowFinderService: WorkflowFinderService, workflowRepository: WorkflowRepository); findOwningProjectsByWorkflowId(workflowIds: string[]): Promise<Map<string, { projectId: string | null; name: string; isArchived: boolean; }>>; findBySourceWorkflowIds(projectId: string, sourceWorkflowIds: string[]): Promise<Map<string, WorkflowEntity>>; }