fk
This commit is contained in:
17
lib/api.ts
17
lib/api.ts
@@ -45,13 +45,24 @@ export {
|
||||
type ShippingOptionsResponse,
|
||||
} from './services/shipping-service';
|
||||
|
||||
// Define the PlatformStats interface to match the expected format
|
||||
export interface PlatformStats {
|
||||
orders: {
|
||||
completed: number;
|
||||
};
|
||||
vendors: {
|
||||
total: number;
|
||||
};
|
||||
transactions: {
|
||||
volume: number;
|
||||
averageOrderValue?: number;
|
||||
};
|
||||
}
|
||||
|
||||
// Re-export stats services
|
||||
export {
|
||||
getPlatformStats,
|
||||
getVendorStats,
|
||||
|
||||
// Types
|
||||
type PlatformStats,
|
||||
} from './services/stats-service';
|
||||
|
||||
// Re-export server API functions
|
||||
|
||||
Reference in New Issue
Block a user