@htilabs/platform-common-models 0.8.1 → 0.8.3

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 (38) hide show
  1. package/dist/constants/index.cjs +28 -5
  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 +27 -5
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/cvcs/index.cjs +268 -1
  8. package/dist/cvcs/index.cjs.map +1 -1
  9. package/dist/cvcs/index.d.cts +1545 -1251
  10. package/dist/cvcs/index.d.ts +1545 -1251
  11. package/dist/cvcs/index.js +266 -1
  12. package/dist/cvcs/index.js.map +1 -1
  13. package/dist/index.cjs +332 -9
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +47 -6
  16. package/dist/index.d.ts +47 -6
  17. package/dist/index.js +327 -9
  18. package/dist/index.js.map +1 -1
  19. package/dist/{platform-auth-7dL99tZh.d.cts → platform-auth-BdnJUisw.d.cts} +16 -3
  20. package/dist/{platform-auth-7dL99tZh.d.ts → platform-auth-BdnJUisw.d.ts} +16 -3
  21. package/dist/schemas/index.cjs +25 -4
  22. package/dist/schemas/index.cjs.map +1 -1
  23. package/dist/schemas/index.js +25 -4
  24. package/dist/schemas/index.js.map +1 -1
  25. package/dist/types/index.d.cts +2 -2
  26. package/dist/types/index.d.ts +2 -2
  27. package/package.json +1 -1
  28. package/src/__tests__/__snapshots__/cvc-sot.snap +14 -6
  29. package/src/__tests__/cvc-sot-snapshot.test.ts +22 -7
  30. package/src/__tests__/cvc-structural.test.ts +2 -0
  31. package/src/constants/ic.ts +31 -3
  32. package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +9 -0
  33. package/src/cvcs/housingSubsidyTypes.v1.0.0.json +114 -0
  34. package/src/cvcs/incomeBenefitsSources.v1.0.0.json +9 -0
  35. package/src/cvcs/index.ts +4 -0
  36. package/src/cvcs/recencyBand.v1.0.0.json +105 -0
  37. package/src/cvcs/serviceStates.v1.0.0.json +23 -1
  38. package/src/generated/cvc-enums.ts +48 -3
