Skip to content

@nhtio/lucid-resourceful

Modules

ModuleDescription
@nhtio/lucid-resourcefulA decorator-driven AdonisJS library that lets you annotate Lucid ORM models with metadata to automatically generate CRUD controllers, validation rules, OpenAPI schemas, and a unified query interface.
@nhtio/lucid-resourceful/definitionsColumn Data Type Definition Helpers for Resourceful Lucid Models
@nhtio/lucid-resourceful/encodingPortable cross-environment encoding and decoding of structured data.
@nhtio/lucid-resourceful/errorsErrors thrown by the Lucid Resourceful Library
@nhtio/lucid-resourceful/integration/middlewares/odata_errorAn Adonis middleware which intercepts errors thrown during the request lifecycle and formats the responses in a consistent manner meant to be easily consumed by clients.
@nhtio/lucid-resourceful/integration/middlewares/resourceful_encoded_requestAn Adonis middleware which accepts and decodes requests encoded using the Resourceful encoding utility.
@nhtio/lucid-resourceful/integration/middlewares/resourceful_errorAn Adonis middleware which intercepts errors thrown during the request lifecycle and formats the responses in a consistent manner meant to be easily consumed by clients.
@nhtio/lucid-resourceful/integration/providerThe Adonis Provider for the Lucid Resourceful Library which adds the router.resourceful functionality
@nhtio/lucid-resourceful/joiA modified version of the joi validation library which adds support for new custom schemas
@nhtio/lucid-resourceful/odata/contextUtility which allows resolution of resourceful odata context.
@nhtio/lucid-resourceful/odata/macroUtility which provides a stable XML response for OData requests.
@nhtio/lucid-resourceful/private/lucid_augmentationsModule augmentations that surface the relation-cache public methods on Lucid's own contracts, so Model.query().preloadCached(...) and instance.load(name, { forceLoad }) typecheck for consumers.
@nhtio/lucid-resourceful/private/utils/cache_error_handlerProcess-wide registration + dispatch for the relation-cache error handler (onRelationsCacheError, ADR-009). Holds the host-supplied default handler and reports every runtime cache-infra/serialization failure to the effective handler (per-model → process-wide default → no-op), guarded and never awaited so a reporter can neither throw into nor delay a load/write.
@nhtio/lucid-resourceful/private/utils/cache_event_handlerProcess-wide registration + dispatch for the relation-cache EVENT hook (onRelationsCacheEvent). The relation cache emits lifecycle events (hit/miss/store/force/bypass/evict); the host decides what to do with them — write to @nhtio/logger or Adonis' logger, push metrics, trace, or nothing.
@nhtio/lucid-resourceful/private/utils/cache_service_resolverResolves the cache service used for relation caching via a precedence chain (per-model relationsCacheService option → process-wide default → none) and exposes the package-level default registration setter.
@nhtio/lucid-resourceful/routerResourceful Router Macro for use with Lucid Resourceful Library
@nhtio/lucid-resourceful/router/contextUtility which allows resolution of resourceful model context.
@nhtio/lucid-resourceful/router/utilsResourceful Router Macro for use with Lucid Resourceful Library
@nhtio/lucid-resourceful/typesTypes utilized by @nhtio/lucid-resourceful
@nhtio/lucid-resourceful/utilsHelpers and utilities used by Lucid Resourceful