@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.cjs CHANGED
@@ -31,10 +31,12 @@ __export(src_exports, {
31
31
  AccommodationTypeKeys: () => AccommodationTypeKeys,
32
32
  ActionStepCompletionStatusKeys: () => ActionStepCompletionStatusKeys,
33
33
  ActionStepTypeKeys: () => ActionStepTypeKeys,
34
+ ActivityTypeKeys: () => ActivityTypeKeys,
34
35
  AdministeringJurisdictionKeys: () => AdministeringJurisdictionKeys,
35
36
  AgeBinReportingKeys: () => AgeBinReportingKeys,
36
37
  AnnouncementAudienceScopeKeys: () => AnnouncementAudienceScopeKeys,
37
38
  AnnouncementResponseTypeKeys: () => AnnouncementResponseTypeKeys,
39
+ AssertionDomainKeys: () => AssertionDomainKeys,
38
40
  BIRTH_LOCATION: () => BIRTH_LOCATION,
39
41
  BIRTH_LOCATION_LABELS: () => BIRTH_LOCATION_LABELS,
40
42
  BIRTH_LOCATION_VALUES: () => BIRTH_LOCATION_VALUES,
@@ -199,6 +201,7 @@ __export(src_exports, {
199
201
  CollectionContextKeys: () => CollectionContextKeys,
200
202
  ContactInfoTypeKeys: () => ContactInfoTypeKeys,
201
203
  ContactInfoUseTypeKeys: () => ContactInfoUseTypeKeys,
204
+ ContactLinkTypeKeys: () => ContactLinkTypeKeys,
202
205
  ContactSafetyStatusKeys: () => ContactSafetyStatusKeys,
203
206
  CvcCodeSchema: () => CvcCodeSchema,
204
207
  CvcEntrySchema: () => CvcEntrySchema,
@@ -357,6 +360,7 @@ __export(src_exports, {
357
360
  ProgramSpecificCodeKeys: () => ProgramSpecificCodeKeys,
358
361
  PronounsKeys: () => PronounsKeys,
359
362
  ProofOfIdTypeKeys: () => ProofOfIdTypeKeys,
363
+ ProvenanceSourceIdKeys: () => ProvenanceSourceIdKeys,
360
364
  QUESTION_FORMAT: () => QUESTION_FORMAT,
361
365
  QUESTION_FORMAT_LABELS: () => QUESTION_FORMAT_LABELS,
362
366
  QUICK_START_CONFIG: () => QUICK_START_CONFIG,
@@ -375,6 +379,7 @@ __export(src_exports, {
375
379
  ROLE_LEVEL_LABELS: () => ROLE_LEVEL_LABELS,
376
380
  ROLE_LEVEL_VALUES: () => ROLE_LEVEL_VALUES,
377
381
  RaceEthnicityKeys: () => RaceEthnicityKeys,
382
+ RadiusBucketKeys: () => RadiusBucketKeys,
378
383
  RecencyBandKeys: () => RecencyBandKeys,
379
384
  ReferenceLinkTypeKeys: () => ReferenceLinkTypeKeys,
380
385
  ReferralEntityCategoryKeys: () => ReferralEntityCategoryKeys,
@@ -383,6 +388,7 @@ __export(src_exports, {
383
388
  RelationshipStatusCurrentKeys: () => RelationshipStatusCurrentKeys,
384
389
  RelationshipTiesKeys: () => RelationshipTiesKeys,
385
390
  ReturnedToAbuserStatusKeys: () => ReturnedToAbuserStatusKeys,
391
+ RoiMethodKeys: () => RoiMethodKeys,
386
392
  RoleContextKeys: () => RoleContextKeys,
387
393
  RsvpResponseKeys: () => RsvpResponseKeys,
388
394
  SESSION_STATES: () => SESSION_STATES,
@@ -400,6 +406,7 @@ __export(src_exports, {
400
406
  ServicePlanReviewSnoozeReasonKeys: () => ServicePlanReviewSnoozeReasonKeys,
401
407
  ServiceSourceKeys: () => ServiceSourceKeys,
402
408
  ServiceStateKeys: () => ServiceStateKeys,
409
+ SessionNoteVisibilityKeys: () => SessionNoteVisibilityKeys,
403
410
  SessionStateKeys: () => SessionStateKeys,
404
411
  SeverityFollowUpKeys: () => SeverityFollowUpKeys,
405
412
  SexProviderSubroleKeys: () => SexProviderSubroleKeys,
@@ -413,6 +420,7 @@ __export(src_exports, {
413
420
  SourceCategoryKeys: () => SourceCategoryKeys,
414
421
  SourceSubtypeKeys: () => SourceSubtypeKeys,
415
422
  SubstanceUseStatusKeys: () => SubstanceUseStatusKeys,
423
+ SuggestionSourceKeys: () => SuggestionSourceKeys,
416
424
  SupportStrengthKeys: () => SupportStrengthKeys,
417
425
  SupportTopicKeys: () => SupportTopicKeys,
418
426
  THREAD_INVOLVEMENT_ROLES: () => THREAD_INVOLVEMENT_ROLES,
@@ -8504,7 +8512,11 @@ var SourceSubtypeKeys = {
8504
8512
  staff_observation: "141-028-000-000-000-000-000",
8505
8513
  system_import: "141-029-000-000-000-000-000",
8506
8514
  third_party_report: "141-030-000-000-000-000-000",
8507
- victim_disclosure: "141-031-000-000-000-000-000"
8515
+ victim_disclosure: "141-031-000-000-000-000-000",
8516
+ advocate_capture: "141-032-000-000-000-000-000",
8517
+ advocate_assessment: "141-033-000-000-000-000-000",
8518
+ child_welfare_episode_edit: "141-034-000-000-000-000-000",
8519
+ juvenile_justice_episode_edit: "141-035-000-000-000-000-000"
8508
8520
  };
8509
8521
  var SupportStrengthKeys = {
8510
8522
  missingness_root: "139-000-000-000-000-000-000",
@@ -8556,7 +8568,9 @@ var VerificationMethodKeys = {
8556
8568
  evidence_threshold_met: "143-002-000-000-000-000-000",
8557
8569
  multi_source_corroboration: "143-003-000-000-000-000-000",
8558
8570
  qa_audit_passed: "143-004-000-000-000-000-000",
8559
- supervisor_review: "143-005-000-000-000-000-000"
8571
+ supervisor_review: "143-005-000-000-000-000-000",
8572
+ rules: "143-006-000-000-000-000-000",
8573
+ still_reaches: "143-007-000-000-000-000-000"
8560
8574
  };
8561
8575
  var VerificationStatusKeys = {
8562
8576
  missingness_root: "962-000-000-000-000-000-000",
@@ -9763,7 +9777,8 @@ var HtTypeKeys = {
9763
9777
  data_not_collected: "072-000-000-000-000-000-003",
9764
9778
  sex: "072-001-000-000-000-000-000",
9765
9779
  labor: "072-002-000-000-000-000-000",
9766
- sex_and_labor: "072-003-000-000-000-000-000"
9780
+ sex_and_labor: "072-003-000-000-000-000-000",
9781
+ none: "072-004-000-000-000-000-000"
9767
9782
  };
9768
9783
  var RelationshipConcernKeys = {
9769
9784
  missingness_root: "231-000-000-000-000-000-000",
@@ -9808,6 +9823,157 @@ var HousingSubsidyTypesKeys = {
9808
9823
  family_unification_program: "233-011-000-000-000-000-000",
9809
9824
  foster_youth_to_independence: "233-012-000-000-000-000-000"
9810
9825
  };
9826
+ var AssertionDomainKeys = {
9827
+ missingness_root: "964-000-000-000-000-000-000",
9828
+ unknown: "964-000-000-000-000-000-001",
9829
+ anonymous: "964-000-000-000-000-000-002",
9830
+ data_not_collected: "964-000-000-000-000-000-003",
9831
+ indicator: "964-001-000-000-000-000-000",
9832
+ risk_signal: "964-002-000-000-000-000-000",
9833
+ victim_status: "964-003-000-000-000-000-000",
9834
+ offender_status: "964-004-000-000-000-000-000",
9835
+ domain_determination: "964-005-000-000-000-000-000",
9836
+ victimization_or_abuse_type: "964-006-000-000-000-000-000",
9837
+ assessment_scale: "964-007-000-000-000-000-000",
9838
+ recommended_followup: "964-008-000-000-000-000-000",
9839
+ relationship: "964-009-000-000-000-000-000",
9840
+ household_relationships: "964-010-000-000-000-000-000",
9841
+ relationship_tie: "964-011-000-000-000-000-000",
9842
+ relationship_dynamics: "964-012-000-000-000-000-000",
9843
+ relationship_status_current: "964-013-000-000-000-000-000",
9844
+ marital_status_legal: "964-014-000-000-000-000-000",
9845
+ core_profile: "964-015-000-000-000-000-000",
9846
+ person_tile: "964-016-000-000-000-000-000",
9847
+ person_relationship: "964-017-000-000-000-000-000",
9848
+ relevant_people: "964-018-000-000-000-000-000",
9849
+ name: "964-019-000-000-000-000-000",
9850
+ contact_info: "964-020-000-000-000-000-000",
9851
+ address: "964-021-000-000-000-000-000",
9852
+ vehicle: "964-022-000-000-000-000-000",
9853
+ income_history: "964-023-000-000-000-000-000",
9854
+ physical_description: "964-024-000-000-000-000-000",
9855
+ living_situation: "964-025-000-000-000-000-000",
9856
+ pet: "964-026-000-000-000-000-000",
9857
+ protection_order: "964-027-000-000-000-000-000",
9858
+ log_entry: "964-028-000-000-000-000-000",
9859
+ session_note: "964-029-000-000-000-000-000",
9860
+ referral_source: "964-030-000-000-000-000-000",
9861
+ org_directory: "964-031-000-000-000-000-000",
9862
+ person_directory: "964-032-000-000-000-000-000",
9863
+ service_delivery: "964-033-000-000-000-000-000",
9864
+ needs_assessment: "964-034-000-000-000-000-000",
9865
+ priorities_and_safety: "964-035-000-000-000-000-000",
9866
+ share: "964-036-000-000-000-000-000",
9867
+ roi: "964-037-000-000-000-000-000",
9868
+ external_recipient: "964-038-000-000-000-000-000",
9869
+ access_accommodations: "964-039-000-000-000-000-000",
9870
+ danger_assessment: "964-040-000-000-000-000-000",
9871
+ hope_scale: "964-041-000-000-000-000-000",
9872
+ injury_and_strangulation: "964-042-000-000-000-000-000",
9873
+ lethality_assessment_program: "964-043-000-000-000-000-000",
9874
+ occupational_background: "964-044-000-000-000-000-000",
9875
+ household_tenure: "964-045-000-000-000-000-000",
9876
+ program_enrollment: "964-046-000-000-000-000-000",
9877
+ program_enrollment_exit_wizard: "964-047-000-000-000-000-000",
9878
+ goal: "964-048-000-000-000-000-000",
9879
+ action_step: "964-049-000-000-000-000-000",
9880
+ milestone: "964-050-000-000-000-000-000",
9881
+ check_in: "964-051-000-000-000-000-000",
9882
+ goal_signature: "964-052-000-000-000-000-000",
9883
+ subject_functional_role: "964-053-000-000-000-000-000",
9884
+ worker_subrole: "964-054-000-000-000-000-000",
9885
+ offender_status_family: "964-055-000-000-000-000-000",
9886
+ assessment_rating: "964-056-000-000-000-000-000",
9887
+ immigration_legal_status: "964-057-000-000-000-000-000",
9888
+ persons_network: "964-058-000-000-000-000-000",
9889
+ lifecycle_services: "964-059-000-000-000-000-000",
9890
+ juvenile_justice_involvement: "964-060-000-000-000-000-000",
9891
+ child_welfare_involvement: "964-061-000-000-000-000-000",
9892
+ facilitator_role: "964-062-000-000-000-000-000",
9893
+ facilitator_subrole: "964-063-000-000-000-000-000",
9894
+ facilitator_entity_type: "964-064-000-000-000-000-000"
9895
+ };
9896
+ var ActivityTypeKeys = {
9897
+ missingness_root: "965-000-000-000-000-000-000",
9898
+ unknown: "965-000-000-000-000-000-001",
9899
+ anonymous: "965-000-000-000-000-000-002",
9900
+ data_not_collected: "965-000-000-000-000-000-003",
9901
+ resided: "965-001-000-000-000-000-000",
9902
+ sheltered: "965-002-000-000-000-000-000",
9903
+ service_delivered: "965-003-000-000-000-000-000",
9904
+ met: "965-004-000-000-000-000-000",
9905
+ advertised: "965-005-000-000-000-000-000",
9906
+ arrested: "965-006-000-000-000-000-000",
9907
+ visited: "965-007-000-000-000-000-000",
9908
+ child_welfare_visit: "965-008-000-000-000-000-000",
9909
+ incident: "965-009-000-000-000-000-000",
9910
+ other: "965-010-000-000-000-000-000"
9911
+ };
9912
+ var ProvenanceSourceIdKeys = {
9913
+ missingness_root: "966-000-000-000-000-000-000",
9914
+ unknown: "966-000-000-000-000-000-001",
9915
+ anonymous: "966-000-000-000-000-000-002",
9916
+ data_not_collected: "966-000-000-000-000-000-003",
9917
+ client_self_report: "966-001-000-000-000-000-000",
9918
+ system_derived_ads: "966-002-000-000-000-000-000",
9919
+ system_derived_geocoder: "966-003-000-000-000-000-000",
9920
+ staff_observation: "966-004-000-000-000-000-000",
9921
+ intake_form: "966-005-000-000-000-000-000",
9922
+ referral_partner: "966-006-000-000-000-000-000",
9923
+ law_enforcement: "966-007-000-000-000-000-000",
9924
+ id_document: "966-008-000-000-000-000-000",
9925
+ social_profile: "966-009-000-000-000-000-000"
9926
+ };
9927
+ var RadiusBucketKeys = {
9928
+ missingness_root: "967-000-000-000-000-000-000",
9929
+ unknown: "967-000-000-000-000-000-001",
9930
+ anonymous: "967-000-000-000-000-000-002",
9931
+ data_not_collected: "967-000-000-000-000-000-003",
9932
+ 10: "967-001-000-000-000-000-000",
9933
+ 50: "967-002-000-000-000-000-000",
9934
+ 100: "967-003-000-000-000-000-000",
9935
+ 250: "967-004-000-000-000-000-000",
9936
+ 500: "967-005-000-000-000-000-000"
9937
+ };
9938
+ var ContactLinkTypeKeys = {
9939
+ missingness_root: "968-000-000-000-000-000-000",
9940
+ unknown: "968-000-000-000-000-000-001",
9941
+ anonymous: "968-000-000-000-000-000-002",
9942
+ data_not_collected: "968-000-000-000-000-000-003",
9943
+ belongs: "968-001-000-000-000-000-000",
9944
+ associated: "968-002-000-000-000-000-000",
9945
+ advertises: "968-003-000-000-000-000-000",
9946
+ contacted: "968-004-000-000-000-000-000"
9947
+ };
9948
+ var SuggestionSourceKeys = {
9949
+ missingness_root: "969-000-000-000-000-000-000",
9950
+ unknown: "969-000-000-000-000-000-001",
9951
+ anonymous: "969-000-000-000-000-000-002",
9952
+ data_not_collected: "969-000-000-000-000-000-003",
9953
+ lap: "969-001-000-000-000-000-000",
9954
+ ps_step_4: "969-002-000-000-000-000-000"
9955
+ };
9956
+ var RoiMethodKeys = {
9957
+ missingness_root: "970-000-000-000-000-000-000",
9958
+ unknown: "970-000-000-000-000-000-001",
9959
+ anonymous: "970-000-000-000-000-000-002",
9960
+ data_not_collected: "970-000-000-000-000-000-003",
9961
+ thread_caseshare: "970-001-000-000-000-000-000",
9962
+ thread_magic_link: "970-002-000-000-000-000-000",
9963
+ email: "970-003-000-000-000-000-000",
9964
+ fax: "970-004-000-000-000-000-000",
9965
+ secure_portal: "970-005-000-000-000-000-000",
9966
+ in_person: "970-006-000-000-000-000-000"
9967
+ };
9968
+ var SessionNoteVisibilityKeys = {
9969
+ missingness_root: "971-000-000-000-000-000-000",
9970
+ unknown: "971-000-000-000-000-000-001",
9971
+ anonymous: "971-000-000-000-000-000-002",
9972
+ data_not_collected: "971-000-000-000-000-000-003",
9973
+ default: "971-001-000-000-000-000-000",
9974
+ account: "971-002-000-000-000-000-000",
9975
+ private: "971-003-000-000-000-000-000"
9976
+ };
9811
9977
 
9812
9978
  // src/services/cvcRegistryService.ts
9813
9979
  var import_mongoose10 = require("mongoose");
@@ -22134,6 +22300,42 @@ var sourceSubtype_v1_1_0_default = {
22134
22300
  parentCode: null,
22135
22301
  childCodes: [],
22136
22302
  definition: "The subject directly discloses the information. Source category: human. Use when the primary origin is the subject's own account (interview, intake, assessment)."
22303
+ },
22304
+ {
22305
+ code: "141-032-000-000-000-000-000",
22306
+ key: "advocate_capture",
22307
+ title: "Advocate capture",
22308
+ selectable: true,
22309
+ parentCode: null,
22310
+ childCodes: [],
22311
+ definition: "Value captured or entered directly by an advocate in a PAVE capture surface (default advocate-authored subtype). Source category: human."
22312
+ },
22313
+ {
22314
+ code: "141-033-000-000-000-000-000",
22315
+ key: "advocate_assessment",
22316
+ title: "Advocate assessment",
22317
+ selectable: true,
22318
+ parentCode: null,
22319
+ childCodes: [],
22320
+ definition: "Advocate structured assessment or functional-role judgment recorded in a PAVE surface (distinct from raw advocate_capture). Source category: human."
22321
+ },
22322
+ {
22323
+ code: "141-034-000-000-000-000-000",
22324
+ key: "child_welfare_episode_edit",
22325
+ title: "Child welfare episode edit",
22326
+ selectable: true,
22327
+ parentCode: null,
22328
+ childCodes: [],
22329
+ definition: "Advocate add/update/archive of a child-welfare system-involvement episode log (assertion_domain child_welfare_involvement). Source category: human."
22330
+ },
22331
+ {
22332
+ code: "141-035-000-000-000-000-000",
22333
+ key: "juvenile_justice_episode_edit",
22334
+ title: "Juvenile justice episode edit",
22335
+ selectable: true,
22336
+ parentCode: null,
22337
+ childCodes: [],
22338
+ definition: "Advocate add/update/archive of a juvenile-justice system-involvement episode log (assertion_domain juvenile_justice_involvement). Source category: human."
22137
22339
  }
22138
22340
  ]
22139
22341
  };
@@ -22597,6 +22799,24 @@ var verificationMethod_v1_0_0_default = {
22597
22799
  parentCode: null,
22598
22800
  childCodes: [],
22599
22801
  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."
22802
+ },
22803
+ {
22804
+ code: "143-006-000-000-000-000-000",
22805
+ key: "rules",
22806
+ title: "Rules / algorithm match",
22807
+ selectable: true,
22808
+ parentCode: null,
22809
+ childCodes: [],
22810
+ definition: "Verification via a deterministic rule or algorithm match (GDR \xA75.7 \u2014 system-derived)."
22811
+ },
22812
+ {
22813
+ code: "143-007-000-000-000-000-000",
22814
+ key: "still_reaches",
22815
+ title: "Still reaches",
22816
+ selectable: true,
22817
+ parentCode: null,
22818
+ childCodes: [],
22819
+ definition: "Verification that the contact or relationship still reaches / is live (GDR \xA75.7 liveness confirmation)."
22600
22820
  }
22601
22821
  ]
22602
22822
  };
@@ -33580,6 +33800,15 @@ var htType_v1_0_0_default = {
33580
33800
  parentCode: null,
33581
33801
  childCodes: [],
33582
33802
  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."
33803
+ },
33804
+ {
33805
+ code: "072-004-000-000-000-000-000",
33806
+ key: "none",
33807
+ title: "None",
33808
+ selectable: true,
33809
+ parentCode: null,
33810
+ childCodes: [],
33811
+ 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."
33583
33812
  }
33584
33813
  ]
33585
33814
  };
@@ -33980,10 +34209,12 @@ var housingSubsidyTypes_v1_0_0_default = {
33980
34209
  AccommodationTypeKeys,
33981
34210
  ActionStepCompletionStatusKeys,
33982
34211
  ActionStepTypeKeys,
34212
+ ActivityTypeKeys,
33983
34213
  AdministeringJurisdictionKeys,
33984
34214
  AgeBinReportingKeys,
33985
34215
  AnnouncementAudienceScopeKeys,
33986
34216
  AnnouncementResponseTypeKeys,
34217
+ AssertionDomainKeys,
33987
34218
  BIRTH_LOCATION,
33988
34219
  BIRTH_LOCATION_LABELS,
33989
34220
  BIRTH_LOCATION_VALUES,
@@ -34148,6 +34379,7 @@ var housingSubsidyTypes_v1_0_0_default = {
34148
34379
  CollectionContextKeys,
34149
34380
  ContactInfoTypeKeys,
34150
34381
  ContactInfoUseTypeKeys,
34382
+ ContactLinkTypeKeys,
34151
34383
  ContactSafetyStatusKeys,
34152
34384
  CvcCodeSchema,
34153
34385
  CvcEntrySchema,
@@ -34306,6 +34538,7 @@ var housingSubsidyTypes_v1_0_0_default = {
34306
34538
  ProgramSpecificCodeKeys,
34307
34539
  PronounsKeys,
34308
34540
  ProofOfIdTypeKeys,
34541
+ ProvenanceSourceIdKeys,
34309
34542
  QUESTION_FORMAT,
34310
34543
  QUESTION_FORMAT_LABELS,
34311
34544
  QUICK_START_CONFIG,
@@ -34324,6 +34557,7 @@ var housingSubsidyTypes_v1_0_0_default = {
34324
34557
  ROLE_LEVEL_LABELS,
34325
34558
  ROLE_LEVEL_VALUES,
34326
34559
  RaceEthnicityKeys,
34560
+ RadiusBucketKeys,
34327
34561
  RecencyBandKeys,
34328
34562
  ReferenceLinkTypeKeys,
34329
34563
  ReferralEntityCategoryKeys,
@@ -34332,6 +34566,7 @@ var housingSubsidyTypes_v1_0_0_default = {
34332
34566
  RelationshipStatusCurrentKeys,
34333
34567
  RelationshipTiesKeys,
34334
34568
  ReturnedToAbuserStatusKeys,
34569
+ RoiMethodKeys,
34335
34570
  RoleContextKeys,
34336
34571
  RsvpResponseKeys,
34337
34572
  SESSION_STATES,
@@ -34349,6 +34584,7 @@ var housingSubsidyTypes_v1_0_0_default = {
34349
34584
  ServicePlanReviewSnoozeReasonKeys,
34350
34585
  ServiceSourceKeys,
34351
34586
  ServiceStateKeys,
34587
+ SessionNoteVisibilityKeys,
34352
34588
  SessionStateKeys,
34353
34589
  SeverityFollowUpKeys,
34354
34590
  SexProviderSubroleKeys,
@@ -34362,6 +34598,7 @@ var housingSubsidyTypes_v1_0_0_default = {
34362
34598
  SourceCategoryKeys,
34363
34599
  SourceSubtypeKeys,
34364
34600
  SubstanceUseStatusKeys,
34601
+ SuggestionSourceKeys,
34365
34602
  SupportStrengthKeys,
34366
34603
  SupportTopicKeys,
34367
34604
  THREAD_INVOLVEMENT_ROLES,