@htilabs/platform-common-models 0.8.24 → 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.
- package/dist/config/index.cjs +81 -0
- package/dist/config/index.cjs.map +1 -1
- package/dist/config/index.d.cts +79 -4
- package/dist/config/index.d.ts +79 -4
- package/dist/config/index.js +79 -1
- package/dist/config/index.js.map +1 -1
- package/dist/constants/index.cjs +2 -18
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +2 -18
- package/dist/constants/index.js.map +1 -1
- package/dist/{cvcEntry-ctHTp2df.d.cts → cvcEntry-BCj1OWqL.d.cts} +44 -44
- package/dist/{cvcEntry-ctHTp2df.d.ts → cvcEntry-BCj1OWqL.d.ts} +44 -44
- package/dist/cvcs/index.cjs +217 -6674
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +8057 -15024
- package/dist/cvcs/index.d.ts +8057 -15024
- package/dist/cvcs/index.js +217 -6662
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-qreOzXYS.d.cts → index-CoVr1jIV.d.cts} +1 -1
- package/dist/{index-4DiJrn7y.d.ts → index-I-DiX9eQ.d.ts} +1 -1
- package/dist/index.cjs +230 -7217
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -588
- package/dist/index.d.ts +26 -588
- package/dist/index.js +230 -7193
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.cts +2 -2
- package/dist/models/index.d.ts +2 -2
- package/dist/mongo/index.cjs +1 -0
- package/dist/mongo/index.cjs.map +1 -1
- package/dist/mongo/index.js +2 -1
- package/dist/mongo/index.js.map +1 -1
- package/dist/{platform-auth-91Hcl8F8.d.cts → platform-auth-v53r3BhN.d.cts} +3 -4
- package/dist/{platform-auth-91Hcl8F8.d.ts → platform-auth-v53r3BhN.d.ts} +3 -4
- package/dist/schemas/index.cjs +1 -5
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +35 -35
- package/dist/schemas/index.d.ts +35 -35
- package/dist/schemas/index.js +1 -5
- package/dist/schemas/index.js.map +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/validation/index.cjs +0 -58
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +283 -82
- package/dist/validation/index.d.ts +283 -82
- package/dist/validation/index.js +0 -57
- package/dist/validation/index.js.map +1 -1
- package/package.json +22 -26
- package/src/__sot__/README.md +1 -36
- package/src/__sot__/coreIndicators.pin.json +2 -1936
- package/src/__sot__/cvcIndex.pin.json +4 -8
- package/src/__tests__/__snapshots__/cvc-sot.snap +13 -41
- package/src/__tests__/cvc-136-scoring-invariant.test.ts +3 -8
- package/src/__tests__/cvc-drift-gate.test.ts +12 -445
- package/src/__tests__/cvc-sot-snapshot.test.ts +11 -73
- package/src/__tests__/cvc-structural.test.ts +0 -14
- package/src/__tests__/runtime-contract-validator.test.ts +325 -1
- package/src/config/index.ts +189 -4
- package/src/constants/ic.ts +3 -120
- package/src/cvcs/assertionDomain.v1.1.0.json +1 -19
- package/src/cvcs/coreIndicators.v1.0.0.json +5 -83
- package/src/cvcs/incidentParticipationRoles.v1.0.0.json +1 -11
- package/src/cvcs/index.ts +0 -32
- package/src/cvcs/personRelationships.v1.0.0.json +2 -67
- package/src/cvcs/relationshipConcern.v1.0.0.json +19 -28
- package/src/cvcs/sessionTemplate.v1.0.0.json +0 -22
- package/src/cvcs/sharePurpose.v1.0.0.json +12 -80
- package/src/generated/cvc-enums.ts +20 -606
- package/src/validation/index.ts +0 -1
- package/dist/cvc-C7qdsXYK.d.cts +0 -298
- package/dist/cvc-C7qdsXYK.d.ts +0 -298
- package/src/__sot__/coreIndicatorFields.ts +0 -331
- package/src/__tests__/core-information-scope-invariant.test.ts +0 -134
- package/src/__tests__/cvc-181-182-country-parity.test.ts +0 -163
- package/src/__tests__/cvc-status-parser.test.ts +0 -150
- package/src/cvcs/assertionStatus.v1.0.0.json +0 -80
- package/src/cvcs/carCorrectionReason.v1.0.0.json +0 -89
- package/src/cvcs/caseShareState.v1.0.0.json +0 -62
- package/src/cvcs/coreInformationScope.v1.0.0.json +0 -1165
- package/src/cvcs/countries.v1.0.0.json +0 -3077
- package/src/cvcs/createdBySystem.v1.0.0.json +0 -89
- package/src/cvcs/criminalOrgCategory.v1.0.0.json +0 -116
- package/src/cvcs/determinationHelperCategories.v1.0.0.json +0 -1166
- package/src/cvcs/minorAdultStatus.v1.0.0.json +0 -80
- package/src/cvcs/referralOrigin.v1.0.0.json +0 -26
- package/src/cvcs/riskIdentificationMilestone.v1.0.0.json +0 -109
- package/src/cvcs/subjectType.v1.0.0.json +0 -80
- package/src/validation/cvcStatus.ts +0 -209
package/dist/constants/index.cjs
CHANGED
|
@@ -1675,7 +1675,6 @@ var INCIDENT_PARTICIPATION_ROLE = {
|
|
|
1675
1675
|
DATA_ENTRY: "data_entry",
|
|
1676
1676
|
OTHER_INCIDENT_RESPONDER: "other_incident_responder",
|
|
1677
1677
|
RESPONDING_OFFICER: "responding_officer",
|
|
1678
|
-
LEGAL_PROFESSIONAL: "legal_professional",
|
|
1679
1678
|
UNKNOWN: "unknown",
|
|
1680
1679
|
ANONYMOUS: "anonymous",
|
|
1681
1680
|
DATA_NOT_COLLECTED: "data_not_collected"
|
|
@@ -1692,7 +1691,6 @@ var INCIDENT_PARTICIPATION_ROLE_VALUES = [
|
|
|
1692
1691
|
INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY,
|
|
1693
1692
|
INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER,
|
|
1694
1693
|
INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER,
|
|
1695
|
-
INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL,
|
|
1696
1694
|
INCIDENT_PARTICIPATION_ROLE.UNKNOWN,
|
|
1697
1695
|
INCIDENT_PARTICIPATION_ROLE.ANONYMOUS,
|
|
1698
1696
|
INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED
|
|
@@ -1709,7 +1707,6 @@ var INCIDENT_PARTICIPATION_ROLE_LABELS = {
|
|
|
1709
1707
|
[INCIDENT_PARTICIPATION_ROLE.DATA_ENTRY]: "Data Entry / Editor",
|
|
1710
1708
|
[INCIDENT_PARTICIPATION_ROLE.OTHER_INCIDENT_RESPONDER]: "VSP or Other Incident Responder",
|
|
1711
1709
|
[INCIDENT_PARTICIPATION_ROLE.RESPONDING_OFFICER]: "LE Responding Officer",
|
|
1712
|
-
[INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL]: "Legal Professional",
|
|
1713
1710
|
[INCIDENT_PARTICIPATION_ROLE.UNKNOWN]: "Unknown",
|
|
1714
1711
|
[INCIDENT_PARTICIPATION_ROLE.ANONYMOUS]: "Anonymous",
|
|
1715
1712
|
[INCIDENT_PARTICIPATION_ROLE.DATA_NOT_COLLECTED]: "Not Collected"
|
|
@@ -1727,8 +1724,7 @@ var PARTICIPATION_ROLE_CATEGORIES = {
|
|
|
1727
1724
|
],
|
|
1728
1725
|
SYSTEM_PROFESSIONAL: [
|
|
1729
1726
|
INCIDENT_PARTICIPATION_ROLE.SERVICE_PROVIDER_STAFF,
|
|
1730
|
-
INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF
|
|
1731
|
-
INCIDENT_PARTICIPATION_ROLE.LEGAL_PROFESSIONAL
|
|
1727
|
+
INCIDENT_PARTICIPATION_ROLE.MEDICAL_PROVIDER_STAFF
|
|
1732
1728
|
]
|
|
1733
1729
|
};
|
|
1734
1730
|
var CALLER_IS_VICTIM_ROLES = [
|
|
@@ -4201,7 +4197,6 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4201
4197
|
"abuser_unemployed",
|
|
4202
4198
|
"access_to_vulnerable_individuals",
|
|
4203
4199
|
"acknowledgement_or_report_of_human_trafficking",
|
|
4204
|
-
"active_protective_order",
|
|
4205
4200
|
"ads_available_247",
|
|
4206
4201
|
"ads_imply_multiple_workers",
|
|
4207
4202
|
"ads_prost_slang",
|
|
@@ -4225,7 +4220,6 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4225
4220
|
"cannot_stop_working_or_freely_leave",
|
|
4226
4221
|
"child_not_abusers_in_household",
|
|
4227
4222
|
"child_welfare_system_involvement",
|
|
4228
|
-
"clients_unaware_of_third_party_coordination",
|
|
4229
4223
|
"coerced_to_misrepresent_identity_or_activity",
|
|
4230
4224
|
"coercive_debt_pressure",
|
|
4231
4225
|
"coercive_debt_pressure_youth",
|
|
@@ -4248,7 +4242,6 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4248
4242
|
"debt_terms_deceptive_youth",
|
|
4249
4243
|
"denied_basic_needs",
|
|
4250
4244
|
"depends_on_employer_for_immigration_status",
|
|
4251
|
-
"depends_on_spouse_or_family_for_immigration_status",
|
|
4252
4245
|
"does_not_control_finances_or_earnings",
|
|
4253
4246
|
"does_not_control_identity_documents",
|
|
4254
4247
|
"elevated_lethality_risk_signal",
|
|
@@ -4342,8 +4335,6 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4342
4335
|
"several_cell_phones_or_frequent_number_changes",
|
|
4343
4336
|
"sex_acts_in_own_residence",
|
|
4344
4337
|
"sexual_exploitation",
|
|
4345
|
-
"sexualized_content_in_person_performance_activity",
|
|
4346
|
-
"sexualized_content_online_performance_activity",
|
|
4347
4338
|
"sexualized_content_performance_activity",
|
|
4348
4339
|
"shared_contact_network",
|
|
4349
4340
|
"signs_of_physical_abuse_confinement_or_neglect",
|
|
@@ -4389,7 +4380,6 @@ var CVC_136_CORE_INDICATOR_VALUES = [
|
|
|
4389
4380
|
"trafficking_experience_past_10plusy",
|
|
4390
4381
|
"trafficking_experience_past_3to10y",
|
|
4391
4382
|
"trafficking_experience_past_lt3y",
|
|
4392
|
-
"trauma_perpetrator_is_current_manager",
|
|
4393
4383
|
"travel_organized_by_third_party",
|
|
4394
4384
|
"tricked_or_pressured_into_unwanted_acts",
|
|
4395
4385
|
"under_18_advertised_age",
|
|
@@ -4418,8 +4408,7 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4418
4408
|
"abuser_threatened_suicide": "Abuser threatened suicide",
|
|
4419
4409
|
"abuser_unemployed": "Abuser is unemployed",
|
|
4420
4410
|
"access_to_vulnerable_individuals": "Access to or connections with vulnerable individuals",
|
|
4421
|
-
"acknowledgement_or_report_of_human_trafficking": "
|
|
4422
|
-
"active_protective_order": "Active protective order (client-reported)",
|
|
4411
|
+
"acknowledgement_or_report_of_human_trafficking": "Acknowledgement or report of human trafficking",
|
|
4423
4412
|
"ads_available_247": "Advertises available anytime / 24-7",
|
|
4424
4413
|
"ads_imply_multiple_workers": "Ads imply multiple workers",
|
|
4425
4414
|
"ads_prost_slang": "Ad uses prostitution slang",
|
|
@@ -4443,7 +4432,6 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4443
4432
|
"cannot_stop_working_or_freely_leave": "Cannot stop working or freely leave home/work",
|
|
4444
4433
|
"child_not_abusers_in_household": "Child in household who is not the abuser's biological child",
|
|
4445
4434
|
"child_welfare_system_involvement": "Child welfare system involvement (history)",
|
|
4446
|
-
"clients_unaware_of_third_party_coordination": "Clients unaware they are coordinating with a third party (concealed dispatch)",
|
|
4447
4435
|
"coerced_to_misrepresent_identity_or_activity": "Coerced to misrepresent age, identity, or work activity to outsiders",
|
|
4448
4436
|
"coercive_debt_pressure": "Pressured to do things to pay off debt (coercive debt repayment)",
|
|
4449
4437
|
"coercive_debt_pressure_youth": "Pressured to do things to pay off debt (youth missing-from-care)",
|
|
@@ -4466,7 +4454,6 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4466
4454
|
"debt_terms_deceptive_youth": "Debt repayment terms differed from what was expected (youth missing-from-care)",
|
|
4467
4455
|
"denied_basic_needs": "Denied basic needs (food, water, sleep, medical care)",
|
|
4468
4456
|
"depends_on_employer_for_immigration_status": "Depends on employer for immigration status (tied visa / living with employer)",
|
|
4469
|
-
"depends_on_spouse_or_family_for_immigration_status": "Depends on spouse / family member for immigration status (tied family visa)",
|
|
4470
4457
|
"does_not_control_finances_or_earnings": "Limited independence: does not control finances or earnings",
|
|
4471
4458
|
"does_not_control_identity_documents": "Limited independence: does not control identity documents",
|
|
4472
4459
|
"elevated_lethality_risk_signal": "Elevated lethality risk",
|
|
@@ -4560,8 +4547,6 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4560
4547
|
"several_cell_phones_or_frequent_number_changes": "Several cell phones or frequently changing phone number",
|
|
4561
4548
|
"sex_acts_in_own_residence": "Sex acts take place in person's own residence",
|
|
4562
4549
|
"sexual_exploitation": "Sexual exploitation (general)",
|
|
4563
|
-
"sexualized_content_in_person_performance_activity": "In-person sexualized performance / appearance-based activity",
|
|
4564
|
-
"sexualized_content_online_performance_activity": "Online sexual performance / interactive sexual content activity",
|
|
4565
4550
|
"sexualized_content_performance_activity": "Sexualized content, performance, or communications activity",
|
|
4566
4551
|
"shared_contact_network": "Shares a contact network (phones/handles)",
|
|
4567
4552
|
"signs_of_physical_abuse_confinement_or_neglect": "Signs of physical abuse, confinement, or neglect (observed)",
|
|
@@ -4607,7 +4592,6 @@ var CVC_136_CORE_INDICATOR_LABELS = {
|
|
|
4607
4592
|
"trafficking_experience_past_10plusy": "Trafficking experience recency: 10+ years since last experience",
|
|
4608
4593
|
"trafficking_experience_past_3to10y": "Trafficking experience recency: 3\u201310 years since last experience",
|
|
4609
4594
|
"trafficking_experience_past_lt3y": "Trafficking experience recency: less than 3 years since last experience",
|
|
4610
|
-
"trauma_perpetrator_is_current_manager": "Trauma perpetrator is a current manager / facilitator (trauma-bonded control)",
|
|
4611
4595
|
"travel_organized_by_third_party": "Travel organized by a third party (sex provider does not control own movement)",
|
|
4612
4596
|
"tricked_or_pressured_into_unwanted_acts": "Tricked or pressured into unwanted acts or activities (generic coercion)",
|
|
4613
4597
|
"under_18_advertised_age": "Under 18 (ad-derived / advertised age)",
|