tcef-notifications/test
vjrj b3aeb6108f Fase 1b: nucleo del matcher geoespacial (caracterizado + testeado)
Caracterizacion del matching viejo de node-red en docs/legacy-matching.md
(reglas: candidatas geo $near 1000km, filtro fino geolib dist/1000<=sub.distance,
dedupe 500m, content i18n kmnasa/kmvecinal con 'км' cirilico verbatim, sealed via
Iron). Modulos:

- matcher/content.ts: i18n kmnasa/kmvecinal + km redondeado (Math.round dist/1000*10/10)
- matcher/geo.ts: geolib.getDistance (identico al viejo) + isHit
- matcher/seal.ts: @hapi/iron (Fe26.2) — COMPATIBLE con el iron@5 de la web
  (verificado: sello en servicio -> unseal en web round-trip OK)
- matcher/matcher.ts: matchFire(fire, ctx) -> docs notifications identicos a
  node-red; dedupe 500m + 1 notif/usuario/fuego; solo audiencia web/mobile
- deps: @hapi/iron, geolib

63 tests en verde (incluye interop CJS/ESM en dist). MongoDB 3.2 -> ingesta por
polling (sin change streams), pendiente de cablear.
2026-07-13 17:58:43 +02:00
..
config.test.ts Fase 1a: microservicio tcef-notifications (workers FCM v1 + email) 2026-07-13 00:10:29 +02:00
fake-repo.ts Fase 1a: driver mongodb v3.7 (produccion es MongoDB 3.2) 2026-07-13 00:58:27 +02:00
handlers.test.ts Fase 1a: driver mongodb v3.7 (produccion es MongoDB 3.2) 2026-07-13 00:58:27 +02:00
helpers.ts Fase 1a: driver mongodb v3.7 (produccion es MongoDB 3.2) 2026-07-13 00:58:27 +02:00
mailer.test.ts Fase 1a: microservicio tcef-notifications (workers FCM v1 + email) 2026-07-13 00:10:29 +02:00
matcher.test.ts Fase 1b: nucleo del matcher geoespacial (caracterizado + testeado) 2026-07-13 17:58:43 +02:00
messages.test.ts Fase 1a: microservicio tcef-notifications (workers FCM v1 + email) 2026-07-13 00:10:29 +02:00
mode.test.ts Fase 1a: microservicio tcef-notifications (workers FCM v1 + email) 2026-07-13 00:10:29 +02:00
poller.test.ts Fase 1a: driver mongodb v3.7 (produccion es MongoDB 3.2) 2026-07-13 00:58:27 +02:00
queue.test.ts Fase 1a: fix jobId (BullMQ rechaza ':' en custom job id) 2026-07-13 08:40:38 +02:00