@classytic/arc-order
v0.4.0
Published
Arc module for @classytic/order — ALL order types (standard/subscription/booking/enrollment/auction/trade via the kernel OrderTypeRegistry) as one module. Reservation/booking plugs in via the BookingBridge port; country packs stay host/dynamic. P1: engine
Readme
@classytic/arc-order
Sales orders, quotations, RFQs and blanket orders as composable arc resources.
Part of Spine, Classytic's ERP — the arc-module layer that composes the
framework-agnostic @classytic/order kernel into an @classytic/arc
application via createApp({ modules }).
Install
npm install @classytic/arc-order @classytic/order @classytic/arc @classytic/mongokit mongoose zodKernels and the framework are peer dependencies — the host installs a single copy; this module bundles nothing.
Usage
import { createApp } from '@classytic/arc/factory';
import { createOrderModule } from '@classytic/arc-order';
const app = await createApp({
modules: [
createOrderModule({
connection, // your mongoose connection
permissions, // { view, manage, ... } role gates
// BYO engine + host seams (extraActions, extraRoutes, bridges) as needed
}),
],
});The module's bootstrap return is recorded at fastify.arc.modules['order']
for container-free cross-module wiring.
License
MIT © Classytic
