ApiRequests.ts 618 B

12345678910111213141516171819202122232425262728293031
  1. export type SearchRequest = {
  2. query: string;
  3. filterLanguages?: string;
  4. filterTranslations?: string;
  5. size?: number;
  6. page?: number;
  7. };
  8. export type AdvancedCopyRequest = {
  9. from: string;
  10. to: string;
  11. footnote: boolean;
  12. translatorName: boolean;
  13. translations?: string;
  14. mushaf?: number;
  15. fields?: string;
  16. raw: boolean;
  17. };
  18. export type PagesLookUpRequest = {
  19. chapterNumber?: number;
  20. juzNumber?: number;
  21. pageNumber?: number;
  22. manzilNumber?: number;
  23. rubElHizbNumber?: number;
  24. hizbNumber?: number;
  25. rukuNumber?: number;
  26. mushaf?: number;
  27. from?: number | string;
  28. to?: number | string;
  29. };