UNPKG

acebase-core

Version:

Shared AceBase core components, no need to install manually

45 lines 2.33 kB
/* eslint-disable @typescript-eslint/no-unused-vars */ import { SimpleEventEmitter } from './simple-event-emitter.js'; class NotImplementedError extends Error { constructor(name) { super(`${name} is not implemented`); } } /** * Refactor to type/interface once acebase and acebase-client have been ported to TS */ export class Api extends SimpleEventEmitter { constructor() { super(); } /** * Provides statistics * @param options */ stats(options) { throw new NotImplementedError('stats'); } /** * @param path * @param event event to subscribe to ("value", "child_added" etc) * @param callback callback function */ subscribe(path, event, callback, settings) { throw new NotImplementedError('subscribe'); } unsubscribe(path, event, callback) { throw new NotImplementedError('unsubscribe'); } update(path, updates, options) { throw new NotImplementedError('update'); } set(path, value, options) { throw new NotImplementedError('set'); } get(path, options) { throw new NotImplementedError('get'); } transaction(path, callback, options) { throw new NotImplementedError('transaction'); } exists(path) { throw new NotImplementedError('exists'); } query(path, query, options) { throw new NotImplementedError('query'); } reflect(path, type, args) { throw new NotImplementedError('reflect'); } export(path, write, options) { throw new NotImplementedError('export'); } import(path, read, options) { throw new NotImplementedError('import'); } /** Creates an index on key for all child nodes at path */ createIndex(path, key, options) { throw new NotImplementedError('createIndex'); } getIndexes() { throw new NotImplementedError('getIndexes'); } deleteIndex(filePath) { throw new NotImplementedError('deleteIndex'); } setSchema(path, schema, warnOnly) { throw new NotImplementedError('setSchema'); } getSchema(path) { throw new NotImplementedError('getSchema'); } getSchemas() { throw new NotImplementedError('getSchemas'); } validateSchema(path, value, isUpdate) { throw new NotImplementedError('validateSchema'); } getMutations(filter) { throw new NotImplementedError('getMutations'); } getChanges(filter) { throw new NotImplementedError('getChanges'); } } //# sourceMappingURL=api.js.map