@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htilabs/platform-common-models",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "Shared constants, types, and models for HTI Labs applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -187,8 +187,8 @@
187
187
  "hash": "ba2c6ddb0ef60863d88690f8c82d54208c1eb13b3546e4a5e49c4a2ec8a7517c"
188
188
  },
189
189
  "source_subtype": {
190
- "count": 35,
191
- "hash": "3c039024ef731abc2eb9f3ba9ae1860b75531e1b92e58a6bf74402444f59b773"
190
+ "count": 39,
191
+ "hash": "90eefc3e2a4f924779239ae110fb271f8e5c1c34f30dc96ff0ffc40d23ed90e3"
192
192
  },
193
193
  "support_strength": {
194
194
  "count": 11,
@@ -207,8 +207,8 @@
207
207
  "hash": "5f98f5304468ccbc8b06c83388edcfc51abde67b3e8e7c66de55d9fafb0776c5"
208
208
  },
209
209
  "verification_method": {
210
- "count": 9,
211
- "hash": "7054ed373cb1b6c7f9a71e9729625bedb8128c94c1fd3afb3063fcc7e505ccfe"
210
+ "count": 11,
211
+ "hash": "ab1b4f974093be3a289544ecc859f86ae815109cba8a7b881d34828c505bf816"
212
212
  },
213
213
  "quality_flags": {
214
214
  "count": 9,
@@ -495,8 +495,8 @@
495
495
  "hash": "03ce0a04e8a2ea49b39aaa45a7b11a2a9feb457637c6c6620a46fcb83e041442"
496
496
  },
497
497
  "ht_type": {
498
- "count": 7,
499
- "hash": "06791c74cc85afdf167e4222b0d0b87a765d449ab936efe1412429d4e2765370"
498
+ "count": 8,
499
+ "hash": "689c23880771fae764d0927f5872e250e0f6173eef0c162a192c477b6f638458"
500
500
  },
501
501
  "relationship_concern": {
502
502
  "count": 11,
@@ -509,6 +509,38 @@
509
509
  "housing_subsidy_types": {
510
510
  "count": 16,
511
511
  "hash": "4341619e6016822fcc353987a635421c767391a85f2ff7602726ca02bfa0f4f7"
512
+ },
513
+ "assertion_domain": {
514
+ "count": 68,
515
+ "hash": "814b932cfd24f6d2f931c333806735c25c2239e32388918aafec090de4ef468a"
516
+ },
517
+ "activity_type": {
518
+ "count": 14,
519
+ "hash": "ac980d852c4efc88db745fae50e7cd9ef6f94df3f9d4f90603b2960af4f55a68"
520
+ },
521
+ "provenance_source_id": {
522
+ "count": 13,
523
+ "hash": "4452b7ce856f13be7d7bb4b578943d15eef105140ec88fe03a0d8370f9d98a28"
524
+ },
525
+ "radius_bucket": {
526
+ "count": 9,
527
+ "hash": "0c59ba7bd11ff24fe7420f9164a090016ff783a1666b2c380c8b4ee43f0c9d39"
528
+ },
529
+ "contact_link_type": {
530
+ "count": 8,
531
+ "hash": "2dd40c3fcaf9faabb8bf7524c8acfc82e20e020fb32b990e10df2efef95feda1"
532
+ },
533
+ "suggestion_source": {
534
+ "count": 6,
535
+ "hash": "773fc417d9f296b65f653f0c0a6b686a64bcf8838f9a3f39940b2b651ac273d9"
536
+ },
537
+ "roi_method": {
538
+ "count": 10,
539
+ "hash": "e9413c62e1b0879027a1509500f2e14faf7e0fa9bb60808dd6d1184de53c3087"
540
+ },
541
+ "session_note_visibility": {
542
+ "count": 7,
543
+ "hash": "6ad8e821e790b3ba303578c1ea78081d48264a96765299002b5545a7e78be3d0"
512
544
  }
513
545
  }
514
546
  }
