288 lines
7.0 KiB
YAML
288 lines
7.0 KiB
YAML
# Grafo de Dependencias - MiInventario
|
|
# Version: 1.0.0
|
|
# Fecha: 2026-01-16
|
|
|
|
version: "1.0.0"
|
|
proyecto: "miinventario"
|
|
fecha_creacion: "2026-01-16"
|
|
|
|
# ============================================================================
|
|
# DEPENDENCIAS EXTERNAS (NPM, etc.)
|
|
# ============================================================================
|
|
dependencias_externas:
|
|
backend:
|
|
framework: "NestJS"
|
|
version: "^10.0.0"
|
|
principales:
|
|
- nombre: "@nestjs/core"
|
|
version: "^10.0.0"
|
|
uso: "Framework core"
|
|
- nombre: "@nestjs/typeorm"
|
|
version: "^10.0.0"
|
|
uso: "ORM integration"
|
|
- nombre: "@nestjs/jwt"
|
|
version: "^10.0.0"
|
|
uso: "JWT authentication"
|
|
- nombre: "@nestjs/bull"
|
|
version: "^10.0.0"
|
|
uso: "Queue processing"
|
|
- nombre: "stripe"
|
|
version: "^14.0.0"
|
|
uso: "Payment processing"
|
|
- nombre: "openai"
|
|
version: "^4.0.0"
|
|
uso: "AI vision processing"
|
|
- nombre: "@anthropic-ai/sdk"
|
|
version: "^0.10.0"
|
|
uso: "AI vision fallback"
|
|
- nombre: "firebase-admin"
|
|
version: "^12.0.0"
|
|
uso: "Push notifications"
|
|
- nombre: "@aws-sdk/client-s3"
|
|
version: "^3.0.0"
|
|
uso: "File storage"
|
|
|
|
mobile:
|
|
framework: "React Native (Expo)"
|
|
version: "SDK 52"
|
|
principales:
|
|
- nombre: "expo"
|
|
version: "^52.0.0"
|
|
uso: "Mobile framework"
|
|
- nombre: "expo-router"
|
|
version: "^4.0.0"
|
|
uso: "Navigation"
|
|
- nombre: "expo-camera"
|
|
version: "^15.0.0"
|
|
uso: "Video capture"
|
|
- nombre: "zustand"
|
|
version: "^4.0.0"
|
|
uso: "State management"
|
|
- nombre: "react-query"
|
|
version: "^5.0.0"
|
|
uso: "Data fetching"
|
|
|
|
database:
|
|
tipo: "PostgreSQL"
|
|
version: "15+"
|
|
orm: "TypeORM"
|
|
|
|
cache:
|
|
tipo: "Redis"
|
|
version: "7+"
|
|
uso: "Bull Queue, caching"
|
|
|
|
storage:
|
|
tipo: "S3/MinIO"
|
|
uso: "Video storage"
|
|
|
|
# ============================================================================
|
|
# DEPENDENCIAS INTERNAS (Entre modulos del proyecto)
|
|
# ============================================================================
|
|
dependencias_internas:
|
|
modulos:
|
|
auth:
|
|
depende_de: [users]
|
|
dependientes: [stores, inventory, credits, payments, referrals, notifications, admin, feedback, validations]
|
|
|
|
users:
|
|
depende_de: []
|
|
dependientes: [auth, stores, credits, payments, referrals, notifications, admin, feedback]
|
|
|
|
stores:
|
|
depende_de: [auth, users]
|
|
dependientes: [inventory, videos, feedback, validations]
|
|
|
|
inventory:
|
|
depende_de: [auth, stores]
|
|
dependientes: [feedback, validations]
|
|
|
|
videos:
|
|
depende_de: [auth, stores, credits, ia-provider]
|
|
dependientes: [inventory]
|
|
|
|
credits:
|
|
depende_de: [auth, users]
|
|
dependientes: [payments, referrals, videos]
|
|
|
|
payments:
|
|
depende_de: [auth, credits, notifications]
|
|
dependientes: []
|
|
|
|
referrals:
|
|
depende_de: [auth, users, credits]
|
|
dependientes: []
|
|
|
|
notifications:
|
|
depende_de: [auth, users]
|
|
dependientes: [payments]
|
|
|
|
ia-provider:
|
|
depende_de: []
|
|
dependientes: [videos, validations]
|
|
|
|
admin:
|
|
depende_de: [auth, users]
|
|
dependientes: []
|
|
|
|
feedback:
|
|
depende_de: [auth, users, stores]
|
|
dependientes: []
|
|
|
|
validations:
|
|
depende_de: [auth, stores, inventory, ia-provider]
|
|
dependientes: []
|
|
|
|
# ============================================================================
|
|
# DEPENDENCIAS DE WORKSPACE
|
|
# ============================================================================
|
|
dependencias_workspace:
|
|
definiciones:
|
|
- "@WS_DEF_CCA"
|
|
- "@WS_DEF_VAL_BE"
|
|
- "@WS_DEF_VAL_FE"
|
|
|
|
directivas:
|
|
- "SIMCO-TAREA.md"
|
|
- "SIMCO-BACKEND.md"
|
|
- "PRINCIPIO-CAPVED.md"
|
|
|
|
catalogos: []
|
|
|
|
# ============================================================================
|
|
# DEPENDENCIAS DE OTROS PROYECTOS
|
|
# ============================================================================
|
|
dependencias_proyectos:
|
|
proyectos: []
|
|
nota: "Proyecto independiente - no depende de otros proyectos"
|
|
|
|
# ============================================================================
|
|
# INTEGRACIONES EXTERNAS
|
|
# ============================================================================
|
|
integraciones:
|
|
- nombre: "Stripe"
|
|
tipo: "payments"
|
|
modulos: [payments]
|
|
endpoints_externos:
|
|
- "api.stripe.com"
|
|
|
|
- nombre: "OXXO (via Stripe)"
|
|
tipo: "payments"
|
|
modulos: [payments]
|
|
|
|
- nombre: "7-Eleven"
|
|
tipo: "payments"
|
|
modulos: [payments]
|
|
estado: "planificado"
|
|
|
|
- nombre: "Firebase FCM"
|
|
tipo: "notifications"
|
|
modulos: [notifications]
|
|
endpoints_externos:
|
|
- "fcm.googleapis.com"
|
|
|
|
- nombre: "S3/MinIO"
|
|
tipo: "storage"
|
|
modulos: [videos]
|
|
endpoints_externos:
|
|
- "s3.amazonaws.com (prod)"
|
|
- "localhost:9000 (dev)"
|
|
|
|
- nombre: "OpenAI GPT-4o Vision"
|
|
tipo: "ai"
|
|
modulos: [ia-provider]
|
|
endpoints_externos:
|
|
- "api.openai.com"
|
|
|
|
- nombre: "Anthropic Claude Vision"
|
|
tipo: "ai"
|
|
modulos: [ia-provider]
|
|
endpoints_externos:
|
|
- "api.anthropic.com"
|
|
|
|
# ============================================================================
|
|
# GRAFO VISUAL
|
|
# ============================================================================
|
|
grafo:
|
|
formato: "mermaid"
|
|
diagrama: |
|
|
graph TD
|
|
subgraph Foundation
|
|
AUTH[Auth]
|
|
USERS[Users]
|
|
STORES[Stores]
|
|
HEALTH[Health]
|
|
end
|
|
|
|
subgraph Business
|
|
INV[Inventory]
|
|
VIDEOS[Videos]
|
|
CREDITS[Credits]
|
|
PAYMENTS[Payments]
|
|
REFERRALS[Referrals]
|
|
end
|
|
|
|
subgraph Support
|
|
NOTIF[Notifications]
|
|
ADMIN[Admin]
|
|
FEEDBACK[Feedback]
|
|
VALID[Validations]
|
|
end
|
|
|
|
subgraph Integration
|
|
IAP[IA Provider]
|
|
end
|
|
|
|
AUTH --> USERS
|
|
STORES --> AUTH
|
|
STORES --> USERS
|
|
INV --> AUTH
|
|
INV --> STORES
|
|
VIDEOS --> AUTH
|
|
VIDEOS --> STORES
|
|
VIDEOS --> CREDITS
|
|
VIDEOS --> IAP
|
|
CREDITS --> AUTH
|
|
CREDITS --> USERS
|
|
PAYMENTS --> AUTH
|
|
PAYMENTS --> CREDITS
|
|
PAYMENTS --> NOTIF
|
|
REFERRALS --> AUTH
|
|
REFERRALS --> USERS
|
|
REFERRALS --> CREDITS
|
|
NOTIF --> AUTH
|
|
NOTIF --> USERS
|
|
ADMIN --> AUTH
|
|
ADMIN --> USERS
|
|
FEEDBACK --> AUTH
|
|
FEEDBACK --> USERS
|
|
FEEDBACK --> STORES
|
|
VALID --> AUTH
|
|
VALID --> STORES
|
|
VALID --> INV
|
|
VALID --> IAP
|
|
|
|
subgraph External
|
|
STRIPE[Stripe]
|
|
FCM[Firebase FCM]
|
|
S3[S3/MinIO]
|
|
OPENAI[OpenAI]
|
|
CLAUDE[Anthropic]
|
|
end
|
|
|
|
PAYMENTS --> STRIPE
|
|
NOTIF --> FCM
|
|
VIDEOS --> S3
|
|
IAP --> OPENAI
|
|
IAP --> CLAUDE
|
|
|
|
# ============================================================================
|
|
# ESTADISTICAS
|
|
# ============================================================================
|
|
estadisticas:
|
|
total_dependencias_externas: 15
|
|
total_dependencias_internas: 25
|
|
total_dependencias_workspace: 5
|
|
total_integraciones: 7
|
|
ultima_actualizacion: "2026-01-16"
|