from @unified-product-graph/core/presentation · re-exported by @sdk
Presentation
Display-layer metadata: type labels, framework labels, and domain rings.
40 exports · 11 const · 1 type · 10 interface · 18 fn
Since v0.3.0Quick import
import { UPG_TYPE_LABELS_MAP } from '@unified-product-graph/core'Example
// Render a human-readable label for any entity type
import { UPG_TYPE_LABELS_MAP } from '@unified-product-graph/core'
UPG_TYPE_LABELS_MAP.get('value_proposition')?.canonical_label // → 'Value Proposition'
UPG_TYPE_LABELS_MAP.get('metric_quality_assessment')?.canonical_label // → 'Metric Quality Assessment'Display-layer metadata: type labels, framework labels, and domain rings. Everything used by UI to render entity types in human-readable form lives here: UPG_TYPE_LABELS, UPG_LENSES, UPG_DOMAIN_RINGS. Presentation concerns are applied on read and never stored in the graph.
Exports
Constants
Types
Interfaces
interface UPGAreaTaxonomyEntryOne row of the area-taxonomy cross-walk, keyed by a `digest.coverage` key.
interface UPGLensA contextual projection of the product graph for a specific role, framework, or mode of thinking.
interface UPGLensIntelligencePromptA single context-sensitive nudge belonging to a lens's intelligence layer.
interface UPGTreeChildOne child slot in a pattern: a child entity type and whether it is gap-worthy.
interface UPGTreePatternDetailA pattern with its child map resolved to concrete edges (for introspection).
interface UPGTreePatternEdgeOne resolved edge in a pattern's child map: the (parent -> child) pair plus the canonical edge that wires it, resolved LIVE from the edge catalogue (not stored on the pattern).
interface UPGTreePatternSummaryA pattern summary row (no child_map) for list_tree_patterns.
Functions
(id: string) => UPGTreePatternDetail | undefinedThe full declarative record for one pattern: the pattern plus its child_map resolved to concrete edges.
(coverageKey: string) => UPGAreaTaxonomyEntry | undefinedThe cross-walk row for a `digest.coverage` key, or undefined.
(regionId: string) => string[]The "8 business area" ids that map to a given region (deduped).
(regionId: string) => string[]The `digest.coverage` keys whose entities live (partly) in a given region.
(domainId: string) => UPGLens[]Get all lenses that include a given domain in their visible_domains.
(lens: UPGLens) => UPGPlaybook | undefinedResolve a lens to its associated `UPGPlaybook`.
(domainId: string) => UPGDomainRing | undefinedLook up which ring a domain belongs to.
() => UPGTreePatternSummary[]Every pattern as a summary row (the list_tree_patterns surface).
(entityType: string, frameworkId?: string, designation?: string) => stringResolve the display label for an entity type, with optional framework context.
(pattern: UPGTreePattern) => UPGTreePatternEdge[]Flatten a pattern's child_map to resolved (parent, child, via, kind) edges.