@quranjs/api 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1320,7 +1320,7 @@ var getChapterOptions = function getChapterOptions(options) {
1320
1320
  /**
1321
1321
  * Get all chapters.
1322
1322
  * @description https://quran.api-docs.io/v4/chapters/list-chapters
1323
- * @param {Options} options
1323
+ * @param {GetChapterOptions} options
1324
1324
  * @example
1325
1325
  * quran.v4.chapters.findAll()
1326
1326
  */
@@ -1359,7 +1359,7 @@ var findAll$1 = /*#__PURE__*/function () {
1359
1359
  * Get chapter by id.
1360
1360
  * @description https://quran.api-docs.io/v4/chapters/get-chapter
1361
1361
  * @param {ChapterId} id chapter id, minimum 1, maximum 114
1362
- * @param {Options} options
1362
+ * @param {GetChapterOptions} options
1363
1363
  * @example
1364
1364
  * quran.v4.chapters.findById('1')
1365
1365
  * quran.v4.chapters.findById('114')
@@ -1407,7 +1407,7 @@ var findById = /*#__PURE__*/function () {
1407
1407
  * Get chapter info by id.
1408
1408
  * @description https://quran.api-docs.io/v4/chapters/chapter_info
1409
1409
  * @param {ChapterId} id chapter id, minimum 1, maximum 114
1410
- * @param {Options} options
1410
+ * @param {GetChapterOptions} options
1411
1411
  * @example
1412
1412
  * quran.v4.chapters.findInfoById('1')
1413
1413
  * quran.v4.chapters.findInfoById('114')
@@ -1890,7 +1890,7 @@ var getVerseRecitationsOptions = function getVerseRecitationsOptions(options) {
1890
1890
  * Get all chapter recitations for specific reciter
1891
1891
  * @description https://quran.api-docs.io/v4/audio-recitations/list-of-all-surah-audio-files-for-specific-reciter
1892
1892
  * @param {string} reciterId
1893
- * @param {GetChapterRecitationsOptions} options
1893
+ * @param {GetChapterRecitationOptions} options
1894
1894
  * @example
1895
1895
  * quran.v4.audio.findAllChapterRecitations('2')
1896
1896
  */
@@ -1930,7 +1930,7 @@ var findAllChapterRecitations = /*#__PURE__*/function () {
1930
1930
  * @description https://quran.api-docs.io/v4/audio-recitations/get-single-surah-audio-for-specific-reciter
1931
1931
  * @param {ChapterId} chapterId
1932
1932
  * @param {string} reciterId
1933
- * @param {GetChapterRecitationsOptions} options
1933
+ * @param {GetChapterRecitationOptions} options
1934
1934
  * @example
1935
1935
  * quran.v4.audio.findChapterRecitationById('1', '2') // first chapter recitation for reciter 2
1936
1936
  */
@@ -1978,7 +1978,7 @@ var findChapterRecitationById = /*#__PURE__*/function () {
1978
1978
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-surah
1979
1979
  * @param {ChapterId} chapterId
1980
1980
  * @param {string} recitationId
1981
- * @param {GetVerseRecitationsOptions} options
1981
+ * @param {GetVerseRecitationOptions} options
1982
1982
  * @example
1983
1983
  * quran.v4.audio.findVerseRecitationsByChapter('1', '2')
1984
1984
  */
@@ -2070,7 +2070,7 @@ var findVerseRecitationsByJuz = /*#__PURE__*/function () {
2070
2070
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-madani-mushaf-page
2071
2071
  * @param {PageNumber} page
2072
2072
  * @param {string} recitationId
2073
- * @param {GetVerseRecitationsOptions} options
2073
+ * @param {GetVerseRecitationOptions} options
2074
2074
  * @example
2075
2075
  * quran.v4.audio.findVerseRecitationsByPage('1', '2')
2076
2076
  */
@@ -2116,7 +2116,7 @@ var findVerseRecitationsByPage = /*#__PURE__*/function () {
2116
2116
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-rub
2117
2117
  * @param {RubNumber} rub
2118
2118
  * @param {string} recitationId
2119
- * @param {GetVerseRecitationsOptions} options
2119
+ * @param {GetVerseRecitationOptions} options
2120
2120
  * @example
2121
2121
  * quran.v4.audio.findVerseRecitationsByRub('1', '2')
2122
2122
  */
@@ -2162,7 +2162,7 @@ var findVerseRecitationsByRub = /*#__PURE__*/function () {
2162
2162
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-hizb
2163
2163
  * @param {HizbNumber} hizb
2164
2164
  * @param {string} recitationId
2165
- * @param {GetVerseRecitationsOptions} options
2165
+ * @param {GetVerseRecitationOptions} options
2166
2166
  * @example
2167
2167
  * quran.v4.audio.findVerseRecitationsByHizb('1', '2')
2168
2168
  */
@@ -2204,11 +2204,11 @@ var findVerseRecitationsByHizb = /*#__PURE__*/function () {
2204
2204
  };
2205
2205
  }();
2206
2206
  /**
2207
- * Get all verse audio files for a specific reciter and a specific hizb
2207
+ * Get all verse audio files for a specific reciter and a specific verse
2208
2208
  * @description https://quran.api-docs.io/v4/audio-recitations/get-ayah-recitations-for-specific-ayah
2209
2209
  * @param {VerseKey} key
2210
2210
  * @param {string} recitationId
2211
- * @param {GetVerseRecitationsOptions} options
2211
+ * @param {GetVerseRecitationOptions} options
2212
2212
  * @example
2213
2213
  * quran.v4.audio.findVerseRecitationsByKey('1:1', '2')
2214
2214
  */
@@ -2277,7 +2277,7 @@ var getResourcesOptions = function getResourcesOptions(options) {
2277
2277
  /**
2278
2278
  * Get all recitations.
2279
2279
  * @description https://quran.api-docs.io/v4/resources/recitations
2280
- * @param {GetResourcesOptions} options
2280
+ * @param {GetResourceOptions} options
2281
2281
  * @example
2282
2282
  * quran.v4.resources.findAllRecitations()
2283
2283
  */
@@ -2317,11 +2317,11 @@ var findAllRecitations = /*#__PURE__*/function () {
2317
2317
  * Get all recitation info.
2318
2318
  * @description https://quran.api-docs.io/v4/resources/recitation-info
2319
2319
  * @param {string} id recitation id
2320
- * @param {GetResourcesOptions} options
2320
+ * @param {GetResourceOptions} options
2321
2321
  * @example
2322
2322
  * quran.v4.resources.findRecitationInfo('1')
2323
2323
  */
2324
- // const findRecitationInfo = async (id: string, options?: GetResourcesOptions) => {
2324
+ // const findRecitationInfo = async (id: string, options?: GetResourceOptions) => {
2325
2325
  // const params = getResourcesOptions(options);
2326
2326
  // const { info } = await fetcher<{
2327
2327
  // info: RecitationInfoResource;
@@ -2332,7 +2332,7 @@ var findAllRecitations = /*#__PURE__*/function () {
2332
2332
  /**
2333
2333
  * Get all translations.
2334
2334
  * @description https://quran.api-docs.io/v4/resources/translations
2335
- * @param {GetResourcesOptions} options
2335
+ * @param {GetResourceOptions} options
2336
2336
  * @example
2337
2337
  * quran.v4.resources.findAllTranslations()
2338
2338
  */
@@ -2372,11 +2372,11 @@ var findAllTranslations = /*#__PURE__*/function () {
2372
2372
  * Get translation info.
2373
2373
  * @description https://quran.api-docs.io/v4/resources/translation-info
2374
2374
  * @param {string} id translation id
2375
- * @param {GetResourcesOptions} options
2375
+ * @param {GetResourceOptions} options
2376
2376
  * @example
2377
2377
  * quran.v4.resources.findTranslationInfo('169')
2378
2378
  */
2379
- // const findTranslationInfo = async (id: string, options?: GetResourcesOptions) => {
2379
+ // const findTranslationInfo = async (id: string, options?: GetResourceOptions) => {
2380
2380
  // const params = getResourcesOptions(options);
2381
2381
  // const { info } = await fetcher<{
2382
2382
  // info: TranslationInfoResource;
@@ -2387,7 +2387,7 @@ var findAllTranslations = /*#__PURE__*/function () {
2387
2387
  /**
2388
2388
  * Get all tafsirs.
2389
2389
  * @description https://quran.api-docs.io/v4/resources/tafsirs
2390
- * @param {GetResourcesOptions} options
2390
+ * @param {GetResourceOptions} options
2391
2391
  * @example
2392
2392
  * quran.v4.resources.findAllTafsirs()
2393
2393
  */
@@ -2427,11 +2427,11 @@ var findAllTafsirs = /*#__PURE__*/function () {
2427
2427
  * Get tafsir info.
2428
2428
  * @description https://quran.api-docs.io/v4/resources/tafsirs-info
2429
2429
  * @param {string} id tafsir id
2430
- * @param {GetResourcesOptions} options
2430
+ * @param {GetResourceOptions} options
2431
2431
  * @example
2432
2432
  * quran.v4.resources.findTranslationInfo('1')
2433
2433
  */
2434
- // const findTafsirInfo = async (id: string, options?: GetResourcesOptions) => {
2434
+ // const findTafsirInfo = async (id: string, options?: GetResourceOptions) => {
2435
2435
  // const params = getResourcesOptions(options);
2436
2436
  // const { info } = await fetcher<{
2437
2437
  // info: TafsirInfoResource;
@@ -2478,7 +2478,7 @@ var findAllRecitationStyles = /*#__PURE__*/function () {
2478
2478
  /**
2479
2479
  * Get all languages.
2480
2480
  * @description https://quran.api-docs.io/v4/resources/languages
2481
- * @param {GetResourcesOptions} options
2481
+ * @param {GetResourceOptions} options
2482
2482
  * @example
2483
2483
  * quran.v4.resources.findAllLanguages()
2484
2484
  */
@@ -2516,7 +2516,7 @@ var findAllLanguages = /*#__PURE__*/function () {
2516
2516
  /**
2517
2517
  * Get all chapter infos.
2518
2518
  * @description https://quran.api-docs.io/v4/resources/chapter-info
2519
- * @param {GetResourcesOptions} options
2519
+ * @param {GetResourceOptions} options
2520
2520
  * @example
2521
2521
  * quran.v4.resources.findAllChapterInfos()
2522
2522
  */
@@ -2554,7 +2554,7 @@ var findAllChapterInfos = /*#__PURE__*/function () {
2554
2554
  /**
2555
2555
  * Get verse media.
2556
2556
  * @description https://quran.api-docs.io/v4/resources/verse_media
2557
- * @param {GetResourcesOptions} options
2557
+ * @param {GetResourceOptions} options
2558
2558
  * @example
2559
2559
  * quran.v4.resources.findVerseMedia()
2560
2560
  */
@@ -2592,7 +2592,7 @@ var findVerseMedia = /*#__PURE__*/function () {
2592
2592
  /**
2593
2593
  * Get all chapter reciters.
2594
2594
  * @description https://quran.api-docs.io/v4/resources/list-of-chapter-reciters
2595
- * @param {GetResourcesOptions} options
2595
+ * @param {GetResourceOptions} options
2596
2596
  * @example
2597
2597
  * quran.v4.resources.findAllChapterReciters()
2598
2598
  */
@@ -2661,13 +2661,13 @@ var getSearchOptions = function getSearchOptions(q, options) {
2661
2661
  /**
2662
2662
  * Search
2663
2663
  * @description https://quran.api-docs.io/v4/search/KfCmk4KQYbtyK9adj
2664
- * @param q search query
2665
- * @param options search options
2664
+ * @param {string} q search query
2665
+ * @param {SearchOptions} options
2666
2666
  * @example
2667
- * quran.v4.search.search('الله')
2668
- * quran.v4.search.search('الله', { language: Language.ENGLISH })
2669
- * quran.v4.search.search('الله', { language: Language.ENGLISH, size: 10 })
2670
- * quran.v4.search.search('الله', { language: Language.ENGLISH, page: 2 })
2667
+ * quran.v4.search.search('نور')
2668
+ * quran.v4.search.search('نور', { language: Language.ENGLISH })
2669
+ * quran.v4.search.search('نور', { language: Language.ENGLISH, size: 10 })
2670
+ * quran.v4.search.search('نور', { language: Language.ENGLISH, page: 2 })
2671
2671
  */
2672
2672
 
2673
2673