@htilabs/platform-common-models 0.20.0 → 0.21.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/dist/cvcs/index.cjs +222 -120
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +223 -117
- package/dist/cvcs/index.d.ts +223 -117
- package/dist/cvcs/index.js +222 -120
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +4 -4
- package/dist/enums/index.d.ts +4 -4
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-I-DiX9eQ.d.ts → index-CDoqrfc1.d.ts} +1 -1
- package/dist/{index-CoVr1jIV.d.cts → index-Zu_mOJRn.d.cts} +1 -1
- package/dist/index.cjs +320 -137
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +319 -137
- package/dist/index.js.map +1 -1
- package/dist/information-scope/index.cjs +98 -17
- package/dist/information-scope/index.cjs.map +1 -1
- package/dist/information-scope/index.d.cts +142 -13
- package/dist/information-scope/index.d.ts +142 -13
- package/dist/information-scope/index.js +97 -17
- package/dist/information-scope/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/schemas/index.d.cts +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/dist/services/index.cjs +98 -17
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +97 -17
- package/dist/services/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +2 -2
- package/src/__tests__/core-information-scope-invariant.test.ts +141 -15
- package/src/__tests__/cvc-sot-snapshot.test.ts +4 -3
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/__tests__/location-type-routing-invariant.test.ts +1 -1
- package/src/cvcs/{coreInformationScope.v2.0.0.json → coreInformationScope.v2.1.0.json} +190 -88
- package/src/cvcs/index.ts +2 -2
- package/src/cvcs/{roiScope.v1.3.0.json → roiScope.v1.4.0.json} +26 -26
- package/src/generated/cvc-enums.ts +4 -4
- package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v3_placements.projection.csv +12 -0
- package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v4.migrations.csv +27 -27
- package/src/services/__tests__/fixtures/infoscope-v4/information_scope_v4.rows.csv +1 -1
- package/src/services/__tests__/fixtures/infoscope-v4/loadInfoscopeV4Fixtures.ts +85 -14
- package/src/services/__tests__/informationScopeResolver.test.ts +336 -22
- package/src/services/informationScopeResolver.ts +226 -19
- package/src/services/informationScopeSot.ts +50 -8
- package/dist/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-0BIB9sen.d.cts} +8 -8
- package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-0BIB9sen.d.ts} +8 -8
package/dist/enums/index.d.cts
CHANGED
|
@@ -3805,9 +3805,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
|
|
|
3805
3805
|
};
|
|
3806
3806
|
type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
|
|
3807
3807
|
/**
|
|
3808
|
-
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236 v4 tree, SOT v2.
|
|
3808
|
+
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236 v4 tree, SOT v2.1.0: 115 live rows + 27 RETIRED tombstones. Canon depth 0–3 — top layer (System metadata · Narrative notes · Primary client · Other named persons), then client category / person type, then sub-category / a person type's category, then instrument row / a person type's sub-category — read off parentCode / parentKey, NOT the code: every v1.1.0 code is unchanged and new rows append. A canon `.` is `__` in the key (`offenders__identifying`; canon spelling on `canonicalCode`). Every LIVE row but the 28 instrument rows and `identifying__other` is selectable (select-all at any level); detect a category by `rowType`, not `selectable`. Tombstones keep their codes so a stored value resolves, are `selectable: false` + `retired: true`, and name their SELECTION reading in `successors` (a restriction resolves via the `subtract` lines: `restrictionSuccessors`); the envelope `migrations` block is the v3 → v4 from-to table, applied at READ time (a v2-era or unstamped list goes through canon's v2 → v3 table first; `widens: true` marks readings wider than v3; on those lines `releaseReading` says whether a signed release or share keeps the code's v3 grain (`retain`: the tombstone's `v3Fields`, read-only) or reads its successor, and `policyReading: successor` that a policy or preset takes the successor with a dated version row). Distinct from the sibling `roi_scope` domain, the LEGACY flat item vocabulary: every one of its 27 substantive keys is an entry here, spelled identically)
|
|
3809
3809
|
*
|
|
3810
|
-
* Domain: `core_information_scope` · Version: 2.
|
|
3810
|
+
* Domain: `core_information_scope` · Version: 2.1.0 · Entries: 146
|
|
3811
3811
|
*/
|
|
3812
3812
|
declare const CoreInformationScopeKeys: {
|
|
3813
3813
|
readonly missingness_root: "236-000-000-000-000-000-000";
|
|
@@ -3959,9 +3959,9 @@ declare const CoreInformationScopeKeys: {
|
|
|
3959
3959
|
};
|
|
3960
3960
|
type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;
|
|
3961
3961
|
/**
|
|
3962
|
-
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 14 live + 13 RETIRED tombstones, each matching its CVC-236 twin (`screen_notes`, `background` retired 2026-10-05 and include nothing; 11 more retired by the CVC-236 v4 tree, SOT v2.
|
|
3962
|
+
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 14 live + 13 RETIRED tombstones, each matching its CVC-236 twin (`screen_notes`, `background` retired 2026-10-05 and include nothing; 11 more retired by the CVC-236 v4 tree, each read through its twin's CVC-236 SOT v2.1.0 `migrations` line: a stored ROI is a signed release, so the 9 health / immigration twins keep the twin's v3 grain (`v3Fields`, read-only) while a policy or preset takes the successor; `ida_full` / `ida_consid` read as their twin's informational line). Tombstones keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` — never offer them. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES).
|
|
3963
3963
|
*
|
|
3964
|
-
* Domain: `roi_scope` · Version: 1.
|
|
3964
|
+
* Domain: `roi_scope` · Version: 1.4.0 · Entries: 31
|
|
3965
3965
|
*/
|
|
3966
3966
|
declare const RoiScopeKeys: {
|
|
3967
3967
|
readonly missingness_root: "983-000-000-000-000-000-000";
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -3805,9 +3805,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
|
|
|
3805
3805
|
};
|
|
3806
3806
|
type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
|
|
3807
3807
|
/**
|
|
3808
|
-
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236 v4 tree, SOT v2.
|
|
3808
|
+
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236 v4 tree, SOT v2.1.0: 115 live rows + 27 RETIRED tombstones. Canon depth 0–3 — top layer (System metadata · Narrative notes · Primary client · Other named persons), then client category / person type, then sub-category / a person type's category, then instrument row / a person type's sub-category — read off parentCode / parentKey, NOT the code: every v1.1.0 code is unchanged and new rows append. A canon `.` is `__` in the key (`offenders__identifying`; canon spelling on `canonicalCode`). Every LIVE row but the 28 instrument rows and `identifying__other` is selectable (select-all at any level); detect a category by `rowType`, not `selectable`. Tombstones keep their codes so a stored value resolves, are `selectable: false` + `retired: true`, and name their SELECTION reading in `successors` (a restriction resolves via the `subtract` lines: `restrictionSuccessors`); the envelope `migrations` block is the v3 → v4 from-to table, applied at READ time (a v2-era or unstamped list goes through canon's v2 → v3 table first; `widens: true` marks readings wider than v3; on those lines `releaseReading` says whether a signed release or share keeps the code's v3 grain (`retain`: the tombstone's `v3Fields`, read-only) or reads its successor, and `policyReading: successor` that a policy or preset takes the successor with a dated version row). Distinct from the sibling `roi_scope` domain, the LEGACY flat item vocabulary: every one of its 27 substantive keys is an entry here, spelled identically)
|
|
3809
3809
|
*
|
|
3810
|
-
* Domain: `core_information_scope` · Version: 2.
|
|
3810
|
+
* Domain: `core_information_scope` · Version: 2.1.0 · Entries: 146
|
|
3811
3811
|
*/
|
|
3812
3812
|
declare const CoreInformationScopeKeys: {
|
|
3813
3813
|
readonly missingness_root: "236-000-000-000-000-000-000";
|
|
@@ -3959,9 +3959,9 @@ declare const CoreInformationScopeKeys: {
|
|
|
3959
3959
|
};
|
|
3960
3960
|
type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;
|
|
3961
3961
|
/**
|
|
3962
|
-
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 14 live + 13 RETIRED tombstones, each matching its CVC-236 twin (`screen_notes`, `background` retired 2026-10-05 and include nothing; 11 more retired by the CVC-236 v4 tree, SOT v2.
|
|
3962
|
+
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 14 live + 13 RETIRED tombstones, each matching its CVC-236 twin (`screen_notes`, `background` retired 2026-10-05 and include nothing; 11 more retired by the CVC-236 v4 tree, each read through its twin's CVC-236 SOT v2.1.0 `migrations` line: a stored ROI is a signed release, so the 9 health / immigration twins keep the twin's v3 grain (`v3Fields`, read-only) while a policy or preset takes the successor; `ida_full` / `ida_consid` read as their twin's informational line). Tombstones keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` — never offer them. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES).
|
|
3963
3963
|
*
|
|
3964
|
-
* Domain: `roi_scope` · Version: 1.
|
|
3964
|
+
* Domain: `roi_scope` · Version: 1.4.0 · Entries: 31
|
|
3965
3965
|
*/
|
|
3966
3966
|
declare const RoiScopeKeys: {
|
|
3967
3967
|
readonly missingness_root: "983-000-000-000-000-000-000";
|