@becomes/cms-cloud-client
Version:
SDK for accessing BCMS Cloud API
13 lines (12 loc) • 845 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 { InstancePlugin } from '../models';
export interface InstancePluginRepoMethods {
findAllByInstanceId(instanceId: string): Promise<InstancePlugin[]>;
findByIdAndInstanceId(id: string, instanceId: string): Promise<InstancePlugin | null>;
findByInstanceIdAndTag(instanceId: string, tag: string): Promise<InstancePlugin | null>;
countByInstanceId(instanceId: string): Promise<number>;
}
export type InstancePluginRepo = MongoDBRepository<InstancePlugin, InstancePluginRepoMethods> | FSDBRepository<InstancePlugin, InstancePluginRepoMethods>;
export declare function createInstancePluginRepo(): Module;