| import { BOOTSTRAP_CACHE_KEYS } from '../../shared/bootstrap-tier-keys.js'; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| export const STORY_TRACK_KEY_PREFIX = 'story:track:v1:'; |
| |
| export const STORY_SOURCES_KEY_PREFIX = 'story:sources:v1:'; |
| |
| export const STORY_PEAK_KEY_PREFIX = 'story:peak:v1:'; |
| |
| export const DIGEST_ACCUMULATOR_KEY_PREFIX = 'digest:accumulator:v1:'; |
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| export const STORY_TRACK_KEY = (titleHash: string) => `story:track:v1:${titleHash}`; |
| export const STORY_SOURCES_KEY = (titleHash: string) => `story:sources:v1:${titleHash}`; |
| export const STORY_PEAK_KEY = (titleHash: string) => `story:peak:v1:${titleHash}`; |
| |
| |
| |
| export const STORY_ALIAS_KEY = (titleHash: string) => `story:alias:v1:${titleHash}`; |
| export const DIGEST_ACCUMULATOR_KEY = (variant: string, lang = 'en') => `digest:accumulator:v1:${variant}:${lang}`; |
| export const DIGEST_LAST_SENT_KEY = (userId: string, variant: string) => `digest:last-sent:v1:${userId}:${variant}`; |
| |
| |
| |
| export const SHADOW_SCORE_LOG_KEY = 'shadow:score-log:v5'; |
| export const STORY_TTL = 604800; |
| export const DIGEST_ACCUMULATOR_TTL = 172800; |
|
|
| |
| |
| |
| |
| |
| export const SIMULATION_OUTCOME_LATEST_KEY = 'forecast:simulation-outcome:latest'; |
| export const SIMULATION_PACKAGE_LATEST_KEY = 'forecast:simulation-package:latest'; |
| export const REGULATORY_ACTIONS_KEY = 'regulatory:actions:v1'; |
|
|
| |
| |
| |
| |
| export const CII_RISK_SCORE_CACHE_KEYS = { |
| live: 'risk:scores:sebuf:v8', |
| stale: 'risk:scores:sebuf:stale:v8', |
| trendHistoryPrefix: 'risk:scores:sebuf:trend-history:v8', |
| } as const; |
| export const CLIMATE_ANOMALIES_KEY = 'climate:anomalies:v2'; |
| export const CLIMATE_AIR_QUALITY_KEY = 'climate:air-quality:v1'; |
| export const CLIMATE_ZONE_NORMALS_KEY = 'climate:zone-normals:v1'; |
| export const CLIMATE_CO2_MONITORING_KEY = 'climate:co2-monitoring:v1'; |
| export const CLIMATE_OCEAN_ICE_KEY = 'climate:ocean-ice:v1'; |
| export const CLIMATE_NEWS_KEY = 'climate:news-intelligence:v1'; |
| export const HEALTH_AIR_QUALITY_KEY = 'health:air-quality:v1'; |
| export const CHINA_COVERAGE_HEALTH_KEY = 'health:china-coverage:v1'; |
| export const CHINA_MACRO_KEY = BOOTSTRAP_CACHE_KEYS.chinaMacro; |
| export const CHINA_RELEASE_CALENDAR_KEY = BOOTSTRAP_CACHE_KEYS.chinaReleaseCalendar; |
| export const CHINA_CORRIDOR_CONTROL_TOWERS_KEY = |
| 'supply_chain:china-corridor-control-towers:v1'; |
| export const CHINA_ACTIVITY_NOWCAST_KEY = |
| 'economic:china:activity-nowcast:v1'; |
|
|
| export const ENERGY_MIX_KEY_PREFIX = 'energy:mix:v1:'; |
| export const ENERGY_EXPOSURE_INDEX_KEY = 'energy:exposure:v1:index'; |
| export const GAS_STORAGE_KEY_PREFIX = 'energy:gas-storage:v1:'; |
| export const GAS_STORAGE_COUNTRIES_KEY = 'energy:gas-storage:v1:_countries'; |
| export const ELECTRICITY_KEY_PREFIX = 'energy:electricity:v1:'; |
| export const ELECTRICITY_INDEX_KEY = 'energy:electricity:v1:index'; |
| export const ENERGY_INTELLIGENCE_KEY = 'energy:intelligence:feed:v1'; |
| export const CHOKEPOINT_FLOWS_KEY = 'energy:chokepoint-flows:v1'; |
| export const ENERGY_SPINE_KEY_PREFIX = 'energy:spine:v1:'; |
| export const ENERGY_SPINE_COUNTRIES_KEY = 'energy:spine:v1:_countries'; |
| export const EMBER_ELECTRICITY_KEY_PREFIX = 'energy:ember:v1:'; |
| export const EMBER_ELECTRICITY_ALL_KEY = 'energy:ember:v1:_all'; |
| export const SPR_KEY = 'economic:spr:v1'; |
| export const SPR_POLICIES_KEY = 'energy:spr-policies:v1'; |
| export const PIPELINES_GAS_KEY = 'energy:pipelines:gas:v1'; |
| export const PIPELINES_OIL_KEY = 'energy:pipelines:oil:v1'; |
| export const STORAGE_FACILITIES_KEY = 'energy:storage-facilities:v1'; |
| export const FUEL_SHORTAGES_KEY = 'energy:fuel-shortages:v1'; |
| export const ENERGY_DISRUPTIONS_KEY = 'energy:disruptions:v1'; |
| export const REFINERY_INPUTS_KEY = 'economic:refinery-inputs:v1'; |
|
|
| |
| |
| |
| |
| export const CHOKEPOINT_EXPOSURE_KEY = (iso2: string, hs2: string) => |
| `supply-chain:exposure:${iso2}:${hs2}:v1`; |
| export const CHOKEPOINT_EXPOSURE_SEED_META_KEY = 'seed-meta:supply_chain:chokepoint-exposure'; |
|
|
| |
| |
| |
| |
| export const COST_SHOCK_KEY = (iso2: string, chokepointId: string) => |
| `supply-chain:cost-shock:${iso2}:${chokepointId}:v1` as const; |
|
|
| |
| |
| |
| |
| export const SECTOR_DEPENDENCY_KEY = (iso2: string, hs2: string) => |
| `supply-chain:sector-dep:${iso2}:${hs2}:v1` as const; |
|
|
| |
| |
| |
| |
| export const ROUTE_EXPLORER_LANE_KEY = ( |
| fromIso2: string, |
| toIso2: string, |
| hs2: string, |
| cargoType: string, |
| ) => `supply-chain:route-explorer-lane:${fromIso2}:${toIso2}:${hs2}:${cargoType}:v1` as const; |
|
|
| |
| |
| |
| |
| export const ROUTE_IMPACT_KEY = (fromIso2: string, toIso2: string, hs2: string) => |
| `supply-chain:route-impact:${fromIso2}:${toIso2}:${hs2}:v1` as const; |
|
|
| |
| |
| |
| export const CHOKEPOINT_STATUS_KEY = 'supply_chain:chokepoints:v4' as const; |
|
|
| |
| |
| |
| |
| export { BOOTSTRAP_CACHE_KEYS, BOOTSTRAP_TIERS } from '../../shared/bootstrap-tier-keys.js'; |
|
|
| export const PORTWATCH_PORT_ACTIVITY_KEY_PREFIX = 'supply_chain:portwatch-ports:v1:'; |
| export const PORTWATCH_PORT_ACTIVITY_COUNTRIES_KEY = 'supply_chain:portwatch-ports:v1:_countries'; |
|
|
|
|
| export const PORTWATCH_CHOKEPOINTS_REF_KEY = 'portwatch:chokepoints:ref:v1'; |
|
|