n8n
Version:
n8n Workflow Automation Tool
10 lines (9 loc) • 520 B
TypeScript
import { DataSource, Repository } from '@n8n/typeorm';
import { Agent } from '../entities/agent.entity';
export declare class AgentRepository extends Repository<Agent> {
constructor(dataSource: DataSource);
findByProjectId(projectId: string): Promise<Agent[]>;
findByIdAndProjectId(id: string, projectId: string): Promise<Agent | null>;
findPublished(): Promise<Agent[]>;
findByIntegrationCredential(type: string, credentialId: string, projectId: string, excludeAgentId: string): Promise<Agent[]>;
}