UNPKG

@becomes/cms-cloud-client

Version:

SDK for accessing BCMS Cloud API

12 lines (11 loc) 802 B
import type { FSDBRepository } from '@becomes/purple-cheetah-mod-fsdb/types'; import type { MongoDBRepository } from '@becomes/purple-cheetah-mod-mongodb/types'; import type { Module } from '@becomes/purple-cheetah/types'; import { InstanceProxyConfig } from '../models'; export interface InstanceProxyConfigRepoMethods { findAllByInstanceId(instanceId: string): Promise<InstanceProxyConfig[]>; findByIdAndInstanceId(id: string, instanceId: string): Promise<InstanceProxyConfig | null>; countByInstanceId(instanceId: string): Promise<number>; } export type InstanceProxyConfigRepo = MongoDBRepository<InstanceProxyConfig, InstanceProxyConfigRepoMethods> | FSDBRepository<InstanceProxyConfig, InstanceProxyConfigRepoMethods>; export declare function createInstanceProxyConfigRepo(): Module;