@htilabs/platform-common-models 0.8.5 → 0.8.7

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/index.js CHANGED
@@ -7876,7 +7876,11 @@ var SourceSubtypeKeys = {
7876
7876
  staff_observation: "141-028-000-000-000-000-000",
7877
7877
  system_import: "141-029-000-000-000-000-000",
7878
7878
  third_party_report: "141-030-000-000-000-000-000",
7879
- victim_disclosure: "141-031-000-000-000-000-000"
7879
+ victim_disclosure: "141-031-000-000-000-000-000",
7880
+ advocate_capture: "141-032-000-000-000-000-000",
7881
+ advocate_assessment: "141-033-000-000-000-000-000",
7882
+ child_welfare_episode_edit: "141-034-000-000-000-000-000",
7883
+ juvenile_justice_episode_edit: "141-035-000-000-000-000-000"
7880
7884
  };
7881
7885
  var SupportStrengthKeys = {
7882
7886
  missingness_root: "139-000-000-000-000-000-000",
@@ -7928,7 +7932,9 @@ var VerificationMethodKeys = {
7928
7932
  evidence_threshold_met: "143-002-000-000-000-000-000",
7929
7933
  multi_source_corroboration: "143-003-000-000-000-000-000",
7930
7934
  qa_audit_passed: "143-004-000-000-000-000-000",
7931
- supervisor_review: "143-005-000-000-000-000-000"
7935
+ supervisor_review: "143-005-000-000-000-000-000",
7936
+ rules: "143-006-000-000-000-000-000",
7937
+ still_reaches: "143-007-000-000-000-000-000"
7932
7938
  };
7933
7939
  var VerificationStatusKeys = {
7934
7940
  missingness_root: "962-000-000-000-000-000-000",
@@ -9135,7 +9141,8 @@ var HtTypeKeys = {
9135
9141
  data_not_collected: "072-000-000-000-000-000-003",
9136
9142
  sex: "072-001-000-000-000-000-000",
9137
9143
  labor: "072-002-000-000-000-000-000",
9138
- sex_and_labor: "072-003-000-000-000-000-000"
9144
+ sex_and_labor: "072-003-000-000-000-000-000",
9145
+ none: "072-004-000-000-000-000-000"
9139
9146
  };
9140
9147
  var RelationshipConcernKeys = {
9141
9148
  missingness_root: "231-000-000-000-000-000-000",
@@ -9180,6 +9187,157 @@ var HousingSubsidyTypesKeys = {
9180
9187
  family_unification_program: "233-011-000-000-000-000-000",
9181
9188
  foster_youth_to_independence: "233-012-000-000-000-000-000"
9182
9189
  };
9190
+ var AssertionDomainKeys = {
9191
+ missingness_root: "964-000-000-000-000-000-000",
9192
+ unknown: "964-000-000-000-000-000-001",
9193
+ anonymous: "964-000-000-000-000-000-002",
9194
+ data_not_collected: "964-000-000-000-000-000-003",
9195
+ indicator: "964-001-000-000-000-000-000",
9196
+ risk_signal: "964-002-000-000-000-000-000",
9197
+ victim_status: "964-003-000-000-000-000-000",
9198
+ offender_status: "964-004-000-000-000-000-000",
9199
+ domain_determination: "964-005-000-000-000-000-000",
9200
+ victimization_or_abuse_type: "964-006-000-000-000-000-000",
9201
+ assessment_scale: "964-007-000-000-000-000-000",
9202
+ recommended_followup: "964-008-000-000-000-000-000",
9203
+ relationship: "964-009-000-000-000-000-000",
9204
+ household_relationships: "964-010-000-000-000-000-000",
9205
+ relationship_tie: "964-011-000-000-000-000-000",
9206
+ relationship_dynamics: "964-012-000-000-000-000-000",
9207
+ relationship_status_current: "964-013-000-000-000-000-000",
9208
+ marital_status_legal: "964-014-000-000-000-000-000",
9209
+ core_profile: "964-015-000-000-000-000-000",
9210
+ person_tile: "964-016-000-000-000-000-000",
9211
+ person_relationship: "964-017-000-000-000-000-000",
9212
+ relevant_people: "964-018-000-000-000-000-000",
9213
+ name: "964-019-000-000-000-000-000",
9214
+ contact_info: "964-020-000-000-000-000-000",
9215
+ address: "964-021-000-000-000-000-000",
9216
+ vehicle: "964-022-000-000-000-000-000",
9217
+ income_history: "964-023-000-000-000-000-000",
9218
+ physical_description: "964-024-000-000-000-000-000",
9219
+ living_situation: "964-025-000-000-000-000-000",
9220
+ pet: "964-026-000-000-000-000-000",
9221
+ protection_order: "964-027-000-000-000-000-000",
9222
+ log_entry: "964-028-000-000-000-000-000",
9223
+ session_note: "964-029-000-000-000-000-000",
9224
+ referral_source: "964-030-000-000-000-000-000",
9225
+ org_directory: "964-031-000-000-000-000-000",
9226
+ person_directory: "964-032-000-000-000-000-000",
9227
+ service_delivery: "964-033-000-000-000-000-000",
9228
+ needs_assessment: "964-034-000-000-000-000-000",
9229
+ priorities_and_safety: "964-035-000-000-000-000-000",
9230
+ share: "964-036-000-000-000-000-000",
9231
+ roi: "964-037-000-000-000-000-000",
9232
+ external_recipient: "964-038-000-000-000-000-000",
9233
+ access_accommodations: "964-039-000-000-000-000-000",
9234
+ danger_assessment: "964-040-000-000-000-000-000",
9235
+ hope_scale: "964-041-000-000-000-000-000",
9236
+ injury_and_strangulation: "964-042-000-000-000-000-000",
9237
+ lethality_assessment_program: "964-043-000-000-000-000-000",
9238
+ occupational_background: "964-044-000-000-000-000-000",
9239
+ household_tenure: "964-045-000-000-000-000-000",
9240
+ program_enrollment: "964-046-000-000-000-000-000",
9241
+ program_enrollment_exit_wizard: "964-047-000-000-000-000-000",
9242
+ goal: "964-048-000-000-000-000-000",
9243
+ action_step: "964-049-000-000-000-000-000",
9244
+ milestone: "964-050-000-000-000-000-000",
9245
+ check_in: "964-051-000-000-000-000-000",
9246
+ goal_signature: "964-052-000-000-000-000-000",
9247
+ subject_functional_role: "964-053-000-000-000-000-000",
9248
+ worker_subrole: "964-054-000-000-000-000-000",
9249
+ offender_status_family: "964-055-000-000-000-000-000",
9250
+ assessment_rating: "964-056-000-000-000-000-000",
9251
+ immigration_legal_status: "964-057-000-000-000-000-000",
9252
+ persons_network: "964-058-000-000-000-000-000",
9253
+ lifecycle_services: "964-059-000-000-000-000-000",
9254
+ juvenile_justice_involvement: "964-060-000-000-000-000-000",
9255
+ child_welfare_involvement: "964-061-000-000-000-000-000",
9256
+ facilitator_role: "964-062-000-000-000-000-000",
9257
+ facilitator_subrole: "964-063-000-000-000-000-000",
9258
+ facilitator_entity_type: "964-064-000-000-000-000-000"
9259
+ };
9260
+ var ActivityTypeKeys = {
9261
+ missingness_root: "965-000-000-000-000-000-000",
9262
+ unknown: "965-000-000-000-000-000-001",
9263
+ anonymous: "965-000-000-000-000-000-002",
9264
+ data_not_collected: "965-000-000-000-000-000-003",
9265
+ resided: "965-001-000-000-000-000-000",
9266
+ sheltered: "965-002-000-000-000-000-000",
9267
+ service_delivered: "965-003-000-000-000-000-000",
9268
+ met: "965-004-000-000-000-000-000",
9269
+ advertised: "965-005-000-000-000-000-000",
9270
+ arrested: "965-006-000-000-000-000-000",
9271
+ visited: "965-007-000-000-000-000-000",
9272
+ child_welfare_visit: "965-008-000-000-000-000-000",
9273
+ incident: "965-009-000-000-000-000-000",
9274
+ other: "965-010-000-000-000-000-000"
9275
+ };
9276
+ var ProvenanceSourceIdKeys = {
9277
+ missingness_root: "966-000-000-000-000-000-000",
9278
+ unknown: "966-000-000-000-000-000-001",
9279
+ anonymous: "966-000-000-000-000-000-002",
9280
+ data_not_collected: "966-000-000-000-000-000-003",
9281
+ client_self_report: "966-001-000-000-000-000-000",
9282
+ system_derived_ads: "966-002-000-000-000-000-000",
9283
+ system_derived_geocoder: "966-003-000-000-000-000-000",
9284
+ staff_observation: "966-004-000-000-000-000-000",
9285
+ intake_form: "966-005-000-000-000-000-000",
9286
+ referral_partner: "966-006-000-000-000-000-000",
9287
+ law_enforcement: "966-007-000-000-000-000-000",
9288
+ id_document: "966-008-000-000-000-000-000",
9289
+ social_profile: "966-009-000-000-000-000-000"
9290
+ };
9291
+ var RadiusBucketKeys = {
9292
+ missingness_root: "967-000-000-000-000-000-000",
9293
+ unknown: "967-000-000-000-000-000-001",
9294
+ anonymous: "967-000-000-000-000-000-002",
9295
+ data_not_collected: "967-000-000-000-000-000-003",
9296
+ 10: "967-001-000-000-000-000-000",
9297
+ 50: "967-002-000-000-000-000-000",
9298
+ 100: "967-003-000-000-000-000-000",
9299
+ 250: "967-004-000-000-000-000-000",
9300
+ 500: "967-005-000-000-000-000-000"
9301
+ };
9302
+ var ContactLinkTypeKeys = {
9303
+ missingness_root: "968-000-000-000-000-000-000",
9304
+ unknown: "968-000-000-000-000-000-001",
9305
+ anonymous: "968-000-000-000-000-000-002",
9306
+ data_not_collected: "968-000-000-000-000-000-003",
9307
+ belongs: "968-001-000-000-000-000-000",
9308
+ associated: "968-002-000-000-000-000-000",
9309
+ advertises: "968-003-000-000-000-000-000",
9310
+ contacted: "968-004-000-000-000-000-000"
9311
+ };
9312
+ var SuggestionSourceKeys = {
9313
+ missingness_root: "969-000-000-000-000-000-000",
9314
+ unknown: "969-000-000-000-000-000-001",
9315
+ anonymous: "969-000-000-000-000-000-002",
9316
+ data_not_collected: "969-000-000-000-000-000-003",
9317
+ lap: "969-001-000-000-000-000-000",
9318
+ ps_step_4: "969-002-000-000-000-000-000"
9319
+ };
9320
+ var RoiMethodKeys = {
9321
+ missingness_root: "970-000-000-000-000-000-000",
9322
+ unknown: "970-000-000-000-000-000-001",
9323
+ anonymous: "970-000-000-000-000-000-002",
9324
+ data_not_collected: "970-000-000-000-000-000-003",
9325
+ thread_caseshare: "970-001-000-000-000-000-000",
9326
+ thread_magic_link: "970-002-000-000-000-000-000",
9327
+ email: "970-003-000-000-000-000-000",
9328
+ fax: "970-004-000-000-000-000-000",
9329
+ secure_portal: "970-005-000-000-000-000-000",
9330
+ in_person: "970-006-000-000-000-000-000"
9331
+ };
9332
+ var SessionNoteVisibilityKeys = {
9333
+ missingness_root: "971-000-000-000-000-000-000",
9334
+ unknown: "971-000-000-000-000-000-001",
9335
+ anonymous: "971-000-000-000-000-000-002",
9336
+ data_not_collected: "971-000-000-000-000-000-003",
9337
+ default: "971-001-000-000-000-000-000",
9338
+ account: "971-002-000-000-000-000-000",
9339
+ private: "971-003-000-000-000-000-000"
9340
+ };
9183
9341
 
9184
9342
  // src/services/cvcRegistryService.ts
9185
9343
  import "mongoose";
@@ -21506,6 +21664,42 @@ var sourceSubtype_v1_1_0_default = {
21506
21664
  parentCode: null,
21507
21665
  childCodes: [],
21508
21666
  definition: "The subject directly discloses the information. Source category: human. Use when the primary origin is the subject's own account (interview, intake, assessment)."
21667
+ },
21668
+ {
21669
+ code: "141-032-000-000-000-000-000",
21670
+ key: "advocate_capture",
21671
+ title: "Advocate capture",
21672
+ selectable: true,
21673
+ parentCode: null,
21674
+ childCodes: [],
21675
+ definition: "Value captured or entered directly by an advocate in a PAVE capture surface (default advocate-authored subtype). Source category: human."
21676
+ },
21677
+ {
21678
+ code: "141-033-000-000-000-000-000",
21679
+ key: "advocate_assessment",
21680
+ title: "Advocate assessment",
21681
+ selectable: true,
21682
+ parentCode: null,
21683
+ childCodes: [],
21684
+ definition: "Advocate structured assessment or functional-role judgment recorded in a PAVE surface (distinct from raw advocate_capture). Source category: human."
21685
+ },
21686
+ {
21687
+ code: "141-034-000-000-000-000-000",
21688
+ key: "child_welfare_episode_edit",
21689
+ title: "Child welfare episode edit",
21690
+ selectable: true,
21691
+ parentCode: null,
21692
+ childCodes: [],
21693
+ definition: "Advocate add/update/archive of a child-welfare system-involvement episode log (assertion_domain child_welfare_involvement). Source category: human."
21694
+ },
21695
+ {
21696
+ code: "141-035-000-000-000-000-000",
21697
+ key: "juvenile_justice_episode_edit",
21698
+ title: "Juvenile justice episode edit",
21699
+ selectable: true,
21700
+ parentCode: null,
21701
+ childCodes: [],
21702
+ definition: "Advocate add/update/archive of a juvenile-justice system-involvement episode log (assertion_domain juvenile_justice_involvement). Source category: human."
21509
21703
  }
21510
21704
  ]
21511
21705
  };
@@ -21969,6 +22163,24 @@ var verificationMethod_v1_0_0_default = {
21969
22163
  parentCode: null,
21970
22164
  childCodes: [],
21971
22165
  definition: "A supervisor (or designated reviewer) reviewed the assertion and marked it verified under an operational review process. Use when verification is granted via human review workflow. Pair with verified_by_user_id and verified_at, and capture any required support_strength policy. Not equivalent to legal confirmation; scope is operational."
22166
+ },
22167
+ {
22168
+ code: "143-006-000-000-000-000-000",
22169
+ key: "rules",
22170
+ title: "Rules / algorithm match",
22171
+ selectable: true,
22172
+ parentCode: null,
22173
+ childCodes: [],
22174
+ definition: "Verification via a deterministic rule or algorithm match (GDR \xA75.7 \u2014 system-derived)."
22175
+ },
22176
+ {
22177
+ code: "143-007-000-000-000-000-000",
22178
+ key: "still_reaches",
22179
+ title: "Still reaches",
22180
+ selectable: true,
22181
+ parentCode: null,
22182
+ childCodes: [],
22183
+ definition: "Verification that the contact or relationship still reaches / is live (GDR \xA75.7 liveness confirmation)."
21972
22184
  }
21973
22185
  ]
