@htilabs/platform-common-models 0.8.3 → 0.8.5
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/cvcs/index.cjs +85 -2
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +94 -2
- package/dist/cvcs/index.d.ts +94 -2
- package/dist/cvcs/index.js +85 -2
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +96 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +96 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +6 -6
- package/src/__tests__/cvc-sot-snapshot.test.ts +13 -8
- package/src/cvcs/housingSubsidyTypes.v1.0.0.json +45 -0
- package/src/cvcs/identificationStatus.v1.0.0.json +18 -0
- package/src/cvcs/incomeBenefitsSources.v1.0.0.json +22 -2
- package/src/generated/cvc-enums.ts +12 -3
package/dist/index.d.cts
CHANGED
|
@@ -1301,7 +1301,7 @@ type ReferralEntityCategoryKey = keyof typeof ReferralEntityCategoryKeys;
|
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Key → positional code map for the `income_benefits_sources` CVC domain.
|
|
1303
1303
|
*
|
|
1304
|
-
* Domain: `income_benefits_sources` · Version: 1.0.0 · Entries:
|
|
1304
|
+
* Domain: `income_benefits_sources` · Version: 1.0.0 · Entries: 41
|
|
1305
1305
|
*/
|
|
1306
1306
|
declare const IncomeBenefitsSourcesKeys: {
|
|
1307
1307
|
readonly missingness_root: "171-000-000-000-000-000-000";
|
|
@@ -1311,6 +1311,7 @@ declare const IncomeBenefitsSourcesKeys: {
|
|
|
1311
1311
|
readonly prefer_not_to_answer: "171-000-000-000-000-000-004";
|
|
1312
1312
|
readonly earned_income: "171-001-000-000-000-000-000";
|
|
1313
1313
|
readonly employment: "171-001-001-000-000-000-000";
|
|
1314
|
+
readonly informal_income: "171-001-002-000-000-000-000";
|
|
1314
1315
|
readonly cash_benefit: "171-002-000-000-000-000-000";
|
|
1315
1316
|
readonly unemployment_insurance: "171-002-001-000-000-000-000";
|
|
1316
1317
|
readonly supplemental_security_income: "171-002-002-000-000-000-000";
|
|
@@ -1338,6 +1339,7 @@ declare const IncomeBenefitsSourcesKeys: {
|
|
|
1338
1339
|
readonly transfer_support: "171-004-000-000-000-000-000";
|
|
1339
1340
|
readonly child_support: "171-004-001-000-000-000-000";
|
|
1340
1341
|
readonly alimony_spousal_support: "171-004-002-000-000-000-000";
|
|
1342
|
+
readonly family_friend_support: "171-004-003-000-000-000-000";
|
|
1341
1343
|
readonly other_unspecified: "171-005-000-000-000-000-000";
|
|
1342
1344
|
readonly other_income: "171-005-001-000-000-000-000";
|
|
1343
1345
|
readonly other_benefit: "171-005-002-000-000-000-000";
|
|
@@ -2600,7 +2602,7 @@ type HopeScaleTierKey = keyof typeof HopeScaleTierKeys;
|
|
|
2600
2602
|
/**
|
|
2601
2603
|
* Key → positional code map for the `identification_status` CVC domain.
|
|
2602
2604
|
*
|
|
2603
|
-
* Domain: `identification_status` · Version: 1.0.0 · Entries:
|
|
2605
|
+
* Domain: `identification_status` · Version: 1.0.0 · Entries: 9
|
|
2604
2606
|
*/
|
|
2605
2607
|
declare const IdentificationStatusKeys: {
|
|
2606
2608
|
readonly missingness_root: "929-000-000-000-000-000-000";
|
|
@@ -2610,6 +2612,8 @@ declare const IdentificationStatusKeys: {
|
|
|
2610
2612
|
readonly identified: "929-001-000-000-000-000-000";
|
|
2611
2613
|
readonly unidentified: "929-002-000-000-000-000-000";
|
|
2612
2614
|
readonly anonymous_posture: "929-003-000-000-000-000-000";
|
|
2615
|
+
readonly estimated_persona: "929-004-000-000-000-000-000";
|
|
2616
|
+
readonly confirmed: "929-005-000-000-000-000-000";
|
|
2613
2617
|
};
|
|
2614
2618
|
type IdentificationStatusKey = keyof typeof IdentificationStatusKeys;
|
|
2615
2619
|
/**
|
|
@@ -3236,7 +3240,7 @@ type RecencyBandKey = keyof typeof RecencyBandKeys;
|
|
|
3236
3240
|
/**
|
|
3237
3241
|
* Key → positional code map for the `housing_subsidy_types` CVC domain (PROVISIONAL CVC-233 — pending codebook ratification).
|
|
3238
3242
|
*
|
|
3239
|
-
* Domain: `housing_subsidy_types` · Version: 1.0.0 · Entries:
|
|
3243
|
+
* Domain: `housing_subsidy_types` · Version: 1.0.0 · Entries: 16
|
|
3240
3244
|
*/
|
|
3241
3245
|
declare const HousingSubsidyTypesKeys: {
|
|
3242
3246
|
readonly missingness_root: "233-000-000-000-000-000-000";
|
|
@@ -3250,6 +3254,11 @@ declare const HousingSubsidyTypesKeys: {
|
|
|
3250
3254
|
readonly rapid_rehousing_assistance: "233-005-000-000-000-000-000";
|
|
3251
3255
|
readonly other_housing_subsidy: "233-006-000-000-000-000-000";
|
|
3252
3256
|
readonly no_subsidy: "233-007-000-000-000-000-000";
|
|
3257
|
+
readonly va_supportive_housing: "233-008-000-000-000-000-000";
|
|
3258
|
+
readonly grant_per_diem_transition_in_place: "233-009-000-000-000-000-000";
|
|
3259
|
+
readonly housing_stability_voucher: "233-010-000-000-000-000-000";
|
|
3260
|
+
readonly family_unification_program: "233-011-000-000-000-000-000";
|
|
3261
|
+
readonly foster_youth_to_independence: "233-012-000-000-000-000-000";
|
|
3253
3262
|
};
|
|
3254
3263
|
type HousingSubsidyTypesKey = keyof typeof HousingSubsidyTypesKeys;
|
|
3255
3264
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1301,7 +1301,7 @@ type ReferralEntityCategoryKey = keyof typeof ReferralEntityCategoryKeys;
|
|
|
1301
1301
|
/**
|
|
1302
1302
|
* Key → positional code map for the `income_benefits_sources` CVC domain.
|
|
1303
1303
|
*
|
|
1304
|
-
* Domain: `income_benefits_sources` · Version: 1.0.0 · Entries:
|
|
1304
|
+
* Domain: `income_benefits_sources` · Version: 1.0.0 · Entries: 41
|
|
1305
1305
|
*/
|
|
1306
1306
|
declare const IncomeBenefitsSourcesKeys: {
|
|
1307
1307
|
readonly missingness_root: "171-000-000-000-000-000-000";
|
|
@@ -1311,6 +1311,7 @@ declare const IncomeBenefitsSourcesKeys: {
|
|
|
1311
1311
|
readonly prefer_not_to_answer: "171-000-000-000-000-000-004";
|
|
1312
1312
|
readonly earned_income: "171-001-000-000-000-000-000";
|
|
1313
1313
|
readonly employment: "171-001-001-000-000-000-000";
|
|
1314
|
+
readonly informal_income: "171-001-002-000-000-000-000";
|
|
1314
1315
|
readonly cash_benefit: "171-002-000-000-000-000-000";
|
|
1315
1316
|
readonly unemployment_insurance: "171-002-001-000-000-000-000";
|
|
1316
1317
|
readonly supplemental_security_income: "171-002-002-000-000-000-000";
|
|
@@ -1338,6 +1339,7 @@ declare const IncomeBenefitsSourcesKeys: {
|
|
|
1338
1339
|
readonly transfer_support: "171-004-000-000-000-000-000";
|
|
1339
1340
|
readonly child_support: "171-004-001-000-000-000-000";
|
|
1340
1341
|
readonly alimony_spousal_support: "171-004-002-000-000-000-000";
|
|
1342
|
+
readonly family_friend_support: "171-004-003-000-000-000-000";
|
|
1341
1343
|
readonly other_unspecified: "171-005-000-000-000-000-000";
|
|
1342
1344
|
readonly other_income: "171-005-001-000-000-000-000";
|
|
1343
1345
|
readonly other_benefit: "171-005-002-000-000-000-000";
|
|
@@ -2600,7 +2602,7 @@ type HopeScaleTierKey = keyof typeof HopeScaleTierKeys;
|
|
|
2600
2602
|
/**
|
|
2601
2603
|
* Key → positional code map for the `identification_status` CVC domain.
|
|
2602
2604
|
*
|
|
2603
|
-
* Domain: `identification_status` · Version: 1.0.0 · Entries:
|
|
2605
|
+
* Domain: `identification_status` · Version: 1.0.0 · Entries: 9
|
|
2604
2606
|
*/
|
|
2605
2607
|
declare const IdentificationStatusKeys: {
|
|
2606
2608
|
readonly missingness_root: "929-000-000-000-000-000-000";
|
|
@@ -2610,6 +2612,8 @@ declare const IdentificationStatusKeys: {
|
|
|
2610
2612
|
readonly identified: "929-001-000-000-000-000-000";
|
|
2611
2613
|
readonly unidentified: "929-002-000-000-000-000-000";
|
|
2612
2614
|
readonly anonymous_posture: "929-003-000-000-000-000-000";
|
|
2615
|
+
readonly estimated_persona: "929-004-000-000-000-000-000";
|
|
2616
|
+
readonly confirmed: "929-005-000-000-000-000-000";
|
|
2613
2617
|
};
|
|
2614
2618
|
type IdentificationStatusKey = keyof typeof IdentificationStatusKeys;
|
|
2615
2619
|
/**
|
|
@@ -3236,7 +3240,7 @@ type RecencyBandKey = keyof typeof RecencyBandKeys;
|
|
|
3236
3240
|
/**
|
|
3237
3241
|
* Key → positional code map for the `housing_subsidy_types` CVC domain (PROVISIONAL CVC-233 — pending codebook ratification).
|
|
3238
3242
|
*
|
|
3239
|
-
* Domain: `housing_subsidy_types` · Version: 1.0.0 · Entries:
|
|
3243
|
+
* Domain: `housing_subsidy_types` · Version: 1.0.0 · Entries: 16
|
|
3240
3244
|
*/
|
|
3241
3245
|
declare const HousingSubsidyTypesKeys: {
|
|
3242
3246
|
readonly missingness_root: "233-000-000-000-000-000-000";
|
|
@@ -3250,6 +3254,11 @@ declare const HousingSubsidyTypesKeys: {
|
|
|
3250
3254
|
readonly rapid_rehousing_assistance: "233-005-000-000-000-000-000";
|
|
3251
3255
|
readonly other_housing_subsidy: "233-006-000-000-000-000-000";
|
|
3252
3256
|
readonly no_subsidy: "233-007-000-000-000-000-000";
|
|
3257
|
+
readonly va_supportive_housing: "233-008-000-000-000-000-000";
|
|
3258
|
+
readonly grant_per_diem_transition_in_place: "233-009-000-000-000-000-000";
|
|
3259
|
+
readonly housing_stability_voucher: "233-010-000-000-000-000-000";
|
|
3260
|
+
readonly family_unification_program: "233-011-000-000-000-000-000";
|
|
3261
|
+
readonly foster_youth_to_independence: "233-012-000-000-000-000-000";
|
|
3253
3262
|
};
|
|
3254
3263
|
type HousingSubsidyTypesKey = keyof typeof HousingSubsidyTypesKeys;
|
|
3255
3264
|
|
package/dist/index.js
CHANGED
|
@@ -7747,6 +7747,7 @@ var IncomeBenefitsSourcesKeys = {
|
|
|
7747
7747
|
prefer_not_to_answer: "171-000-000-000-000-000-004",
|
|
7748
7748
|
earned_income: "171-001-000-000-000-000-000",
|
|
7749
7749
|
employment: "171-001-001-000-000-000-000",
|
|
7750
|
+
informal_income: "171-001-002-000-000-000-000",
|
|
7750
7751
|
cash_benefit: "171-002-000-000-000-000-000",
|
|
7751
7752
|
unemployment_insurance: "171-002-001-000-000-000-000",
|
|
7752
7753
|
supplemental_security_income: "171-002-002-000-000-000-000",
|
|
@@ -7774,6 +7775,7 @@ var IncomeBenefitsSourcesKeys = {
|
|
|
7774
7775
|
transfer_support: "171-004-000-000-000-000-000",
|
|
7775
7776
|
child_support: "171-004-001-000-000-000-000",
|
|
7776
7777
|
alimony_spousal_support: "171-004-002-000-000-000-000",
|
|
7778
|
+
family_friend_support: "171-004-003-000-000-000-000",
|
|
7777
7779
|
other_unspecified: "171-005-000-000-000-000-000",
|
|
7778
7780
|
other_income: "171-005-001-000-000-000-000",
|
|
7779
7781
|
other_benefit: "171-005-002-000-000-000-000",
|
|
@@ -8727,7 +8729,9 @@ var IdentificationStatusKeys = {
|
|
|
8727
8729
|
data_not_collected: "929-000-000-000-000-000-003",
|
|
8728
8730
|
identified: "929-001-000-000-000-000-000",
|
|
8729
8731
|
unidentified: "929-002-000-000-000-000-000",
|
|
8730
|
-
anonymous_posture: "929-003-000-000-000-000-000"
|
|
8732
|
+
anonymous_posture: "929-003-000-000-000-000-000",
|
|
8733
|
+
estimated_persona: "929-004-000-000-000-000-000",
|
|
8734
|
+
confirmed: "929-005-000-000-000-000-000"
|
|
8731
8735
|
};
|
|
8732
8736
|
var InvestigativeRequestTypeKeys = {
|
|
8733
8737
|
missingness_root: "931-000-000-000-000-000-000",
|
|
@@ -9169,7 +9173,12 @@ var HousingSubsidyTypesKeys = {
|
|
|
9169
9173
|
permanent_supportive_housing: "233-004-000-000-000-000-000",
|
|
9170
9174
|
rapid_rehousing_assistance: "233-005-000-000-000-000-000",
|
|
9171
9175
|
other_housing_subsidy: "233-006-000-000-000-000-000",
|
|
9172
|
-
no_subsidy: "233-007-000-000-000-000-000"
|
|
9176
|
+
no_subsidy: "233-007-000-000-000-000-000",
|
|
9177
|
+
va_supportive_housing: "233-008-000-000-000-000-000",
|
|
9178
|
+
grant_per_diem_transition_in_place: "233-009-000-000-000-000-000",
|
|
9179
|
+
housing_stability_voucher: "233-010-000-000-000-000-000",
|
|
9180
|
+
family_unification_program: "233-011-000-000-000-000-000",
|
|
9181
|
+
foster_youth_to_independence: "233-012-000-000-000-000-000"
|
|
9173
9182
|
};
|
|
9174
9183
|
|
|
9175
9184
|
// src/services/cvcRegistryService.ts
|
|
@@ -20288,7 +20297,8 @@ var incomeBenefitsSources_v1_0_0_default = {
|
|
|
20288
20297
|
selectable: false,
|
|
20289
20298
|
parentCode: null,
|
|
20290
20299
|
childCodes: [
|
|
20291
|
-
"171-001-001-000-000-000-000"
|
|
20300
|
+
"171-001-001-000-000-000-000",
|
|
20301
|
+
"171-001-002-000-000-000-000"
|
|
20292
20302
|
],
|
|
20293
20303
|
definition: "Income from wages, salary, tips, gig/contract work, or other paid employment."
|
|
20294
20304
|
},
|
|
@@ -20301,6 +20311,15 @@ var incomeBenefitsSources_v1_0_0_default = {
|
|
|
20301
20311
|
childCodes: [],
|
|
20302
20312
|
definition: "Income from wages, salary, tips, gig/contract work, or other paid employment. Includes informal earned income that is not supported by official documentation."
|
|
20303
20313
|
},
|
|
20314
|
+
{
|
|
20315
|
+
code: "171-001-002-000-000-000-000",
|
|
20316
|
+
key: "informal_income",
|
|
20317
|
+
title: "Informal / undocumented income",
|
|
20318
|
+
selectable: true,
|
|
20319
|
+
parentCode: "171-001-000-000-000-000-000",
|
|
20320
|
+
childCodes: [],
|
|
20321
|
+
definition: "Informal or undocumented income, e.g. cash work or side activity not captured by formal employment or a benefit program."
|
|
20322
|
+
},
|
|
20304
20323
|
{
|
|
20305
20324
|
code: "171-002-000-000-000-000-000",
|
|
20306
20325
|
key: "cash_benefit",
|
|
@@ -20549,7 +20568,8 @@ var incomeBenefitsSources_v1_0_0_default = {
|
|
|
20549
20568
|
parentCode: null,
|
|
20550
20569
|
childCodes: [
|
|
20551
20570
|
"171-004-001-000-000-000-000",
|
|
20552
|
-
"171-004-002-000-000-000-000"
|
|
20571
|
+
"171-004-002-000-000-000-000",
|
|
20572
|
+
"171-004-003-000-000-000-000"
|
|
20553
20573
|
],
|
|
20554
20574
|
definition: "Income received as interpersonal transfers or support payments (e.g., child support, spousal support)."
|
|
20555
20575
|
},
|
|
@@ -20571,6 +20591,15 @@ var incomeBenefitsSources_v1_0_0_default = {
|
|
|
20571
20591
|
childCodes: [],
|
|
20572
20592
|
definition: "All periodic payments received from an ex-spouse as alimony or spousal support. Excludes one-time property settlements."
|
|
20573
20593
|
},
|
|
20594
|
+
{
|
|
20595
|
+
code: "171-004-003-000-000-000-000",
|
|
20596
|
+
key: "family_friend_support",
|
|
20597
|
+
title: "Family / friend financial support",
|
|
20598
|
+
selectable: true,
|
|
20599
|
+
parentCode: "171-004-000-000-000-000-000",
|
|
20600
|
+
childCodes: [],
|
|
20601
|
+
definition: "Informal financial support from family or friends, not a documented benefit program."
|
|
20602
|
+
},
|
|
20574
20603
|
{
|
|
20575
20604
|
code: "171-005-000-000-000-000-000",
|
|
20576
20605
|
key: "other_unspecified",
|
|
@@ -28778,6 +28807,24 @@ var identificationStatus_v1_0_0_default = {
|
|
|
28778
28807
|
parentCode: null,
|
|
28779
28808
|
childCodes: [],
|
|
28780
28809
|
definition: "Advocate's deliberate choice to keep the person's name off the subject's record even when known (privacy / safety / legal-strategy reasons), or when documenting the name would risk the survivor or third party. Pairs with Name kind 'Anonymous'. This is a capture-intent posture, distinct from the missingness 'anonymous' sentinel."
|
|
28810
|
+
},
|
|
28811
|
+
{
|
|
28812
|
+
code: "929-004-000-000-000-000-000",
|
|
28813
|
+
key: "estimated_persona",
|
|
28814
|
+
title: "Estimated persona",
|
|
28815
|
+
selectable: true,
|
|
28816
|
+
parentCode: null,
|
|
28817
|
+
childCodes: [],
|
|
28818
|
+
definition: "A persona that exists in data/systems (resolved _id with linked source records) but has NOT been confirmed to represent a real person. Typically inferred (entity resolution / algorithm-clustered ads); maps 1:1 to the LEADS IDB 'not verified' icon. An estimated_persona record must never render as an identified person. Added 2026-06-12 per ruling M3 (Terry) so the platform-milestone IDENTIFICATION value maps exactly; RENAMED that day from the prototype's working code SYSTEM_ENTITY to avoid collision with facilitator_entity_type. Previously approximated as unidentified."
|
|
28819
|
+
},
|
|
28820
|
+
{
|
|
28821
|
+
code: "929-005-000-000-000-000-000",
|
|
28822
|
+
key: "confirmed",
|
|
28823
|
+
title: "Confirmed (identity unknown)",
|
|
28824
|
+
selectable: true,
|
|
28825
|
+
parentCode: null,
|
|
28826
|
+
childCodes: [],
|
|
28827
|
+
definition: "Confirmed to be a real person, but the specific identity is unknown \u2014 the 'real person, identity unknown' degree that sat between unidentified and identified with no code before 2026-06-12 (ruling M3). Distinct from unidentified (capture intent: known-of via relationship, no name) in that confirmation is an explicit analyst/advocate determination that the entity is real."
|
|
28781
28828
|
}
|
|
28782
28829
|
]
|
|
28783
28830
|
};
|
|
@@ -33227,6 +33274,51 @@ var housingSubsidyTypes_v1_0_0_default = {
|
|
|
33227
33274
|
childCodes: [],
|
|
33228
33275
|
definition: "Time-limited rental assistance and housing-stabilization services to help a household quickly exit homelessness into permanent housing (HUD CoC/ESG rapid re-housing)."
|
|
33229
33276
|
},
|
|
33277
|
+
{
|
|
33278
|
+
code: "233-008-000-000-000-000-000",
|
|
33279
|
+
key: "va_supportive_housing",
|
|
33280
|
+
title: "VA Supportive Housing (HUD-VASH)",
|
|
33281
|
+
selectable: true,
|
|
33282
|
+
parentCode: null,
|
|
33283
|
+
childCodes: [],
|
|
33284
|
+
definition: "HUD-VASH: a HUD Housing Choice Voucher paired with VA case management and clinical services for homeless Veterans."
|
|
33285
|
+
},
|
|
33286
|
+
{
|
|
33287
|
+
code: "233-009-000-000-000-000-000",
|
|
33288
|
+
key: "grant_per_diem_transition_in_place",
|
|
33289
|
+
title: "Grant and Per Diem Transition-in-Place (GPD TIP)",
|
|
33290
|
+
selectable: true,
|
|
33291
|
+
parentCode: null,
|
|
33292
|
+
childCodes: [],
|
|
33293
|
+
definition: "VA Grant and Per Diem Transition-in-Place: transitional housing that converts to permanent housing for the Veteran in the same unit."
|
|
33294
|
+
},
|
|
33295
|
+
{
|
|
33296
|
+
code: "233-010-000-000-000-000-000",
|
|
33297
|
+
key: "housing_stability_voucher",
|
|
33298
|
+
title: "Housing Stability Voucher (HSV)",
|
|
33299
|
+
selectable: true,
|
|
33300
|
+
parentCode: null,
|
|
33301
|
+
childCodes: [],
|
|
33302
|
+
definition: "Housing Stability Voucher: rental assistance for individuals and families who are homeless, at risk of homelessness, or fleeing domestic violence."
|
|
33303
|
+
},
|
|
33304
|
+
{
|
|
33305
|
+
code: "233-011-000-000-000-000-000",
|
|
33306
|
+
key: "family_unification_program",
|
|
33307
|
+
title: "Family Unification Program (FUP)",
|
|
33308
|
+
selectable: true,
|
|
33309
|
+
parentCode: null,
|
|
33310
|
+
childCodes: [],
|
|
33311
|
+
definition: "Family Unification Program: HUD vouchers for families at risk of child-welfare separation and for eligible youth aging out of foster care."
|
|
33312
|
+
},
|
|
33313
|
+
{
|
|
33314
|
+
code: "233-012-000-000-000-000-000",
|
|
33315
|
+
key: "foster_youth_to_independence",
|
|
33316
|
+
title: "Foster Youth to Independence (FYI)",
|
|
33317
|
+
selectable: true,
|
|
33318
|
+
parentCode: null,
|
|
33319
|
+
childCodes: [],
|
|
33320
|
+
definition: "Foster Youth to Independence: HUD vouchers for youth aging out of foster care who are homeless or at risk of homelessness."
|
|
33321
|
+
},
|
|
33230
33322
|
{
|
|
33231
33323
|
code: "233-006-000-000-000-000-000",
|
|
33232
33324
|
key: "other_housing_subsidy",
|