@htilabs/platform-common-models 0.8.22 → 0.8.24
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/cvc-C7qdsXYK.d.cts +298 -0
- package/dist/cvc-C7qdsXYK.d.ts +298 -0
- package/dist/cvcs/index.cjs +115 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +2310 -2182
- package/dist/cvcs/index.d.ts +2310 -2182
- package/dist/cvcs/index.js +114 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +130 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -4
- package/dist/index.d.ts +22 -4
- package/dist/index.js +128 -1
- package/dist/index.js.map +1 -1
- package/dist/validation/index.cjs +58 -0
- package/dist/validation/index.cjs.map +1 -1
- package/dist/validation/index.d.cts +82 -283
- package/dist/validation/index.d.ts +82 -283
- package/dist/validation/index.js +57 -0
- package/dist/validation/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +6 -2
- package/src/__tests__/cvc-sot-snapshot.test.ts +8 -1
- package/src/__tests__/cvc-status-parser.test.ts +150 -0
- package/src/cvcs/carCorrectionReason.v1.0.0.json +89 -0
- package/src/cvcs/index.ts +2 -0
- package/src/cvcs/sessionTemplate.v1.0.0.json +22 -0
- package/src/generated/cvc-enums.ts +21 -1
- package/src/validation/cvcStatus.ts +209 -0
- package/src/validation/index.ts +1 -0
package/dist/cvcs/index.js
CHANGED
|
@@ -33387,6 +33387,28 @@ var sessionTemplate_v1_0_0_default = {
|
|
|
33387
33387
|
childCodes: [],
|
|
33388
33388
|
definition: "Catch-all session template for non-field, non-hotline interactions conducted virtually (video or other virtual meeting formats) when no more specific template applies.",
|
|
33389
33389
|
canonicalCode: "CST-UNK-OTHER_VIRTUAL"
|
|
33390
|
+
},
|
|
33391
|
+
{
|
|
33392
|
+
code: "217-020-000-000-000-000-000",
|
|
33393
|
+
key: "cst_pave_inbound_share",
|
|
33394
|
+
title: "Inbound Share",
|
|
33395
|
+
selectable: true,
|
|
33396
|
+
parentCode: null,
|
|
33397
|
+
childCodes: [],
|
|
33398
|
+
definition: "Review a case another agency shared with your team \u2014 claim, set up the record, decide field by field.",
|
|
33399
|
+
canonicalCode: "CST-PAVE-INBOUND_SHARE",
|
|
33400
|
+
application: "PAVE"
|
|
33401
|
+
},
|
|
33402
|
+
{
|
|
33403
|
+
code: "217-021-000-000-000-000-000",
|
|
33404
|
+
key: "cst_thread_inbound_share",
|
|
33405
|
+
title: "Inbound Share",
|
|
33406
|
+
selectable: true,
|
|
33407
|
+
parentCode: null,
|
|
33408
|
+
childCodes: [],
|
|
33409
|
+
definition: "Review a case another agency shared with your team \u2014 claim, set up the record, decide field by field.",
|
|
33410
|
+
canonicalCode: "CST-THREAD-INBOUND_SHARE",
|
|
33411
|
+
application: "Thread"
|
|
33390
33412
|
}
|
|
33391
33413
|
]
|
|
33392
33414
|
};
|
|
@@ -42823,6 +42845,97 @@ var assertionStatus_v1_0_0_default = {
|
|
|
42823
42845
|
]
|
|
42824
42846
|
};
|
|
42825
42847
|
|
|
42848
|
+
// src/cvcs/carCorrectionReason.v1.0.0.json
|
|
42849
|
+
var carCorrectionReason_v1_0_0_default = {
|
|
42850
|
+
domain: "car_correction_reason",
|
|
42851
|
+
name: "CAR Correction Reason",
|
|
42852
|
+
version: "1.0.0",
|
|
42853
|
+
_status: "DRAFT \u2014 TEMPORARY: net-new value-CVC not yet in Notion; provisional 900+ numbering (992). Non-clinical bookkeeping/provenance vocabulary \u2014 the coded KIND of a CAR (Contextual Assertion Record) correction or retraction, engineer-direct-authored per the PAVE CVC-authoring governance steer (structural, provisional/ratify-later; FYI to Crysta, NOT Crysta-gated). The first three tokens are sourced verbatim from PAVE `@pave/domain` CAR_CORRECTION_REASONS / RETRACTION_TYPES (packages/domain/src/carGovernance.ts), themselves hoisted from packages/db/src/services/assertionRetraction.ts's documented `retractionType` set; publishing them here retires that PAVE-local const in favour of the SOT it always wanted (carGovernance.ts \xA7'Where these labels are DERIVED' notes 'the day a CVC publishes these three the swap is one deriveLabels call'). The fourth, removed_by_recipient_curation, is added for the PAVE CaseShare received-content curation lane (bead pv-p6share-curation-retract-reason-vocab, 2026-09-18). CASING: lower_snake per the CVC key regex. PENDING canonical Notion authoring + steward ratification.",
|
|
42854
|
+
_source: "pave-2.0/packages/domain/src/carGovernance.ts CAR_CORRECTION_REASONS; pave-2.0/packages/db/src/services/assertionRetraction.ts RetractAssertionInput.retractionType; removed_by_recipient_curation net-new for the received-content curation lane (pv-p6share-curation-retract-reason-vocab)",
|
|
42855
|
+
levels: {
|
|
42856
|
+
"0": "Unknown or Missing",
|
|
42857
|
+
"1": "CAR correction / retraction reason (single-select per correction event)"
|
|
42858
|
+
},
|
|
42859
|
+
entries: [
|
|
42860
|
+
{
|
|
42861
|
+
code: "992-000-000-000-000-000-000",
|
|
42862
|
+
key: "missingness_root",
|
|
42863
|
+
title: "Unknown, Redacted, or Missing",
|
|
42864
|
+
selectable: false,
|
|
42865
|
+
parentCode: null,
|
|
42866
|
+
childCodes: [
|
|
42867
|
+
"992-000-000-000-000-000-001",
|
|
42868
|
+
"992-000-000-000-000-000-002",
|
|
42869
|
+
"992-000-000-000-000-000-003"
|
|
42870
|
+
],
|
|
42871
|
+
definition: "Root group for values indicating absent, withheld, or uncollected data. Variant: 3-value (unknown, anonymous, data_not_collected). No prefer_not_to_answer \u2014 workspace standard ANON semantic rolls 'declined to answer' into the anonymous sentinel. A correction reason is always explicitly chosen in practice; the quadruplet is present per SOT convention, not because a correction is expected to be missing."
|
|
42872
|
+
},
|
|
42873
|
+
{
|
|
42874
|
+
code: "992-000-000-000-000-000-001",
|
|
42875
|
+
key: "unknown",
|
|
42876
|
+
title: "Unknown",
|
|
42877
|
+
selectable: true,
|
|
42878
|
+
parentCode: "992-000-000-000-000-000-000",
|
|
42879
|
+
childCodes: [],
|
|
42880
|
+
definition: "Value is unknown at time of entry."
|
|
42881
|
+
},
|
|
42882
|
+
{
|
|
42883
|
+
code: "992-000-000-000-000-000-002",
|
|
42884
|
+
key: "anonymous",
|
|
42885
|
+
title: "Anonymous / declined to answer",
|
|
42886
|
+
selectable: true,
|
|
42887
|
+
parentCode: "992-000-000-000-000-000-000",
|
|
42888
|
+
childCodes: [],
|
|
42889
|
+
definition: "Value is intentionally withheld or redacted. Combines declined-to-answer and redacted/anonymous semantics under the workspace standard ANON sentinel."
|
|
42890
|
+
},
|
|
42891
|
+
{
|
|
42892
|
+
code: "992-000-000-000-000-000-003",
|
|
42893
|
+
key: "data_not_collected",
|
|
42894
|
+
title: "Data not collected",
|
|
42895
|
+
selectable: true,
|
|
42896
|
+
parentCode: "992-000-000-000-000-000-000",
|
|
42897
|
+
childCodes: [],
|
|
42898
|
+
definition: "No attempt was made to collect the value."
|
|
42899
|
+
},
|
|
42900
|
+
{
|
|
42901
|
+
code: "992-001-000-000-000-000-000",
|
|
42902
|
+
key: "entered_in_error",
|
|
42903
|
+
title: "Entered in error",
|
|
42904
|
+
selectable: true,
|
|
42905
|
+
parentCode: null,
|
|
42906
|
+
childCodes: [],
|
|
42907
|
+
definition: "The assertion should never have been recorded \u2014 it was captured by mistake (wrong subject, wrong field, an advocate mis-click, or a claim the conversation did not actually support). The row is RETRACTED, not hard-deleted: a retraction retains the row it retracts so the log of record stays forensic. The canonical 'this is not true and never was' correction."
|
|
42908
|
+
},
|
|
42909
|
+
{
|
|
42910
|
+
code: "992-002-000-000-000-000-000",
|
|
42911
|
+
key: "duplicate",
|
|
42912
|
+
title: "Duplicate of another assertion",
|
|
42913
|
+
selectable: true,
|
|
42914
|
+
parentCode: null,
|
|
42915
|
+
childCodes: [],
|
|
42916
|
+
definition: "The same claim was asserted twice in the same spine partition (e.g. captured from two surfaces, or re-emitted by an ingest path that did not de-duplicate). The duplicate copy is retracted; the canonical copy remains active. Distinct from entered_in_error: the claim IS true, it is merely recorded more than once."
|
|
42917
|
+
},
|
|
42918
|
+
{
|
|
42919
|
+
code: "992-003-000-000-000-000-000",
|
|
42920
|
+
key: "superseded_externally",
|
|
42921
|
+
title: "Superseded externally",
|
|
42922
|
+
selectable: true,
|
|
42923
|
+
parentCode: null,
|
|
42924
|
+
childCodes: [],
|
|
42925
|
+
definition: "The assertion is retired because a truer or more current value arrived from OUTSIDE the ordinary in-partition supersession chain (e.g. a corrected value from another system or a later disclosure that a normal supersede row could not express). Use when the successor is not itself a spine row that carries `supersedes_assertion_id`; where an in-partition successor exists, status 'superseded' with `supersedes_assertion_id` is the right shape instead."
|
|
42926
|
+
},
|
|
42927
|
+
{
|
|
42928
|
+
code: "992-004-000-000-000-000-000",
|
|
42929
|
+
key: "removed_by_recipient_curation",
|
|
42930
|
+
title: "Removed by recipient curation",
|
|
42931
|
+
selectable: true,
|
|
42932
|
+
parentCode: null,
|
|
42933
|
+
childCodes: [],
|
|
42934
|
+
definition: "Recipient-side curation removal of a received (re-emitted) assertion; added for PAVE CaseShare received-content curation, 2026-09-18. A recipient agency curates a cleanly-attributed foreign re-emitted CAR (indicator / victimization / involvement) out of their own record \u2014 the claim is not asserted as false, it is simply not one this recipient chooses to carry. The row is RETRACTED with this coded, honest reason rather than silently dropped, so the received-then-removed sequence stays on the log of record and the origin's assertion is untouched. Distinct from entered_in_error (a mistaken capture) and from duplicate (a redundant copy): the assertion was validly received and validly removed by the receiving side's curation decision."
|
|
42935
|
+
}
|
|
42936
|
+
]
|
|
42937
|
+
};
|
|
42938
|
+
|
|
42826
42939
|
// src/cvcs/createdBySystem.v1.0.0.json
|
|
42827
42940
|
var createdBySystem_v1_0_0_default = {
|
|
42828
42941
|
domain: "created_by_system",
|
|
@@ -43299,6 +43412,7 @@ export {
|
|
|
43299
43412
|
assertionDomain_v1_1_0_default as assertionDomainSot,
|
|
43300
43413
|
assertionStatus_v1_0_0_default as assertionStatusSot,
|
|
43301
43414
|
basisQuickPicks_v1_0_0_default as basisQuickPicksSot,
|
|
43415
|
+
carCorrectionReason_v1_0_0_default as carCorrectionReasonSot,
|
|
43302
43416
|
caseShareState_v1_0_0_default as caseShareStateSot,
|
|
43303
43417
|
checkInActivity_v1_0_0_default as checkInActivitySot,
|
|
43304
43418
|
checkInPhase_v1_1_0_default as checkInPhaseSot,
|