@htilabs/platform-common-models 0.9.0 → 0.12.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 (149) hide show
  1. package/dist/config/index.cjs +85 -0
  2. package/dist/config/index.cjs.map +1 -1
  3. package/dist/config/index.d.cts +94 -4
  4. package/dist/config/index.d.ts +94 -4
  5. package/dist/config/index.js +81 -1
  6. package/dist/config/index.js.map +1 -1
  7. package/dist/constants/index.cjs +456 -181
  8. package/dist/constants/index.cjs.map +1 -1
  9. package/dist/constants/index.d.cts +1 -1
  10. package/dist/constants/index.d.ts +1 -1
  11. package/dist/constants/index.js +453 -169
  12. package/dist/constants/index.js.map +1 -1
  13. package/dist/cvcs/index.cjs +15331 -801
  14. package/dist/cvcs/index.cjs.map +1 -1
  15. package/dist/cvcs/index.d.cts +18167 -2208
  16. package/dist/cvcs/index.d.ts +18167 -2208
  17. package/dist/cvcs/index.js +15282 -801
  18. package/dist/cvcs/index.js.map +1 -1
  19. package/dist/{index-Zu_mOJRn.d.cts → index-CoVr1jIV.d.cts} +1 -1
  20. package/dist/{index-CDoqrfc1.d.ts → index-I-DiX9eQ.d.ts} +1 -1
  21. package/dist/index.cjs +17070 -1056
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +1638 -12
  24. package/dist/index.d.ts +1638 -12
  25. package/dist/index.js +16969 -1043
  26. package/dist/index.js.map +1 -1
  27. package/dist/models/index.d.cts +2 -2
  28. package/dist/models/index.d.ts +2 -2
  29. package/dist/mongo/index.cjs +384 -0
  30. package/dist/mongo/index.cjs.map +1 -0
  31. package/dist/mongo/index.d.cts +221 -0
  32. package/dist/mongo/index.d.ts +221 -0
  33. package/dist/mongo/index.js +352 -0
  34. package/dist/mongo/index.js.map +1 -0
  35. package/dist/{platform-auth-XVB9aHqR.d.cts → platform-auth-v53r3BhN.d.cts} +19 -75
  36. package/dist/{platform-auth-XVB9aHqR.d.ts → platform-auth-v53r3BhN.d.ts} +19 -75
  37. package/dist/schemas/index.cjs +25 -156
  38. package/dist/schemas/index.cjs.map +1 -1
  39. package/dist/schemas/index.d.cts +25 -25
  40. package/dist/schemas/index.d.ts +25 -25
  41. package/dist/schemas/index.js +25 -156
  42. package/dist/schemas/index.js.map +1 -1
  43. package/dist/services/index.cjs +0 -3
  44. package/dist/services/index.cjs.map +1 -1
  45. package/dist/services/index.js +0 -3
  46. package/dist/services/index.js.map +1 -1
  47. package/dist/types/index.d.cts +2 -2
  48. package/dist/types/index.d.ts +2 -2
  49. package/package.json +9 -1
  50. package/src/__sot__/README.md +56 -0
  51. package/src/__sot__/coreIndicators.pin.json +215 -0
  52. package/src/__sot__/cvcIndex.pin.json +268 -0
  53. package/src/__sot__/scoringEmits.pin.json +176 -0
  54. package/src/__tests__/__snapshots__/cvc-sot.snap +227 -35
  55. package/src/__tests__/cvc-136-scoring-invariant.test.ts +323 -0
  56. package/src/__tests__/cvc-drift-gate.test.ts +603 -0
  57. package/src/__tests__/cvc-sot-snapshot.test.ts +122 -11
  58. package/src/__tests__/cvc-structural.test.ts +56 -1
  59. package/src/__tests__/mongo-verifier.test.ts +502 -0
  60. package/src/__tests__/runtime-contract-validator.test.ts +325 -1
  61. package/src/config/index.ts +197 -6
  62. package/src/constants/ic.ts +512 -206
  63. package/src/constants/service-catalog.ts +4 -2
  64. package/src/cvcs/activityType.v1.0.0.json +143 -0
  65. package/src/cvcs/adminRoles.v1.0.0.json +153 -0
  66. package/src/cvcs/administeringJurisdiction.v1.0.0.json +40 -40
  67. package/src/cvcs/ageBinReporting.v1.0.0.json +40 -40
  68. package/src/cvcs/assertionDomain.v1.1.0.json +629 -0
  69. package/src/cvcs/{checkInPhase.v1.0.0.json → checkInPhase.v1.1.0.json} +20 -2
  70. package/src/cvcs/childChangeType.v1.0.0.json +152 -0
  71. package/src/cvcs/citizenship.v1.0.0.json +3062 -0
  72. package/src/cvcs/contactInfoTypes.v1.0.0.json +40 -40
  73. package/src/cvcs/contactLinkType.v1.0.0.json +89 -0
  74. package/src/cvcs/coreDhState.v1.0.0.json +113 -0
  75. package/src/cvcs/coreFunctions.v1.0.0.json +746 -0
  76. package/src/cvcs/coreIndicators.v1.0.0.json +2840 -0
  77. package/src/cvcs/coreReferralOutcome.v1.0.0.json +71 -0
  78. package/src/cvcs/employmentStatus.v1.0.0.json +60 -60
  79. package/src/cvcs/exploitationType.v1.0.0.json +106 -0
  80. package/src/cvcs/facilitatorEntityType.v1.0.0.json +40 -40
  81. package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +55 -46
  82. package/src/cvcs/hivStatus.v1.0.0.json +71 -0
  83. package/src/cvcs/hmisCurrentLivingSituation.v1.0.0.json +409 -0
  84. package/src/cvcs/hmisRelationshipToHoh.v1.0.0.json +104 -0
  85. package/src/cvcs/homelessStatus.v1.0.0.json +27 -27
  86. package/src/cvcs/housingSubsidyTypes.v1.0.0.json +161 -0
  87. package/src/cvcs/htType.v1.0.0.json +87 -0
  88. package/src/cvcs/identificationStatus.v1.0.0.json +18 -0
  89. package/src/cvcs/immigrationLegalStatusChangeType.v1.0.0.json +143 -0
  90. package/src/cvcs/incarcerationEpisodeType.v1.0.0.json +106 -0
  91. package/src/cvcs/incidentInvolvementRoles.v1.0.0.json +40 -40
  92. package/src/cvcs/incidentParticipationRoles.v1.0.0.json +40 -40
  93. package/src/cvcs/incomeBenefitsSources.v1.0.0.json +31 -2
  94. package/src/cvcs/index.ts +106 -1
  95. package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +28 -18
  96. package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +32 -32
  97. package/src/cvcs/livingSituation.v1.0.0.json +213 -0
  98. package/src/cvcs/mentalHealthStatus.v1.0.0.json +71 -0
  99. package/src/cvcs/militaryBranch.v1.0.0.json +20 -20
  100. package/src/cvcs/militaryStatus.v1.0.0.json +20 -20
  101. package/src/cvcs/nameType.v1.0.0.json +40 -40
  102. package/src/cvcs/needsAssessmentChangeType.v1.0.0.json +134 -0
  103. package/src/cvcs/offenderStatus.v1.0.0.json +40 -40
  104. package/src/cvcs/offenderStatusFamily.v1.0.0.json +36 -36
  105. package/src/cvcs/poPetitionBasis.v1.0.0.json +96 -0
  106. package/src/cvcs/poStatus.v1.0.0.json +144 -0
  107. package/src/cvcs/poViolationStatus.v1.0.0.json +76 -0
  108. package/src/cvcs/programEnrollmentChangeType.v1.0.0.json +134 -0
  109. package/src/cvcs/provenanceSourceId.v1.0.0.json +134 -0
  110. package/src/cvcs/radiusBucket.v1.0.0.json +110 -0
  111. package/src/cvcs/recencyBand.v1.0.0.json +104 -39
  112. package/src/cvcs/referralEntityCategory.v1.0.0.json +40 -40
  113. package/src/cvcs/relationshipConcern.v1.0.0.json +114 -0
  114. package/src/cvcs/riskCategory.v1.0.0.json +134 -0
  115. package/src/cvcs/riskSeverityBand.v1.0.0.json +139 -0
  116. package/src/cvcs/roiMethod.v1.0.0.json +107 -0
  117. package/src/cvcs/roiScope.v1.0.0.json +296 -0
  118. package/src/cvcs/roiStatus.v1.0.0.json +106 -0
  119. package/src/cvcs/romanticRelationshipChangeType.v1.0.0.json +162 -0
  120. package/src/cvcs/serviceAudience.v1.0.0.json +96 -0
  121. package/src/cvcs/serviceCategories.v1.0.0.json +44 -44
  122. package/src/cvcs/serviceDeliveryChannel.v1.0.0.json +147 -0
  123. package/src/cvcs/serviceMechanisms.v1.0.0.json +36 -36
  124. package/src/cvcs/serviceStates.v1.0.0.json +55 -33
  125. package/src/cvcs/sessionNoteVisibility.v1.0.0.json +80 -0
  126. package/src/cvcs/sessionTemplate.v1.0.0.json +261 -0
  127. package/src/cvcs/sexProviderSubrole.v1.0.0.json +35 -28
  128. package/src/cvcs/smtType.v1.0.0.json +40 -40
  129. package/src/cvcs/sourceCategory.v1.1.0.json +8 -1
  130. package/src/cvcs/sourceInstrument.v1.0.0.json +458 -0
  131. package/src/cvcs/sourceSubtype.v1.1.0.json +36 -0
  132. package/src/cvcs/sourceSystem.v1.0.0.json +203 -0
  133. package/src/cvcs/specialNeedsDisabilities.v1.0.0.json +143 -0
  134. package/src/cvcs/suggestionSource.v1.0.0.json +71 -0
  135. package/src/cvcs/traffickingRelevantRole.v1.0.0.json +104 -0
  136. package/src/cvcs/userRoles.v1.0.0.json +203 -0
  137. package/src/cvcs/verificationMethod.v1.0.0.json +18 -0
  138. package/src/cvcs/victimAbuseTypes.v1.0.0.json +276 -0
  139. package/src/cvcs/victimStatusFamily.v1.0.0.json +40 -40
  140. package/src/cvcs/whyNots.v1.0.0.json +385 -0
  141. package/src/generated/cvc-enums.ts +1729 -7
  142. package/src/mongo/catalog.ts +65 -0
  143. package/src/mongo/contract.ts +157 -0
  144. package/src/mongo/index.ts +343 -0
  145. package/src/mongo/similarity.ts +133 -0
  146. package/src/mongo/uri.ts +53 -0
  147. package/src/services/cvcRegistryService.ts +1 -1
  148. package/dist/{cvcEntry-0BIB9sen.d.cts → cvcEntry-BCj1OWqL.d.cts} +8 -8
  149. package/dist/{cvcEntry-0BIB9sen.d.ts → cvcEntry-BCj1OWqL.d.ts} +8 -8
