from @unified-product-graph/core/registry · re-exported by @sdk
Registry
Domain registry and entity metadata.
24 exports · 9 const · 2 type · 3 interface · 9 fn · 1 class
Since v0.2.0Quick import
import { getDomainIdForType, isDeprecatedType } from '@unified-product-graph/core'Example
// Route a node to its domain or detect deprecated types at import time
import { getDomainIdForType, isDeprecatedType } from '@unified-product-graph/core'
getDomainIdForType('competitor') // → 'market_intelligence'
isDeprecatedType('kpi') // → true (use metric 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 37 atomic domains.
Exports
Constants
readonly [{ readonly id: "strategy"; readonly label: "Strategy"; readonly description: "The high-level direction of y...Readonly<Record<UPGEntityType, "strategy" | "user" | "discovery" | "validation" | "market_intelligence" | "user_resea...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" | ... 25 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).