@htilabs/platform-common-models 0.13.1 → 0.14.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.
Files changed (45) hide show
  1. package/dist/constants/index.cjs +33 -0
  2. package/dist/constants/index.cjs.map +1 -1
  3. package/dist/constants/index.d.cts +1 -1
  4. package/dist/constants/index.d.ts +1 -1
  5. package/dist/constants/index.js +29 -0
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/cvcs/index.cjs +96 -13
  8. package/dist/cvcs/index.cjs.map +1 -1
  9. package/dist/cvcs/index.d.cts +101 -12
  10. package/dist/cvcs/index.d.ts +101 -12
  11. package/dist/cvcs/index.js +96 -13
  12. package/dist/cvcs/index.js.map +1 -1
  13. package/dist/enums/index.cjs +7 -1
  14. package/dist/enums/index.cjs.map +1 -1
  15. package/dist/enums/index.d.cts +8 -2
  16. package/dist/enums/index.d.ts +8 -2
  17. package/dist/enums/index.js +7 -1
  18. package/dist/enums/index.js.map +1 -1
  19. package/dist/index.cjs +136 -14
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +132 -14
  24. package/dist/index.js.map +1 -1
  25. package/dist/{platform-auth-64U8jjuw.d.cts → platform-auth-CrF5U_JH.d.cts} +43 -2
  26. package/dist/{platform-auth-64U8jjuw.d.ts → platform-auth-CrF5U_JH.d.ts} +43 -2
  27. package/dist/schemas/index.cjs +234 -0
  28. package/dist/schemas/index.cjs.map +1 -1
  29. package/dist/schemas/index.js +234 -0
  30. package/dist/schemas/index.js.map +1 -1
  31. package/dist/types/index.d.cts +2 -2
  32. package/dist/types/index.d.ts +2 -2
  33. package/package.json +1 -1
  34. package/src/__sot__/coreIndicatorFields.ts +4 -4
  35. package/src/__sot__/coreIndicators.pin.json +62 -2
  36. package/src/__sot__/scoringEmits.pin.json +9 -4
  37. package/src/__tests__/__snapshots__/cvc-sot.snap +2 -2
  38. package/src/__tests__/cvc-136-scoring-invariant.test.ts +89 -28
  39. package/src/__tests__/cvc-drift-gate.test.ts +149 -27
  40. package/src/__tests__/cvc-sot-snapshot.test.ts +3 -1
  41. package/src/__tests__/cvc-structural.test.ts +1 -1
  42. package/src/constants/ic.ts +163 -3
  43. package/src/cvcs/{coreIndicators.v1.0.0.json → coreIndicators.v1.1.0.json} +93 -10
  44. package/src/cvcs/index.ts +1 -1
  45. package/src/generated/cvc-enums.ts +8 -2
@@ -3970,9 +3970,9 @@ declare const DhStateKeys: {
3970
3970
  };
3971
3971
  type DhStateKey = keyof typeof DhStateKeys;
3972
3972
  /**
3973
- * Key → positional code map for the `core_indicators` CVC domain (CVC-136; 214 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ 622410b + 2 scoring-ahead codes @hti/scoring emits before the codebook adopted them = 216 substantive). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.
3973
+ * 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
3974
  *
3975
- * Domain: `core_indicators` · Version: 1.0.0 · Entries: 220
3975
+ * Domain: `core_indicators` · Version: 1.1.0 · Entries: 226
3976
3976
  */
3977
3977
  declare const CoreIndicatorKeys: {
3978
3978
  readonly missingness_root: "136-000-000-000-000-000-000";
@@ -4195,6 +4195,12 @@ declare const CoreIndicatorKeys: {
4195
4195
  readonly sexualized_content_online_performance_activity: "136-214-000-000-000-000-000";
4196
4196
  readonly trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000";
4197
4197
  readonly active_protective_order: "136-216-000-000-000-000-000";
4198
+ readonly disclosed_fear_at_intake: "136-217-000-000-000-000-000";
4199
+ readonly does_not_control_housing: "136-218-000-000-000-000-000";
4200
+ readonly oppressive_home_life: "136-219-000-000-000-000-000";
4201
+ readonly recent_separation: "136-220-000-000-000-000-000";
4202
+ readonly survival_sex: "136-221-000-000-000-000-000";
4203
+ readonly unable_to_speak_freely: "136-222-000-000-000-000-000";
4198
4204
  };
4199
4205
  type CoreIndicatorKey = keyof typeof CoreIndicatorKeys;
4200
4206
  /**
@@ -3970,9 +3970,9 @@ declare const DhStateKeys: {
3970
3970
  };
3971
3971
  type DhStateKey = keyof typeof DhStateKeys;
3972
3972
  /**
3973
- * Key → positional code map for the `core_indicators` CVC domain (CVC-136; 214 canonical indicator codes re-sourced from prototype `data/core_indicators.yaml` @ 622410b + 2 scoring-ahead codes @hti/scoring emits before the codebook adopted them = 216 substantive). Entries carry `family` / `polarity` / `severity` / `isAlert` / `alertWhen`; the alert list is a DERIVED VIEW over `isAlert`, not a rival taxonomy.
3973
+ * 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
3974
  *
3975
- * Domain: `core_indicators` · Version: 1.0.0 · Entries: 220
3975
+ * Domain: `core_indicators` · Version: 1.1.0 · Entries: 226
3976
3976
  */
3977
3977
  declare const CoreIndicatorKeys: {
3978
3978
  readonly missingness_root: "136-000-000-000-000-000-000";
@@ -4195,6 +4195,12 @@ declare const CoreIndicatorKeys: {
4195
4195
  readonly sexualized_content_online_performance_activity: "136-214-000-000-000-000-000";
4196
4196
  readonly trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000";
4197
4197
  readonly active_protective_order: "136-216-000-000-000-000-000";
4198
+ readonly disclosed_fear_at_intake: "136-217-000-000-000-000-000";
4199
+ readonly does_not_control_housing: "136-218-000-000-000-000-000";
4200
+ readonly oppressive_home_life: "136-219-000-000-000-000-000";
4201
+ readonly recent_separation: "136-220-000-000-000-000-000";
4202
+ readonly survival_sex: "136-221-000-000-000-000-000";
4203
+ readonly unable_to_speak_freely: "136-222-000-000-000-000-000";
4198
4204
  };
4199
4205
  type CoreIndicatorKey = keyof typeof CoreIndicatorKeys;
4200
4206
  /**
@@ -3262,7 +3262,13 @@ var CoreIndicatorKeys = {
3262
3262
  sexualized_content_in_person_performance_activity: "136-213-000-000-000-000-000",
3263
3263
  sexualized_content_online_performance_activity: "136-214-000-000-000-000-000",
3264
3264
  trauma_perpetrator_is_current_manager: "136-215-000-000-000-000-000",
3265
- active_protective_order: "136-216-000-000-000-000-000"
3265
+ active_protective_order: "136-216-000-000-000-000-000",
3266
+ disclosed_fear_at_intake: "136-217-000-000-000-000-000",
3267
+ does_not_control_housing: "136-218-000-000-000-000-000",
3268
+ oppressive_home_life: "136-219-000-000-000-000-000",
3269
+ recent_separation: "136-220-000-000-000-000-000",
3270
+ survival_sex: "136-221-000-000-000-000-000",
3271
+ unable_to_speak_freely: "136-222-000-000-000-000-000"
3266
3272
  };
3267
3273
  var RiskIdentificationMilestoneKeys = {
3268
3274
  missingness_root: "267-000-000-000-000-000-000",