stats §8: Curaçao from ILOSTAT (SDMX), OWID, UN SDG 531, UN Comtrade 531 (cwintl + weekly timer), EU trade with CW (Eurostat ext_lt_maineu); CBS Curaçao LFS file pick fix; Curaçao detail panels on /stats/countries/CUW
All checks were successful
Deploy production / deploy (push) Successful in 1m10s

This commit is contained in:
2026-10-25 21:47:05 +00:00
parent a6b4f9931d
commit 031ee4baf2
10 changed files with 795 additions and 52 deletions

64
src/lib/stats/curacao.ts Normal file
View File

@@ -0,0 +1,64 @@
// §8 Curaçao detail series (CBS Curaçao, Eurostat, ILOSTAT, OWID, UN SDG, UN Comtrade), all with
// region CUW in stats.series. Loaded by /stats/countries/CUW next to the World Bank profile.
/** CBS Curaçao GDP by industry (ISIC 4 sections as published, mln ANG) with short labels. */
export const CW_INDUSTRIES: Record<string, string> = {
'a+b': 'Agriculture & mining',
c: 'Manufacturing',
'd+e': 'Utilities',
f: 'Construction',
g: 'Trade',
h: 'Transport',
i: 'Hotels & restaurants',
j: 'ICT',
k: 'Finance',
l: 'Real estate',
m: 'Professional services',
n: 'Admin services',
o: 'Public administration',
p: 'Education',
q: 'Health',
r: 'Arts & recreation',
's+t': 'Other services'
};
export const CW_NIGHT_MARKETS: Record<string, string> = {
europe: 'Europe',
north_america: 'North America',
south_america: 'South America',
caribbean: 'Caribbean',
others: 'Other'
};
export const EU_TRADE = (indic: string) => `eurostat:ext_lt_maineu:${indic}.TOTAL.CW.EU27_2020`;
export const CW_SERIES = [
'cw:cpi:index',
'cw:cpi:yoy',
'cw:gdp:gdp',
'cw:gdp:real_growth_pct',
...Object.keys(CW_INDUSTRIES).map((k) => `cw:gdp:${k}`),
'cw:gov:r.total',
'cw:gov:e.total',
'cw:gov:balance',
'cw:pop:jan1',
'cw:pop:census',
...['total', 'm', 'f', '15-24'].map((g) => `cw:lfs:unemployment_rate_pct:${g}`),
'cw:lfs:net_participation_pct:total',
'cw:tour:cruise_pax',
'cw:tour:daytrippers',
'cw:tour:nights',
...Object.keys(CW_NIGHT_MARKETS).map((m) => `cw:tour:nights:${m}`),
EU_TRADE('MIO_EXP_VAL'),
EU_TRADE('MIO_IMP_VAL'),
EU_TRADE('MIO_BAL_VAL'),
'ilostat:une_deap_sex_age_rt:total:15plus',
'owid:cw:population',
'owid:cw:co-emissions-per-capita',
'owid:cw:median-age',
'unsdg:eg_fec_rnew',
'comtrade:cw:imports:world',
'comtrade:cw:exports:world',
'comtrade:cw:imports:usa',
'comtrade:cw:imports:nld'
];