@htilabs/platform-common-models 0.18.0 → 0.19.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 (47) hide show
  1. package/dist/cvcs/index.cjs +966 -966
  2. package/dist/cvcs/index.cjs.map +1 -1
  3. package/dist/cvcs/index.d.cts +946 -946
  4. package/dist/cvcs/index.d.ts +946 -946
  5. package/dist/cvcs/index.js +958 -958
  6. package/dist/cvcs/index.js.map +1 -1
  7. package/dist/enums/index.cjs +142 -142
  8. package/dist/enums/index.cjs.map +1 -1
  9. package/dist/enums/index.d.cts +143 -143
  10. package/dist/enums/index.d.ts +143 -143
  11. package/dist/enums/index.js +142 -142
  12. package/dist/enums/index.js.map +1 -1
  13. package/dist/{index-Zu_mOJRn.d.cts → index-CoVr1jIV.d.cts} +1 -1
  14. package/dist/{index-CDoqrfc1.d.ts → index-I-DiX9eQ.d.ts} +1 -1
  15. package/dist/index.cjs +1109 -1109
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +2 -2
  18. package/dist/index.d.ts +2 -2
  19. package/dist/index.js +1101 -1101
  20. package/dist/index.js.map +1 -1
  21. package/dist/models/index.cjs +1 -1
  22. package/dist/models/index.cjs.map +1 -1
  23. package/dist/models/index.d.cts +2 -2
  24. package/dist/models/index.d.ts +2 -2
  25. package/dist/models/index.js +1 -1
  26. package/dist/models/index.js.map +1 -1
  27. package/dist/schemas/index.cjs +1 -1
  28. package/dist/schemas/index.cjs.map +1 -1
  29. package/dist/schemas/index.d.cts +25 -25
  30. package/dist/schemas/index.d.ts +25 -25
  31. package/dist/schemas/index.js +1 -1
  32. package/dist/schemas/index.js.map +1 -1
  33. package/dist/services/index.cjs +1 -1
  34. package/dist/services/index.cjs.map +1 -1
  35. package/dist/services/index.js +1 -1
  36. package/dist/services/index.js.map +1 -1
  37. package/package.json +1 -1
  38. package/src/__tests__/__snapshots__/cvc-sot.snap +1 -1
  39. package/src/__tests__/cvc-sot-snapshot.test.ts +1 -1
  40. package/src/__tests__/cvc-structural.test.ts +2 -2
  41. package/src/cvcs/index.ts +1 -1
  42. package/src/cvcs/{serviceCategories.v1.0.0.json → serviceCategories.v1.2.0.json} +955 -955
  43. package/src/generated/cvc-enums.ts +143 -143
  44. package/src/schemas/cvcRegistry.ts +1 -1
  45. package/src/services/__tests__/cvcRegistryService.test.ts +11 -11
  46. package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-BCj1OWqL.d.cts} +8 -8
  47. package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-BCj1OWqL.d.ts} +8 -8
@@ -12,160 +12,160 @@
12
12
  /**
13
13
  * Key → positional code map for the `service_categories` CVC domain.
14
14
  *
15
- * Domain: `service_categories` · Version: 1.0.0 · Entries: 151
15
+ * Domain: `service_categories` · Version: 1.2.0 · Entries: 151
16
16
  */
