// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial /** * Registers the corpus source fetchers. * * They download raw files and manifests for the adapters to read. */ import { fetchBrussels } from "#be/tools/fetch/brussels" import { fetchWallonie } from "#be/tools/fetch/wallonie" import { fetchCzCuzk } from "#cz/tools/fetch/cuzk" import { fetchDKAddresses } from "#dk/tools/fetch/inspire" import { fetchADSEE } from "#ee/tools/fetch/ads" import { fetchESBizkaia } from "#es/tools/fetch/bizkaia" import { fetchESCatastro } from "#es/tools/fetch/catastro" import { fetchESGipuzkoa } from "#es/tools/fetch/gipuzkoa" import { fetchESNavarra } from "#es/tools/fetch/navarra" import { fetchRyhti } from "#fi/tools/fetch/ryhti" import { fetchAnnuaireEducationOverseas } from "#fr/tools/fetch/annuaire-education" import { fetchBan } from "#fr/tools/fetch/ban" import { fetchFinessOverseas } from "#fr/tools/fetch/finess" import { fetchLaPostePoincont } from "#fr/tools/fetch/laposte-poincont" import { fetchGBOSOpen } from "#gb/tools/fetch/os-open" import { fetchITANAC } from "#it/tools/fetch/anac" import { fetchHoujinJP } from "#jp/tools/fetch/houjin" import { fetchJusoKR } from "#kr/tools/fetch/juso" import { fetchLocaldataKR } from "#kr/tools/fetch/localdata" import { fetchBDAdresses } from "#lu/tools/fetch/bd-adresses" import { fetchVaris } from "#lv/tools/fetch/varis" import { fetchOPTNCAgences } from "#nc/tools/fetch/opt-nc" import { fetchNLKadaster } from "#nl/tools/fetch/kadaster" import { fetchMatrikkelen } from "#no/tools/fetch/matrikkelen" import { fetchEMUiAPL } from "#pl/tools/fetch/emuia" import { fetchReteaScolara } from "#ro/tools/fetch/retea-scolara" import { fetchACRASG } from "#sg/tools/fetch/acra" import { fetchSKInspire } from "#sk/tools/fetch/inspire" import { fetchCORDIS } from "#tools/fetch/cordis" import { fetchGeonamesDumps } from "#tools/fetch/geonames/dump" import { fetchGeonamesHierarchy } from "#tools/fetch/geonames/hierarchy" import { fetchGeonamesPostal } from "#tools/fetch/geonames/postal" import { fetchGLEIF } from "#tools/fetch/gleif" import { fetchOpenAddresses } from "#tools/fetch/openaddresses" import { fetchOurAirports } from "#tools/fetch/ourairports" import { fetchOverturePlacesIN } from "#tools/fetch/overture-places-in" import { fetchVlaanderenAD } from "#tools/fetch/vlaanderen-ad" import { fetchWikidataSubVenue } from "#tools/fetch/wikidata/subvenue" import { fetchWikidataVitalPlaces } from "#tools/fetch/wikidata/vital-places" import { fetchTWChunghwaPost } from "#tw/tools/fetch/chunghwa-post" import { fetchGCISTW } from "#tw/tools/fetch/gcis" import { fetchHRSA } from "#us/tools/fetch/hrsa" import { fetchIMLSPLS } from "#us/tools/fetch/imls-pls" import { fetchNAD } from "#us/tools/fetch/nad" import { fetchNGAWPI } from "#us/tools/fetch/nga-wpi" import { fetchNPPES } from "#us/tools/fetch/nppes" import { fetchStateHISchools } from "#us/tools/fetch/state/hi-schools" import { fetchStateSources } from "#us/tools/fetch/state/sources" import { fetchTigerFull } from "#us/tools/fetch/tiger-full" import { fetchUSGSGNIS } from "#us/tools/fetch/usgs/gnis" import { fetchUSGSStructures } from "#us/tools/fetch/usgs/structures" /** * The fetcher for each source id that `mailwoman corpus fetch` accepts. */ export const FETCH_SOURCES = { "acra-sg": fetchACRASG, "ads-ee": fetchADSEE, ban: fetchBan, brussels: fetchBrussels, cordis: fetchCORDIS, "bd-adresses": fetchBDAdresses, "cz-cuzk": fetchCzCuzk, "dk-inspire": fetchDKAddresses, "emuia-pl": fetchEMUiAPL, "es-bizkaia": fetchESBizkaia, "es-catastro": fetchESCatastro, "es-gipuzkoa": fetchESGipuzkoa, "es-navarra": fetchESNavarra, "fr-annuaire-education-overseas": fetchAnnuaireEducationOverseas, "fr-finess-overseas": fetchFinessOverseas, "fr-laposte-poincont": fetchLaPostePoincont, "gb-os-open": fetchGBOSOpen, "gcis-tw": fetchGCISTW, gleif: fetchGLEIF, "houjin-jp": fetchHoujinJP, "it-anac": fetchITANAC, "juso-kr": fetchJusoKR, "localdata-kr": fetchLocaldataKR, "lv-varis": fetchVaris, matrikkelen: fetchMatrikkelen, nad: fetchNAD, "nc-opt-agences": fetchOPTNCAgences, "nl-kadaster": fetchNLKadaster, "ro-retea-scolara": fetchReteaScolara, ryhti: fetchRyhti, "sk-inspire": fetchSKInspire, "geonames-dump": fetchGeonamesDumps, "geonames-hierarchy": fetchGeonamesHierarchy, "geonames-postal": fetchGeonamesPostal, hrsa: fetchHRSA, "imls-pls": fetchIMLSPLS, nppes: fetchNPPES, "nga-wpi": fetchNGAWPI, openaddresses: fetchOpenAddresses, ourairports: fetchOurAirports, "overture-places-in": fetchOverturePlacesIN, vlaanderen: fetchVlaanderenAD, wallonie: fetchWallonie, "state-sources": fetchStateSources, "state-hi-schools": fetchStateHISchools, "tiger-full": fetchTigerFull, "tw-chunghwa-post-offices": fetchTWChunghwaPost, "usgs-gnis": fetchUSGSGNIS, "usgs-structures": fetchUSGSStructures, "wikidata-subvenue": fetchWikidataSubVenue, "wikidata-vital-places": fetchWikidataVitalPlaces, } as const /** * A source id in {@link FETCH_SOURCES}. */ export type FetchSourceID = keyof typeof FETCH_SOURCES