@classytic/arc-transfer
v0.1.1
Published
Arc module for @classytic/transfer — inter-branch stock transfers (draft→approve→dispatch→receive with crash-safe recovery) composed into arc apps. Multi-party involvement scoping + approval chain via arc presets; FlowBridge/SequenceBridge ports injected.
Readme
@classytic/arc-transfer
Inter-branch stock transfers with dual-scope moves and involvement.
Part of Spine, Classytic's ERP — the arc-module layer that composes the
framework-agnostic @classytic/transfer kernel into an @classytic/arc
application via createApp({ modules }).
Install
npm install @classytic/arc-transfer @classytic/transfer @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 { createTransferModule } from '@classytic/arc-transfer';
const app = await createApp({
modules: [
createTransferModule({
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['transfer']
for container-free cross-module wiring.
License
MIT © Classytic
