@@ -122,6 +122,65 @@ export interface CurrencyDTO {
122122 updated_at : string ;
123123}
124124
125+ //////////
126+ // source: dashboard.go
127+
128+ /**
129+ * DashboardStatsRequest represents a request for dashboard statistics
130+ */
131+ export interface DashboardStatsRequest {
132+ start_date ?: string ;
133+ end_date ?: string ;
134+ days ?: number /* int */ ; // Alternative to date range, defaults to 30
135+ }
136+ /**
137+ * PercentageChange represents a percentage change with value and direction
138+ */
139+ export interface PercentageChange {
140+ value : number /* float64 */ ; // percentage change (e.g., 15.5 for +15.5%)
141+ direction : string ; // "up", "down", or "stable"
142+ }
143+ /**
144+ * DashboardStats represents aggregated dashboard statistics
145+ */
146+ export interface DashboardStats {
147+ total_revenue : number /* int64 */ ; // in cents
148+ total_orders : number /* int64 */ ;
149+ total_customers : number /* int64 */ ;
150+ new_customers : number /* int64 */ ;
151+ total_products : number /* int64 */ ;
152+ low_stock_products : number /* int64 */ ;
153+ revenue_change ?: PercentageChange ; // vs previous period
154+ orders_change ?: PercentageChange ; // vs previous period
155+ recent_orders : RecentOrderSummary [ ] ;
156+ top_products : TopProductSummary [ ] ;
157+ period_start : string ;
158+ period_end : string ;
159+ }
160+ /**
161+ * RecentOrderSummary represents a summary of recent orders for dashboard
162+ */
163+ export interface RecentOrderSummary {
164+ id : number /* uint */ ;
165+ order_number : string ;
166+ customer_name : string ;
167+ customer_email : string ;
168+ total_amount : number /* int64 */ ; // in cents
169+ status : string ;
170+ created_at : string ;
171+ }
172+ /**
173+ * TopProductSummary represents top selling products for dashboard
174+ */
175+ export interface TopProductSummary {
176+ product_id : number /* uint */ ;
177+ product_name : string ;
178+ variant_id ?: number /* uint */ ;
179+ variant_name ?: string ;
180+ quantity_sold : number /* int64 */ ;
181+ revenue : number /* int64 */ ; // in cents
182+ }
183+
125184//////////
126185// source: discount.go
127186
0 commit comments