Verse.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import AudioResponse from './AudioResponse';
  2. import Tafsir from './Tafsir';
  3. import Translation from './Translation';
  4. import Word from './Word';
  5. interface Verse {
  6. id: number;
  7. verseNumber: number;
  8. chapterId?: number | string;
  9. pageNumber: number;
  10. juzNumber: number;
  11. hizbNumber: number;
  12. rubNumber: number; // FIXME: This doesn't work for some reason, in console it's appearing as RubElHizbNumber rather than RubNumber
  13. rubElHizbNumber: number; // Added this to fix the issue
  14. verseKey: string;
  15. verseIndex: number;
  16. words: Word[];
  17. textUthmani?: string;
  18. textUthmaniSimple?: string;
  19. textUthmaniTajweed?: string;
  20. textImlaei?: string;
  21. textImlaeiSimple?: string;
  22. textIndopak?: string;
  23. sajdahNumber: null;
  24. sajdahType: null;
  25. imageUrl?: string;
  26. imageWidth?: number;
  27. v1Page?: number;
  28. v2Page?: number;
  29. codeV1?: string;
  30. codeV2?: string;
  31. translations?: Translation[];
  32. tafsirs?: Tafsir[];
  33. audio?: AudioResponse;
  34. timestamps?: {
  35. verseKey: string;
  36. timestampFrom: number;
  37. timestampTo: number;
  38. duration: number;
  39. segments: [number[]];
  40. };
  41. }
  42. export default Verse;