@htilabs/platform-common-models 0.13.0 → 0.13.1

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 (58) hide show
  1. package/dist/constants/index.cjs +73 -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 +69 -0
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-0BIB9sen.d.cts} +36 -36
  8. package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-0BIB9sen.d.ts} +36 -36
  9. package/dist/cvcs/index.cjs +466 -107
  10. package/dist/cvcs/index.cjs.map +1 -1
  11. package/dist/cvcs/index.d.cts +489 -110
  12. package/dist/cvcs/index.d.ts +489 -110
  13. package/dist/cvcs/index.js +466 -107
  14. package/dist/cvcs/index.js.map +1 -1
  15. package/dist/enums/index.cjs +15 -1
  16. package/dist/enums/index.cjs.map +1 -1
  17. package/dist/enums/index.d.cts +21 -7
  18. package/dist/enums/index.d.ts +21 -7
  19. package/dist/enums/index.js +15 -1
  20. package/dist/enums/index.js.map +1 -1
  21. package/dist/{index-4DiJrn7y.d.ts → index-CDoqrfc1.d.ts} +1 -1
  22. package/dist/{index-qreOzXYS.d.cts → index-Zu_mOJRn.d.cts} +1 -1
  23. package/dist/index.cjs +554 -108
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +3 -3
  26. package/dist/index.d.ts +3 -3
  27. package/dist/index.js +550 -108
  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/{platform-auth-Dv5fu0Fh.d.cts → platform-auth-64U8jjuw.d.cts} +71 -2
  32. package/dist/{platform-auth-Dv5fu0Fh.d.ts → platform-auth-64U8jjuw.d.ts} +71 -2
  33. package/dist/schemas/index.cjs +62 -0
  34. package/dist/schemas/index.cjs.map +1 -1
  35. package/dist/schemas/index.d.cts +11 -11
  36. package/dist/schemas/index.d.ts +11 -11
  37. package/dist/schemas/index.js +62 -0
  38. package/dist/schemas/index.js.map +1 -1
  39. package/dist/types/index.d.cts +2 -2
  40. package/dist/types/index.d.ts +2 -2
  41. package/package.json +26 -27
  42. package/src/__tests__/__snapshots__/cvc-sot.snap +9 -9
  43. package/src/__tests__/cvc-drift-gate.test.ts +16 -5
  44. package/src/__tests__/cvc-sot-snapshot.test.ts +18 -11
  45. package/src/__tests__/cvc-structural.test.ts +7 -7
  46. package/src/__tests__/incident-participation-roles-canon.test.ts +424 -0
  47. package/src/__tests__/referral-entity-category-canon.test.ts +383 -0
  48. package/src/constants/ic.ts +158 -0
  49. package/src/cvcs/{highestEducationLevelCompleted.v1.0.0.json → highestEducationLevelCompleted.v1.1.0.json} +1 -1
  50. package/src/cvcs/incidentParticipationRoles.v1.1.0.json +433 -0
  51. package/src/cvcs/{incomeBenefitsSources.v1.0.0.json → incomeBenefitsSources.v1.1.0.json} +1 -1
  52. package/src/cvcs/index.ts +7 -7
  53. package/src/cvcs/{referralEntityCategory.v1.0.0.json → referralEntityCategory.v1.1.0.json} +192 -54
  54. package/src/cvcs/{serviceStates.v1.0.0.json → serviceStates.v1.1.0.json} +1 -1
  55. package/src/cvcs/{sourceSubtype.v1.1.0.json → sourceSubtype.v1.2.0.json} +1 -1
  56. package/src/cvcs/{verificationMethod.v1.0.0.json → verificationMethod.v1.1.0.json} +1 -1
  57. package/src/generated/cvc-enums.ts +21 -7
  58. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +0 -212
@@ -170,7 +170,7 @@ type ServiceCategoryKey = keyof typeof ServiceCategoryKeys;
170
170
  /**
171
171
  * Key → positional code map for the `service_states` CVC domain.
172
172
  *
173
- * Domain: `service_states` · Version: 1.0.0 · Entries: 17
173
+ * Domain: `service_states` · Version: 1.1.0 · Entries: 17
174
174
  */
