@htilabs/platform-common-models 0.15.0 → 0.18.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/agency-BHv54o79.d.ts +484 -0
- package/dist/agency-Ca4pCOOf.d.ts +342 -0
- package/dist/agency-DYCv839V.d.cts +342 -0
- package/dist/agency-Djp57S71.d.cts +484 -0
- package/dist/constants/index.cjs +952 -0
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +3 -1
- package/dist/constants/index.d.ts +3 -1
- package/dist/constants/index.js +920 -0
- package/dist/constants/index.js.map +1 -1
- package/dist/{cvcEntry-DaDrEuTa.d.cts → cvcEntry-0BIB9sen.d.cts} +44 -44
- package/dist/{cvcEntry-DaDrEuTa.d.ts → cvcEntry-0BIB9sen.d.ts} +44 -44
- package/dist/cvcs/index.cjs +182 -77
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +187 -78
- package/dist/cvcs/index.d.ts +187 -78
- package/dist/cvcs/index.js +182 -77
- package/dist/cvcs/index.js.map +1 -1
- package/dist/enums/index.cjs +3 -1
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.cts +7 -5
- package/dist/enums/index.d.ts +7 -5
- package/dist/enums/index.js +3 -1
- package/dist/enums/index.js.map +1 -1
- package/dist/{index-C0J3f169.d.ts → index-CDoqrfc1.d.ts} +1 -1
- package/dist/{index-EPjPjR0z.d.cts → index-Zu_mOJRn.d.cts} +1 -1
- package/dist/index.cjs +1704 -1073
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +1650 -1072
- 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/org-type-BYQb9Qzq.d.ts +366 -0
- package/dist/org-type-D_FG4KdN.d.cts +366 -0
- package/dist/{platform-auth-CrF5U_JH.d.cts → platform-auth-CvAYFVhK.d.cts} +39 -0
- package/dist/{platform-auth-CrF5U_JH.d.ts → platform-auth-CvAYFVhK.d.ts} +39 -0
- package/dist/schemas/index.cjs +977 -2
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +38 -35
- package/dist/schemas/index.d.ts +38 -35
- package/dist/schemas/index.js +962 -1
- 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 +894 -2
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +5 -1
- package/dist/validation/index.d.ts +5 -1
- package/dist/validation/index.js +884 -1
- package/dist/validation/index.js.map +1 -1
- package/package.json +26 -27
- package/src/__tests__/__snapshots__/cvc-sot.snap +5 -5
- 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 +13 -10
- package/src/__tests__/cvc-status-parser.test.ts +1 -1
- package/src/__tests__/cvc-structural.test.ts +3 -3
- package/src/__tests__/org-type-contract.test.ts +1353 -0
- package/src/__tests__/referral-entity-category-canon.test.ts +255 -81
- package/src/constants/ic.ts +45 -0
- package/src/constants/index.ts +1 -0
- package/src/constants/org-type.ts +703 -0
- package/src/cvcs/{coreFunctions.v1.0.0.json → coreFunctions.v1.1.0.json} +11 -2
- package/src/cvcs/index.ts +3 -3
- package/src/cvcs/{referralEntityCategory.v1.1.0.json → referralEntityCategory.v1.2.0.json} +111 -59
- package/src/cvcs/{roiScope.v1.0.0.json → roiScope.v1.2.0.json} +51 -7
- package/src/generated/cvc-enums.ts +7 -5
- package/src/index.ts +23 -0
- package/src/schemas/agency.ts +481 -0
- package/src/schemas/index.ts +24 -0
- package/src/validation/agency.ts +119 -0
- package/src/validation/index.ts +1 -0
- package/dist/team-C4LJ5Tex.d.cts +0 -333
- package/dist/team-C4LJ5Tex.d.ts +0 -333
package/dist/enums/index.d.cts
CHANGED
|
@@ -1304,7 +1304,7 @@ type LocationTypeKey = keyof typeof LocationTypeKeys;
|
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Key → positional code map for the `referral_entity_category` CVC domain.
|
|
1306
1306
|
*
|
|
1307
|
-
* Domain: `referral_entity_category` · Version: 1.
|
|
1307
|
+
* Domain: `referral_entity_category` · Version: 1.2.0 · Entries: 47
|
|
1308
1308
|
*/
|
|
1309
1309
|
declare const ReferralEntityCategoryKeys: {
|
|
1310
1310
|
readonly missingness_root: "048-000-000-000-000-000-000";
|
|
@@ -1322,6 +1322,7 @@ declare const ReferralEntityCategoryKeys: {
|
|
|
1322
1322
|
readonly hotlines: "048-006-000-000-000-000-000";
|
|
1323
1323
|
readonly national_hotline: "048-006-001-000-000-000-000";
|
|
1324
1324
|
readonly local_other_hotline: "048-006-002-000-000-000-000";
|
|
1325
|
+
readonly hotline: "048-006-003-000-000-000-000";
|
|
1325
1326
|
readonly justice_protective_systems: "048-007-000-000-000-000-000";
|
|
1326
1327
|
readonly child_welfare_cps: "048-007-001-000-000-000-000";
|
|
1327
1328
|
readonly juvenile_justice: "048-007-002-000-000-000-000";
|
|
@@ -3693,9 +3694,9 @@ declare const RiskCategoryKeys: {
|
|
|
3693
3694
|
};
|
|
3694
3695
|
type RiskCategoryKey = keyof typeof RiskCategoryKeys;
|
|
3695
3696
|
/**
|
|
3696
|
-
* Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, verified v1.0 — the Canonical Authorization Model function registry:
|
|
3697
|
+
* Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, verified v1.0 — the Canonical Authorization Model function registry: 78 functions (the verified 77 + `note_open_departed_author`, 133-078, appended 2026-10-05) the roles → functions → gates/tiers graph is built over. NOT provisional numbering. Per-entry lifecycle Status (v1 / future / not-started), Platform Relevance, user/admin relevance and Category are carried in each entry's definition, since the CVC entry schema has no fields for them).
|
|
3697
3698
|
*
|
|
3698
|
-
* Domain: `core_functions` · Version: 1.
|
|
3699
|
+
* Domain: `core_functions` · Version: 1.1.0 · Entries: 82
|
|
3699
3700
|
*/
|
|
3700
3701
|
declare const CoreFunctionsKeys: {
|
|
3701
3702
|
readonly missingness_root: "133-000-000-000-000-000-000";
|
|
@@ -3779,6 +3780,7 @@ declare const CoreFunctionsKeys: {
|
|
|
3779
3780
|
readonly training_content_upload: "133-075-000-000-000-000-000";
|
|
3780
3781
|
readonly training_gate_manage: "133-076-000-000-000-000-000";
|
|
3781
3782
|
readonly usr_manage: "133-077-000-000-000-000-000";
|
|
3783
|
+
readonly note_open_departed_author: "133-078-000-000-000-000-000";
|
|
3782
3784
|
};
|
|
3783
3785
|
type CoreFunctionsKey = keyof typeof CoreFunctionsKeys;
|
|
3784
3786
|
/**
|
|
@@ -3884,9 +3886,9 @@ declare const CoreInformationScopeKeys: {
|
|
|
3884
3886
|
};
|
|
3885
3887
|
type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;
|
|
3886
3888
|
/**
|
|
3887
|
-
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY;
|
|
3889
|
+
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 25 live + 2 RETIRED tombstones (`screen_notes`, `background`; retired 2026-10-05, matching CVC-236 v1.1.0) that keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` and include nothing — never offer them. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES).
|
|
3888
3890
|
*
|
|
3889
|
-
* Domain: `roi_scope` · Version: 1.
|
|
3891
|
+
* Domain: `roi_scope` · Version: 1.2.0 · Entries: 31
|
|
3890
3892
|
*/
|
|
3891
3893
|
declare const RoiScopeKeys: {
|
|
3892
3894
|
readonly missingness_root: "983-000-000-000-000-000-000";
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -1304,7 +1304,7 @@ type LocationTypeKey = keyof typeof LocationTypeKeys;
|
|
|
1304
1304
|
/**
|
|
1305
1305
|
* Key → positional code map for the `referral_entity_category` CVC domain.
|
|
1306
1306
|
*
|
|
1307
|
-
* Domain: `referral_entity_category` · Version: 1.
|
|
1307
|
+
* Domain: `referral_entity_category` · Version: 1.2.0 · Entries: 47
|
|
1308
1308
|
*/
|
|
1309
1309
|
declare const ReferralEntityCategoryKeys: {
|
|
1310
1310
|
readonly missingness_root: "048-000-000-000-000-000-000";
|
|
@@ -1322,6 +1322,7 @@ declare const ReferralEntityCategoryKeys: {
|
|
|
1322
1322
|
readonly hotlines: "048-006-000-000-000-000-000";
|
|
1323
1323
|
readonly national_hotline: "048-006-001-000-000-000-000";
|
|
1324
1324
|
readonly local_other_hotline: "048-006-002-000-000-000-000";
|
|
1325
|
+
readonly hotline: "048-006-003-000-000-000-000";
|
|
1325
1326
|
readonly justice_protective_systems: "048-007-000-000-000-000-000";
|
|
1326
1327
|
readonly child_welfare_cps: "048-007-001-000-000-000-000";
|
|
1327
1328
|
readonly juvenile_justice: "048-007-002-000-000-000-000";
|
|
@@ -3693,9 +3694,9 @@ declare const RiskCategoryKeys: {
|
|
|
3693
3694
|
};
|
|
3694
3695
|
type RiskCategoryKey = keyof typeof RiskCategoryKeys;
|
|
3695
3696
|
/**
|
|
3696
|
-
* Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, verified v1.0 — the Canonical Authorization Model function registry:
|
|
3697
|
+
* Key → positional code map for the `core_functions` CVC domain (CANONICAL Notion CVC-133 `core - functions`, verified v1.0 — the Canonical Authorization Model function registry: 78 functions (the verified 77 + `note_open_departed_author`, 133-078, appended 2026-10-05) the roles → functions → gates/tiers graph is built over. NOT provisional numbering. Per-entry lifecycle Status (v1 / future / not-started), Platform Relevance, user/admin relevance and Category are carried in each entry's definition, since the CVC entry schema has no fields for them).
|
|
3697
3698
|
*
|
|
3698
|
-
* Domain: `core_functions` · Version: 1.
|
|
3699
|
+
* Domain: `core_functions` · Version: 1.1.0 · Entries: 82
|
|
3699
3700
|
*/
|
|
3700
3701
|
declare const CoreFunctionsKeys: {
|
|
3701
3702
|
readonly missingness_root: "133-000-000-000-000-000-000";
|
|
@@ -3779,6 +3780,7 @@ declare const CoreFunctionsKeys: {
|
|
|
3779
3780
|
readonly training_content_upload: "133-075-000-000-000-000-000";
|
|
3780
3781
|
readonly training_gate_manage: "133-076-000-000-000-000-000";
|
|
3781
3782
|
readonly usr_manage: "133-077-000-000-000-000-000";
|
|
3783
|
+
readonly note_open_departed_author: "133-078-000-000-000-000-000";
|
|
3782
3784
|
};
|
|
3783
3785
|
type CoreFunctionsKey = keyof typeof CoreFunctionsKeys;
|
|
3784
3786
|
/**
|
|
@@ -3884,9 +3886,9 @@ declare const CoreInformationScopeKeys: {
|
|
|
3884
3886
|
};
|
|
3885
3887
|
type CoreInformationScopeKey = keyof typeof CoreInformationScopeKeys;
|
|
3886
3888
|
/**
|
|
3887
|
-
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY;
|
|
3889
|
+
* Key → positional code map for the `roi_scope` CVC domain (DRAFT-TEMPORARY; LEGACY flat item vocabulary, superseded for new work by `core_information_scope` (CVC-236). 27 ROI scope ITEMS: 25 live + 2 RETIRED tombstones (`screen_notes`, `background`; retired 2026-10-05, matching CVC-236 v1.1.0) that keep their codes so a stored value resolves, but are `selectable: false` + `retired: true` and include nothing — never offer them. The item axis only — named bundles over these items are ROI_SCOPE_PRESET_NAMES).
|
|
3888
3890
|
*
|
|
3889
|
-
* Domain: `roi_scope` · Version: 1.
|
|
3891
|
+
* Domain: `roi_scope` · Version: 1.2.0 · Entries: 31
|
|
3890
3892
|
*/
|
|
3891
3893
|
declare const RoiScopeKeys: {
|
|
3892
3894
|
readonly missingness_root: "983-000-000-000-000-000-000";
|
package/dist/enums/index.js
CHANGED
|
@@ -1056,6 +1056,7 @@ var ReferralEntityCategoryKeys = {
|
|
|
1056
1056
|
hotlines: "048-006-000-000-000-000-000",
|
|
1057
1057
|
national_hotline: "048-006-001-000-000-000-000",
|
|
1058
1058
|
local_other_hotline: "048-006-002-000-000-000-000",
|
|
1059
|
+
hotline: "048-006-003-000-000-000-000",
|
|
1059
1060
|
justice_protective_systems: "048-007-000-000-000-000-000",
|
|
1060
1061
|
child_welfare_cps: "048-007-001-000-000-000-000",
|
|
1061
1062
|
juvenile_justice: "048-007-002-000-000-000-000",
|
|
@@ -2888,7 +2889,8 @@ var CoreFunctionsKeys = {
|
|
|
2888
2889
|
thread_share_send: "133-074-000-000-000-000-000",
|
|
2889
2890
|
training_content_upload: "133-075-000-000-000-000-000",
|
|
2890
2891
|
training_gate_manage: "133-076-000-000-000-000-000",
|
|
2891
|
-
usr_manage: "133-077-000-000-000-000-000"
|
|
2892
|
+
usr_manage: "133-077-000-000-000-000-000",
|
|
2893
|
+
note_open_departed_author: "133-078-000-000-000-000-000"
|
|
2892
2894
|
};
|
|
2893
2895
|
var NeedsAssessmentChangeTypeKeys = {
|
|
2894
2896
|
missingness_root: "982-000-000-000-000-000-000",
|