part of '../analytic.dart';

abstract class IAnalyticRepository {
  Future<Either<AnalyticFailure, DashboardAnalytic>> getDashboard({
    required DateTime dateFrom,
    required DateTime dateTo,
  });
  Future<Either<AnalyticFailure, SalesAnalytic>> getSales({
    required DateTime dateFrom,
    required DateTime dateTo,
  });
  Future<Either<AnalyticFailure, ProductAnalytic>> getProducts({
    required DateTime dateFrom,
    required DateTime dateTo,
  });
  Future<Either<AnalyticFailure, PaymentMethodAnalytic>> getPaymentMethod({
    required DateTime dateFrom,
    required DateTime dateTo,
  });
  Future<Either<AnalyticFailure, ProfitLossAnalytic>> getProfitLoss({
    required DateTime dateFrom,
    required DateTime dateTo,
  });
  Future<Either<AnalyticFailure, CategoryAnalytic>> getCategories({
    required DateTime dateFrom,
    required DateTime dateTo,
  });
  Future<Either<AnalyticFailure, InventoryAnalytic>> getInventory({
    required DateTime dateFrom,
    required DateTime dateTo,
  });
}
