@instruments/taxonomy 5.1.1 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ export declare const typicallyIn: (spaceId: string) => TermRelation;
5
5
  export declare const relatedTo: (...targets: readonly string[]) => TermRelation[];
6
6
  /**
7
7
  * "This product is a component of that one": a headboard of a bed. The component is not a kind of
8
- * its whole, so the edge is never `broaderSlug`.
8
+ * its whole, so the edge is never `broaderId`.
9
9
  */
10
10
  export declare const partOf: (productId: string) => TermRelation;
11
11
  /** The day the searches behind the hierarchy terms ran: flooring, coating, seating, blinds and lighting. */
@@ -0,0 +1,6 @@
1
+ import type { Term } from "../term.js";
2
+ import type { Axis, AxisSlug } from "./axis.js";
3
+ export declare const AXES: readonly Axis[];
4
+ export declare const axisBySlug: (slug: AxisSlug) => Axis | undefined;
5
+ /** Every term on an axis, across all its facets. */
6
+ export declare const axisTerms: (axis: Axis) => readonly Term[];
@@ -1,4 +1,3 @@
1
- import type { Sector } from "../../authoring.js";
2
1
  import type { ExternalMapping, MatchStrength, SearchedWithout, TermProvenance, TermRelation, TermUsage, UsageBand } from "../../term.js";
3
2
  export declare const VENDORED_SNAPSHOT = "2026-08-21";
4
3
  export declare const SCHEME_SNAPSHOT = "2026-08-18";
@@ -40,7 +39,7 @@ export declare const typicallyIn: (typology: string) => TermRelation;
40
39
  * no market, are in `market-neutral.ts`. The parameter is typed to the SECTOR union so a typo
41
40
  * fails to compile rather than dangling at test time.
42
41
  */
43
- export declare const serves: (market: Sector) => TermRelation;
42
+ export declare const serves: (market: string) => TermRelation;
44
43
  /** Current NBS titles are referenced verbatim, without adapting the classification. */
45
44
  export declare const uniclass: (identifier: string, label: string, match: MatchStrength) => ExternalMapping;
46
45
  /** The lifecycle and provenance of the common rooms authored when the axis was found to lack them. */
@@ -15,7 +15,7 @@ import type { Term } from "../term.js";
15
15
  * structure, and it exists because 197 rooms sorted alphabetically put Operating Room next to
16
16
  * Orangery - which is a list you can search and not a list you can read.
17
17
  *
18
- * NOR IS IT `broaderSlug`. A scullery is not a kind of "Dining", so an ISA edge would be false;
18
+ * NOR IS IT `broaderId`. A scullery is not a kind of "Dining", so an ISA edge would be false;
19
19
  * ADR 0001's relation rule is explicit that subsumption means every instance of the narrower term
20
20
  * is an instance of the broader one. Sector is a filing decision about the vocabulary, which is a
21
21
  * different kind of claim from a fact about the world, and conflating the two is how hierarchies
@@ -0,0 +1,4 @@
1
+ export declare const conceptId: (axis: string, slug: string) => string;
2
+ export declare function nodeSlug(id: string): string;
3
+ export declare function nodeSlug(id: undefined): undefined;
4
+ export declare function nodeSlug(id: string | undefined): string | undefined;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * Taxonomy V1's complete public package surface.
3
3
  *
4
- * Identity is always a canonical HTTPS URI. The package exports declarative data and the types
4
+ * Taxonomy identity is a permanent opaque ID. The package exports declarative data and the types
5
5
  * needed to consume it; resolution, traversal, ranking, and search policy live in adapters.
6
6
  */
7
7
  export { ASSESSMENT_AUTHORITY_REFERENCES, ASSESSMENT_POLICY_REVISION, type AssessmentEvidenceRoute, type ConceptAssessmentPolicy, CONCEPT_ASSESSMENT_POLICIES, type MaterialApplicability, } from "./assessment-policy.js";
8
- export { type AxisNode, type CanonicalConceptUri, COLOR_SCOPE_REFERENCE_KINDS, COLORSCOPE_BASE_URI, type ColorScopeConceptUri, type ColorScopeReferenceKind, type ColorScopeTarget, type ConceptNode, type ConceptUri, type ExternalReference, type FacetHolds, type FacetNode, type Governance, type GraphPredicate, type KnowledgeGraph, type KnowledgeGraphEdge, type KnowledgeGraphNode, KNOWLEDGE_GRAPH, type PhraseEntry, type MeaningContext, type MeaningPriority, PHRASE_ENTRIES, type Lifecycle, type PhraseMeaning, TAXONOMY_BASE_URI, TAXONOMY_CORPUS_METADATA, TAXONOMY_CORPUS_REVISION, TAXONOMY_SNAPSHOT, TAXONOMY_VERSION, type TaxonomyTarget, } from "./v1.js";
8
+ export { COLORSCOPE_SNAPSHOT } from "./axes/palette.generated.js";
9
+ export { type AxisNode, type ConceptId, COLOR_SCOPE_REFERENCE_KINDS, COLORSCOPE_BASE_URI, type ColorScopeConceptIdentity, type ColorScopeReferenceKind, type ColorScopeTarget, type ConceptNode, type ExternalReference, type FacetHolds, type FacetNode, type Governance, type GraphPredicate, type KnowledgeGraph, type KnowledgeGraphEdge, type KnowledgeGraphNode, KNOWLEDGE_GRAPH, type PhraseEntry, type MeaningContext, type MeaningPriority, PHRASE_ENTRIES, type Lifecycle, type PhraseMeaning, TAXONOMY_CORPUS_METADATA, TAXONOMY_CORPUS_REVISION, TAXONOMY_SNAPSHOT, TAXONOMY_VERSION, type TaxonomyTarget, } from "./v1.js";
9
10
  export type { ElementPlacement, PeriodSpan, SearchedWithout, StyleKind, TermProvenance, TermUsage, UsageWithheld, } from "./term.js";