@agentpulselabs/commerce-client
v0.1.1
Published
Typed AppBridge client for the commerce app.
Readme
@agentpulselabs/commerce-client
Typed AppBridge client for the commerce app. Bridge-injected — no runtime dependency on commerce or @agentpulse/platform.
Install
npm i @agentpulselabs/commerce-clientUsage
import { createClient } from '@agentpulselabs/commerce-client';
const commerce = createClient(Platform.Bridge);
const result = await commerce.widgetLow_stock(payload);Operations (Commerce)
| Method | Op | Summary |
| --- | --- | --- |
| widgetLow_stock | widget:low_stock | Variants of active products at or below the store low-stock threshold (home widget). |
| widgetOrders_to_fulfil | widget:orders_to_fulfil | Open orders still to ship, oldest first, with total and payment state (home widget). |
