@htilabs/platform-common-models 0.8.17 → 0.8.18
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.map +1 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/cvcs/index.cjs +3081 -0
- package/dist/cvcs/index.cjs.map +1 -1
- package/dist/cvcs/index.d.cts +5332 -1994
- package/dist/cvcs/index.d.ts +5332 -1994
- package/dist/cvcs/index.js +3080 -0
- package/dist/cvcs/index.js.map +1 -1
- package/dist/index.cjs +3339 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +264 -2
- package/dist/index.d.ts +264 -2
- package/dist/index.js +3337 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/package.json +1 -1
- package/src/__sot__/README.md +36 -1
- package/src/__sot__/coreIndicatorFields.ts +331 -0
- package/src/__sot__/coreIndicators.pin.json +1929 -1
- package/src/__sot__/cvcIndex.pin.json +8 -4
- package/src/__tests__/__snapshots__/cvc-sot.snap +4 -0
- package/src/__tests__/cvc-181-182-country-parity.test.ts +163 -0
- package/src/__tests__/cvc-drift-gate.test.ts +373 -11
- package/src/__tests__/cvc-sot-snapshot.test.ts +6 -0
- package/src/__tests__/cvc-structural.test.ts +2 -0
- package/src/constants/ic.ts +14 -0
- package/src/cvcs/countries.v1.0.0.json +3077 -0
- package/src/cvcs/index.ts +2 -0
- package/src/generated/cvc-enums.ts +264 -0
|
@@ -655,6 +655,12 @@ const SOT_SPECS: readonly SotSpec[] = [
|
|
|
655
655
|
// missingness root + 3 canonical missingness children (Unknown / Declined to
|
|
656
656
|
// asnwer / Not collected, carried verbatim from the codebook) = 253.
|
|
657
657
|
{ file: "citizenship.v1.0.0.json", domain: "citizenship", expectedCount: 253 },
|
|
658
|
+
// CVC-181 — the SAME 249 countries (identical keys + ISO codes; asserted by
|
|
659
|
+
// cvc-181-182-country-parity.test.ts) + 1 missingness root + 3 workspace-
|
|
660
|
+
// standard missingness children (this codebook carries none of its own) + the
|
|
661
|
+
// 1 authored `non_us_unspecified` local extension = 254. The +1 over CVC-182
|
|
662
|
+
// is that local extension, and nothing else.
|
|
663
|
+
{ file: "countries.v1.0.0.json", domain: "countries", expectedCount: 254 },
|
|
658
664
|
// CVC-235 — 4 L1 trafficking-relevant roles + 1 missingness root + 3 canonical
|
|
659
665
|
// missingness children = 8.
|
|
660
666
|
{
|
|
@@ -206,6 +206,8 @@ const SOT_FILES: readonly SotFile[] = [
|
|
|
206
206
|
{ file: "whyNots.v1.0.0.json", expectedDomain: "why_nots" },
|
|
207
207
|
// ─── 0.8.13 held-item resolutions (Job A) ───
|
|
208
208
|
{ file: "citizenship.v1.0.0.json", expectedDomain: "citizenship" },
|
|
209
|
+
// CVC-181 — the country list CVC-182 shares. Authored 2026-08-26.
|
|
210
|
+
{ file: "countries.v1.0.0.json", expectedDomain: "countries" },
|
|
209
211
|
{ file: "traffickingRelevantRole.v1.0.0.json", expectedDomain: "trafficking_relevant_role" },
|
|
210
212
|
// ─── Domains the hand-maintained list previously OMITTED (found by the
|
|
211
213
|
// CVC drift gate, which scans the directory instead of a list). ───
|
package/src/constants/ic.ts
CHANGED
|
@@ -2632,6 +2632,20 @@ export const CVC_122_LABELS: Record<CVC122Value, string> = {
|
|
|
2632
2632
|
|
|
2633
2633
|
// ─── CVC-181: Countries (ISO 3166-1 alpha-2) ────────────────────────
|
|
2634
2634
|
// Full list of countries using ISO 3166-1 alpha-2 codes.
|
|
2635
|
+
//
|
|
2636
|
+
// AS OF 2026-08-26 THE SOT IS `src/cvcs/countries.v1.0.0.json`, authored from the
|
|
2637
|
+
// canonical `core - countries — codebook 2.csv`. These two constants predate it and
|
|
2638
|
+
// are RETAINED for existing consumers; new code should import `CountryKeys` from
|
|
2639
|
+
// `src/generated/cvc-enums.ts` (or `countriesSot`) instead.
|
|
2640
|
+
//
|
|
2641
|
+
// The ISO SET here is exact — all 249 codes, no additions, no omissions, verified
|
|
2642
|
+
// against the codebook. `CVC_181_LABELS`, however, carries SHORT-FORM display labels
|
|
2643
|
+
// that differ from the canonical label on 16 codes: BO, CD, IR, KP, KR, LA, MK, FM,
|
|
2644
|
+
// MD, PS, SH, SY, TW, TZ, VE, VN ("Vietnam" vs "Viet Nam", "Korea, South" vs "Korea,
|
|
2645
|
+
// Republic of", …). The SOT JSON carries the canonical spelling verbatim in both
|
|
2646
|
+
// `title` and `canonicalLabel`. That divergence is display-only — nothing keys off
|
|
2647
|
+
// these strings — but it is real, and collapsing the two surfaces onto one label set
|
|
2648
|
+
// is its own decision (a visible UI change), deliberately not made here.
|
|
2635
2649
|
|
|
2636
2650
|
export const CVC_181_COUNTRIES = {
|
|
2637
2651
|
US: "US",
|