UNPKG

n8n

Version:

n8n Workflow Automation Tool

9 lines (8 loc) 429 B
import { DataSource, Repository } from '@n8n/typeorm'; import { AgentFile } from '../entities/agent-file.entity'; export declare class AgentFileRepository extends Repository<AgentFile> { constructor(dataSource: DataSource); findByAgentId(agentId: string): Promise<AgentFile[]>; hasFilesForAgent(agentId: string): Promise<boolean>; findByIdAndAgentId(fileId: string, agentId: string): Promise<AgentFile | null>; }