@htilabs/platform-common-models 0.15.0 → 0.17.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/cvcs/index.cjs +68 -15
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +76 -20
- package/dist/cvcs/index.d.ts +76 -20
- package/dist/cvcs/index.js +68 -15
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +2 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +5 -4
- package/dist/enums/index.d.ts +5 -4
- package/dist/enums/index.js +2 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-C0J3f169.d.ts → index-4DiJrn7y.d.ts} +1 -1
- package/dist/{index-EPjPjR0z.d.cts → index-qreOzXYS.d.cts} +1 -1
- package/dist/index.cjs +70 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +70 -16
- 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/schemas/index.d.cts +25 -25
- package/dist/schemas/index.d.ts +25 -25
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +3 -3
- package/src/__tests__/core-functions-canon.test.ts +53 -0
- package/src/__tests__/core-information-scope-invariant.test.ts +94 -4
- package/src/__tests__/cvc-sot-snapshot.test.ts +8 -5
- package/src/__tests__/cvc-status-parser.test.ts +1 -1
- package/src/__tests__/cvc-structural.test.ts +2 -2
- package/src/cvcs/{coreFunctions.v1.0.0.json → coreFunctions.v1.1.0.json} +11 -2
- package/src/cvcs/index.ts +2 -2
- package/src/cvcs/{roiScope.v1.0.0.json → roiScope.v1.2.0.json} +51 -7
- package/src/generated/cvc-enums.ts +5 -4
- package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-ctHTp2df.d.cts} +8 -8
- package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-ctHTp2df.d.ts} +8 -8
package/dist/cvcs/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ __export(cvcs_exports, {
|
|
|
46
46
|
contactLinkTypeSot: () => contactLinkType_v1_0_0_default,
|
|
47
47
|
contactSafetyStatusSot: () => contactSafetyStatus_v1_0_0_default,
|
|
48
48
|
coreDhStateSot: () => coreDhState_v1_0_0_default,
|
|
49
|
-
coreFunctionsSot: () =>
|
|
49
|
+
coreFunctionsSot: () => coreFunctions_v1_1_0_default,
|
|
50
50
|
coreIndicatorsSot: () => coreIndicators_v1_1_0_default,
|
|
51
51
|
coreInformationScopeSot: () => coreInformationScope_v1_1_0_default,
|
|
52
52
|
coreReferralOutcomeSot: () => coreReferralOutcome_v1_0_0_default,
|
|
@@ -153,7 +153,7 @@ __export(cvcs_exports, {
|
|
|
153
153
|
riskIdentificationMilestoneSot: () => riskIdentificationMilestone_v1_0_0_default,
|
|
154
154
|
riskSeverityBandSot: () => riskSeverityBand_v1_0_0_default,
|
|
155
155
|
roiMethodSot: () => roiMethod_v1_0_0_default,
|
|
156
|
-
roiScopeSot: () =>
|
|
156
|
+
roiScopeSot: () => roiScope_v1_2_0_default,
|
|
157
157
|
roiStatusSot: () => roiStatus_v1_0_0_default,
|
|
158
158
|
roleContextSot: () => roleContext_v1_0_0_default,
|
|
159
159
|
romanticRelationshipChangeTypeSot: () => romanticRelationshipChangeType_v1_0_0_default,
|
|
@@ -26597,12 +26597,12 @@ var riskCategory_v1_0_0_default = {
|
|
|
26597
26597
|
]
|
|
26598
26598
|
};
|
|
26599
26599
|
|
|
26600
|
-
// src/cvcs/coreFunctions.v1.
|
|
26601
|
-
var
|
|
26600
|
+
// src/cvcs/coreFunctions.v1.1.0.json
|
|
26601
|
+
var coreFunctions_v1_1_0_default = {
|
|
26602
26602
|
domain: "core_functions",
|
|
26603
26603
|
name: "Core Functions",
|
|
26604
|
-
version: "1.
|
|
26605
|
-
_status: "DRAFTED \u2014 NEEDS REVIEW: canonical Notion CVC-133 (core - functions), verified v1.0, ported verbatim from the Notion codebook. Canonical numbering (133), NOT provisional. Per-entry lifecycle Status (v1 / future / not-started) is carried in each definition.",
|
|
26604
|
+
version: "1.1.0",
|
|
26605
|
+
_status: "DRAFTED \u2014 NEEDS REVIEW: canonical Notion CVC-133 (core - functions), verified v1.0, ported verbatim from the Notion codebook. Canonical numbering (133), NOT provisional. Per-entry lifecycle Status (v1 / future / not-started) is carried in each definition. VERSION 1.1.0 (additive; ADR-CVC-0.8.13 Addendum 2026-10-05): APPENDS `note_open_departed_author` at 133-078 (added 2026-10-05 while building the Narrative notes Spec v2, rule 10; canon's own logic_notes mark the row as awaiting steward review (Crysta); canon `data/cvcs/core_functions.yaml` L68-93 @ prototype 9ef79748, unchanged at fed744f3, and the codebook_all.csv export). Default Off for Account Admin (MEM-ADM) only; bounds are not carried by this entry schema. Every 1.0.0 code and key is unchanged. Canon carries 112 functions; this SOT carries 78 \u2014 the other 34 canon rows are a separate absorb, not taken here.",
|
|
26606
26606
|
_source: "Notion CVC-133 core - functions (collection://3211ef14-abcd-8024-867d-000be4b35a79)",
|
|
26607
26607
|
levels: {
|
|
26608
26608
|
"0": "Unknown or Missing",
|
|
@@ -27341,6 +27341,15 @@ var coreFunctions_v1_0_0_default = {
|
|
|
27341
27341
|
parentCode: null,
|
|
27342
27342
|
childCodes: [],
|
|
27343
27343
|
definition: "Create, invite, deactivate, and manage user accounts within a member account or platform context. [Status: Defined; existing PAVE function. Platform: PLATFORM. User-relevant: no. Admin-relevant: yes. Category: Identity & access administration, Platform administration (HTI-only).]"
|
|
27344
|
+
},
|
|
27345
|
+
{
|
|
27346
|
+
code: "133-078-000-000-000-000-000",
|
|
27347
|
+
key: "note_open_departed_author",
|
|
27348
|
+
title: "Open a deactivated author's private notes",
|
|
27349
|
+
selectable: true,
|
|
27350
|
+
parentCode: null,
|
|
27351
|
+
childCodes: [],
|
|
27352
|
+
definition: `Move a deactivated author's "Private to me" notes to "Our account only", so the account can read notes whose author no longer has an account. The admin cannot read a note before opening it and cannot move it any further. [Status: Defined; new function. Platform: PAVE, THREAD. User-relevant: no. Admin-relevant: yes. Category: Account administration (member admin).]`
|
|
27344
27353
|
}
|
|
27345
27354
|
]
|
|
27346
27355
|
};
|
|
@@ -28773,13 +28782,55 @@ var coreInformationScope_v1_1_0_default = {
|
|
|
28773
28782
|
]
|
|
28774
28783
|
};
|
|
28775
28784
|
|
|
28776
|
-
// src/cvcs/roiScope.v1.
|
|
28777
|
-
var
|
|
28785
|
+
// src/cvcs/roiScope.v1.2.0.json
|
|
28786
|
+
var roiScope_v1_2_0_default = {
|
|
28778
28787
|
domain: "roi_scope",
|
|
28779
28788
|
name: "ROI Scope",
|
|
28780
|
-
version: "1.
|
|
28781
|
-
_status:
|
|
28782
|
-
_source: "htilabstech/prototype@a596eb9 HTI-LEADS-PAVE-Thread-prototype.html HTI_SHARE_SCOPE_GROUPS",
|
|
28789
|
+
version: "1.2.0",
|
|
28790
|
+
_status: 'DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering. 0.8.13: COMPLETED against the canonical 27-item source. 0.8.12 shipped 15 of the canonical 27; the missing 12 are added here. Nothing PAVE shipped was invented \u2014 this was purely a gap. Canonical source: `HTI_SHARE_SCOPE_GROUPS` in HTI-LEADS-PAVE-Thread-prototype.html @ HEAD a596eb9 (7 groups x items = 27): identifying (5) + risk (4) + contact (3) + notes (3) + health_accommodation (6) + immigration_legal_status (5) + system (1). The GROUP axis (identifying / risk / contact / notes / health_accommodation / immigration_legal_status / system) is a separate presentation concern and is deliberately NOT modelled as hierarchy rows here \u2014 this CVC is the flat item vocabulary that an ROI authorizes. PENDING canonical Notion authoring + steward ratification. VERSION 1.2.0 supersedes 1.1.0 (co-bwc): `screen_notes` (983-012) and `background` (983-014) are RETIRED TOMBSTONES, matching CVC-236 `core_information_scope` v1.1.0 (retired 2026-10-05, Narrative notes, signed Spec v2 rule 5). Each keeps its published code (never reused), is `selectable: false` + `retired: true`, and includes nothing: a stored ROI that names one resolves to "retired", not "unknown". Not additive, hence the version (ADR-CVC-0.8.13 Addendum 2026-10-05; see `_supersedes`). This flat vocabulary is LEGACY: new units (e.g. `session_summary`, 236-005-004) are minted in CVC-236 only and are not mirrored here.',
|
|
28791
|
+
_source: "htilabstech/prototype@a596eb9 HTI-LEADS-PAVE-Thread-prototype.html HTI_SHARE_SCOPE_GROUPS; v1.2.0 retirements: htilabstech/prototype/data/cvcs/core_information_scope.yaml @ 9ef79748 retired_units (L467)",
|
|
28792
|
+
_supersedes: {
|
|
28793
|
+
version: "1.1.0",
|
|
28794
|
+
keyMap: {
|
|
28795
|
+
missingness_root: "missingness_root",
|
|
28796
|
+
unknown: "unknown",
|
|
28797
|
+
anonymous: "anonymous",
|
|
28798
|
+
data_not_collected: "data_not_collected",
|
|
28799
|
+
names: "names",
|
|
28800
|
+
dob: "dob",
|
|
28801
|
+
addresses: "addresses",
|
|
28802
|
+
additional_ids: "additional_ids",
|
|
28803
|
+
demographics: "demographics",
|
|
28804
|
+
screen_indicators: "screen_indicators",
|
|
28805
|
+
victimization: "victimization",
|
|
28806
|
+
ida_full: "ida_full",
|
|
28807
|
+
ida_consid: "ida_consid",
|
|
28808
|
+
contact_info: "contact_info",
|
|
28809
|
+
service_history: "service_history",
|
|
28810
|
+
screen_notes: "screen_notes",
|
|
28811
|
+
case_notes: "case_notes",
|
|
28812
|
+
background: "background",
|
|
28813
|
+
system_info: "system_info",
|
|
28814
|
+
contact_history: "contact_history",
|
|
28815
|
+
accommodation_needs: "accommodation_needs",
|
|
28816
|
+
disability_subtypes: "disability_subtypes",
|
|
28817
|
+
mental_health_status: "mental_health_status",
|
|
28818
|
+
substance_use_status: "substance_use_status",
|
|
28819
|
+
chronic_health_status: "chronic_health_status",
|
|
28820
|
+
hiv_status: "hiv_status",
|
|
28821
|
+
immigration_status: "immigration_status",
|
|
28822
|
+
uscis_alien_number: "uscis_alien_number",
|
|
28823
|
+
federal_protection_applications: "federal_protection_applications",
|
|
28824
|
+
tvap_enrollment: "tvap_enrollment",
|
|
28825
|
+
le_report_status: "le_report_status"
|
|
28826
|
+
},
|
|
28827
|
+
retiredCodes: [],
|
|
28828
|
+
notes: {
|
|
28829
|
+
summary: 'Every v1.1.0 key is still an entry in v1.2.0, at its v1.1.0 code, so `keyMap` is the identity and `retiredCodes` is empty: no code was withdrawn. Non-additive because 2 published items are now RETIRED tombstones (notes below), matching CVC-236 `core_information_scope` v1.1.0, which retired the same two keys; nothing was added. Before this version the package gave two answers to "is screen_notes offerable" (co-bwc). The file was named `roiScope.v1.0.0.json` while declaring version 1.1.0 (the 0.8.13 completion); the published version superseded here is the declared 1.1.0.',
|
|
28830
|
+
screen_notes: "v1.1.0 `screen_notes` was a selectable item. Retired 2026-10-05 (Narrative notes, signed Spec v2 rule 5): The Initial Screen's notes box is an instrument note and belongs to the Initial Screen. It stays at 983-012 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI that names it narrows, never widens. CVC-236 v1.1.0 retired the same key (canon `data/cvcs/core_information_scope.yaml` `retired_units` L467 @ prototype 9ef79748); canon records that only demo data named it (Crysta 2026-10-04).",
|
|
28831
|
+
background: "v1.1.0 `background` was a selectable item. Retired 2026-10-05 (Narrative notes, signed Spec v2 rule 5): Nothing ever captured it. It stays at 983-014 as a tombstone (`selectable: false`, `retired: true`) with NO successor key, and includes nothing \u2014 a stored ROI that names it narrows, never widens. CVC-236 v1.1.0 retired the same key (canon `data/cvcs/core_information_scope.yaml` `retired_units` L467 @ prototype 9ef79748); canon records that only demo data named it (Crysta 2026-10-04)."
|
|
28832
|
+
}
|
|
28833
|
+
},
|
|
28783
28834
|
levels: {
|
|
28784
28835
|
"0": "Unknown or Missing",
|
|
28785
28836
|
"1": "ROI scope item"
|
|
@@ -28928,10 +28979,11 @@ var roiScope_v1_0_0_default = {
|
|
|
28928
28979
|
code: "983-012-000-000-000-000-000",
|
|
28929
28980
|
key: "screen_notes",
|
|
28930
28981
|
title: "Screen notes",
|
|
28931
|
-
selectable:
|
|
28982
|
+
selectable: false,
|
|
28932
28983
|
parentCode: null,
|
|
28933
28984
|
childCodes: [],
|
|
28934
|
-
definition: "Narrative notes
|
|
28985
|
+
definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5), matching its CVC-236 `core_information_scope` v1.1.0 twin. The Initial Screen's notes box is an instrument note and belongs to the Initial Screen. No longer offered in an ROI; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
|
|
28986
|
+
retired: true
|
|
28935
28987
|
},
|
|
28936
28988
|
{
|
|
28937
28989
|
code: "983-013-000-000-000-000-000",
|
|
@@ -28946,10 +28998,11 @@ var roiScope_v1_0_0_default = {
|
|
|
28946
28998
|
code: "983-014-000-000-000-000-000",
|
|
28947
28999
|
key: "background",
|
|
28948
29000
|
title: "Background information",
|
|
28949
|
-
selectable:
|
|
29001
|
+
selectable: false,
|
|
28950
29002
|
parentCode: null,
|
|
28951
29003
|
childCodes: [],
|
|
28952
|
-
definition: "
|
|
29004
|
+
definition: "RETIRED 2026-10-05 (Narrative notes, signed Spec v2 rule 5), matching its CVC-236 `core_information_scope` v1.1.0 twin. Nothing ever captured it. No longer offered in an ROI; a stored code resolves here so a reader can tell retired from unknown, and includes nothing.",
|
|
29005
|
+
retired: true
|
|
28953
29006
|
},
|
|
28954
29007
|
{
|
|
28955
29008
|
code: "983-015-000-000-000-000-000",
|