Files
Checkmate/server/src/domain/proxies/proxy.repository.interface.ts
T

13 lines
447 B
TypeScript
Raw Normal View History

2026-08-20 10:49:12 -07:00
import { Proxy } from "@/domain/proxies/proxy.type.js";
export interface IProxiesRepository {
// create
create(proxyData: Partial<Proxy>): Promise<Proxy>;
// read
findById(proxyId: string, teamId: string): Promise<Proxy>;
findByTeamId(teamId: string): Promise<Proxy[]>;
// update
updateById(proxyId: string, teamId: string, patch: Partial<Proxy>): Promise<Proxy>;
// delete
deleteById(proxyId: string, teamId: string): Promise<Proxy>;
}