@htilabs/platform-common-models 0.8.24 → 0.12.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 (91) hide show
  1. package/dist/config/index.cjs +81 -0
  2. package/dist/config/index.cjs.map +1 -1
  3. package/dist/config/index.d.cts +79 -4
  4. package/dist/config/index.d.ts +79 -4
  5. package/dist/config/index.js +79 -1
  6. package/dist/config/index.js.map +1 -1
  7. package/dist/constants/index.cjs +2 -18
  8. package/dist/constants/index.cjs.map +1 -1
  9. package/dist/constants/index.d.cts +1 -1
  10. package/dist/constants/index.d.ts +1 -1
  11. package/dist/constants/index.js +2 -18
  12. package/dist/constants/index.js.map +1 -1
  13. package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-BCj1OWqL.d.cts} +44 -44
  14. package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-BCj1OWqL.d.ts} +44 -44
  15. package/dist/cvcs/index.cjs +217 -6674
  16. package/dist/cvcs/index.cjs.map +1 -1
  17. package/dist/cvcs/index.d.cts +8057 -15024
  18. package/dist/cvcs/index.d.ts +8057 -15024
  19. package/dist/cvcs/index.js +217 -6662
  20. package/dist/cvcs/index.js.map +1 -1
  21. package/dist/{index-qreOzXYS.d.cts → index-CoVr1jIV.d.cts} +1 -1
  22. package/dist/{index-4DiJrn7y.d.ts → index-I-DiX9eQ.d.ts} +1 -1
  23. package/dist/index.cjs +230 -7217
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +26 -588
  26. package/dist/index.d.ts +26 -588
  27. package/dist/index.js +230 -7193
  28. package/dist/index.js.map +1 -1
  29. package/dist/models/index.d.cts +2 -2
  30. package/dist/models/index.d.ts +2 -2
  31. package/dist/mongo/index.cjs +1 -0
  32. package/dist/mongo/index.cjs.map +1 -1
  33. package/dist/mongo/index.js +2 -1
  34. package/dist/mongo/index.js.map +1 -1
  35. package/dist/{platform-auth-91Hcl8F8.d.cts → platform-auth-v53r3BhN.d.cts} +3 -4
  36. package/dist/{platform-auth-91Hcl8F8.d.ts → platform-auth-v53r3BhN.d.ts} +3 -4
  37. package/dist/schemas/index.cjs +1 -5
  38. package/dist/schemas/index.cjs.map +1 -1
  39. package/dist/schemas/index.d.cts +35 -35
  40. package/dist/schemas/index.d.ts +35 -35
  41. package/dist/schemas/index.js +1 -5
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/types/index.d.cts +2 -2
  44. package/dist/types/index.d.ts +2 -2
  45. package/dist/validation/index.cjs +0 -58
  46. package/dist/validation/index.cjs.map +1 -1
  47. package/dist/validation/index.d.cts +283 -82
  48. package/dist/validation/index.d.ts +283 -82
  49. package/dist/validation/index.js +0 -57
  50. package/dist/validation/index.js.map +1 -1
  51. package/package.json +22 -26
  52. package/src/__sot__/README.md +1 -36
  53. package/src/__sot__/coreIndicators.pin.json +2 -1936
  54. package/src/__sot__/cvcIndex.pin.json +4 -8
  55. package/src/__tests__/__snapshots__/cvc-sot.snap +13 -41
  56. package/src/__tests__/cvc-136-scoring-invariant.test.ts +3 -8
  57. package/src/__tests__/cvc-drift-gate.test.ts +12 -445
  58. package/src/__tests__/cvc-sot-snapshot.test.ts +11 -73
  59. package/src/__tests__/cvc-structural.test.ts +0 -14
  60. package/src/__tests__/runtime-contract-validator.test.ts +325 -1
  61. package/src/config/index.ts +189 -4
  62. package/src/constants/ic.ts +3 -120
  63. package/src/cvcs/assertionDomain.v1.1.0.json +1 -19
  64. package/src/cvcs/coreIndicators.v1.0.0.json +5 -83
  65. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +1 -11
  66. package/src/cvcs/index.ts +0 -32
  67. package/src/cvcs/personRelationships.v1.0.0.json +2 -67
  68. package/src/cvcs/relationshipConcern.v1.0.0.json +19 -28
  69. package/src/cvcs/sessionTemplate.v1.0.0.json +0 -22
  70. package/src/cvcs/sharePurpose.v1.0.0.json +12 -80
  71. package/src/generated/cvc-enums.ts +20 -606
  72. package/src/validation/index.ts +0 -1
  73. package/dist/cvc-C7qdsXYK.d.cts +0 -298
  74. package/dist/cvc-C7qdsXYK.d.ts +0 -298
  75. package/src/__sot__/coreIndicatorFields.ts +0 -331
  76. package/src/__tests__/core-information-scope-invariant.test.ts +0 -134
  77. package/src/__tests__/cvc-181-182-country-parity.test.ts +0 -163
  78. package/src/__tests__/cvc-status-parser.test.ts +0 -150
  79. package/src/cvcs/assertionStatus.v1.0.0.json +0 -80
  80. package/src/cvcs/carCorrectionReason.v1.0.0.json +0 -89
  81. package/src/cvcs/caseShareState.v1.0.0.json +0 -62
  82. package/src/cvcs/coreInformationScope.v1.0.0.json +0 -1165
  83. package/src/cvcs/countries.v1.0.0.json +0 -3077
  84. package/src/cvcs/createdBySystem.v1.0.0.json +0 -89
  85. package/src/cvcs/criminalOrgCategory.v1.0.0.json +0 -116
  86. package/src/cvcs/determinationHelperCategories.v1.0.0.json +0 -1166
  87. package/src/cvcs/minorAdultStatus.v1.0.0.json +0 -80
  88. package/src/cvcs/referralOrigin.v1.0.0.json +0 -26
  89. package/src/cvcs/riskIdentificationMilestone.v1.0.0.json +0 -109
  90. package/src/cvcs/subjectType.v1.0.0.json +0 -80
  91. package/src/validation/cvcStatus.ts +0 -209
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "sourceRepo": "htilabstech/prototype",
3
3
  "sourceFile": "Final CVCs/CVC_INDEX.md",
