waha-shared 1.0.263 → 1.0.264
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 +60 -3
- package/dist/data/areas/areas.schema.json +4 -13
- package/dist/data/areas/index.js +1 -0
- package/dist/data/aslTimestamps/aslTimestamps.schema.json +6 -22
- package/dist/data/aslTimestamps/index.js +1 -0
- package/dist/data/bibleAudios/bibleAudios.schema.json +8 -27
- package/dist/data/bibleAudios/index.js +1 -0
- package/dist/data/bibleBooks/bibleBooks.schema.json +8 -24
- package/dist/data/bibleBooks/index.js +1 -0
- package/dist/data/bibleChaptersList/bibleChaptersList.schema.json +3 -7
- package/dist/data/bibleChaptersList/index.js +1 -0
- package/dist/data/bibleStatuses/bibleStatuses.schema.json +7 -23
- package/dist/data/bibleStatuses/index.js +1 -0
- package/dist/data/bibleTexts/bibleTexts.schema.json +7 -22
- package/dist/data/bibleTexts/index.js +1 -0
- package/dist/data/clones/clones.schema.json +8 -26
- package/dist/data/clones/index.js +1 -0
- package/dist/data/countries/countries.schema.json +8 -28
- package/dist/data/countries/index.js +1 -0
- package/dist/data/countriesAndLanguages/countriesAndLanguages.schema.json +5 -17
- package/dist/data/countriesAndLanguages/index.js +1 -0
- package/dist/data/crowdinLanguages/crowdinLanguages.schema.json +5 -18
- package/dist/data/crowdinLanguages/index.js +1 -0
- package/dist/data/curriculumFoundations/curriculumFoundations.schema.json +7 -21
- package/dist/data/curriculumFoundations/index.js +1 -0
- package/dist/data/curriculumQuestions/curriculumQuestions.schema.json +9 -28
- package/dist/data/curriculumQuestions/index.js +1 -0
- package/dist/data/curriculumTopics/curriculumTopics.schema.json +7 -21
- package/dist/data/curriculumTopics/index.js +1 -0
- package/dist/data/iosVoiceOverLanguages/index.js +1 -0
- package/dist/data/iosVoiceOverLanguages/iosVoiceOverLanguages.schema.json +3 -7
- package/dist/data/iso6933LanguageCodes/index.js +1 -0
- package/dist/data/iso6933LanguageCodes/iso6933LanguageCodes.schema.json +4 -10
- package/dist/data/languageAssets/index.js +1 -0
- package/dist/data/languageAssets/languageAssets.schema.json +5 -14
- package/dist/data/languages/index.js +1 -0
- package/dist/data/languages/languages.json +0 -1
- package/dist/data/languages/languages.schema.json +18 -76
- package/dist/data/mediaDurations/index.js +1 -0
- package/dist/data/mediaDurations/mediaDurations.schema.json +5 -14
- package/dist/data/notification/index.js +1 -0
- package/dist/data/notification/notification.schema.json +20 -71
- package/dist/data/numeralMaps/index.js +1 -0
- package/dist/data/numeralMaps/numeralMaps.schema.json +5 -22
- package/dist/data/phoneLanguages/index.js +1 -0
- package/dist/data/phoneLanguages/phoneLanguages.schema.json +5 -16
- package/dist/data/questions/index.js +1 -0
- package/dist/data/questions/questions.schema.json +7 -24
- package/dist/data/releaseNotes/index.js +1 -0
- package/dist/data/releaseNotes/releaseNotes.schema.json +6 -18
- package/dist/data/screenshots/index.js +1 -0
- package/dist/data/screenshots/screenshots.schema.json +4 -10
- package/dist/data/scripts/index.js +1 -0
- package/dist/data/scripts/scripts.schema.json +7 -20
- package/dist/data/sets/index.js +1 -0
- package/dist/data/sets/sets.schema.json +8 -30
- package/dist/data/specialIds/index.js +1 -0
- package/dist/data/specialIds/specialIds.schema.json +6 -19
- package/dist/data/translationsApp/index.d.ts +10 -11
- package/dist/data/translationsApp/index.js +1 -0
- package/dist/data/translationsApp/translationsApp.json +11676 -7
- package/dist/data/translationsApp/translationsApp.schema.json +313 -1086
- package/dist/data/translationsApp/translationsApp.zod.d.ts +10 -11
- package/dist/data/translationsApp/translationsApp.zod.js +11 -11
- package/dist/data/translationsFtb/index.js +1 -0
- package/dist/data/translationsFtb/translationsFtb.schema.json +70 -274
- package/dist/data/translationsIntroduction/index.js +1 -0
- package/dist/data/translationsIntroduction/translationsIntroduction.schema.json +43 -165
- package/dist/data/translationsQuestion/index.js +1 -0
- package/dist/data/translationsQuestion/translationsQuestion.schema.json +5 -13
- package/dist/data/translationsSet/index.js +1 -0
- package/dist/data/translationsSet/translationsSet.json +789 -0
- package/dist/data/translationsSet/translationsSet.schema.json +11 -36
- package/dist/data/translationsSolarSpeaker/index.js +1 -0
- package/dist/data/translationsSolarSpeaker/translationsSolarSpeaker.schema.json +46 -178
- package/dist/data/translationsSpokenQuestion/index.js +1 -0
- package/dist/data/translationsSpokenQuestion/translationsSpokenQuestion.schema.json +5 -13
- package/dist/data/youtubePlaylists/index.js +1 -0
- package/dist/data/youtubePlaylists/youtubePlaylists.schema.json +4 -10
- package/dist/data/youtubeVideos/index.js +1 -0
- package/dist/data/youtubeVideos/youtubeVideos.schema.json +4 -10
- package/dist/types/analytics.d.ts +26 -12
- package/dist/types/articles.d.ts +28 -0
- package/dist/types/articles.js +5 -9
- package/dist/types/microLessons.d.ts +60 -9
- package/dist/types/microLessons.js +23 -19
- package/dist/types/webContent.d.ts +16 -0
- package/dist/types/webContent.js +20 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,67 @@
|
|
|
1
|
-
# Waha Shared
|
|
1
|
+
# Waha Shared
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Shared data, types, functions, and assets used across multiple Waha projects:
|
|
4
4
|
|
|
5
5
|
- [waha-upload](https://github.com/kingdomstrategies/waha-upload)
|
|
6
6
|
- [waha-web](https://github.com/kingdomstrategies/waha-web)
|
|
7
7
|
- [waha-website](https://github.com/kingdomstrategies/waha-website)
|
|
8
8
|
- [waha-dashboard](https://github.com/kingdomstrategies/waha-dashboard)
|
|
9
|
+
- [waha-video-generation](https://github.com/kingdomstrategies/waha-video-generation)
|
|
9
10
|
|
|
10
|
-
This package
|
|
11
|
+
This package is published to npm as `waha-shared` and consumed by those projects as a dependency.
|
|
12
|
+
|
|
13
|
+
## Directory Structure
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
shared/
|
|
17
|
+
├── types/ # TypeScript type definitions (Zod-based)
|
|
18
|
+
├── functions/ # Utility functions (language info, Bible data, sets, etc.)
|
|
19
|
+
├── data/ # JSON data files with Zod validation schemas
|
|
20
|
+
├── assets/ # Fonts, icons, and React components (logos, set icons)
|
|
21
|
+
├── translations/ # Raw translation JSON files from Crowdin
|
|
22
|
+
├── dist/ # Built output (do not edit directly)
|
|
23
|
+
└── package.json
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## How Data Works
|
|
27
|
+
|
|
28
|
+
Each subdirectory in `data/` follows a consistent pattern:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
data/languages/
|
|
32
|
+
├── languages.json # Raw data
|
|
33
|
+
├── languages.zod.ts # Zod schema defining the shape
|
|
34
|
+
├── languages.schema.json # JSON Schema (auto-generated)
|
|
35
|
+
└── index.ts # Validates JSON against Zod and exports typed data (auto-generated)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Type Generation Pipeline
|
|
39
|
+
|
|
40
|
+
Types flow through a pipeline managed by `yarn prep`:
|
|
41
|
+
|
|
42
|
+
```
|
|
43
|
+
Zod schema (.zod.ts) and raw data file (.json)
|
|
44
|
+
→ JSON Schema (.schema.json)
|
|
45
|
+
→ Python Pydantic models
|
|
46
|
+
→ Python data constants
|
|
47
|
+
→ TypeScript index.ts
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
When you modify a `.zod.ts` file, run `yarn prep` from the repo root to regenerate everything downstream.
|
|
51
|
+
|
|
52
|
+
## Building & Publishing
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
yarn update
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
This will update the `dist` folder, commit changes, and publish to the npm registry.
|
|
59
|
+
|
|
60
|
+
The `dist/` directory is the build output — never edit files in it directly.
|
|
61
|
+
|
|
62
|
+
## Adding New Data
|
|
63
|
+
|
|
64
|
+
1. Create a new directory under `data/`, e.g. `data/myNewData/`
|
|
65
|
+
2. Add the raw JSON file: `myNewData.json`
|
|
66
|
+
3. Define the Zod schema: `myNewData.zod.ts`
|
|
67
|
+
4. Run `yarn prep` to auto-generate the JSON schema, Python types, Python data, and index file
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "This file is auto-generated by scripts/prep. Do not edit manually.",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
6
|
+
"$schema": { "type": "string" },
|
|
8
7
|
"data": {
|
|
9
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"minItems": 1,
|
|
@@ -48,20 +47,12 @@
|
|
|
48
47
|
"description": "Longitude coordinate for the area center point"
|
|
49
48
|
}
|
|
50
49
|
},
|
|
51
|
-
"required": [
|
|
52
|
-
"name",
|
|
53
|
-
"id",
|
|
54
|
-
"lat",
|
|
55
|
-
"lng"
|
|
56
|
-
],
|
|
50
|
+
"required": ["name", "id", "lat", "lng"],
|
|
57
51
|
"additionalProperties": false,
|
|
58
52
|
"description": "A geographic area with identification, coordinates, and display information"
|
|
59
53
|
},
|
|
60
54
|
"description": "Schema for geographic areas with coordinates and metadata"
|
|
61
55
|
}
|
|
62
56
|
},
|
|
63
|
-
"required": [
|
|
64
|
-
"$schema",
|
|
65
|
-
"data"
|
|
66
|
-
]
|
|
57
|
+
"required": ["$schema", "data"]
|
|
67
58
|
}
|
package/dist/data/areas/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.areas = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const areas_zod_1 = require("./areas.zod");
|
|
5
6
|
const data = require('./areas.json');
|
|
6
7
|
exports.areas = areas_zod_1.Areas.parse(data.data);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "This file is auto-generated by scripts/prep. Do not edit manually.",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
6
|
+
"$schema": { "type": "string" },
|
|
8
7
|
"data": {
|
|
9
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "array",
|
|
@@ -30,9 +29,7 @@
|
|
|
30
29
|
"minItems": 2,
|
|
31
30
|
"maxItems": 2,
|
|
32
31
|
"type": "array",
|
|
33
|
-
"items": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
32
|
+
"items": { "type": "string" },
|
|
36
33
|
"description": "The start and end verse IDs for this section (e.g., GEN.1.1, GEN.2.4)"
|
|
37
34
|
},
|
|
38
35
|
"verses": {
|
|
@@ -61,29 +58,16 @@
|
|
|
61
58
|
"description": "The verse ID (e.g., GEN.1.1)"
|
|
62
59
|
}
|
|
63
60
|
},
|
|
64
|
-
"required": [
|
|
65
|
-
"chapter",
|
|
66
|
-
"timestamp",
|
|
67
|
-
"verse",
|
|
68
|
-
"verseId"
|
|
69
|
-
],
|
|
61
|
+
"required": ["chapter", "timestamp", "verse", "verseId"],
|
|
70
62
|
"additionalProperties": false
|
|
71
63
|
},
|
|
72
64
|
"description": "Array of verse timing information"
|
|
73
65
|
}
|
|
74
66
|
},
|
|
75
|
-
"required": [
|
|
76
|
-
"bookId",
|
|
77
|
-
"chapters",
|
|
78
|
-
"section",
|
|
79
|
-
"verses"
|
|
80
|
-
],
|
|
67
|
+
"required": ["bookId", "chapters", "section", "verses"],
|
|
81
68
|
"additionalProperties": false
|
|
82
69
|
}
|
|
83
70
|
}
|
|
84
71
|
},
|
|
85
|
-
"required": [
|
|
86
|
-
"$schema",
|
|
87
|
-
"data"
|
|
88
|
-
]
|
|
72
|
+
"required": ["$schema", "data"]
|
|
89
73
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.aslTimestamps = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const aslTimestamps_zod_1 = require("./aslTimestamps.zod");
|
|
5
6
|
const data = require('./aslTimestamps.json');
|
|
6
7
|
exports.aslTimestamps = aslTimestamps_zod_1.AslTimestamps.parse(data.data);
|
|
@@ -1,38 +1,26 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "This file is auto-generated by scripts/prep. Do not edit manually.",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
6
|
+
"$schema": { "type": "string" },
|
|
8
7
|
"data": {
|
|
9
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "array",
|
|
11
10
|
"items": {
|
|
12
11
|
"type": "object",
|
|
13
12
|
"properties": {
|
|
14
|
-
"bibleAudioId": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
13
|
+
"bibleAudioId": { "type": "string" },
|
|
17
14
|
"audioSource": {
|
|
18
15
|
"type": "object",
|
|
19
16
|
"properties": {
|
|
20
17
|
"source": {
|
|
21
18
|
"type": "string",
|
|
22
|
-
"enum": [
|
|
23
|
-
"dbl",
|
|
24
|
-
"youVersion",
|
|
25
|
-
"bibleBrain",
|
|
26
|
-
"custom"
|
|
27
|
-
]
|
|
19
|
+
"enum": ["dbl", "youVersion", "bibleBrain", "custom"]
|
|
28
20
|
},
|
|
29
|
-
"sourceId": {
|
|
30
|
-
"type": "string"
|
|
31
|
-
}
|
|
21
|
+
"sourceId": { "type": "string" }
|
|
32
22
|
},
|
|
33
|
-
"required": [
|
|
34
|
-
"source"
|
|
35
|
-
],
|
|
23
|
+
"required": ["source"],
|
|
36
24
|
"additionalProperties": false
|
|
37
25
|
},
|
|
38
26
|
"canDownload": {
|
|
@@ -48,17 +36,10 @@
|
|
|
48
36
|
"description": "Star refers to adding a <star> string before the first line passed to mms forced alignment. Disabling it means that there is not any content read out before the start of verse 1. Most translations read out names of chapters or section headings, which is why adding <star> is the default behavior."
|
|
49
37
|
}
|
|
50
38
|
},
|
|
51
|
-
"required": [
|
|
52
|
-
"bibleAudioId",
|
|
53
|
-
"audioSource",
|
|
54
|
-
"canDownload"
|
|
55
|
-
],
|
|
39
|
+
"required": ["bibleAudioId", "audioSource", "canDownload"],
|
|
56
40
|
"additionalProperties": false
|
|
57
41
|
}
|
|
58
42
|
}
|
|
59
43
|
},
|
|
60
|
-
"required": [
|
|
61
|
-
"$schema",
|
|
62
|
-
"data"
|
|
63
|
-
]
|
|
44
|
+
"required": ["$schema", "data"]
|
|
64
45
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bibleAudios = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const bibleAudios_zod_1 = require("./bibleAudios.zod");
|
|
5
6
|
const data = require('./bibleAudios.json');
|
|
6
7
|
exports.bibleAudios = bibleAudios_zod_1.BibleAudios.parse(data.data);
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "This file is auto-generated by scripts/prep. Do not edit manually.",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
6
|
+
"$schema": { "type": "string" },
|
|
8
7
|
"data": {
|
|
9
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "array",
|
|
11
10
|
"items": {
|
|
12
11
|
"type": "object",
|
|
13
12
|
"properties": {
|
|
14
|
-
"name": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "The name of the book."
|
|
17
|
-
},
|
|
13
|
+
"name": { "type": "string", "description": "The name of the book." },
|
|
18
14
|
"title": {
|
|
19
15
|
"type": "string",
|
|
20
16
|
"description": "The title of the book."
|
|
@@ -28,17 +24,10 @@
|
|
|
28
24
|
"items": {
|
|
29
25
|
"type": "object",
|
|
30
26
|
"properties": {
|
|
31
|
-
"id": {
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
"verses": {
|
|
35
|
-
"type": "number"
|
|
36
|
-
}
|
|
27
|
+
"id": { "type": "string" },
|
|
28
|
+
"verses": { "type": "number" }
|
|
37
29
|
},
|
|
38
|
-
"required": [
|
|
39
|
-
"id",
|
|
40
|
-
"verses"
|
|
41
|
-
],
|
|
30
|
+
"required": ["id", "verses"],
|
|
42
31
|
"additionalProperties": false
|
|
43
32
|
},
|
|
44
33
|
"description": "An array of chapter identifiers for the book."
|
|
@@ -113,9 +102,7 @@
|
|
|
113
102
|
},
|
|
114
103
|
"nameAlternates": {
|
|
115
104
|
"type": "array",
|
|
116
|
-
"items": {
|
|
117
|
-
"type": "string"
|
|
118
|
-
},
|
|
105
|
+
"items": { "type": "string" },
|
|
119
106
|
"description": "Alternative names for the book."
|
|
120
107
|
}
|
|
121
108
|
},
|
|
@@ -138,8 +125,5 @@
|
|
|
138
125
|
}
|
|
139
126
|
}
|
|
140
127
|
},
|
|
141
|
-
"required": [
|
|
142
|
-
"$schema",
|
|
143
|
-
"data"
|
|
144
|
-
]
|
|
128
|
+
"required": ["$schema", "data"]
|
|
145
129
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bibleBooks = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const bibleBooks_zod_1 = require("./bibleBooks.zod");
|
|
5
6
|
const data = require('./bibleBooks.json');
|
|
6
7
|
exports.bibleBooks = bibleBooks_zod_1.BibleBooks.parse(data.data);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "This file is auto-generated by scripts/prep. Do not edit manually.",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
6
|
+
"$schema": { "type": "string" },
|
|
8
7
|
"data": {
|
|
9
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "array",
|
|
@@ -15,8 +14,5 @@
|
|
|
15
14
|
"description": "List of all Bible chapter IDs"
|
|
16
15
|
}
|
|
17
16
|
},
|
|
18
|
-
"required": [
|
|
19
|
-
"$schema",
|
|
20
|
-
"data"
|
|
21
|
-
]
|
|
17
|
+
"required": ["$schema", "data"]
|
|
22
18
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bibleChaptersList = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const bibleChaptersList_zod_1 = require("./bibleChaptersList.zod");
|
|
5
6
|
const data = require('./bibleChaptersList.json');
|
|
6
7
|
exports.bibleChaptersList = bibleChaptersList_zod_1.BibleChaptersList.parse(data.data);
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "This file is auto-generated by scripts/prep. Do not edit manually.",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
6
|
+
"$schema": { "type": "string" },
|
|
8
7
|
"data": {
|
|
9
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "object",
|
|
11
|
-
"propertyNames": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
10
|
+
"propertyNames": { "type": "string" },
|
|
14
11
|
"additionalProperties": {
|
|
15
12
|
"type": "object",
|
|
16
13
|
"properties": {
|
|
@@ -37,28 +34,15 @@
|
|
|
37
34
|
},
|
|
38
35
|
"bookNames": {
|
|
39
36
|
"type": "object",
|
|
40
|
-
"propertyNames": {
|
|
41
|
-
|
|
42
|
-
"pattern": "^[A-Z0-9]{3}$"
|
|
43
|
-
},
|
|
44
|
-
"additionalProperties": {
|
|
45
|
-
"type": "string"
|
|
46
|
-
}
|
|
37
|
+
"propertyNames": { "type": "string", "pattern": "^[A-Z0-9]{3}$" },
|
|
38
|
+
"additionalProperties": { "type": "string" }
|
|
47
39
|
}
|
|
48
40
|
},
|
|
49
|
-
"required": [
|
|
50
|
-
"text",
|
|
51
|
-
"audio",
|
|
52
|
-
"timings",
|
|
53
|
-
"bookNames"
|
|
54
|
-
],
|
|
41
|
+
"required": ["text", "audio", "timings", "bookNames"],
|
|
55
42
|
"additionalProperties": false
|
|
56
43
|
},
|
|
57
44
|
"description": "Consolidated bible data containing text chapters, audio chapters, timings, and book names for each translation. Entries can be testament IDs ('OT', 'NT'), book IDs (e.g., 'GEN') for complete books, or chapter IDs (e.g., 'GEN.1') for individual chapters."
|
|
58
45
|
}
|
|
59
46
|
},
|
|
60
|
-
"required": [
|
|
61
|
-
"$schema",
|
|
62
|
-
"data"
|
|
63
|
-
]
|
|
47
|
+
"required": ["$schema", "data"]
|
|
64
48
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bibleStatuses = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const bibleStatuses_zod_1 = require("./bibleStatuses.zod");
|
|
5
6
|
const data = require('./bibleStatuses.json');
|
|
6
7
|
exports.bibleStatuses = bibleStatuses_zod_1.BibleStatuses.parse(data.data);
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "This file is auto-generated by scripts/prep. Do not edit manually.",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
6
|
+
"$schema": { "type": "string" },
|
|
8
7
|
"data": {
|
|
9
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "array",
|
|
11
10
|
"items": {
|
|
12
11
|
"type": "object",
|
|
13
12
|
"properties": {
|
|
14
|
-
"bibleTextId": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
13
|
+
"bibleTextId": { "type": "string" },
|
|
17
14
|
"name": {
|
|
18
15
|
"type": "string",
|
|
19
16
|
"description": "The name of the bible translation in its own language."
|
|
@@ -62,29 +59,17 @@
|
|
|
62
59
|
"usx"
|
|
63
60
|
]
|
|
64
61
|
},
|
|
65
|
-
"sourceId": {
|
|
66
|
-
"type": "string"
|
|
67
|
-
}
|
|
62
|
+
"sourceId": { "type": "string" }
|
|
68
63
|
},
|
|
69
|
-
"required": [
|
|
70
|
-
"source"
|
|
71
|
-
],
|
|
64
|
+
"required": ["source"],
|
|
72
65
|
"additionalProperties": false,
|
|
73
66
|
"description": "Information about how to retrieve the text. Ideally, text is available on the DBL via API.Bible when the license is granted, but there are a few other options. We have access to translations available on BibleBrain as well as being able to parse USFX files. Some translations may be available on the YouVersion Platform (yvp). If none of these work, 'custom' can be used and some custom code added to leviathan to retrieve and parse the text."
|
|
74
67
|
}
|
|
75
68
|
},
|
|
76
|
-
"required": [
|
|
77
|
-
"bibleTextId",
|
|
78
|
-
"name",
|
|
79
|
-
"languageId",
|
|
80
|
-
"textSource"
|
|
81
|
-
],
|
|
69
|
+
"required": ["bibleTextId", "name", "languageId", "textSource"],
|
|
82
70
|
"additionalProperties": false
|
|
83
71
|
}
|
|
84
72
|
}
|
|
85
73
|
},
|
|
86
|
-
"required": [
|
|
87
|
-
"$schema",
|
|
88
|
-
"data"
|
|
89
|
-
]
|
|
74
|
+
"required": ["$schema", "data"]
|
|
90
75
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bibleTexts = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const bibleTexts_zod_1 = require("./bibleTexts.zod");
|
|
5
6
|
const data = require('./bibleTexts.json');
|
|
6
7
|
exports.bibleTexts = bibleTexts_zod_1.BibleTexts.parse(data.data);
|
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "This file is auto-generated by scripts/prep. Do not edit manually.",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
6
|
+
"$schema": { "type": "string" },
|
|
8
7
|
"data": {
|
|
9
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "array",
|
|
11
10
|
"items": {
|
|
12
11
|
"type": "object",
|
|
13
12
|
"properties": {
|
|
14
|
-
"appId": {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
"appIdCaps": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"pattern": "^[A-Z]*$"
|
|
21
|
-
},
|
|
22
|
-
"appName": {
|
|
23
|
-
"type": "string"
|
|
24
|
-
},
|
|
25
|
-
"color": {
|
|
26
|
-
"type": "string",
|
|
27
|
-
"pattern": "^#[0-9A-Fa-f]{6}$"
|
|
28
|
-
},
|
|
13
|
+
"appId": { "type": "string", "pattern": "^[a-z]*$" },
|
|
14
|
+
"appIdCaps": { "type": "string", "pattern": "^[A-Z]*$" },
|
|
15
|
+
"appName": { "type": "string" },
|
|
16
|
+
"color": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$" },
|
|
29
17
|
"icon": {
|
|
30
18
|
"type": "string",
|
|
31
19
|
"pattern": "^src\\/assets\\/clones\\/[A-Za-z\\-\\_]*\\.png$"
|
|
@@ -36,10 +24,7 @@
|
|
|
36
24
|
},
|
|
37
25
|
"languages": {
|
|
38
26
|
"type": "array",
|
|
39
|
-
"items": {
|
|
40
|
-
"type": "string",
|
|
41
|
-
"pattern": "^[a-z]{3}$"
|
|
42
|
-
}
|
|
27
|
+
"items": { "type": "string", "pattern": "^[a-z]{3}$" }
|
|
43
28
|
},
|
|
44
29
|
"linkAndroid": {
|
|
45
30
|
"type": "string",
|
|
@@ -69,8 +54,5 @@
|
|
|
69
54
|
}
|
|
70
55
|
}
|
|
71
56
|
},
|
|
72
|
-
"required": [
|
|
73
|
-
"$schema",
|
|
74
|
-
"data"
|
|
75
|
-
]
|
|
57
|
+
"required": ["$schema", "data"]
|
|
76
58
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.clones = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const clones_zod_1 = require("./clones.zod");
|
|
5
6
|
const data = require('./clones.json');
|
|
6
7
|
exports.clones = clones_zod_1.Clones.parse(data.data);
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
|
+
"description": "This file is auto-generated by scripts/prep. Do not edit manually.",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"type": "object",
|
|
4
5
|
"properties": {
|
|
5
|
-
"$schema": {
|
|
6
|
-
"type": "string"
|
|
7
|
-
},
|
|
6
|
+
"$schema": { "type": "string" },
|
|
8
7
|
"data": {
|
|
9
8
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
10
9
|
"type": "object",
|
|
11
|
-
"propertyNames": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"pattern": "^[A-Z]{2}$"
|
|
14
|
-
},
|
|
10
|
+
"propertyNames": { "type": "string", "pattern": "^[A-Z]{2}$" },
|
|
15
11
|
"additionalProperties": {
|
|
16
12
|
"type": "object",
|
|
17
13
|
"properties": {
|
|
@@ -56,10 +52,7 @@
|
|
|
56
52
|
"description": "Northeast longitude coordinate"
|
|
57
53
|
}
|
|
58
54
|
},
|
|
59
|
-
"required": [
|
|
60
|
-
"lat",
|
|
61
|
-
"lon"
|
|
62
|
-
],
|
|
55
|
+
"required": ["lat", "lon"],
|
|
63
56
|
"additionalProperties": false
|
|
64
57
|
},
|
|
65
58
|
"sw": {
|
|
@@ -78,33 +71,20 @@
|
|
|
78
71
|
"description": "Southwest longitude coordinate"
|
|
79
72
|
}
|
|
80
73
|
},
|
|
81
|
-
"required": [
|
|
82
|
-
"lat",
|
|
83
|
-
"lon"
|
|
84
|
-
],
|
|
74
|
+
"required": ["lat", "lon"],
|
|
85
75
|
"additionalProperties": false
|
|
86
76
|
}
|
|
87
77
|
},
|
|
88
|
-
"required": [
|
|
89
|
-
"ne",
|
|
90
|
-
"sw"
|
|
91
|
-
],
|
|
78
|
+
"required": ["ne", "sw"],
|
|
92
79
|
"additionalProperties": false,
|
|
93
80
|
"description": "Bounding box coordinates for the country"
|
|
94
81
|
}
|
|
95
82
|
},
|
|
96
|
-
"required": [
|
|
97
|
-
"name",
|
|
98
|
-
"areaId",
|
|
99
|
-
"boundingBox"
|
|
100
|
-
],
|
|
83
|
+
"required": ["name", "areaId", "boundingBox"],
|
|
101
84
|
"additionalProperties": false
|
|
102
85
|
},
|
|
103
86
|
"description": "A mapping of country codes to country information including name, area, and bounding box coordinates"
|
|
104
87
|
}
|
|
105
88
|
},
|
|
106
|
-
"required": [
|
|
107
|
-
"$schema",
|
|
108
|
-
"data"
|
|
109
|
-
]
|
|
89
|
+
"required": ["$schema", "data"]
|
|
110
90
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.countries = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const countries_zod_1 = require("./countries.zod");
|
|
5
6
|
const data = require('./countries.json');
|
|
6
7
|
exports.countries = countries_zod_1.Countries.parse(data.data);
|