session.ts 812 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. export type ActiveSessionResponse = {
  2. crewSessionID: number;
  3. title: string;
  4. status: string;
  5. startedAt: string|null;
  6. createdAt: string;
  7. totalAmount: number;
  8. totalDonationCount: number;
  9. consents: ConsentItem[];
  10. summaries: SummaryItem[];
  11. }|null;
  12. export type ConsentItem = {
  13. crewMemberID: number;
  14. nickname: string;
  15. isConsented: boolean;
  16. consentedAt: string|null;
  17. };
  18. export type SummaryItem = {
  19. crewMemberID: number;
  20. nickname: string;
  21. totalAmount: number;
  22. donationCount: number;
  23. contributionRate: number;
  24. rank: number;
  25. };
  26. export type SessionHistoryResponse = {
  27. total: number;
  28. list: SessionHistoryItem[];
  29. };
  30. export type SessionHistoryItem = {
  31. id: number;
  32. title: string;
  33. totalAmount: number;
  34. totalDonationCount: number;
  35. startedAt: string|null;
  36. endedAt: string|null;
  37. createdAt: string;
  38. };