holy fkn airball
This commit is contained in:
34
lib/api.ts
34
lib/api.ts
@@ -45,6 +45,28 @@ export {
|
||||
type ShippingOptionsResponse,
|
||||
} from './services/shipping-service';
|
||||
|
||||
// Re-export analytics services
|
||||
export {
|
||||
getAnalyticsOverview,
|
||||
getRevenueTrends,
|
||||
getProductPerformance,
|
||||
getCustomerInsights,
|
||||
getOrderAnalytics,
|
||||
getAnalyticsOverviewWithStore,
|
||||
getRevenueTrendsWithStore,
|
||||
getProductPerformanceWithStore,
|
||||
getCustomerInsightsWithStore,
|
||||
getOrderAnalyticsWithStore,
|
||||
getStoreIdForUser,
|
||||
|
||||
// Types
|
||||
type AnalyticsOverview,
|
||||
type RevenueData,
|
||||
type ProductPerformance,
|
||||
type CustomerInsights,
|
||||
type OrderAnalytics,
|
||||
} from './services/analytics-service';
|
||||
|
||||
// Define the PlatformStats interface to match the expected format
|
||||
export interface PlatformStats {
|
||||
orders: {
|
||||
@@ -70,7 +92,17 @@ export {
|
||||
fetchServer,
|
||||
getCustomersServer,
|
||||
getCustomerDetailsServer,
|
||||
getPlatformStatsServer
|
||||
getPlatformStatsServer,
|
||||
getAnalyticsOverviewServer,
|
||||
getRevenueTrendsServer,
|
||||
getProductPerformanceServer,
|
||||
getCustomerInsightsServer,
|
||||
getOrderAnalyticsServer,
|
||||
type AnalyticsOverview as ServerAnalyticsOverview,
|
||||
type RevenueData as ServerRevenueData,
|
||||
type ProductPerformance as ServerProductPerformance,
|
||||
type CustomerInsights as ServerCustomerInsights,
|
||||
type OrderAnalytics as ServerOrderAnalytics,
|
||||
} from './server-api';
|
||||
|
||||
// Get clientFetch first so we can use it in the compatibility functions
|
||||
|
||||
Reference in New Issue
Block a user