@becomes/cms-cloud-client
Version:
SDK for accessing BCMS Cloud API
12 lines (11 loc) • 704 B
TypeScript
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 { DODroplet } from './models';
export interface DODropletRepoMethods {
findByInstanceId(instanceId: string): Promise<DODroplet | null>;
findAllByInstanceIds(instanceIds: string[]): Promise<DODroplet[]>;
findByInstanceIdAndLock(instanceId: string): Promise<DODroplet | null>;
}
export type DODropletRepo = FSDBRepository<DODroplet, DODropletRepoMethods> | MongoDBRepository<DODroplet, DODropletRepoMethods>;
export declare function createDODropletRepo(): Module;