UNPKG

@becomes/cms-cloud-client

Version:

SDK for accessing BCMS Cloud API

11 lines (10 loc) 662 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 { InstanceDep } from '../models'; export interface InstanceDepRepoMethods { findAllByInstanceId(instanceId: string): Promise<InstanceDep[]>; findByIdAndInstanceId(id: string, instanceId: string): Promise<InstanceDep | null>; } export type InstanceDepRepo = MongoDBRepository<InstanceDep, InstanceDepRepoMethods> | FSDBRepository<InstanceDep, InstanceDepRepoMethods>; export declare function createInstanceDepRepo(): Module;