@htilabs/platform-common-models 0.5.3-beta.4 → 0.7.0-beta.1

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.
Files changed (87) hide show
  1. package/README.md +44 -0
  2. package/dist/config/index.cjs +191 -0
  3. package/dist/config/index.cjs.map +1 -0
  4. package/dist/config/index.d.cts +101 -0
  5. package/dist/config/index.d.ts +101 -0
  6. package/dist/config/index.js +165 -0
  7. package/dist/config/index.js.map +1 -0
  8. package/dist/constants/index.cjs +46 -5
  9. package/dist/constants/index.cjs.map +1 -1
  10. package/dist/constants/index.d.cts +1 -1
  11. package/dist/constants/index.d.ts +1 -1
  12. package/dist/constants/index.js +42 -5
  13. package/dist/constants/index.js.map +1 -1
  14. package/dist/cvcs/index.cjs +6874 -2
  15. package/dist/cvcs/index.cjs.map +1 -1
  16. package/dist/cvcs/index.d.cts +7562 -66
  17. package/dist/cvcs/index.d.ts +7562 -66
  18. package/dist/cvcs/index.js +6833 -1
  19. package/dist/cvcs/index.js.map +1 -1
  20. package/dist/index.cjs +7742 -6
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.cts +1009 -3
  23. package/dist/index.d.ts +1009 -3
  24. package/dist/index.js +7656 -6
  25. package/dist/index.js.map +1 -1
  26. package/dist/{platform-auth-CjC57132.d.cts → platform-auth-C97LpsRd.d.cts} +8 -4
  27. package/dist/{platform-auth-CjC57132.d.ts → platform-auth-C97LpsRd.d.ts} +8 -4
  28. package/dist/schemas/index.cjs +43 -6
  29. package/dist/schemas/index.cjs.map +1 -1
  30. package/dist/schemas/index.d.cts +4 -0
  31. package/dist/schemas/index.d.ts +4 -0
  32. package/dist/schemas/index.js +43 -6
  33. package/dist/schemas/index.js.map +1 -1
  34. package/dist/types/index.d.cts +2 -2
  35. package/dist/types/index.d.ts +2 -2
  36. package/package.json +9 -2
  37. package/src/__tests__/__snapshots__/cvc-sot.snap +160 -0
  38. package/src/__tests__/cvc-sot-snapshot.test.ts +319 -0
  39. package/src/__tests__/cvc-structural.test.ts +40 -0
  40. package/src/__tests__/runtime-contract-validator.test.ts +556 -0
  41. package/src/config/fixtures/valid.yaml +90 -0
  42. package/src/config/index.ts +352 -0
  43. package/src/constants/ic.ts +49 -6
  44. package/src/cvcs/administeringJurisdiction.v1.0.0.json +105 -0
  45. package/src/cvcs/ageBinReporting.v1.0.0.json +114 -0
  46. package/src/cvcs/contactInfoTypes.v1.0.0.json +250 -0
  47. package/src/cvcs/contactSafetyStatus.v1.0.0.json +69 -0
  48. package/src/cvcs/employmentStatus.v1.0.0.json +302 -0
  49. package/src/cvcs/enrollmentApplicationStatus.v1.0.0.json +123 -0
  50. package/src/cvcs/eyeColor.v1.0.0.json +114 -0
  51. package/src/cvcs/facilitatorEntityType.v1.0.0.json +141 -0
  52. package/src/cvcs/facilitatorLabelUsedInSource.v1.0.0.json +159 -0
  53. package/src/cvcs/facilitatorSubrole.v1.0.0.json +381 -0
  54. package/src/cvcs/frequencyCadence.v1.0.0.json +114 -0
  55. package/src/cvcs/genderIdentity.v1.0.0.json +128 -0
  56. package/src/cvcs/hairColor.v1.0.0.json +105 -0
  57. package/src/cvcs/hasTattoos.v1.0.0.json +69 -0
  58. package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +124 -0
  59. package/src/cvcs/hmisSex.v1.0.0.json +89 -0
  60. package/src/cvcs/homelessStatus.v1.0.0.json +98 -0
  61. package/src/cvcs/incomeBenefitsSources.v1.0.0.json +392 -0
  62. package/src/cvcs/index.ts +80 -0
  63. package/src/cvcs/juvenileJusticeEpisodeType.v1.0.0.json +96 -0
  64. package/src/cvcs/juvenileJusticeInvolvementStatus.v1.0.0.json +78 -0
  65. package/src/cvcs/locationType.v1.0.0.json +168 -0
  66. package/src/cvcs/maritalStatusLegal.v1.0.0.json +96 -0
  67. package/src/cvcs/militaryBranch.v1.0.0.json +85 -0
  68. package/src/cvcs/militaryStatus.v1.0.0.json +67 -0
  69. package/src/cvcs/nameType.v1.0.0.json +123 -0
  70. package/src/cvcs/offenderStatus.v1.0.0.json +96 -0
  71. package/src/cvcs/offenderStatusFamily.v1.0.0.json +87 -0
  72. package/src/cvcs/orientationIdentity.v1.0.0.json +97 -0
  73. package/src/cvcs/personRelationships.v1.0.0.json +924 -0
  74. package/src/cvcs/preferredContactMethod.v1.0.0.json +46 -0
  75. package/src/cvcs/pronouns.v1.0.0.json +87 -0
  76. package/src/cvcs/recencyBand.v1.0.0.json +124 -0
  77. package/src/cvcs/referralEntityCategory.v1.0.0.json +439 -0
  78. package/src/cvcs/relationshipStatusCurrent.v1.0.0.json +69 -0
  79. package/src/cvcs/relationshipTies.v1.0.0.json +291 -0
  80. package/src/cvcs/sexProviderSubrole.v1.0.0.json +78 -0
  81. package/src/cvcs/sharePurpose.v1.0.0.json +82 -0
  82. package/src/cvcs/smtType.v1.0.0.json +114 -0
  83. package/src/cvcs/tribes.v1.0.0.json +492 -0
  84. package/src/cvcs/victimStatusFamily.v1.0.0.json +96 -0
  85. package/src/generated/cvc-enums.ts +1048 -0
  86. package/src/index.ts +20 -0
  87. package/src/schemas/common.ts +4 -0
