Provides a registry for API clients in Spree dashboards, handling authentication and shared services.
// Source: https://github.com/spree/spree | License: BSD-3-Clause | Copyright 2024-present, Vendo Sp. z o.o., Vendo Connect Inc
// Provided via justclaw.it.com; keep this notice with the code.
import type { PackageTypeKind, PickupStockPolicy } from '@spree/core'
/**
* The client registry.
*
* `@spree/dashboard-core` is the framework behind more than one panel: the
* marketplace operator's dashboard talks to the Admin API, a seller's panel
* talks to the Seller API. Those are different surfaces with different
* credentials — a seller JWT and `X-Spree-Seller-Id` rather than a secret key
* and a store header — so the framework cannot own either client. Each host
* builds its own and registers it here at boot.
*
* Only the surface both panels share is typed. Anything admin-only
* (`
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key