@htilabs/platform-common-models 0.8.15 → 0.8.16
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/cvcs/index.cjs +120 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +2304 -2170
- package/dist/cvcs/index.d.ts +2304 -2170
- package/dist/cvcs/index.js +119 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +120 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +119 -0
- package/dist/index.js.map +1 -1
- package/package.json +25 -26
- package/src/cvcs/index.ts +8 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htilabs/platform-common-models",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.16",
|
|
4
4
|
"description": "Shared constants, types, and models for HTI Labs applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -62,30 +62,6 @@
|
|
|
62
62
|
"dist",
|
|
63
63
|
"src"
|
|
64
64
|
],
|
|
65
|
-
"scripts": {
|
|
66
|
-
"build": "tsup",
|
|
67
|
-
"dev": "tsup --watch",
|
|
68
|
-
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts/tsconfig.json",
|
|
69
|
-
"lint": "eslint src --ext .ts",
|
|
70
|
-
"lint:fix": "eslint src --ext .ts --fix",
|
|
71
|
-
"test": "vitest run",
|
|
72
|
-
"test:watch": "vitest",
|
|
73
|
-
"test:snapshot": "UPDATE_SNAPSHOT=1 vitest run",
|
|
74
|
-
"clean": "rm -rf dist",
|
|
75
|
-
"codegen:cvc": "tsx scripts/codegen-cvc-enums.ts",
|
|
76
|
-
"codegen:cvc:check": "tsx scripts/codegen-cvc-enums.ts --check",
|
|
77
|
-
"sot:pins": "tsx scripts/sot-pins.ts",
|
|
78
|
-
"sot:pins:check": "tsx scripts/sot-pins.ts --check",
|
|
79
|
-
"gate:cvc": "vitest run src/__tests__/cvc-drift-gate.test.ts",
|
|
80
|
-
"bridge:codebook": "tsx scripts/codebook-bridge.ts",
|
|
81
|
-
"bridge:codebook:check": "tsx scripts/codebook-bridge.ts --check",
|
|
82
|
-
"test:bridge": "node --import tsx --test scripts/codebook-bridge.test.ts",
|
|
83
|
-
"seed:cvc": "tsx scripts/seed-cvc.ts",
|
|
84
|
-
"seed:cvc:all": "tsx scripts/seed-all-cvcs.ts",
|
|
85
|
-
"test:seed": "node --import tsx --test scripts/seed-cvc.test.ts",
|
|
86
|
-
"test:guard": "node --import tsx --test scripts/lib/confirmTargetDb.test.ts",
|
|
87
|
-
"prepublishOnly": "npm run build"
|
|
88
|
-
},
|
|
89
65
|
"keywords": [
|
|
90
66
|
"hti",
|
|
91
67
|
"platform-common",
|
|
@@ -120,5 +96,28 @@
|
|
|
120
96
|
},
|
|
121
97
|
"engines": {
|
|
122
98
|
"node": ">=18.0.0"
|
|
99
|
+
},
|
|
100
|
+
"scripts": {
|
|
101
|
+
"build": "tsup",
|
|
102
|
+
"dev": "tsup --watch",
|
|
103
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p scripts/tsconfig.json",
|
|
104
|
+
"lint": "eslint src --ext .ts",
|
|
105
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
106
|
+
"test": "vitest run",
|
|
107
|
+
"test:watch": "vitest",
|
|
108
|
+
"test:snapshot": "UPDATE_SNAPSHOT=1 vitest run",
|
|
109
|
+
"clean": "rm -rf dist",
|
|
110
|
+
"codegen:cvc": "tsx scripts/codegen-cvc-enums.ts",
|
|
111
|
+
"codegen:cvc:check": "tsx scripts/codegen-cvc-enums.ts --check",
|
|
112
|
+
"sot:pins": "tsx scripts/sot-pins.ts",
|
|
113
|
+
"sot:pins:check": "tsx scripts/sot-pins.ts --check",
|
|
114
|
+
"gate:cvc": "vitest run src/__tests__/cvc-drift-gate.test.ts",
|
|
115
|
+
"bridge:codebook": "tsx scripts/codebook-bridge.ts",
|
|
116
|
+
"bridge:codebook:check": "tsx scripts/codebook-bridge.ts --check",
|
|
117
|
+
"test:bridge": "node --import tsx --test scripts/codebook-bridge.test.ts",
|
|
118
|
+
"seed:cvc": "tsx scripts/seed-cvc.ts",
|
|
119
|
+
"seed:cvc:all": "tsx scripts/seed-all-cvcs.ts",
|
|
120
|
+
"test:seed": "node --import tsx --test scripts/seed-cvc.test.ts",
|
|
121
|
+
"test:guard": "node --import tsx --test scripts/lib/confirmTargetDb.test.ts"
|
|
123
122
|
}
|
|
124
|
-
}
|
|
123
|
+
}
|
package/src/cvcs/index.ts
CHANGED
|
@@ -202,6 +202,13 @@ import minorAdultStatusSot from "./minorAdultStatus.v1.0.0.json" with { type: "j
|
|
|
202
202
|
// across the merged tree. Coexists with the `CVC_67_HMIS_SEX` constants in
|
|
203
203
|
// `../constants/ic.ts`; the JSON is the SOT, the constants are the legacy view.
|
|
204
204
|
import hmisSexSot from "./hmisSex.v1.0.0.json" with { type: "json" };
|
|
205
|
+
// Domain authored in PR #142 (0.8.15) alongside the codegen manifest entry in
|
|
206
|
+
// scripts/codegen-cvc-enums.ts, but never wired into this barrel — the SOT
|
|
207
|
+
// JSON shipped and `src/generated/cvc-enums.ts` regenerated correctly (it
|
|
208
|
+
// reads `src/cvcs/*.json` directly), but this file does not, so the export
|
|
209
|
+
// never reached the compiled `dist/cvcs/`. Wired in here so downstream
|
|
210
|
+
// consumers that derive their key maps from `./cvcs` (e.g. PAVE) can see it.
|
|
211
|
+
import criminalOrgCategorySot from "./criminalOrgCategory.v1.0.0.json" with { type: "json" };
|
|
205
212
|
|
|
206
213
|
export {
|
|
207
214
|
serviceCategoriesSot,
|
|
@@ -378,4 +385,5 @@ export {
|
|
|
378
385
|
subjectTypeSot,
|
|
379
386
|
minorAdultStatusSot,
|
|
380
387
|
hmisSexSot,
|
|
388
|
+
criminalOrgCategorySot,
|
|
381
389
|
};
|