@@ -0,0 +1,87 @@
1
+ {
2
+ "domain": "offender_status_family",
3
+ "name": "Core Offender Status Family",
4
+ "version": "1.0.0",
5
+ "levels": {
6
+ "0": "Unknown or Missing",
7
+ "1": "Offender status family"
8
+ },
9
+ "entries": [
10
+ {
11
+ "code": "167-001-000-000-000-000-000",
12
+ "key": "no_indication",
13
+ "title": "No indication",
14
+ "selectable": true,
15
+ "parentCode": null,
16
+ "childCodes": [],
17
+ "definition": "Indicates there is no evidence suggesting the individual is an offender of human trafficking or of related exploitation within the scope of this program's determination process."
18
+ },
19
+ {
20
+ "code": "167-002-000-000-000-000-000",
21
+ "key": "non_trafficking_exploitation_offender",
22
+ "title": "Non-trafficking exploitation offender",
23
+ "selectable": true,
24
+ "parentCode": null,
25
+ "childCodes": [],
26
+ "definition": "Indicates the individual is an offender of exploitation that does not meet the statutory or programmatic thresholds for human trafficking (e.g., labor abuses, non-trafficking commercial sexual exploitation)."
27
+ },
28
+ {
29
+ "code": "167-003-000-000-000-000-000",
30
+ "key": "potential_trafficking_offender",
31
+ "title": "Potential trafficking offender",
32
+ "selectable": true,
33
+ "parentCode": null,
34
+ "childCodes": [],
35
+ "definition": "Indicates the individual is suspected of being a human trafficking offender based on available indicators, but the determination has not been substantiated or confirmed."
36
+ },
37
+ {
38
+ "code": "167-004-000-000-000-000-000",
39
+ "key": "trafficking_offender",
40
+ "title": "Trafficking offender",
41
+ "selectable": true,
42
+ "parentCode": null,
43
+ "childCodes": [],
44
+ "definition": "Indicates the individual is determined to be an offender of human trafficking under the program's applicable definition (e.g., recruiting, harboring, transporting, providing, or obtaining a person for labor or commercial sex through force, fraud, or coercion)."
45
+ },
46
+ {
47
+ "code": "167-000-000-000-000-000-000",
48
+ "key": "missingness_root",
49
+ "title": "Unknown, Redacted, or Missing",
50
+ "selectable": false,
51
+ "parentCode": null,
52
+ "childCodes": [
53
+ "167-000-000-000-000-000-001",
54
+ "167-000-000-000-000-000-002",
55
+ "167-000-000-000-000-000-003"
56
+ ],
57
+ "definition": "Root group for values indicating absent, withheld, or uncollected data. Notion codebook explicitly lists UNK/ANON/DNC for this domain (no PNA)."
58
+ },
59
+ {
60
+ "code": "167-000-000-000-000-000-001",
61
+ "key": "unknown",
62
+ "title": "Unknown",
63
+ "selectable": true,
64
+ "parentCode": "167-000-000-000-000-000-000",
65
+ "childCodes": [],
66
+ "definition": "Indicates the offender status family determination is not known at this time. Use when the question was asked or considered but a value could not be established."
67
+ },
68
+ {
69
+ "code": "167-000-000-000-000-000-002",
70
+ "key": "anonymous",
71
+ "title": "Anonymous",
72
+ "selectable": true,
73
+ "parentCode": "167-000-000-000-000-000-000",
74
+ "childCodes": [],
75
+ "definition": "Indicates the offender status family is intentionally withheld or redacted to preserve anonymity for privacy, safety, or reporting reasons."
76
+ },
77
+ {
78
+ "code": "167-000-000-000-000-000-003",
79
+ "key": "data_not_collected",
80
+ "title": "Data not collected",
81
+ "selectable": true,
82
+ "parentCode": "167-000-000-000-000-000-000",
83
+ "childCodes": [],
84
+ "definition": "Indicates the offender status family question was not asked and/or a value was not obtained; distinguish from 'unknown' (asked but not known) and 'anonymous' (asked but withheld)."
85
+ }
86
+ ]
87
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "domain": "orientation_identity",
3
+ "name": "Core Orientation Identity",
4
+ "version": "1.0.0",
5
+ "levels": {
6
+ "0": "Unknown or Missing",
7
+ "1": "Category"
8
+ },
9
+ "entries": [
10
+ {
11
+ "code": "016-000-000-000-000-000-000",
12
+ "key": "missingness_root",
13
+ "title": "Unknown, Redacted, or Missing",
14
+ "selectable": false,
15
+ "parentCode": null,
16
+ "childCodes": [
17
+ "016-000-000-000-000-000-001",
18
+ "016-000-000-000-000-000-002",
19
+ "016-000-000-000-000-000-003",
20
+ "016-000-000-000-000-000-004"
21
+ ],
22
+ "definition": "Root group for values indicating absent, withheld, or uncollected data."
23
+ },
24
+ {
25
+ "code": "016-000-000-000-000-000-001",
26
+ "key": "unknown",
27
+ "title": "Unknown",
28
+ "selectable": true,
29
+ "parentCode": "016-000-000-000-000-000-000",
30
+ "childCodes": [],
31
+ "definition": "Value is unknown at time of entry."
32
+ },
33
+ {
34
+ "code": "016-000-000-000-000-000-002",
35
+ "key": "anonymous",
36
+ "title": "Anonymous",
37
+ "selectable": true,
38
+ "parentCode": "016-000-000-000-000-000-000",
39
+ "childCodes": [],
40
+ "definition": "Value is intentionally withheld or redacted."
41
+ },
42
+ {
43
+ "code": "016-000-000-000-000-000-003",
44
+ "key": "data_not_collected",
45
+ "title": "Data not collected",
46
+ "selectable": true,
47
+ "parentCode": "016-000-000-000-000-000-000",
48
+ "childCodes": [],
49
+ "definition": "No attempt was made to collect the value."
50
+ },
51
+ {
52
+ "code": "016-000-000-000-000-000-004",
53
+ "key": "prefer_not_to_answer",
54
+ "title": "Client prefers not to answer",
55
+ "selectable": true,
56
+ "parentCode": "016-000-000-000-000-000-000",
57
+ "childCodes": [],
58
+ "definition": "Client was offered the opportunity to self-identify and explicitly declined to provide the value."
59
+ },
60
+ {
61
+ "code": "016-001-000-000-000-000-000",
62
+ "key": "bisexual",
63
+ "title": "Bisexual",
64
+ "selectable": true,
65
+ "parentCode": null,
66
+ "childCodes": [],
67
+ "definition": "Individuals whose sexual orientation includes emotional, romantic, or sexual attraction to people of more than one gender."
68
+ },
69
+ {
70
+ "code": "016-002-000-000-000-000-000",
71
+ "key": "gay_or_lesbian",
72
+ "title": "Gay or Lesbian",
73
+ "selectable": true,
74
+ "parentCode": null,
75
+ "childCodes": [],
76
+ "definition": "Individuals whose sexual orientation is characterized by emotional, romantic, or sexual attraction primarily to people of the same gender."
77
+ },
78
+ {
79
+ "code": "016-003-000-000-000-000-000",
80
+ "key": "other_self_described",
81
+ "title": "Other - [trigger an optional write in]",
82
+ "selectable": true,
83
+ "parentCode": null,
84
+ "childCodes": [],
85
+ "definition": "Allows for additional self-described sexual orientation information not adequately represented by the listed categories."
86
+ },
87
+ {
88
+ "code": "016-004-000-000-000-000-000",
89
+ "key": "straight",
90
+ "title": "Straight",
91
+ "selectable": true,
92
+ "parentCode": null,
93
+ "childCodes": [],
94
+ "definition": "Individuals whose sexual orientation is characterized by emotional, romantic, or sexual attraction primarily to people of a different gender; also referred to as heterosexual."
95
+ }
96
+ ]
97
+ }