@quranjs/api 3.4.0 → 3.4.1
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.
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.min.mjs.map +1 -1
- package/dist/public.min.js +1 -1
- package/dist/public.min.js.map +1 -1
- package/dist/public.min.mjs +1 -1
- package/dist/public.min.mjs.map +1 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.min.js +2 -2
- package/dist/server.min.js.map +1 -1
- package/dist/server.min.mjs +2 -2
- package/dist/server.min.mjs.map +1 -1
- package/dist/{verses-Dw2mFuje.d.ts → verses-BNxy6beN.d.ts} +19 -5
- package/dist/{verses-C_LN5-Sn.d.mts → verses-C-pY2crx.d.mts} +19 -5
- package/package.json +2 -2
|
@@ -350,10 +350,21 @@ interface ChapterReciterResource {
|
|
|
350
350
|
format?: string;
|
|
351
351
|
filesSize?: number;
|
|
352
352
|
}
|
|
353
|
-
type ContentSyncResourceGroup = "articles" | "recitations" | "tafsirs" | "translations";
|
|
353
|
+
type ContentSyncResourceGroup = "articles" | "recitations" | "tafsirs" | "translations" | "word_by_word_translations";
|
|
354
|
+
interface WordByWordTranslationSnapshotRecord extends Record<string, unknown> {
|
|
355
|
+
id: number;
|
|
356
|
+
resourceContentId: number;
|
|
357
|
+
resourceId: number;
|
|
358
|
+
wordId: number;
|
|
359
|
+
languageId: number;
|
|
360
|
+
languageName: string | null;
|
|
361
|
+
text: string | null;
|
|
362
|
+
priority: number | null;
|
|
363
|
+
updatedAt: string;
|
|
364
|
+
}
|
|
354
365
|
type ContentSyncMutationType = "RESOURCE_CREATE" | "RESOURCE_UPDATE" | "RESOURCE_DELETE" | "ROW_CREATE" | "ROW_UPDATE" | "ROW_DELETE" | "RESOURCE_INVALIDATE";
|
|
355
366
|
interface ContentSyncOptions extends ApiParams {
|
|
356
|
-
/** Resource filter, e.g. `articles:*;translations:1,6`. */
|
|
367
|
+
/** Resource filter, e.g. `articles:*;translations:1,6;word_by_word_translations:85`. */
|
|
357
368
|
resources?: string;
|
|
358
369
|
/** Set to true for the initial sync. */
|
|
359
370
|
bootstrap?: boolean;
|
|
@@ -856,7 +867,10 @@ declare class QuranResources {
|
|
|
856
867
|
* Bootstrap or incrementally sync public content resources.
|
|
857
868
|
* @param {ContentSyncOptions} options
|
|
858
869
|
* @example
|
|
859
|
-
* client.resources.sync({
|
|
870
|
+
* client.resources.sync({
|
|
871
|
+
* bootstrap: true,
|
|
872
|
+
* resources: "translations:19;word_by_word_translations:85"
|
|
873
|
+
* })
|
|
860
874
|
*/
|
|
861
875
|
sync<TData extends Record<string, unknown> = Record<string, unknown>>(options?: ContentSyncOptions): Promise<ContentSyncResponse<TData>>;
|
|
862
876
|
/**
|
|
@@ -865,7 +879,7 @@ declare class QuranResources {
|
|
|
865
879
|
* @param {string | number} id
|
|
866
880
|
* @param {ContentResourceSnapshotOptions} options
|
|
867
881
|
* @example
|
|
868
|
-
* client.resources.findSnapshot("
|
|
882
|
+
* client.resources.findSnapshot("word_by_word_translations", 85)
|
|
869
883
|
*/
|
|
870
884
|
findSnapshot<TRecord extends Record<string, unknown> = Record<string, unknown>>(resourceGroup: ContentSyncResourceGroup, id: string | number, options?: ContentResourceSnapshotOptions): Promise<ContentResourceSnapshot<TRecord>>;
|
|
871
885
|
}
|
|
@@ -973,4 +987,4 @@ declare class QuranVerses {
|
|
|
973
987
|
findRandom(options?: GetVerseOptions): Promise<Verse>;
|
|
974
988
|
}
|
|
975
989
|
|
|
976
|
-
export { type VerseMediaResource as $, type Answer as A, type Translation as B, type ChapterId as C, type Transliteration as D, type Verse as E, CharType as F, type Juz as G, type HizbNumber as H, type Pagination as I, type JuzNumber as J, type RecitationResource as K, type RecitationInfoResource as L, type TranslationResource as M, type NormalizedVerseRecitation as N, type TranslationInfoResource as O, type PageNumber as P, QuranChapters as Q, type RubNumber as R, type SearchResponse as S, type TranslatedName as T, type TafsirResource as U, type VerseKey as V, type Word as W, type TafsirInfoResource as X, type RecitationStylesResource as Y, type LanguageResource as Z, type ChapterInfoResource as _, QuranAnswers as a, type ChapterReciterResource as a0, type ContentSyncResourceGroup as a1, type
|
|
990
|
+
export { type VerseMediaResource as $, type Answer as A, type Translation as B, type ChapterId as C, type Transliteration as D, type Verse as E, CharType as F, type Juz as G, type HizbNumber as H, type Pagination as I, type JuzNumber as J, type RecitationResource as K, type RecitationInfoResource as L, type TranslationResource as M, type NormalizedVerseRecitation as N, type TranslationInfoResource as O, type PageNumber as P, QuranChapters as Q, type RubNumber as R, type SearchResponse as S, type TranslatedName as T, type TafsirResource as U, type VerseKey as V, type Word as W, type TafsirInfoResource as X, type RecitationStylesResource as Y, type LanguageResource as Z, type ChapterInfoResource as _, QuranAnswers as a, type ChapterReciterResource as a0, type ContentSyncResourceGroup as a1, type WordByWordTranslationSnapshotRecord as a2, type ContentSyncMutationType as a3, type ContentSyncOptions as a4, type ContentResourceSnapshotOptions as a5, type ContentSyncMutation as a6, type ContentSyncResponse as a7, type ContentResourceSnapshot as a8, SearchNavigationType as a9, type SearchResult as aa, QuranVerses as b, QuranJuzs as c, QuranAudio as d, QuranHadithReferences as e, QuranResources as f, QuranSearch as g, type AnswerQuestion as h, type AnswersByAyahResponse as i, type AnswerCount as j, type AnswerCountWithinRangeResponse as k, type ChapterRecitation as l, type VerseRecitation as m, type AudioResponse as n, type Chapter as o, type ChapterInfo as p, type ChapterInfoResponse as q, type HadithReference as r, type HadithReferencesByAyahResponse as s, type HadithGrade as t, type HadithContent as u, type Hadith as v, type HadithsByAyahResponse as w, type HadithCountWithinRangeResponse as x, type Segment as y, type Tafsir as z };
|
|
@@ -350,10 +350,21 @@ interface ChapterReciterResource {
|
|
|
350
350
|
format?: string;
|
|
351
351
|
filesSize?: number;
|
|
352
352
|
}
|
|
353
|
-
type ContentSyncResourceGroup = "articles" | "recitations" | "tafsirs" | "translations";
|
|
353
|
+
type ContentSyncResourceGroup = "articles" | "recitations" | "tafsirs" | "translations" | "word_by_word_translations";
|
|
354
|
+
interface WordByWordTranslationSnapshotRecord extends Record<string, unknown> {
|
|
355
|
+
id: number;
|
|
356
|
+
resourceContentId: number;
|
|
357
|
+
resourceId: number;
|
|
358
|
+
wordId: number;
|
|
359
|
+
languageId: number;
|
|
360
|
+
languageName: string | null;
|
|
361
|
+
text: string | null;
|
|
362
|
+
priority: number | null;
|
|
363
|
+
updatedAt: string;
|
|
364
|
+
}
|
|
354
365
|
type ContentSyncMutationType = "RESOURCE_CREATE" | "RESOURCE_UPDATE" | "RESOURCE_DELETE" | "ROW_CREATE" | "ROW_UPDATE" | "ROW_DELETE" | "RESOURCE_INVALIDATE";
|
|
355
366
|
interface ContentSyncOptions extends ApiParams {
|
|
356
|
-
/** Resource filter, e.g. `articles:*;translations:1,6`. */
|
|
367
|
+
/** Resource filter, e.g. `articles:*;translations:1,6;word_by_word_translations:85`. */
|
|
357
368
|
resources?: string;
|
|
358
369
|
/** Set to true for the initial sync. */
|
|
359
370
|
bootstrap?: boolean;
|
|
@@ -856,7 +867,10 @@ declare class QuranResources {
|
|
|
856
867
|
* Bootstrap or incrementally sync public content resources.
|
|
857
868
|
* @param {ContentSyncOptions} options
|
|
858
869
|
* @example
|
|
859
|
-
* client.resources.sync({
|
|
870
|
+
* client.resources.sync({
|
|
871
|
+
* bootstrap: true,
|
|
872
|
+
* resources: "translations:19;word_by_word_translations:85"
|
|
873
|
+
* })
|
|
860
874
|
*/
|
|
861
875
|
sync<TData extends Record<string, unknown> = Record<string, unknown>>(options?: ContentSyncOptions): Promise<ContentSyncResponse<TData>>;
|
|
862
876
|
/**
|
|
@@ -865,7 +879,7 @@ declare class QuranResources {
|
|
|
865
879
|
* @param {string | number} id
|
|
866
880
|
* @param {ContentResourceSnapshotOptions} options
|
|
867
881
|
* @example
|
|
868
|
-
* client.resources.findSnapshot("
|
|
882
|
+
* client.resources.findSnapshot("word_by_word_translations", 85)
|
|
869
883
|
*/
|
|
870
884
|
findSnapshot<TRecord extends Record<string, unknown> = Record<string, unknown>>(resourceGroup: ContentSyncResourceGroup, id: string | number, options?: ContentResourceSnapshotOptions): Promise<ContentResourceSnapshot<TRecord>>;
|
|
871
885
|
}
|
|
@@ -973,4 +987,4 @@ declare class QuranVerses {
|
|
|
973
987
|
findRandom(options?: GetVerseOptions): Promise<Verse>;
|
|
974
988
|
}
|
|
975
989
|
|
|
976
|
-
export { type VerseMediaResource as $, type Answer as A, type Translation as B, type ChapterId as C, type Transliteration as D, type Verse as E, CharType as F, type Juz as G, type HizbNumber as H, type Pagination as I, type JuzNumber as J, type RecitationResource as K, type RecitationInfoResource as L, type TranslationResource as M, type NormalizedVerseRecitation as N, type TranslationInfoResource as O, type PageNumber as P, QuranChapters as Q, type RubNumber as R, type SearchResponse as S, type TranslatedName as T, type TafsirResource as U, type VerseKey as V, type Word as W, type TafsirInfoResource as X, type RecitationStylesResource as Y, type LanguageResource as Z, type ChapterInfoResource as _, QuranAnswers as a, type ChapterReciterResource as a0, type ContentSyncResourceGroup as a1, type
|
|
990
|
+
export { type VerseMediaResource as $, type Answer as A, type Translation as B, type ChapterId as C, type Transliteration as D, type Verse as E, CharType as F, type Juz as G, type HizbNumber as H, type Pagination as I, type JuzNumber as J, type RecitationResource as K, type RecitationInfoResource as L, type TranslationResource as M, type NormalizedVerseRecitation as N, type TranslationInfoResource as O, type PageNumber as P, QuranChapters as Q, type RubNumber as R, type SearchResponse as S, type TranslatedName as T, type TafsirResource as U, type VerseKey as V, type Word as W, type TafsirInfoResource as X, type RecitationStylesResource as Y, type LanguageResource as Z, type ChapterInfoResource as _, QuranAnswers as a, type ChapterReciterResource as a0, type ContentSyncResourceGroup as a1, type WordByWordTranslationSnapshotRecord as a2, type ContentSyncMutationType as a3, type ContentSyncOptions as a4, type ContentResourceSnapshotOptions as a5, type ContentSyncMutation as a6, type ContentSyncResponse as a7, type ContentResourceSnapshot as a8, SearchNavigationType as a9, type SearchResult as aa, QuranVerses as b, QuranJuzs as c, QuranAudio as d, QuranHadithReferences as e, QuranResources as f, QuranSearch as g, type AnswerQuestion as h, type AnswersByAyahResponse as i, type AnswerCount as j, type AnswerCountWithinRangeResponse as k, type ChapterRecitation as l, type VerseRecitation as m, type AudioResponse as n, type Chapter as o, type ChapterInfo as p, type ChapterInfoResponse as q, type HadithReference as r, type HadithReferencesByAyahResponse as s, type HadithGrade as t, type HadithContent as u, type Hadith as v, type HadithsByAyahResponse as w, type HadithCountWithinRangeResponse as x, type Segment as y, type Tafsir as z };
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
|
-
"version": "3.4.
|
|
14
|
+
"version": "3.4.1",
|
|
15
15
|
"main": "dist/index.min.js",
|
|
16
16
|
"module": "dist/index.min.mjs",
|
|
17
17
|
"types": "dist/index.d.ts",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"tsup": "^8.5.0",
|
|
58
58
|
"typescript": "^5.9.2",
|
|
59
59
|
"vitest": "^3.2.4",
|
|
60
|
-
"@quranjs/eslint-config": "0.3.0",
|
|
61
60
|
"@quranjs/prettier-config": "0.1.0",
|
|
61
|
+
"@quranjs/eslint-config": "0.3.0",
|
|
62
62
|
"@quranjs/tsconfig": "0.1.0"
|
|
63
63
|
},
|
|
64
64
|
"prettier": "@quranjs/prettier-config",
|