import { DataSource } from '@n8n/typeorm'; import { BaseRepository } from './base-repository'; import { WorkflowReviewRequestWorkflow } from '../entities/workflow-review-request-workflow.ee'; import { type WorkflowReviewRequestState } from '../entities/workflow-review-request.ee'; import { type OperationContext, TransactionRunner } from '../services/transaction'; export type WorkflowReviewRequestLinkedWorkflow = { workflowName: string; workflowVersionId: string | null; }; export type WorkflowReviewRequestWorkflowDetailRow = { workflowId: string; workflowName: string; workflowVersionId: string | null; activeVersionId: string | null; baselineVersionId: string | null; requestState: WorkflowReviewRequestState; }; export declare class WorkflowReviewRequestWorkflowRepository extends BaseRepository { constructor(dataSource: DataSource, transactionRunner: TransactionRunner); createWorkflowRow(input: { id?: string; workflowReviewRequestId: string; workflowId: string; workflowVersionId?: string | null; }, ctx: OperationContext): Promise; updateWorkflowVersion(input: { workflowReviewRequestId: string; workflowId: string; workflowVersionId: string; }, ctx: OperationContext): Promise; findRequestIdsPinnedToVersion(input: { workflowId: string; workflowVersionId: string; }, ctx: OperationContext): Promise; captureApprovalBaseline(input: { workflowReviewRequestId: string; workflowId: string; }, ctx: OperationContext): Promise; findByRequestId(requestId: string, ctx: OperationContext): Promise; findLinkedWorkflowsByRequestIds(requestIds: string[]): Promise>; findLinkedWorkflowDetailsByRequestId(requestId: string): Promise; }