@youversion/platform-core 0.8.2 → 0.9.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/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs +116 -169
- package/dist/index.d.cts +19 -25
- package/dist/index.d.ts +19 -25
- package/dist/index.js +116 -168
- package/package.json +1 -1
- package/src/SignInWithYouVersionPKCE.ts +7 -7
- package/src/SignInWithYouVersionResult.ts +0 -6
- package/src/Users.ts +5 -29
- package/src/__tests__/MockBibles.ts +67 -67
- package/src/__tests__/SignInWithYouVersionPKCE.test.ts +8 -77
- package/src/__tests__/SignInWithYouVersionResult.test.ts +0 -2
- package/src/__tests__/Users.test.ts +4 -38
- package/src/__tests__/bible.test.ts +2 -2
- package/src/bible.ts +1 -1
- package/src/index.ts +0 -1
- package/src/schemas/book.ts +1 -5
- package/src/types/auth.ts +2 -0
- package/src/types/index.ts +5 -1
- package/src/utils/constants.ts +103 -103
- package/src/URLBuilder.ts +0 -50
- package/src/__tests__/URLBuilder.test.ts +0 -190
package/src/Users.ts
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AuthenticationScopes } from './types';
|
|
2
2
|
import { YouVersionUserInfo } from './YouVersionUserInfo';
|
|
3
3
|
import { YouVersionPlatformConfiguration } from './YouVersionPlatformConfiguration';
|
|
4
4
|
import { SignInWithYouVersionPKCEAuthorizationRequestBuilder } from './SignInWithYouVersionPKCE';
|
|
5
5
|
import { SignInWithYouVersionResult } from './SignInWithYouVersionResult';
|
|
6
|
-
import { SignInWithYouVersionPermission } from './SignInWithYouVersionResult';
|
|
7
6
|
|
|
8
7
|
export class YouVersionAPIUsers {
|
|
9
8
|
/**
|
|
10
9
|
* Presents the YouVersion login flow to the user and returns the login result upon completion.
|
|
11
10
|
*
|
|
12
|
-
* This function authenticates the user with YouVersion
|
|
11
|
+
* This function authenticates the user with YouVersion.
|
|
13
12
|
* The function redirects to the YouVersion authorization URL and expects the callback to be handled separately.
|
|
14
13
|
*
|
|
15
|
-
* @param
|
|
14
|
+
* @param scopes - The scopes given to the authentication call.
|
|
16
15
|
* @param redirectURL - The URL to redirect back to after authentication.
|
|
17
16
|
* @throws An error if authentication fails or configuration is invalid.
|
|
18
17
|
*/
|
|
19
|
-
static async signIn(
|
|
20
|
-
permissions: Set<SignInWithYouVersionPermissionValues>,
|
|
21
|
-
redirectURL: string,
|
|
22
|
-
): Promise<void> {
|
|
18
|
+
static async signIn(redirectURL: string, scopes?: AuthenticationScopes[]): Promise<void> {
|
|
23
19
|
const appKey = YouVersionPlatformConfiguration.appKey;
|
|
24
20
|
if (!appKey) {
|
|
25
21
|
throw new Error('YouVersionPlatformConfiguration.appKey must be set before calling signIn');
|
|
@@ -27,8 +23,8 @@ export class YouVersionAPIUsers {
|
|
|
27
23
|
|
|
28
24
|
const authorizationRequest = await SignInWithYouVersionPKCEAuthorizationRequestBuilder.make(
|
|
29
25
|
appKey,
|
|
30
|
-
permissions,
|
|
31
26
|
new URL(redirectURL),
|
|
27
|
+
scopes,
|
|
32
28
|
);
|
|
33
29
|
|
|
34
30
|
// Store auth data for callback handler
|
|
@@ -184,22 +180,11 @@ export class YouVersionAPIUsers {
|
|
|
184
180
|
}): SignInWithYouVersionResult {
|
|
185
181
|
const idClaims = this.decodeJWT(tokens.id_token);
|
|
186
182
|
|
|
187
|
-
const permissions = tokens.scope
|
|
188
|
-
.split(' ')
|
|
189
|
-
.map((p) => p.trim())
|
|
190
|
-
.filter((p) => p.length > 0)
|
|
191
|
-
.filter((p): p is SignInWithYouVersionPermissionValues =>
|
|
192
|
-
Object.values(SignInWithYouVersionPermission).includes(
|
|
193
|
-
p as SignInWithYouVersionPermissionValues,
|
|
194
|
-
),
|
|
195
|
-
);
|
|
196
|
-
|
|
197
183
|
const resultData = {
|
|
198
184
|
accessToken: tokens.access_token,
|
|
199
185
|
expiresIn: tokens.expires_in,
|
|
200
186
|
refreshToken: tokens.refresh_token,
|
|
201
187
|
idToken: tokens.id_token,
|
|
202
|
-
permissions,
|
|
203
188
|
yvpUserId: idClaims.sub as string,
|
|
204
189
|
name: idClaims.name as string,
|
|
205
190
|
profilePicture: idClaims.profile_picture as string,
|
|
@@ -353,15 +338,6 @@ export class YouVersionAPIUsers {
|
|
|
353
338
|
expiresIn: tokens.expires_in,
|
|
354
339
|
refreshToken: tokens.refresh_token,
|
|
355
340
|
idToken: existingIdToken,
|
|
356
|
-
permissions: tokens.scope
|
|
357
|
-
.split(' ')
|
|
358
|
-
.map((p) => p.trim())
|
|
359
|
-
.filter((p) => p.length > 0)
|
|
360
|
-
.filter((p): p is SignInWithYouVersionPermissionValues =>
|
|
361
|
-
Object.values(SignInWithYouVersionPermission).includes(
|
|
362
|
-
p as SignInWithYouVersionPermissionValues,
|
|
363
|
-
),
|
|
364
|
-
),
|
|
365
341
|
});
|
|
366
342
|
|
|
367
343
|
// Store updated tokens
|
|
@@ -5,7 +5,7 @@ export const mockBibleGenesis = {
|
|
|
5
5
|
title: 'Genesis',
|
|
6
6
|
full_title: 'The First Book of Moses, Called Genesis',
|
|
7
7
|
abbreviation: 'Gen',
|
|
8
|
-
canon: '
|
|
8
|
+
canon: 'old_testament',
|
|
9
9
|
chapters: mockGenesisChapters,
|
|
10
10
|
};
|
|
11
11
|
export const mockBibleBooks = [
|
|
@@ -14,7 +14,7 @@ export const mockBibleBooks = [
|
|
|
14
14
|
title: 'Genesis',
|
|
15
15
|
full_title: 'The First Book of Moses, Called Genesis',
|
|
16
16
|
abbreviation: 'Gen',
|
|
17
|
-
canon: '
|
|
17
|
+
canon: 'old_testament',
|
|
18
18
|
chapters: Array.from({ length: 50 }, (_, i) => {
|
|
19
19
|
const chapterNumber = i + 1;
|
|
20
20
|
return {
|
|
@@ -37,7 +37,7 @@ export const mockBibleBooks = [
|
|
|
37
37
|
title: 'Exodus',
|
|
38
38
|
full_title: 'The Second Book of Moses, Commonly Called Exodus',
|
|
39
39
|
abbreviation: 'Exod',
|
|
40
|
-
canon: '
|
|
40
|
+
canon: 'old_testament',
|
|
41
41
|
chapters: Array.from({ length: 40 }, (_, i) => {
|
|
42
42
|
const chapterNumber = i + 1;
|
|
43
43
|
return {
|
|
@@ -60,7 +60,7 @@ export const mockBibleBooks = [
|
|
|
60
60
|
title: 'Leviticus',
|
|
61
61
|
full_title: 'The Third Book of Moses, Commonly Called Leviticus',
|
|
62
62
|
abbreviation: 'Lev',
|
|
63
|
-
canon: '
|
|
63
|
+
canon: 'old_testament',
|
|
64
64
|
chapters: Array.from({ length: 27 }, (_, i) => {
|
|
65
65
|
const chapterNumber = i + 1;
|
|
66
66
|
return {
|
|
@@ -83,7 +83,7 @@ export const mockBibleBooks = [
|
|
|
83
83
|
title: 'Numbers',
|
|
84
84
|
full_title: 'The Fourth Book of Moses, Commonly Called Numbers',
|
|
85
85
|
abbreviation: 'Num',
|
|
86
|
-
canon: '
|
|
86
|
+
canon: 'old_testament',
|
|
87
87
|
chapters: Array.from({ length: 36 }, (_, i) => {
|
|
88
88
|
const chapterNumber = i + 1;
|
|
89
89
|
return {
|
|
@@ -106,7 +106,7 @@ export const mockBibleBooks = [
|
|
|
106
106
|
title: 'Deuteronomy',
|
|
107
107
|
full_title: 'The Fifth Book of Moses, Commonly Called Deuteronomy',
|
|
108
108
|
abbreviation: 'Deut',
|
|
109
|
-
canon: '
|
|
109
|
+
canon: 'old_testament',
|
|
110
110
|
chapters: Array.from({ length: 34 }, (_, i) => {
|
|
111
111
|
const chapterNumber = i + 1;
|
|
112
112
|
return {
|
|
@@ -129,7 +129,7 @@ export const mockBibleBooks = [
|
|
|
129
129
|
title: 'Joshua',
|
|
130
130
|
full_title: 'The Book of Joshua',
|
|
131
131
|
abbreviation: 'Josh',
|
|
132
|
-
canon: '
|
|
132
|
+
canon: 'old_testament',
|
|
133
133
|
chapters: Array.from({ length: 24 }, (_, i) => {
|
|
134
134
|
const chapterNumber = i + 1;
|
|
135
135
|
return {
|
|
@@ -152,7 +152,7 @@ export const mockBibleBooks = [
|
|
|
152
152
|
title: 'Judges',
|
|
153
153
|
full_title: 'The Book of Judges',
|
|
154
154
|
abbreviation: 'Judg',
|
|
155
|
-
canon: '
|
|
155
|
+
canon: 'old_testament',
|
|
156
156
|
chapters: Array.from({ length: 21 }, (_, i) => {
|
|
157
157
|
const chapterNumber = i + 1;
|
|
158
158
|
return {
|
|
@@ -175,7 +175,7 @@ export const mockBibleBooks = [
|
|
|
175
175
|
title: 'Ruth',
|
|
176
176
|
full_title: 'The Book of Ruth',
|
|
177
177
|
abbreviation: 'Ruth',
|
|
178
|
-
canon: '
|
|
178
|
+
canon: 'old_testament',
|
|
179
179
|
chapters: Array.from({ length: 4 }, (_, i) => {
|
|
180
180
|
const chapterNumber = i + 1;
|
|
181
181
|
return {
|
|
@@ -198,7 +198,7 @@ export const mockBibleBooks = [
|
|
|
198
198
|
title: '1 Samuel',
|
|
199
199
|
full_title: 'The First Book of Samuel',
|
|
200
200
|
abbreviation: '1 Sam',
|
|
201
|
-
canon: '
|
|
201
|
+
canon: 'old_testament',
|
|
202
202
|
chapters: Array.from({ length: 31 }, (_, i) => {
|
|
203
203
|
const chapterNumber = i + 1;
|
|
204
204
|
return {
|
|
@@ -221,7 +221,7 @@ export const mockBibleBooks = [
|
|
|
221
221
|
title: '2 Samuel',
|
|
222
222
|
full_title: 'The Second Book of Samuel',
|
|
223
223
|
abbreviation: '2 Sam',
|
|
224
|
-
canon: '
|
|
224
|
+
canon: 'old_testament',
|
|
225
225
|
chapters: Array.from({ length: 24 }, (_, i) => {
|
|
226
226
|
const chapterNumber = i + 1;
|
|
227
227
|
return {
|
|
@@ -244,7 +244,7 @@ export const mockBibleBooks = [
|
|
|
244
244
|
title: '1 Kings',
|
|
245
245
|
full_title: 'The First Book of Kings',
|
|
246
246
|
abbreviation: '1 Kgs',
|
|
247
|
-
canon: '
|
|
247
|
+
canon: 'old_testament',
|
|
248
248
|
chapters: Array.from({ length: 22 }, (_, i) => {
|
|
249
249
|
const chapterNumber = i + 1;
|
|
250
250
|
return {
|
|
@@ -267,7 +267,7 @@ export const mockBibleBooks = [
|
|
|
267
267
|
title: '2 Kings',
|
|
268
268
|
full_title: 'The Second Book of Kings',
|
|
269
269
|
abbreviation: '2 Kgs',
|
|
270
|
-
canon: '
|
|
270
|
+
canon: 'old_testament',
|
|
271
271
|
chapters: Array.from({ length: 25 }, (_, i) => {
|
|
272
272
|
const chapterNumber = i + 1;
|
|
273
273
|
return {
|
|
@@ -290,7 +290,7 @@ export const mockBibleBooks = [
|
|
|
290
290
|
title: '1 Chronicles',
|
|
291
291
|
full_title: 'The First Book of Chronicles',
|
|
292
292
|
abbreviation: '1 Chr',
|
|
293
|
-
canon: '
|
|
293
|
+
canon: 'old_testament',
|
|
294
294
|
chapters: Array.from({ length: 29 }, (_, i) => {
|
|
295
295
|
const chapterNumber = i + 1;
|
|
296
296
|
return {
|
|
@@ -313,7 +313,7 @@ export const mockBibleBooks = [
|
|
|
313
313
|
title: '2 Chronicles',
|
|
314
314
|
full_title: 'The Second Book of Chronicles',
|
|
315
315
|
abbreviation: '2 Chr',
|
|
316
|
-
canon: '
|
|
316
|
+
canon: 'old_testament',
|
|
317
317
|
chapters: Array.from({ length: 36 }, (_, i) => {
|
|
318
318
|
const chapterNumber = i + 1;
|
|
319
319
|
return {
|
|
@@ -336,7 +336,7 @@ export const mockBibleBooks = [
|
|
|
336
336
|
title: 'Ezra',
|
|
337
337
|
full_title: 'The Book of Ezra',
|
|
338
338
|
abbreviation: 'Ezra',
|
|
339
|
-
canon: '
|
|
339
|
+
canon: 'old_testament',
|
|
340
340
|
chapters: Array.from({ length: 10 }, (_, i) => {
|
|
341
341
|
const chapterNumber = i + 1;
|
|
342
342
|
return {
|
|
@@ -359,7 +359,7 @@ export const mockBibleBooks = [
|
|
|
359
359
|
title: 'Nehemiah',
|
|
360
360
|
full_title: 'The Book of Nehemiah',
|
|
361
361
|
abbreviation: 'Neh',
|
|
362
|
-
canon: '
|
|
362
|
+
canon: 'old_testament',
|
|
363
363
|
chapters: Array.from({ length: 13 }, (_, i) => {
|
|
364
364
|
const chapterNumber = i + 1;
|
|
365
365
|
return {
|
|
@@ -382,7 +382,7 @@ export const mockBibleBooks = [
|
|
|
382
382
|
title: 'Esther',
|
|
383
383
|
full_title: 'The Book of Esther',
|
|
384
384
|
abbreviation: 'Esth',
|
|
385
|
-
canon: '
|
|
385
|
+
canon: 'old_testament',
|
|
386
386
|
chapters: Array.from({ length: 10 }, (_, i) => {
|
|
387
387
|
const chapterNumber = i + 1;
|
|
388
388
|
return {
|
|
@@ -405,7 +405,7 @@ export const mockBibleBooks = [
|
|
|
405
405
|
title: 'Job',
|
|
406
406
|
full_title: 'The Book of Job',
|
|
407
407
|
abbreviation: 'Job',
|
|
408
|
-
canon: '
|
|
408
|
+
canon: 'old_testament',
|
|
409
409
|
chapters: Array.from({ length: 42 }, (_, i) => {
|
|
410
410
|
const chapterNumber = i + 1;
|
|
411
411
|
return {
|
|
@@ -428,7 +428,7 @@ export const mockBibleBooks = [
|
|
|
428
428
|
title: 'Psalms',
|
|
429
429
|
full_title: 'The Book of Psalms',
|
|
430
430
|
abbreviation: 'Ps',
|
|
431
|
-
canon: '
|
|
431
|
+
canon: 'old_testament',
|
|
432
432
|
chapters: Array.from({ length: 150 }, (_, i) => {
|
|
433
433
|
const chapterNumber = i + 1;
|
|
434
434
|
return {
|
|
@@ -451,7 +451,7 @@ export const mockBibleBooks = [
|
|
|
451
451
|
title: 'Proverbs',
|
|
452
452
|
full_title: 'The Book of Proverbs',
|
|
453
453
|
abbreviation: 'Prov',
|
|
454
|
-
canon: '
|
|
454
|
+
canon: 'old_testament',
|
|
455
455
|
chapters: Array.from({ length: 31 }, (_, i) => {
|
|
456
456
|
const chapterNumber = i + 1;
|
|
457
457
|
return {
|
|
@@ -474,7 +474,7 @@ export const mockBibleBooks = [
|
|
|
474
474
|
title: 'Ecclesiastes',
|
|
475
475
|
full_title: 'The Book of Ecclesiastes',
|
|
476
476
|
abbreviation: 'Eccl',
|
|
477
|
-
canon: '
|
|
477
|
+
canon: 'old_testament',
|
|
478
478
|
chapters: Array.from({ length: 12 }, (_, i) => {
|
|
479
479
|
const chapterNumber = i + 1;
|
|
480
480
|
return {
|
|
@@ -497,7 +497,7 @@ export const mockBibleBooks = [
|
|
|
497
497
|
title: 'Song of Solomon',
|
|
498
498
|
full_title: 'The Song of Solomon',
|
|
499
499
|
abbreviation: 'Song',
|
|
500
|
-
canon: '
|
|
500
|
+
canon: 'old_testament',
|
|
501
501
|
chapters: Array.from({ length: 8 }, (_, i) => {
|
|
502
502
|
const chapterNumber = i + 1;
|
|
503
503
|
return {
|
|
@@ -520,7 +520,7 @@ export const mockBibleBooks = [
|
|
|
520
520
|
title: 'Isaiah',
|
|
521
521
|
full_title: 'The Book of Isaiah',
|
|
522
522
|
abbreviation: 'Isa',
|
|
523
|
-
canon: '
|
|
523
|
+
canon: 'old_testament',
|
|
524
524
|
chapters: Array.from({ length: 66 }, (_, i) => {
|
|
525
525
|
const chapterNumber = i + 1;
|
|
526
526
|
return {
|
|
@@ -543,7 +543,7 @@ export const mockBibleBooks = [
|
|
|
543
543
|
title: 'Jeremiah',
|
|
544
544
|
full_title: 'The Book of Jeremiah',
|
|
545
545
|
abbreviation: 'Jer',
|
|
546
|
-
canon: '
|
|
546
|
+
canon: 'old_testament',
|
|
547
547
|
chapters: Array.from({ length: 52 }, (_, i) => {
|
|
548
548
|
const chapterNumber = i + 1;
|
|
549
549
|
return {
|
|
@@ -566,7 +566,7 @@ export const mockBibleBooks = [
|
|
|
566
566
|
title: 'Lamentations',
|
|
567
567
|
full_title: 'The Book of Lamentations',
|
|
568
568
|
abbreviation: 'Lam',
|
|
569
|
-
canon: '
|
|
569
|
+
canon: 'old_testament',
|
|
570
570
|
chapters: Array.from({ length: 5 }, (_, i) => {
|
|
571
571
|
const chapterNumber = i + 1;
|
|
572
572
|
return {
|
|
@@ -589,7 +589,7 @@ export const mockBibleBooks = [
|
|
|
589
589
|
title: 'Ezekiel',
|
|
590
590
|
full_title: 'The Book of Ezekiel',
|
|
591
591
|
abbreviation: 'Ezek',
|
|
592
|
-
canon: '
|
|
592
|
+
canon: 'old_testament',
|
|
593
593
|
chapters: Array.from({ length: 48 }, (_, i) => {
|
|
594
594
|
const chapterNumber = i + 1;
|
|
595
595
|
return {
|
|
@@ -612,7 +612,7 @@ export const mockBibleBooks = [
|
|
|
612
612
|
title: 'Daniel',
|
|
613
613
|
full_title: 'The Book of Daniel',
|
|
614
614
|
abbreviation: 'Dan',
|
|
615
|
-
canon: '
|
|
615
|
+
canon: 'old_testament',
|
|
616
616
|
chapters: Array.from({ length: 12 }, (_, i) => {
|
|
617
617
|
const chapterNumber = i + 1;
|
|
618
618
|
return {
|
|
@@ -635,7 +635,7 @@ export const mockBibleBooks = [
|
|
|
635
635
|
title: 'Hosea',
|
|
636
636
|
full_title: 'The Book of Hosea',
|
|
637
637
|
abbreviation: 'Hos',
|
|
638
|
-
canon: '
|
|
638
|
+
canon: 'old_testament',
|
|
639
639
|
chapters: Array.from({ length: 14 }, (_, i) => {
|
|
640
640
|
const chapterNumber = i + 1;
|
|
641
641
|
return {
|
|
@@ -658,7 +658,7 @@ export const mockBibleBooks = [
|
|
|
658
658
|
title: 'Joel',
|
|
659
659
|
full_title: 'The Book of Joel',
|
|
660
660
|
abbreviation: 'Joel',
|
|
661
|
-
canon: '
|
|
661
|
+
canon: 'old_testament',
|
|
662
662
|
chapters: Array.from({ length: 3 }, (_, i) => {
|
|
663
663
|
const chapterNumber = i + 1;
|
|
664
664
|
return {
|
|
@@ -681,7 +681,7 @@ export const mockBibleBooks = [
|
|
|
681
681
|
title: 'Amos',
|
|
682
682
|
full_title: 'The Book of Amos',
|
|
683
683
|
abbreviation: 'Amos',
|
|
684
|
-
canon: '
|
|
684
|
+
canon: 'old_testament',
|
|
685
685
|
chapters: Array.from({ length: 9 }, (_, i) => {
|
|
686
686
|
const chapterNumber = i + 1;
|
|
687
687
|
return {
|
|
@@ -704,7 +704,7 @@ export const mockBibleBooks = [
|
|
|
704
704
|
title: 'Obadiah',
|
|
705
705
|
full_title: 'The Book of Obadiah',
|
|
706
706
|
abbreviation: 'Obad',
|
|
707
|
-
canon: '
|
|
707
|
+
canon: 'old_testament',
|
|
708
708
|
chapters: Array.from({ length: 1 }, (_, i) => {
|
|
709
709
|
const chapterNumber = i + 1;
|
|
710
710
|
return {
|
|
@@ -727,7 +727,7 @@ export const mockBibleBooks = [
|
|
|
727
727
|
title: 'Jonah',
|
|
728
728
|
full_title: 'The Book of Jonah',
|
|
729
729
|
abbreviation: 'Jonah',
|
|
730
|
-
canon: '
|
|
730
|
+
canon: 'old_testament',
|
|
731
731
|
chapters: Array.from({ length: 4 }, (_, i) => {
|
|
732
732
|
const chapterNumber = i + 1;
|
|
733
733
|
return {
|
|
@@ -750,7 +750,7 @@ export const mockBibleBooks = [
|
|
|
750
750
|
title: 'Micah',
|
|
751
751
|
full_title: 'The Book of Micah',
|
|
752
752
|
abbreviation: 'Mic',
|
|
753
|
-
canon: '
|
|
753
|
+
canon: 'old_testament',
|
|
754
754
|
chapters: Array.from({ length: 7 }, (_, i) => {
|
|
755
755
|
const chapterNumber = i + 1;
|
|
756
756
|
return {
|
|
@@ -773,7 +773,7 @@ export const mockBibleBooks = [
|
|
|
773
773
|
title: 'Nahum',
|
|
774
774
|
full_title: 'The Book of Nahum',
|
|
775
775
|
abbreviation: 'Nah',
|
|
776
|
-
canon: '
|
|
776
|
+
canon: 'old_testament',
|
|
777
777
|
chapters: Array.from({ length: 3 }, (_, i) => {
|
|
778
778
|
const chapterNumber = i + 1;
|
|
779
779
|
return {
|
|
@@ -796,7 +796,7 @@ export const mockBibleBooks = [
|
|
|
796
796
|
title: 'Habakkuk',
|
|
797
797
|
full_title: 'The Book of Habakkuk',
|
|
798
798
|
abbreviation: 'Hab',
|
|
799
|
-
canon: '
|
|
799
|
+
canon: 'old_testament',
|
|
800
800
|
chapters: Array.from({ length: 3 }, (_, i) => {
|
|
801
801
|
const chapterNumber = i + 1;
|
|
802
802
|
return {
|
|
@@ -819,7 +819,7 @@ export const mockBibleBooks = [
|
|
|
819
819
|
title: 'Zephaniah',
|
|
820
820
|
full_title: 'The Book of Zephaniah',
|
|
821
821
|
abbreviation: 'Zeph',
|
|
822
|
-
canon: '
|
|
822
|
+
canon: 'old_testament',
|
|
823
823
|
chapters: Array.from({ length: 3 }, (_, i) => {
|
|
824
824
|
const chapterNumber = i + 1;
|
|
825
825
|
return {
|
|
@@ -842,7 +842,7 @@ export const mockBibleBooks = [
|
|
|
842
842
|
title: 'Haggai',
|
|
843
843
|
full_title: 'The Book of Haggai',
|
|
844
844
|
abbreviation: 'Hag',
|
|
845
|
-
canon: '
|
|
845
|
+
canon: 'old_testament',
|
|
846
846
|
chapters: Array.from({ length: 2 }, (_, i) => {
|
|
847
847
|
const chapterNumber = i + 1;
|
|
848
848
|
return {
|
|
@@ -865,7 +865,7 @@ export const mockBibleBooks = [
|
|
|
865
865
|
title: 'Zechariah',
|
|
866
866
|
full_title: 'The Book of Zechariah',
|
|
867
867
|
abbreviation: 'Zech',
|
|
868
|
-
canon: '
|
|
868
|
+
canon: 'old_testament',
|
|
869
869
|
chapters: Array.from({ length: 14 }, (_, i) => {
|
|
870
870
|
const chapterNumber = i + 1;
|
|
871
871
|
return {
|
|
@@ -888,7 +888,7 @@ export const mockBibleBooks = [
|
|
|
888
888
|
title: 'Malachi',
|
|
889
889
|
full_title: 'The Book of Malachi',
|
|
890
890
|
abbreviation: 'Mal',
|
|
891
|
-
canon: '
|
|
891
|
+
canon: 'old_testament',
|
|
892
892
|
chapters: Array.from({ length: 4 }, (_, i) => {
|
|
893
893
|
const chapterNumber = i + 1;
|
|
894
894
|
return {
|
|
@@ -911,7 +911,7 @@ export const mockBibleBooks = [
|
|
|
911
911
|
title: 'Matthew',
|
|
912
912
|
full_title: 'The Gospel According to Matthew',
|
|
913
913
|
abbreviation: 'Matt',
|
|
914
|
-
canon: '
|
|
914
|
+
canon: 'new_testament',
|
|
915
915
|
chapters: Array.from({ length: 28 }, (_, i) => {
|
|
916
916
|
const chapterNumber = i + 1;
|
|
917
917
|
return {
|
|
@@ -934,7 +934,7 @@ export const mockBibleBooks = [
|
|
|
934
934
|
title: 'Mark',
|
|
935
935
|
full_title: 'The Gospel According to Mark',
|
|
936
936
|
abbreviation: 'Mark',
|
|
937
|
-
canon: '
|
|
937
|
+
canon: 'new_testament',
|
|
938
938
|
chapters: Array.from({ length: 16 }, (_, i) => {
|
|
939
939
|
const chapterNumber = i + 1;
|
|
940
940
|
return {
|
|
@@ -957,7 +957,7 @@ export const mockBibleBooks = [
|
|
|
957
957
|
title: 'Luke',
|
|
958
958
|
full_title: 'The Gospel According to Luke',
|
|
959
959
|
abbreviation: 'Luke',
|
|
960
|
-
canon: '
|
|
960
|
+
canon: 'new_testament',
|
|
961
961
|
chapters: Array.from({ length: 24 }, (_, i) => {
|
|
962
962
|
const chapterNumber = i + 1;
|
|
963
963
|
return {
|
|
@@ -980,7 +980,7 @@ export const mockBibleBooks = [
|
|
|
980
980
|
title: 'John',
|
|
981
981
|
full_title: 'The Gospel According to John',
|
|
982
982
|
abbreviation: 'John',
|
|
983
|
-
canon: '
|
|
983
|
+
canon: 'new_testament',
|
|
984
984
|
chapters: Array.from({ length: 21 }, (_, i) => {
|
|
985
985
|
const chapterNumber = i + 1;
|
|
986
986
|
return {
|
|
@@ -1003,7 +1003,7 @@ export const mockBibleBooks = [
|
|
|
1003
1003
|
title: 'Acts',
|
|
1004
1004
|
full_title: 'The Acts of the Apostles',
|
|
1005
1005
|
abbreviation: 'Acts',
|
|
1006
|
-
canon: '
|
|
1006
|
+
canon: 'new_testament',
|
|
1007
1007
|
chapters: Array.from({ length: 28 }, (_, i) => {
|
|
1008
1008
|
const chapterNumber = i + 1;
|
|
1009
1009
|
return {
|
|
@@ -1026,7 +1026,7 @@ export const mockBibleBooks = [
|
|
|
1026
1026
|
title: 'Romans',
|
|
1027
1027
|
full_title: 'The Epistle to the Romans',
|
|
1028
1028
|
abbreviation: 'Rom',
|
|
1029
|
-
canon: '
|
|
1029
|
+
canon: 'new_testament',
|
|
1030
1030
|
chapters: Array.from({ length: 16 }, (_, i) => {
|
|
1031
1031
|
const chapterNumber = i + 1;
|
|
1032
1032
|
return {
|
|
@@ -1049,7 +1049,7 @@ export const mockBibleBooks = [
|
|
|
1049
1049
|
title: '1 Corinthians',
|
|
1050
1050
|
full_title: 'The First Epistle to the Corinthians',
|
|
1051
1051
|
abbreviation: '1 Cor',
|
|
1052
|
-
canon: '
|
|
1052
|
+
canon: 'new_testament',
|
|
1053
1053
|
chapters: Array.from({ length: 16 }, (_, i) => {
|
|
1054
1054
|
const chapterNumber = i + 1;
|
|
1055
1055
|
return {
|
|
@@ -1072,7 +1072,7 @@ export const mockBibleBooks = [
|
|
|
1072
1072
|
title: '2 Corinthians',
|
|
1073
1073
|
full_title: 'The Second Epistle to the Corinthians',
|
|
1074
1074
|
abbreviation: '2 Cor',
|
|
1075
|
-
canon: '
|
|
1075
|
+
canon: 'new_testament',
|
|
1076
1076
|
chapters: Array.from({ length: 13 }, (_, i) => {
|
|
1077
1077
|
const chapterNumber = i + 1;
|
|
1078
1078
|
return {
|
|
@@ -1095,7 +1095,7 @@ export const mockBibleBooks = [
|
|
|
1095
1095
|
title: 'Galatians',
|
|
1096
1096
|
full_title: 'The Epistle to the Galatians',
|
|
1097
1097
|
abbreviation: 'Gal',
|
|
1098
|
-
canon: '
|
|
1098
|
+
canon: 'new_testament',
|
|
1099
1099
|
chapters: Array.from({ length: 6 }, (_, i) => {
|
|
1100
1100
|
const chapterNumber = i + 1;
|
|
1101
1101
|
return {
|
|
@@ -1118,7 +1118,7 @@ export const mockBibleBooks = [
|
|
|
1118
1118
|
title: 'Ephesians',
|
|
1119
1119
|
full_title: 'The Epistle to the Ephesians',
|
|
1120
1120
|
abbreviation: 'Eph',
|
|
1121
|
-
canon: '
|
|
1121
|
+
canon: 'new_testament',
|
|
1122
1122
|
chapters: Array.from({ length: 6 }, (_, i) => {
|
|
1123
1123
|
const chapterNumber = i + 1;
|
|
1124
1124
|
return {
|
|
@@ -1141,7 +1141,7 @@ export const mockBibleBooks = [
|
|
|
1141
1141
|
title: 'Philippians',
|
|
1142
1142
|
full_title: 'The Epistle to the Philippians',
|
|
1143
1143
|
abbreviation: 'Phil',
|
|
1144
|
-
canon: '
|
|
1144
|
+
canon: 'new_testament',
|
|
1145
1145
|
chapters: Array.from({ length: 4 }, (_, i) => {
|
|
1146
1146
|
const chapterNumber = i + 1;
|
|
1147
1147
|
return {
|
|
@@ -1164,7 +1164,7 @@ export const mockBibleBooks = [
|
|
|
1164
1164
|
title: 'Colossians',
|
|
1165
1165
|
full_title: 'The Epistle to the Colossians',
|
|
1166
1166
|
abbreviation: 'Col',
|
|
1167
|
-
canon: '
|
|
1167
|
+
canon: 'new_testament',
|
|
1168
1168
|
chapters: Array.from({ length: 4 }, (_, i) => {
|
|
1169
1169
|
const chapterNumber = i + 1;
|
|
1170
1170
|
return {
|
|
@@ -1187,7 +1187,7 @@ export const mockBibleBooks = [
|
|
|
1187
1187
|
title: '1 Thessalonians',
|
|
1188
1188
|
full_title: 'The First Epistle to the Thessalonians',
|
|
1189
1189
|
abbreviation: '1 Thess',
|
|
1190
|
-
canon: '
|
|
1190
|
+
canon: 'new_testament',
|
|
1191
1191
|
chapters: Array.from({ length: 5 }, (_, i) => {
|
|
1192
1192
|
const chapterNumber = i + 1;
|
|
1193
1193
|
return {
|
|
@@ -1210,7 +1210,7 @@ export const mockBibleBooks = [
|
|
|
1210
1210
|
title: '2 Thessalonians',
|
|
1211
1211
|
full_title: 'The Second Epistle to the Thessalonians',
|
|
1212
1212
|
abbreviation: '2 Thess',
|
|
1213
|
-
canon: '
|
|
1213
|
+
canon: 'new_testament',
|
|
1214
1214
|
chapters: Array.from({ length: 3 }, (_, i) => {
|
|
1215
1215
|
const chapterNumber = i + 1;
|
|
1216
1216
|
return {
|
|
@@ -1233,7 +1233,7 @@ export const mockBibleBooks = [
|
|
|
1233
1233
|
title: '1 Timothy',
|
|
1234
1234
|
full_title: 'The First Epistle to Timothy',
|
|
1235
1235
|
abbreviation: '1 Tim',
|
|
1236
|
-
canon: '
|
|
1236
|
+
canon: 'new_testament',
|
|
1237
1237
|
chapters: Array.from({ length: 6 }, (_, i) => {
|
|
1238
1238
|
const chapterNumber = i + 1;
|
|
1239
1239
|
return {
|
|
@@ -1256,7 +1256,7 @@ export const mockBibleBooks = [
|
|
|
1256
1256
|
title: '2 Timothy',
|
|
1257
1257
|
full_title: 'The Second Epistle to Timothy',
|
|
1258
1258
|
abbreviation: '2 Tim',
|
|
1259
|
-
canon: '
|
|
1259
|
+
canon: 'new_testament',
|
|
1260
1260
|
chapters: Array.from({ length: 4 }, (_, i) => {
|
|
1261
1261
|
const chapterNumber = i + 1;
|
|
1262
1262
|
return {
|
|
@@ -1279,7 +1279,7 @@ export const mockBibleBooks = [
|
|
|
1279
1279
|
title: 'Titus',
|
|
1280
1280
|
full_title: 'The Epistle to Titus',
|
|
1281
1281
|
abbreviation: 'Titus',
|
|
1282
|
-
canon: '
|
|
1282
|
+
canon: 'new_testament',
|
|
1283
1283
|
chapters: Array.from({ length: 3 }, (_, i) => {
|
|
1284
1284
|
const chapterNumber = i + 1;
|
|
1285
1285
|
return {
|
|
@@ -1302,7 +1302,7 @@ export const mockBibleBooks = [
|
|
|
1302
1302
|
title: 'Philemon',
|
|
1303
1303
|
full_title: 'The Epistle to Philemon',
|
|
1304
1304
|
abbreviation: 'Phlm',
|
|
1305
|
-
canon: '
|
|
1305
|
+
canon: 'new_testament',
|
|
1306
1306
|
chapters: Array.from({ length: 1 }, (_, i) => {
|
|
1307
1307
|
const chapterNumber = i + 1;
|
|
1308
1308
|
return {
|
|
@@ -1325,7 +1325,7 @@ export const mockBibleBooks = [
|
|
|
1325
1325
|
title: 'Hebrews',
|
|
1326
1326
|
full_title: 'The Epistle to the Hebrews',
|
|
1327
1327
|
abbreviation: 'Heb',
|
|
1328
|
-
canon: '
|
|
1328
|
+
canon: 'new_testament',
|
|
1329
1329
|
chapters: Array.from({ length: 13 }, (_, i) => {
|
|
1330
1330
|
const chapterNumber = i + 1;
|
|
1331
1331
|
return {
|
|
@@ -1348,7 +1348,7 @@ export const mockBibleBooks = [
|
|
|
1348
1348
|
title: 'James',
|
|
1349
1349
|
full_title: 'The Epistle of James',
|
|
1350
1350
|
abbreviation: 'Jas',
|
|
1351
|
-
canon: '
|
|
1351
|
+
canon: 'new_testament',
|
|
1352
1352
|
chapters: Array.from({ length: 5 }, (_, i) => {
|
|
1353
1353
|
const chapterNumber = i + 1;
|
|
1354
1354
|
return {
|
|
@@ -1371,7 +1371,7 @@ export const mockBibleBooks = [
|
|
|
1371
1371
|
title: '1 Peter',
|
|
1372
1372
|
full_title: 'The First Epistle of Peter',
|
|
1373
1373
|
abbreviation: '1 Pet',
|
|
1374
|
-
canon: '
|
|
1374
|
+
canon: 'new_testament',
|
|
1375
1375
|
chapters: Array.from({ length: 5 }, (_, i) => {
|
|
1376
1376
|
const chapterNumber = i + 1;
|
|
1377
1377
|
return {
|
|
@@ -1394,7 +1394,7 @@ export const mockBibleBooks = [
|
|
|
1394
1394
|
title: '2 Peter',
|
|
1395
1395
|
full_title: 'The Second Epistle of Peter',
|
|
1396
1396
|
abbreviation: '2 Pet',
|
|
1397
|
-
canon: '
|
|
1397
|
+
canon: 'new_testament',
|
|
1398
1398
|
chapters: Array.from({ length: 3 }, (_, i) => {
|
|
1399
1399
|
const chapterNumber = i + 1;
|
|
1400
1400
|
return {
|
|
@@ -1417,7 +1417,7 @@ export const mockBibleBooks = [
|
|
|
1417
1417
|
title: '1 John',
|
|
1418
1418
|
full_title: 'The First Epistle of John',
|
|
1419
1419
|
abbreviation: '1 John',
|
|
1420
|
-
canon: '
|
|
1420
|
+
canon: 'new_testament',
|
|
1421
1421
|
chapters: Array.from({ length: 5 }, (_, i) => {
|
|
1422
1422
|
const chapterNumber = i + 1;
|
|
1423
1423
|
return {
|
|
@@ -1440,7 +1440,7 @@ export const mockBibleBooks = [
|
|
|
1440
1440
|
title: '2 John',
|
|
1441
1441
|
full_title: 'The Second Epistle of John',
|
|
1442
1442
|
abbreviation: '2 John',
|
|
1443
|
-
canon: '
|
|
1443
|
+
canon: 'new_testament',
|
|
1444
1444
|
chapters: Array.from({ length: 1 }, (_, i) => {
|
|
1445
1445
|
const chapterNumber = i + 1;
|
|
1446
1446
|
return {
|
|
@@ -1463,7 +1463,7 @@ export const mockBibleBooks = [
|
|
|
1463
1463
|
title: '3 John',
|
|
1464
1464
|
full_title: 'The Third Epistle of John',
|
|
1465
1465
|
abbreviation: '3 John',
|
|
1466
|
-
canon: '
|
|
1466
|
+
canon: 'new_testament',
|
|
1467
1467
|
chapters: Array.from({ length: 1 }, (_, i) => {
|
|
1468
1468
|
const chapterNumber = i + 1;
|
|
1469
1469
|
return {
|
|
@@ -1486,7 +1486,7 @@ export const mockBibleBooks = [
|
|
|
1486
1486
|
title: 'Jude',
|
|
1487
1487
|
full_title: 'The Epistle of Jude',
|
|
1488
1488
|
abbreviation: 'Jude',
|
|
1489
|
-
canon: '
|
|
1489
|
+
canon: 'new_testament',
|
|
1490
1490
|
chapters: Array.from({ length: 1 }, (_, i) => {
|
|
1491
1491
|
const chapterNumber = i + 1;
|
|
1492
1492
|
return {
|
|
@@ -1509,7 +1509,7 @@ export const mockBibleBooks = [
|
|
|
1509
1509
|
title: 'Revelation',
|
|
1510
1510
|
full_title: 'The Revelation of Jesus Christ',
|
|
1511
1511
|
abbreviation: 'Rev',
|
|
1512
|
-
canon: '
|
|
1512
|
+
canon: 'new_testament',
|
|
1513
1513
|
chapters: Array.from({ length: 22 }, (_, i) => {
|
|
1514
1514
|
const chapterNumber = i + 1;
|
|
1515
1515
|
return {
|