@unified-product-graph/core 0.12.2 → 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 +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -10463,15 +10463,15 @@ interface JobStepProperties {
|
|
|
10463
10463
|
* @example
|
|
10464
10464
|
* const properties: SwitchingCostProperties = {
|
|
10465
10465
|
* cost_type: 'financial',
|
|
10466
|
-
* magnitude: 'high',
|
|
10466
|
+
* magnitude: { value: 4, label: 'high' },
|
|
10467
10467
|
* barrier_description: 'Extensive Notion workspace with years of history; migration feels daunting.',
|
|
10468
10468
|
* }
|
|
10469
10469
|
*/
|
|
10470
10470
|
interface SwitchingCostProperties {
|
|
10471
10471
|
/** Type of switching cost */
|
|
10472
10472
|
cost_type?: 'financial' | 'learning' | 'data' | 'relationship' | 'procedural';
|
|
10473
|
-
/** How large the barrier is */
|
|
10474
|
-
magnitude?:
|
|
10473
|
+
/** How large the barrier is (UPGAssessment on the `severity_5` scale). */
|
|
10474
|
+
magnitude?: UPGAssessment;
|
|
10475
10475
|
/** Free-text description of the barrier */
|
|
10476
10476
|
barrier_description?: string;
|
|
10477
10477
|
}
|
|
@@ -21822,7 +21822,7 @@ declare function isCanonical(text: string): boolean;
|
|
|
21822
21822
|
* it stamps the `upg_version` field of every `.upg` file written by the SDK.
|
|
21823
21823
|
* The `check:version-lockstep` gate enforces this at release time.
|
|
21824
21824
|
*/
|
|
21825
|
-
declare const UPG_VERSION: "0.12.
|
|
21825
|
+
declare const UPG_VERSION: "0.12.3";
|
|
21826
21826
|
/**
|
|
21827
21827
|
* The `.upg` JSON document format version. Written to the `upg_version` field.
|
|
21828
21828
|
* Evolves independently from `UPG_VERSION` (the catalogue version).
|
package/dist/index.d.ts
CHANGED
|
@@ -10463,15 +10463,15 @@ interface JobStepProperties {
|
|
|
10463
10463
|
* @example
|
|
10464
10464
|
* const properties: SwitchingCostProperties = {
|
|
10465
10465
|
* cost_type: 'financial',
|
|
10466
|
-
* magnitude: 'high',
|
|
10466
|
+
* magnitude: { value: 4, label: 'high' },
|
|
10467
10467
|
* barrier_description: 'Extensive Notion workspace with years of history; migration feels daunting.',
|
|
10468
10468
|
* }
|
|
10469
10469
|
*/
|
|
10470
10470
|
interface SwitchingCostProperties {
|
|
10471
10471
|
/** Type of switching cost */
|
|
10472
10472
|
cost_type?: 'financial' | 'learning' | 'data' | 'relationship' | 'procedural';
|
|
10473
|
-
/** How large the barrier is */
|
|
10474
|
-
magnitude?:
|
|
10473
|
+
/** How large the barrier is (UPGAssessment on the `severity_5` scale). */
|
|
10474
|
+
magnitude?: UPGAssessment;
|
|
10475
10475
|
/** Free-text description of the barrier */
|
|
10476
10476
|
barrier_description?: string;
|
|
10477
10477
|
}
|
|
@@ -21822,7 +21822,7 @@ declare function isCanonical(text: string): boolean;
|
|
|
21822
21822
|
* it stamps the `upg_version` field of every `.upg` file written by the SDK.
|
|
21823
21823
|
* The `check:version-lockstep` gate enforces this at release time.
|
|
21824
21824
|
*/
|
|
21825
|
-
declare const UPG_VERSION: "0.12.
|
|
21825
|
+
declare const UPG_VERSION: "0.12.3";
|
|
21826
21826
|
/**
|
|
21827
21827
|
* The `.upg` JSON document format version. Written to the `upg_version` field.
|
|
21828
21828
|
* Evolves independently from `UPG_VERSION` (the catalogue version).
|
package/dist/index.js
CHANGED
|
@@ -12306,7 +12306,18 @@ var UPG_PROPERTY_SCHEMA = {
|
|
|
12306
12306
|
// SwitchingCostProperties: SwitchingCost entity.
|
|
12307
12307
|
switching_cost: {
|
|
12308
12308
|
cost_type: { type: "string", enum: ["financial", "learning", "data", "relationship", "procedural"], description: "Type of switching cost" },
|
|
12309
|
-
magnitude: {
|
|
12309
|
+
magnitude: {
|
|
12310
|
+
type: "assessment",
|
|
12311
|
+
scale_id: "severity_5",
|
|
12312
|
+
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`.",
|
|
12313
|
+
properties: {
|
|
12314
|
+
value: { type: "number", description: "The numeric value, used for computation." },
|
|
12315
|
+
label: { type: "string", description: "The qualitative label (what the assessor meant)." },
|
|
12316
|
+
scale_id: { type: "string", description: "Which assessment scale this was rated on (optional)." },
|
|
12317
|
+
normalized: { type: "number", description: "Normalized 0-1 value for cross-tool comparison (optional)." }
|
|
12318
|
+
},
|
|
12319
|
+
required: ["value", "label"]
|
|
12320
|
+
},
|
|
12310
12321
|
barrier_description: { type: "string", description: "Free-text description of the barrier" }
|
|
12311
12322
|
},
|
|
12312
12323
|
// SymptomProperties: Observable behaviour produced by a root cause.
|
|
@@ -28921,7 +28932,7 @@ function isCanonical(text) {
|
|
|
28921
28932
|
}
|
|
28922
28933
|
|
|
28923
28934
|
// src/index.ts
|
|
28924
|
-
var UPG_VERSION = "0.12.
|
|
28935
|
+
var UPG_VERSION = "0.12.3";
|
|
28925
28936
|
var UPG_FORMAT_VERSION = "0.4.0";
|
|
28926
28937
|
var MARKDOWN_FORMAT_VERSION = "0.1";
|
|
28927
28938
|
var UPG_TYPES = getTypes();
|