@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.
- package/dist/constants/index.cjs +73 -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 +69 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-0BIB9sen.d.cts} +36 -36
- package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-0BIB9sen.d.ts} +36 -36
- package/dist/cvcs/index.cjs +466 -107
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +489 -110
- package/dist/cvcs/index.d.ts +489 -110
- package/dist/cvcs/index.js +466 -107
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +15 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +21 -7
- package/dist/enums/index.d.ts +21 -7
- package/dist/enums/index.js +15 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-4DiJrn7y.d.ts → index-CDoqrfc1.d.ts} +1 -1
- package/dist/{index-qreOzXYS.d.cts → index-Zu_mOJRn.d.cts} +1 -1
- package/dist/index.cjs +554 -108
- 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 +550 -108
- 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-Dv5fu0Fh.d.cts → platform-auth-64U8jjuw.d.cts} +71 -2
- package/dist/{platform-auth-Dv5fu0Fh.d.ts → platform-auth-64U8jjuw.d.ts} +71 -2
- package/dist/schemas/index.cjs +62 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +11 -11
- package/dist/schemas/index.d.ts +11 -11
- package/dist/schemas/index.js +62 -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 +26 -27
- package/src/__tests__/__snapshots__/cvc-sot.snap +9 -9
- package/src/__tests__/cvc-drift-gate.test.ts +16 -5
- package/src/__tests__/cvc-sot-snapshot.test.ts +18 -11
- package/src/__tests__/cvc-structural.test.ts +7 -7
- package/src/__tests__/incident-participation-roles-canon.test.ts +424 -0
- package/src/__tests__/referral-entity-category-canon.test.ts +383 -0
- package/src/constants/ic.ts +158 -0
- package/src/cvcs/{highestEducationLevelCompleted.v1.0.0.json → highestEducationLevelCompleted.v1.1.0.json} +1 -1
- package/src/cvcs/incidentParticipationRoles.v1.1.0.json +433 -0
- package/src/cvcs/{incomeBenefitsSources.v1.0.0.json → incomeBenefitsSources.v1.1.0.json} +1 -1
- package/src/cvcs/index.ts +7 -7
- package/src/cvcs/{referralEntityCategory.v1.0.0.json → referralEntityCategory.v1.1.0.json} +192 -54
- package/src/cvcs/{serviceStates.v1.0.0.json → serviceStates.v1.1.0.json} +1 -1
- package/src/cvcs/{sourceSubtype.v1.1.0.json → sourceSubtype.v1.2.0.json} +1 -1
- package/src/cvcs/{verificationMethod.v1.0.0.json → verificationMethod.v1.1.0.json} +1 -1
- package/src/generated/cvc-enums.ts +21 -7
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +0 -212
package/dist/enums/index.d.cts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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";
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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";
|
package/dist/enums/index.js
CHANGED
|
@@ -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",
|