dashboard.ts 779 B

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