import { Search } from './Search'; import { FetchOptions } from '../types/Gateway'; import { Json } from '../types/Json'; import { Id } from '../types/Id'; export class Manage extends Search { add(json: Json): Promise { return this.repo.add(json); } update(id: Id, json: Json): Promise { return this.repo.update(id, json); } upsert(id: Id, json: Json): Promise { return this.repo.upsert(id, json); } remove(id: Id): Promise { return this.repo.remove(id); } }