AyahReflection.ts 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import ReflectionFilter from './ReflectionFilter';
  2. import ReflectionLanguage from './ReflectionLanguage';
  3. import ReflectionReference from './ReflectionReference';
  4. import TrimmedCitationTexts from './TrimmedCitationTexts';
  5. type AyahReflection = {
  6. id: number;
  7. body: string;
  8. likes: number;
  9. commentsCount: number;
  10. draft: boolean;
  11. publishedAt: string;
  12. createdAt: string;
  13. global: boolean;
  14. verified: boolean;
  15. hidden: boolean;
  16. editable: boolean;
  17. deletable: boolean;
  18. reportable: boolean;
  19. restorable: boolean;
  20. author: {
  21. id: number;
  22. username: string;
  23. name: string;
  24. verified: boolean;
  25. profileImg: string;
  26. followed: boolean;
  27. userType: string;
  28. originalProfileImg: string;
  29. displayName: string;
  30. };
  31. roomId?: number;
  32. group?: string;
  33. groupLink?: string;
  34. language: ReflectionLanguage;
  35. trimmedCitationTexts: TrimmedCitationTexts;
  36. filters: ReflectionFilter[];
  37. estimatedReadingTime: number;
  38. references?: ReflectionReference[];
  39. };
  40. export default AyahReflection;