ShopBase
Raw document shape for a multi-tenant shop record. Extends BaseDocument with all
tenant-specific configuration fields including domain routing, commerce provider credentials,
design tokens, and feature flags. id is the PUBLIC shop id (the migrated Mongo ObjectId
preserved as the Convex row's legacyId); the Convex _id is never surfaced. Use OnlineShop
for client-facing work since it masks credential fields.
Properties
Example
import type { ShopBase } from '@nordcom/commerce-db';
function getDefaultLocale(shop: ShopBase): string {
return shop.i18n?.defaultLocale ?? 'en-US';
}Related
FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme
serializeThemeToCssVars
Serializes a shop's resolved theme into the ordered list of CSS customproperty declarations the storefront emits, so SSR and the admin livepreview compute the s
ShopCollaborator
Canonical join row relating a shop to one collaborating user. Deembedded from the prior shape that nested the full UserBase document inside the array: a collabo