@htilabs/platform-common-models 0.13.1 → 0.14.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 (45) hide show
  1. package/dist/constants/index.cjs +33 -0
  2. package/dist/constants/index.cjs.map +1 -1
  3. package/dist/constants/index.d.cts +1 -1
  4. package/dist/constants/index.d.ts +1 -1
  5. package/dist/constants/index.js +29 -0
  6. package/dist/constants/index.js.map +1 -1
  7. package/dist/cvcs/index.cjs +96 -13
  8. package/dist/cvcs/index.cjs.map +1 -1
  9. package/dist/cvcs/index.d.cts +101 -12
  10. package/dist/cvcs/index.d.ts +101 -12
  11. package/dist/cvcs/index.js +96 -13
  12. package/dist/cvcs/index.js.map +1 -1
  13. package/dist/enums/index.cjs +7 -1
  14. package/dist/enums/index.cjs.map +1 -1
  15. package/dist/enums/index.d.cts +8 -2
  16. package/dist/enums/index.d.ts +8 -2
  17. package/dist/enums/index.js +7 -1
  18. package/dist/enums/index.js.map +1 -1
  19. package/dist/index.cjs +136 -14
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +132 -14
  24. package/dist/index.js.map +1 -1
  25. package/dist/{platform-auth-64U8jjuw.d.cts → platform-auth-CrF5U_JH.d.cts} +43 -2
  26. package/dist/{platform-auth-64U8jjuw.d.ts → platform-auth-CrF5U_JH.d.ts} +43 -2
  27. package/dist/schemas/index.cjs +234 -0
  28. package/dist/schemas/index.cjs.map +1 -1
  29. package/dist/schemas/index.js +234 -0
  30. package/dist/schemas/index.js.map +1 -1
  31. package/dist/types/index.d.cts +2 -2
  32. package/dist/types/index.d.ts +2 -2
  33. package/package.json +1 -1
  34. package/src/__sot__/coreIndicatorFields.ts +4 -4
  35. package/src/__sot__/coreIndicators.pin.json +62 -2
  36. package/src/__sot__/scoringEmits.pin.json +9 -4
  37. package/src/__tests__/__snapshots__/cvc-sot.snap +2 -2
  38. package/src/__tests__/cvc-136-scoring-invariant.test.ts +89 -28
  39. package/src/__tests__/cvc-drift-gate.test.ts +149 -27
  40. package/src/__tests__/cvc-sot-snapshot.test.ts +3 -1
  41. package/src/__tests__/cvc-structural.test.ts +1 -1
  42. package/src/constants/ic.ts +163 -3
  43. package/src/cvcs/{coreIndicators.v1.0.0.json → coreIndicators.v1.1.0.json} +93 -10
  44. package/src/cvcs/index.ts +1 -1
  45. package/src/generated/cvc-enums.ts +8 -2
@@ -3441,6 +3441,240 @@ var CVC_136_OPTIONS = Object.entries(
3441
3441
  category,
3442
3442
  categoryLabel: CVC_136_CATEGORY_LABELS[category]
3443
3443
  }));
