free-use-bible-api 0.2.0 → 0.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.
- package/README.md +104 -5
- package/dist/cjs/FreeUseBibleApi.cjs +306 -2
- package/dist/cjs/FreeUseBibleApi.cjs.map +2 -2
- package/dist/cjs/types.gen.cjs.map +1 -1
- package/dist/esm/FreeUseBibleApi.js +306 -2
- package/dist/esm/FreeUseBibleApi.js.map +2 -2
- package/dist/types/FreeUseBibleApi.d.ts +238 -2
- package/dist/types/types.gen.d.ts +2095 -300
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApiAvailableDatasets, ApiAvailableTranslations, ApiCommentaryBook, ApiCommentaryBookChapter, ApiDatasetBook, ApiDatasetBookChapter, ApiDatasetBooks, ApiTranslationBook, ApiTranslationBookChapter, ApiTranslationBooks, ApiTranslationComplete, ChapterVerse } from './types.gen.js';
|
|
1
|
+
import type { ApiAvailableDatasets, ApiAvailableTranslations, ApiCommentaryBook, ApiCommentaryBookChapter, ApiDatasetBook, ApiDatasetBookChapter, ApiDatasetBooks, ApiDatasetEntityBookChapter, ApiDatasetEvent, ApiDatasetEvents, ApiDatasetPeople, ApiDatasetPeopleGroup, ApiDatasetPeopleGroups, ApiDatasetPerson, ApiDatasetPlace, ApiDatasetPlaces, ApiSimpleCommentaryBookChapter, ApiSimpleTranslationBookChapter, ApiSimpleTranslationBookChapterWords, ApiSimpleTranslationComplete, ApiTranslationBook, ApiTranslationBookChapter, ApiTranslationBookChapterWords, ApiTranslationBooks, ApiTranslationComplete, ChapterVerse, ChapterWord, SimpleChapterVerse, SimpleChapterWord, SimpleTranslationCompleteChapter, TranslationCompleteChapter } from './types.gen.js';
|
|
2
2
|
/**
|
|
3
3
|
* Options for the FreeUseBibleApi class.
|
|
4
4
|
*/
|
|
@@ -37,6 +37,24 @@ export interface GetVerseTextOptions {
|
|
|
37
37
|
*/
|
|
38
38
|
omitReference?: boolean;
|
|
39
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* A word-level annotation, paired with the text of the verse that it covers.
|
|
42
|
+
*/
|
|
43
|
+
export interface AnnotatedWord extends ChapterWord {
|
|
44
|
+
/**
|
|
45
|
+
* The text that the annotation applies to.
|
|
46
|
+
*/
|
|
47
|
+
text: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A word-level annotation in a simplified chapter, paired with the text of the verse that it covers.
|
|
51
|
+
*/
|
|
52
|
+
export interface SimpleAnnotatedWord extends SimpleChapterWord {
|
|
53
|
+
/**
|
|
54
|
+
* The text that the annotation applies to.
|
|
55
|
+
*/
|
|
56
|
+
text: string;
|
|
57
|
+
}
|
|
40
58
|
/**
|
|
41
59
|
* A reference to a specific verse in a Bible translation, commentary, or dataset.
|
|
42
60
|
*/
|
|
@@ -83,6 +101,14 @@ export declare class FreeUseBibleApi {
|
|
|
83
101
|
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
84
102
|
*/
|
|
85
103
|
getCompleteTranslation(translation: string, endpoint?: string): Promise<ApiTranslationComplete>;
|
|
104
|
+
/**
|
|
105
|
+
* Gets the complete content of a specific Bible translation, using the simplified chapter format.
|
|
106
|
+
*
|
|
107
|
+
* The results of this endpoint are very large, so the response is not cached.
|
|
108
|
+
* @param translation The ID of the translation to get the complete content for.
|
|
109
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
110
|
+
*/
|
|
111
|
+
getSimpleCompleteTranslation(translation: string, endpoint?: string): Promise<ApiSimpleTranslationComplete>;
|
|
86
112
|
/**
|
|
87
113
|
* Gets the list of available Bible commentaries from the API.
|
|
88
114
|
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
@@ -111,6 +137,63 @@ export declare class FreeUseBibleApi {
|
|
|
111
137
|
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
112
138
|
*/
|
|
113
139
|
getDatasetBooks(dataset: string, endpoint?: string): Promise<ApiDatasetBooks>;
|
|
140
|
+
/**
|
|
141
|
+
* Gets the list of people for a given dataset.
|
|
142
|
+
* @param dataset The ID of the dataset to get the people for.
|
|
143
|
+
* @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
|
|
144
|
+
*/
|
|
145
|
+
getDatasetPeople(dataset: string, endpoint?: string): Promise<ApiDatasetPeople>;
|
|
146
|
+
/**
|
|
147
|
+
* Gets the information about a specific person for a given dataset.
|
|
148
|
+
* Includes the Bible references that mention the person and their relationships
|
|
149
|
+
* to other people, places, events, and people groups.
|
|
150
|
+
* @param dataset The ID of the dataset to get the person for.
|
|
151
|
+
* @param person The ID of the person to get.
|
|
152
|
+
* @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
|
|
153
|
+
*/
|
|
154
|
+
getDatasetPerson(dataset: string, person: string, endpoint?: string): Promise<ApiDatasetPerson>;
|
|
155
|
+
/**
|
|
156
|
+
* Gets the list of places for a given dataset.
|
|
157
|
+
* @param dataset The ID of the dataset to get the places for.
|
|
158
|
+
* @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
|
|
159
|
+
*/
|
|
160
|
+
getDatasetPlaces(dataset: string, endpoint?: string): Promise<ApiDatasetPlaces>;
|
|
161
|
+
/**
|
|
162
|
+
* Gets the information about a specific place for a given dataset.
|
|
163
|
+
* Includes the Bible references that mention the place and its related people and events.
|
|
164
|
+
* @param dataset The ID of the dataset to get the place for.
|
|
165
|
+
* @param place The ID of the place to get.
|
|
166
|
+
* @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
|
|
167
|
+
*/
|
|
168
|
+
getDatasetPlace(dataset: string, place: string, endpoint?: string): Promise<ApiDatasetPlace>;
|
|
169
|
+
/**
|
|
170
|
+
* Gets the list of events for a given dataset.
|
|
171
|
+
* @param dataset The ID of the dataset to get the events for.
|
|
172
|
+
* @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
|
|
173
|
+
*/
|
|
174
|
+
getDatasetEvents(dataset: string, endpoint?: string): Promise<ApiDatasetEvents>;
|
|
175
|
+
/**
|
|
176
|
+
* Gets the information about a specific event for a given dataset.
|
|
177
|
+
* Includes the Bible references that describe the event and its related people, places, and people groups.
|
|
178
|
+
* @param dataset The ID of the dataset to get the event for.
|
|
179
|
+
* @param event The ID of the event to get.
|
|
180
|
+
* @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
|
|
181
|
+
*/
|
|
182
|
+
getDatasetEvent(dataset: string, event: string, endpoint?: string): Promise<ApiDatasetEvent>;
|
|
183
|
+
/**
|
|
184
|
+
* Gets the list of people groups for a given dataset.
|
|
185
|
+
* @param dataset The ID of the dataset to get the people groups for.
|
|
186
|
+
* @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
|
|
187
|
+
*/
|
|
188
|
+
getDatasetPeopleGroups(dataset: string, endpoint?: string): Promise<ApiDatasetPeopleGroups>;
|
|
189
|
+
/**
|
|
190
|
+
* Gets the information about a specific people group for a given dataset.
|
|
191
|
+
* Includes the members of the group and the events that the group participated in.
|
|
192
|
+
* @param dataset The ID of the dataset to get the people group for.
|
|
193
|
+
* @param group The ID of the people group to get.
|
|
194
|
+
* @param endpoint The endpoint to use for the request. If not provided, then the default endpoint will be used.
|
|
195
|
+
*/
|
|
196
|
+
getDatasetPeopleGroup(dataset: string, group: string, endpoint?: string): Promise<ApiDatasetPeopleGroup>;
|
|
114
197
|
/**
|
|
115
198
|
* Gets the content of a specific chapter of a specific book for a specific Bible translation.
|
|
116
199
|
* @param translation The ID of the translation to get the chapter for.
|
|
@@ -119,6 +202,80 @@ export declare class FreeUseBibleApi {
|
|
|
119
202
|
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
120
203
|
*/
|
|
121
204
|
getTranslationBookChapter(translation: string, book: string, chapter: number | string, endpoint?: string): Promise<ApiTranslationBookChapter>;
|
|
205
|
+
/**
|
|
206
|
+
* Gets the word-level annotations (Strong's numbers and related source data) for a specific chapter of a specific book for a specific Bible translation.
|
|
207
|
+
*
|
|
208
|
+
* Only some translations have word-level annotations. This request will fail for chapters that don't have any.
|
|
209
|
+
* Use `getChapterWords()` to get the annotations for a chapter that you have already loaded, which returns null instead of failing.
|
|
210
|
+
* @param translation The ID of the translation to get the annotations for.
|
|
211
|
+
* @param book The ID of the book to get the annotations for.
|
|
212
|
+
* @param chapter The chapter number to get the annotations for.
|
|
213
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
214
|
+
*/
|
|
215
|
+
getTranslationBookChapterWords(translation: string, book: string, chapter: number | string, endpoint?: string): Promise<ApiTranslationBookChapterWords>;
|
|
216
|
+
/**
|
|
217
|
+
* Gets the word-level annotations for the given chapter, if it has any.
|
|
218
|
+
* @param chapter The chapter to get the annotations for.
|
|
219
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
220
|
+
* @returns The annotations for the chapter, or null if the chapter doesn't have any.
|
|
221
|
+
*/
|
|
222
|
+
getChapterWords(chapter: ApiTranslationBookChapter, endpoint?: string): Promise<ApiTranslationBookChapterWords | null>;
|
|
223
|
+
/**
|
|
224
|
+
* Gets the word-level annotations for the given chapter of a complete translation download, if it has any.
|
|
225
|
+
* @param chapter The chapter to get the annotations for.
|
|
226
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
227
|
+
* @returns The annotations for the chapter, or null if the chapter doesn't have any.
|
|
228
|
+
*/
|
|
229
|
+
getChapterWords(chapter: TranslationCompleteChapter, endpoint?: string): Promise<ApiTranslationBookChapterWords | null>;
|
|
230
|
+
/**
|
|
231
|
+
* Gets the content of a specific chapter of a specific book for a specific Bible translation, using the simplified chapter format.
|
|
232
|
+
*
|
|
233
|
+
* In the simplified format, each verse's content is a single string instead of a list of formatted content, and footnotes, inline headings, the Words of Jesus, and poetry are represented as offset ranges into that string.
|
|
234
|
+
* @param translation The ID of the translation to get the chapter for.
|
|
235
|
+
* @param book The ID of the book to get the chapter for.
|
|
236
|
+
* @param chapter The chapter number to get.
|
|
237
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
238
|
+
*/
|
|
239
|
+
getSimpleTranslationBookChapter(translation: string, book: string, chapter: number | string, endpoint?: string): Promise<ApiSimpleTranslationBookChapter>;
|
|
240
|
+
/**
|
|
241
|
+
* Gets the word-level annotations (Strong's numbers and related source data) for a specific chapter of a specific book for a specific Bible translation, with their offsets remapped onto the text of each simplified verse.
|
|
242
|
+
*
|
|
243
|
+
* Use this instead of `getTranslationBookChapterWords()` when working with the simplified chapter format, since the offsets in the regular annotations are anchored to a verse's content array instead of its plain text.
|
|
244
|
+
* Use `getSimpleChapterWords()` to get the annotations for a simplified chapter that you have already loaded, which returns null instead of failing.
|
|
245
|
+
* @param translation The ID of the translation to get the annotations for.
|
|
246
|
+
* @param book The ID of the book to get the annotations for.
|
|
247
|
+
* @param chapter The chapter number to get the annotations for.
|
|
248
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
249
|
+
*/
|
|
250
|
+
getSimpleTranslationBookChapterWords(translation: string, book: string, chapter: number | string, endpoint?: string): Promise<ApiSimpleTranslationBookChapterWords>;
|
|
251
|
+
/**
|
|
252
|
+
* Gets the simplified version of a given chapter, if available.
|
|
253
|
+
* @param chapter The chapter to get the simplified version of.
|
|
254
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
255
|
+
* @returns The simplified chapter, or null if simplified chapters aren't available for it.
|
|
256
|
+
*/
|
|
257
|
+
getSimpleChapter(chapter: ApiCommentaryBookChapter, endpoint?: string): Promise<ApiSimpleCommentaryBookChapter | null>;
|
|
258
|
+
/**
|
|
259
|
+
* Gets the simplified version of a given chapter, if available.
|
|
260
|
+
* @param chapter The chapter to get the simplified version of.
|
|
261
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
262
|
+
* @returns The simplified chapter, or null if simplified chapters aren't available for it.
|
|
263
|
+
*/
|
|
264
|
+
getSimpleChapter(chapter: ApiTranslationBookChapter, endpoint?: string): Promise<ApiSimpleTranslationBookChapter | null>;
|
|
265
|
+
/**
|
|
266
|
+
* Gets the word-level annotations for the given simplified chapter, if it has any.
|
|
267
|
+
* @param chapter The simplified chapter to get the annotations for.
|
|
268
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
269
|
+
* @returns The annotations for the chapter, or null if the chapter doesn't have any.
|
|
270
|
+
*/
|
|
271
|
+
getSimpleChapterWords(chapter: ApiSimpleTranslationBookChapter, endpoint?: string): Promise<ApiSimpleTranslationBookChapterWords | null>;
|
|
272
|
+
/**
|
|
273
|
+
* Gets the word-level annotations for the given chapter of a simplified complete translation download, if it has any.
|
|
274
|
+
* @param chapter The chapter to get the annotations for.
|
|
275
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
276
|
+
* @returns The annotations for the chapter, or null if the chapter doesn't have any.
|
|
277
|
+
*/
|
|
278
|
+
getSimpleChapterWords(chapter: SimpleTranslationCompleteChapter, endpoint?: string): Promise<ApiSimpleTranslationBookChapterWords | null>;
|
|
122
279
|
/**
|
|
123
280
|
* Gets the content of a specific chapter of a specific book for a specific Bible commentary.
|
|
124
281
|
* @param commentary The ID of the commentary to get the chapter for.
|
|
@@ -127,14 +284,26 @@ export declare class FreeUseBibleApi {
|
|
|
127
284
|
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
128
285
|
*/
|
|
129
286
|
getCommentaryBookChapter(commentary: string, book: string, chapter: number | string, endpoint?: string): Promise<ApiTranslationBookChapter>;
|
|
287
|
+
/**
|
|
288
|
+
* Gets the content of a specific chapter of a specific book for a specific Bible commentary, using the simplified chapter format.
|
|
289
|
+
* @param commentary The ID of the commentary to get the chapter for.
|
|
290
|
+
* @param book The ID of the book to get the chapter for.
|
|
291
|
+
* @param chapter The chapter number to get.
|
|
292
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
293
|
+
*/
|
|
294
|
+
getSimpleCommentaryBookChapter(commentary: string, book: string, chapter: number | string, endpoint?: string): Promise<ApiSimpleCommentaryBookChapter>;
|
|
130
295
|
/**
|
|
131
296
|
* Gets the content of a specific chapter of a specific book for a specific dataset.
|
|
297
|
+
*
|
|
298
|
+
* For cross reference datasets, this is the list of cross references for each verse
|
|
299
|
+
* in the chapter. For entity datasets (such as "theographic"), this is the people,
|
|
300
|
+
* places, and events that appear in the chapter.
|
|
132
301
|
* @param dataset The ID of the dataset to get the chapter for.
|
|
133
302
|
* @param book The ID of the book to get the chapter for.
|
|
134
303
|
* @param chapter The chapter number to get.
|
|
135
304
|
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
136
305
|
*/
|
|
137
|
-
getDatasetBookChapter(dataset: string, book: string, chapter: number | string, endpoint?: string): Promise<ApiDatasetBookChapter>;
|
|
306
|
+
getDatasetBookChapter(dataset: string, book: string, chapter: number | string, endpoint?: string): Promise<ApiDatasetBookChapter | ApiDatasetEntityBookChapter>;
|
|
138
307
|
/**
|
|
139
308
|
* Gets the next chapter for a given chapter, if available.
|
|
140
309
|
* @param chapter The chapter to get the next chapter for.
|
|
@@ -156,6 +325,20 @@ export declare class FreeUseBibleApi {
|
|
|
156
325
|
* @returns The next chapter, or null if there is no next chapter.
|
|
157
326
|
*/
|
|
158
327
|
getNextChapter(chapter: ApiDatasetBookChapter, endpoint?: string): Promise<ApiDatasetBookChapter | null>;
|
|
328
|
+
/**
|
|
329
|
+
* Gets the next chapter for a given chapter, if available.
|
|
330
|
+
* @param chapter The chapter to get the next chapter for.
|
|
331
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
332
|
+
* @returns The next chapter, or null if there is no next chapter.
|
|
333
|
+
*/
|
|
334
|
+
getNextChapter(chapter: ApiSimpleCommentaryBookChapter, endpoint?: string): Promise<ApiSimpleCommentaryBookChapter | null>;
|
|
335
|
+
/**
|
|
336
|
+
* Gets the next chapter for a given chapter, if available.
|
|
337
|
+
* @param chapter The chapter to get the next chapter for.
|
|
338
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
339
|
+
* @returns The next chapter, or null if there is no next chapter.
|
|
340
|
+
*/
|
|
341
|
+
getNextChapter(chapter: ApiSimpleTranslationBookChapter, endpoint?: string): Promise<ApiSimpleTranslationBookChapter | null>;
|
|
159
342
|
/**
|
|
160
343
|
* Gets the previous chapter for a given chapter, if available.
|
|
161
344
|
* @param chapter The chapter to get the previous chapter for.
|
|
@@ -177,6 +360,20 @@ export declare class FreeUseBibleApi {
|
|
|
177
360
|
* @returns The previous chapter, or null if there is no previous chapter.
|
|
178
361
|
*/
|
|
179
362
|
getPreviousChapter(chapter: ApiDatasetBookChapter, endpoint?: string): Promise<ApiDatasetBookChapter | null>;
|
|
363
|
+
/**
|
|
364
|
+
* Gets the previous chapter for a given chapter, if available.
|
|
365
|
+
* @param chapter The chapter to get the previous chapter for.
|
|
366
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
367
|
+
* @returns The previous chapter, or null if there is no previous chapter.
|
|
368
|
+
*/
|
|
369
|
+
getPreviousChapter(chapter: ApiSimpleCommentaryBookChapter, endpoint?: string): Promise<ApiSimpleCommentaryBookChapter | null>;
|
|
370
|
+
/**
|
|
371
|
+
* Gets the previous chapter for a given chapter, if available.
|
|
372
|
+
* @param chapter The chapter to get the previous chapter for.
|
|
373
|
+
* @param endpoint The API endpoint to use for the request. If not provided, the default endpoint will be used.
|
|
374
|
+
* @returns The previous chapter, or null if there is no previous chapter.
|
|
375
|
+
*/
|
|
376
|
+
getPreviousChapter(chapter: ApiSimpleTranslationBookChapter, endpoint?: string): Promise<ApiSimpleTranslationBookChapter | null>;
|
|
180
377
|
/**
|
|
181
378
|
* Gets the first chapter for a given book, if available.
|
|
182
379
|
* @param book The book to get the first chapter for.
|
|
@@ -241,6 +438,45 @@ export declare class FreeUseBibleApi {
|
|
|
241
438
|
* @param options Options for getting the chapter text.
|
|
242
439
|
*/
|
|
243
440
|
getChapterVerseText(chapter: ApiTranslationBookChapter, options?: GetChapterTextOptions): string;
|
|
441
|
+
/**
|
|
442
|
+
* Gets the verse text for the given simplified chapter.
|
|
443
|
+
* By default, the returned text includes markers for verse numbers and a reference to the chapter, but these can be omitted by passing options to the `options` parameter.
|
|
444
|
+
* @param chapter The simplified chapter to get the text for.
|
|
445
|
+
* @param options Options for getting the chapter text.
|
|
446
|
+
*/
|
|
447
|
+
getSimpleChapterVerseText(chapter: ApiSimpleTranslationBookChapter, options?: GetChapterTextOptions): string;
|
|
448
|
+
/**
|
|
449
|
+
* Gets the text that the given word-level annotation applies to.
|
|
450
|
+
*
|
|
451
|
+
* Annotations are anchored to a range of characters in a single item of the verse's content,
|
|
452
|
+
* so that the ranges stay correct for verses whose content is split into multiple items,
|
|
453
|
+
* such as poem lines and the words of Jesus.
|
|
454
|
+
* @param verse The verse that the annotation is in.
|
|
455
|
+
* @param word The annotation to get the text for.
|
|
456
|
+
* @returns The annotated text, or an empty string if the annotation doesn't point at any text.
|
|
457
|
+
*/
|
|
458
|
+
getWordText(verse: ChapterVerse, word: ChapterWord): string;
|
|
459
|
+
/**
|
|
460
|
+
* Gets the word-level annotations for the given verse, paired with the text that each one applies to.
|
|
461
|
+
* @param verse The verse to get the annotations for.
|
|
462
|
+
* @param words The annotations for the chapter that the verse is in.
|
|
463
|
+
* @returns The annotations for the verse, in the order that they occur. Empty if the verse has no annotations.
|
|
464
|
+
*/
|
|
465
|
+
getVerseWords(verse: ChapterVerse, words: ApiTranslationBookChapterWords): AnnotatedWord[];
|
|
466
|
+
/**
|
|
467
|
+
* Gets the text that the given simplified word-level annotation applies to.
|
|
468
|
+
* @param verse The simplified verse that the annotation is in.
|
|
469
|
+
* @param word The annotation to get the text for.
|
|
470
|
+
* @returns The annotated text.
|
|
471
|
+
*/
|
|
472
|
+
getSimpleWordText(verse: SimpleChapterVerse, word: SimpleChapterWord): string;
|
|
473
|
+
/**
|
|
474
|
+
* Gets the word-level annotations for the given simplified verse, paired with the text that each one applies to.
|
|
475
|
+
* @param verse The simplified verse to get the annotations for.
|
|
476
|
+
* @param words The simplified annotations for the chapter that the verse is in.
|
|
477
|
+
* @returns The annotations for the verse, in the order that they occur. Empty if the verse has no annotations.
|
|
478
|
+
*/
|
|
479
|
+
getSimpleVerseWords(verse: SimpleChapterVerse, words: ApiSimpleTranslationBookChapterWords): SimpleAnnotatedWord[];
|
|
244
480
|
private _getJson;
|
|
245
481
|
private _buildUrl;
|
|
246
482
|
}
|