@nextera.one/axis-nestjs-sdk
v2.0.0
Published
NestJS adapter for binary-only AXIS2 ingress, request context, sensors, streams, and intent routing
Downloads
73
Maintainers
Readme
@nextera.one/axis-nestjs-sdk
NestJS-aware adapter for the AXIS Protocol. Provides generic pieces every NestJS AXIS server needs:
The application ingress is binary-only POST /axis. The middleware forwards
X-Capsule-Id and X-Session-Id into the engine request context; it does not
accept or trust a username header.
| Export | Purpose |
| --------------------------------------------- | ------------------------------------------------------------- |
| AxisMediaTypes | Protocol content-type constants + helpers |
| wasRequestAborted, wasResponseClosedEarly | Node lifecycle helpers |
| PageResult<T> | Generic paginated response envelope { data, count } |
| AxisPageDto | Reusable TLV DTO for paged reads (id, timestamps, params) |
| ObservationStore | CLS-backed per-request AxisObservation accessor |
| IAxisRequestEngine | Token + interface for the decode/execute engine |
| AxisDecodeInterceptor | Nest interceptor running engine.decode() pre-handler |
| AxisIngressMiddleware | Generic HTTP ingress for POST /axis |
| AxisWebSocketGatewayBase | Reusable base class for AXIS WS servers |
Install
npm install @nextera.one/axis-nestjs-sdkPeer-deps: @nestjs/common, @nextera.one/axis-server-sdk, nestjs-cls,
rxjs, and optionally express, ws, @nestjs/websockets.
