dashboard.ts 1013 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. export type DashboardResponse = {
  2. channel: DashboardChannelInfo|null;
  3. widgets: DashboardWidgetUrls|null;
  4. financial: DashboardFinancialSummary;
  5. recentDonations: DashboardRecentDonation[];
  6. goalConfigs: DashboardWidgetConfig[];
  7. rankConfigs: DashboardWidgetConfig[];
  8. crewConfigs: DashboardWidgetConfig[];
  9. };
  10. export type DashboardWidgetConfig = {
  11. id: number;
  12. title: string;
  13. isActive: boolean;
  14. };
  15. export type DashboardChannelInfo = {
  16. id: number;
  17. sid: string;
  18. name: string;
  19. thumbnailUrl: string|null;
  20. isVerified: boolean;
  21. subscriberCount: number;
  22. };
  23. export type DashboardWidgetUrls = {
  24. widgetToken: string;
  25. alert: string;
  26. goal: string;
  27. rank: string;
  28. crew: string;
  29. remote: string;
  30. };
  31. export type DashboardFinancialSummary = {
  32. availableBalance: number;
  33. todayDonations: number;
  34. monthDonations: number;
  35. monthStoreSales: number;
  36. pendingWithdrawal: number;
  37. };
  38. export type DashboardRecentDonation = {
  39. id: number;
  40. sendName: string;
  41. amount: number;
  42. message: string|null;
  43. createdAt: string;
  44. };