Availability

availability in @open-mercato/core

Sell-policy layer (stock-managed, backorder, preorder, thresholds) on top of the shared availability contract.

Ships with Open Mercato 0.9.0

Enable it

yarn mercato module enable @open-mercato/core --module availability

Then run yarn generate. Core is already installed, so nothing is downloaded.

Anatomy

ADDS 1 TABLE · 3 PERMISSIONS · EMITS 3 EVENTS

Data

  • availability_policies

API

Routes are not listed for built-in modules.

Security

availability.

  • policies.view
  • policies.manage
  • check

Events

availability.

  • emitspolicy.created
  • emitspolicy.updated
  • emitspolicy.deleted

UI

  • 4 backend pages

Not present: background jobs, AI tools.

Not read: credentials and env, hosts (not in module-facts.v2.json).

From module-facts.v2.json in @open-mercato/cli 0.9.0. Read statically, not executed.