diff --git a/orchestration/DEPENDENCY-GRAPH.yml b/orchestration/DEPENDENCY-GRAPH.yml deleted file mode 100644 index fdf384d70..000000000 --- a/orchestration/DEPENDENCY-GRAPH.yml +++ /dev/null @@ -1,241 +0,0 @@ -# Grafo de Dependencias - MiChangarrito -# Proyecto: michangarrito -# Fecha: 2026-01-16 - -version: "1.0.0" -proyecto: "michangarrito" -fecha_creacion: "2026-01-16" - -# ============================================================================ -# DEPENDENCIAS EXTERNAS (NPM, etc.) -# ============================================================================ -dependencias_externas: - backend: - framework: "NestJS" - version: "^10.3.0" - principales: - - nombre: "@nestjs/core" - version: "^10.3.0" - uso: "Framework core" - - nombre: "@nestjs/typeorm" - version: "^10.0.0" - uso: "ORM integration" - - nombre: "@nestjs/jwt" - version: "^10.2.0" - uso: "JWT authentication" - - nombre: "@nestjs/passport" - version: "^10.0.0" - uso: "Auth strategies" - - nombre: "stripe" - version: "^14.0.0" - uso: "Payment processing" - - nombre: "typeorm" - version: "^0.3.20" - uso: "Database ORM" - - frontend: - framework: "React" - version: "^19.2.0" - principales: - - nombre: "react" - version: "^19.2.0" - uso: "UI Framework" - - nombre: "vite" - version: "^7.2.4" - uso: "Build tool" - - nombre: "@tanstack/react-query" - version: "^5.0.0" - uso: "Data fetching" - - nombre: "zustand" - version: "^4.5.0" - uso: "State management" - - mobile: - framework: "React Native + Expo" - principales: - - nombre: "expo" - version: "^50.0.0" - uso: "Mobile development" - - nombre: "react-native" - version: "^0.73.0" - uso: "Mobile UI" - - database: - tipo: "PostgreSQL" - version: "16+" - orm: "TypeORM" - - cache: - tipo: "Redis" - version: "7+" - -# ============================================================================ -# DEPENDENCIAS INTERNAS (Entre modulos del proyecto) -# ============================================================================ -dependencias_internas: - modulos: - auth: - depende_de: [] - dependientes: ["users", "stores", "subscriptions"] - descripcion: "Modulo base de autenticacion" - - users: - depende_de: ["auth"] - dependientes: ["stores", "subscriptions"] - descripcion: "Gestion de usuarios" - - stores: - depende_de: ["auth", "users"] - dependientes: ["products", "sales", "customers", "orders", "fiados"] - descripcion: "Gestion de tiendas" - - products: - depende_de: ["stores"] - dependientes: ["sales", "orders", "predictions"] - descripcion: "Catalogo de productos" - - sales: - depende_de: ["stores", "products", "customers", "payments"] - dependientes: ["fiados", "analytics"] - descripcion: "Punto de venta" - - customers: - depende_de: ["stores"] - dependientes: ["sales", "orders", "fiados"] - descripcion: "Gestion de clientes" - - fiados: - depende_de: ["stores", "customers", "sales"] - dependientes: [] - descripcion: "Sistema de creditos" - - orders: - depende_de: ["stores", "products", "customers"] - dependientes: ["deliveries", "notifications"] - descripcion: "Pedidos" - - deliveries: - depende_de: ["orders"] - dependientes: ["notifications"] - descripcion: "Entregas a domicilio" - - payments: - depende_de: [] - dependientes: ["sales", "subscriptions"] - descripcion: "Procesamiento de pagos (Stripe)" - - subscriptions: - depende_de: ["users", "payments"] - dependientes: [] - descripcion: "Planes y suscripciones" - - notifications: - depende_de: ["orders", "deliveries"] - dependientes: [] - descripcion: "Sistema de notificaciones" - - whatsapp: - depende_de: ["llm"] - dependientes: ["orders", "notifications"] - descripcion: "Integracion WhatsApp" - - llm: - depende_de: [] - dependientes: ["whatsapp", "predictions"] - descripcion: "Integracion LLM/IA" - - predictions: - depende_de: ["products", "sales", "llm"] - dependientes: [] - descripcion: "Predicciones de inventario" - -# ============================================================================ -# DEPENDENCIAS DE WORKSPACE -# ============================================================================ -dependencias_workspace: - definiciones: - - "@WS_DEF_CCA" - - "@WS_DEF_VAL_BE" - - "@WS_DEF_VAL_FE" - - "@WS_DEF_VAL_DDL" - - catalogos: [] - # MiChangarrito no usa catalogos compartidos actualmente - -# ============================================================================ -# DEPENDENCIAS DE OTROS PROYECTOS -# ============================================================================ -dependencias_proyectos: - # MiChangarrito es proyecto independiente (nivel 0) - proyectos: [] - -# ============================================================================ -# GRAFO VISUAL -# ============================================================================ -grafo: - formato: "mermaid" - diagrama: | - graph TD - subgraph Foundation - AUTH[Auth] - USERS[Users] - STORES[Stores] - end - - subgraph Business - PROD[Products] - SALES[Sales/POS] - CUST[Customers] - FIADOS[Fiados] - ORDERS[Orders] - DELIV[Deliveries] - end - - subgraph Integrations - PAY[Payments] - WA[WhatsApp] - LLM[LLM/IA] - NOTIF[Notifications] - end - - subgraph SaaS - SUBS[Subscriptions] - PRED[Predictions] - end - - AUTH --> USERS - USERS --> STORES - STORES --> PROD - STORES --> CUST - STORES --> SALES - PROD --> SALES - CUST --> SALES - PAY --> SALES - CUST --> FIADOS - SALES --> FIADOS - CUST --> ORDERS - PROD --> ORDERS - ORDERS --> DELIV - ORDERS --> NOTIF - DELIV --> NOTIF - USERS --> SUBS - PAY --> SUBS - LLM --> WA - LLM --> PRED - PROD --> PRED - SALES --> PRED - - subgraph Workspace - WS[Definiciones WS] - end - - AUTH --> WS - -# ============================================================================ -# ESTADISTICAS -# ============================================================================ -estadisticas: - total_dependencias_externas: 12 - total_dependencias_internas: 15 - total_dependencias_workspace: 4 - ultima_actualizacion: "2026-01-16" diff --git a/orchestration/TRACEABILITY.yml b/orchestration/TRACEABILITY.yml deleted file mode 100644 index c70113e97..000000000 --- a/orchestration/TRACEABILITY.yml +++ /dev/null @@ -1,225 +0,0 @@ -# Trazabilidad del Proyecto - MiChangarrito -# Proyecto: michangarrito -# Fecha: 2026-01-16 - -version: "1.0.0" -proyecto: "michangarrito" -fecha_creacion: "2026-01-16" - -# ============================================================================ -# TRAZABILIDAD MODULO <-> OBJETOS -# ============================================================================ -trazabilidad_modulos: - MCH-M01: - nombre: "Authentication" - epica: "MCH-002" - documentacion: - especificacion: "docs/01-epicas/MCH-002-autenticacion.md" - requerimientos: ["RF-AUTH-001", "RF-AUTH-002"] - - objetos_bd: - tablas: ["users", "sessions", "refresh_tokens"] - schemas: ["public"] - - objetos_backend: - entities: ["User", "Session", "RefreshToken"] - services: ["AuthService", "JwtService", "SessionService"] - controllers: ["AuthController"] - guards: ["JwtAuthGuard", "RolesGuard"] - - objetos_frontend: - componentes: ["LoginForm", "RegisterForm"] - stores: ["authStore"] - hooks: ["useAuth"] - - MCH-M03: - nombre: "Stores" - epica: "MCH-001" - documentacion: - especificacion: "docs/01-epicas/MCH-001-infraestructura-base.md" - - objetos_bd: - tablas: ["stores", "store_settings", "store_hours"] - schemas: ["stores"] - - objetos_backend: - entities: ["Store", "StoreSettings", "StoreHours"] - services: ["StoresService", "StoreSettingsService"] - controllers: ["StoresController"] - - objetos_frontend: - componentes: ["StoreSelector", "StoreForm", "StoreSettings"] - stores: ["storeStore"] - - MCH-M05: - nombre: "Sales (POS)" - epica: "MCH-004" - documentacion: - especificacion: "docs/01-epicas/MCH-004-punto-venta.md" - requerimientos: ["RF-POS-001", "RF-POS-002", "RF-POS-003"] - - objetos_bd: - tablas: ["sales", "sale_items", "payments", "cash_registers"] - schemas: ["sales"] - - objetos_backend: - entities: ["Sale", "SaleItem", "Payment", "CashRegister"] - services: ["SalesService", "PaymentsService", "CashRegisterService"] - controllers: ["SalesController", "PaymentsController"] - - objetos_frontend: - componentes: ["POSTerminal", "ProductGrid", "Cart", "PaymentModal"] - stores: ["posStore"] - hooks: ["usePOS", "useCart"] - - MCH-M09: - nombre: "Fiados" - epica: "MCH-008" - documentacion: - especificacion: "docs/01-epicas/MCH-008-sistema-fiados.md" - - objetos_bd: - tablas: ["fiados", "fiado_payments", "credit_limits"] - schemas: ["fiados"] - - objetos_backend: - entities: ["Fiado", "FiadoPayment", "CreditLimit"] - services: ["FiadosService", "CreditService"] - controllers: ["FiadosController"] - - objetos_frontend: - componentes: ["FiadosList", "FiadoDetail", "PaymentForm"] - hooks: ["useFiados"] - - MCH-M15: - nombre: "Orders" - epica: "MCH-015" - documentacion: - especificacion: "docs/01-epicas/MCH-015-pedidos-whatsapp.md" - - objetos_bd: - tablas: ["orders", "order_items", "deliveries"] - schemas: ["orders"] - - objetos_backend: - entities: ["Order", "OrderItem", "Delivery"] - services: ["OrdersService", "DeliveriesService"] - controllers: ["OrdersController"] - - objetos_frontend: - componentes: ["OrdersList", "OrderDetail", "OrderStatus"] - -# ============================================================================ -# MATRIZ DE COBERTURA -# ============================================================================ -cobertura: - total_modulos: 18 - con_documentacion: 18 - con_tests: 0 - con_trazabilidad_completa: 5 - - detalle: - MCH-M01: - documentacion: true - especificacion: true - requerimientos: true - historias: false - tests_unitarios: false - tests_integracion: false - - MCH-M05: - documentacion: true - especificacion: true - requerimientos: true - historias: false - tests_unitarios: false - tests_integracion: false - - MCH-M09: - documentacion: true - especificacion: true - requerimientos: false - historias: false - tests_unitarios: false - tests_integracion: false - -# ============================================================================ -# REFERENCIAS CRUZADAS -# ============================================================================ -referencias_cruzadas: - por_documento: - "MCH-002-autenticacion.md": - modulos: ["MCH-M01"] - tablas: ["users", "sessions", "refresh_tokens"] - entities: ["User", "Session", "RefreshToken"] - - "MCH-004-punto-venta.md": - modulos: ["MCH-M05"] - tablas: ["sales", "sale_items", "payments"] - entities: ["Sale", "SaleItem", "Payment"] - - "MCH-008-sistema-fiados.md": - modulos: ["MCH-M09"] - tablas: ["fiados", "fiado_payments"] - entities: ["Fiado", "FiadoPayment"] - - por_modulo: - MCH-M01: - documentos: - - "MCH-002-autenticacion.md" - - MCH-M05: - documentos: - - "MCH-004-punto-venta.md" - - MCH-M09: - documentos: - - "MCH-008-sistema-fiados.md" - -# ============================================================================ -# IMPACTO DE CAMBIOS -# ============================================================================ -impacto: - users: - tipo: "tabla" - impacta: - entities: ["User"] - services: ["AuthService", "UsersService"] - controllers: ["AuthController", "UsersController"] - documentos: ["MCH-002-autenticacion.md"] - modulos: ["MCH-M01", "MCH-M02"] - - stores: - tipo: "tabla" - impacta: - entities: ["Store"] - services: ["StoresService", "ProductsService", "SalesService"] - documentos: ["MCH-001-infraestructura-base.md"] - modulos: ["MCH-M03", "MCH-M04", "MCH-M05"] - - sales: - tipo: "tabla" - impacta: - entities: ["Sale"] - services: ["SalesService", "FiadosService"] - documentos: ["MCH-004-punto-venta.md", "MCH-008-sistema-fiados.md"] - modulos: ["MCH-M05", "MCH-M09"] - -# ============================================================================ -# HISTORIAL DE CAMBIOS -# ============================================================================ -historial: - - fecha: "2026-01-16" - tipo: "creacion" - descripcion: "Trazabilidad inicial del proyecto" - autor: "Claude" - -# ============================================================================ -# ESTADISTICAS -# ============================================================================ -estadisticas: - modulos_mapeados: 5 - tablas_mapeadas: 15 - entities_mapeadas: 15 - documentos_referenciados: 5 - ultima_actualizacion: "2026-01-16"