feat: initial commit - Table Expiration Watcher
- Monitor de tabelas de planos de saúde prestes a vencer/vencidas - Stack: Bun + Hono + SQLite + Zod + date-fns - Alertas via Telegram e WhatsApp (AstraCalls MCP) - UI de configuração estilo Apple/Planium em /configs - Scheduler periódico com intervalo configurável - Testes unitários e de integração (30 testes passando) Co-Authored-By: Coder <coder@agent.local> Co-Authored-By: Review <review@agent.local> Co-Authored-By: Testing <testing@agent.local>
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
# Table Expiration Watcher — .env.example
|
||||
|
||||
# ===========================================
|
||||
# Table Expiration Watcher - Environment Config
|
||||
# ===========================================
|
||||
# Copie para .env e preencha os valores sensíveis
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# Redis (opcional - futuro: cache distribuído / locks)
|
||||
# -------------------------------------------------------------------
|
||||
REDIS_URL=redis://localhost:6379
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# CMS RMS API (OBRIGATÓRIO em produção)
|
||||
# -------------------------------------------------------------------
|
||||
CMS_API_URL=https://cms.rmscorretora.com.br/api
|
||||
CMS_API_KEY=rms_sk_sua_chave_aqui
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# Telegram Bot (opcional - para alertas no Telegram)
|
||||
# -------------------------------------------------------------------
|
||||
TELEGRAM_BOT_TOKEN=123456789:ABCDefGhIJKlmNoPQRsTUVwxyZ
|
||||
TELEGRAM_CHAT_ID=-1001234567890
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# AstraCalls WhatsApp (opcional - para alertas no WhatsApp)
|
||||
# -------------------------------------------------------------------
|
||||
ASTRACALLS_MCP_URL=https://astra.rdsnexus.vix.br/mcp
|
||||
ASTRACALLS_BEARER_TOKEN=seu_bearer_token_aqui
|
||||
ASTRACALLS_SESSION_PHONE=5527988037765
|
||||
WHATSAPP_ALERT_TARGETS=5527997509094,120363402791494329@g.us
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# Scheduler & Thresholds
|
||||
# -------------------------------------------------------------------
|
||||
POLL_INTERVAL_MS=3600000
|
||||
TABLE_EXPIRY_WARNING_DAYS=30
|
||||
TABLE_EXPIRY_CRITICAL_DAYS=7
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# API Server
|
||||
# -------------------------------------------------------------------
|
||||
API_PORT=3002
|
||||
API_SECRET_KEY=dev-secret-change-me-em-producao
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# SQLite Local Storage
|
||||
# -------------------------------------------------------------------
|
||||
SQLITE_PATH=./data/tables.db
|
||||
|
||||
# -------------------------------------------------------------------
|
||||
# General
|
||||
# -------------------------------------------------------------------
|
||||
NODE_ENV=development
|
||||
LOG_LEVEL=info
|
||||
Reference in New Issue
Block a user