17
17
  export const ServiceCategoryKeys = {
18
18
  missingness_root: "022-000-000-000-000-000-000",
19
19
  unknown: "022-000-000-000-000-000-001",
20
20
  anonymous: "022-000-000-000-000-000-002",
21
21
  data_not_collected: "022-000-000-000-000-000-003",
22
- social_support_community_engagement: "022-002-000-000-000-000-000",
23
- cultural_needs_support: "022-002-001-000-000-000-000",
24
- gift_holiday_resources: "022-002-002-000-000-000-000",
25
- peer_facilitated_supportive_group: "022-002-003-000-000-000-000",
26
- community_service_learning: "022-002-004-000-000-000-000",
27
- survivor_support_psychoeducation: "022-002-005-000-000-000-000",
28
- financial_and_employment: "022-003-000-000-000-000-000",
29
- financial_support: "022-003-001-000-000-000-000",
30
- emergency_financial_assistance: "022-003-001-001-000-000-000",
31
- employment_support: "022-003-002-000-000-000-000",
32
- supported_employment: "022-003-002-001-000-000-000",
33
- employment_assistance_job_search: "022-003-002-002-000-000-000",
34
- job_vocation_training: "022-003-002-003-000-000-000",
35
- healthcare: "022-004-000-000-000-000-000",
36
- medical: "022-004-001-000-000-000-000",
37
- emergency_medical_care: "022-004-001-001-000-000-000",
38
- forensic_exam_interview: "022-004-001-002-000-000-000",
39
- dv_exam: "022-004-001-002-001-000-000",
40
- sane_exam: "022-004-001-002-002-000-000",
41
- std_testing: "022-004-001-002-003-000-000",
42
- specialized_assessments: "022-004-001-002-004-000-000",
43
- counseling_evaluation_assessment: "022-004-001-002-004-001-000",
44
- stalking_assessment: "022-004-001-002-004-002-000",
45
- danger_assessment: "022-004-001-002-004-003-000",
46
- indepth_assessment: "022-004-001-002-004-004-000",
47
- outpatient_medical: "022-004-001-003-000-000-000",
48
- dental: "022-004-001-003-001-000-000",
49
- vision: "022-004-001-003-002-000-000",
50
- tattoo_removal: "022-004-001-003-003-000-000",
51
- pet_medical: "022-004-001-003-004-000-000",
52
- pregnancy_care: "022-004-001-004-000-000-000",
53
- prenatal_care: "022-004-001-004-001-000-000",
54
- postnatal_care_client: "022-004-001-004-002-000-000",
55
- postnatal_care_newborn: "022-004-001-004-003-000-000",
56
- emotional_support_mental_health: "022-004-002-000-000-000-000",
57
- individual_counseling: "022-004-002-001-000-000-000",
58
- group_counseling: "022-004-002-002-000-000-000",
59
- family_counseling: "022-004-002-003-000-000-000",
60
- counseling_treatment_planning: "022-004-002-004-000-000-000",
61
- counseling_treatment_plan_review: "022-004-002-005-000-000-000",
62
- behavioral_occupational_support: "022-004-002-006-000-000-000",
63
- substance_abuse_treatment: "022-004-002-006-001-000-000",
64
- coping_strategy_support: "022-004-002-006-002-000-000",
65
- other_therapy: "022-004-002-007-000-000-000",
66
- housing_services: "022-005-000-000-000-000-000",
67
- emergency_shelter: "022-005-001-000-000-000-000",
68
- day_shelter_dropin: "022-005-001-001-000-000-000",
69
- host_homes_safe_homes: "022-005-001-002-000-000-000",
70
- congregate_shelter_bednight: "022-005-001-003-000-000-000",
71
- emergency_hotel_motel: "022-005-001-004-000-000-000",
72
- night_by_night_shelter: "022-005-001-005-000-000-000",
73
- transitional_housing: "022-005-002-000-000-000-000",
74
- housing_renovation_modification: "022-005-003-000-000-000-000",
75
- household_setup_goods: "022-005-003-001-000-000-000",
76
- housing_navigation_placement: "022-005-004-000-000-000-000",
77
- housing_financial_assistance: "022-005-004-001-000-000-000",
78
- rental_payment_assistance: "022-005-004-001-001-000-000",
79
- security_deposit_allowance: "022-005-004-001-001-001-000",
80
- utility_assistance: "022-005-004-001-001-002-000",
81
- relocation_moving_assistance: "022-005-004-002-000-000-000",
82
- housing_stabilization_eviction_prevention: "022-005-005-000-000-000-000",
83
- tenant_based_scattered_site: "022-005-006-000-000-000-000",
84
- legal_services: "022-006-000-000-000-000-000",
85
- immigration_relief: "022-006-001-000-000-000-000",
86
- repatriation: "022-006-001-001-000-000-000",
87
- family_law: "022-006-002-000-000-000-000",
88
- criminal_support: "022-006-003-000-000-000-000",
89
- victim_impact_statement: "022-006-003-001-000-000-000",
90
- perpetrator_accountability: "022-006-003-002-000-000-000",
91
- victim_compensation: "022-006-003-003-000-000-000",
92
- victims_rights_representation: "022-006-003-004-000-000-000",
93
- criminal_record_relief: "022-006-003-005-000-000-000",
94
- civil_support: "022-006-004-000-000-000-000",
95
- protection_restraining_orders: "022-006-004-001-000-000-000",
96
- public_benefits_law: "022-006-004-002-000-000-000",
97
- emergency_safety_assistance: "022-006-005-000-000-000-000",
98
- basic_needs: "022-007-000-000-000-000-000",
99
- clothing_shoes_accessories: "022-007-001-000-000-000-000",
100
- elder_assistance: "022-007-001-001-000-000-000",
101
- food: "022-007-002-000-000-000-000",
102
- over_the_counter_medications: "022-007-003-000-000-000-000",
103
- immediate_safety_planning: "022-007-004-000-000-000-000",
104
- emergency_crisis_safety_support: "022-007-004-001-000-000-000",
105
- hygiene_items_personal_care: "022-007-005-000-000-000-000",
106
- communications_connectivity: "022-007-006-000-000-000-000",
107
- interpreter_services: "022-007-007-000-000-000-000",
22
+ basic_needs: "022-001-000-000-000-000-000",
23
+ clothing_shoes_accessories: "022-001-001-000-000-000-000",
24
+ elder_assistance: "022-001-001-001-000-000-000",
25
+ food: "022-001-002-000-000-000-000",
26
+ over_the_counter_medications: "022-001-003-000-000-000-000",
27
+ immediate_safety_planning: "022-001-004-000-000-000-000",
28
+ emergency_crisis_safety_support: "022-001-004-001-000-000-000",
29
+ hygiene_items_personal_care: "022-001-005-000-000-000-000",
30
+ communications_connectivity: "022-001-006-000-000-000-000",
31
+ interpreter_services: "022-001-007-000-000-000-000",
32
+ housing_services: "022-002-000-000-000-000-000",
33
+ emergency_shelter: "022-002-001-000-000-000-000",
34
+ day_shelter_dropin: "022-002-001-001-000-000-000",
35
+ host_homes_safe_homes: "022-002-001-002-000-000-000",
36
+ congregate_shelter_bednight: "022-002-001-003-000-000-000",
37
+ emergency_hotel_motel: "022-002-001-004-000-000-000",
38
+ night_by_night_shelter: "022-002-001-005-000-000-000",
39
+ transitional_housing: "022-002-002-000-000-000-000",
40
+ housing_renovation_modification: "022-002-003-000-000-000-000",
41
+ household_setup_goods: "022-002-003-001-000-000-000",
42
+ housing_navigation_placement: "022-002-004-000-000-000-000",
43
+ housing_financial_assistance: "022-002-004-001-000-000-000",
44
+ rental_payment_assistance: "022-002-004-001-001-000-000",
45
+ security_deposit_allowance: "022-002-004-001-001-001-000",
46
+ utility_assistance: "022-002-004-001-001-002-000",
47
+ relocation_moving_assistance: "022-002-004-002-000-000-000",
48
+ housing_stabilization_eviction_prevention: "022-002-005-000-000-000-000",
49
+ tenant_based_scattered_site: "022-002-006-000-000-000-000",
50
+ social_support_community_engagement: "022-003-000-000-000-000-000",
51
+ cultural_needs_support: "022-003-001-000-000-000-000",
52
+ gift_holiday_resources: "022-003-002-000-000-000-000",
53
+ peer_facilitated_supportive_group: "022-003-003-000-000-000-000",
54
+ community_service_learning: "022-003-004-000-000-000-000",
55
+ survivor_support_psychoeducation: "022-003-005-000-000-000-000",
56
+ transportation: "022-004-000-000-000-000-000",
57
+ transportation_assistance_direct: "022-004-001-000-000-000-000",
58
+ transportation_direct_emergency: "022-004-001-001-000-000-000",
59
+ taxi_rideshare_voucher: "022-004-002-000-000-000-000",
60
+ taxi_rideshare_emergency: "022-004-002-001-000-000-000",
61
+ bus_fare_pass: "022-004-003-000-000-000-000",
62
+ bus_fare_pass_emergency: "022-004-003-001-000-000-000",
63
+ gift_card_gas_card: "022-004-004-000-000-000-000",
64
+ gift_card_gas_card_emergency: "022-004-004-001-000-000-000",
65
+ airline_tickets: "022-004-005-000-000-000-000",
66
+ airline_tickets_emergency: "022-004-005-001-000-000-000",
67
+ legal_services: "022-005-000-000-000-000-000",
68
+ immigration_relief: "022-005-001-000-000-000-000",
69
+ repatriation: "022-005-001-001-000-000-000",
70
+ family_law: "022-005-002-000-000-000-000",
71
+ criminal_support: "022-005-003-000-000-000-000",
72
+ victim_impact_statement: "022-005-003-001-000-000-000",
73
+ perpetrator_accountability: "022-005-003-002-000-000-000",
74
+ victim_compensation: "022-005-003-003-000-000-000",
75
+ victims_rights_representation: "022-005-003-004-000-000-000",
76
+ criminal_record_relief: "022-005-003-005-000-000-000",
77
+ civil_support: "022-005-004-000-000-000-000",
78
+ protection_restraining_orders: "022-005-004-001-000-000-000",
79
+ public_benefits_law: "022-005-004-002-000-000-000",
80
+ emergency_safety_assistance: "022-005-005-000-000-000-000",
81
+ healthcare: "022-006-000-000-000-000-000",
82
+ medical: "022-006-001-000-000-000-000",
83
+ emergency_medical_care: "022-006-001-001-000-000-000",
84
+ forensic_exam_interview: "022-006-001-002-000-000-000",
85
+ dv_exam: "022-006-001-002-001-000-000",
86
+ sane_exam: "022-006-001-002-002-000-000",
87
+ std_testing: "022-006-001-002-003-000-000",
88
+ specialized_assessments: "022-006-001-002-004-000-000",
89
+ counseling_evaluation_assessment: "022-006-001-002-004-001-000",
90
+ stalking_assessment: "022-006-001-002-004-002-000",
91
+ danger_assessment: "022-006-001-002-004-003-000",
92
+ indepth_assessment: "022-006-001-002-004-004-000",
93
+ outpatient_medical: "022-006-001-003-000-000-000",
94
+ dental: "022-006-001-003-001-000-000",
95
+ vision: "022-006-001-003-002-000-000",
96
+ tattoo_removal: "022-006-001-003-003-000-000",
97
+ pet_medical: "022-006-001-003-004-000-000",
98
+ pregnancy_care: "022-006-001-004-000-000-000",
99
+ prenatal_care: "022-006-001-004-001-000-000",
100
+ postnatal_care_client: "022-006-001-004-002-000-000",
101
+ postnatal_care_newborn: "022-006-001-004-003-000-000",
102
+ emotional_support_mental_health: "022-006-002-000-000-000-000",
103
+ individual_counseling: "022-006-002-001-000-000-000",
104
+ group_counseling: "022-006-002-002-000-000-000",
105
+ family_counseling: "022-006-002-003-000-000-000",
106
+ counseling_treatment_planning: "022-006-002-004-000-000-000",
107
+ counseling_treatment_plan_review: "022-006-002-005-000-000-000",
108
+ behavioral_occupational_support: "022-006-002-006-000-000-000",
109
+ substance_abuse_treatment: "022-006-002-006-001-000-000",
110
+ coping_strategy_support: "022-006-002-006-002-000-000",
111
+ other_therapy: "022-006-002-007-000-000-000",
112
+ financial_and_employment: "022-007-000-000-000-000-000",
113
+ financial_support: "022-007-001-000-000-000-000",
114
+ emergency_financial_assistance: "022-007-001-001-000-000-000",
115
+ employment_support: "022-007-002-000-000-000-000",
116
+ supported_employment: "022-007-002-001-000-000-000",
117
+ employment_assistance_job_search: "022-007-002-002-000-000-000",
118
+ job_vocation_training: "022-007-002-003-000-000-000",
108
119
  informal_education_life_skills: "022-008-000-000-000-000-000",
109
120
  basic_life_skills_self_care: "022-008-001-000-000-000-000",
110
121
  accessibility_disability_support: "022-008-002-000-000-000-000",
111
122
  parenting_education: "022-008-003-000-000-000-000",
112
123
  learning_language_classes: "022-008-004-000-000-000-000",
113
- transportation: "022-009-000-000-000-000-000",
114
- transportation_assistance_direct: "022-009-001-000-000-000-000",
115
- transportation_direct_emergency: "022-009-001-001-000-000-000",
116
- taxi_rideshare_voucher: "022-009-002-000-000-000-000",
117
- taxi_rideshare_emergency: "022-009-002-001-000-000-000",
118
- bus_fare_pass: "022-009-003-000-000-000-000",
119
- bus_fare_pass_emergency: "022-009-003-001-000-000-000",
120
- gift_card_gas_card: "022-009-004-000-000-000-000",
121
- gift_card_gas_card_emergency: "022-009-004-001-000-000-000",
122
- airline_tickets: "022-009-005-000-000-000-000",
123
- airline_tickets_emergency: "022-009-005-001-000-000-000",
124
- dependents: "022-010-000-000-000-000-000",
125
- pet_care: "022-010-001-000-000-000-000",
126
- child_care: "022-010-002-000-000-000-000",
127
- childrens_activities: "022-010-002-001-000-000-000",
128
- children_youth_baby_supplies: "022-010-002-001-001-000-000",
129
- case_coordination: "022-011-000-000-000-000-000",
130
- advocacy: "022-011-001-000-000-000-000",
131
- medical_advocacy: "022-011-001-001-000-000-000",
132
- advocacy_emergency_medical: "022-011-001-001-001-000-000",
133
- advocacy_forensic_exam: "022-011-001-001-002-000-000",
134
- court_advocacy: "022-011-001-002-000-000-000",
135
- crime_scene_clean_up: "022-011-001-002-001-000-000",
136
- family_reunification: "022-011-001-002-002-000-000",
137
- law_enforcement_interview_support: "022-011-001-002-003-000-000",
138
- prosecution_interview_advocacy: "022-011-001-002-004-000-000",
139
- immigration_advocacy_support: "022-011-001-002-005-000-000",
140
- documentation_records_retrieval: "022-011-001-003-000-000-000",
141
- obtaining_insurance: "022-011-001-003-001-000-000",
142
- drivers_car_insurance: "022-011-001-003-001-001-000",
143
- medical_insurance: "022-011-001-003-001-002-000",
144
- obtaining_drivers_license: "022-011-001-003-002-000-000",
145
- faith_resource: "022-011-001-004-000-000-000",
146
- banking_notary: "022-011-001-005-000-000-000",
147
- income_benefits_navigation: "022-011-001-006-000-000-000",
148
- government_services_special_programs: "022-011-001-006-001-000-000",
149
- intervention_employer_creditor_academic: "022-011-001-007-000-000-000",
150
- formal_education_academic_support: "022-011-001-007-001-000-000",
151
- adult_school_ged: "022-011-001-007-001-001-000",
152
- child_school_enrollment: "022-011-001-007-001-002-000",
153
- intake: "022-011-002-000-000-000-000",
154
- screening: "022-011-002-001-000-000-000",
155
- housing_eligibility_determination: "022-011-002-001-001-000-000",
156
- coordinated_entry: "022-011-002-001-001-001-000",
157
- behavioral_issues_screen: "022-011-002-001-002-000-000",
158
- initial_screen: "022-011-002-001-003-000-000",
159
- needs_assessment: "022-011-002-001-004-000-000",
160
- tvap: "022-011-002-001-005-000-000",
161
- case_management_supportive_services: "022-011-003-000-000-000-000",
162
- intra_agency_provider_coordination: "022-011-003-001-000-000-000",
163
- inter_agency_consultation: "022-011-003-002-000-000-000",
164
- service_plan: "022-011-003-003-000-000-000",
165
- hope_scale_and_plan: "022-011-003-003-001-000-000",
166
- post_exit_plan: "022-011-003-004-000-000-000",
167
- advanced_directives: "022-011-003-005-000-000-000",
168
- other_services: "022-012-000-000-000-000-000",
124
+ dependents: "022-009-000-000-000-000-000",
125
+ pet_care: "022-009-001-000-000-000-000",
126
+ child_care: "022-009-002-000-000-000-000",
127
+ childrens_activities: "022-009-002-001-000-000-000",
128
+ children_youth_baby_supplies: "022-009-002-001-001-000-000",
129
+ case_coordination: "022-010-000-000-000-000-000",
130
+ advocacy: "022-010-001-000-000-000-000",
131
+ medical_advocacy: "022-010-001-001-000-000-000",
132
+ advocacy_emergency_medical: "022-010-001-001-001-000-000",
133
+ advocacy_forensic_exam: "022-010-001-001-002-000-000",
134
+ court_advocacy: "022-010-001-002-000-000-000",
135
+ crime_scene_clean_up: "022-010-001-002-001-000-000",
136
+ family_reunification: "022-010-001-002-002-000-000",
137
+ law_enforcement_interview_support: "022-010-001-002-003-000-000",
138
+ prosecution_interview_advocacy: "022-010-001-002-004-000-000",
139
+ immigration_advocacy_support: "022-010-001-002-005-000-000",
140
+ documentation_records_retrieval: "022-010-001-003-000-000-000",
141
+ obtaining_insurance: "022-010-001-003-001-000-000",
142
+ drivers_car_insurance: "022-010-001-003-001-001-000",
143
+ medical_insurance: "022-010-001-003-001-002-000",
144
+ obtaining_drivers_license: "022-010-001-003-002-000-000",
145
+ faith_resource: "022-010-001-004-000-000-000",
146
+ banking_notary: "022-010-001-005-000-000-000",
147
+ income_benefits_navigation: "022-010-001-006-000-000-000",
148
+ government_services_special_programs: "022-010-001-006-001-000-000",
149
+ intervention_employer_creditor_academic: "022-010-001-007-000-000-000",
150
+ formal_education_academic_support: "022-010-001-007-001-000-000",
151
+ adult_school_ged: "022-010-001-007-001-001-000",
152
+ child_school_enrollment: "022-010-001-007-001-002-000",
153
+ intake: "022-010-002-000-000-000-000",
154
+ screening: "022-010-002-001-000-000-000",
155
+ housing_eligibility_determination: "022-010-002-001-001-000-000",
156
+ coordinated_entry: "022-010-002-001-001-001-000",
157
+ behavioral_issues_screen: "022-010-002-001-002-000-000",
158
+ initial_screen: "022-010-002-001-003-000-000",
159
+ needs_assessment: "022-010-002-001-004-000-000",
160
+ tvap: "022-010-002-001-005-000-000",
161
+ case_management_supportive_services: "022-010-003-000-000-000-000",
162
+ intra_agency_provider_coordination: "022-010-003-001-000-000-000",
163
+ inter_agency_consultation: "022-010-003-002-000-000-000",
164
+ service_plan: "022-010-003-003-000-000-000",
165
+ hope_scale_and_plan: "022-010-003-003-001-000-000",
166
+ post_exit_plan: "022-010-003-004-000-000-000",
167
+ advanced_directives: "022-010-003-005-000-000-000",
168
+ other_services: "022-011-000-000-000-000-000",
169
169
  } as const;
