📦 Smart Supply Pro Docs 🧩 Frontend API
Backend Architecture Backend Architektur Deutsch Frontend Architecture Frontend Architektur Deutsch Backend API Frontend API Backend Coverage Frontend Coverage

Frontend API

  • API Home

Quick Links

  • Frontend Coverage
  • Frontend Architecture

Project

  • Docs Home
  • Backend API
  • Backend Coverage

Reference

  • Modules

On this page

  • api/analytics/metrics
    • File
    • Enterprise
    • Variables
    • Functions

frontend


frontend / api/analytics/metrics

api/analytics/metrics

File

metrics.ts

Enterprise

  • Resilient: Returns 0 on error instead of throwing
  • Fast: Direct HTTP calls for simple count operations
  • Type-safe: Promise return type
  • No side effects: Pure functions suitable for React Query hooks

Variables

  • getInventoryCount
  • getSuppliersCount

Functions

  • getItemCount
  • getLowStockCount
  • getSupplierCount
Smart Supply Pro · Frontend API · Generated by Docs Pipeline