@unified-product-graph/core 0.12.1 → 0.12.3

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/dist/index.cjs CHANGED
@@ -12520,7 +12520,18 @@ var UPG_PROPERTY_SCHEMA = {
12520
12520
  // SwitchingCostProperties: SwitchingCost entity.
12521
12521
  switching_cost: {
12522
12522
  cost_type: { type: "string", enum: ["financial", "learning", "data", "relationship", "procedural"], description: "Type of switching cost" },
12523
- magnitude: { type: "string", enum: ["high", "medium", "low"], description: "How large the barrier is" },
12523
+ magnitude: {
12524
+ type: "assessment",
12525
+ scale_id: "severity_5",
12526
+ description: "How large the switching barrier is (UPGAssessment on the `severity_5` scale). Steered onto the canonical scale to match sibling assessments. Migrated from the `high | medium | low` enum (UPG-579 Option C): map `high` -> 4, `medium` -> 3, `low` -> 2; carry the old word in `label`.",
12527
+ properties: {
12528
+ value: { type: "number", description: "The numeric value, used for computation." },
12529
+ label: { type: "string", description: "The qualitative label (what the assessor meant)." },
12530
+ scale_id: { type: "string", description: "Which assessment scale this was rated on (optional)." },
12531
+ normalized: { type: "number", description: "Normalized 0-1 value for cross-tool comparison (optional)." }
12532
+ },
12533
+ required: ["value", "label"]
12534
+ },
12524
12535
  barrier_description: { type: "string", description: "Free-text description of the barrier" }
12525
12536
  },
12526
12537
  // SymptomProperties: Observable behaviour produced by a root cause.
@@ -29135,7 +29146,7 @@ function isCanonical(text) {
29135
29146
  }
29136
29147
 
29137
29148
  // src/index.ts
29138
- var UPG_VERSION = "0.12.1";
29149
+ var UPG_VERSION = "0.12.3";
29139
29150
  var UPG_FORMAT_VERSION = "0.4.0";
29140
29151
  var MARKDOWN_FORMAT_VERSION = "0.1";
29141
29152
  var UPG_TYPES = getTypes();