@@ -416,7 +416,7 @@ const SOT_SPECS: readonly SotSpec[] = [
416
416
  {
417
417
  file: "sourceSubtype.v1.1.0.json",
418
418
  domain: "source_subtype",
419
- expectedCount: 35,
419
+ expectedCount: 39,
420
420
  },
421
421
  // CVC-139 — support_strength (formerly evidence_tier). 7 substantive Level-1
422
422
  // entries + 1 missingness root + 3 canonical missingness children = 11.
@@ -454,7 +454,7 @@ const SOT_SPECS: readonly SotSpec[] = [
454
454
  {
455
455
  file: "verificationMethod.v1.0.0.json",
456
456
  domain: "verification_method",
457
- expectedCount: 9,
457
+ expectedCount: 11,
458
458
  },
459
459
  // CVC-144 — quality_flags. 5 substantive Level-1 entries
460
460
  // (circular_model_label_risk, data_redacted, inconsistent, self_report_only,
@@ -564,10 +564,10 @@ const SOT_SPECS: readonly SotSpec[] = [
564
564
  // CVC-73 victim_abuse_types — 25 non-HT VOCA abuse types + 1 missingness
565
565
  // root + 3 canonical missingness children = 29.
566
566
  { file: "victimAbuseTypes.v1.0.0.json", domain: "victim_abuse_types", expectedCount: 29 },
567
- // CVC-72 ht_type — 3 substantive trafficking types (sex, labor,
568
- // sex_and_labor; `none` dropped per Notion 4-code set) + 1 missingness
569
- // root + 3 canonical missingness children = 7.
570
- { file: "htType.v1.0.0.json", domain: "ht_type", expectedCount: 7 },
567
+ // CVC-72 ht_type — 4 substantive types (sex, labor, sex_and_labor, none;
568
+ // `none` = negative determination, canonical per Crysta directive 2026-05-27)
569
+ // + 1 missingness root + 3 canonical missingness children = 8.
570
+ { file: "htType.v1.0.0.json", domain: "ht_type", expectedCount: 8 },
571
571
  // PROVISIONAL CVC-231 relationship_concern — 7 TRA relationship-concern
572
572
  // codes + 1 missingness root + 3 canonical missingness children = 11.
573
573
  // CVC number is PROVISIONAL pending codebook-session ratification.
@@ -586,6 +586,14 @@ const SOT_SPECS: readonly SotSpec[] = [
586
586
  // root + 3 canonical missingness children = 16. CVC number is PROVISIONAL
587
587
  // pending ratification.
588
588
  { file: "housingSubsidyTypes.v1.0.0.json", domain: "housing_subsidy_types", expectedCount: 16 },
589
+ { file: "assertionDomain.v1.0.0.json", domain: "assertion_domain", expectedCount: 68 },
590
+ { file: "activityType.v1.0.0.json", domain: "activity_type", expectedCount: 14 },
591
+ { file: "provenanceSourceId.v1.0.0.json", domain: "provenance_source_id", expectedCount: 13 },
592
+ { file: "radiusBucket.v1.0.0.json", domain: "radius_bucket", expectedCount: 9 },
593
+ { file: "contactLinkType.v1.0.0.json", domain: "contact_link_type", expectedCount: 8 },
594
+ { file: "suggestionSource.v1.0.0.json", domain: "suggestion_source", expectedCount: 6 },
595
+ { file: "roiMethod.v1.0.0.json", domain: "roi_method", expectedCount: 10 },
596
+ { file: "sessionNoteVisibility.v1.0.0.json", domain: "session_note_visibility", expectedCount: 7 },
589
597
  ] as const;
590
598
 
591
599
  // ─── Helpers ────────────────────────────────────────────────────────────────
@@ -0,0 +1,143 @@
1
+ {
2
+ "domain": "activity_type",
3
+ "name": "activityType",
4
+ "version": "1.0.0",
5
+ "_status": "PROVISIONAL — net-new value-CVC not yet in Notion; provisional 900+ numbering; substantive values sourced verbatim from the PAVE @pave/domain enum of the same name (D10 source-from-platform-common). PENDING canonical Notion authoring + steward ratification of titles/definitions.",
6
+ "_source": "pave-2.0/packages/domain/src/enums.ts",
7
+ "levels": {
8
+ "0": "Unknown or Missing",
9
+ "1": "Activity type"
10
+ },
11
+ "entries": [
12
+ {
13
+ "code": "965-000-000-000-000-000-000",
14
+ "key": "missingness_root",
15
+ "title": "Unknown, Redacted, or Missing",
16
+ "selectable": false,
17
+ "parentCode": null,
18
+ "childCodes": [
19
+ "965-000-000-000-000-000-001",
20
+ "965-000-000-000-000-000-002",
21
+ "965-000-000-000-000-000-003"
22
+ ],
23
+ "definition": "Root group for values indicating absent, withheld, or uncollected data."
24
+ },
25
+ {
26
+ "code": "965-000-000-000-000-000-001",
27
+ "key": "unknown",
28
+ "title": "Unknown",
29
+ "selectable": true,
30
+ "parentCode": "965-000-000-000-000-000-000",
31
+ "childCodes": [],
32
+ "definition": "The activity_type is unknown or cannot be determined."
33
+ },
34
+ {
35
+ "code": "965-000-000-000-000-000-002",
36
+ "key": "anonymous",
37
+ "title": "Anonymous / declined to answer",
38
+ "selectable": true,
39
+ "parentCode": "965-000-000-000-000-000-000",
40
+ "childCodes": [],
41
+ "definition": "Value is intentionally withheld, declined, or redacted."
42
+ },
43
+ {
44
+ "code": "965-000-000-000-000-000-003",
45
+ "key": "data_not_collected",
46
+ "title": "Data not collected",
47
+ "selectable": true,
48
+ "parentCode": "965-000-000-000-000-000-000",
49
+ "childCodes": [],
50
+ "definition": "No attempt was made to collect the value."
51
+ },
52
+ {
53
+ "code": "965-001-000-000-000-000-000",
54
+ "key": "resided",
55
+ "title": "Resided",
56
+ "selectable": true,
57
+ "parentCode": null,
58
+ "childCodes": [],
59
+ "definition": "Activity type 'resided' recorded on a person/relationship interaction."
60
+ },
61
+ {
62
+ "code": "965-002-000-000-000-000-000",
63
+ "key": "sheltered",
64
+ "title": "Sheltered",
65
+ "selectable": true,
66
+ "parentCode": null,
67
+ "childCodes": [],
68
+ "definition": "Activity type 'sheltered' recorded on a person/relationship interaction."
69
+ },
70
+ {
71
+ "code": "965-003-000-000-000-000-000",
72
+ "key": "service_delivered",
73
+ "title": "Service Delivered",
74
+ "selectable": true,
75
+ "parentCode": null,
76
+ "childCodes": [],
77
+ "definition": "Activity type 'service_delivered' recorded on a person/relationship interaction."
78
+ },
79
+ {
80
+ "code": "965-004-000-000-000-000-000",
81
+ "key": "met",
82
+ "title": "Met",
83
+ "selectable": true,
84
+ "parentCode": null,
85
+ "childCodes": [],
86
+ "definition": "Activity type 'met' recorded on a person/relationship interaction."
87
+ },
88
+ {
89
+ "code": "965-005-000-000-000-000-000",
90
+ "key": "advertised",
91
+ "title": "Advertised",
92
+ "selectable": true,
93
+ "parentCode": null,
94
+ "childCodes": [],
95
+ "definition": "Activity type 'advertised' recorded on a person/relationship interaction."
96
+ },
97
+ {
98
+ "code": "965-006-000-000-000-000-000",
99
+ "key": "arrested",
100
+ "title": "Arrested",
101
+ "selectable": true,
102
+ "parentCode": null,
103
+ "childCodes": [],
104
+ "definition": "Activity type 'arrested' recorded on a person/relationship interaction."
105
+ },
106
+ {
107
+ "code": "965-007-000-000-000-000-000",
108
+ "key": "visited",
109
+ "title": "Visited",
110
+ "selectable": true,
111
+ "parentCode": null,
112
+ "childCodes": [],
113
+ "definition": "Activity type 'visited' recorded on a person/relationship interaction."
114
+ },
115
+ {
116
+ "code": "965-008-000-000-000-000-000",
117
+ "key": "child_welfare_visit",
118
+ "title": "Child Welfare Visit",
119
+ "selectable": true,
120
+ "parentCode": null,
121
+ "childCodes": [],
122
+ "definition": "Activity type 'child_welfare_visit' recorded on a person/relationship interaction."
123
+ },
124
+ {
125
+ "code": "965-009-000-000-000-000-000",
126
+ "key": "incident",
127
+ "title": "Incident",
128
+ "selectable": true,
129
+ "parentCode": null,
130
+ "childCodes": [],
131
+ "definition": "Activity type 'incident' recorded on a person/relationship interaction."
132
+ },
133
+ {
134
+ "code": "965-010-000-000-000-000-000",
135
+ "key": "other",
136
+ "title": "Other",
137
+ "selectable": true,
138
+ "parentCode": null,
139
+ "childCodes": [],
140
+ "definition": "Activity type 'other' recorded on a person/relationship interaction."
141
+ }
142
+ ]
143
+ }