@htilabs/platform-common-models 0.12.3 → 0.12.4

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.
Files changed (35) hide show
  1. package/dist/cvcs/index.cjs +153 -21
  2. package/dist/cvcs/index.cjs.map +1 -1
  3. package/dist/cvcs/index.d.cts +164 -27
  4. package/dist/cvcs/index.d.ts +164 -27
  5. package/dist/cvcs/index.js +153 -21
  6. package/dist/cvcs/index.js.map +1 -1
  7. package/dist/enums/index.cjs +1 -0
  8. package/dist/enums/index.cjs.map +1 -1
  9. package/dist/enums/index.d.cts +4 -3
  10. package/dist/enums/index.d.ts +4 -3
  11. package/dist/enums/index.js +1 -0
  12. package/dist/enums/index.js.map +1 -1
  13. package/dist/{index-4DiJrn7y.d.ts → index-C0J3f169.d.ts} +1 -1
  14. package/dist/{index-qreOzXYS.d.cts → index-EPjPjR0z.d.cts} +1 -1
  15. package/dist/index.cjs +154 -21
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +154 -21
  20. package/dist/index.js.map +1 -1
  21. package/dist/models/index.d.cts +2 -2
  22. package/dist/models/index.d.ts +2 -2
  23. package/dist/schemas/index.d.cts +25 -25
  24. package/dist/schemas/index.d.ts +25 -25
  25. package/package.json +1 -1
  26. package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
  27. package/src/__tests__/core-information-scope-invariant.test.ts +57 -3
  28. package/src/__tests__/cvc-sot-snapshot.test.ts +5 -4
  29. package/src/__tests__/location-type-routing-invariant.test.ts +202 -0
  30. package/src/cvcs/coreInformationScope.v1.0.0.json +22 -5
  31. package/src/cvcs/index.ts +3 -0
  32. package/src/cvcs/locationType.v1.0.0.json +131 -16
  33. package/src/generated/cvc-enums.ts +4 -3
  34. package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-DaDrEuTa.d.cts} +8 -8
  35. package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-DaDrEuTa.d.ts} +8 -8
@@ -1266,7 +1266,7 @@ declare const EmploymentStatusKeys: {
1266
1266
  };
1267
1267
  type EmploymentStatusKey = keyof typeof EmploymentStatusKeys;
1268
1268
  /**
1269
- * Key → positional code map for the `location_type` CVC domain.
1269
+ * Key → positional code map for the `location_type` CVC domain (CVC-191). Each entry also carries canon's 2026-10-01 share-routing columns (`tier` · `anchors` · `anchorDefault` · `shareUnit` · `safetyDefault`, overlaid by scripts/gen-location-type.py): route a stored location by its reason's `shareUnit` (a `core_information_scope` key; null = never delivered), not by a hand-kept map.
1270
1270
  *
1271
1271
  * Domain: `location_type` · Version: 1.0.0 · Entries: 17
1272
1272
  */
@@ -3788,9 +3788,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
3788
3788
  };
3789
3789
  type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
3790
3790
  /**
3791
- * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 55 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 55 units, with no renames, so adoption is additive and no stored ROI changes meaning).
3791
+ * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 56 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 56 units, with no renames, so adoption is additive and no stored ROI changes meaning).
3792
3792
  *
3793
- * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 71
3793
+ * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 72
3794
3794
  */
3795
3795
  declare const CoreInformationScopeKeys: {
3796
3796
  readonly missingness_root: "236-000-000-000-000-000-000";
@@ -3825,6 +3825,7 @@ declare const CoreInformationScopeKeys: {
3825
3825
  readonly contact_info: "236-003-001-000-000-000-000";
3826
3826
  readonly safe_locations: "236-003-002-000-000-000-000";
3827
3827
  readonly priorities_safety: "236-003-003-000-000-000-000";
3828
+ readonly encounter_location: "236-003-004-000-000-000-000";
3828
3829
  readonly services: "236-004-000-000-000-000-000";
3829
3830
  readonly contact_history: "236-004-001-000-000-000-000";
3830
3831
  readonly service_history: "236-004-002-000-000-000-000";
@@ -1266,7 +1266,7 @@ declare const EmploymentStatusKeys: {
1266
1266
  };
1267
1267
  type EmploymentStatusKey = keyof typeof EmploymentStatusKeys;
1268
1268
  /**
1269
- * Key → positional code map for the `location_type` CVC domain.
1269
+ * Key → positional code map for the `location_type` CVC domain (CVC-191). Each entry also carries canon's 2026-10-01 share-routing columns (`tier` · `anchors` · `anchorDefault` · `shareUnit` · `safetyDefault`, overlaid by scripts/gen-location-type.py): route a stored location by its reason's `shareUnit` (a `core_information_scope` key; null = never delivered), not by a hand-kept map.
1270
1270
  *
1271
1271
  * Domain: `location_type` · Version: 1.0.0 · Entries: 17
1272
1272
  */
@@ -3788,9 +3788,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
3788
3788
  };
3789
3789
  type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
3790
3790
  /**
3791
- * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 55 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 55 units, with no renames, so adoption is additive and no stored ROI changes meaning).
3791
+ * Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 56 authorization-grain UNITS. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — roi_scope's 27 substantive keys are a strict SUBSET of these 56 units, with no renames, so adoption is additive and no stored ROI changes meaning).
3792
3792
  *
3793
- * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 71
3793
+ * Domain: `core_information_scope` · Version: 1.0.0 · Entries: 72
3794
3794
  */
3795
3795
  declare const CoreInformationScopeKeys: {
3796
3796
  readonly missingness_root: "236-000-000-000-000-000-000";
@@ -3825,6 +3825,7 @@ declare const CoreInformationScopeKeys: {
3825
3825
  readonly contact_info: "236-003-001-000-000-000-000";
3826
3826
  readonly safe_locations: "236-003-002-000-000-000-000";
3827
3827
  readonly priorities_safety: "236-003-003-000-000-000-000";
3828
+ readonly encounter_location: "236-003-004-000-000-000-000";
3828
3829
  readonly services: "236-004-000-000-000-000-000";
3829
3830
  readonly contact_history: "236-004-001-000-000-000-000";
3830
3831
  readonly service_history: "236-004-002-000-000-000-000";
@@ -2923,6 +2923,7 @@ var CoreInformationScopeKeys = {
2923
2923
  contact_info: "236-003-001-000-000-000-000",
2924
2924
  safe_locations: "236-003-002-000-000-000-000",
2925
2925
  priorities_safety: "236-003-003-000-000-000-000",
2926
+ encounter_location: "236-003-004-000-000-000-000",
2926
2927
  services: "236-004-000-000-000-000-000",
2927
2928
  contact_history: "236-004-001-000-000-000-000",
2928
2929
  service_history: "236-004-002-000-000-000-000",