@instruments/taxonomy 0.2.0 → 0.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.
- package/README.md +16 -60
- package/dist/chunk-4ECRPD2I.js +7508 -0
- package/dist/{chunk-XLUE3IC2.js → chunk-FCMCKNQF.js} +11 -2
- package/dist/chunk-WIRA24HM.js +42 -0
- package/dist/crosswalks/designshop.d.ts +3 -11
- package/dist/crosswalks/designshop.js +125 -43
- package/dist/crosswalks/materialgraph.d.ts +41 -0
- package/dist/crosswalks/materialgraph.js +178 -0
- package/dist/crosswalks/miu.d.ts +2 -1
- package/dist/crosswalks/miu.js +9 -3
- package/dist/estate/index.d.ts +1 -1
- package/dist/estate/index.js +644 -551
- package/dist/index.d.ts +83 -6
- package/dist/index.js +103 -6104
- package/dist/mapping-pvHk5VjC.d.ts +31 -0
- package/dist/{match-BDI6Evro.d.ts → match-CWzTEuL-.d.ts} +37 -1
- package/dist/taste.d.ts +12 -1
- package/dist/taste.js +1 -1
- package/package.json +5 -1
- package/dist/chunk-C2ZPDTOU.js +0 -151
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,90 @@
|
|
|
1
|
-
import { T as Term } from './match-
|
|
2
|
-
export { A as AlternativeReason,
|
|
1
|
+
import { R as RelationPredicate, T as Term, M as MatchStrength } from './match-CWzTEuL-.js';
|
|
2
|
+
export { A as AlternativeReason, b as AlternativesMatch, c as BundleMatch, d as BundleMember, a as BundleMemberInput, B as BundleRole, e as BundleSearch, f as CandidateAnnotations, C as CanonicalAlternatives, g as CanonicalBundle, D as DEFAULT_BUNDLE_ROLE, E as ExternalMapping, h as ExternalScheme, i as MATCH_TEST_VECTORS, j as MATCH_WEIGHTS, k as MatchTestCandidate, l as MatchTestVector, m as MatchTier, P as PeriodSpan, n as RankedCandidate, o as RelationRole, S as SearchOptions, p as SearchedWithout, q as SourceBasis, r as StyleKind, s as TermProvenance, t as TermRelation, u as TermStatus, v as TermUsage, U as UsageBand, w as UsageWithheld, x as defineAlternatives, y as defineBundle, z as matchAlternatives, F as matchBundle, G as searchBundle } from './match-CWzTEuL-.js';
|
|
3
|
+
export { C as CrosswalkMapping, a as ambiguousMapping, b as approximateMapping, c as constitutiveMapping, d as declinedMapping, r as resolvedMapping } from './mapping-pvHk5VjC.js';
|
|
3
4
|
export { AmbiguousAssertionMeaning, AmbiguousCanonicalisation, AssertionAuthority, AssertionMeaning, AssertionPolarity, AssertionProvenance, AssertionRole, AssertionScope, CanonicalisationInput, CanonicalisationVerdict, DeclinedCanonicalisation, PORTABLE_ASSERTION_TEST_VECTORS, PortableAssertionTestVector, PortableTasteAssertion, ProjectContextAssertion, RequirementAssertion, RequirementConstraint, RequirementOperator, ResolvedAssertionMeaning, ResolvedCanonicalisation, TASTE_ASSERTION_CONTRACT_VERSION, TAXONOMY_SNAPSHOT_VERSION, TasteAssertion, UnresolvedAssertionMeaning, UnresolvedCanonicalisation, assertionMeaningFrom } from './taste.js';
|
|
4
5
|
|
|
6
|
+
/** The relation predicates, at runtime. TypeScript cannot enumerate a union, so this is by hand. */
|
|
7
|
+
declare const RELATION_PREDICATES: readonly ["blend-of", "evokes", "influenced-by", "part-of", "reads-as", "related-to", "serves", "suitable-for", "typically-in"];
|
|
8
|
+
/** Where a canonical term lives, and what it is called in the one spelling that counts. */
|
|
9
|
+
interface TermLocation {
|
|
10
|
+
axisId: string;
|
|
11
|
+
facetId: string;
|
|
12
|
+
termId: string;
|
|
13
|
+
/** `<axis>.<term>`, or `<axis>.<facet>.<term>` on a faceted axis. ADR 0001's target form. */
|
|
14
|
+
qualifiedId: string;
|
|
15
|
+
term: Term;
|
|
16
|
+
}
|
|
17
|
+
/** A parsed assertion: an optional relation predicate wrapping a term reference. */
|
|
18
|
+
interface ParsedAssertion {
|
|
19
|
+
predicate?: RelationPredicate;
|
|
20
|
+
/** The term reference, verbatim and unfolded. */
|
|
21
|
+
target: string;
|
|
22
|
+
}
|
|
23
|
+
interface ResolvedAssertion extends ParsedAssertion {
|
|
24
|
+
location: TermLocation;
|
|
25
|
+
/** The spelling the matcher compares on: `predicate(qualifiedId)` or a bare `qualifiedId`. */
|
|
26
|
+
canonical: string;
|
|
27
|
+
/** True when the named term is deprecated. Resolves anyway; a published id must keep resolving. */
|
|
28
|
+
deprecated: boolean;
|
|
29
|
+
/** The term that replaced it, when deprecated. */
|
|
30
|
+
supersededBy?: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Split `evokes(place.region.nordic)` into its predicate and target. A bare term reference parses
|
|
34
|
+
* to a target and no predicate. An unrecognised predicate does NOT parse: `foo(bar)` is not an
|
|
35
|
+
* assertion with an exotic predicate, it is a string nobody has defined.
|
|
36
|
+
*/
|
|
37
|
+
declare const parseAssertion: (assertion: string) => ParsedAssertion | undefined;
|
|
38
|
+
/** Every canonical term, with the qualified id that names it. */
|
|
39
|
+
declare const TERM_LOCATIONS: readonly TermLocation[];
|
|
40
|
+
/** Every accepted spelling of every term, folded. Exported so a consumer can size the vocabulary. */
|
|
41
|
+
declare const ASSERTION_KEYS: ReadonlySet<string>;
|
|
42
|
+
/** Resolve any published spelling of a term to the one location it names. */
|
|
43
|
+
declare const resolveTerm: (reference: string) => TermLocation | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Resolve a whole assertion, predicate included. Returns undefined when the predicate is not one
|
|
46
|
+
* `term.ts` defines, or when the target names no canonical term.
|
|
47
|
+
*/
|
|
48
|
+
declare const resolveAssertion: (assertion: string) => ResolvedAssertion | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The spelling the matcher compares on.
|
|
51
|
+
*
|
|
52
|
+
* An assertion this package cannot resolve folds to ITSELF rather than to nothing. That is the
|
|
53
|
+
* difference between a matcher and a gate: a consumer's private tag must still match its own
|
|
54
|
+
* counterpart on the other side, and only the canon's own artefacts are held to resolving.
|
|
55
|
+
*/
|
|
56
|
+
declare const canonicalAssertion: (assertion: string) => string;
|
|
57
|
+
/** True when this package can resolve the assertion to a canonical term. */
|
|
58
|
+
declare const isCanonicalAssertion: (assertion: string) => boolean;
|
|
59
|
+
/** The assertions this package cannot resolve, in input order. The failure message IS the work item. */
|
|
60
|
+
declare const unknownAssertions: (assertions: Iterable<string>) => readonly string[];
|
|
61
|
+
/** Assertions naming a term that still resolves but has been superseded, with its successor. */
|
|
62
|
+
declare const deprecatedAssertions: (assertions: Iterable<string>) => readonly {
|
|
63
|
+
assertion: string;
|
|
64
|
+
supersededBy: string;
|
|
65
|
+
}[];
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The SKOS property each strength renders to.
|
|
69
|
+
*
|
|
70
|
+
* `skos:relatedMatch`, not `skos:related`: the target sits in another scheme, and SKOS reserves the
|
|
71
|
+
* unqualified property for associations inside one scheme.
|
|
72
|
+
*/
|
|
73
|
+
declare const SKOS_MATCH_PREDICATE: Readonly<Record<MatchStrength, string>>;
|
|
74
|
+
/** The strengths, at runtime. TypeScript cannot enumerate a union, so this is by hand. */
|
|
75
|
+
declare const MATCH_STRENGTHS: readonly ["broad", "close", "exact", "narrow", "related"];
|
|
76
|
+
/**
|
|
77
|
+
* True when the row asserts the two concepts are interchangeable. The only strength a consumer may
|
|
78
|
+
* treat as an identity; everything else is an approximation it has been told about.
|
|
79
|
+
*/
|
|
80
|
+
declare const isInterchangeable: (strength: MatchStrength) => boolean;
|
|
81
|
+
|
|
5
82
|
declare const ELEMENT_TERMS: readonly Term[];
|
|
6
83
|
|
|
7
84
|
/** How a product or material is made; never a claim about its style or visible motif. */
|
|
8
85
|
declare const CONSTRUCTION_TERMS: readonly Term[];
|
|
9
86
|
|
|
10
|
-
/**
|
|
87
|
+
/** Kept for consumers importing the axis as one list; prefer the facets. */
|
|
11
88
|
declare const FINISH_TERMS: readonly Term[];
|
|
12
89
|
|
|
13
90
|
/** The supplied physical unit or delivery shape, independent of material and installation pattern. */
|
|
@@ -18,7 +95,7 @@ declare const MATERIAL_TERMS: readonly Term[];
|
|
|
18
95
|
|
|
19
96
|
declare const MOOD_TERMS: readonly Term[];
|
|
20
97
|
|
|
21
|
-
/**
|
|
98
|
+
/** Kept for consumers importing the axis as one list; prefer the facets. */
|
|
22
99
|
declare const PATTERN_TERMS: readonly Term[];
|
|
23
100
|
|
|
24
101
|
/** What kind of purchasable or specifiable thing the record describes, independent of substance. */
|
|
@@ -214,10 +291,10 @@ declare const isMaterialFamily: (value: string) => value is MaterialFamily;
|
|
|
214
291
|
declare const SECTORS: readonly ["hospitality", "healthcare", "workplace", "residential", "retail", "education", "civic", "mixed_use", "transportation", "other"];
|
|
215
292
|
type Sector = (typeof SECTORS)[number];
|
|
216
293
|
declare const isSector: (value: string) => value is Sector;
|
|
217
|
-
declare const APPLICATIONS: readonly ["wall", "flooring", "ceiling", "bath", "kitchen", "furniture", "lighting", "door", "window", "facade", "countertop", "fireplace", "stair_elevator", "bedding", "decor", "vertically_hanging", "transportation", "pool_fountain", "paving_deck", "partition", "millwork", "cabinetry", "masonry", "roof", "garage", "bar", "awning_umbrella", "recreation_sport", "ornamentation", "aquatic_environments", "wall_backsplash", "wall_upholstered", "wall_wet_shower", "flooring_wet_area", "flooring_entrance", "flooring_radiant_heat", "flooring_or_lab", "flooring_anti_fatigue", "flooring_esd", "flooring_safety_slip", "flooring_raised_access", "flooring_rigid_core", "flooring_dining_area", "flooring_subject_oil", "flooring_walk_in_freezer", "flooring_ramps_inclines", "furniture_seating", "furniture_headboard", "furniture_slipcover", "furniture_systems", "furniture_tackboard", "furniture_throw_pillow", "fireplace_firebox", "fireplace_hearth", "fireplace_mantel", "fireplace_surround", "bedding_bed_scarf", "bedding_sheets", "bedding_skirt", "bedding_bedspread", "bedding_box_spring_cover", "stair_riser", "stair_tread", "stair_railing", "stair_elevator_cladding", "vh_drapery", "vh_privacy_curtain", "vh_shower_curtain", "vh_theatrical_curtain", "vh_window_shade", "transportation_automotive", "transportation_aviation", "transportation_marine", "pool_coping", "pool_decking", "pool_lining", "paving_covered_areas", "paving_patio", "partition_toilet", "masonry_structural", "masonry_veneer", "recreation_gymnasium", "recreation_playground", "recreation_weightlifting", "awning", "tensile_structure", "umbrella", "countertop_chemical_resistant"];
|
|
294
|
+
declare const APPLICATIONS: readonly ["wall", "flooring", "ceiling", "bath", "kitchen", "furniture", "lighting", "door", "window", "facade", "countertop", "fireplace", "stair_elevator", "bedding", "decor", "vertically_hanging", "transportation", "pool_fountain", "paving_deck", "partition", "millwork", "cabinetry", "masonry", "roof", "garage", "bar", "awning_umbrella", "recreation_sport", "ornamentation", "aquatic_environments", "upholstery", "trim", "wall_backsplash", "wall_upholstered", "wall_wet_shower", "flooring_wet_area", "flooring_entrance", "flooring_radiant_heat", "flooring_or_lab", "flooring_anti_fatigue", "flooring_esd", "flooring_safety_slip", "flooring_raised_access", "flooring_rigid_core", "flooring_dining_area", "flooring_subject_oil", "flooring_walk_in_freezer", "flooring_ramps_inclines", "furniture_seating", "furniture_headboard", "furniture_slipcover", "furniture_systems", "furniture_tackboard", "furniture_throw_pillow", "fireplace_firebox", "fireplace_hearth", "fireplace_mantel", "fireplace_surround", "bedding_bed_scarf", "bedding_sheets", "bedding_skirt", "bedding_bedspread", "bedding_box_spring_cover", "stair_riser", "stair_tread", "stair_railing", "stair_elevator_cladding", "vh_drapery", "vh_privacy_curtain", "vh_shower_curtain", "vh_theatrical_curtain", "vh_window_shade", "transportation_automotive", "transportation_aviation", "transportation_marine", "pool_coping", "pool_decking", "pool_lining", "paving_covered_areas", "paving_patio", "partition_toilet", "masonry_structural", "masonry_veneer", "recreation_gymnasium", "recreation_playground", "recreation_weightlifting", "awning", "tensile_structure", "umbrella", "countertop_chemical_resistant"];
|
|
218
295
|
type Application = (typeof APPLICATIONS)[number];
|
|
219
296
|
declare const isApplication: (value: string) => value is Application;
|
|
220
297
|
declare const APPLICATION_PARENTS: Readonly<Partial<Record<Application, Application>>>;
|
|
221
298
|
declare const applicationTopLevelOf: (application: Application) => Application;
|
|
222
299
|
|
|
223
|
-
export { APPLICATIONS, APPLICATION_PARENTS, APPLICATION_TERMS, AXES, AXIS_IDS, type Anchors$1 as Anchors, type Application, type Axis, type AxisFacet, type AxisId, CONSTRUCTION_TERMS, ELEMENT_TERMS, FINISH_TERMS, FORMAT_TERMS, MARKET_NEUTRAL_SPACES, MATERIAL_FAMILIES, MATERIAL_FAMILY_TERMS, MATERIAL_TERMS, MOOD_ANCHORS, MOOD_TERMS, type MaterialFamily, PALETTE_CHARACTER_TERMS, PALETTE_FACETS, PALETTE_HUE_TERMS, PALETTE_TEMPERATURE_TERMS, PATTERN_TERMS, PERIOD_ANCHORS, PERIOD_TERMS, PLACE_ANCHORS, PLACE_FACETS, PLACE_LANDSCAPE_TERMS, PLACE_REGION_TERMS, PRODUCT_CATEGORY_TERMS, PROVENANCE, type PaletteFacet, type PlaceFacet, REQUIREMENT_TERMS, SECTORS, SECTOR_TERMS, SPACE_ANCHORS, SPACE_SECTORS, SPACE_TERMS, STYLE_ANCHORS, STYLE_TERMS, type Sector, type SpaceSector, type StyleId, TYPOLOGY_TERMS, type TaxonomyTerm, Term, anchorsFor, applicationTopLevelOf, axisById, axisTerms, isApplication, isMaterialFamily, isSector, marketsServed, moodAnchorsFor, periodAnchorsFor, periodAt, periodsAt, placeAnchorsFor, spaceAnchorsFor };
|
|
300
|
+
export { APPLICATIONS, APPLICATION_PARENTS, APPLICATION_TERMS, ASSERTION_KEYS, AXES, AXIS_IDS, type Anchors$1 as Anchors, type Application, type Axis, type AxisFacet, type AxisId, CONSTRUCTION_TERMS, ELEMENT_TERMS, FINISH_TERMS, FORMAT_TERMS, MARKET_NEUTRAL_SPACES, MATCH_STRENGTHS, MATERIAL_FAMILIES, MATERIAL_FAMILY_TERMS, MATERIAL_TERMS, MOOD_ANCHORS, MOOD_TERMS, MatchStrength, type MaterialFamily, PALETTE_CHARACTER_TERMS, PALETTE_FACETS, PALETTE_HUE_TERMS, PALETTE_TEMPERATURE_TERMS, PATTERN_TERMS, PERIOD_ANCHORS, PERIOD_TERMS, PLACE_ANCHORS, PLACE_FACETS, PLACE_LANDSCAPE_TERMS, PLACE_REGION_TERMS, PRODUCT_CATEGORY_TERMS, PROVENANCE, type PaletteFacet, type ParsedAssertion, type PlaceFacet, RELATION_PREDICATES, REQUIREMENT_TERMS, RelationPredicate, type ResolvedAssertion, SECTORS, SECTOR_TERMS, SKOS_MATCH_PREDICATE, SPACE_ANCHORS, SPACE_SECTORS, SPACE_TERMS, STYLE_ANCHORS, STYLE_TERMS, type Sector, type SpaceSector, type StyleId, TERM_LOCATIONS, TYPOLOGY_TERMS, type TaxonomyTerm, Term, type TermLocation, anchorsFor, applicationTopLevelOf, axisById, axisTerms, canonicalAssertion, deprecatedAssertions, isApplication, isCanonicalAssertion, isInterchangeable, isMaterialFamily, isSector, marketsServed, moodAnchorsFor, parseAssertion, periodAnchorsFor, periodAt, periodsAt, placeAnchorsFor, resolveAssertion, resolveTerm, spaceAnchorsFor, unknownAssertions };
|