from @unified-product-graph/core/registry · re-exported by @sdk
Registry
Domain registry and entity metadata.
21 exports · 7 const · 2 type · 3 interface · 8 fn · 1 class
Since v0.2.0Quick import
import { getDomainIdForType, isDeprecatedType } from '@unified-product-graph/core/registry'Example
// Route a node to its domain or detect deprecated types at import time
import { getDomainIdForType, isDeprecatedType } from '@unified-product-graph/core/registry'
getDomainIdForType('competitor') // → 'market_intelligence'
isDeprecatedType('typed_cell') // → true (use empty_cell instead)Domain registry and entity metadata. Lookups for "what domain does this entity type belong to" and "what is this type's display label." UPG_ENTITY_META maps every entity type to its immutable integer ID, maturity tier, and owning domain. UPG_DOMAINS enumerates all 36 atomic domains.
Exports
Constants
readonly [{ readonly id: "strategy"; readonly label: "Strategy"; readonly description: "The high-level direction of y...Types
type UPGDomainId = typeof UPG_DOMAINS[number]['id']Union of every canonical domain identifier, derived from UPG_DOMAINS.
Interfaces
interface EntityTypeResolutionResult of resolving a (possibly deprecated) entity-type input.
Functions
(entityType: string) => UPGDomain | undefinedLook up which domain an entity type belongs to.
(entityType: UPGEntityType) => "strategy" | "user" | "discovery" | "validation" | "market_intelligence" | "user_research" | "ux_design" | "design_system" | "brand" | "product_spec" | "engineering" | "growth" | ... 24 more ... | undefinedLook up the canonical domain id for a typed entity type.
(name: string) => string | undefinedResolve a type name to its type_id (stable across renames).