BaseDocument
Baseline shape for every document in this package: the flat { id, createdAt, updatedAt }
triple. Previously this intersected the Mongoose Document interface; the Convex re-home returns
plain rows with no document methods, so the base type is now exactly the managed fields —
Service.create still strips them from its input via Omit<DocType, keyof BaseDocument>.
Definition
type BaseDocument = DocumentExtras & BaseTimestamps;DocumentExtras & BaseTimestamps
Example
import type { BaseDocument } from '@nordcom/commerce-db';
function label(doc: BaseDocument): string {
return `${doc.id} (updated ${doc.updatedAt.toISOString()})`;
}Related
FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme
AccentToken
A single brand accent swatch. Shared between the required ShopBase.design.accents source and the optional theme.colors.accents override so both surfaces stay st
BaseTimestamps
Managed timestamp fields every document carries. The Convex rows persist these as epochms numbers (preserving the source Mongo timestamps: true values across th