-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathimf-client.ts
More file actions
60 lines (55 loc) · 1.64 KB
/
Copy pathimf-client.ts
File metadata and controls
60 lines (55 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/**
* @module scripts/imf-client
* @description Thin re-export shim for the bounded-context IMF client.
*
* The implementation was split into `scripts/imf/` in the 2026-05
* refactor (Hack23/riksdagsmonitor#2580). This shim preserves the
* stable public surface so callers (`imf-fetch`, `imf-context`,
* `check-imf-connectivity`, and `tests/imf-client.test.ts`) keep
* working unchanged. Add new symbols to the relevant submodule, not
* here.
*
* @author Hack23 AB
* @license Apache-2.0
*/
export { ImfClient, getDefaultImfClient } from './imf/client.js';
export type {
ImfBatchIndicatorErrorEvent,
ImfClientConfig,
ImfDataPoint,
} from './imf/types.js';
// Errors
export { ImfHttpError } from './imf/errors/http-error.js';
export { ImfWeoSdmxOnlyError } from './imf/errors/weo-sdmx-only.js';
// Indicators
export {
IMF_WEO_INDICATORS,
IMF_WEO_DATAMAPPER_AVAILABLE,
IMF_WEO_SDMX_ONLY,
weoSdmxPath,
} from './imf/indicators/weo.js';
export { IMF_FM_INDICATORS } from './imf/indicators/fm.js';
export {
COFOG_DEFENCE,
COFOG_EDUCATION,
COFOG_HEALTH,
COFOG_SOCIAL_PROTECTION,
IMF_GFS_COFOG_CODES,
} from './imf/indicators/cofog-codes.js';
// Parsers
export {
parseDatamapperIndicators,
parseDatamapperValues,
} from './imf/parsers/datamapper-envelope.js';
export type {
DatamapperEnvelope,
DatamapperIndicatorsResponse,
DatamapperResponse,
ImfDatamapperIndicatorMeta,
} from './imf/parsers/datamapper-envelope.js';
// Transport helpers (exported for tests)
export {
calculateRetryDelay,
RETRY_AFTER_CAP_MS,
} from './imf/transport/retry.js';
export { normalizeSdmxPathForBase } from './imf/transport/path-normaliser.js';