4
- "sourceSha": "622410b",
4
+ "sourceSha": "a596eb9",
5
5
  "numbers": {
6
6
  "1": [
7
7
  "core - name_type"
@@ -59,12 +59,6 @@
59
59
  "85": [
60
60
  "core - share_cadence"
61
61
  ],
62
- "93": [
63
- "core - child_welfare_involvement_status"
64
- ],
65
- "95": [
66
- "core - juvenile_justice_involvement_status"
67
- ],
68
62
  "96": [
69
63
  "core - homeless_status"
70
64
  ],
@@ -193,6 +187,7 @@
193
187
  "core - frequency : cadence"
194
188
  ],
195
189
  "177": [
190
+ "core - administering jurisdiction",
196
191
  "core - administering_jurisdiction"
197
192
  ],
198
193
  "179": [
@@ -224,7 +219,8 @@
224
219
  "core collection context"
225
220
  ],
226
221
  "196": [
227
- "core - child_welfare_episode_type"
222
+ "core child welfare cvc",
223
+ "core child welfare episode type CVC"
228
224
  ],
229
225
  "197": [
230
226
  "core - juvenile_justice_episode_type"
@@ -15,8 +15,8 @@
15
15
  "hash": "68c5fee27fb5826ed86ff8e9387ec00ae8813029c87f9d5349c7ce2d5c640eaf"
16
16
  },
17
17
  "incident_participation_roles": {
18
- "count": 20,
19
- "hash": "bb891d1159a0e70b19ec485459f9778aa2c86a00009bf5e2259290a8ddf41a10"
18
+ "count": 19,
19
+ "hash": "ccf9a360f09fbf58f93b92bed296d16678ff8c8955088407d2e641d6d9d72ba3"
20
20
  },
21
21
  "incident_involvement_roles": {
22
22
  "count": 10,
@@ -99,8 +99,8 @@
99
99
  "hash": "c3fcaec7ef08f185748463adc1e73dc6a1ff196601f16a6453f737577f3dfd90"
100
100
  },
101
101
  "share_purpose": {
102
- "count": 12,
103
- "hash": "a3ecb1ffab4f32c5cd19afbc43278f0de0538c608464ae434595a7ff98552f65"
102
+ "count": 8,
103
+ "hash": "ccefed1af82759ca59ad45e3850119db87e3411db57d9ce3039d874474498422"
104
104
  },
105
105
  "facilitator_entity_type": {
106
106
  "count": 14,
@@ -147,8 +147,8 @@
147
147
  "hash": "29fb041c4d1b40260e4a448a0501eb580d29606479628a6807a833b52212f3c3"
148
148
  },
149
149
  "person_relationships": {
150
- "count": 94,
151
- "hash": "15b9d1989b897723881cdb489026fab9c42eb9fe0b809f349ec027e42ca7b154"
150
+ "count": 89,
151
+ "hash": "f901a60ec1f275e2f003d1f1f2f94f2a3ae07d7badee227d650c28c00a1510bb"
152
152
  },
153
153
  "employment_status": {
154
154
  "count": 29,
@@ -500,7 +500,7 @@
500
500
  },
501
501
  "relationship_concern": {
502
502
  "count": 11,
503
- "hash": "48e882447e87dd4342afc4c9b56aff3925f10177e7ea214dca5d5f66c09e5668"
503
+ "hash": "03e18352e1ffb13a4e9b63e1f4043923f1da7e0153649db6940d0bb2653917d8"
504
504
  },
505
505
  "recency_band": {
506
506
  "count": 12,
@@ -511,8 +511,8 @@
511
511
  "hash": "995a3170efe8219c0bfe0a174abb2389c86bf94423a70a5ce2b2feb3d9e6b3fa"
512
512
  },
513
513
  "assertion_domain": {
514
- "count": 70,
515
- "hash": "6b10f093870817757f4dcb45a513b347f0491ae3ca08c518e3c88df52cd48fdb"
514
+ "count": 68,
515
+ "hash": "6076e65b804f6e7d3b8385fecfb5114b710ecf672ca13d1e97e5fe0e412b1041"
516
516
  },
517
517
  "activity_type": {
518
518
  "count": 14,
@@ -599,8 +599,8 @@
599
599
  "hash": "90aec290aa586a9bbc098c0c8a19536e06b705b054e4444ff6461a9913340a5c"
600
600
  },
601
601
  "core_indicators": {
602
- "count": 220,
603
- "hash": "634ba69f31273bace3c3be9509aba41f4c348086210905e42a6f97d393c64fbb"
602
+ "count": 214,
603
+ "hash": "401f8c604a63a94e63569cbed9e1ae2e80bedb5e29ffcff4b40af3ce9f75b7b9"
604
604
  },
605
605
  "risk_severity_band": {
606
606
  "count": 9,
@@ -651,8 +651,8 @@
651
651
  "hash": "53a0ad169d2e5ff34ffa9b246eacbde2efb9b31baf763bfa1d3be53f0fbedd3c"
652
652
  },
653
653
  "session_template": {
654
- "count": 25,
655
- "hash": "f8e4b1830fb03f82499c10eb84b2202c7a3258832fec64fc73c17a734de24ece"
654
+ "count": 23,
655
+ "hash": "c6e7ec45ab8c3d99e938ac55b1007107edee5885bff53f203945ed3a6cba25ac"
656
656
  },
657
657
  "service_delivery_channel": {
658
658
  "count": 11,
@@ -666,37 +666,9 @@
666
666
  "count": 253,
667
667
  "hash": "83962425a6a987b46bd89f596feefe5758f25993137010bb417823b83c4ae31f"
668
668
  },
669
- "countries": {
670
- "count": 254,
671
- "hash": "21525c56d5bac7f218bcb9a5dc048eea4b9132cfaf4a6a7439ebbf7dd34ebcde"
672
- },
673
- "determination_helper_categories": {
674
- "count": 57,
675
- "hash": "9e296ba8ae3a187171eb8facfd13a5e6824daa0ed7f963e41e31672104aa16c0"
676
- },
677
669
  "trafficking_relevant_role": {
678
670
  "count": 8,
679
671
  "hash": "1a4ea2992cc501179adafd192d7a2f1733ffe48c1ba26e1e61a3c757b2d62b32"
680
- },
681
- "assertion_status": {
682
- "count": 7,
683
- "hash": "a1914348815dabc7171ed4ea632383d39f31764d390c43d6b1d359eae465807f"
684
- },
685
- "car_correction_reason": {
686
- "count": 8,
687
- "hash": "6ad10301ca7759bbda822b44a251208826b8880dff8d085ce501bc1faedc69d8"
688
- },
689
- "created_by_system": {
690
- "count": 8,
691
- "hash": "35ea022a704b4eee7b493ea3c9a8a5d2ffa41c4cacbe9f899cc1336e73808fc2"
692
- },
693
- "subject_type": {
694
- "count": 7,
695
- "hash": "81ad6c7fbb74bbb6d9c6f316df3275fd57a1646dedb4fb47472ee77fb2482f99"
696
- },
697
- "minor_adult_status": {
698
- "count": 7,
699
- "hash": "9d8972c65373a9981aab6b8749661659ecc632004e67bc9c2b3c88aa76f30977"
700
672
  }
701
673
  }
702
674
  }
@@ -261,14 +261,9 @@ describe("CVC-136 core_indicators", () => {
261
261
  ]);
262
262
  });
263
263
 
264
- it("has exactly 216 substantive codes (214 canonical + 2 scoring-ahead)", () => {
265
- // 0.8.14 refreshed the catalog pin a596eb9 (208) -> 84a1b67 (213):
266
- // +5 upstream mints, 0 withdrawn.
267
- // This refresh took it again 84a1b67 (213) -> 622410b (214): +1 upstream
268
- // mint (`active_protective_order`, minted 2026-08-08), 0 withdrawn. The 2
269
- // scoring-ahead codes are unchanged and still absent upstream.
270
- expect(substantive.length).toBe(216);
271
- expect(envelope.entries.length).toBe(220);
264
+ it("has exactly 210 substantive codes (208 canonical + 2 scoring-ahead)", () => {
265
+ expect(substantive.length).toBe(210);
266
+ expect(envelope.entries.length).toBe(214);
272
267
  });
273
268
 
274
269
  it("has no duplicate keys", () => {