@@ -71,6 +71,7 @@ __export(cvcs_exports, {
71
71
  hopeScaleCaptureContextSot: () => hopeScaleCaptureContext_v1_0_0_default,
72
72
  hopeScaleResponseOptionsSot: () => hopeScaleResponseOptions_v1_0_0_default,
73
73
  hopeScaleTierSot: () => hopeScaleTier_v1_0_0_default,
74
+ housingSubsidyTypesSot: () => housingSubsidyTypes_v1_0_0_default,
74
75
  htTypeSot: () => htType_v1_0_0_default,
75
76
  identificationStatusSot: () => identificationStatus_v1_0_0_default,
76
77
  incidentInvolvementRolesSot: () => incidentInvolvementRoles_v1_0_0_default,
@@ -105,6 +106,7 @@ __export(cvcs_exports, {
105
106
  proofOfIdTypeSot: () => proofOfIdType_v1_0_0_default,
106
107
  qualityFlagsSot: () => qualityFlags_v1_0_0_default,
107
108
  raceEthnicitySot: () => raceEthnicity_v1_0_0_default,
109
+ recencyBandSot: () => recencyBand_v1_0_0_default,
108
110
  referenceLinkTypeSot: () => referenceLinkType_v1_0_0_default,
109
111
  referralEntityCategorySot: () => referralEntityCategory_v1_0_0_default,
110
112
  relationshipConcernSot: () => relationshipConcern_v1_0_0_default,
@@ -2302,7 +2304,9 @@ var serviceStates_v1_0_0_default = {
2302
2304
  "049-007-001-000-000-000-000",
2303
2305
  "049-007-002-000-000-000-000",
2304
2306
  "049-007-003-000-000-000-000",
2305
- "049-007-004-000-000-000-000"
2307
+ "049-007-004-000-000-000-000",
2308
+ "049-007-005-000-000-000-000",
2309
+ "049-007-006-000-000-000-000"
2306
2310
  ],
2307
2311
  definition: "Program could not provide the service."
2308
2312
  },
@@ -2342,6 +2346,26 @@ var serviceStates_v1_0_0_default = {
2342
2346
  childCodes: [],
2343
2347
  definition: "Program could not provide the Service for a reason other than eligibility, capacity, or resources."
2344
2348
  },
2349
+ {
2350
+ code: "049-007-005-000-000-000-000",
2351
+ key: "unable_to_provide_service_fit",
2352
+ title: "Unable due to service fit",
2353
+ selectable: true,
2354
+ parentCode: "049-007-000-000-000-000-000",
2355
+ childCodes: [],
2356
+ definition: "Program's services were not an appropriate fit for the client's presenting needs.",
2357
+ provisional: true
2358
+ },
2359
+ {
2360
+ code: "049-007-006-000-000-000-000",
2361
+ key: "unable_to_provide_access_barrier",
2362
+ title: "Unable due to access barrier",
2363
+ selectable: true,
2364
+ parentCode: "049-007-000-000-000-000-000",
2365
+ childCodes: [],
2366
+ definition: "An access barrier (e.g. language, transportation, location, hours, technology) prevented service delivery.",
2367
+ provisional: true
2368
+ },
2345
2369
  {
2346
2370
  code: "049-000-000-000-000-000-000",
2347
2371
  key: "missingness_root",
@@ -7151,6 +7175,15 @@ var highestEducationLevelCompleted_v1_0_0_default = {
7151
7175
  childCodes: [],
7152
7176
  definition: "Completed a master's, doctoral, or professional degree (MA, MS, MBA, JD, MD, PhD, or equivalent). Aligns with Census/ACS 'Graduate or professional degree'."
7153
7177
  },
7178
+ {
7179
+ code: "180-008-000-000-000-000-000",
7180
+ key: "trade_vocational",
7181
+ title: "Trade or vocational credential",
7182
+ selectable: true,
7183
+ parentCode: null,
7184
+ childCodes: [],
7185
+ definition: "Completed a trade, vocational, or technical credential (apprenticeship, licensure, or postsecondary non-degree award) rather than an academic degree."
7186
+ },
7154
7187
  {
7155
7188
  code: "180-000-000-000-000-000-000",
7156
7189
  key: "missingness_root",
@@ -11172,6 +11205,15 @@ var incomeBenefitsSources_v1_0_0_default = {
11172
11205
  parentCode: "171-005-000-000-000-000-000",
11173
11206
  childCodes: [],
11174
11207
  definition: "Income received as a stipend, scholarship refund, training allowance, or other education-related payment that can function as income for living expenses. Funder-specific exclusions may apply (e.g., SSVF)."
11208
+ },
11209
+ {
11210
+ code: "171-006-000-000-000-000-000",
11211
+ key: "victim_compensation",
11212
+ title: "Crime victim compensation",
11213
+ selectable: true,
11214
+ parentCode: null,
11215
+ childCodes: [],
11216
+ definition: "Income or benefits from a state or federal crime-victim compensation program (e.g. VOCA-funded victim compensation)."
11175
11217
  }
11176
11218
  ]
11177
11219
  };
@@ -23577,6 +23619,229 @@ var relationshipConcern_v1_0_0_default = {
23577
23619
  }
23578
23620
  ]
23579
23621
  };
23622
+
23623
+ // src/cvcs/recencyBand.v1.0.0.json
23624
+ var recencyBand_v1_0_0_default = {
23625
+ domain: "recency_band",
23626
+ name: "Core Recency Band (PROVISIONAL CVC-232 \u2014 pending codebook ratification)",
23627
+ version: "1.0.0",
23628
+ levels: {
23629
+ "0": "Unknown or Missing",
23630
+ "1": "Recency band"
23631
+ },
23632
+ entries: [
23633
+ {
23634
+ code: "232-000-000-000-000-000-000",
23635
+ key: "missingness_root",
23636
+ title: "Unknown, Redacted, or Missing",
23637
+ selectable: false,
23638
+ parentCode: null,
23639
+ childCodes: [
23640
+ "232-000-000-000-000-000-001",
23641
+ "232-000-000-000-000-000-002",
23642
+ "232-000-000-000-000-000-003"
23643
+ ],
23644
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
23645
+ },
23646
+ {
23647
+ code: "232-000-000-000-000-000-001",
23648
+ key: "unknown",
23649
+ title: "Unknown / not captured",
23650
+ selectable: true,
23651
+ parentCode: "232-000-000-000-000-000-000",
23652
+ childCodes: [],
23653
+ definition: "The recency band is unknown or cannot be determined from the available information."
23654
+ },
23655
+ {
23656
+ code: "232-000-000-000-000-000-002",
23657
+ key: "anonymous",
23658
+ title: "Anonymous / declined to answer",
23659
+ selectable: true,
23660
+ parentCode: "232-000-000-000-000-000-000",
23661
+ childCodes: [],
23662
+ definition: "The recency band may be withheld by preference or due to redaction; identity is anonymous or redacted."
23663
+ },
23664
+ {
23665
+ code: "232-000-000-000-000-000-003",
23666
+ key: "data_not_collected",
23667
+ title: "Data not collected",
23668
+ selectable: true,
23669
+ parentCode: "232-000-000-000-000-000-000",
23670
+ childCodes: [],
23671
+ definition: "No attempt was made to collect the recency band."
23672
+ },
23673
+ {
23674
+ code: "232-001-000-000-000-000-000",
23675
+ key: "within_3_months",
23676
+ title: "Within the last 3 months",
23677
+ selectable: true,
23678
+ parentCode: null,
23679
+ childCodes: [],
23680
+ definition: "The event or condition occurred within the most recent 3 months (0 up to and including 3 months before time_as_of)."
23681
+ },
23682
+ {
23683
+ code: "232-002-000-000-000-000-000",
23684
+ key: "months_3_to_6",
23685
+ title: "3 to 6 months ago",
23686
+ selectable: true,
23687
+ parentCode: null,
23688
+ childCodes: [],
23689
+ definition: "The event or condition occurred more than 3 and up to and including 6 months before time_as_of."
23690
+ },
23691
+ {
23692
+ code: "232-003-000-000-000-000-000",
23693
+ key: "months_6_to_12",
23694
+ title: "6 to 12 months ago",
23695
+ selectable: true,
23696
+ parentCode: null,
23697
+ childCodes: [],
23698
+ definition: "The event or condition occurred more than 6 and up to and including 12 months before time_as_of."
23699
+ },
23700
+ {
23701
+ code: "232-004-000-000-000-000-000",
23702
+ key: "one_year_or_more",
23703
+ title: "1 year or more ago",
23704
+ selectable: true,
23705
+ parentCode: null,
23706
+ childCodes: [],
23707
+ definition: "The event or condition occurred at least 1 year before time_as_of. Use a finer-grained band (years_3_to_10 or ten_plus_years) when the source supports it."
23708
+ },
23709
+ {
23710
+ code: "232-005-000-000-000-000-000",
23711
+ key: "years_3_to_10",
23712
+ title: "3 to 10 years ago",
23713
+ selectable: true,
23714
+ parentCode: null,
23715
+ childCodes: [],
23716
+ definition: "The event or condition occurred more than 3 and up to and including 10 years before time_as_of."
23717
+ },
23718
+ {
23719
+ code: "232-006-000-000-000-000-000",
23720
+ key: "ten_plus_years",
23721
+ title: "More than 10 years ago",
23722
+ selectable: true,
23723
+ parentCode: null,
23724
+ childCodes: [],
23725
+ definition: "The event or condition occurred more than 10 years before time_as_of."
23726
+ }
23727
+ ]
23728
+ };
23729
+
23730
+ // src/cvcs/housingSubsidyTypes.v1.0.0.json
23731
+ var housingSubsidyTypes_v1_0_0_default = {
23732
+ domain: "housing_subsidy_types",
23733
+ name: "Core Housing Subsidy Types (PROVISIONAL CVC-233 \u2014 pending codebook ratification)",
23734
+ version: "1.0.0",
23735
+ levels: {
23736
+ "0": "Unknown or Missing",
23737
+ "1": "Housing subsidy type"
23738
+ },
23739
+ entries: [
23740
+ {
23741
+ code: "233-000-000-000-000-000-000",
23742
+ key: "missingness_root",
23743
+ title: "Unknown, Redacted, or Missing",
23744
+ selectable: false,
23745
+ parentCode: null,
23746
+ childCodes: [
23747
+ "233-000-000-000-000-000-001",
23748
+ "233-000-000-000-000-000-002",
23749
+ "233-000-000-000-000-000-003"
23750
+ ],
23751
+ definition: "Root group for values indicating absent, withheld, or uncollected data."
23752
+ },
23753
+ {
23754
+ code: "233-000-000-000-000-000-001",
23755
+ key: "unknown",
23756
+ title: "Unknown / not captured",
23757
+ selectable: true,
23758
+ parentCode: "233-000-000-000-000-000-000",
23759
+ childCodes: [],
23760
+ definition: "The housing subsidy type is unknown or cannot be determined from the available information."
23761
+ },
23762
+ {
23763
+ code: "233-000-000-000-000-000-002",
23764
+ key: "anonymous",
23765
+ title: "Anonymous / declined to answer",
23766
+ selectable: true,
23767
+ parentCode: "233-000-000-000-000-000-000",
23768
+ childCodes: [],
23769
+ definition: "The housing subsidy type may be withheld by preference or due to redaction; identity is anonymous or redacted."
23770
+ },
23771
+ {
23772
+ code: "233-000-000-000-000-000-003",
23773
+ key: "data_not_collected",
23774
+ title: "Data not collected",
23775
+ selectable: true,
23776
+ parentCode: "233-000-000-000-000-000-000",
23777
+ childCodes: [],
23778
+ definition: "No attempt was made to collect the housing subsidy type."
23779
+ },
23780
+ {
23781
+ code: "233-001-000-000-000-000-000",
23782
+ key: "housing_choice_voucher",
23783
+ title: "Housing Choice Voucher (Section 8 HCV)",
23784
+ selectable: true,
23785
+ parentCode: null,
23786
+ childCodes: [],
23787
+ definition: "Tenant-based rental assistance through the HUD Housing Choice Voucher program (Section 8 HCV), which subsidizes rent in private-market units chosen by the tenant."
23788
+ },
23789
+ {
23790
+ code: "233-002-000-000-000-000-000",
23791
+ key: "public_housing",
23792
+ title: "Public housing",
23793
+ selectable: true,
23794
+ parentCode: null,
23795
+ childCodes: [],
23796
+ definition: "Residence in a public housing unit owned and operated by a public housing authority (PHA), with rent set as a subsidized share of household income."
23797
+ },
23798
+ {
23799
+ code: "233-003-000-000-000-000-000",
23800
+ key: "project_based_rental_assistance",
23801
+ title: "Project-based rental assistance",
23802
+ selectable: true,
23803
+ parentCode: null,
23804
+ childCodes: [],
23805
+ definition: "Rental assistance tied to a specific housing development or unit (e.g. project-based Section 8, project-based vouchers, or other site-based subsidy) rather than to the tenant."
23806
+ },
23807
+ {
23808
+ code: "233-004-000-000-000-000-000",
23809
+ key: "permanent_supportive_housing",
23810
+ title: "Permanent supportive housing (PSH)",
23811
+ selectable: true,
23812
+ parentCode: null,
23813
+ childCodes: [],
23814
+ definition: "Permanent housing that pairs a long-term rental subsidy with voluntary supportive services for people with disabilities or chronic homelessness (HUD CoC PSH)."
23815
+ },
23816
+ {
23817
+ code: "233-005-000-000-000-000-000",
23818
+ key: "rapid_rehousing_assistance",
23819
+ title: "Rapid re-housing assistance",
23820
+ selectable: true,
23821
+ parentCode: null,
23822
+ childCodes: [],
23823
+ 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)."
23824
+ },
23825
+ {
23826
+ code: "233-006-000-000-000-000-000",
23827
+ key: "other_housing_subsidy",
23828
+ title: "Other housing subsidy",
23829
+ selectable: true,
23830
+ parentCode: null,
23831
+ childCodes: [],
23832
+ definition: "A housing subsidy or rental-assistance program not covered by the other codes (e.g. state or local subsidy, HOME TBRA, or other program). Record program name and free-text detail alongside this code to preserve analytic value."
23833
+ },
23834
+ {
23835
+ code: "233-007-000-000-000-000-000",
23836
+ key: "no_subsidy",
23837
+ title: "No housing subsidy",
23838
+ selectable: true,
23839
+ parentCode: null,
23840
+ childCodes: [],
23841
+ definition: "The household receives no housing subsidy or rental assistance (housing costs are paid in full without a subsidy)."
23842
+ }
23843
+ ]
23844
+ };
23580
23845
  // Annotate the CommonJS export names for ESM import in node:
23581
23846
  0 && (module.exports = {
23582
23847
  accommodationTypeSot,
@@ -23630,6 +23895,7 @@ var relationshipConcern_v1_0_0_default = {
23630
23895
  hopeScaleCaptureContextSot,
23631
23896
  hopeScaleResponseOptionsSot,
23632
23897
  hopeScaleTierSot,
23898
+ housingSubsidyTypesSot,
23633
23899
  htTypeSot,
23634
23900
  identificationStatusSot,
23635
23901
  incidentInvolvementRolesSot,
@@ -23664,6 +23930,7 @@ var relationshipConcern_v1_0_0_default = {
23664
23930
  proofOfIdTypeSot,
23665
23931
  qualityFlagsSot,
23666
23932
  raceEthnicitySot,
23933
+ recencyBandSot,
23667
23934
  referenceLinkTypeSot,
23668
23935
  referralEntityCategorySot,
23669
23936
  relationshipConcernSot,