@@ -1,6 +1,6 @@
1
1
  import * as mongoose from 'mongoose';
2
2
  import { InferRawDocType, Schema } from 'mongoose';
3
- export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-0BIB9sen.cjs';
3
+ export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-BCj1OWqL.cjs';
4
4
 
5
5
  declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
6
6
  _id: false;
@@ -132,12 +132,12 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
132
132
  number?: string | null | undefined;
133
133
  type?: string | null | undefined;
134
134
  safeToContact?: boolean | null | undefined;
135
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
135
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
136
136
  }, mongoose.Document<unknown, {}, {
137
137
  number?: string | null | undefined;
138
138
  type?: string | null | undefined;
139
139
  safeToContact?: boolean | null | undefined;
140
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
140
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
141
141
  }, {
142
142
  id: string;
143
143
  }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
@@ -146,7 +146,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
146
146
  number?: string | null | undefined;
147
147
  type?: string | null | undefined;
148
148
  safeToContact?: boolean | null | undefined;
149
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
149
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
150
150
  } & {
151
151
  _id: mongoose.Types.ObjectId;
152
152
  } & {
@@ -157,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
157
157
  number?: string | null | undefined;
158
158
  type?: string | null | undefined;
159
159
  safeToContact?: boolean | null | undefined;
160
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
160
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
161
161
  } & {
162
162
  _id: mongoose.Types.ObjectId;
163
163
  } & {
@@ -219,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
219
219
  raceOtherText?: string | null | undefined;
220
220
  genderOtherText?: string | null | undefined;
221
221
  accommodationOtherText?: string | null | undefined;
222
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
223
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
224
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
225
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
226
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
222
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
223
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
224
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
225
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
226
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
227
227
  }, mongoose.Document<unknown, {}, {
228
228
  race: number[];
229
229
  ethnicity: number[];
@@ -243,11 +243,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
243
243
  raceOtherText?: string | null | undefined;
244
244
  genderOtherText?: string | null | undefined;
245
245
  accommodationOtherText?: string | null | undefined;
246
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
247
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
248
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
249
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
250
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
246
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
247
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
248
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
249
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
250
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
251
251
  }, {
252
252
  id: string;
253
253
  }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
