Streak.ts 487 B

1234567891011121314151617181920212223
  1. import { Mushaf } from '../QuranReader';
  2. import { ActivityDay, QuranActivityDay } from './ActivityDay';
  3. import { QuranGoalStatus } from './Goal';
  4. export enum StreakType {
  5. QURAN = 'QURAN',
  6. }
  7. export type StreakWithUserMetadata = {
  8. streak: number;
  9. goal?: QuranGoalStatus;
  10. activityDays: (Omit<ActivityDay<QuranActivityDay>, 'date'> & {
  11. date: string;
  12. })[];
  13. };
  14. export type StreakWithMetadataParams = {
  15. from: string;
  16. to: string;
  17. mushafId: Mushaf;
  18. type: StreakType;
  19. };