@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.
- package/dist/cvcs/index.cjs +966 -966
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +946 -946
- package/dist/cvcs/index.d.ts +946 -946
- package/dist/cvcs/index.js +958 -958
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +142 -142
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +143 -143
- package/dist/enums/index.d.ts +143 -143
- package/dist/enums/index.js +142 -142
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-Zu_mOJRn.d.cts → index-CoVr1jIV.d.cts} +1 -1
- package/dist/{index-CDoqrfc1.d.ts → index-I-DiX9eQ.d.ts} +1 -1
- package/dist/index.cjs +1109 -1109
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1101 -1101
- package/dist/index.js.map +1 -1
- package/dist/models/index.cjs +1 -1
- package/dist/models/index.cjs.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/schemas/index.cjs +1 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/services/index.cjs +1 -1
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.js +1 -1
- package/dist/services/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +1 -1
- package/src/__tests__/cvc-sot-snapshot.test.ts +1 -1
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/cvcs/index.ts +1 -1
- package/src/cvcs/{serviceCategories.v1.0.0.json → serviceCategories.v1.2.0.json} +955 -955
- package/src/generated/cvc-enums.ts +143 -143
- package/src/schemas/cvcRegistry.ts +1 -1
- package/src/services/__tests__/cvcRegistryService.test.ts +11 -11
- package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-BCj1OWqL.d.cts} +8 -8
- 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.
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
198
|
+
domain === "service_categories" && version === "1.2.0" ? entries : [],
|
|
199
199
|
);
|
|
200
|
-
expect(result.mergedVersions).toEqual({ service_categories: "1.
|
|
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.
|
|
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.
|
|
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.
|
|
249
|
-
[makeEntry({ code: "01-01-00-00-00-00-00", version: "1.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
} & {
|