@helloao/tools 0.0.10 → 0.0.11
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/cjs/generation/api.cjs +69 -1
- package/dist/cjs/generation/api.cjs.map +2 -2
- package/dist/cjs/generation/common-types.cjs.map +1 -1
- package/dist/cjs/generation/dataset.cjs +59 -42
- package/dist/cjs/generation/dataset.cjs.map +3 -3
- package/dist/cjs/index.cjs +3 -0
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/cjs/log.cjs +50 -0
- package/dist/cjs/log.cjs.map +7 -0
- package/dist/cjs/parser/codex-parser.cjs +15 -12
- package/dist/cjs/parser/codex-parser.cjs.map +2 -2
- package/dist/cjs/parser/commentary-csv-parser.cjs.map +2 -2
- package/dist/cjs/parser/iterators.cjs +17 -6
- package/dist/cjs/parser/iterators.cjs.map +2 -2
- package/dist/cjs/parser/tyndale-xml-parser.cjs +212 -0
- package/dist/cjs/parser/tyndale-xml-parser.cjs.map +7 -0
- package/dist/cjs/parser/types.cjs.map +1 -1
- package/dist/cjs/parser/usfm-parser.cjs +4 -2
- package/dist/cjs/parser/usfm-parser.cjs.map +2 -2
- package/dist/cjs/utils.cjs +26 -4
- package/dist/cjs/utils.cjs.map +2 -2
- package/dist/esm/generation/api.js +65 -1
- package/dist/esm/generation/api.js.map +2 -2
- package/dist/esm/generation/dataset.js +60 -43
- package/dist/esm/generation/dataset.js.map +2 -2
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +2 -2
- package/dist/esm/log.js +20 -0
- package/dist/esm/log.js.map +7 -0
- package/dist/esm/parser/codex-parser.js +15 -12
- package/dist/esm/parser/codex-parser.js.map +2 -2
- package/dist/esm/parser/commentary-csv-parser.js.map +2 -2
- package/dist/esm/parser/iterators.js +17 -6
- package/dist/esm/parser/iterators.js.map +2 -2
- package/dist/esm/parser/tyndale-xml-parser.js +184 -0
- package/dist/esm/parser/tyndale-xml-parser.js.map +7 -0
- package/dist/esm/parser/usfm-parser.js +4 -2
- package/dist/esm/parser/usfm-parser.js.map +2 -2
- package/dist/esm/utils.js +26 -4
- package/dist/esm/utils.js.map +2 -2
- package/dist/types/generation/api.d.ts +76 -1
- package/dist/types/generation/common-types.d.ts +31 -1
- package/dist/types/generation/dataset.d.ts +17 -3
- package/dist/types/index.d.ts +2 -1
- package/dist/types/log.d.ts +23 -0
- package/dist/types/parser/tyndale-xml-parser.d.ts +8 -0
- package/dist/types/parser/types.d.ts +25 -0
- package/dist/types/utils.d.ts +8 -0
- package/package.json +35 -13
package/dist/esm/utils.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../utils.ts"],
|
|
4
|
-
"sourcesContent": ["/**\r\n * Normalizes the given language code into a ISO 639 code.\r\n * @param language The language code to normalize.\r\n */\r\nexport function normalizeLanguage(language: string): string {\r\n return language;\r\n}\r\n\r\n/**\r\n * The map of translation IDs from fetch.bible to their translation ID in the API.\r\n */\r\nconst TRANSLATION_ID_MAP: Map<string, string> = new Map([\r\n ['eng_bsb', 'BSB'],\r\n ['arb_nav', 'ARBNAV'],\r\n ['eng_webp', 'ENGWEBP'],\r\n ['hin_irv', 'HINIRV'],\r\n ['hbo_mas', 'HBOMAS'],\r\n]);\r\n\r\n/**\r\n * Gets the ID of the translation.\r\n * @param translation The translation to get the ID for.\r\n */\r\nexport function getTranslationId(translationId: string): string {\r\n return TRANSLATION_ID_MAP.get(translationId) ?? translationId;\r\n}\r\n\r\nexport function isEmptyOrWhitespace(str: string | null | undefined): boolean {\r\n return !str || /^\\s*$/.test(str);\r\n}\r\n\r\nexport function getFirstNonEmpty<T extends string>(...values: T[]): T {\r\n for (let value of values) {\r\n if (!isEmptyOrWhitespace(value)) {\r\n return value;\r\n }\r\n }\r\n\r\n throw new Error('All values are empty or whitespace!');\r\n}\r\n\r\nexport interface VerseRef {\r\n book: string;\r\n chapter: number;\r\n verse: number;\r\n\r\n /**\r\n * The rest of the content of the verse.\r\n */\r\n content?: string;\r\n}\r\n\r\n/**\r\n * Parses the given verse reference.\r\n * Formatted like \"GEN 1:1\".\r\n *\r\n * @param text The reference to parse.\r\n */\r\nexport function parseVerseReference(text: string): VerseRef | null {\r\n const match = text.match(/^\\s*([0-9A-Za-z\\s]+)\\s+(\\d+)
|
|
5
|
-
"mappings": ";AAIO,gBAAS,kBAAkB,UAA0B;AACxD,SAAO;AACX;AAKA,MAAM,qBAA0C,oBAAI,IAAI;AAAA,EACpD,CAAC,WAAW,KAAK;AAAA,EACjB,CAAC,WAAW,QAAQ;AAAA,EACpB,CAAC,YAAY,SAAS;AAAA,EACtB,CAAC,WAAW,QAAQ;AAAA,EACpB,CAAC,WAAW,QAAQ;AACxB,CAAC;AAMM,gBAAS,iBAAiB,eAA+B;AAC5D,SAAO,mBAAmB,IAAI,aAAa,KAAK;AACpD;AAEO,gBAAS,oBAAoB,KAAyC;AACzE,SAAO,CAAC,OAAO,QAAQ,KAAK,GAAG;AACnC;AAEO,gBAAS,oBAAsC,QAAgB;AAClE,WAAS,SAAS,QAAQ;AACtB,QAAI,CAAC,oBAAoB,KAAK,GAAG;AAC7B,aAAO;AAAA,IACX;AAAA,EACJ;AAEA,QAAM,IAAI,MAAM,qCAAqC;AACzD;
|
|
4
|
+
"sourcesContent": ["/**\r\n * Normalizes the given language code into a ISO 639 code.\r\n * @param language The language code to normalize.\r\n */\r\nexport function normalizeLanguage(language: string): string {\r\n return language;\r\n}\r\n\r\n/**\r\n * The map of translation IDs from fetch.bible to their translation ID in the API.\r\n */\r\nconst TRANSLATION_ID_MAP: Map<string, string> = new Map([\r\n ['eng_bsb', 'BSB'],\r\n ['arb_nav', 'ARBNAV'],\r\n ['eng_webp', 'ENGWEBP'],\r\n ['hin_irv', 'HINIRV'],\r\n ['hbo_mas', 'HBOMAS'],\r\n]);\r\n\r\n/**\r\n * Gets the ID of the translation.\r\n * @param translation The translation to get the ID for.\r\n */\r\nexport function getTranslationId(translationId: string): string {\r\n return TRANSLATION_ID_MAP.get(translationId) ?? translationId;\r\n}\r\n\r\nexport function isEmptyOrWhitespace(str: string | null | undefined): boolean {\r\n return !str || /^\\s*$/.test(str);\r\n}\r\n\r\nexport function getFirstNonEmpty<T extends string>(...values: T[]): T {\r\n for (let value of values) {\r\n if (!isEmptyOrWhitespace(value)) {\r\n return value;\r\n }\r\n }\r\n\r\n throw new Error('All values are empty or whitespace!');\r\n}\r\n\r\nexport interface VerseRef {\r\n book: string;\r\n chapter: number;\r\n verse: number;\r\n\r\n /**\r\n * The rest of the content of the verse.\r\n */\r\n content?: string;\r\n\r\n /**\r\n * The chapter that the verse reference ends at.\r\n */\r\n endChapter?: number;\r\n\r\n /**\r\n * The verse that the verse reference ends at.\r\n */\r\n endVerse?: number;\r\n}\r\n\r\n/**\r\n * Parses the given verse reference.\r\n * Formatted like \"GEN 1:1\".\r\n *\r\n * @param text The reference to parse.\r\n */\r\nexport function parseVerseReference(text: string): VerseRef | null {\r\n const match = text.match(\r\n /^\\s*([0-9A-Za-z\\s]+)[\\s\\.]+(\\d+)[:\\.](\\d+)(?:-([0-9]+)(?:[\\s:\\.]([0-9]+))?)?/\r\n );\r\n\r\n if (!match) {\r\n return null;\r\n }\r\n\r\n const [reference, book, chapterStr, verseStr, endChapterStr, endVerseStr] =\r\n match;\r\n\r\n const chapter = parseInt(chapterStr);\r\n const verse = parseInt(verseStr);\r\n\r\n let endChapter = endChapterStr ? parseInt(endChapterStr) : undefined;\r\n let endVerse = endVerseStr ? parseInt(endVerseStr) : undefined;\r\n\r\n if (endChapter && !endVerse) {\r\n endVerse = endChapter;\r\n endChapter = undefined;\r\n }\r\n\r\n if (isNaN(chapter) || isNaN(verse)) {\r\n return null;\r\n }\r\n\r\n if (reference.length !== text.length) {\r\n return {\r\n book: getBookId(book) ?? book,\r\n chapter,\r\n verse,\r\n content: text.substring(reference.length).trim(),\r\n endChapter,\r\n endVerse,\r\n };\r\n }\r\n\r\n return {\r\n book: getBookId(book) ?? book,\r\n chapter,\r\n verse,\r\n endChapter,\r\n endVerse,\r\n };\r\n}\r\n\r\n/**\r\n * Defines a map that maps the book ID to the numerical order of the book.\r\n */\r\nconst BOOK_ID_MAP: Map<string, string> = new Map([\r\n ['gen', 'GEN'],\r\n ['genesis', 'GEN'],\r\n ['exo', 'EXO'],\r\n ['exodus', 'EXO'],\r\n ['lev', 'LEV'],\r\n ['lev', 'LEV'],\r\n ['laviticus', 'LEV'],\r\n ['num', 'NUM'],\r\n ['numbers', 'NUM'],\r\n ['deu', 'DEU'],\r\n ['deuteronomy', 'DEU'],\r\n ['jos', 'JOS'],\r\n ['joshua', 'JOS'],\r\n ['jdg', 'JDG'],\r\n ['judges', 'JDG'],\r\n ['rut', 'RUT'],\r\n ['ruth', 'RUT'],\r\n ['1sa', '1SA'],\r\n ['1samuel', '1SA'],\r\n ['2sa', '2SA'],\r\n ['2samuel', '2SA'],\r\n ['1ki', '1KI'],\r\n ['1kings', '1KI'],\r\n ['1kgs', '1KI'],\r\n ['2ki', '2KI'],\r\n ['2kings', '2KI'],\r\n ['2kgs', '2KI'],\r\n ['1ch', '1CH'],\r\n ['1chronicles', '1CH'],\r\n ['chronicles1', '1CH'],\r\n ['2ch', '2CH'],\r\n ['2chronicles', '2CH'],\r\n ['chronicles2', '2CH'],\r\n ['ezr', 'EZR'],\r\n ['ezra', 'EZR'],\r\n ['neh', 'NEH'],\r\n ['nehemiah', 'NEH'],\r\n ['est', 'EST'],\r\n ['ester', 'EST'],\r\n ['job', 'JOB'],\r\n ['ps', 'PSA'],\r\n ['psa', 'PSA'],\r\n ['psalms', 'PSA'],\r\n ['psalm', 'PSA'],\r\n ['pr', 'PRO'],\r\n ['pro', 'PRO'],\r\n ['proverbs', 'PRO'],\r\n ['ecc', 'ECC'],\r\n ['ecclesiastes', 'ECC'],\r\n ['eccl', 'ECC'],\r\n ['sng', 'SNG'],\r\n ['song', 'SNG'],\r\n ['songofsolomon', 'SNG'],\r\n ['isa', 'ISA'],\r\n ['isaiah', 'ISA'],\r\n ['jer', 'JER'],\r\n ['jeremiah', 'JER'],\r\n ['lam', 'LAM'],\r\n ['lamentations', 'LAM'],\r\n ['ezk', 'EZK'],\r\n ['ezekiel', 'EZK'],\r\n ['ezek', 'EZK'],\r\n ['dan', 'DAN'],\r\n ['daniel', 'DAN'],\r\n ['hos', 'HOS'],\r\n ['hosea', 'HOS'],\r\n ['jol', 'JOL'],\r\n ['joel', 'JOL'],\r\n ['amo', 'AMO'],\r\n ['amos', 'AMO'],\r\n ['oba', 'OBA'],\r\n ['obadiah', 'OBA'],\r\n ['jon', 'JON'],\r\n ['jonah', 'JON'],\r\n ['mic', 'MIC'],\r\n ['micah', 'MIC'],\r\n ['nam', 'NAM'],\r\n ['nahum', 'NAM'],\r\n ['nah', 'NAM'],\r\n ['hab', 'HAB'],\r\n ['habakkuk', 'HAB'],\r\n ['zep', 'ZEP'],\r\n ['zepaniah', 'ZEP'],\r\n ['hag', 'HAG'],\r\n ['haggai', 'HAG'],\r\n ['zec', 'ZEC'],\r\n ['zechariah', 'ZEC'],\r\n ['mal', 'MAL'],\r\n ['malachi', 'MAL'],\r\n ['mat', 'MAT'],\r\n ['matthew', 'MAT'],\r\n ['mrk', 'MRK'],\r\n ['mark', 'MRK'],\r\n ['luk', 'LUK'],\r\n ['luke', 'LUK'],\r\n ['jhn', 'JHN'],\r\n ['john', 'JHN'],\r\n ['act', 'ACT'],\r\n ['acts', 'ACT'],\r\n ['rom', 'ROM'],\r\n ['romans', 'ROM'],\r\n ['1co', '1CO'],\r\n ['1corinthians', '1CO'],\r\n ['2co', '2CO'],\r\n ['2corinthians', '2CO'],\r\n ['gal', 'GAL'],\r\n ['galatians', 'GAL'],\r\n ['eph', 'EPH'],\r\n ['ephesians', 'EPH'],\r\n ['php', 'PHP'],\r\n ['philippians', 'PHP'],\r\n ['phil', 'PHP'],\r\n ['col', 'COL'],\r\n ['colossians', 'COL'],\r\n ['1th', '1TH'],\r\n ['1thessalonians', '1TH'],\r\n ['2th', '2TH'],\r\n ['2thessalonians', '2TH'],\r\n ['1ti', '1TI'],\r\n ['1timothy', '1TI'],\r\n ['2ti', '2TI'],\r\n ['2timothy', '2TI'],\r\n ['tit', 'TIT'],\r\n ['titus', 'TIT'],\r\n ['phm', 'PHM'],\r\n ['philemon', 'PHM'],\r\n ['phlm', 'PHM'],\r\n ['heb', 'HEB'],\r\n ['hebrews', 'HEB'],\r\n ['jas', 'JAS'],\r\n ['james', 'JAS'],\r\n ['1pe', '1PE'],\r\n ['1peter', '1PE'],\r\n ['2pe', '2PE'],\r\n ['2peter', '2PE'],\r\n ['1jn', '1JN'],\r\n ['1john', '1JN'],\r\n ['2jn', '2JN'],\r\n ['2john', '2JN'],\r\n ['3jn', '3JN'],\r\n ['3john', '3JN'],\r\n ['jud', 'JUD'],\r\n ['jude', 'JUD'],\r\n ['rev', 'REV'],\r\n ['revelation', 'REV'],\r\n]);\r\n\r\n/**\r\n * Gets the ID of the given book.\r\n * Returns null if the ID could not be found.\r\n * @param book The name/ID of the book.\r\n */\r\nexport function getBookId(book: string): string | null {\r\n const bookLower = book.toLowerCase().replaceAll(/\\s+/g, '');\r\n\r\n const id = BOOK_ID_MAP.get(bookLower);\r\n if (id) {\r\n return id;\r\n }\r\n\r\n for (let [key, id] of BOOK_ID_MAP) {\r\n if (bookLower.startsWith(key)) {\r\n return id;\r\n }\r\n }\r\n\r\n return null;\r\n}\r\n"],
|
|
5
|
+
"mappings": ";AAIO,gBAAS,kBAAkB,UAA0B;AACxD,SAAO;AACX;AAKA,MAAM,qBAA0C,oBAAI,IAAI;AAAA,EACpD,CAAC,WAAW,KAAK;AAAA,EACjB,CAAC,WAAW,QAAQ;AAAA,EACpB,CAAC,YAAY,SAAS;AAAA,EACtB,CAAC,WAAW,QAAQ;AAAA,EACpB,CAAC,WAAW,QAAQ;AACxB,CAAC;AAMM,gBAAS,iBAAiB,eAA+B;AAC5D,SAAO,mBAAmB,IAAI,aAAa,KAAK;AACp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ACb,CAAC,SAAS,KAAK;AAAA,EACf,CAAC,OAAO,KAAK;AAAA,EACb,CAAC,UAAU,KAAK;AAAA,EAChB,CAAC,OAAO,KAAK;AAAA,EACb,CAAC,UAAU,KAAK;AAAA,EAChB,CAAC,OAAO,KAAK;AAAA,EACb,CAAC,SAAS,KAAK;AAAA,EACf,CAAC,OAAO,KAAK;AAAA,EACb,CAAC,SAAS,KAAK;AAAA,EACf,CAAC,OAAO,KAAK;AAAA,EACb,CAAC,SAAS,KAAK;AAAA,EACf,CAAC,OAAO,KAAK;AAAA,EACb,CAAC,QAAQ,KAAK;AAAA,EACd,CAAC,OAAO,KAAK;AAAA,EACb,CAAC,cAAc,KAAK;AACxB,CAAC;AAOM,gBAAS,UAAU,MAA6B;AACnD,QAAM,YAAY,KAAK,YAAY,EAAE,WAAW,QAAQ,EAAE;AAE1D,QAAM,KAAK,YAAY,IAAI,SAAS;AACpC,MAAI,IAAI;AACJ,WAAO;AAAA,EACX;AAEA,WAAS,CAAC,KAAKA,GAAE,KAAK,aAAa;AAC/B,QAAI,UAAU,WAAW,GAAG,GAAG;AAC3B,aAAOA;AAAA,IACX;AAAA,EACJ;AAEA,SAAO;AACX;",
|
|
6
6
|
"names": ["id"]
|
|
7
7
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Commentary, CommentaryBook, CommentaryBookChapter, OutputFile, Translation, TranslationBook, TranslationBookChapter, TranslationBookChapterAudioLinks } from './common-types.js';
|
|
1
|
+
import { Commentary, CommentaryBook, CommentaryBookChapter, CommentaryProfile, OutputFile, Translation, TranslationBook, TranslationBookChapter, TranslationBookChapterAudioLinks } from './common-types.js';
|
|
2
2
|
import { DatasetOutput } from './dataset.js';
|
|
3
3
|
/**
|
|
4
4
|
* Defines the output of the API generation.
|
|
@@ -37,12 +37,23 @@ export interface ApiOutput {
|
|
|
37
37
|
* This maps to the /api/c/:commentaryId/books.json endpoint.
|
|
38
38
|
*/
|
|
39
39
|
commentaryBooks: ApiCommentaryBooks[];
|
|
40
|
+
/**
|
|
41
|
+
* The list of profiles for each commentary.
|
|
42
|
+
* This maps to the /api/c/:commentaryId/profiles.json endpoint.
|
|
43
|
+
*/
|
|
44
|
+
commentaryProfiles: ApiCommentaryProfiles[];
|
|
40
45
|
/**
|
|
41
46
|
* The list of chapters for each commentary book.
|
|
42
47
|
* This maps to the following endpoint:
|
|
43
48
|
* - /api/c/:commentaryId/:bookId/:chapterNumber.json
|
|
44
49
|
*/
|
|
45
50
|
commentaryBookChapters: ApiCommentaryBookChapter[];
|
|
51
|
+
/**
|
|
52
|
+
* The list of individual profiles for each commentary.
|
|
53
|
+
* This maps to the following endpoint:
|
|
54
|
+
* - /api/c/:commentaryId/profiles/:profileId.json
|
|
55
|
+
*/
|
|
56
|
+
commentaryProfileContents: ApiCommentaryProfileContent[];
|
|
46
57
|
/**
|
|
47
58
|
* The path prefix that the API should use.
|
|
48
59
|
*/
|
|
@@ -117,6 +128,10 @@ export interface ApiCommentary extends Commentary {
|
|
|
117
128
|
* The API link for the list of available books for this translation.
|
|
118
129
|
*/
|
|
119
130
|
listOfBooksApiLink: string;
|
|
131
|
+
/**
|
|
132
|
+
* The API link for the list of available profiles for this commentary.
|
|
133
|
+
*/
|
|
134
|
+
listOfProfilesApiLink: string;
|
|
120
135
|
/**
|
|
121
136
|
* The available list of formats.
|
|
122
137
|
*/
|
|
@@ -139,6 +154,12 @@ export interface ApiCommentary extends Commentary {
|
|
|
139
154
|
* Complete commentaries should have the same number of verses as the Bible (around 31,102 - some commentaries exclude verses based on the aparent likelyhood of existing in the original source texts).
|
|
140
155
|
*/
|
|
141
156
|
totalNumberOfVerses: number;
|
|
157
|
+
/**
|
|
158
|
+
* The total number of profiles that are contained in this commentary.
|
|
159
|
+
*
|
|
160
|
+
* Profiles are used to provide additional information about people and people groups that are mentioned in the Bible.
|
|
161
|
+
*/
|
|
162
|
+
totalNumberOfProfiles: number;
|
|
142
163
|
/**
|
|
143
164
|
* Gets the name of the language that the commentary is in.
|
|
144
165
|
* Null or undefined if the name of the language is not known.
|
|
@@ -176,6 +197,32 @@ export interface ApiCommentaryBooks {
|
|
|
176
197
|
*/
|
|
177
198
|
books: ApiCommentaryBook[];
|
|
178
199
|
}
|
|
200
|
+
/**
|
|
201
|
+
* Defines an interface that contains information about the profiles that are available for a commentary.
|
|
202
|
+
*/
|
|
203
|
+
export interface ApiCommentaryProfiles {
|
|
204
|
+
/**
|
|
205
|
+
* The commentary information for the books.
|
|
206
|
+
*/
|
|
207
|
+
commentary: ApiCommentary;
|
|
208
|
+
/**
|
|
209
|
+
* The list of profiles that are available for the commentary.
|
|
210
|
+
*/
|
|
211
|
+
profiles: ApiCommentaryProfile[];
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Defines an interface that contains information about a profile.
|
|
215
|
+
*/
|
|
216
|
+
export interface ApiCommentaryProfile extends CommentaryProfile {
|
|
217
|
+
/**
|
|
218
|
+
* The link to this profile.
|
|
219
|
+
*/
|
|
220
|
+
thisProfileLink: string;
|
|
221
|
+
/**
|
|
222
|
+
* The link to the chapter that this profile references in the commentary.
|
|
223
|
+
*/
|
|
224
|
+
referenceChapterLink: string | null;
|
|
225
|
+
}
|
|
179
226
|
/**
|
|
180
227
|
* Defines a translation book that is used in the API.
|
|
181
228
|
*/
|
|
@@ -304,6 +351,20 @@ export interface ApiTranslationBookChapterAudio {
|
|
|
304
351
|
*/
|
|
305
352
|
originalUrl: string;
|
|
306
353
|
}
|
|
354
|
+
export interface ApiCommentaryProfileContent {
|
|
355
|
+
/**
|
|
356
|
+
* The commentary information for the profile.
|
|
357
|
+
*/
|
|
358
|
+
commentary: ApiCommentary;
|
|
359
|
+
/**
|
|
360
|
+
* The information about the profile.
|
|
361
|
+
*/
|
|
362
|
+
profile: ApiCommentaryProfile;
|
|
363
|
+
/**
|
|
364
|
+
* The content of the profile.
|
|
365
|
+
*/
|
|
366
|
+
content: string[];
|
|
367
|
+
}
|
|
307
368
|
/**
|
|
308
369
|
* The options for generating the API.
|
|
309
370
|
*/
|
|
@@ -384,6 +445,20 @@ export declare function bookChapterApiLink(translationId: string, commonName: st
|
|
|
384
445
|
*/
|
|
385
446
|
export declare function bookCommentaryChapterApiLink(translationId: string, commonName: string, chapterNumber: number, extension: string, prefix?: string): string;
|
|
386
447
|
export declare function bookChapterAudioApiLink(translationId: string, bookId: string, chapterNumber: number, reader: string, prefix?: string): string;
|
|
448
|
+
/**
|
|
449
|
+
* Gets the API link for a profile.
|
|
450
|
+
* @param translationId The ID of the translation.
|
|
451
|
+
* @param profileId The ID of the profile.
|
|
452
|
+
* @param extension The extension of the file.
|
|
453
|
+
*/
|
|
454
|
+
export declare function profilesCommentaryApiLink(translationId: string, extension: string, prefix?: string): string;
|
|
455
|
+
/**
|
|
456
|
+
* Gets the API link for a profile.
|
|
457
|
+
* @param translationId The ID of the translation.
|
|
458
|
+
* @param profileId The ID of the profile.
|
|
459
|
+
* @param extension The extension of the file.
|
|
460
|
+
*/
|
|
461
|
+
export declare function profileCommentaryApiLink(translationId: string, profileId: string, extension: string, prefix?: string): string;
|
|
387
462
|
export declare function jsonFile(path: string, content: any, mergable?: boolean): OutputFile;
|
|
388
463
|
export declare function downloadedFile(path: string, url: string): OutputFile;
|
|
389
464
|
export declare function replaceSpacesWithUnderscores(str: string): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VerseRef } from '../utils.js';
|
|
1
2
|
/**
|
|
2
3
|
* Defines an interface that contains information about a input file.
|
|
3
4
|
*/
|
|
@@ -13,7 +14,7 @@ export interface InputTranslationFile extends InputFileBase {
|
|
|
13
14
|
metadata: InputTranslationMetadata;
|
|
14
15
|
}
|
|
15
16
|
export interface InputCommentaryFile extends InputFileBase {
|
|
16
|
-
fileType: 'commentary/csv';
|
|
17
|
+
fileType: 'commentary/csv' | 'commentary/tyndale-xml';
|
|
17
18
|
metadata: InputCommentaryMetadata;
|
|
18
19
|
}
|
|
19
20
|
export type OutputFileContent = object | ReadableStream;
|
|
@@ -102,6 +103,10 @@ export interface Translation {
|
|
|
102
103
|
* The URL that the license for the translation can be found.
|
|
103
104
|
*/
|
|
104
105
|
licenseUrl: string;
|
|
106
|
+
/**
|
|
107
|
+
* The API-added notes for the license.
|
|
108
|
+
*/
|
|
109
|
+
licenseNotes?: string | null;
|
|
105
110
|
/**
|
|
106
111
|
* The short name for the translation.
|
|
107
112
|
*/
|
|
@@ -141,6 +146,10 @@ export interface Commentary {
|
|
|
141
146
|
* The URL that the license for the commentary can be found.
|
|
142
147
|
*/
|
|
143
148
|
licenseUrl: string;
|
|
149
|
+
/**
|
|
150
|
+
* The API-added notes for the license.
|
|
151
|
+
*/
|
|
152
|
+
licenseNotes?: string | null;
|
|
144
153
|
/**
|
|
145
154
|
* The english name for the commentary.
|
|
146
155
|
*/
|
|
@@ -203,11 +212,32 @@ export interface CommentaryBook {
|
|
|
203
212
|
* The commentary's introduction for the book.
|
|
204
213
|
*/
|
|
205
214
|
introduction?: string;
|
|
215
|
+
/**
|
|
216
|
+
* The summary of the commentary's introduction for the book.
|
|
217
|
+
*/
|
|
218
|
+
introductionSummary?: string;
|
|
206
219
|
/**
|
|
207
220
|
* The order of the book in the Bible.
|
|
208
221
|
*/
|
|
209
222
|
order: number;
|
|
210
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* Defines an interface that contains information about a profile in a commentary.
|
|
226
|
+
*/
|
|
227
|
+
export interface CommentaryProfile {
|
|
228
|
+
/**
|
|
229
|
+
* The ID of the profile.
|
|
230
|
+
*/
|
|
231
|
+
id: string;
|
|
232
|
+
/**
|
|
233
|
+
* The subject of the profile.
|
|
234
|
+
*/
|
|
235
|
+
subject: string;
|
|
236
|
+
/**
|
|
237
|
+
* The Bible reference that the profile is associated with.
|
|
238
|
+
*/
|
|
239
|
+
reference: VerseRef | null;
|
|
240
|
+
}
|
|
211
241
|
/**
|
|
212
242
|
* Defines an interface that contains information about a book chapter.
|
|
213
243
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Commentary, CommentaryBook, CommentaryBookChapter, InputFile, Translation, TranslationBook, TranslationBookChapter } from './common-types.js';
|
|
1
|
+
import { Commentary, CommentaryBook, CommentaryBookChapter, CommentaryProfile, InputFile, Translation, TranslationBook, TranslationBookChapter } from './common-types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Defines an interface that contains generated dataset info.
|
|
4
4
|
*/
|
|
@@ -26,9 +26,13 @@ export interface DatasetTranslation extends Translation {
|
|
|
26
26
|
*/
|
|
27
27
|
export interface DatasetCommentary extends Commentary {
|
|
28
28
|
/**
|
|
29
|
-
* The list of books that are available for the
|
|
29
|
+
* The list of books that are available for the commentary.
|
|
30
30
|
*/
|
|
31
31
|
books: DatasetCommentaryBook[];
|
|
32
|
+
/**
|
|
33
|
+
* The list of profiles that are available for the commentary.
|
|
34
|
+
*/
|
|
35
|
+
profiles: DatasetCommentaryProfile[];
|
|
32
36
|
}
|
|
33
37
|
/**
|
|
34
38
|
* Defines a translation book that is used in the dataset.
|
|
@@ -48,9 +52,19 @@ export interface DatasetCommentaryBook extends CommentaryBook {
|
|
|
48
52
|
*/
|
|
49
53
|
chapters: CommentaryBookChapter[];
|
|
50
54
|
}
|
|
55
|
+
export interface DatasetCommentaryProfile extends CommentaryProfile {
|
|
56
|
+
/**
|
|
57
|
+
* The contents of the profile.
|
|
58
|
+
*/
|
|
59
|
+
content: string[];
|
|
60
|
+
}
|
|
51
61
|
/**
|
|
52
62
|
* Generates a list of output files from the given list of input files.
|
|
53
63
|
* @param file The list of files.
|
|
64
|
+
* @param parser The parser to use for parsing the files.
|
|
65
|
+
* @param bookMap The map of book IDs to names. If undefined, then a default map will be used.
|
|
54
66
|
*/
|
|
55
|
-
export declare function generateDataset(files: InputFile[], parser?: DOMParser
|
|
67
|
+
export declare function generateDataset(files: InputFile[], parser?: DOMParser, bookMap?: Map<string, {
|
|
68
|
+
commonName: string;
|
|
69
|
+
}> | undefined): DatasetOutput;
|
|
56
70
|
//# sourceMappingURL=dataset.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as utils from './utils.js';
|
|
2
2
|
import * as generation from './generation/index.js';
|
|
3
3
|
import * as parser from './parser/index.js';
|
|
4
|
-
|
|
4
|
+
import * as log from './log.js';
|
|
5
|
+
export { utils, generation, parser, log };
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A simple logging interface that can be used to log messages.
|
|
3
|
+
*/
|
|
4
|
+
export interface Logger {
|
|
5
|
+
log: (message: any, ...args: any[]) => void;
|
|
6
|
+
warn: (message: string, ...args: any[]) => void;
|
|
7
|
+
error: (message: string, ...args: any[]) => void;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* A logger that logs messages to the console.
|
|
11
|
+
*/
|
|
12
|
+
export declare const consoleLogger: Logger;
|
|
13
|
+
/**
|
|
14
|
+
* Gets the logger that is currently being used for logging messages.
|
|
15
|
+
* @returns The logger that is currently being used.
|
|
16
|
+
*/
|
|
17
|
+
export declare function getLogger(): Logger;
|
|
18
|
+
/**
|
|
19
|
+
* Sets the logger to use for logging messages.
|
|
20
|
+
* @param newLogger The new logger to use.
|
|
21
|
+
*/
|
|
22
|
+
export declare function setLogger(newLogger: Logger): void;
|
|
23
|
+
//# sourceMappingURL=log.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CommentaryParseTree } from './types';
|
|
2
|
+
export declare class TyndaleXmlParser {
|
|
3
|
+
private _domParser;
|
|
4
|
+
constructor(domParser: DOMParser);
|
|
5
|
+
parse(xml: string): CommentaryParseTree;
|
|
6
|
+
}
|
|
7
|
+
export declare function toKebabCase(camelCase: string): string;
|
|
8
|
+
//# sourceMappingURL=tyndale-xml-parser.d.ts.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VerseRef } from '../utils.js';
|
|
1
2
|
/**
|
|
2
3
|
* The parse tree that is gathered.
|
|
3
4
|
*/
|
|
@@ -150,13 +151,37 @@ export interface CommentaryParseTree {
|
|
|
150
151
|
* The books that are contained in the commentary.
|
|
151
152
|
*/
|
|
152
153
|
books: CommentaryBookNode[];
|
|
154
|
+
/**
|
|
155
|
+
* The profiles that are contained in the commentary.
|
|
156
|
+
*/
|
|
157
|
+
profiles?: CommentaryProfileNode[];
|
|
153
158
|
}
|
|
154
159
|
export interface CommentaryBookNode {
|
|
155
160
|
type: 'book';
|
|
156
161
|
book: string;
|
|
157
162
|
introduction: string | null;
|
|
163
|
+
introductionSummary?: string | null;
|
|
158
164
|
chapters: CommentaryChapterNode[];
|
|
159
165
|
}
|
|
166
|
+
export interface CommentaryProfileNode {
|
|
167
|
+
/**
|
|
168
|
+
* The ID of the profile.
|
|
169
|
+
* Used to identify the profile within a commentary.
|
|
170
|
+
*/
|
|
171
|
+
id: string;
|
|
172
|
+
/**
|
|
173
|
+
* The subject(s) of the profile.
|
|
174
|
+
*/
|
|
175
|
+
subject: string;
|
|
176
|
+
/**
|
|
177
|
+
* The Bible reference that the profile is associated with.
|
|
178
|
+
*/
|
|
179
|
+
reference: VerseRef | null;
|
|
180
|
+
/**
|
|
181
|
+
* The content of the profile.
|
|
182
|
+
*/
|
|
183
|
+
content: string[];
|
|
184
|
+
}
|
|
160
185
|
export interface CommentaryChapterNode {
|
|
161
186
|
type: 'chapter';
|
|
162
187
|
number: number;
|
package/dist/types/utils.d.ts
CHANGED
|
@@ -18,6 +18,14 @@ export interface VerseRef {
|
|
|
18
18
|
* The rest of the content of the verse.
|
|
19
19
|
*/
|
|
20
20
|
content?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The chapter that the verse reference ends at.
|
|
23
|
+
*/
|
|
24
|
+
endChapter?: number;
|
|
25
|
+
/**
|
|
26
|
+
* The verse that the verse reference ends at.
|
|
27
|
+
*/
|
|
28
|
+
endVerse?: number;
|
|
21
29
|
}
|
|
22
30
|
/**
|
|
23
31
|
* Parses the given verse reference.
|
package/package.json
CHANGED
|
@@ -1,27 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helloao/tools",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "A set of tools for managing HelloAO's Free Bible API",
|
|
5
|
+
"main": "./dist/cjs/index.cjs",
|
|
6
|
+
"module": "./dist/esm/index.js",
|
|
5
7
|
"exports": {
|
|
6
8
|
".": {
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
"import": {
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"default": "./dist/esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"require": {
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
15
|
+
"default": "./dist/cjs/index.cjs"
|
|
16
|
+
}
|
|
10
17
|
},
|
|
11
18
|
"./*.js": {
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/types/*.d.ts",
|
|
21
|
+
"default": "./dist/esm/*.js"
|
|
22
|
+
},
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./dist/types/*.d.ts",
|
|
25
|
+
"default": "./dist/cjs/*.cjs"
|
|
26
|
+
}
|
|
15
27
|
},
|
|
16
28
|
"./parser/*.js": {
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
29
|
+
"import": {
|
|
30
|
+
"types": "./dist/types/parser/*.d.ts",
|
|
31
|
+
"default": "./dist/esm/parser/*.js"
|
|
32
|
+
},
|
|
33
|
+
"require": {
|
|
34
|
+
"types": "./dist/types/parser/*.d.ts",
|
|
35
|
+
"default": "./dist/cjs/parser/*.cjs"
|
|
36
|
+
}
|
|
20
37
|
},
|
|
21
38
|
"./generation/*.js": {
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
|
|
39
|
+
"import": {
|
|
40
|
+
"types": "./dist/types/generation/*.d.ts",
|
|
41
|
+
"default": "./dist/esm/generation/*.js"
|
|
42
|
+
},
|
|
43
|
+
"require": {
|
|
44
|
+
"types": "./dist/types/generation/*.d.ts",
|
|
45
|
+
"default": "./dist/cjs/generation/*.cjs"
|
|
46
|
+
}
|
|
25
47
|
}
|
|
26
48
|
},
|
|
27
49
|
"author": "Kallyn Gowdy <kal@helloao.org>",
|