FeatureFlagKind
Discriminator for a feature flag's intent. behavior flags toggle application logic; section
flags gate whether a per-shop page section renders. Absent (undefined) on legacy rows, which
the platform treats as behavior — so adding this field is backward-compatible.
Definition
type FeatureFlagKind = 'behavior' | 'section';'behavior' | 'section'
Example
import type { FeatureFlagKind } from '@nordcom/commerce-db';
const kind: FeatureFlagKind = 'section';Related
FeatureFlagService ReviewService ShopService FeatureFlagOption FeatureFlagRef ResolvedCartLineTokens ResolvedProductCardTokens ResolvedShopTheme
FeatureFlagBase
Resolved document shape for a feature flag record. Combines BaseDocument (id, timestamps) with the flag fields — a unique key, the optional kind discriminator a
FeatureFlagOption
One selectable option in a feature flag's options list. Pairs a humanreadable label with a JSONsafe value to support enumstyle flags in the admin UI.