13 lines
447 B
TypeScript
13 lines
447 B
TypeScript
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>;
|
||
|
|
}
|