types.ts 517 B

1234567891011121314151617181920212223
  1. export type DashboardMetricSummary = {
  2. type: DashboardMetricType;
  3. title: string;
  4. entries: DashboardMetricSummaryEntry[];
  5. };
  6. export enum DashboardMetricType {
  7. OrderCount = 'OrderCount',
  8. OrderTotal = 'OrderTotal',
  9. AverageOrderValue = 'AverageOrderValue',
  10. }
  11. export type DashboardMetricSummaryEntry = {
  12. label: string;
  13. value: number;
  14. };
  15. export interface DashboardMetricSummaryInput {
  16. types: DashboardMetricType[];
  17. refresh?: boolean;
  18. startDate: string;
  19. endDate: string;
  20. }