3444
+ var CVC_136_CORE_INDICATOR_VALUES = [
3445
+ "abuser_evading_legal_consequences",
3446
+ "abuser_has_weapon",
3447
+ "abuser_substance_use",
3448
+ "abuser_threatened_suicide",
3449
+ "abuser_unemployed",
3450
+ "access_to_vulnerable_individuals",
3451
+ "acknowledgement_or_report_of_human_trafficking",
3452
+ "active_protective_order",
3453
+ "ads_available_247",
3454
+ "ads_imply_multiple_workers",
3455
+ "ads_prost_slang",
3456
+ "adverse_childhood_household_challenges",
3457
+ "advertised_new_to_area",
3458
+ "appears_controlling_relationship",
3459
+ "appears_turned_out_or_trained_ad_patterns",
3460
+ "association_commercial_sex",
3461
+ "atypical_or_high_risk_payment_method",
3462
+ "autonomy_access_healthcare_without_fear",
3463
+ "autonomy_choice_in_clients",
3464
+ "autonomy_choice_in_services",
3465
+ "autonomy_controls_own_docs",
3466
+ "autonomy_controls_own_finances",
3467
+ "autonomy_organizes_own_travel",
3468
+ "autonomy_posts_own_ads",
3469
+ "autonomy_sets_own_schedule",
3470
+ "autonomy_sets_up_own_dates",
3471
+ "battered_while_pregnant_history",
3472
+ "branding_or_unusual_tattoos_tied_to_control",
3473
+ "cannot_stop_working_or_freely_leave",
3474
+ "child_not_abusers_in_household",
3475
+ "child_welfare_system_involvement",
3476
+ "clients_unaware_of_third_party_coordination",
3477
+ "coerced_to_misrepresent_identity_or_activity",
3478
+ "coercive_debt_pressure",
3479
+ "coercive_debt_pressure_youth",
3480
+ "coercive_migration_or_forced_travel",
3481
+ "cognitive_or_functional_impairment_affecting_consent",
3482
+ "commercial_sex_association_words_or_places",
3483
+ "concerning_mannerisms_anxious_fearful_depressed",
3484
+ "concerning_sexual_behavior_pattern",
3485
+ "constraints_due_to_legal_status",
3486
+ "control_quota_required",
3487
+ "cs_activity_criminal_org_connection",
3488
+ "cs_industry_related_criminal_history",
3489
+ "current_injuries_from_abuser",
3490
+ "current_mental_health_services",
3491
+ "currently_minor_in_commercial_sex",
3492
+ "dangerous_services_no_protection",
3493
+ "dangerous_services_requires_protection",
3494
+ "dangerous_services_willing_anything",
3495
+ "debt_terms_deceptive",
3496
+ "debt_terms_deceptive_youth",
3497
+ "denied_basic_needs",
3498
+ "depends_on_employer_for_immigration_status",
3499
+ "depends_on_spouse_or_family_for_immigration_status",
3500
+ "disclosed_fear_at_intake",
3501
+ "does_not_control_finances_or_earnings",
3502
+ "does_not_control_housing",
3503
+ "does_not_control_identity_documents",
3504
+ "elevated_lethality_risk_signal",
3505
+ "employer_keeps_pay_or_pays_less_than_expected",
3506
+ "engages_in_commercial_sex_act",
3507
+ "entered_commercial_sex_industry_as_minor",
3508
+ "entered_cs_due_to_survival_needs",
3509
+ "entered_into_network_of_sex_providers_early",
3510
+ "exploitative_pricing_tier_low",
3511
+ "exploitative_working_conditions",
3512
+ "fled_conflict_violence_or_persecution",
3513
+ "forced_to_commit_crimes",
3514
+ "forced_to_use_false_documents",
3515
+ "foreign_born_or_recently_arrived",
3516
+ "foreign_born_risk_factors",
3517
+ "frequent_changes_in_residence",
3518
+ "frequent_travel_or_location_changes",
3519
+ "frequently_at_hotels_or_many_hotel_keys",
3520
+ "harmful_coping_behaviors",
3521
+ "has_ads_on_commercial_sex_site",
3522
+ "has_facilitators_involved",
3523
+ "has_management_or_representation",
3524
+ "has_no_personal_items_or_possessions",
3525
+ "head_injury_history",
3526
+ "head_injury_loss_of_consciousness",
3527
+ "health_related_vulnerability",
3528
+ "hierarchical_management_structure_identified",
3529
+ "high_risk_sexual_behavior",
3530
+ "high_security_measures_at_work_or_living_location",
3531
+ "highly_irregular_school_attendance",
3532
+ "history_emotional_abuse",
3533
+ "history_of_head_injury",
3534
+ "history_of_mental_health_issues",
3535
+ "history_of_running_away_or_missing_from_care",
3536
+ "history_of_strangulation",
3537
+ "history_physical_or_sexual_abuse_or_dv",
3538
+ "homeless_or_unstably_housed",
3539
+ "immigration_related_exploitation_risk",
3540
+ "in_commercial_sex_industry_recorded",
3541
+ "inability_to_account_for_self",
3542
+ "intimate_partner_violence_reported_to_law_enforcement",
3543
+ "juvenile_justice_or_child_welfare_involvement",
3544
+ "juvenile_justice_system_involvement",
3545
+ "labor_services_activity_recorded",
3546
+ "lgbtq_individual",
3547
+ "limited_english_proficiency",
3548
+ "limited_independence",
3549
+ "lives_or_sleeps_at_place_of_work",
3550
+ "living_with_abuser",
3551
+ "macro_level_economic_duress_entry_exit",
3552
+ "meets_or_has_sex_with_internet_contacts",
3553
+ "monitored_or_isolated_by_controlling_party",
3554
+ "much_older_intimate_partner",
3555
+ "nervous_about_immigration_documentation",
3556
+ "network_aggregate_risk_score_high",
3557
+ "network_multiple_sex_providers_named",
3558
+ "network_stable_size_large",
3559
+ "network_trafficker_present",
3560
+ "network_violent_person_present",
3561
+ "new_to_commercial_sex_industry",
3562
+ "non_consensual_photography_or_recording",
3563
+ "not_in_control_of_immigration_documentation",
3564
+ "oppressive_home_life",
3565
+ "other_instability_or_vulnerability_factors",
3566
+ "owes_money_and_cannot_pay_off",
3567
+ "paid_or_owes_fee_to_arrange_travel_to_us",
3568
+ "paid_or_owes_recruitment_fee_to_employer",
3569
+ "parent_or_guardian_of_minor_subject_named",
3570
+ "past_phases_prior_trafficking_or_risk",
3571
+ "payment_routed_through_third_party",
3572
+ "pending_federal_protection",
3573
+ "performing_different_work_than_promised",
3574
+ "physical_violence_increasing",
3575
+ "poverty_or_severe_financial_strain",
3576
+ "precarious_immigration_status",
3577
+ "pressured_or_forced_sex_act",
3578
+ "prior_medical_attention_from_abuse",
3579
+ "prior_tvap_disconnection",
3580
+ "prior_victimization_or_abuse_history",
3581
+ "promise_of_work_different_than_current_work",
3582
+ "received_things_of_value_while_missing_from_care",
3583
+ "recent_le_engagement",
3584
+ "recent_separation",
3585
+ "recruited_by_third_party_into_cs_industry",
3586
+ "regular_alcohol_use",
3587
+ "relies_on_temporary_resources_for_basic_needs",
3588
+ "reports_physical_harm_by_employer_or_partner",
3589
+ "reports_physical_harm_to_others_by_employer_or_partner",
3590
+ "restrictive_living_or_working_conditions",
3591
+ "restrictive_or_not_understood_contract",
3592
+ "risk_factors_commercial_sex",
3593
+ "serious_substance_use_or_introduced_to_drugs",
3594
+ "several_cell_phones_or_frequent_number_changes",
3595
+ "sex_acts_in_own_residence",
3596
+ "sexual_exploitation",
3597
+ "sexualized_content_in_person_performance_activity",
3598
+ "sexualized_content_online_performance_activity",
3599
+ "sexualized_content_performance_activity",
3600
+ "shared_contact_network",
3601
+ "signs_of_physical_abuse_confinement_or_neglect",
3602
+ "signs_of_physical_harm_or_abuse",
3603
+ "sleep_disturbance",
3604
+ "social_isolation_or_no_supportive_relationships",
3605
+ "stalking_property_intrusion",
3606
+ "stalking_surveillance",
3607
+ "stalking_unwanted_contact",
3608
+ "strangulation_acute_symptoms",
3609
+ "strangulation_choking_assault_detail",
3610
+ "strangulation_loss_of_consciousness",
3611
+ "strangulation_repeated",
3612
+ "subject_affiliated_org_trafficking_activity",
3613
+ "subject_arrested_dv_sv_cs",
3614
+ "subject_gang_org_affiliation",
3615
+ "subject_has_illegal_weapons",
3616
+ "subject_is_sex_offender",
3617
+ "subject_legally_barred_weapons",
3618
+ "subject_perpetrated_abuse_history",
3619
+ "subject_perpetrated_emotional_stalking_current",
3620
+ "subject_perpetrated_emotional_stalking_past",
3621
+ "subject_perpetrated_ipv_current",
3622
+ "subject_perpetrated_ipv_past",
3623
+ "subject_perpetrated_physical_abuse_current",
3624
+ "subject_perpetrated_physical_abuse_past",
3625
+ "subject_perpetrated_sexual_abuse_current",
3626
+ "subject_perpetrated_sexual_abuse_past",
3627
+ "subject_violent_felony",
3628
+ "substance_use_while_working",
3629
+ "suicidal_ideation_history",
3630
+ "suicidal_ideation_recent",
3631
+ "suicide_attempt_history",
3632
+ "survival_sex",
3633
+ "third_party_advertises_or_posts_for_person",
3634
+ "third_party_arranged_commercial_sex_acts",
3635
+ "threats_by_employer_or_partner",
3636
+ "threats_of_harm",
3637
+ "threats_of_legal_trouble_or_deportation",
3638
+ "threats_related_to_migration_debt",
3639
+ "threats_to_family_friends_or_close_associates",
3640
+ "threats_to_kill_victim_or_children",
3641
+ "trafficking_experience_current",
3642
+ "trafficking_experience_past_10plusy",
3643
+ "trafficking_experience_past_3to10y",
3644
+ "trafficking_experience_past_lt3y",
3645
+ "trauma_perpetrator_is_current_manager",
3646
+ "travel_organized_by_third_party",
3647
+ "tricked_or_pressured_into_unwanted_acts",
3648
+ "unable_to_speak_freely",
3649
+ "under_18_advertised_age",
3650
+ "under_18_appears_underage",
3651
+ "under_18_known_age",
3652
+ "unexplained_frequent_travel_or_migration",
3653
+ "unsafe_working_conditions_long_hours_inadequate_breaks",
3654
+ "unusual_cash_or_unexplained_gifts",
3655
+ "unusual_work_circumstances",
3656
+ "urgent_medical_referral_needed",
3657
+ "victim_believes_abuser_capable_of_killing",
3658
+ "victimization_history_composite",
3659
+ "violence_or_threats_at_work_site",
3660
+ "weapon_used_or_threatened_against_victim",
3661
+ "work_frequency_high_volume",
3662
+ "working_while_pregnant",
3663
+ "workplace_emotional_climate_of_fear",
3664
+ "works_across_multiple_cities_or_locations",
3665
+ "works_for_little_or_no_pay",
3666
+ "youth_watched_filmed_or_photographed_sexually_explicit"
3667
+ ];
3668
+ var CVC_136_CORE_INDICATOR_SUPERSEDED_BY = {
3669
+ coercive_debt_pressure_youth: "coercive_debt_pressure",
3670
+ debt_terms_deceptive_youth: "debt_terms_deceptive"
3671
+ };
3672
+ function isDeprecatedCoreIndicator(code) {
3673
+ return typeof code === "string" && Object.prototype.hasOwnProperty.call(CVC_136_CORE_INDICATOR_SUPERSEDED_BY, code);
3674
+ }
3675
+ var ACTIVE_CVC_136_CORE_INDICATOR_VALUES = CVC_136_CORE_INDICATOR_VALUES.filter(
3676
+ (v) => !isDeprecatedCoreIndicator(v)
3677
+ );
3444
3678
  var CVC_67_HMIS_SEX = {
3445
3679
  MALE: "male",
3446
3680
  FEMALE: "female",