175
175
  declare const ServiceStateKeys: {
176
176
  readonly missingness_root: "049-000-000-000-000-000-000";
@@ -211,7 +211,7 @@ type ServiceMechanismKey = keyof typeof ServiceMechanismKeys;
211
211
  /**
212
212
  * Key → positional code map for the `incident_participation_roles` CVC domain.
213
213
  *
214
- * Domain: `incident_participation_roles` · Version: 1.0.0 · Entries: 20
214
+ * Domain: `incident_participation_roles` · Version: 1.1.0 · Entries: 31
215
215
  */
216
216
  declare const IncidentParticipationRoleKeys: {
217
217
  readonly missingness_root: "069-000-000-000-000-000-000";
@@ -234,6 +234,17 @@ declare const IncidentParticipationRoleKeys: {
234
234
  readonly other_incident_responder: "069-004-004-000-000-000-000";
235
235
  readonly responding_officer: "069-004-005-000-000-000-000";
236
236
  readonly legal_professional: "069-004-006-000-000-000-000";
237
+ readonly prosecutor: "069-004-006-001-000-000-000";
238
+ readonly vsp_staff: "069-004-007-000-000-000-000";
239
+ readonly healthcare_provider_staff: "069-004-008-000-000-000-000";
240
+ readonly law_enforcement_personnel: "069-004-009-000-000-000-000";
241
+ readonly lead_investigator: "069-004-009-001-000-000-000";
242
+ readonly investigator: "069-004-009-002-000-000-000";
243
+ readonly analyst: "069-004-009-003-000-000-000";
244
+ readonly le_officer: "069-004-009-004-000-000-000";
245
+ readonly other_response_personnel: "069-004-010-000-000-000-000";
246
+ readonly data_entry_staff: "069-004-011-000-000-000-000";
247
+ readonly task_force: "069-004-012-000-000-000-000";
237
248
  };
238
249
  type IncidentParticipationRoleKey = keyof typeof IncidentParticipationRoleKeys;
239
250
  /**
@@ -793,7 +804,7 @@ type ContactSafetyStatusKey = keyof typeof ContactSafetyStatusKeys;
793
804
  /**
794
805
  * Key → positional code map for the `highest_education_level_completed` CVC domain.
795
806
  *
796
- * Domain: `highest_education_level_completed` · Version: 1.0.0 · Entries: 13
807
+ * Domain: `highest_education_level_completed` · Version: 1.1.0 · Entries: 13
797
808
  */
798
809
  declare const HighestEducationLevelCompletedKeys: {
799
810
  readonly missingness_root: "180-000-000-000-000-000-000";
@@ -1293,7 +1304,7 @@ type LocationTypeKey = keyof typeof LocationTypeKeys;
1293
1304
  /**
1294
1305
  * Key → positional code map for the `referral_entity_category` CVC domain.
1295
1306
  *
1296
- * Domain: `referral_entity_category` · Version: 1.0.0 · Entries: 43
1307
+ * Domain: `referral_entity_category` · Version: 1.1.0 · Entries: 46
1297
1308
  */
1298
1309
  declare const ReferralEntityCategoryKeys: {
1299
1310
  readonly missingness_root: "048-000-000-000-000-000-000";
@@ -1322,14 +1333,17 @@ declare const ReferralEntityCategoryKeys: {
1322
1333
  readonly other_law_enforcement: "048-007-003-005-000-000-000";
1323
1334
  readonly courts_prosecution: "048-007-004-000-000-000-000";
1324
1335
  readonly correction_probation: "048-007-005-000-000-000-000";
1336
+ readonly adult_protective_services: "048-007-006-000-000-000-000";
1325
1337
  readonly health_behavioral_health: "048-008-000-000-000-000-000";
1326
1338
  readonly inpatient_psychiatric_facility: "048-008-001-000-000-000-000";
1327
1339
  readonly healthcare_provider: "048-008-002-000-000-000-000";
1328
1340
  readonly education: "048-009-000-000-000-000-000";
1341
+ readonly school_academic_institution: "048-009-001-000-000-000-000";
1329
1342
  readonly victim_community_service_providers: "048-010-000-000-000-000-000";
1330
1343
  readonly child_advocacy_center: "048-010-001-000-000-000-000";
1331
1344
  readonly victim_service_provider: "048-010-002-000-000-000-000";
1332
1345
  readonly community_based_service_provider: "048-010-003-000-000-000-000";
1346
+ readonly legal_services_provider: "048-010-004-000-000-000-000";
1333
1347
  readonly coordination_governance: "048-011-000-000-000-000-000";
1334
1348
  readonly mdt: "048-011-001-000-000-000-000";
1335
1349
  readonly coalition: "048-011-002-000-000-000-000";
@@ -1344,7 +1358,7 @@ type ReferralEntityCategoryKey = keyof typeof ReferralEntityCategoryKeys;
1344
1358
  /**
1345
1359
  * Key → positional code map for the `income_benefits_sources` CVC domain.
1346
1360
  *
1347
- * Domain: `income_benefits_sources` · Version: 1.0.0 · Entries: 41
1361
+ * Domain: `income_benefits_sources` · Version: 1.1.0 · Entries: 41
1348
1362
  */
1349
1363
  declare const IncomeBenefitsSourcesKeys: {
1350
1364
  readonly missingness_root: "171-000-000-000-000-000-000";
@@ -1482,7 +1496,7 @@ type SourceCategoryKey = keyof typeof SourceCategoryKeys;
1482
1496
  /**
1483
1497
  * Key → positional code map for the `source_subtype` CVC domain.
1484
1498
  *
1485
- * Domain: `source_subtype` · Version: 1.1.0 · Entries: 39
1499
+ * Domain: `source_subtype` · Version: 1.2.0 · Entries: 39
1486
1500
  */
1487
1501
  declare const SourceSubtypeKeys: {
1488
1502
  readonly missingness_root: "141-000-000-000-000-000-000";
@@ -1594,7 +1608,7 @@ type TimeScopeKey = keyof typeof TimeScopeKeys;
1594
1608
  /**
1595
1609
  * Key → positional code map for the `verification_method` CVC domain.
1596
1610
  *
1597
- * Domain: `verification_method` · Version: 1.0.0 · Entries: 11
1611
+ * Domain: `verification_method` · Version: 1.1.0 · Entries: 11
1598
1612
  */
1599
1613
  declare const VerificationMethodKeys: {
1600
1614
  readonly missingness_root: "143-000-000-000-000-000-000";
@@ -170,7 +170,7 @@ type ServiceCategoryKey = keyof typeof ServiceCategoryKeys;
170
170
  /**
171
171
  * Key → positional code map for the `service_states` CVC domain.
172
172
  *
173
- * Domain: `service_states` · Version: 1.0.0 · Entries: 17
173
+ * Domain: `service_states` · Version: 1.1.0 · Entries: 17
174
174
  */
175
175
  declare const ServiceStateKeys: {
176
176
  readonly missingness_root: "049-000-000-000-000-000-000";
@@ -211,7 +211,7 @@ type ServiceMechanismKey = keyof typeof ServiceMechanismKeys;
211
211
  /**
212
212
  * Key → positional code map for the `incident_participation_roles` CVC domain.
213
213
  *
214
- * Domain: `incident_participation_roles` · Version: 1.0.0 · Entries: 20
214
+ * Domain: `incident_participation_roles` · Version: 1.1.0 · Entries: 31
215
215
  */
216
216
  declare const IncidentParticipationRoleKeys: {
217
217
  readonly missingness_root: "069-000-000-000-000-000-000";
@@ -234,6 +234,17 @@ declare const IncidentParticipationRoleKeys: {
234
234
  readonly other_incident_responder: "069-004-004-000-000-000-000";
235
235
  readonly responding_officer: "069-004-005-000-000-000-000";
236
236
  readonly legal_professional: "069-004-006-000-000-000-000";
237
+ readonly prosecutor: "069-004-006-001-000-000-000";
238
+ readonly vsp_staff: "069-004-007-000-000-000-000";
239
+ readonly healthcare_provider_staff: "069-004-008-000-000-000-000";
240
+ readonly law_enforcement_personnel: "069-004-009-000-000-000-000";
241
+ readonly lead_investigator: "069-004-009-001-000-000-000";
242
+ readonly investigator: "069-004-009-002-000-000-000";
243
+ readonly analyst: "069-004-009-003-000-000-000";
244
+ readonly le_officer: "069-004-009-004-000-000-000";
245
+ readonly other_response_personnel: "069-004-010-000-000-000-000";
246
+ readonly data_entry_staff: "069-004-011-000-000-000-000";
247
+ readonly task_force: "069-004-012-000-000-000-000";
237
248
  };
238
249
  type IncidentParticipationRoleKey = keyof typeof IncidentParticipationRoleKeys;
239
250
  /**
@@ -793,7 +804,7 @@ type ContactSafetyStatusKey = keyof typeof ContactSafetyStatusKeys;
793
804
  /**
794
805
  * Key → positional code map for the `highest_education_level_completed` CVC domain.
795
806
  *
796
- * Domain: `highest_education_level_completed` · Version: 1.0.0 · Entries: 13
807
+ * Domain: `highest_education_level_completed` · Version: 1.1.0 · Entries: 13
797
808
  */
798
809
  declare const HighestEducationLevelCompletedKeys: {
799
810
  readonly missingness_root: "180-000-000-000-000-000-000";
@@ -1293,7 +1304,7 @@ type LocationTypeKey = keyof typeof LocationTypeKeys;
1293
1304
  /**
1294
1305
  * Key → positional code map for the `referral_entity_category` CVC domain.
1295
1306
  *
1296
- * Domain: `referral_entity_category` · Version: 1.0.0 · Entries: 43
1307
+ * Domain: `referral_entity_category` · Version: 1.1.0 · Entries: 46
1297
1308
  */
1298
1309
  declare const ReferralEntityCategoryKeys: {
1299
1310
  readonly missingness_root: "048-000-000-000-000-000-000";
@@ -1322,14 +1333,17 @@ declare const ReferralEntityCategoryKeys: {
1322
1333
  readonly other_law_enforcement: "048-007-003-005-000-000-000";
1323
1334
  readonly courts_prosecution: "048-007-004-000-000-000-000";
1324
1335
  readonly correction_probation: "048-007-005-000-000-000-000";
1336
+ readonly adult_protective_services: "048-007-006-000-000-000-000";
1325
1337
  readonly health_behavioral_health: "048-008-000-000-000-000-000";
1326
1338
  readonly inpatient_psychiatric_facility: "048-008-001-000-000-000-000";
1327
1339
  readonly healthcare_provider: "048-008-002-000-000-000-000";
1328
1340
  readonly education: "048-009-000-000-000-000-000";
1341
+ readonly school_academic_institution: "048-009-001-000-000-000-000";
1329
1342
  readonly victim_community_service_providers: "048-010-000-000-000-000-000";
1330
1343
  readonly child_advocacy_center: "048-010-001-000-000-000-000";
1331
1344
  readonly victim_service_provider: "048-010-002-000-000-000-000";
1332
1345
  readonly community_based_service_provider: "048-010-003-000-000-000-000";
1346
+ readonly legal_services_provider: "048-010-004-000-000-000-000";
1333
1347
  readonly coordination_governance: "048-011-000-000-000-000-000";
1334
1348
  readonly mdt: "048-011-001-000-000-000-000";
1335
1349
  readonly coalition: "048-011-002-000-000-000-000";
@@ -1344,7 +1358,7 @@ type ReferralEntityCategoryKey = keyof typeof ReferralEntityCategoryKeys;
1344
1358
  /**
1345
1359
  * Key → positional code map for the `income_benefits_sources` CVC domain.
1346
1360
  *
1347
- * Domain: `income_benefits_sources` · Version: 1.0.0 · Entries: 41
1361
+ * Domain: `income_benefits_sources` · Version: 1.1.0 · Entries: 41
1348
1362
  */
1349
1363
  declare const IncomeBenefitsSourcesKeys: {
1350
1364
  readonly missingness_root: "171-000-000-000-000-000-000";
@@ -1482,7 +1496,7 @@ type SourceCategoryKey = keyof typeof SourceCategoryKeys;
1482
1496
  /**
1483
1497
  * Key → positional code map for the `source_subtype` CVC domain.
1484
1498
  *
1485
- * Domain: `source_subtype` · Version: 1.1.0 · Entries: 39
1499
+ * Domain: `source_subtype` · Version: 1.2.0 · Entries: 39
1486
1500
  */
1487
1501
  declare const SourceSubtypeKeys: {
1488
1502
  readonly missingness_root: "141-000-000-000-000-000-000";
@@ -1594,7 +1608,7 @@ type TimeScopeKey = keyof typeof TimeScopeKeys;
1594
1608
  /**
1595
1609
  * Key → positional code map for the `verification_method` CVC domain.
1596
1610
  *
1597
- * Domain: `verification_method` · Version: 1.0.0 · Entries: 11
1611
+ * Domain: `verification_method` · Version: 1.1.0 · Entries: 11
1598
1612
  */
1599
1613
  declare const VerificationMethodKeys: {
1600
1614
  readonly missingness_root: "143-000-000-000-000-000-000";
@@ -201,7 +201,18 @@ var IncidentParticipationRoleKeys = {
201
201
  data_entry: "069-004-003-000-000-000-000",
202
202
  other_incident_responder: "069-004-004-000-000-000-000",
203
203
  responding_officer: "069-004-005-000-000-000-000",
204
- legal_professional: "069-004-006-000-000-000-000"
204
+ legal_professional: "069-004-006-000-000-000-000",
205
+ prosecutor: "069-004-006-001-000-000-000",
206
+ vsp_staff: "069-004-007-000-000-000-000",
207
+ healthcare_provider_staff: "069-004-008-000-000-000-000",
208
+ law_enforcement_personnel: "069-004-009-000-000-000-000",
209
+ lead_investigator: "069-004-009-001-000-000-000",
210
+ investigator: "069-004-009-002-000-000-000",
211
+ analyst: "069-004-009-003-000-000-000",
212
+ le_officer: "069-004-009-004-000-000-000",
213
+ other_response_personnel: "069-004-010-000-000-000-000",
214
+ data_entry_staff: "069-004-011-000-000-000-000",
215
+ task_force: "069-004-012-000-000-000-000"
205
216
  };
206
217
  var IncidentInvolvementRoleKeys = {
207
218
  missingness_root: "130-000-000-000-000-000-000",
@@ -1056,14 +1067,17 @@ var ReferralEntityCategoryKeys = {
1056
1067
  other_law_enforcement: "048-007-003-005-000-000-000",
1057
1068
  courts_prosecution: "048-007-004-000-000-000-000",
1058
1069
  correction_probation: "048-007-005-000-000-000-000",
1070
+ adult_protective_services: "048-007-006-000-000-000-000",
1059
1071
  health_behavioral_health: "048-008-000-000-000-000-000",
1060
1072
  inpatient_psychiatric_facility: "048-008-001-000-000-000-000",
1061
1073
  healthcare_provider: "048-008-002-000-000-000-000",
1062
1074
  education: "048-009-000-000-000-000-000",
1075
+ school_academic_institution: "048-009-001-000-000-000-000",
1063
1076
  victim_community_service_providers: "048-010-000-000-000-000-000",
1064
1077
  child_advocacy_center: "048-010-001-000-000-000-000",
1065
1078
  victim_service_provider: "048-010-002-000-000-000-000",
1066
1079
  community_based_service_provider: "048-010-003-000-000-000-000",
1080
+ legal_services_provider: "048-010-004-000-000-000-000",
1067
1081
  coordination_governance: "048-011-000-000-000-000-000",
1068
1082
  mdt: "048-011-001-000-000-000-000",
1069
1083
  coalition: "048-011-002-000-000-000-000",