@@ -271,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
271
271
  raceOtherText?: string | null | undefined;
272
272
  genderOtherText?: string | null | undefined;
273
273
  accommodationOtherText?: string | null | undefined;
274
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
275
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
276
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
277
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
278
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
274
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
275
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
276
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
277
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
278
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
279
279
  } & {
280
280
  _id: mongoose.Types.ObjectId;
281
281
  } & {
@@ -301,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
301
301
  raceOtherText?: string | null | undefined;
302
302
  genderOtherText?: string | null | undefined;
303
303
  accommodationOtherText?: string | null | undefined;
304
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
305
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
306
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
307
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
308
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
304
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
305
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
306
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
307
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
308
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
309
309
  } & {
310
310
  _id: mongoose.Types.ObjectId;
311
311
  } & {
@@ -1,6 +1,6 @@
1
1
  import * as mongoose from 'mongoose';
2
2
  import { InferRawDocType, Schema } from 'mongoose';
3
- export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-0BIB9sen.js';
3
+ export { C as Choice, a as CvcEntry, b as CvcRegistry, F as Form, c as FormSectionRef, G as Guidance, L as Layout, P as PlatformFunction, d as PlatformRole, Q as Question, S as ScoringCondition, e as ScoringRecommendation, f as ScoringRule, g as ScoringThreshold, h as Section, i as SectionQuestionRef, V as VisibilityRule, j as buildCvcEntrySchema, k as buildCvcRegistrySchema, l as buildFormSchema, m as buildPlatformFunctionSchema, n as buildPlatformRoleSchema, o as buildQuestionSchema, p as buildScoringRuleSchema, q as buildSectionSchema, r as choiceSchema, s as cvcEntrySchemaDefinition, t as cvcEntrySchemaOptions, u as cvcRegistrySchemaDefinition, v as cvcRegistrySchemaOptions, w as formSchemaDefinition, x as formSchemaOptions, y as formSectionRefSchema, z as guidanceSchema, A as layoutSchema, B as platformFunctionSchemaDefinition, D as platformFunctionSchemaOptions, E as platformRoleSchemaDefinition, H as platformRoleSchemaOptions, I as questionSchemaDefinition, J as questionSchemaOptions, K as scoringConditionSchema, M as scoringRecommendationSchema, N as scoringRuleSchemaDefinition, O as scoringRuleSchemaOptions, R as scoringThresholdSchema, T as sectionQuestionRefSchema, U as sectionSchemaDefinition, W as sectionSchemaOptions, X as visibilityRuleSchema } from '../cvcEntry-BCj1OWqL.js';
4
4
 
5
5
  declare const addressSchema: Schema<any, mongoose.Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, {
6
6
  _id: false;
@@ -132,12 +132,12 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
132
132
  number?: string | null | undefined;
133
133
  type?: string | null | undefined;
134
134
  safeToContact?: boolean | null | undefined;
135
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
135
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
136
136
  }, mongoose.Document<unknown, {}, {
137
137
  number?: string | null | undefined;
138
138
  type?: string | null | undefined;
139
139
  safeToContact?: boolean | null | undefined;
140
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
140
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
141
141
  }, {
142
142
  id: string;
143
143
  }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
@@ -146,7 +146,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
146
146
  number?: string | null | undefined;
147
147
  type?: string | null | undefined;
148
148
  safeToContact?: boolean | null | undefined;
149
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
149
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
150
150
  } & {
151
151
  _id: mongoose.Types.ObjectId;
152
152
  } & {
@@ -157,7 +157,7 @@ declare const phoneSchema: Schema<any, mongoose.Model<any, any, any, any, any, a
157
157
  number?: string | null | undefined;
158
158
  type?: string | null | undefined;
159
159
  safeToContact?: boolean | null | undefined;
160
- dataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
160
+ dataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
161
161
  } & {
162
162
  _id: mongoose.Types.ObjectId;
163
163
  } & {
@@ -219,11 +219,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
219
219
  raceOtherText?: string | null | undefined;
220
220
  genderOtherText?: string | null | undefined;
221
221
  accommodationOtherText?: string | null | undefined;
222
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
223
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
224
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
225
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
226
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
222
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
223
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
224
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
225
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
226
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
227
227
  }, mongoose.Document<unknown, {}, {
228
228
  race: number[];
229
229
  ethnicity: number[];
@@ -243,11 +243,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
243
243
  raceOtherText?: string | null | undefined;
244
244
  genderOtherText?: string | null | undefined;
245
245
  accommodationOtherText?: string | null | undefined;
246
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
247
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
248
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
249
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
250
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
246
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
247
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
248
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
249
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
250
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
251
251
  }, {
252
252
  id: string;
253
253
  }, Omit<mongoose.DefaultSchemaOptions, "_id"> & {
@@ -271,11 +271,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
271
271
  raceOtherText?: string | null | undefined;
272
272
  genderOtherText?: string | null | undefined;
273
273
  accommodationOtherText?: string | null | undefined;
274
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
275
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
276
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
277
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
278
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
274
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
275
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
276
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
277
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
278
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
279
279
  } & {
280
280
  _id: mongoose.Types.ObjectId;
281
281
  } & {
@@ -301,11 +301,11 @@ declare const demographicsSchema: Schema<any, mongoose.Model<any, any, any, any,
301
301
  raceOtherText?: string | null | undefined;
302
302
  genderOtherText?: string | null | undefined;
303
303
  accommodationOtherText?: string | null | undefined;
304
- ageDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
305
- sexDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
306
- genderDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
307
- raceDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
308
- ethnicityDataQuality?: "data_not_collected" | "client_doesnt_know" | "client_prefers_not_to_answer" | null | undefined;
304
+ ageDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
305
+ sexDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
306
+ genderDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
307
+ raceDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
308
+ ethnicityDataQuality?: "client_doesnt_know" | "client_prefers_not_to_answer" | "data_not_collected" | null | undefined;
309
309
  } & {
310
310
  _id: mongoose.Types.ObjectId;
311
311
  } & {
@@ -318,8 +318,17 @@ var IC_56_SERVICE_DELIVERY_CHANNEL = {
318
318
  ON_SCENE: 2,
319
319
  PHONE: 3,
320
320
  EMAIL_TEXT_CHAT: 4,
321
- VIRTUAL: 5
322
- };
321
+ VIRTUAL: 5,
322
+ // PROVISIONAL — group delivery channels surfaced by the Thread canonical
323
+ // "How was the service delivered?" picker. Authored ahead of codebook /
324
+ // Notion ratification; flagged provisional pending SOT sign-off.
325
+ GROUP_IN_PERSON: 6,
326
+ GROUP_REMOTE: 7
327
+ };
328
+ var IC_56_PROVISIONAL_CHANNELS = /* @__PURE__ */ new Set([
329
+ IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
330
+ IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE
331
+ ]);
323
332
  var IC_56_LABELS = {
324
333
  [IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Data Not Collected",
325
334
  [IC_56_SERVICE_DELIVERY_CHANNEL.ANONYMOUS]: "Anonymous",
@@ -328,7 +337,9 @@ var IC_56_LABELS = {
328
337
  [IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "On-scene",
329
338
  [IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone",
330
339
  [IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email / Text / Chat",
331
- [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual"
340
+ [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual",
341
+ [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group (in-person)",
342
+ [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group (remote)"
332
343
  };
333
344
  var IC_56_DESCRIPTIONS = {
334
345
  [IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Contact method data was not collected",
@@ -338,7 +349,9 @@ var IC_56_DESCRIPTIONS = {
338
349
  [IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "Field response / crisis response / mobile advocacy",
339
350
  [IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone call",
340
351
  [IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email, text message, or chat",
341
- [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call"
352
+ [IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call",
353
+ [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group session delivered in person (support group, class, workshop)",
354
+ [IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group session delivered remotely (virtual support group, webinar)"
342
355
  };
343
356
  var IC_56_OPTIONS = [
344
357
  {
@@ -360,6 +373,14 @@ var IC_56_OPTIONS = [
360
373
  {
361
374
  value: IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL,
362
375
  label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]
376
+ },
377
+ {
378
+ value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
379
+ label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]
380
+ },
381
+ {
382
+ value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE,
383
+ label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]
363
384
  }
364
385
  ];
365
386
  var IC_57_SERVICE_AUDIENCE = {
@@ -2953,158 +2974,6 @@ var CVC_157_LABELS = {
2953
2974
  [CVC_157_RELATIONSHIP_STATUS.DNC]: "Declined to answer",
2954
2975
  [CVC_157_RELATIONSHIP_STATUS.ANON]: "Anonymous/Not collected"
2955
2976
  };
2956
- var CVC_158_CUSTODY_STATUS = {
2957
- FULL: "full",
2958
- SHARED: "shared",
2959
- NONE: "none",
2960
- PENDING: "pending",
2961
- UNKNOWN: "unknown"
2962
- };
2963
- var CVC_158_VALUES = [
2964
- CVC_158_CUSTODY_STATUS.FULL,
2965
- CVC_158_CUSTODY_STATUS.SHARED,
2966
- CVC_158_CUSTODY_STATUS.NONE,
2967
- CVC_158_CUSTODY_STATUS.PENDING,
2968
- CVC_158_CUSTODY_STATUS.UNKNOWN
2969
- ];
2970
- var CVC_158_LABELS = {
2971
- [CVC_158_CUSTODY_STATUS.FULL]: "Full custody",
2972
- [CVC_158_CUSTODY_STATUS.SHARED]: "Shared custody",
2973
- [CVC_158_CUSTODY_STATUS.NONE]: "No custody",
2974
- [CVC_158_CUSTODY_STATUS.PENDING]: "Custody pending",
2975
- [CVC_158_CUSTODY_STATUS.UNKNOWN]: "Unknown"
2976
- };
2977
- var CVC_159_CATEGORY = {
2978
- HOUSEHOLD_LIVING: "1.1_HOUSEHOLD_LIVING",
2979
- CHILD_FAMILY: "1.2_CHILD_FAMILY",
2980
- LEGAL_FORMAL: "1.3_LEGAL_FORMAL",
2981
- FINANCIAL_RESOURCE: "1.4_FINANCIAL_RESOURCE",
2982
- ACCESS_LOGISTICS: "1.5_ACCESS_LOGISTICS",
2983
- OTHER_FALLBACK: "1.6_OTHER_FALLBACK",
2984
- MISSINGNESS: "0_MISSINGNESS"
2985
- };
2986
- var CVC_159_CATEGORY_LABELS = {
2987
- [CVC_159_CATEGORY.HOUSEHOLD_LIVING]: "Household / Living Ties",
2988
- [CVC_159_CATEGORY.CHILD_FAMILY]: "Child / Family Ties",
2989
- [CVC_159_CATEGORY.LEGAL_FORMAL]: "Legal / Formal Ties",
2990
- [CVC_159_CATEGORY.FINANCIAL_RESOURCE]: "Financial / Resource Ties",
2991
- [CVC_159_CATEGORY.ACCESS_LOGISTICS]: "Access / Logistics Ties",
2992
- [CVC_159_CATEGORY.OTHER_FALLBACK]: "Other",
2993
- [CVC_159_CATEGORY.MISSINGNESS]: "Missingness"
2994
- };
2995
- var CVC_159_RELATIONSHIP_TIES = {
2996
- // Missingness (Level 0)
2997
- DNC: "DNC",
2998
- ANON: "ANON",
2999
- UNK: "UNK",
3000
- // Household / Living (1.1)
3001
- COHABITATING: "COHABITATING",
3002
- SHARED_CARE_ENVIRONMENT: "SHARED_CARE_ENVIRONMENT",
3003
- // Child / Family (1.2)
3004
- HAS_CHILDREN_TOGETHER: "HAS_CHILDREN_TOGETHER",
3005
- CO_PARENTING: "CO_PARENTING",
3006
- FAMILY_CARE_OBLIGATION: "FAMILY_CARE_OBLIGATION",
3007
- // Legal / Formal (1.3)
3008
- LEGALLY_MARRIED: "LEGALLY_MARRIED",
3009
- SHARED_LEGAL_CASE_OR_ORDER: "SHARED_LEGAL_CASE_OR_ORDER",
3010
- CUSTODY_OR_VISITATION_LINK: "CUSTODY_OR_VISITATION_LINK",
3011
- PROTECTIVE_ORDER_LINK: "PROTECTIVE_ORDER_LINK",
3012
- LEGAL_GUARDIANSHIP: "LEGAL_GUARDIANSHIP",
3013
- // Financial / Resource (1.4)
3014
- FINANCIAL_DEPENDENCE: "FINANCIAL_DEPENDENCE",
3015
- SHARED_EMPLOYMENT_OR_INCOME_LINK: "SHARED_EMPLOYMENT_OR_INCOME_LINK",
3016
- SHARED_PROPERTY_OR_LEASE: "SHARED_PROPERTY_OR_LEASE",
3017
- SHARED_FINANCES: "SHARED_FINANCES",
3018
- // Access / Logistics (1.5)
3019
- DOCUMENT_OR_ID_LINK: "DOCUMENT_OR_ID_LINK",
3020
- TRANSPORTATION_DEPENDENCE: "TRANSPORTATION_DEPENDENCE",
3021
- REGULAR_UNAVOIDABLE_CONTACT: "REGULAR_UNAVOIDABLE_CONTACT",
3022
- COMMUNICATION_ACCESS_LINK: "COMMUNICATION_ACCESS_LINK",
3023
- // Other Fallback (1.6)
3024
- OTHER: "OTHER"
3025
- };
3026
- var CVC_159_VALUES = Object.values(
3027
- CVC_159_RELATIONSHIP_TIES
3028
- );
3029
- var CVC_159_LABELS = {
3030
- // Missingness
3031
- [CVC_159_RELATIONSHIP_TIES.DNC]: "Data not collected",
3032
- [CVC_159_RELATIONSHIP_TIES.ANON]: "Anonymous / declined to answer",
3033
- [CVC_159_RELATIONSHIP_TIES.UNK]: "Unknown",
3034
- // Household / Living
3035
- [CVC_159_RELATIONSHIP_TIES.COHABITATING]: "Cohabitating",
3036
- [CVC_159_RELATIONSHIP_TIES.SHARED_CARE_ENVIRONMENT]: "Shared care / supervision environment",
3037
- // Child / Family
3038
- [CVC_159_RELATIONSHIP_TIES.HAS_CHILDREN_TOGETHER]: "Has children together",
3039
- [CVC_159_RELATIONSHIP_TIES.CO_PARENTING]: "Co-parenting",
3040
- [CVC_159_RELATIONSHIP_TIES.FAMILY_CARE_OBLIGATION]: "Family-based care obligation",
3041
- // Legal / Formal
3042
- [CVC_159_RELATIONSHIP_TIES.LEGALLY_MARRIED]: "Legally married",
3043
- [CVC_159_RELATIONSHIP_TIES.SHARED_LEGAL_CASE_OR_ORDER]: "Shared legal case or order",
3044
- [CVC_159_RELATIONSHIP_TIES.CUSTODY_OR_VISITATION_LINK]: "Custody / visitation link",
3045
- [CVC_159_RELATIONSHIP_TIES.PROTECTIVE_ORDER_LINK]: "Protective order link",
3046
- [CVC_159_RELATIONSHIP_TIES.LEGAL_GUARDIANSHIP]: "Legal guardianship",
3047
- // Financial / Resource
3048
- [CVC_159_RELATIONSHIP_TIES.FINANCIAL_DEPENDENCE]: "Financial dependence",
3049
- [CVC_159_RELATIONSHIP_TIES.SHARED_EMPLOYMENT_OR_INCOME_LINK]: "Shared economic activity link",
3050
- [CVC_159_RELATIONSHIP_TIES.SHARED_PROPERTY_OR_LEASE]: "Shared property / lease",
3051
- [CVC_159_RELATIONSHIP_TIES.SHARED_FINANCES]: "Shared finances",
3052
- // Access / Logistics
3053
- [CVC_159_RELATIONSHIP_TIES.DOCUMENT_OR_ID_LINK]: "Document / ID link",
3054
- [CVC_159_RELATIONSHIP_TIES.TRANSPORTATION_DEPENDENCE]: "Transportation dependence",
3055
- [CVC_159_RELATIONSHIP_TIES.REGULAR_UNAVOIDABLE_CONTACT]: "Regular unavoidable contact",
3056
- [CVC_159_RELATIONSHIP_TIES.COMMUNICATION_ACCESS_LINK]: "Communication access link",
3057
- // Other
3058
- [CVC_159_RELATIONSHIP_TIES.OTHER]: "Other"
3059
- };
3060
- var CVC_159_TYPE_TO_CATEGORY = {
3061
- // Missingness
3062
- [CVC_159_RELATIONSHIP_TIES.DNC]: CVC_159_CATEGORY.MISSINGNESS,
3063
- [CVC_159_RELATIONSHIP_TIES.ANON]: CVC_159_CATEGORY.MISSINGNESS,
3064
- [CVC_159_RELATIONSHIP_TIES.UNK]: CVC_159_CATEGORY.MISSINGNESS,
3065
- // Household / Living
3066
- [CVC_159_RELATIONSHIP_TIES.COHABITATING]: CVC_159_CATEGORY.HOUSEHOLD_LIVING,
3067
- [CVC_159_RELATIONSHIP_TIES.SHARED_CARE_ENVIRONMENT]: CVC_159_CATEGORY.HOUSEHOLD_LIVING,
3068
- // Child / Family
3069
- [CVC_159_RELATIONSHIP_TIES.HAS_CHILDREN_TOGETHER]: CVC_159_CATEGORY.CHILD_FAMILY,
3070
- [CVC_159_RELATIONSHIP_TIES.CO_PARENTING]: CVC_159_CATEGORY.CHILD_FAMILY,
3071
- [CVC_159_RELATIONSHIP_TIES.FAMILY_CARE_OBLIGATION]: CVC_159_CATEGORY.CHILD_FAMILY,
3072
- // Legal / Formal
3073
- [CVC_159_RELATIONSHIP_TIES.LEGALLY_MARRIED]: CVC_159_CATEGORY.LEGAL_FORMAL,
3074
- [CVC_159_RELATIONSHIP_TIES.SHARED_LEGAL_CASE_OR_ORDER]: CVC_159_CATEGORY.LEGAL_FORMAL,
3075
- [CVC_159_RELATIONSHIP_TIES.CUSTODY_OR_VISITATION_LINK]: CVC_159_CATEGORY.LEGAL_FORMAL,
3076
- [CVC_159_RELATIONSHIP_TIES.PROTECTIVE_ORDER_LINK]: CVC_159_CATEGORY.LEGAL_FORMAL,
3077
- [CVC_159_RELATIONSHIP_TIES.LEGAL_GUARDIANSHIP]: CVC_159_CATEGORY.LEGAL_FORMAL,
3078
- // Financial / Resource
3079
- [CVC_159_RELATIONSHIP_TIES.FINANCIAL_DEPENDENCE]: CVC_159_CATEGORY.FINANCIAL_RESOURCE,
3080
- [CVC_159_RELATIONSHIP_TIES.SHARED_EMPLOYMENT_OR_INCOME_LINK]: CVC_159_CATEGORY.FINANCIAL_RESOURCE,
3081
- [CVC_159_RELATIONSHIP_TIES.SHARED_PROPERTY_OR_LEASE]: CVC_159_CATEGORY.FINANCIAL_RESOURCE,
3082
- [CVC_159_RELATIONSHIP_TIES.SHARED_FINANCES]: CVC_159_CATEGORY.FINANCIAL_RESOURCE,
3083
- // Access / Logistics
3084
- [CVC_159_RELATIONSHIP_TIES.DOCUMENT_OR_ID_LINK]: CVC_159_CATEGORY.ACCESS_LOGISTICS,
3085
- [CVC_159_RELATIONSHIP_TIES.TRANSPORTATION_DEPENDENCE]: CVC_159_CATEGORY.ACCESS_LOGISTICS,
3086
- [CVC_159_RELATIONSHIP_TIES.REGULAR_UNAVOIDABLE_CONTACT]: CVC_159_CATEGORY.ACCESS_LOGISTICS,
3087
- [CVC_159_RELATIONSHIP_TIES.COMMUNICATION_ACCESS_LINK]: CVC_159_CATEGORY.ACCESS_LOGISTICS,
3088
- // Other
3089
- [CVC_159_RELATIONSHIP_TIES.OTHER]: CVC_159_CATEGORY.OTHER_FALLBACK
3090
- };
3091
- var CVC_159_OPTIONS = Object.entries(
3092
- CVC_159_TYPE_TO_CATEGORY
3093
- ).map(([value, category]) => ({
3094
- value,
3095
- label: CVC_159_LABELS[value],
3096
- category,
3097
- categoryLabel: CVC_159_CATEGORY_LABELS[category]
3098
- }));
3099
- var CVC_159_SELECTABLE_OPTIONS = CVC_159_OPTIONS.filter((opt) => opt.category !== CVC_159_CATEGORY.MISSINGNESS);
3100
- var CVC_159_CATEGORY_ORDER = [
3101
- CVC_159_CATEGORY.HOUSEHOLD_LIVING,
3102
- CVC_159_CATEGORY.CHILD_FAMILY,
3103
- CVC_159_CATEGORY.LEGAL_FORMAL,
3104
- CVC_159_CATEGORY.FINANCIAL_RESOURCE,
3105
- CVC_159_CATEGORY.ACCESS_LOGISTICS,
3106
- CVC_159_CATEGORY.OTHER_FALLBACK
3107
- ];
3108
2977
  var CVC_126_CATEGORY = {
3109
2978
  SELF: "self",
3110
2979
  FAMILY_KIN: "family_kin",