21974
22186
  };
@@ -32952,6 +33164,15 @@ var htType_v1_0_0_default = {
32952
33164
  parentCode: null,
32953
33165
  childCodes: [],
32954
33166
  definition: "Both sex trafficking and labor trafficking are asserted to apply, either concurrently or across the relevant time window. Use when credible assertions exist for both sex and labor trafficking for the same subject / time context."
33167
+ },
33168
+ {
33169
+ code: "072-004-000-000-000-000-000",
33170
+ key: "none",
33171
+ title: "None",
33172
+ selectable: true,
33173
+ parentCode: null,
33174
+ childCodes: [],
33175
+ definition: "No trafficking type asserted \u2014 an explicit NEGATIVE determination rather than a trafficking type. The picker surfaces `none` alongside the substantive codes (sex / labor / sex_and_labor) so an advocate can assert 'this person is not a trafficking victim of any specific type.' Pair with victim_status_family = no_indication when the negative determination spans the victim assertion. Canonical per Crysta directive 2026-05-27 (core_ht_type.yaml), which overrides the 2026-04-26 bundle's prior 'remove None from canonical' recommendation."
32955
33176
  }
32956
33177
  ]
32957
33178
  };
@@ -33351,10 +33572,12 @@ export {
33351
33572
  AccommodationTypeKeys,
33352
33573
  ActionStepCompletionStatusKeys,
33353
33574
  ActionStepTypeKeys,
33575
+ ActivityTypeKeys,
33354
33576
  AdministeringJurisdictionKeys,
33355
33577
  AgeBinReportingKeys,
33356
33578
  AnnouncementAudienceScopeKeys,
33357
33579
  AnnouncementResponseTypeKeys,
33580
+ AssertionDomainKeys,
33358
33581
  BIRTH_LOCATION,
33359
33582
  BIRTH_LOCATION_LABELS,
33360
33583
  BIRTH_LOCATION_VALUES,
@@ -33519,6 +33742,7 @@ export {
33519
33742
  CollectionContextKeys,
33520
33743
  ContactInfoTypeKeys,
33521
33744
  ContactInfoUseTypeKeys,
33745
+ ContactLinkTypeKeys,
33522
33746
  ContactSafetyStatusKeys,
33523
33747
  CvcCodeSchema,
33524
33748
  CvcEntrySchema,
@@ -33677,6 +33901,7 @@ export {
33677
33901
  ProgramSpecificCodeKeys,
33678
33902
  PronounsKeys,
33679
33903
  ProofOfIdTypeKeys,
33904
+ ProvenanceSourceIdKeys,
33680
33905
  QUESTION_FORMAT,
33681
33906
  QUESTION_FORMAT_LABELS,
33682
33907
  QUICK_START_CONFIG,
@@ -33695,6 +33920,7 @@ export {
33695
33920
  ROLE_LEVEL_LABELS,
33696
33921
  ROLE_LEVEL_VALUES,
33697
33922
  RaceEthnicityKeys,
33923
+ RadiusBucketKeys,
33698
33924
  RecencyBandKeys,
33699
33925
  ReferenceLinkTypeKeys,
33700
33926
  ReferralEntityCategoryKeys,
@@ -33703,6 +33929,7 @@ export {
33703
33929
  RelationshipStatusCurrentKeys,
33704
33930
  RelationshipTiesKeys,
33705
33931
  ReturnedToAbuserStatusKeys,
33932
+ RoiMethodKeys,
33706
33933
  RoleContextKeys,
33707
33934
  RsvpResponseKeys,
33708
33935
  SESSION_STATES,
@@ -33720,6 +33947,7 @@ export {
33720
33947
  ServicePlanReviewSnoozeReasonKeys,
33721
33948
  ServiceSourceKeys,
33722
33949
  ServiceStateKeys,
33950
+ SessionNoteVisibilityKeys,
33723
33951
  SessionStateKeys,
33724
33952
  SeverityFollowUpKeys,
33725
33953
  SexProviderSubroleKeys,
@@ -33733,6 +33961,7 @@ export {
33733
33961
  SourceCategoryKeys,
33734
33962
  SourceSubtypeKeys,
33735
33963
  SubstanceUseStatusKeys,
33964
+ SuggestionSourceKeys,
33736
33965
  SupportStrengthKeys,
33737
33966
  SupportTopicKeys,
33738
33967
  THREAD_INVOLVEMENT_ROLES,