170
170
 
171
171
  export type ServiceCategoryKey = keyof typeof ServiceCategoryKeys;
@@ -65,7 +65,7 @@ export const cvcRegistrySchemaDefinition = {
65
65
  type: Date,
66
66
  },
67
67
 
68
- // Pinned domain versions: { service_categories: "1.0.0", ... }
68
+ // Pinned domain versions: { service_categories: "1.2.0", ... }
69
69
  // Stored as a Map<string, string> so individual domains can be added or
70
70
  // bumped without re-validating the whole document shape.
71
71
  cvcVersions: {
@@ -100,7 +100,7 @@ function makeRegistry(overrides: Partial<ICvcRegistry> = {}): ICvcRegistry {
100
100
  application: null,
101
101
  agencyId: null,
102
102
  status: "draft",
103
- cvcVersions: { service_categories: "1.0.0" },
103
+ cvcVersions: { service_categories: "1.2.0" },
104
104
  excludedEntries: [],
105
105
  includedEntries: [],
106
106
  basedOn: null,
@@ -195,9 +195,9 @@ describe("resolveRegistryWithInheritance", () => {
195
195
  registry,
196
196
  async () => null,
197
197
  async (domain, version) =>
198
- domain === "service_categories" && version === "1.0.0" ? entries : [],
198
+ domain === "service_categories" && version === "1.2.0" ? entries : [],
199
199
  );
200
- expect(result.mergedVersions).toEqual({ service_categories: "1.0.0" });
200
+ expect(result.mergedVersions).toEqual({ service_categories: "1.2.0" });
201
201
  expect(result.entries).toHaveLength(entries.length);
202
202
  });
203
203
 
@@ -223,7 +223,7 @@ describe("resolveRegistryWithInheritance", () => {
223
223
  // (In practice, the in-spec resolver only sees one level deep, so
224
224
  // B's effective state is what we set here.)
225
225
  cvcVersions: {
226
- service_categories: "1.0.0",
226
+ service_categories: "1.2.0",
227
227
  service_states: "1.0.0",
228
228
  service_mechanisms: "1.0.0",
229
229
  },
@@ -234,7 +234,7 @@ describe("resolveRegistryWithInheritance", () => {
234
234
  basedOn: registryB._id,
235
235
  // C overrides service_categories again. Inherits B's other pins.
236
236
  cvcVersions: {
237
- service_categories: "1.1.0",
237
+ service_categories: "1.3.0",
238
238
  },
239
239
  });
240
240
 
@@ -245,8 +245,8 @@ describe("resolveRegistryWithInheritance", () => {
245
245
  ]);
246
246
  const loadedEntries = new Map<string, ICvcEntry[]>([
247
247
  [
248
- "service_categories@1.1.0",
249
- [makeEntry({ code: "01-01-00-00-00-00-00", version: "1.1.0" })],
248
+ "service_categories@1.3.0",
249
+ [makeEntry({ code: "01-01-00-00-00-00-00", version: "1.3.0" })],
250
250
  ],
251
251
  [
252
252
  "service_states@1.0.0",
@@ -274,9 +274,9 @@ describe("resolveRegistryWithInheritance", () => {
274
274
  async (domain, version) => loadedEntries.get(`${domain}@${version}`) ?? [],
275
275
  );
276
276
 
277
- // C's service_categories pin (1.1.0) wins; B's other pins are inherited.
277
+ // C's service_categories pin (1.3.0) wins; B's other pins are inherited.
278
278
  expect(result.mergedVersions).toEqual({
279
- service_categories: "1.1.0",
279
+ service_categories: "1.3.0",
280
280
  service_states: "1.0.0",
281
281
  service_mechanisms: "1.0.0",
282
282
  });
@@ -302,7 +302,7 @@ describe("resolveRegistryWithInheritance", () => {
302
302
 
303
303
  it("normalises a Mongoose Map<string,string> for cvcVersions", async () => {
304
304
  const registry = makeRegistry({
305
- cvcVersions: new Map([["service_categories", "1.0.0"]]),
305
+ cvcVersions: new Map([["service_categories", "1.2.0"]]),
306
306
  });
307
307
  const entries = buildSampleTree();
308
308
  const result = await resolveRegistryWithInheritance(
@@ -310,7 +310,7 @@ describe("resolveRegistryWithInheritance", () => {
310
310
  async () => null,
311
311
  async () => entries,
312
312
  );
313
- expect(result.mergedVersions).toEqual({ service_categories: "1.0.0" });
313
+ expect(result.mergedVersions).toEqual({ service_categories: "1.2.0" });
314
314
  expect(result.entries).toHaveLength(entries.length);
315
315
  });
316
316
  });
@@ -233,18 +233,18 @@ type SectionQuestionRef = InferRawDocType<typeof sectionQuestionRefSchema>;
233
233
  declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
234
234
  _id: false;
235
235
  }, {
236
- type: "tip" | "warning" | "prompt";
237
236
  text: string;
238
- }, mongoose.Document<unknown, {}, {
239
237
  type: "tip" | "warning" | "prompt";
238
+ }, mongoose.Document<unknown, {}, {
240
239
  text: string;
240
+ type: "tip" | "warning" | "prompt";
241
241
  }, {
242
242
  id: string;
243
243
  }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
244
244
  _id: false;
245
245
  }> & Omit<{
246
- type: "tip" | "warning" | "prompt";
247
246
  text: string;
247
+ type: "tip" | "warning" | "prompt";
248
248
  } & {
249
249
  _id: mongoose.Types.ObjectId;
250
250
  } & {
@@ -252,8 +252,8 @@ declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any
252
252
  }, "id"> & {
253
253
  id: string;
254
254
  }, unknown, {
255
- type: "tip" | "warning" | "prompt";
256
255
  text: string;
256
+ type: "tip" | "warning" | "prompt";
257
257
  } & {
258
258
  _id: mongoose.Types.ObjectId;
259
259
  } & {
@@ -294,18 +294,18 @@ declare const sectionSchemaDefinition: {
294
294
  type: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
295
295
  _id: false;
296
296
  }, {
297
- type: "tip" | "warning" | "prompt";
298
297
  text: string;
299
- }, mongoose.Document<unknown, {}, {
300
298
  type: "tip" | "warning" | "prompt";
299
+ }, mongoose.Document<unknown, {}, {
301
300
  text: string;
301
+ type: "tip" | "warning" | "prompt";
302
302
  }, {
303
303
  id: string;
304
304
  }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
305
305
  _id: false;
306
306
  }> & Omit<{
307
- type: "tip" | "warning" | "prompt";
308
307
  text: string;
308
+ type: "tip" | "warning" | "prompt";
309
309
  } & {
310
310
  _id: mongoose.Types.ObjectId;
311
311
  } & {
@@ -313,8 +313,8 @@ declare const sectionSchemaDefinition: {
313
313
  }, "id"> & {
314
314
  id: string;
315
315
  }, unknown, {
316
- type: "tip" | "warning" | "prompt";
317
316
  text: string;
317
+ type: "tip" | "warning" | "prompt";
318
318
  } & {
319
319
  _id: mongoose.Types.ObjectId;
320
320
  } & {
@@ -233,18 +233,18 @@ type SectionQuestionRef = InferRawDocType<typeof sectionQuestionRefSchema>;
233
233
  declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
234
234
  _id: false;
235
235
  }, {
236
- type: "tip" | "warning" | "prompt";
237
236
  text: string;
238
- }, mongoose.Document<unknown, {}, {
239
237
  type: "tip" | "warning" | "prompt";
238
+ }, mongoose.Document<unknown, {}, {
240
239
  text: string;
240
+ type: "tip" | "warning" | "prompt";
241
241
  }, {
242
242
  id: string;
243
243
  }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
244
244
  _id: false;
245
245
  }> & Omit<{
246
- type: "tip" | "warning" | "prompt";
247
246
  text: string;
247
+ type: "tip" | "warning" | "prompt";
248
248
  } & {
249
249
  _id: mongoose.Types.ObjectId;
250
250
  } & {
@@ -252,8 +252,8 @@ declare const guidanceSchema: Schema<any, mongoose.Model<any, any, any, any, any
252
252
  }, "id"> & {
253
253
  id: string;
254
254
  }, unknown, {
255
- type: "tip" | "warning" | "prompt";
256
255
  text: string;
256
+ type: "tip" | "warning" | "prompt";
257
257
  } & {
258
258
  _id: mongoose.Types.ObjectId;
259
259
  } & {
@@ -294,18 +294,18 @@ declare const sectionSchemaDefinition: {
294
294
  type: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
295
295
  _id: false;
296
296
  }, {
297
- type: "tip" | "warning" | "prompt";
298
297
  text: string;
299
- }, mongoose.Document<unknown, {}, {
300
298
  type: "tip" | "warning" | "prompt";
299
+ }, mongoose.Document<unknown, {}, {
301
300
  text: string;
301
+ type: "tip" | "warning" | "prompt";
302
302
  }, {
303
303
  id: string;
304
304
  }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
305
305
  _id: false;
306
306
  }> & Omit<{
307
- type: "tip" | "warning" | "prompt";
308
307
  text: string;
308
+ type: "tip" | "warning" | "prompt";
309
309
  } & {
310
310
  _id: mongoose.Types.ObjectId;
311
311
  } & {
@@ -313,8 +313,8 @@ declare const sectionSchemaDefinition: {
313
313
  }, "id"> & {
314
314
  id: string;
315
315
  }, unknown, {
316
- type: "tip" | "warning" | "prompt";
317
316
  text: string;
317
+ type: "tip" | "warning" | "prompt";
318
318
  } & {
319
319
  _id: mongoose.Types.ObjectId;
320
320
  } & {