@appneurox/forecast-service-sdk
v0.1.0
Published
Forecast Service client for the standalone microservice or any brand API that mounts it.
Readme
@appneurox/forecast-service-sdk
Client for Forecast Service. Works in Node 18+, browsers, React Native and edge runtimes.
import { createForecastServiceClient } from '@appneurox/forecast-service-sdk';
// Standalone microservice
const direct = createForecastServiceClient({ token, tenantId });
// Same module through a brand API (modular monolith)
const viaBrand = createForecastServiceClient({ monolithUrl: 'https://<brand>-api.appneurox.com', token, tenantId });
await viaBrand.metadata();
await viaBrand.execute('<operation>', { /* payload */ });Errors throw ApiError (status, code, requestId). Brand SDKs (@appneurox/<brand>-sdk)
bundle this client with the other services that brand uses.
