@htilabs/platform-common-models 0.6.0 → 0.7.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/{cvcEntry-BCj1OWqL.d.cts → cvcEntry-DaDrEuTa.d.cts} +36 -36
- package/dist/{cvcEntry-BCj1OWqL.d.ts → cvcEntry-DaDrEuTa.d.ts} +36 -36
- package/dist/cvcs/index.cjs +1280 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +1846 -436
- package/dist/cvcs/index.d.ts +1846 -436
- package/dist/cvcs/index.js +1269 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/{index-I-DiX9eQ.d.ts → index-C0J3f169.d.ts} +1 -1
- package/dist/{index-CoVr1jIV.d.cts → index-EPjPjR0z.d.cts} +1 -1
- package/dist/index.cjs +1443 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +211 -4
- package/dist/index.d.ts +211 -4
- package/dist/index.js +1421 -0
- 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 +11 -11
- package/dist/schemas/index.d.ts +11 -11
- package/package.json +18 -17
- package/src/__tests__/__snapshots__/cvc-sot.snap +44 -0
- package/src/__tests__/cvc-sot-snapshot.test.ts +88 -0
- package/src/__tests__/cvc-structural.test.ts +11 -0
- package/src/cvcs/contactInfoUseType.v1.0.0.json +87 -0
- package/src/cvcs/determinationLevel.v1.0.0.json +96 -0
- package/src/cvcs/index.ts +22 -0
- package/src/cvcs/inferenceType.v1.0.0.json +78 -0
- package/src/cvcs/qualityFlags.v1.0.0.json +96 -0
- package/src/cvcs/roleContext.v1.0.0.json +78 -0
- package/src/cvcs/sessionState.v1.0.0.json +96 -0
- package/src/cvcs/sourceCategory.v1.1.0.json +96 -0
- package/src/cvcs/sourceSubtype.v1.1.0.json +330 -0
- package/src/cvcs/supportStrength.v1.0.0.json +114 -0
- package/src/cvcs/timeScope.v1.0.0.json +69 -0
- package/src/cvcs/verificationMethod.v1.0.0.json +96 -0
- package/src/generated/cvc-enums.ts +229 -0
|
@@ -1474,3 +1474,232 @@ export const FrequencyCadenceKeys = {
|
|
|
1474
1474
|
} as const;
|
|
1475
1475
|
|
|
1476
1476
|
export type FrequencyCadenceKey = keyof typeof FrequencyCadenceKeys;
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
* Key → positional code map for the `inference_type` CVC domain.
|
|
1480
|
+
*
|
|
1481
|
+
* Domain: `inference_type` · Version: 1.0.0 · Entries: 7
|
|
1482
|
+
*/
|
|
1483
|
+
export const InferenceTypeKeys = {
|
|
1484
|
+
missingness_root: "142-000-000-000-000-000-000",
|
|
1485
|
+
unknown: "142-000-000-000-000-000-001",
|
|
1486
|
+
anonymous: "142-000-000-000-000-000-002",
|
|
1487
|
+
data_not_collected: "142-000-000-000-000-000-003",
|
|
1488
|
+
manual: "142-001-000-000-000-000-000",
|
|
1489
|
+
rules: "142-002-000-000-000-000-000",
|
|
1490
|
+
model: "142-003-000-000-000-000-000",
|
|
1491
|
+
} as const;
|
|
1492
|
+
|
|
1493
|
+
export type InferenceTypeKey = keyof typeof InferenceTypeKeys;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Key → positional code map for the `source_category` CVC domain.
|
|
1497
|
+
*
|
|
1498
|
+
* Domain: `source_category` · Version: 1.1.0 · Entries: 9
|
|
1499
|
+
*/
|
|
1500
|
+
export const SourceCategoryKeys = {
|
|
1501
|
+
missingness_root: "140-000-000-000-000-000-000",
|
|
1502
|
+
unknown: "140-000-000-000-000-000-001",
|
|
1503
|
+
anonymous: "140-000-000-000-000-000-002",
|
|
1504
|
+
data_not_collected: "140-000-000-000-000-000-003",
|
|
1505
|
+
human: "140-001-000-000-000-000-000",
|
|
1506
|
+
institutional_record: "140-002-000-000-000-000-000",
|
|
1507
|
+
legal_evidentiary: "140-003-000-000-000-000-000",
|
|
1508
|
+
machine: "140-004-000-000-000-000-000",
|
|
1509
|
+
open_source: "140-005-000-000-000-000-000",
|
|
1510
|
+
} as const;
|
|
1511
|
+
|
|
1512
|
+
export type SourceCategoryKey = keyof typeof SourceCategoryKeys;
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Key → positional code map for the `source_subtype` CVC domain.
|
|
1516
|
+
*
|
|
1517
|
+
* Domain: `source_subtype` · Version: 1.1.0 · Entries: 35
|
|
1518
|
+
*/
|
|
1519
|
+
export const SourceSubtypeKeys = {
|
|
1520
|
+
missingness_root: "141-000-000-000-000-000-000",
|
|
1521
|
+
unknown: "141-000-000-000-000-000-001",
|
|
1522
|
+
anonymous: "141-000-000-000-000-000-002",
|
|
1523
|
+
data_not_collected: "141-000-000-000-000-000-003",
|
|
1524
|
+
ads_profile_website: "141-001-000-000-000-000-000",
|
|
1525
|
+
aggregation_output: "141-002-000-000-000-000-000",
|
|
1526
|
+
benefits_record: "141-003-000-000-000-000-000",
|
|
1527
|
+
charge_document: "141-004-000-000-000-000-000",
|
|
1528
|
+
child_welfare_record: "141-005-000-000-000-000-000",
|
|
1529
|
+
conviction_record: "141-006-000-000-000-000-000",
|
|
1530
|
+
corrections_record: "141-007-000-000-000-000-000",
|
|
1531
|
+
court_record: "141-008-000-000-000-000-000",
|
|
1532
|
+
employment_hr_record: "141-009-000-000-000-000-000",
|
|
1533
|
+
forensic_medical_exam: "141-010-000-000-000-000-000",
|
|
1534
|
+
immigration_record: "141-011-000-000-000-000-000",
|
|
1535
|
+
law_enforcement_assessment: "141-012-000-000-000-000-000",
|
|
1536
|
+
medical_record: "141-013-000-000-000-000-000",
|
|
1537
|
+
model_output: "141-014-000-000-000-000-000",
|
|
1538
|
+
news_media: "141-015-000-000-000-000-000",
|
|
1539
|
+
official_id_document: "141-016-000-000-000-000-000",
|
|
1540
|
+
parser_extraction: "141-017-000-000-000-000-000",
|
|
1541
|
+
partner_agency_case_note: "141-018-000-000-000-000-000",
|
|
1542
|
+
public_registry: "141-019-000-000-000-000-000",
|
|
1543
|
+
reviews_forums_comments: "141-020-000-000-000-000-000",
|
|
1544
|
+
rules_engine: "141-021-000-000-000-000-000",
|
|
1545
|
+
school_record: "141-022-000-000-000-000-000",
|
|
1546
|
+
search_warrant_return: "141-023-000-000-000-000-000",
|
|
1547
|
+
service_provider_assessment: "141-024-000-000-000-000-000",
|
|
1548
|
+
service_provider_case_note: "141-025-000-000-000-000-000",
|
|
1549
|
+
shelter_program_record: "141-026-000-000-000-000-000",
|
|
1550
|
+
social_media: "141-027-000-000-000-000-000",
|
|
1551
|
+
staff_observation: "141-028-000-000-000-000-000",
|
|
1552
|
+
system_import: "141-029-000-000-000-000-000",
|
|
1553
|
+
third_party_report: "141-030-000-000-000-000-000",
|
|
1554
|
+
victim_disclosure: "141-031-000-000-000-000-000",
|
|
1555
|
+
} as const;
|
|
1556
|
+
|
|
1557
|
+
export type SourceSubtypeKey = keyof typeof SourceSubtypeKeys;
|
|
1558
|
+
|
|
1559
|
+
/**
|
|
1560
|
+
* Key → positional code map for the `support_strength` CVC domain.
|
|
1561
|
+
*
|
|
1562
|
+
* Domain: `support_strength` · Version: 1.0.0 · Entries: 11
|
|
1563
|
+
*/
|
|
1564
|
+
export const SupportStrengthKeys = {
|
|
1565
|
+
missingness_root: "139-000-000-000-000-000-000",
|
|
1566
|
+
unknown: "139-000-000-000-000-000-001",
|
|
1567
|
+
anonymous: "139-000-000-000-000-000-002",
|
|
1568
|
+
data_not_collected: "139-000-000-000-000-000-003",
|
|
1569
|
+
adjudicated: "139-001-000-000-000-000-000",
|
|
1570
|
+
allegation: "139-002-000-000-000-000-000",
|
|
1571
|
+
corroborated: "139-003-000-000-000-000-000",
|
|
1572
|
+
minimally_supported: "139-004-000-000-000-000-000",
|
|
1573
|
+
multi_source_corroborated: "139-005-000-000-000-000-000",
|
|
1574
|
+
official_record_supported: "139-006-000-000-000-000-000",
|
|
1575
|
+
strongly_supported: "139-007-000-000-000-000-000",
|
|
1576
|
+
} as const;
|
|
1577
|
+
|
|
1578
|
+
export type SupportStrengthKey = keyof typeof SupportStrengthKeys;
|
|
1579
|
+
|
|
1580
|
+
/**
|
|
1581
|
+
* Key → positional code map for the `determination_level` CVC domain.
|
|
1582
|
+
*
|
|
1583
|
+
* Domain: `determination_level` · Version: 1.0.0 · Entries: 9
|
|
1584
|
+
*/
|
|
1585
|
+
export const DeterminationLevelKeys = {
|
|
1586
|
+
missingness_root: "138-000-000-000-000-000-000",
|
|
1587
|
+
unknown: "138-000-000-000-000-000-001",
|
|
1588
|
+
anonymous: "138-000-000-000-000-000-002",
|
|
1589
|
+
data_not_collected: "138-000-000-000-000-000-003",
|
|
1590
|
+
disclosed: "138-001-000-000-000-000-000",
|
|
1591
|
+
estimated: "138-002-000-000-000-000-000",
|
|
1592
|
+
reported: "138-003-000-000-000-000-000",
|
|
1593
|
+
suspected: "138-004-000-000-000-000-000",
|
|
1594
|
+
verified: "138-005-000-000-000-000-000",
|
|
1595
|
+
} as const;
|
|
1596
|
+
|
|
1597
|
+
export type DeterminationLevelKey = keyof typeof DeterminationLevelKeys;
|
|
1598
|
+
|
|
1599
|
+
/**
|
|
1600
|
+
* Key → positional code map for the `role_context` CVC domain.
|
|
1601
|
+
*
|
|
1602
|
+
* Domain: `role_context` · Version: 1.0.0 · Entries: 7
|
|
1603
|
+
*/
|
|
1604
|
+
export const RoleContextKeys = {
|
|
1605
|
+
missingness_root: "160-000-000-000-000-000-000",
|
|
1606
|
+
unknown: "160-000-000-000-000-000-001",
|
|
1607
|
+
anonymous: "160-000-000-000-000-000-002",
|
|
1608
|
+
data_not_collected: "160-000-000-000-000-000-003",
|
|
1609
|
+
both: "160-001-000-000-000-000-000",
|
|
1610
|
+
offender: "160-002-000-000-000-000-000",
|
|
1611
|
+
victim: "160-003-000-000-000-000-000",
|
|
1612
|
+
} as const;
|
|
1613
|
+
|
|
1614
|
+
export type RoleContextKey = keyof typeof RoleContextKeys;
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Key → positional code map for the `time_scope` CVC domain.
|
|
1618
|
+
*
|
|
1619
|
+
* Domain: `time_scope` · Version: 1.0.0 · Entries: 6
|
|
1620
|
+
*/
|
|
1621
|
+
export const TimeScopeKeys = {
|
|
1622
|
+
missingness_root: "174-000-000-000-000-000-000",
|
|
1623
|
+
unknown: "174-000-000-000-000-000-001",
|
|
1624
|
+
anonymous: "174-000-000-000-000-000-002",
|
|
1625
|
+
data_not_collected: "174-000-000-000-000-000-003",
|
|
1626
|
+
current: "174-001-000-000-000-000-000",
|
|
1627
|
+
prior: "174-002-000-000-000-000-000",
|
|
1628
|
+
} as const;
|
|
1629
|
+
|
|
1630
|
+
export type TimeScopeKey = keyof typeof TimeScopeKeys;
|
|
1631
|
+
|
|
1632
|
+
/**
|
|
1633
|
+
* Key → positional code map for the `verification_method` CVC domain.
|
|
1634
|
+
*
|
|
1635
|
+
* Domain: `verification_method` · Version: 1.0.0 · Entries: 9
|
|
1636
|
+
*/
|
|
1637
|
+
export const VerificationMethodKeys = {
|
|
1638
|
+
missingness_root: "143-000-000-000-000-000-000",
|
|
1639
|
+
unknown: "143-000-000-000-000-000-001",
|
|
1640
|
+
anonymous: "143-000-000-000-000-000-002",
|
|
1641
|
+
data_not_collected: "143-000-000-000-000-000-003",
|
|
1642
|
+
court_record_confirmed: "143-001-000-000-000-000-000",
|
|
1643
|
+
evidence_threshold_met: "143-002-000-000-000-000-000",
|
|
1644
|
+
multi_source_corroboration: "143-003-000-000-000-000-000",
|
|
1645
|
+
qa_audit_passed: "143-004-000-000-000-000-000",
|
|
1646
|
+
supervisor_review: "143-005-000-000-000-000-000",
|
|
1647
|
+
} as const;
|
|
1648
|
+
|
|
1649
|
+
export type VerificationMethodKey = keyof typeof VerificationMethodKeys;
|
|
1650
|
+
|
|
1651
|
+
/**
|
|
1652
|
+
* Key → positional code map for the `quality_flags` CVC domain.
|
|
1653
|
+
*
|
|
1654
|
+
* Domain: `quality_flags` · Version: 1.0.0 · Entries: 9
|
|
1655
|
+
*/
|
|
1656
|
+
export const QualityFlagsKeys = {
|
|
1657
|
+
missingness_root: "144-000-000-000-000-000-000",
|
|
1658
|
+
unknown: "144-000-000-000-000-000-001",
|
|
1659
|
+
anonymous: "144-000-000-000-000-000-002",
|
|
1660
|
+
data_not_collected: "144-000-000-000-000-000-003",
|
|
1661
|
+
circular_model_label_risk: "144-001-000-000-000-000-000",
|
|
1662
|
+
data_redacted: "144-002-000-000-000-000-000",
|
|
1663
|
+
inconsistent: "144-003-000-000-000-000-000",
|
|
1664
|
+
self_report_only: "144-004-000-000-000-000-000",
|
|
1665
|
+
single_source: "144-005-000-000-000-000-000",
|
|
1666
|
+
} as const;
|
|
1667
|
+
|
|
1668
|
+
export type QualityFlagsKey = keyof typeof QualityFlagsKeys;
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* Key → positional code map for the `contact_info_use_type` CVC domain.
|
|
1672
|
+
*
|
|
1673
|
+
* Domain: `contact_info_use_type` · Version: 1.0.0 · Entries: 8
|
|
1674
|
+
*/
|
|
1675
|
+
export const ContactInfoUseTypeKeys = {
|
|
1676
|
+
missingness_root: "154-000-000-000-000-000-000",
|
|
1677
|
+
unknown: "154-000-000-000-000-000-001",
|
|
1678
|
+
anonymous: "154-000-000-000-000-000-002",
|
|
1679
|
+
data_not_collected: "154-000-000-000-000-000-003",
|
|
1680
|
+
business_commercial_sex: "154-001-000-000-000-000-000",
|
|
1681
|
+
business_non_cs: "154-002-000-000-000-000-000",
|
|
1682
|
+
mixed_use: "154-003-000-000-000-000-000",
|
|
1683
|
+
personal: "154-004-000-000-000-000-000",
|
|
1684
|
+
} as const;
|
|
1685
|
+
|
|
1686
|
+
export type ContactInfoUseTypeKey = keyof typeof ContactInfoUseTypeKeys;
|
|
1687
|
+
|
|
1688
|
+
/**
|
|
1689
|
+
* Key → positional code map for the `session_state` CVC domain.
|
|
1690
|
+
*
|
|
1691
|
+
* Domain: `session_state` · Version: 1.0.0 · Entries: 9
|
|
1692
|
+
*/
|
|
1693
|
+
export const SessionStateKeys = {
|
|
1694
|
+
missingness_root: "216-000-000-000-000-000-000",
|
|
1695
|
+
unknown: "216-000-000-000-000-000-001",
|
|
1696
|
+
anonymous: "216-000-000-000-000-000-002",
|
|
1697
|
+
data_not_collected: "216-000-000-000-000-000-003",
|
|
1698
|
+
session_action_needed: "216-001-000-000-000-000-000",
|
|
1699
|
+
session_closed: "216-002-000-000-000-000-000",
|
|
1700
|
+
session_discarded: "216-003-000-000-000-000-000",
|
|
1701
|
+
session_in_progress: "216-004-000-000-000-000-000",
|
|
1702
|
+
session_initialized: "216-005-000-000-000-000-000",
|
|
1703
|
+
} as const;
|
|
1704
|
+
|
|
1705
|
+
export type SessionStateKey = keyof typeof SessionStateKeys;
|