Repository Public
1/**2 * =============================================================================3 * SP BOUCHER | SOFTWARE & RESEARCH4 * ARTIFICIAL INTELLIGENCE • FINANCE • ENGINEERING5 * =============================================================================6 *7 * Project : Vrai-Prix8 * File : src/lib/cost/connectors/registry.ts9 * Module : lib10 * Repository : https://git.spboucher.ai/vrai-prix11 * Created : 2026-09-0812 * Last Modified : 2026-09-0813 *14 * Author : Simon-Pierre Boucher15 * Position : Professor of Finance16 * Institution : Université du Québec en Outaouais (UQO)17 * Organization : SP Boucher18 * Website : https://spboucher.ai19 * Git : https://git.spboucher.ai20 *21 * Preferred Contact: contact@spboucher.ai22 * Development : dev@spboucher.ai23 * Support : support@spboucher.ai24 * Security/Admin : admin@spboucher.ai25 *26 * Copyright (c) 202627 * Simon-Pierre Boucher28 * All rights reserved where applicable. This file is governed by the29 * applicable project license, copyright notices and relevant law.30 * Existing third-party rights and notices remain unaffected.31 *32 * License : None specified (no license file in this repository)33 *34 * Do not embed credentials, private keys, access tokens,35 * certificates or confidential personal information.36 *37 * =============================================================================38 * END OF SP BOUCHER SOURCE HEADER39 * =============================================================================40 */4142/** Registre des connecteurs et fréquences de synchronisation. */43import { apchqConnector } from "./apchq";44import { ccqConnector } from "./ccq";45import { statcanConnector } from "./statcan";46import { bmrAdapter, canacAdapter, homeDepotAdapter, makeRetailConnector, patrickMorinAdapter, ronaAdapter } from "./retail";47import type { ConnectorKey, CostConnector } from "./types";4849export const CONNECTORS: Record<Exclude<ConnectorKey, "altus" | "rsmeans">, CostConnector> = {50 apchq: apchqConnector,51 ccq: ccqConnector,52 statcan: statcanConnector,53 canac: makeRetailConnector(canacAdapter),54 bmr: makeRetailConnector(bmrAdapter),55 patrickmorin: makeRetailConnector(patrickMorinAdapter),56 rona: makeRetailConnector(ronaAdapter),57 homedepot: makeRetailConnector(homeDepotAdapter),58};5960export type RunnableKey = keyof typeof CONNECTORS;61export const RUNNABLE_KEYS = Object.keys(CONNECTORS) as RunnableKey[];62/** Import manuel seulement (aucun run automatique). */63export const IMPORT_ONLY: ConnectorKey[] = ["altus", "rsmeans"];6465export function isRunnable(k: string): k is RunnableKey {66 return k in CONNECTORS;67}68