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

View File

@@ -51,6 +51,8 @@ type Dataset = {
theme: string;
params: Record<string, string | string[]>;
geos?: string[];
/** Region for every series of the dataset (partner datasets: the partner, not the reporter). */
region?: string;
};
export const EUROSTAT_DATASETS: Dataset[] = [
@@ -66,6 +68,18 @@ export const EUROSTAT_DATASETS: Dataset[] = [
// GJ83P70 (band D3, 83.7 GJ) carries the pre-2007 history (was nrg_pc_202_h); it is only published per GJ (gross calorific value).
params: { nrg_cons: ['GJ20-199', 'GJ83P70'], currency: 'EUR', unit: ['KWH', 'GJ_GCV'] }
},
{
// §8 CW12: EU27 trade in goods with Curaçao (million EUR).
code: 'ext_lt_maineu',
theme: 'curacao',
params: {
partner: 'CW',
sitc06: 'TOTAL',
indic_et: ['MIO_EXP_VAL', 'MIO_IMP_VAL', 'MIO_BAL_VAL', 'PC_EXP_PART', 'PC_IMP_PART']
},
geos: ['EU27_2020'],
region: 'CUW'
},
{ code: 'nrg_ind_id', theme: 'energy', params: { siec: 'TOTAL' } },
{
code: 'irt_lt_mcby_m',
@@ -222,7 +236,7 @@ async function pull(d: Dataset): Promise<number> {
.join(', ')}`.replace(/ · $/, ''),
unit,
freq,
region_code: geo ? (GEO_REGION[geo.code] ?? null) : null,
region_code: d.region ?? (geo ? (GEO_REGION[geo.code] ?? null) : null),
theme: d.theme,
meta: { dataset: d.code, dims: Object.fromEntries(labels.map((l) => [l.id, l.code])) }
});