@htilabs/platform-common-models 0.8.1 → 0.8.3
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/constants/index.cjs +28 -5
- package/dist/constants/index.cjs.map +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +27 -5
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +268 -1
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +1545 -1251
- package/dist/cvcs/index.d.ts +1545 -1251
- package/dist/cvcs/index.js +266 -1
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +332 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -6
- package/dist/index.d.ts +47 -6
- package/dist/index.js +327 -9
- package/dist/index.js.map +1 -1
- package/dist/{platform-auth-7dL99tZh.d.cts → platform-auth-BdnJUisw.d.cts} +16 -3
- package/dist/{platform-auth-7dL99tZh.d.ts → platform-auth-BdnJUisw.d.ts} +16 -3
- package/dist/schemas/index.cjs +25 -4
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js +25 -4
- 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/package.json +1 -1
- package/src/__tests__/__snapshots__/cvc-sot.snap +14 -6
- package/src/__tests__/cvc-sot-snapshot.test.ts +22 -7
- package/src/__tests__/cvc-structural.test.ts +2 -0
- package/src/constants/ic.ts +31 -3
- package/src/cvcs/highestEducationLevelCompleted.v1.0.0.json +9 -0
- package/src/cvcs/housingSubsidyTypes.v1.0.0.json +114 -0
- package/src/cvcs/incomeBenefitsSources.v1.0.0.json +9 -0
- package/src/cvcs/index.ts +4 -0
- package/src/cvcs/recencyBand.v1.0.0.json +105 -0
- package/src/cvcs/serviceStates.v1.0.0.json +23 -1
- package/src/generated/cvc-enums.ts +48 -3
package/dist/constants/index.cjs
CHANGED
|
@@ -230,6 +230,7 @@ __export(constants_exports, {
|
|
|
230
230
|
IC_56_DESCRIPTIONS: () => IC_56_DESCRIPTIONS,
|
|
231
231
|
IC_56_LABELS: () => IC_56_LABELS,
|
|
232
232
|
IC_56_OPTIONS: () => IC_56_OPTIONS,
|
|
233
|
+
IC_56_PROVISIONAL_CHANNELS: () => IC_56_PROVISIONAL_CHANNELS,
|
|
233
234
|
IC_56_SERVICE_DELIVERY_CHANNEL: () => IC_56_SERVICE_DELIVERY_CHANNEL,
|
|
234
235
|
IC_57_LABELS: () => IC_57_LABELS,
|
|
235
236
|
IC_57_SERVICE_AUDIENCE: () => IC_57_SERVICE_AUDIENCE,
|
|
@@ -806,8 +807,17 @@ var IC_56_SERVICE_DELIVERY_CHANNEL = {
|
|
|
806
807
|
ON_SCENE: 2,
|
|
807
808
|
PHONE: 3,
|
|
808
809
|
EMAIL_TEXT_CHAT: 4,
|
|
809
|
-
VIRTUAL: 5
|
|
810
|
-
|
|
810
|
+
VIRTUAL: 5,
|
|
811
|
+
// PROVISIONAL — group delivery channels surfaced by the Thread canonical
|
|
812
|
+
// "How was the service delivered?" picker. Authored ahead of codebook /
|
|
813
|
+
// Notion ratification; flagged provisional pending SOT sign-off.
|
|
814
|
+
GROUP_IN_PERSON: 6,
|
|
815
|
+
GROUP_REMOTE: 7
|
|
816
|
+
};
|
|
817
|
+
var IC_56_PROVISIONAL_CHANNELS = /* @__PURE__ */ new Set([
|
|
818
|
+
IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
|
|
819
|
+
IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE
|
|
820
|
+
]);
|
|
811
821
|
var IC_56_LABELS = {
|
|
812
822
|
[IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Data Not Collected",
|
|
813
823
|
[IC_56_SERVICE_DELIVERY_CHANNEL.ANONYMOUS]: "Anonymous",
|
|
@@ -816,7 +826,9 @@ var IC_56_LABELS = {
|
|
|
816
826
|
[IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "On-scene",
|
|
817
827
|
[IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone",
|
|
818
828
|
[IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email / Text / Chat",
|
|
819
|
-
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual"
|
|
829
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual",
|
|
830
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group (in-person)",
|
|
831
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group (remote)"
|
|
820
832
|
};
|
|
821
833
|
var IC_56_DESCRIPTIONS = {
|
|
822
834
|
[IC_56_SERVICE_DELIVERY_CHANNEL.DATA_NOT_COLLECTED]: "Contact method data was not collected",
|
|
@@ -826,13 +838,15 @@ var IC_56_DESCRIPTIONS = {
|
|
|
826
838
|
[IC_56_SERVICE_DELIVERY_CHANNEL.ON_SCENE]: "Field response / crisis response / mobile advocacy",
|
|
827
839
|
[IC_56_SERVICE_DELIVERY_CHANNEL.PHONE]: "Phone call",
|
|
828
840
|
[IC_56_SERVICE_DELIVERY_CHANNEL.EMAIL_TEXT_CHAT]: "Email, text message, or chat",
|
|
829
|
-
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call"
|
|
841
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]: "Virtual / video call",
|
|
842
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]: "Group session delivered in person (support group, class, workshop)",
|
|
843
|
+
[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]: "Group session delivered remotely (virtual support group, webinar)"
|
|
830
844
|
};
|
|
831
845
|
function isIC56Missingness(code) {
|
|
832
846
|
return code <= 0;
|
|
833
847
|
}
|
|
834
848
|
function isIC56ValidChannel(code) {
|
|
835
|
-
return code >= 1 && code <=
|
|
849
|
+
return code >= 1 && code <= 7;
|
|
836
850
|
}
|
|
837
851
|
var IC_56_OPTIONS = [
|
|
838
852
|
{
|
|
@@ -854,6 +868,14 @@ var IC_56_OPTIONS = [
|
|
|
854
868
|
{
|
|
855
869
|
value: IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL,
|
|
856
870
|
label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.VIRTUAL]
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON,
|
|
874
|
+
label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_IN_PERSON]
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
value: IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE,
|
|
878
|
+
label: IC_56_LABELS[IC_56_SERVICE_DELIVERY_CHANNEL.GROUP_REMOTE]
|
|
857
879
|
}
|
|
858
880
|
];
|
|
859
881
|
var IC_57_SERVICE_AUDIENCE = {
|
|
@@ -6146,6 +6168,7 @@ var FUNCTION_STATUS_LABELS = {
|
|
|
6146
6168
|
IC_56_DESCRIPTIONS,
|
|
6147
6169
|
IC_56_LABELS,
|
|
6148
6170
|
IC_56_OPTIONS,
|
|
6171
|
+
IC_56_PROVISIONAL_CHANNELS,
|
|
6149
6172
|
IC_56_SERVICE_DELIVERY_CHANNEL,
|
|
6150
6173
|
IC_57_LABELS,
|
|
6151
6174
|
IC_57_SERVICE_AUDIENCE,
|