@youversion/platform-core 1.0.0 → 1.1.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 +6 -6
- package/CHANGELOG.md +18 -0
- package/dist/index.d.cts +23 -23
- package/dist/index.d.ts +23 -23
- package/package.json +1 -1
- package/src/__tests__/MockVersions.ts +30 -30
- package/src/schemas/bible-index.ts +4 -4
- package/src/schemas/book.ts +3 -3
- package/src/schemas/chapter.ts +1 -1
- package/src/schemas/collection.ts +2 -2
- package/src/schemas/language.ts +1 -1
- package/src/schemas/passage.ts +1 -1
- package/src/schemas/verse.ts +1 -1
- package/src/schemas/version.ts +3 -3
- package/src/schemas/votd.ts +1 -1
- package/src/types/auth.ts +6 -6
- package/src/types/book.ts +2 -2
- package/src/types/chapter.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @youversion/platform-core@1.
|
|
2
|
+
> @youversion/platform-core@1.1.0 build /home/runner/work/platform-sdk-react/platform-sdk-react/packages/core
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
11
|
[32mCJS[39m [1mdist/index.cjs [22m[32m42.47 KB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 31ms
|
|
13
13
|
[32mESM[39m [1mdist/index.js [22m[32m40.66 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 31ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 1861ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m32.01 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m32.01 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @youversion/platform-core
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- efb1030: feat(core): make data objects that should be immutable readonly
|
|
8
|
+
- changed data types that come from api responses and should not
|
|
9
|
+
be mutated to be readonly.
|
|
10
|
+
- See the documentation on these types, https://developers.youversion.com/sdks/react#referenced-types
|
|
11
|
+
|
|
12
|
+
## 1.0.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 0ae8237: fix: update version apis
|
|
17
|
+
- change copyright_short -> copyright in version apis
|
|
18
|
+
- change copyright_long -> promotional_content in version apis
|
|
19
|
+
- add stories that hit real apis for local testing api changes
|
|
20
|
+
|
|
3
21
|
## 1.0.0
|
|
4
22
|
|
|
5
23
|
### Major Changes
|
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import { z } from 'zod';
|
|
|
3
3
|
declare const BibleVersionSchema: z.ZodObject<{
|
|
4
4
|
id: z.ZodNumber;
|
|
5
5
|
abbreviation: z.ZodString;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
promotional_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
copyright: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
info: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
publisher_url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
10
10
|
language_tag: z.ZodString;
|
|
@@ -15,14 +15,14 @@ declare const BibleVersionSchema: z.ZodObject<{
|
|
|
15
15
|
books: z.ZodArray<z.ZodUnion<readonly [...z.ZodLiteral<"GEN" | "EXO" | "LEV" | "NUM" | "DEU" | "JOS" | "JDG" | "RUT" | "1SA" | "2SA" | "1KI" | "2KI" | "1CH" | "2CH" | "EZR" | "NEH" | "EST" | "JOB" | "PSA" | "PRO" | "ECC" | "SNG" | "ISA" | "JER" | "LAM" | "EZK" | "DAN" | "HOS" | "JOL" | "AMO" | "OBA" | "JON" | "MIC" | "NAM" | "HAB" | "ZEP" | "HAG" | "ZEC" | "MAL" | "MAT" | "MRK" | "LUK" | "JHN" | "ACT" | "ROM" | "1CO" | "2CO" | "GAL" | "EPH" | "PHP" | "COL" | "1TH" | "2TH" | "1TI" | "2TI" | "TIT" | "PHM" | "HEB" | "JAS" | "1PE" | "2PE" | "1JN" | "2JN" | "3JN" | "JUD" | "REV" | "TOB" | "JDT" | "ESG" | "WIS" | "SIR" | "BAR" | "LJE" | "S3Y" | "SUS" | "BEL" | "1MA" | "2MA" | "3MA" | "4MA" | "1ES" | "2ES" | "MAN" | "PS2" | "ODA" | "PSS" | "3ES" | "EZA" | "5EZ" | "6EZ" | "DAG" | "PS3" | "2BA" | "LBA" | "JUB" | "ENO" | "1MQ" | "2MQ" | "3MQ" | "REP" | "4BA" | "LAO" | "LKA">[], z.ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>>;
|
|
16
16
|
youversion_deep_link: z.ZodURL;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
-
type BibleVersion = z.infer<typeof BibleVersionSchema
|
|
18
|
+
type BibleVersion = Readonly<z.infer<typeof BibleVersionSchema>>;
|
|
19
19
|
|
|
20
20
|
declare const CanonSchema: z.ZodEnum<{
|
|
21
21
|
old_testament: "old_testament";
|
|
22
22
|
new_testament: "new_testament";
|
|
23
23
|
deuterocanon: "deuterocanon";
|
|
24
24
|
}>;
|
|
25
|
-
type Canon = z.infer<typeof CanonSchema
|
|
25
|
+
type Canon = Readonly<z.infer<typeof CanonSchema>>;
|
|
26
26
|
declare const BookUsfmSchema: z.ZodUnion<readonly [...z.ZodLiteral<"GEN" | "EXO" | "LEV" | "NUM" | "DEU" | "JOS" | "JDG" | "RUT" | "1SA" | "2SA" | "1KI" | "2KI" | "1CH" | "2CH" | "EZR" | "NEH" | "EST" | "JOB" | "PSA" | "PRO" | "ECC" | "SNG" | "ISA" | "JER" | "LAM" | "EZK" | "DAN" | "HOS" | "JOL" | "AMO" | "OBA" | "JON" | "MIC" | "NAM" | "HAB" | "ZEP" | "HAG" | "ZEC" | "MAL" | "MAT" | "MRK" | "LUK" | "JHN" | "ACT" | "ROM" | "1CO" | "2CO" | "GAL" | "EPH" | "PHP" | "COL" | "1TH" | "2TH" | "1TI" | "2TI" | "TIT" | "PHM" | "HEB" | "JAS" | "1PE" | "2PE" | "1JN" | "2JN" | "3JN" | "JUD" | "REV" | "TOB" | "JDT" | "ESG" | "WIS" | "SIR" | "BAR" | "LJE" | "S3Y" | "SUS" | "BEL" | "1MA" | "2MA" | "3MA" | "4MA" | "1ES" | "2ES" | "MAN" | "PS2" | "ODA" | "PSS" | "3ES" | "EZA" | "5EZ" | "6EZ" | "DAG" | "PS3" | "2BA" | "LBA" | "JUB" | "ENO" | "1MQ" | "2MQ" | "3MQ" | "REP" | "4BA" | "LAO" | "LKA">[], z.ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
27
27
|
type BookUsfm = z.infer<typeof BookUsfmSchema>;
|
|
28
28
|
declare const BibleBookSchema: z.ZodObject<{
|
|
@@ -46,8 +46,8 @@ declare const BibleBookSchema: z.ZodObject<{
|
|
|
46
46
|
}, z.core.$strip>>>;
|
|
47
47
|
}, z.core.$strip>>>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
|
-
type BibleBook = z.infer<typeof BibleBookSchema
|
|
50
|
-
type CANON = z.infer<typeof CanonSchema
|
|
49
|
+
type BibleBook = Readonly<z.infer<typeof BibleBookSchema>>;
|
|
50
|
+
type CANON = Readonly<z.infer<typeof CanonSchema>>;
|
|
51
51
|
|
|
52
52
|
declare const BibleChapterSchema: z.ZodObject<{
|
|
53
53
|
id: z.ZodString;
|
|
@@ -59,33 +59,33 @@ declare const BibleChapterSchema: z.ZodObject<{
|
|
|
59
59
|
title: z.ZodString;
|
|
60
60
|
}, z.core.$strip>>>;
|
|
61
61
|
}, z.core.$strip>;
|
|
62
|
-
type BibleChapter = z.infer<typeof BibleChapterSchema
|
|
62
|
+
type BibleChapter = Readonly<z.infer<typeof BibleChapterSchema>>;
|
|
63
63
|
|
|
64
64
|
declare const BibleVerseSchema: z.ZodObject<{
|
|
65
65
|
id: z.ZodString;
|
|
66
66
|
passage_id: z.ZodString;
|
|
67
67
|
title: z.ZodString;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
|
-
type BibleVerse = z.infer<typeof BibleVerseSchema
|
|
69
|
+
type BibleVerse = Readonly<z.infer<typeof BibleVerseSchema>>;
|
|
70
70
|
|
|
71
71
|
declare const BiblePassageSchema: z.ZodObject<{
|
|
72
72
|
id: z.ZodString;
|
|
73
73
|
content: z.ZodString;
|
|
74
74
|
reference: z.ZodString;
|
|
75
75
|
}, z.core.$strip>;
|
|
76
|
-
type BiblePassage = z.infer<typeof BiblePassageSchema
|
|
76
|
+
type BiblePassage = Readonly<z.infer<typeof BiblePassageSchema>>;
|
|
77
77
|
|
|
78
78
|
declare const VOTDSchema: z.ZodObject<{
|
|
79
79
|
day: z.ZodNumber;
|
|
80
80
|
passage_id: z.ZodString;
|
|
81
81
|
}, z.core.$strip>;
|
|
82
|
-
type VOTD = z.infer<typeof VOTDSchema
|
|
82
|
+
type VOTD = Readonly<z.infer<typeof VOTDSchema>>;
|
|
83
83
|
|
|
84
84
|
declare const BibleIndexVerseSchema: z.ZodObject<{
|
|
85
85
|
id: z.ZodString;
|
|
86
86
|
title: z.ZodString;
|
|
87
87
|
}, z.core.$strip>;
|
|
88
|
-
type BibleIndexVerse = z.infer<typeof BibleIndexVerseSchema
|
|
88
|
+
type BibleIndexVerse = Readonly<z.infer<typeof BibleIndexVerseSchema>>;
|
|
89
89
|
declare const BibleIndexChapterSchema: z.ZodObject<{
|
|
90
90
|
id: z.ZodString;
|
|
91
91
|
title: z.ZodString;
|
|
@@ -94,7 +94,7 @@ declare const BibleIndexChapterSchema: z.ZodObject<{
|
|
|
94
94
|
title: z.ZodString;
|
|
95
95
|
}, z.core.$strip>>;
|
|
96
96
|
}, z.core.$strip>;
|
|
97
|
-
type BibleIndexChapter = z.infer<typeof BibleIndexChapterSchema
|
|
97
|
+
type BibleIndexChapter = Readonly<z.infer<typeof BibleIndexChapterSchema>>;
|
|
98
98
|
declare const BibleIndexBookSchema: z.ZodObject<{
|
|
99
99
|
id: z.ZodUnion<readonly [...z.ZodLiteral<"GEN" | "EXO" | "LEV" | "NUM" | "DEU" | "JOS" | "JDG" | "RUT" | "1SA" | "2SA" | "1KI" | "2KI" | "1CH" | "2CH" | "EZR" | "NEH" | "EST" | "JOB" | "PSA" | "PRO" | "ECC" | "SNG" | "ISA" | "JER" | "LAM" | "EZK" | "DAN" | "HOS" | "JOL" | "AMO" | "OBA" | "JON" | "MIC" | "NAM" | "HAB" | "ZEP" | "HAG" | "ZEC" | "MAL" | "MAT" | "MRK" | "LUK" | "JHN" | "ACT" | "ROM" | "1CO" | "2CO" | "GAL" | "EPH" | "PHP" | "COL" | "1TH" | "2TH" | "1TI" | "2TI" | "TIT" | "PHM" | "HEB" | "JAS" | "1PE" | "2PE" | "1JN" | "2JN" | "3JN" | "JUD" | "REV" | "TOB" | "JDT" | "ESG" | "WIS" | "SIR" | "BAR" | "LJE" | "S3Y" | "SUS" | "BEL" | "1MA" | "2MA" | "3MA" | "4MA" | "1ES" | "2ES" | "MAN" | "PS2" | "ODA" | "PSS" | "3ES" | "EZA" | "5EZ" | "6EZ" | "DAG" | "PS3" | "2BA" | "LBA" | "JUB" | "ENO" | "1MQ" | "2MQ" | "3MQ" | "REP" | "4BA" | "LAO" | "LKA">[], z.ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
100
100
|
title: z.ZodString;
|
|
@@ -114,7 +114,7 @@ declare const BibleIndexBookSchema: z.ZodObject<{
|
|
|
114
114
|
}, z.core.$strip>>;
|
|
115
115
|
}, z.core.$strip>>;
|
|
116
116
|
}, z.core.$strip>;
|
|
117
|
-
type BibleIndexBook = z.infer<typeof BibleIndexBookSchema
|
|
117
|
+
type BibleIndexBook = Readonly<z.infer<typeof BibleIndexBookSchema>>;
|
|
118
118
|
declare const _BibleIndexSchema: z.ZodObject<{
|
|
119
119
|
text_direction: z.ZodString;
|
|
120
120
|
books: z.ZodArray<z.ZodObject<{
|
|
@@ -137,7 +137,7 @@ declare const _BibleIndexSchema: z.ZodObject<{
|
|
|
137
137
|
}, z.core.$strip>>;
|
|
138
138
|
}, z.core.$strip>>;
|
|
139
139
|
}, z.core.$strip>;
|
|
140
|
-
type BibleIndex = z.infer<typeof _BibleIndexSchema
|
|
140
|
+
type BibleIndex = Readonly<z.infer<typeof _BibleIndexSchema>>;
|
|
141
141
|
|
|
142
142
|
declare const LanguageSchema: z.ZodObject<{
|
|
143
143
|
id: z.ZodString;
|
|
@@ -157,7 +157,7 @@ declare const LanguageSchema: z.ZodObject<{
|
|
|
157
157
|
speaking_population: z.ZodOptional<z.ZodNumber>;
|
|
158
158
|
default_bible_version_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
159
159
|
}, z.core.$strip>;
|
|
160
|
-
type Language = z.infer<typeof LanguageSchema
|
|
160
|
+
type Language = Readonly<z.infer<typeof LanguageSchema>>;
|
|
161
161
|
|
|
162
162
|
declare const _UserSchema: z.ZodObject<{
|
|
163
163
|
avatar_url: z.ZodString;
|
|
@@ -183,11 +183,11 @@ type CreateHighlight = z.infer<typeof _CreateHighlightSchema>;
|
|
|
183
183
|
/**
|
|
184
184
|
* Generic Collection type for paginated responses
|
|
185
185
|
*/
|
|
186
|
-
type Collection<T> = {
|
|
186
|
+
type Collection<T> = Readonly<{
|
|
187
187
|
data: T[];
|
|
188
188
|
next_page_token: string | null;
|
|
189
189
|
total_size?: number;
|
|
190
|
-
}
|
|
190
|
+
}>;
|
|
191
191
|
|
|
192
192
|
interface ApiConfig {
|
|
193
193
|
apiHost?: string;
|
|
@@ -228,12 +228,12 @@ declare class SignInWithYouVersionResult {
|
|
|
228
228
|
|
|
229
229
|
type SignInWithYouVersionPermissionValues = (typeof SignInWithYouVersionPermission)[keyof typeof SignInWithYouVersionPermission];
|
|
230
230
|
interface AuthenticationState {
|
|
231
|
-
isAuthenticated: boolean;
|
|
232
|
-
isLoading: boolean;
|
|
233
|
-
accessToken: string | null;
|
|
234
|
-
idToken: string | null;
|
|
235
|
-
result: SignInWithYouVersionResult | null;
|
|
236
|
-
error: Error | null;
|
|
231
|
+
readonly isAuthenticated: boolean;
|
|
232
|
+
readonly isLoading: boolean;
|
|
233
|
+
readonly accessToken: string | null;
|
|
234
|
+
readonly idToken: string | null;
|
|
235
|
+
readonly result: SignInWithYouVersionResult | null;
|
|
236
|
+
readonly error: Error | null;
|
|
237
237
|
}
|
|
238
238
|
type AuthenticationScopes = 'profile' | 'email';
|
|
239
239
|
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { z } from 'zod';
|
|
|
3
3
|
declare const BibleVersionSchema: z.ZodObject<{
|
|
4
4
|
id: z.ZodNumber;
|
|
5
5
|
abbreviation: z.ZodString;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
promotional_content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
copyright: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
8
|
info: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
publisher_url: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
10
10
|
language_tag: z.ZodString;
|
|
@@ -15,14 +15,14 @@ declare const BibleVersionSchema: z.ZodObject<{
|
|
|
15
15
|
books: z.ZodArray<z.ZodUnion<readonly [...z.ZodLiteral<"GEN" | "EXO" | "LEV" | "NUM" | "DEU" | "JOS" | "JDG" | "RUT" | "1SA" | "2SA" | "1KI" | "2KI" | "1CH" | "2CH" | "EZR" | "NEH" | "EST" | "JOB" | "PSA" | "PRO" | "ECC" | "SNG" | "ISA" | "JER" | "LAM" | "EZK" | "DAN" | "HOS" | "JOL" | "AMO" | "OBA" | "JON" | "MIC" | "NAM" | "HAB" | "ZEP" | "HAG" | "ZEC" | "MAL" | "MAT" | "MRK" | "LUK" | "JHN" | "ACT" | "ROM" | "1CO" | "2CO" | "GAL" | "EPH" | "PHP" | "COL" | "1TH" | "2TH" | "1TI" | "2TI" | "TIT" | "PHM" | "HEB" | "JAS" | "1PE" | "2PE" | "1JN" | "2JN" | "3JN" | "JUD" | "REV" | "TOB" | "JDT" | "ESG" | "WIS" | "SIR" | "BAR" | "LJE" | "S3Y" | "SUS" | "BEL" | "1MA" | "2MA" | "3MA" | "4MA" | "1ES" | "2ES" | "MAN" | "PS2" | "ODA" | "PSS" | "3ES" | "EZA" | "5EZ" | "6EZ" | "DAG" | "PS3" | "2BA" | "LBA" | "JUB" | "ENO" | "1MQ" | "2MQ" | "3MQ" | "REP" | "4BA" | "LAO" | "LKA">[], z.ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>>;
|
|
16
16
|
youversion_deep_link: z.ZodURL;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
|
-
type BibleVersion = z.infer<typeof BibleVersionSchema
|
|
18
|
+
type BibleVersion = Readonly<z.infer<typeof BibleVersionSchema>>;
|
|
19
19
|
|
|
20
20
|
declare const CanonSchema: z.ZodEnum<{
|
|
21
21
|
old_testament: "old_testament";
|
|
22
22
|
new_testament: "new_testament";
|
|
23
23
|
deuterocanon: "deuterocanon";
|
|
24
24
|
}>;
|
|
25
|
-
type Canon = z.infer<typeof CanonSchema
|
|
25
|
+
type Canon = Readonly<z.infer<typeof CanonSchema>>;
|
|
26
26
|
declare const BookUsfmSchema: z.ZodUnion<readonly [...z.ZodLiteral<"GEN" | "EXO" | "LEV" | "NUM" | "DEU" | "JOS" | "JDG" | "RUT" | "1SA" | "2SA" | "1KI" | "2KI" | "1CH" | "2CH" | "EZR" | "NEH" | "EST" | "JOB" | "PSA" | "PRO" | "ECC" | "SNG" | "ISA" | "JER" | "LAM" | "EZK" | "DAN" | "HOS" | "JOL" | "AMO" | "OBA" | "JON" | "MIC" | "NAM" | "HAB" | "ZEP" | "HAG" | "ZEC" | "MAL" | "MAT" | "MRK" | "LUK" | "JHN" | "ACT" | "ROM" | "1CO" | "2CO" | "GAL" | "EPH" | "PHP" | "COL" | "1TH" | "2TH" | "1TI" | "2TI" | "TIT" | "PHM" | "HEB" | "JAS" | "1PE" | "2PE" | "1JN" | "2JN" | "3JN" | "JUD" | "REV" | "TOB" | "JDT" | "ESG" | "WIS" | "SIR" | "BAR" | "LJE" | "S3Y" | "SUS" | "BEL" | "1MA" | "2MA" | "3MA" | "4MA" | "1ES" | "2ES" | "MAN" | "PS2" | "ODA" | "PSS" | "3ES" | "EZA" | "5EZ" | "6EZ" | "DAG" | "PS3" | "2BA" | "LBA" | "JUB" | "ENO" | "1MQ" | "2MQ" | "3MQ" | "REP" | "4BA" | "LAO" | "LKA">[], z.ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
27
27
|
type BookUsfm = z.infer<typeof BookUsfmSchema>;
|
|
28
28
|
declare const BibleBookSchema: z.ZodObject<{
|
|
@@ -46,8 +46,8 @@ declare const BibleBookSchema: z.ZodObject<{
|
|
|
46
46
|
}, z.core.$strip>>>;
|
|
47
47
|
}, z.core.$strip>>>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
|
-
type BibleBook = z.infer<typeof BibleBookSchema
|
|
50
|
-
type CANON = z.infer<typeof CanonSchema
|
|
49
|
+
type BibleBook = Readonly<z.infer<typeof BibleBookSchema>>;
|
|
50
|
+
type CANON = Readonly<z.infer<typeof CanonSchema>>;
|
|
51
51
|
|
|
52
52
|
declare const BibleChapterSchema: z.ZodObject<{
|
|
53
53
|
id: z.ZodString;
|
|
@@ -59,33 +59,33 @@ declare const BibleChapterSchema: z.ZodObject<{
|
|
|
59
59
|
title: z.ZodString;
|
|
60
60
|
}, z.core.$strip>>>;
|
|
61
61
|
}, z.core.$strip>;
|
|
62
|
-
type BibleChapter = z.infer<typeof BibleChapterSchema
|
|
62
|
+
type BibleChapter = Readonly<z.infer<typeof BibleChapterSchema>>;
|
|
63
63
|
|
|
64
64
|
declare const BibleVerseSchema: z.ZodObject<{
|
|
65
65
|
id: z.ZodString;
|
|
66
66
|
passage_id: z.ZodString;
|
|
67
67
|
title: z.ZodString;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
|
-
type BibleVerse = z.infer<typeof BibleVerseSchema
|
|
69
|
+
type BibleVerse = Readonly<z.infer<typeof BibleVerseSchema>>;
|
|
70
70
|
|
|
71
71
|
declare const BiblePassageSchema: z.ZodObject<{
|
|
72
72
|
id: z.ZodString;
|
|
73
73
|
content: z.ZodString;
|
|
74
74
|
reference: z.ZodString;
|
|
75
75
|
}, z.core.$strip>;
|
|
76
|
-
type BiblePassage = z.infer<typeof BiblePassageSchema
|
|
76
|
+
type BiblePassage = Readonly<z.infer<typeof BiblePassageSchema>>;
|
|
77
77
|
|
|
78
78
|
declare const VOTDSchema: z.ZodObject<{
|
|
79
79
|
day: z.ZodNumber;
|
|
80
80
|
passage_id: z.ZodString;
|
|
81
81
|
}, z.core.$strip>;
|
|
82
|
-
type VOTD = z.infer<typeof VOTDSchema
|
|
82
|
+
type VOTD = Readonly<z.infer<typeof VOTDSchema>>;
|
|
83
83
|
|
|
84
84
|
declare const BibleIndexVerseSchema: z.ZodObject<{
|
|
85
85
|
id: z.ZodString;
|
|
86
86
|
title: z.ZodString;
|
|
87
87
|
}, z.core.$strip>;
|
|
88
|
-
type BibleIndexVerse = z.infer<typeof BibleIndexVerseSchema
|
|
88
|
+
type BibleIndexVerse = Readonly<z.infer<typeof BibleIndexVerseSchema>>;
|
|
89
89
|
declare const BibleIndexChapterSchema: z.ZodObject<{
|
|
90
90
|
id: z.ZodString;
|
|
91
91
|
title: z.ZodString;
|
|
@@ -94,7 +94,7 @@ declare const BibleIndexChapterSchema: z.ZodObject<{
|
|
|
94
94
|
title: z.ZodString;
|
|
95
95
|
}, z.core.$strip>>;
|
|
96
96
|
}, z.core.$strip>;
|
|
97
|
-
type BibleIndexChapter = z.infer<typeof BibleIndexChapterSchema
|
|
97
|
+
type BibleIndexChapter = Readonly<z.infer<typeof BibleIndexChapterSchema>>;
|
|
98
98
|
declare const BibleIndexBookSchema: z.ZodObject<{
|
|
99
99
|
id: z.ZodUnion<readonly [...z.ZodLiteral<"GEN" | "EXO" | "LEV" | "NUM" | "DEU" | "JOS" | "JDG" | "RUT" | "1SA" | "2SA" | "1KI" | "2KI" | "1CH" | "2CH" | "EZR" | "NEH" | "EST" | "JOB" | "PSA" | "PRO" | "ECC" | "SNG" | "ISA" | "JER" | "LAM" | "EZK" | "DAN" | "HOS" | "JOL" | "AMO" | "OBA" | "JON" | "MIC" | "NAM" | "HAB" | "ZEP" | "HAG" | "ZEC" | "MAL" | "MAT" | "MRK" | "LUK" | "JHN" | "ACT" | "ROM" | "1CO" | "2CO" | "GAL" | "EPH" | "PHP" | "COL" | "1TH" | "2TH" | "1TI" | "2TI" | "TIT" | "PHM" | "HEB" | "JAS" | "1PE" | "2PE" | "1JN" | "2JN" | "3JN" | "JUD" | "REV" | "TOB" | "JDT" | "ESG" | "WIS" | "SIR" | "BAR" | "LJE" | "S3Y" | "SUS" | "BEL" | "1MA" | "2MA" | "3MA" | "4MA" | "1ES" | "2ES" | "MAN" | "PS2" | "ODA" | "PSS" | "3ES" | "EZA" | "5EZ" | "6EZ" | "DAG" | "PS3" | "2BA" | "LBA" | "JUB" | "ENO" | "1MQ" | "2MQ" | "3MQ" | "REP" | "4BA" | "LAO" | "LKA">[], z.ZodType<string & {}, unknown, z.core.$ZodTypeInternals<string & {}, unknown>>]>;
|
|
100
100
|
title: z.ZodString;
|
|
@@ -114,7 +114,7 @@ declare const BibleIndexBookSchema: z.ZodObject<{
|
|
|
114
114
|
}, z.core.$strip>>;
|
|
115
115
|
}, z.core.$strip>>;
|
|
116
116
|
}, z.core.$strip>;
|
|
117
|
-
type BibleIndexBook = z.infer<typeof BibleIndexBookSchema
|
|
117
|
+
type BibleIndexBook = Readonly<z.infer<typeof BibleIndexBookSchema>>;
|
|
118
118
|
declare const _BibleIndexSchema: z.ZodObject<{
|
|
119
119
|
text_direction: z.ZodString;
|
|
120
120
|
books: z.ZodArray<z.ZodObject<{
|
|
@@ -137,7 +137,7 @@ declare const _BibleIndexSchema: z.ZodObject<{
|
|
|
137
137
|
}, z.core.$strip>>;
|
|
138
138
|
}, z.core.$strip>>;
|
|
139
139
|
}, z.core.$strip>;
|
|
140
|
-
type BibleIndex = z.infer<typeof _BibleIndexSchema
|
|
140
|
+
type BibleIndex = Readonly<z.infer<typeof _BibleIndexSchema>>;
|
|
141
141
|
|
|
142
142
|
declare const LanguageSchema: z.ZodObject<{
|
|
143
143
|
id: z.ZodString;
|
|
@@ -157,7 +157,7 @@ declare const LanguageSchema: z.ZodObject<{
|
|
|
157
157
|
speaking_population: z.ZodOptional<z.ZodNumber>;
|
|
158
158
|
default_bible_version_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
159
159
|
}, z.core.$strip>;
|
|
160
|
-
type Language = z.infer<typeof LanguageSchema
|
|
160
|
+
type Language = Readonly<z.infer<typeof LanguageSchema>>;
|
|
161
161
|
|
|
162
162
|
declare const _UserSchema: z.ZodObject<{
|
|
163
163
|
avatar_url: z.ZodString;
|
|
@@ -183,11 +183,11 @@ type CreateHighlight = z.infer<typeof _CreateHighlightSchema>;
|
|
|
183
183
|
/**
|
|
184
184
|
* Generic Collection type for paginated responses
|
|
185
185
|
*/
|
|
186
|
-
type Collection<T> = {
|
|
186
|
+
type Collection<T> = Readonly<{
|
|
187
187
|
data: T[];
|
|
188
188
|
next_page_token: string | null;
|
|
189
189
|
total_size?: number;
|
|
190
|
-
}
|
|
190
|
+
}>;
|
|
191
191
|
|
|
192
192
|
interface ApiConfig {
|
|
193
193
|
apiHost?: string;
|
|
@@ -228,12 +228,12 @@ declare class SignInWithYouVersionResult {
|
|
|
228
228
|
|
|
229
229
|
type SignInWithYouVersionPermissionValues = (typeof SignInWithYouVersionPermission)[keyof typeof SignInWithYouVersionPermission];
|
|
230
230
|
interface AuthenticationState {
|
|
231
|
-
isAuthenticated: boolean;
|
|
232
|
-
isLoading: boolean;
|
|
233
|
-
accessToken: string | null;
|
|
234
|
-
idToken: string | null;
|
|
235
|
-
result: SignInWithYouVersionResult | null;
|
|
236
|
-
error: Error | null;
|
|
231
|
+
readonly isAuthenticated: boolean;
|
|
232
|
+
readonly isLoading: boolean;
|
|
233
|
+
readonly accessToken: string | null;
|
|
234
|
+
readonly idToken: string | null;
|
|
235
|
+
readonly result: SignInWithYouVersionResult | null;
|
|
236
|
+
readonly error: Error | null;
|
|
237
237
|
}
|
|
238
238
|
type AuthenticationScopes = 'profile' | 'email';
|
|
239
239
|
|
package/package.json
CHANGED
|
@@ -3,9 +3,9 @@ import type { BibleVersion } from '@/types';
|
|
|
3
3
|
export const mockVersionKJV: BibleVersion = {
|
|
4
4
|
id: 1,
|
|
5
5
|
abbreviation: 'KJV',
|
|
6
|
-
|
|
6
|
+
promotional_content:
|
|
7
7
|
" King James Version (KJV) The King James Version (KJV) of the holy Bible was first printed in 1611, but the main edition used today is the 1769 version. The King James Version (KJV) is also known as the Authorized (or Authorised) Version (AV) because it was authorized to be read in churches. For over 300 years it was the main English translation used in the English speaking world, and is much admired and respected. About 400 words and phrases coined or popularised by the King James Version are part the English language today. Revision The King James Version of the Bible was not a new translation but a revision of the English Bible which was commissioned by King James I of Great Britain, following the Church of England Hampton Court Conference in 1604. 54 scholars from London, Oxford and Cambridge worked on the project. They were all from the Church of England (Anglicans), but included those of traditional and Puritan views. Officially the 1586 Bishop’s Bible was used as the base for the revision, but the scholars referenced all existing Bible translations in English, such as the Geneva Bible and Tyndale, and also editions in other languages. The completed Bible was first printed in 1611, and included the Apocrypha, which is omitted from this edition. 1769 edition In 1611 English spelling and punctuation were not in standard forms, and the Bible underwent a mainly-orthographic revision by Oxford and Cambridge universities in 1769, which is the version most people use today. The rights of the King James Version of the Bible were, and still are, protected under British law and are vested in the Crown. Bible Society edition In 1804 the British and Foreign Bible Society (BFBS) was founded and they printed millions of cheap copies of the Bible for people to buy and read. Through the work of the Bible Societies the King James Version (KJV) became the most printed and most widely read book in the world. 1954 Paragraphed Edition The King James Version was printed with each new verse starting on a new line. In 1954 the British and Foreign Bible Society produced a new edition of the KJV, keeping the original 1769 text, but adding sub-titles and paragraphs, making it easier to read. In 2011 this was reprinted in a special edition, with other appendices such as a Glossary, and concordance, to mark the 400th anniversary of the King James Version. This is the text used in this on-line edition. The paragraphing, sub-headings from 1954, and other additions from 2011, are copyright the British and Foreign Bible Society. Copyright Information Rights in the Authorized (King James) Version of the Bible are vested in the Crown. Published by permission of the Crown's patentee, Cambridge University Press. This edition This edition of the King James Authorised Version was paragraphed with sub-headings added by the British and Foreign Bible Society in 1954 and released again as a special edition in 2011. BFBS additions © 2011 British and Foreign Bible Society This text is maintained by the British and Foreign Bible Society If you are interested in obtaining a printed copy, please contact the British and Foreign Bible Society at www.biblesociety.org.uk",
|
|
8
|
-
|
|
8
|
+
copyright:
|
|
9
9
|
'Rights in the Authorized (King James) Version in the United Kingdom are vested in the Crown. Published by permission of the Crown’s patentee, Cambridge University Press.',
|
|
10
10
|
info: null,
|
|
11
11
|
publisher_url: null,
|
|
@@ -88,9 +88,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
88
88
|
{
|
|
89
89
|
id: 110,
|
|
90
90
|
abbreviation: 'NIrV',
|
|
91
|
-
|
|
91
|
+
promotional_content:
|
|
92
92
|
'Biblica is a global Bible ministry inspired by radical generosity. We are motivated by the belief that God’s Word radically changes lives, and that everyone everywhere deserves to experience its truth for themselves. To that end, we pioneer ways to break down barriers to the Bible, doing whatever it takes to activate Scripture where needed most.\nNow in its third century of ministry, Biblica continues to produce relevant, reliable Scripture translations and innovative resources that power the Bible ministry of hundreds of global mission organizations. Together, we invite millions to discover the love of Jesus Christ through our three core pillars of ministry:\nGateway Translation\nWe translate God’s Word for the world’s most strategic languages, catalyzing greater reach to Bibleless language communities.\nFrontline Church\nWe equip the frontlines of Gospel ministry with Scripture resources that serve the unreached, unengaged, and unseen.\nKids in Crisis\nWe develop and deploy Bible programs that bring the love of Jesus to children and youth in the world’s hardest places.',
|
|
93
|
-
|
|
93
|
+
copyright:
|
|
94
94
|
'Holy Bible, New International Reader’s Version®, NIrV®\nCopyright © 1995, 1996, 1998, 2014 by Biblica, Inc.®\nUsed by permission. All rights reserved worldwide.',
|
|
95
95
|
info: null,
|
|
96
96
|
publisher_url: 'https://www.biblica.com/yv-learn-more/',
|
|
@@ -172,9 +172,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
172
172
|
{
|
|
173
173
|
id: 111,
|
|
174
174
|
abbreviation: 'NIV11',
|
|
175
|
-
|
|
175
|
+
promotional_content:
|
|
176
176
|
'Biblica is the worldwide publisher and translation sponsor of the New International Version—one of the most widely read contemporary English versions of the Bible.\nAt Biblica, we believe that with God, all things are possible. Partnering with other ministries and people like you, we are reaching the world with God’s Word, providing Bibles that are easier to understand and faster to receive. When God’s Word is put into someone’s hands, it has the power to change everything.\nTo learn more, visit biblica.com and facebook.com/Biblica.',
|
|
177
|
-
|
|
177
|
+
copyright:
|
|
178
178
|
'The Holy Bible, New International Version® NIV®\nCopyright © 1973, 1978, 1984, 2011 by Biblica, Inc.®\nUsed by Permission of Biblica, Inc.® All rights reserved worldwide.',
|
|
179
179
|
info: null,
|
|
180
180
|
publisher_url: 'https://www.biblica.com/yv-learn-more/',
|
|
@@ -256,9 +256,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
256
256
|
{
|
|
257
257
|
id: 113,
|
|
258
258
|
abbreviation: 'NIVUK11',
|
|
259
|
-
|
|
259
|
+
promotional_content:
|
|
260
260
|
'Biblica is the worldwide publisher and translation sponsor of the New International Version – one of the most widely read contemporary English versions of the Bible.\nAt Biblica, we believe that with God, all things are possible. Partnering with other ministries and people like you, we are reaching the world with God’s Word, providing Bibles that are easier to understand and faster to receive. When God’s Word is put into someone’s hands, it has the power to change everything.\nTo learn more, visit biblica.com and facebook.com/Biblica.',
|
|
261
|
-
|
|
261
|
+
copyright:
|
|
262
262
|
'The Holy Bible, New International Version® (Anglicised), NIV®\nCopyright © 1979, 1984, 2011 by Biblica, Inc.®\nUsed by permission of Biblica, Inc.® All rights reserved worldwide.',
|
|
263
263
|
info: null,
|
|
264
264
|
publisher_url: 'https://www.biblica.com/yv-learn-more/',
|
|
@@ -340,9 +340,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
340
340
|
{
|
|
341
341
|
id: 1588,
|
|
342
342
|
abbreviation: 'AMP',
|
|
343
|
-
|
|
343
|
+
promotional_content:
|
|
344
344
|
'The Amplified Bible is a Literal Equivalent translation that, by using synonyms and definitions, both explains and expands the meaning of words in the text by placing amplification in parentheses, brackets, and after key words. This unique system of translation allows the reader to more completely and clearly grasp the meaning as it was understood in the original languages. Additionally, amplifications may provide further theological, historical, and other details for a better understanding of the text.',
|
|
345
|
-
|
|
345
|
+
copyright:
|
|
346
346
|
'Amplified® Bible\nCopyright © 2015 by\nThe Lockman Foundation, La Habra, CA 90631\nAll rights reserved. http://www.lockman.org',
|
|
347
347
|
info: null,
|
|
348
348
|
publisher_url: null,
|
|
@@ -424,9 +424,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
424
424
|
{
|
|
425
425
|
id: 100,
|
|
426
426
|
abbreviation: 'NASB1995',
|
|
427
|
-
|
|
427
|
+
promotional_content:
|
|
428
428
|
'NEW AMERICAN STANDARD BIBLE® Copyright © 1960, 1962, 1963, 1968, 1971, 1972, 1973, 1975, 1977, 1995 by THE LOCKMAN FOUNDATION A Corporation Not for Profit LA HABRA, CA All Rights Reserved http://www.lockman.org',
|
|
429
|
-
|
|
429
|
+
copyright:
|
|
430
430
|
'NEW AMERICAN STANDARD BIBLE® Copyright © 1960, 1962, 1963, 1968, 1971, 1972, 1973, 1975, 1977, 1995 by THE LOCKMAN FOUNDATION A Corporation Not for Profit LA HABRA, CA All Rights Reserved http://www.lockman.org',
|
|
431
431
|
info: null,
|
|
432
432
|
publisher_url: null,
|
|
@@ -508,9 +508,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
508
508
|
{
|
|
509
509
|
id: 2692,
|
|
510
510
|
abbreviation: 'NASB2020',
|
|
511
|
-
|
|
511
|
+
promotional_content:
|
|
512
512
|
'The NASB 2020 is an update of the NASB 1995 that further improves accuracy where possible, modernizes language, and improves readability. These refinements maintain faithful accuracy to the original texts and provide a clear understanding of God’s Word to those who prefer more modern English standards. The long-established translation standard for the NASB remains the same as it always has been, that is to accurately translate the inspired Word of God from the Hebrew, Aramaic, and Greek texts into modern English that is clearly understandable today.',
|
|
513
|
-
|
|
513
|
+
copyright:
|
|
514
514
|
'NEW AMERICAN STANDARD BIBLE® NASB®\nCopyright © 1960, 1971, 1977,1995, 2020 by The Lockman Foundation\nA Corporation Not for Profit\nLa Habra, CA\nAll Rights Reserved\nwww.lockman.org',
|
|
515
515
|
info: null,
|
|
516
516
|
publisher_url: null,
|
|
@@ -592,8 +592,8 @@ export const mockVersions: BibleVersion[] = [
|
|
|
592
592
|
{
|
|
593
593
|
id: 12,
|
|
594
594
|
abbreviation: 'ASV',
|
|
595
|
-
|
|
596
|
-
|
|
595
|
+
promotional_content: null,
|
|
596
|
+
copyright: null,
|
|
597
597
|
info: null,
|
|
598
598
|
publisher_url: null,
|
|
599
599
|
language_tag: 'en',
|
|
@@ -674,8 +674,8 @@ export const mockVersions: BibleVersion[] = [
|
|
|
674
674
|
{
|
|
675
675
|
id: 42,
|
|
676
676
|
abbreviation: 'CPDV',
|
|
677
|
-
|
|
678
|
-
|
|
677
|
+
promotional_content: null,
|
|
678
|
+
copyright: null,
|
|
679
679
|
info: null,
|
|
680
680
|
publisher_url: null,
|
|
681
681
|
language_tag: 'en',
|
|
@@ -763,9 +763,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
763
763
|
{
|
|
764
764
|
id: 130,
|
|
765
765
|
abbreviation: 'TOJB2011',
|
|
766
|
-
|
|
766
|
+
promotional_content:
|
|
767
767
|
'THE ORTHODOX JEWISH TANAKH\nArtists For Israel Intl Inc.\nThis version also appears with the Orthodox Yiddish Triglot which presents the Hebrew Yiddish script in Latin script and an English word for word translation, available at afii.org/Torah\nTo donate PayPal.Me',
|
|
768
|
-
|
|
768
|
+
copyright:
|
|
769
769
|
'THE ORTHODOX JEWISH BIBLE\nFOURTH EDITION REVISED © Artists For Israel Intl Inc., 2002-2011, 2021, 2024.',
|
|
770
770
|
info: null,
|
|
771
771
|
publisher_url: null,
|
|
@@ -847,8 +847,8 @@ export const mockVersions: BibleVersion[] = [
|
|
|
847
847
|
{
|
|
848
848
|
id: 206,
|
|
849
849
|
abbreviation: 'engWEBUS',
|
|
850
|
-
|
|
851
|
-
|
|
850
|
+
promotional_content: 'This Public Domain Bible text is courtesy of eBible.org.',
|
|
851
|
+
copyright: 'PUBLIC DOMAIN (not copyrighted)',
|
|
852
852
|
info: null,
|
|
853
853
|
publisher_url: null,
|
|
854
854
|
language_tag: 'en',
|
|
@@ -943,9 +943,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
943
943
|
{
|
|
944
944
|
id: 1932,
|
|
945
945
|
abbreviation: 'FBV',
|
|
946
|
-
|
|
946
|
+
promotional_content:
|
|
947
947
|
'FBV: this translation is directly from the Hebrew and Greek text. It is licensed under a Creative Commons Attribution-ShareAlike 4.0 Unported License. This means this work can be copied and used as long as it is identified as the Free Bible Version and any adaptations are identified. Any derivative work is to be released under the same license. (A full description of the license is at https://creativecommons.org/licenses/by-sa/4.0/legalcode). The intent is to be as faithful as possible to the original meaning without being awkward or misleading. The style is contemporary English, avoiding slang or colloquialisms, speaking to our modern society in a way people will understand. The Free Bible Version is a project of Free Bible Ministry www.freebibleministry.org',
|
|
948
|
-
|
|
948
|
+
copyright:
|
|
949
949
|
'Dr. Jonathan Gallagher. Released under Creative Commons Attribution-ShareAlike 4.0 Unported License. Version 4.3. For corrections send email to jonathangallagherfbv@gmail.com',
|
|
950
950
|
info: null,
|
|
951
951
|
publisher_url: null,
|
|
@@ -1027,9 +1027,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
1027
1027
|
{
|
|
1028
1028
|
id: 2660,
|
|
1029
1029
|
abbreviation: 'LSV',
|
|
1030
|
-
|
|
1030
|
+
promotional_content:
|
|
1031
1031
|
'The Literal Standard Version of The Holy Bible is a registered copyright of Covenant Press and the Covenant Christian Coalition (© 2020), but has been subsequently released under the Creative Commons Attribution-ShareAlike license (CC BY-SA) per our desire to provide God’s word freely. Covenant Press requests that the text remain unaltered in the English language and that translations based on the LSV maintain the same spirit of faithfulness to the original Hebrew, Aramaic, and Greek text. Attribution of minor citations for personal or non-commercial use can be provided as simply “LSV” or “Literal Standard Version.” Citations for commercial use, or distribution of the entire LSV Bible or entire book(s) of the LSV Bible, must be fully attributed and include both “Literal Standard Version (LSV)” and the name of our organization. Covenant Press is soliciting partnerships with Bible publishers that are interested in the LSV project. For queries about partnering with us, please email the translation team at covenantpress@ccc.one. To learn more, visit lsvbible.com. The purpose behind the LSV is to provide readers with a modern, easy-to-read, literal, and accurate translation of the Bible that is free to read, distribute, and translate from. We pray that God will use the LSV to illuminate the hearts and minds of multitudes with the good news that His Son Jesus Christ came in the flesh, died for our sins as a substitutionary sacrifice, rose bodily from the dead, and is coming back again.',
|
|
1032
|
-
|
|
1032
|
+
copyright:
|
|
1033
1033
|
'The Literal Standard Version of The Holy Bible is a registered copyright of Covenant Press and the Covenant Christian Coalition (© 2020), but has been subsequently released under the Creative Commons Attribution-ShareAlike license (CC BY-SA) per our desire to provide God’s word freely. Covenant Press requests that the text remain unaltered in the English language and that translations based on the LSV maintain the same spirit of faithfulness to the original Hebrew, Aramaic, and Greek text. Attribution of minor citations for personal or non-commercial use can be provided as simply “LSV” or “Literal Standard Version.” Citations for commercial use, or distribution of the entire LSV Bible or entire book(s) of the LSV Bible, must be fully attributed and include both “Literal Standard Version (LSV)” and the name of our organization. Covenant Press is soliciting partnerships with Bible publishers that are interested in the LSV project. For queries about partnering with us, please email the translation team at covenantpress@ccc.one. To learn more, visit lsvbible.com. The purpose behind the LSV is to provide readers with a modern, easy-to-read, literal, and accurate translation of the Bible that is free to read, distribute, and translate from. We pray that God will use the LSV to illuminate the hearts and minds of multitudes with the good news that His Son Jesus Christ came in the flesh, died for our sins as a substitutionary sacrifice, rose bodily from the dead, and is coming back again.',
|
|
1034
1034
|
info: null,
|
|
1035
1035
|
publisher_url: null,
|
|
@@ -1111,8 +1111,8 @@ export const mockVersions: BibleVersion[] = [
|
|
|
1111
1111
|
{
|
|
1112
1112
|
id: 3034,
|
|
1113
1113
|
abbreviation: 'BSB',
|
|
1114
|
-
|
|
1115
|
-
|
|
1114
|
+
promotional_content: 'https://berean.bible/',
|
|
1115
|
+
copyright:
|
|
1116
1116
|
"The Holy Bible, Berean Standard Bible, BSB is produced in cooperation with Bible Hub, Discovery Bible, OpenBible.com, and the Berean Bible Translation Committee. This text of God's Word has been dedicated to the public domain.",
|
|
1117
1117
|
info: null,
|
|
1118
1118
|
publisher_url: null,
|
|
@@ -1194,9 +1194,9 @@ export const mockVersions: BibleVersion[] = [
|
|
|
1194
1194
|
{
|
|
1195
1195
|
id: 3427,
|
|
1196
1196
|
abbreviation: 'TCENT',
|
|
1197
|
-
|
|
1197
|
+
promotional_content:
|
|
1198
1198
|
'Copyright © 2022 Robert Adam Boyd\nThe Text-Critical English New Testament and the Byzantine Text Version are made available to you under the terms of the Creative Commons Attribution license 4.0.\nYou are free to:\nShare — copy and redistribute the material in any medium or format\nAdapt — remix, transform, and build upon the material for any purpose, even commercially,\nUnder the following terms:\nAttribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.\nNo additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.\n"The Text-Critical English New Testament" and "Byzantine Text Version" are trademarks of Robert Adam Boyd. If you adapt, remix, transform, or in any other way change the translation or footnotes, you may not call it "The Text-Critical English New Testament" or "Byzantine Text Version".',
|
|
1199
|
-
|
|
1199
|
+
copyright: 'Copyright © 2022 Robert Adam Boyd',
|
|
1200
1200
|
info: null,
|
|
1201
1201
|
publisher_url: null,
|
|
1202
1202
|
language_tag: 'en',
|
|
@@ -8,7 +8,7 @@ const BibleIndexVerseSchema = z.object({
|
|
|
8
8
|
title: z.string(),
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
export type BibleIndexVerse = z.infer<typeof BibleIndexVerseSchema
|
|
11
|
+
export type BibleIndexVerse = Readonly<z.infer<typeof BibleIndexVerseSchema>>;
|
|
12
12
|
|
|
13
13
|
const BibleIndexChapterSchema = z.object({
|
|
14
14
|
/** Chapter identifier */
|
|
@@ -19,7 +19,7 @@ const BibleIndexChapterSchema = z.object({
|
|
|
19
19
|
verses: z.array(BibleIndexVerseSchema),
|
|
20
20
|
});
|
|
21
21
|
|
|
22
|
-
export type BibleIndexChapter = z.infer<typeof BibleIndexChapterSchema
|
|
22
|
+
export type BibleIndexChapter = Readonly<z.infer<typeof BibleIndexChapterSchema>>;
|
|
23
23
|
|
|
24
24
|
const BibleIndexBookSchema = z.object({
|
|
25
25
|
/** Book identifier */
|
|
@@ -36,7 +36,7 @@ const BibleIndexBookSchema = z.object({
|
|
|
36
36
|
chapters: z.array(BibleIndexChapterSchema),
|
|
37
37
|
});
|
|
38
38
|
|
|
39
|
-
export type BibleIndexBook = z.infer<typeof BibleIndexBookSchema
|
|
39
|
+
export type BibleIndexBook = Readonly<z.infer<typeof BibleIndexBookSchema>>;
|
|
40
40
|
|
|
41
41
|
const _BibleIndexSchema = z.object({
|
|
42
42
|
/** Text direction (e.g., "ltr") */
|
|
@@ -45,4 +45,4 @@ const _BibleIndexSchema = z.object({
|
|
|
45
45
|
books: z.array(BibleIndexBookSchema),
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
export type BibleIndex = z.infer<typeof _BibleIndexSchema
|
|
48
|
+
export type BibleIndex = Readonly<z.infer<typeof _BibleIndexSchema>>;
|
package/src/schemas/book.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { BOOK_IDS } from '../utils/constants';
|
|
|
3
3
|
import { BibleChapterSchema } from './chapter';
|
|
4
4
|
|
|
5
5
|
export const CanonSchema = z.enum(['old_testament', 'new_testament', 'deuterocanon']);
|
|
6
|
-
export type Canon = z.infer<typeof CanonSchema
|
|
6
|
+
export type Canon = Readonly<z.infer<typeof CanonSchema>>;
|
|
7
7
|
|
|
8
8
|
// https://github.com/colinhacks/zod/discussions/4934#discussioncomment-13858053
|
|
9
9
|
export const BookUsfmSchema = z.union([
|
|
@@ -27,5 +27,5 @@ export const BibleBookSchema = z.object({
|
|
|
27
27
|
chapters: z.array(BibleChapterSchema).optional(),
|
|
28
28
|
});
|
|
29
29
|
|
|
30
|
-
export type BibleBook = z.infer<typeof BibleBookSchema
|
|
31
|
-
export type CANON = z.infer<typeof CanonSchema
|
|
30
|
+
export type BibleBook = Readonly<z.infer<typeof BibleBookSchema>>;
|
|
31
|
+
export type CANON = Readonly<z.infer<typeof CanonSchema>>;
|
package/src/schemas/chapter.ts
CHANGED
|
@@ -21,8 +21,8 @@ const _CollectionSchema = <T extends z.ZodTypeAny>(
|
|
|
21
21
|
/**
|
|
22
22
|
* Generic Collection type for paginated responses
|
|
23
23
|
*/
|
|
24
|
-
export type Collection<T> = {
|
|
24
|
+
export type Collection<T> = Readonly<{
|
|
25
25
|
data: T[];
|
|
26
26
|
next_page_token: string | null;
|
|
27
27
|
total_size?: number;
|
|
28
|
-
}
|
|
28
|
+
}>;
|
package/src/schemas/language.ts
CHANGED
package/src/schemas/passage.ts
CHANGED
package/src/schemas/verse.ts
CHANGED
package/src/schemas/version.ts
CHANGED
|
@@ -7,9 +7,9 @@ export const BibleVersionSchema = z.object({
|
|
|
7
7
|
/** Bible version abbreviation */
|
|
8
8
|
abbreviation: z.string(),
|
|
9
9
|
/** Long copyright text */
|
|
10
|
-
|
|
10
|
+
promotional_content: z.string().nullable().optional(),
|
|
11
11
|
/** Short copyright text */
|
|
12
|
-
|
|
12
|
+
copyright: z.string().nullable().optional(),
|
|
13
13
|
/** Bible information text */
|
|
14
14
|
info: z.string().nullable().optional(),
|
|
15
15
|
/** Publisher URL */
|
|
@@ -30,4 +30,4 @@ export const BibleVersionSchema = z.object({
|
|
|
30
30
|
youversion_deep_link: z.url(),
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
export type BibleVersion = z.infer<typeof BibleVersionSchema
|
|
33
|
+
export type BibleVersion = Readonly<z.infer<typeof BibleVersionSchema>>;
|
package/src/schemas/votd.ts
CHANGED
package/src/types/auth.ts
CHANGED
|
@@ -7,12 +7,12 @@ export type SignInWithYouVersionPermissionValues =
|
|
|
7
7
|
(typeof SignInWithYouVersionPermission)[keyof typeof SignInWithYouVersionPermission];
|
|
8
8
|
|
|
9
9
|
export interface AuthenticationState {
|
|
10
|
-
isAuthenticated: boolean;
|
|
11
|
-
isLoading: boolean;
|
|
12
|
-
accessToken: string | null;
|
|
13
|
-
idToken: string | null;
|
|
14
|
-
result: SignInWithYouVersionResult | null;
|
|
15
|
-
error: Error | null;
|
|
10
|
+
readonly isAuthenticated: boolean;
|
|
11
|
+
readonly isLoading: boolean;
|
|
12
|
+
readonly accessToken: string | null;
|
|
13
|
+
readonly idToken: string | null;
|
|
14
|
+
readonly result: SignInWithYouVersionResult | null;
|
|
15
|
+
readonly error: Error | null;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
export type AuthenticationScopes = 'profile' | 'email';
|
package/src/types/book.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type BibleBook = {
|
|
1
|
+
export type BibleBook = Readonly<{
|
|
2
2
|
id: BOOK_ID; // Book identifier (USFM)
|
|
3
3
|
title: string;
|
|
4
4
|
abbreviation?: string; // Book name abbreviation if provided by publisher
|
|
5
5
|
canon: CANON;
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/array-type -- Array<> syntax required for template literal type to represent chapter references
|
|
7
7
|
chapters?: Array<`${BOOK_ID}.${number | `INTRO${number}`}`>; // Ordered list of chapter ids for given Bible and book (e.g., ["GEN.1", "GEN.2", "3JN.INTRO1", "3JN.1"])
|
|
8
|
-
}
|
|
8
|
+
}>;
|
|
9
9
|
|
|
10
10
|
export type BOOK_ID =
|
|
11
11
|
| 'GEN'
|
package/src/types/chapter.ts
CHANGED