@adonis-agora/filter
Version:
Server-side query filtering/sorting/pagination for AdonisJS — Spatie-style input, a Lucid adapter, and field allow-listing. Part of the Agora ecosystem.
19 lines • 944 B
JavaScript
import { ListLoader } from '@adonisjs/core/ace';
import MakeFilter from './make_filter.js';
import MakeFilterClient from './make_filter_client.js';
/**
* The commands barrel for `@adonis-agora/filter`. An app registers it in its
* `adonisrc` via `rcFile.addCommand('@adonis-agora/filter/commands')`. A
* {@link ListLoader} exposes the `make:filter-client` command's metadata and
* constructors to the ace kernel: `make:filter` (scaffold a filter class) and
* `make:filter-client` (emit the typed front-end builders).
*
* `@adonisjs/core` is an *optional* peer of this otherwise framework-free core —
* only this `./commands` subpath imports it, so the main entrypoint stays
* dependency-free.
*/
const loader = new ListLoader([MakeFilter, MakeFilterClient]);
export const getMetaData = loader.getMetaData.bind(loader);
export const getCommand = loader.getCommand.bind(loader);
export default loader;
//# sourceMappingURL=main.js.map