ifixkart-admin/Backend/app/schemas/MultiDashboard.py
Adithiyan bbd3a3e959 feat: initial commit — full platform snapshot
- Backend: FastAPI app with all models, services, schemas, routes
- Admin Panel: Next.js dashboard with all modules
  (CRM, POS, repairs, warranties, billing, notifications, etc.)
- Ecommerce: storefront (submodule) + product catalog
- AI Agents: .agents/ skill library for Antigravity IDE
- Docs: architecture, billing, notification gateway markdown
- Submodules: Backend/OpenWA, Ecommerce/File 2/storefront
2026-10-13 12:59:47 +05:30

42 lines
1.3 KiB
Python

from typing import Dict, Any, List, Optional
from pydantic import BaseModel
class ExecutiveDashboardResponse(BaseModel):
gross_sales_mrr: float
gst_tax_collected: float
total_repair_tickets: int
avg_repair_turnaround_hours: float
overall_csat_index: float
active_customers_ltv_sum: float
monthly_sales_trend: List[Dict[str, Any]]
class StoreManagerDashboardResponse(BaseModel):
pos_cash_sales_today: float
pos_upi_sales_today: float
total_pos_sessions_active: int
low_stock_alerts_count: int
out_of_stock_count: int
top_repair_types_today: List[Dict[str, Any]]
class TechnicianWorkshopDashboardResponse(BaseModel):
tickets_assigned_to_me: int
tickets_in_progress: int
tickets_awaiting_parts: int
sla_breached_count: int
sla_nearing_breach_count: int
ticket_queue: List[Dict[str, Any]]
class B2BWholesaleDashboardResponse(BaseModel):
pending_bulk_quotations: int
approved_quotations_count: int
total_b2b_revenue: float
unpaid_gst_invoices_count: int
deal_pipeline_summary: List[Dict[str, Any]]
class CustomerPortalDashboardResponse(BaseModel):
customer_id: str
active_repair_tickets: List[Dict[str, Any]]
recent_orders: List[Dict[str, Any]]
available_invoices: List[Dict[str, Any]]
loyalty_tier: str
total_spent: float