UNPKG

@getanthill/datastore

Version:

Event-Sourced Datastore

15 lines (14 loc) 1.56 kB
import type { ModelConfig, Services } from '../typings'; import { Command } from 'commander'; export declare function find(services: Services, config: ModelConfig): (cmd: any) => Promise<void>; export declare function get(services: Services, config: ModelConfig): (correlationId: string, cmd: any) => Promise<void>; export declare function create(services: Services, config: ModelConfig): (cmd: any) => Promise<void>; export declare function update(services: Services, config: ModelConfig): (correlationId: string, cmd: any) => Promise<void>; export declare function patch(services: Services, config: ModelConfig): (correlationId: string, _patches: string[], cmd: any) => Promise<void>; export declare function restore(services: Services, config: ModelConfig): (correlationId: string, version: number, cmd: any) => Promise<void>; export declare function count(services: Services, config: ModelConfig): (cmd: any) => Promise<void>; export declare function events(services: Services, config: ModelConfig): (correlationId: string, cmd: any) => Promise<void>; export declare function entity(services: Services, config: ModelConfig): (verb: string, correlationId: string, cmd: any) => Promise<void>; export declare function updateMany(services: Services, config: ModelConfig): (query: string, update: string, cmd: any) => Promise<void>; export declare function version(services: Services, config: ModelConfig): (correlationId: string, version: string, cmd: any) => Promise<void>; export default function register(services: Services, config: ModelConfig): Command;