@htilabs/platform-common-models 0.13.1 → 0.15.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/constants/index.cjs +33 -0
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +29 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-DaDrEuTa.d.cts} +44 -44
- package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-DaDrEuTa.d.ts} +44 -44
- package/dist/cvcs/index.cjs +212 -38
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +224 -41
- package/dist/cvcs/index.d.ts +224 -41
- package/dist/cvcs/index.js +212 -38
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +8 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +11 -4
- package/dist/enums/index.d.ts +11 -4
- package/dist/enums/index.js +8 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-CDoqrfc1.d.ts → index-C0J3f169.d.ts} +1 -1
- package/dist/{index-Zu_mOJRn.d.cts → index-EPjPjR0z.d.cts} +1 -1
- package/dist/index.cjs +253 -39
- 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 +249 -39
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/{platform-auth-64U8jjuw.d.cts → platform-auth-CrF5U_JH.d.cts} +43 -2
- package/dist/{platform-auth-64U8jjuw.d.ts → platform-auth-CrF5U_JH.d.ts} +43 -2
- package/dist/schemas/index.cjs +234 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +35 -35
- package/dist/schemas/index.d.ts +35 -35
- package/dist/schemas/index.js +234 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/package.json +27 -26
- package/src/__sot__/coreIndicatorFields.ts +4 -4
- package/src/__sot__/coreIndicators.pin.json +62 -2
- package/src/__sot__/scoringEmits.pin.json +9 -4
- package/src/__tests__/__snapshots__/cvc-sot.snap +4 -4
- package/src/__tests__/core-information-scope-invariant.test.ts +204 -15
- package/src/__tests__/cvc-136-scoring-invariant.test.ts +89 -28
- package/src/__tests__/cvc-drift-gate.test.ts +149 -27
- package/src/__tests__/cvc-sot-snapshot.test.ts +14 -8
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/__tests__/location-type-routing-invariant.test.ts +1 -1
- package/src/constants/ic.ts +163 -3
- package/src/cvcs/{coreIndicators.v1.0.0.json → coreIndicators.v1.1.0.json} +93 -10
- package/src/cvcs/{coreInformationScope.v1.0.0.json → coreInformationScope.v1.1.0.json} +113 -22
- package/src/cvcs/index.ts +2 -2
- package/src/generated/cvc-enums.ts +11 -4
package/dist/enums/index.d.cts
CHANGED
|
@@ -3803,9 +3803,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
|
|
|
3803
3803
|
};
|
|
3804
3804
|
type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
|
|
3805
3805
|
/**
|
|
3806
|
-
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES +
|
|
3806
|
+
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 55 authorization-grain UNITS + 2 RETIRED tombstones. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Tombstones (`screen_notes`, `background`; retired 2026-10-05) keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` and include nothing — offer only selectable children. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — every one of roi_scope's 27 substantive keys resolves here with no renames (25 live units, 2 tombstones), so a stored ROI never widens).
|
|
3807
3807
|
*
|
|
3808
|
-
* Domain: `core_information_scope` · Version: 1.
|
|
3808
|
+
* Domain: `core_information_scope` · Version: 1.1.0 · Entries: 73
|
|
3809
3809
|
*/
|
|
3810
3810
|
declare const CoreInformationScopeKeys: {
|
|
3811
3811
|
readonly missingness_root: "236-000-000-000-000-000-000";
|
|
@@ -3849,6 +3849,7 @@ declare const CoreInformationScopeKeys: {
|
|
|
3849
3849
|
readonly screen_notes: "236-005-001-000-000-000-000";
|
|
3850
3850
|
readonly case_notes: "236-005-002-000-000-000-000";
|
|
3851
3851
|
readonly background: "236-005-003-000-000-000-000";
|
|
3852
|
+
readonly session_summary: "236-005-004-000-000-000-000";
|
|
3852
3853
|
readonly health_accommodation: "236-006-000-000-000-000-000";
|
|
3853
3854
|
readonly accommodation_needs: "236-006-001-000-000-000-000";
|
|
3854
3855
|
readonly disability_subtypes: "236-006-002-000-000-000-000";
|
|
@@ -3970,9 +3971,9 @@ declare const DhStateKeys: {
|
|
|
3970
3971
|
};
|
|
3971
3972
|
type DhStateKey = keyof typeof DhStateKeys;
|
|
3972
3973
|
/**
|
|
3973
|
-
* Key → positional code map for the `core_indicators` CVC domain (CVC-136;
|
|
3974
|
+
* Key → positional code map for the `core_indicators` CVC domain (CVC-136; 220 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ c53378f, reconciled against @hti/scoring `emits_by_code` @ 9c209cf; the 2 former scoring-ahead `_youth` codes are DEPRECATED read-only rows — `selectable: false`, `supersededBy` their canonical siblings — kept because PAVE 2.0 still writes them = 222 substantive; SOT v1.1.0). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.
|
|
3974
3975
|
*
|
|
3975
|
-
* Domain: `core_indicators` · Version: 1.
|
|
3976
|
+
* Domain: `core_indicators` · Version: 1.1.0 · Entries: 226
|
|
3976
3977
|
*/
|
|
3977
3978
|
declare const CoreIndicatorKeys: {
|
|
3978
3979
|
readonly missingness_root: "136-000-000-000-000-000-000";
|
|
@@ -4195,6 +4196,12 @@ declare const CoreIndicatorKeys: {
|
|
|
4195
4196
|
readonly sexualized_content_online_performance_activity: "136-214-000-000-000-000-000";
|
|
4196
4197
|
readonly trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000";
|
|
4197
4198
|
readonly active_protective_order: "136-216-000-000-000-000-000";
|
|
4199
|
+
readonly disclosed_fear_at_intake: "136-217-000-000-000-000-000";
|
|
4200
|
+
readonly does_not_control_housing: "136-218-000-000-000-000-000";
|
|
4201
|
+
readonly oppressive_home_life: "136-219-000-000-000-000-000";
|
|
4202
|
+
readonly recent_separation: "136-220-000-000-000-000-000";
|
|
4203
|
+
readonly survival_sex: "136-221-000-000-000-000-000";
|
|
4204
|
+
readonly unable_to_speak_freely: "136-222-000-000-000-000-000";
|
|
4198
4205
|
};
|
|
4199
4206
|
type CoreIndicatorKey = keyof typeof CoreIndicatorKeys;
|
|
4200
4207
|
/**
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -3803,9 +3803,9 @@ declare const NeedsAssessmentChangeTypeKeys: {
|
|
|
3803
3803
|
};
|
|
3804
3804
|
type NeedsAssessmentChangeTypeKey = keyof typeof NeedsAssessmentChangeTypeKeys;
|
|
3805
3805
|
/**
|
|
3806
|
-
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES +
|
|
3806
|
+
* Key → positional code map for the `core_information_scope` CVC domain (DRAFT-TEMPORARY; canonical CVC-236, 12 policy-grain CATEGORIES + 55 authorization-grain UNITS + 2 RETIRED tombstones. Categories are level 1 and NOT selectable; units are level 2 and are what an ROI or a share authorizes. Tombstones (`screen_notes`, `background`; retired 2026-10-05) keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` and include nothing — offer only selectable children. Distinct from the sibling `roi_scope` domain, which is the FLAT item vocabulary and deliberately omits the category axis — every one of roi_scope's 27 substantive keys resolves here with no renames (25 live units, 2 tombstones), so a stored ROI never widens).
|
|
3807
3807
|
*
|
|
3808
|
-
* Domain: `core_information_scope` · Version: 1.
|
|
3808
|
+
* Domain: `core_information_scope` · Version: 1.1.0 · Entries: 73
|
|
3809
3809
|
*/
|
|
3810
3810
|
declare const CoreInformationScopeKeys: {
|
|
3811
3811
|
readonly missingness_root: "236-000-000-000-000-000-000";
|
|
@@ -3849,6 +3849,7 @@ declare const CoreInformationScopeKeys: {
|
|
|
3849
3849
|
readonly screen_notes: "236-005-001-000-000-000-000";
|
|
3850
3850
|
readonly case_notes: "236-005-002-000-000-000-000";
|
|
3851
3851
|
readonly background: "236-005-003-000-000-000-000";
|
|
3852
|
+
readonly session_summary: "236-005-004-000-000-000-000";
|
|
3852
3853
|
readonly health_accommodation: "236-006-000-000-000-000-000";
|
|
3853
3854
|
readonly accommodation_needs: "236-006-001-000-000-000-000";
|
|
3854
3855
|
readonly disability_subtypes: "236-006-002-000-000-000-000";
|
|
@@ -3970,9 +3971,9 @@ declare const DhStateKeys: {
|
|
|
3970
3971
|
};
|
|
3971
3972
|
type DhStateKey = keyof typeof DhStateKeys;
|
|
3972
3973
|
/**
|
|
3973
|
-
* Key → positional code map for the `core_indicators` CVC domain (CVC-136;
|
|
3974
|
+
* Key → positional code map for the `core_indicators` CVC domain (CVC-136; 220 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ c53378f, reconciled against @hti/scoring `emits_by_code` @ 9c209cf; the 2 former scoring-ahead `_youth` codes are DEPRECATED read-only rows — `selectable: false`, `supersededBy` their canonical siblings — kept because PAVE 2.0 still writes them = 222 substantive; SOT v1.1.0). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.
|
|
3974
3975
|
*
|
|
3975
|
-
* Domain: `core_indicators` · Version: 1.
|
|
3976
|
+
* Domain: `core_indicators` · Version: 1.1.0 · Entries: 226
|
|
3976
3977
|
*/
|
|
3977
3978
|
declare const CoreIndicatorKeys: {
|
|
3978
3979
|
readonly missingness_root: "136-000-000-000-000-000-000";
|
|
@@ -4195,6 +4196,12 @@ declare const CoreIndicatorKeys: {
|
|
|
4195
4196
|
readonly sexualized_content_online_performance_activity: "136-214-000-000-000-000-000";
|
|
4196
4197
|
readonly trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000";
|
|
4197
4198
|
readonly active_protective_order: "136-216-000-000-000-000-000";
|
|
4199
|
+
readonly disclosed_fear_at_intake: "136-217-000-000-000-000-000";
|
|
4200
|
+
readonly does_not_control_housing: "136-218-000-000-000-000-000";
|
|
4201
|
+
readonly oppressive_home_life: "136-219-000-000-000-000-000";
|
|
4202
|
+
readonly recent_separation: "136-220-000-000-000-000-000";
|
|
4203
|
+
readonly survival_sex: "136-221-000-000-000-000-000";
|
|
4204
|
+
readonly unable_to_speak_freely: "136-222-000-000-000-000-000";
|
|
4198
4205
|
};
|
|
4199
4206
|
type CoreIndicatorKey = keyof typeof CoreIndicatorKeys;
|
|
4200
4207
|
/**
|
package/dist/enums/index.js
CHANGED
|
@@ -2947,6 +2947,7 @@ var CoreInformationScopeKeys = {
|
|
|
2947
2947
|
screen_notes: "236-005-001-000-000-000-000",
|
|
2948
2948
|
case_notes: "236-005-002-000-000-000-000",
|
|
2949
2949
|
background: "236-005-003-000-000-000-000",
|
|
2950
|
+
session_summary: "236-005-004-000-000-000-000",
|
|
2950
2951
|
health_accommodation: "236-006-000-000-000-000-000",
|
|
2951
2952
|
accommodation_needs: "236-006-001-000-000-000-000",
|
|
2952
2953
|
disability_subtypes: "236-006-002-000-000-000-000",
|
|
@@ -3262,7 +3263,13 @@ var CoreIndicatorKeys = {
|
|
|
3262
3263
|
sexualized_content_in_person_performance_activity: "136-213-000-000-000-000-000",
|
|
3263
3264
|
sexualized_content_online_performance_activity: "136-214-000-000-000-000-000",
|
|
3264
3265
|
trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000",
|
|
3265
|
-
active_protective_order: "136-216-000-000-000-000-000"
|
|
3266
|
+
active_protective_order: "136-216-000-000-000-000-000",
|
|
3267
|
+
disclosed_fear_at_intake: "136-217-000-000-000-000-000",
|
|
3268
|
+
does_not_control_housing: "136-218-000-000-000-000-000",
|
|
3269
|
+
oppressive_home_life: "136-219-000-000-000-000-000",
|
|
3270
|
+
recent_separation: "136-220-000-000-000-000-000",
|
|
3271
|
+
survival_sex: "136-221-000-000-000-000-000",
|
|
3272
|
+
unable_to_speak_freely: "136-222-000-000-000-000-000"
|
|
3266
3273
|
};
|
|
3267
3274
|
var RiskIdentificationMilestoneKeys = {
|
|
3268
3275
|
missingness_root: "267-000-000-000-000-000-000",
|