waha-shared 1.0.265 → 1.0.267
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/assets/fonts/fonts.css +1 -1
- 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.json +11 -1
- package/dist/data/languageAssets/languageAssets.schema.json +5 -14
- package/dist/data/languages/index.js +1 -0
- package/dist/data/languages/languages.json +3 -1
- package/dist/data/languages/languages.schema.json +18 -76
- package/dist/data/mediaDurations/index.js +1 -0
- package/dist/data/mediaDurations/mediaDurations.json +11 -1
- 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.json +137 -2
- 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 +26 -12
- package/dist/data/translationsApp/index.js +1 -0
- package/dist/data/translationsApp/translationsApp.json +14566 -8
- package/dist/data/translationsApp/translationsApp.schema.json +328 -1086
- package/dist/data/translationsApp/translationsApp.zod.d.ts +357 -12
- package/dist/data/translationsApp/translationsApp.zod.js +32 -18
- 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 +12 -37
- package/dist/data/translationsSet/translationsSet.zod.js +1 -1
- 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/functions/scripturePassages.d.ts +24 -0
- package/dist/functions/scripturePassages.js +29 -4
- package/dist/types/analytics.d.ts +33 -13
- package/dist/types/articles.d.ts +28 -0
- package/dist/types/articles.js +5 -9
- package/dist/types/microLessons.d.ts +54 -3
- package/dist/types/microLessons.js +60 -26
- package/dist/types/users.d.ts +34 -41
- package/dist/types/users.js +3 -19
- package/dist/types/webContent.d.ts +16 -0
- package/dist/types/webContent.js +22 -1
- package/package.json +1 -1
|
@@ -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": "array",
|
|
16
13
|
"items": {
|
|
@@ -23,13 +20,8 @@
|
|
|
23
20
|
},
|
|
24
21
|
"lessonTitles": {
|
|
25
22
|
"type": "object",
|
|
26
|
-
"propertyNames": {
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
"additionalProperties": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"minLength": 1
|
|
32
|
-
},
|
|
23
|
+
"propertyNames": { "type": "string" },
|
|
24
|
+
"additionalProperties": { "type": "string", "minLength": 1 },
|
|
33
25
|
"description": "Mapping of lessonId to localized lesson title."
|
|
34
26
|
},
|
|
35
27
|
"pauseAndDiscuss": {
|
|
@@ -38,24 +30,14 @@
|
|
|
38
30
|
},
|
|
39
31
|
"sectionBodies": {
|
|
40
32
|
"type": "object",
|
|
41
|
-
"propertyNames": {
|
|
42
|
-
|
|
43
|
-
},
|
|
44
|
-
"additionalProperties": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"minLength": 1
|
|
47
|
-
},
|
|
33
|
+
"propertyNames": { "type": "string" },
|
|
34
|
+
"additionalProperties": { "type": "string", "minLength": 1 },
|
|
48
35
|
"description": "Mapping of sectionId to localized section body text."
|
|
49
36
|
},
|
|
50
37
|
"sectionHeaders": {
|
|
51
38
|
"type": "object",
|
|
52
|
-
"propertyNames": {
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
"additionalProperties": {
|
|
56
|
-
"type": "string",
|
|
57
|
-
"minLength": 1
|
|
58
|
-
},
|
|
39
|
+
"propertyNames": { "type": "string" },
|
|
40
|
+
"additionalProperties": { "type": "string", "minLength": 1 },
|
|
59
41
|
"description": "Mapping of sectionId to localized section header text."
|
|
60
42
|
},
|
|
61
43
|
"setDescription": {
|
|
@@ -73,20 +55,13 @@
|
|
|
73
55
|
"description": "Localized title for the set."
|
|
74
56
|
}
|
|
75
57
|
},
|
|
76
|
-
"required": [
|
|
77
|
-
"setId",
|
|
78
|
-
"lessonTitles",
|
|
79
|
-
"setTitle"
|
|
80
|
-
],
|
|
58
|
+
"required": ["setId", "lessonTitles", "setTitle"],
|
|
81
59
|
"additionalProperties": false
|
|
82
60
|
},
|
|
83
61
|
"description": "Array of translated sets for a given 3-letter language id (ISO-ish)."
|
|
84
62
|
},
|
|
85
|
-
"description": "Record of language ids to arrays of translated sets used by the app. Produced by scripts/
|
|
63
|
+
"description": "Record of language ids to arrays of translated sets used by the app. Produced by scripts/prep/combine.ts (setTranslations.json). Each set item merges metadata translation fields (setTitle, setDescription, lessonTitles, etc.) under a setId."
|
|
86
64
|
}
|
|
87
65
|
},
|
|
88
|
-
"required": [
|
|
89
|
-
"$schema",
|
|
90
|
-
"data"
|
|
91
|
-
]
|
|
66
|
+
"required": ["$schema", "data"]
|
|
92
67
|
}
|
|
@@ -33,4 +33,4 @@ exports.TranslationsSet = zod_1.z
|
|
|
33
33
|
setTitle: zod_1.z.string().min(1).describe('Localized title for the set.'),
|
|
34
34
|
}))
|
|
35
35
|
.describe('Array of translated sets for a given 3-letter language id (ISO-ish).'))
|
|
36
|
-
.describe('Record of language ids to arrays of translated sets used by the app. Produced by scripts/
|
|
36
|
+
.describe('Record of language ids to arrays of translated sets used by the app. Produced by scripts/prep/combine.ts (setTranslations.json). Each set item merges metadata translation fields (setTitle, setDescription, lessonTitles, etc.) under a setId.');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.translationsSolarSpeaker = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const translationsSolarSpeaker_zod_1 = require("./translationsSolarSpeaker.zod");
|
|
5
6
|
const data = require('./translationsSolarSpeaker.json');
|
|
6
7
|
exports.translationsSolarSpeaker = translationsSolarSpeaker_zod_1.TranslationsSolarSpeaker.parse(data.data);
|
|
@@ -1,187 +1,58 @@
|
|
|
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": {
|
|
17
|
-
"intro": {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
},
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
"minLength": 1
|
|
60
|
-
},
|
|
61
|
-
"lessons_009": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"minLength": 1
|
|
64
|
-
},
|
|
65
|
-
"lessons_010": {
|
|
66
|
-
"type": "string",
|
|
67
|
-
"minLength": 1
|
|
68
|
-
},
|
|
69
|
-
"lessons_011": {
|
|
70
|
-
"type": "string",
|
|
71
|
-
"minLength": 1
|
|
72
|
-
},
|
|
73
|
-
"lessons_012": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"minLength": 1
|
|
76
|
-
},
|
|
77
|
-
"lessons_013": {
|
|
78
|
-
"type": "string",
|
|
79
|
-
"minLength": 1
|
|
80
|
-
},
|
|
81
|
-
"lessons_014": {
|
|
82
|
-
"type": "string",
|
|
83
|
-
"minLength": 1
|
|
84
|
-
},
|
|
85
|
-
"lessons_015": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"minLength": 1
|
|
88
|
-
},
|
|
89
|
-
"lessons_016": {
|
|
90
|
-
"type": "string",
|
|
91
|
-
"minLength": 1
|
|
92
|
-
},
|
|
93
|
-
"lessons_017": {
|
|
94
|
-
"type": "string",
|
|
95
|
-
"minLength": 1
|
|
96
|
-
},
|
|
97
|
-
"lessons_018": {
|
|
98
|
-
"type": "string",
|
|
99
|
-
"minLength": 1
|
|
100
|
-
},
|
|
101
|
-
"lessons_019": {
|
|
102
|
-
"type": "string",
|
|
103
|
-
"minLength": 1
|
|
104
|
-
},
|
|
105
|
-
"lessons_020": {
|
|
106
|
-
"type": "string",
|
|
107
|
-
"minLength": 1
|
|
108
|
-
},
|
|
109
|
-
"lessons_021": {
|
|
110
|
-
"type": "string",
|
|
111
|
-
"minLength": 1
|
|
112
|
-
},
|
|
113
|
-
"lessons_022": {
|
|
114
|
-
"type": "string",
|
|
115
|
-
"minLength": 1
|
|
116
|
-
},
|
|
117
|
-
"lessons_023": {
|
|
118
|
-
"type": "string",
|
|
119
|
-
"minLength": 1
|
|
120
|
-
},
|
|
121
|
-
"lessons_024": {
|
|
122
|
-
"type": "string",
|
|
123
|
-
"minLength": 1
|
|
124
|
-
},
|
|
125
|
-
"lessons_025": {
|
|
126
|
-
"type": "string",
|
|
127
|
-
"minLength": 1
|
|
128
|
-
},
|
|
129
|
-
"lessons_026": {
|
|
130
|
-
"type": "string",
|
|
131
|
-
"minLength": 1
|
|
132
|
-
},
|
|
133
|
-
"lessons_027": {
|
|
134
|
-
"type": "string",
|
|
135
|
-
"minLength": 1
|
|
136
|
-
},
|
|
137
|
-
"lessons_028": {
|
|
138
|
-
"type": "string",
|
|
139
|
-
"minLength": 1
|
|
140
|
-
},
|
|
141
|
-
"lessons_029": {
|
|
142
|
-
"type": "string",
|
|
143
|
-
"minLength": 1
|
|
144
|
-
},
|
|
145
|
-
"lessons_030": {
|
|
146
|
-
"type": "string",
|
|
147
|
-
"minLength": 1
|
|
148
|
-
},
|
|
149
|
-
"lessons_031": {
|
|
150
|
-
"type": "string",
|
|
151
|
-
"minLength": 1
|
|
152
|
-
},
|
|
153
|
-
"lessons_032": {
|
|
154
|
-
"type": "string",
|
|
155
|
-
"minLength": 1
|
|
156
|
-
},
|
|
157
|
-
"lessons_033": {
|
|
158
|
-
"type": "string",
|
|
159
|
-
"minLength": 1
|
|
160
|
-
},
|
|
161
|
-
"lessons_034": {
|
|
162
|
-
"type": "string",
|
|
163
|
-
"minLength": 1
|
|
164
|
-
},
|
|
165
|
-
"lessons_035": {
|
|
166
|
-
"type": "string",
|
|
167
|
-
"minLength": 1
|
|
168
|
-
},
|
|
169
|
-
"lessons_036": {
|
|
170
|
-
"type": "string",
|
|
171
|
-
"minLength": 1
|
|
172
|
-
},
|
|
173
|
-
"lessons_037": {
|
|
174
|
-
"type": "string",
|
|
175
|
-
"minLength": 1
|
|
176
|
-
},
|
|
177
|
-
"lessons_038": {
|
|
178
|
-
"type": "string",
|
|
179
|
-
"minLength": 1
|
|
180
|
-
},
|
|
181
|
-
"lessons_039": {
|
|
182
|
-
"type": "string",
|
|
183
|
-
"minLength": 1
|
|
184
|
-
}
|
|
14
|
+
"intro": { "type": "string", "minLength": 1 },
|
|
15
|
+
"intro_foundations": { "type": "string", "minLength": 1 },
|
|
16
|
+
"intro_topics": { "type": "string", "minLength": 1 },
|
|
17
|
+
"lessons_001": { "type": "string", "minLength": 1 },
|
|
18
|
+
"lessons_002": { "type": "string", "minLength": 1 },
|
|
19
|
+
"lessons_003": { "type": "string", "minLength": 1 },
|
|
20
|
+
"lessons_004": { "type": "string", "minLength": 1 },
|
|
21
|
+
"lessons_005": { "type": "string", "minLength": 1 },
|
|
22
|
+
"lessons_006": { "type": "string", "minLength": 1 },
|
|
23
|
+
"lessons_007": { "type": "string", "minLength": 1 },
|
|
24
|
+
"lessons_008": { "type": "string", "minLength": 1 },
|
|
25
|
+
"lessons_009": { "type": "string", "minLength": 1 },
|
|
26
|
+
"lessons_010": { "type": "string", "minLength": 1 },
|
|
27
|
+
"lessons_011": { "type": "string", "minLength": 1 },
|
|
28
|
+
"lessons_012": { "type": "string", "minLength": 1 },
|
|
29
|
+
"lessons_013": { "type": "string", "minLength": 1 },
|
|
30
|
+
"lessons_014": { "type": "string", "minLength": 1 },
|
|
31
|
+
"lessons_015": { "type": "string", "minLength": 1 },
|
|
32
|
+
"lessons_016": { "type": "string", "minLength": 1 },
|
|
33
|
+
"lessons_017": { "type": "string", "minLength": 1 },
|
|
34
|
+
"lessons_018": { "type": "string", "minLength": 1 },
|
|
35
|
+
"lessons_019": { "type": "string", "minLength": 1 },
|
|
36
|
+
"lessons_020": { "type": "string", "minLength": 1 },
|
|
37
|
+
"lessons_021": { "type": "string", "minLength": 1 },
|
|
38
|
+
"lessons_022": { "type": "string", "minLength": 1 },
|
|
39
|
+
"lessons_023": { "type": "string", "minLength": 1 },
|
|
40
|
+
"lessons_024": { "type": "string", "minLength": 1 },
|
|
41
|
+
"lessons_025": { "type": "string", "minLength": 1 },
|
|
42
|
+
"lessons_026": { "type": "string", "minLength": 1 },
|
|
43
|
+
"lessons_027": { "type": "string", "minLength": 1 },
|
|
44
|
+
"lessons_028": { "type": "string", "minLength": 1 },
|
|
45
|
+
"lessons_029": { "type": "string", "minLength": 1 },
|
|
46
|
+
"lessons_030": { "type": "string", "minLength": 1 },
|
|
47
|
+
"lessons_031": { "type": "string", "minLength": 1 },
|
|
48
|
+
"lessons_032": { "type": "string", "minLength": 1 },
|
|
49
|
+
"lessons_033": { "type": "string", "minLength": 1 },
|
|
50
|
+
"lessons_034": { "type": "string", "minLength": 1 },
|
|
51
|
+
"lessons_035": { "type": "string", "minLength": 1 },
|
|
52
|
+
"lessons_036": { "type": "string", "minLength": 1 },
|
|
53
|
+
"lessons_037": { "type": "string", "minLength": 1 },
|
|
54
|
+
"lessons_038": { "type": "string", "minLength": 1 },
|
|
55
|
+
"lessons_039": { "type": "string", "minLength": 1 }
|
|
185
56
|
},
|
|
186
57
|
"required": [
|
|
187
58
|
"intro",
|
|
@@ -231,8 +102,5 @@
|
|
|
231
102
|
}
|
|
232
103
|
}
|
|
233
104
|
},
|
|
234
|
-
"required": [
|
|
235
|
-
"$schema",
|
|
236
|
-
"data"
|
|
237
|
-
]
|
|
105
|
+
"required": ["$schema", "data"]
|
|
238
106
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.translationsSpokenQuestion = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const translationsSpokenQuestion_zod_1 = require("./translationsSpokenQuestion.zod");
|
|
5
6
|
const data = require('./translationsSpokenQuestion.json');
|
|
6
7
|
exports.translationsSpokenQuestion = translationsSpokenQuestion_zod_1.TranslationsSpokenQuestion.parse(data.data);
|
|
@@ -1,21 +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": "object",
|
|
11
|
-
"propertyNames": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
10
|
+
"propertyNames": { "type": "string" },
|
|
14
11
|
"additionalProperties": {
|
|
15
12
|
"type": "object",
|
|
16
|
-
"propertyNames": {
|
|
17
|
-
"type": "string"
|
|
18
|
-
},
|
|
13
|
+
"propertyNames": { "type": "string" },
|
|
19
14
|
"additionalProperties": {
|
|
20
15
|
"type": "string",
|
|
21
16
|
"description": "Question text in the target language"
|
|
@@ -23,8 +18,5 @@
|
|
|
23
18
|
}
|
|
24
19
|
}
|
|
25
20
|
},
|
|
26
|
-
"required": [
|
|
27
|
-
"$schema",
|
|
28
|
-
"data"
|
|
29
|
-
]
|
|
21
|
+
"required": ["$schema", "data"]
|
|
30
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.youtubePlaylists = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const youtubePlaylists_zod_1 = require("./youtubePlaylists.zod");
|
|
5
6
|
const data = require('./youtubePlaylists.json');
|
|
6
7
|
exports.youtubePlaylists = youtubePlaylists_zod_1.YoutubePlaylists.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": "string",
|
|
16
13
|
"description": "YouTube playlist ID"
|
|
@@ -18,8 +15,5 @@
|
|
|
18
15
|
"description": "Maps language codes to YouTube playlist IDs"
|
|
19
16
|
}
|
|
20
17
|
},
|
|
21
|
-
"required": [
|
|
22
|
-
"$schema",
|
|
23
|
-
"data"
|
|
24
|
-
]
|
|
18
|
+
"required": ["$schema", "data"]
|
|
25
19
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.youtubeVideos = void 0;
|
|
4
|
+
// This file is auto-generated by scripts/prep. Do not edit manually.
|
|
4
5
|
const youtubeVideos_zod_1 = require("./youtubeVideos.zod");
|
|
5
6
|
const data = require('./youtubeVideos.json');
|
|
6
7
|
exports.youtubeVideos = youtubeVideos_zod_1.YoutubeVideos.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": "string",
|
|
16
13
|
"description": "YouTube video ID"
|
|
@@ -18,8 +15,5 @@
|
|
|
18
15
|
"description": "Maps video file names to YouTube video IDs"
|
|
19
16
|
}
|
|
20
17
|
},
|
|
21
|
-
"required": [
|
|
22
|
-
"$schema",
|
|
23
|
-
"data"
|
|
24
|
-
]
|
|
18
|
+
"required": ["$schema", "data"]
|
|
25
19
|
}
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
import { BibleChapter, BibleChapters } from '../types/bibleChapters';
|
|
2
2
|
import type { LanguageInfo } from '../types/languages';
|
|
3
3
|
import { ScripturePassage } from '../types/scripturePassages';
|
|
4
|
+
export interface VerseRangeInfo {
|
|
5
|
+
startBook: string;
|
|
6
|
+
startChapter: string;
|
|
7
|
+
startVerse: string;
|
|
8
|
+
endBook: string;
|
|
9
|
+
endChapter: string;
|
|
10
|
+
endVerse: string;
|
|
11
|
+
startChapterId: string;
|
|
12
|
+
endChapterId: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Parses a verse range string like "GEN.1.1-GEN.1.25" or "JHN.3.16" or "REV.22"
|
|
16
|
+
* Returns the start and end verse IDs
|
|
17
|
+
*/
|
|
18
|
+
export declare function parseVerseRange(passageId: string): VerseRangeInfo;
|
|
19
|
+
type GetChapterUrlParams = {
|
|
20
|
+
bibleAudioId: string;
|
|
21
|
+
passageId: string;
|
|
22
|
+
} | {
|
|
23
|
+
startBook: string;
|
|
24
|
+
startChapter: string;
|
|
25
|
+
bibleAudioId: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function getChapterUrl(params: GetChapterUrlParams): string;
|
|
4
28
|
/**
|
|
5
29
|
* Condenses a list of USFM passage IDs into a readable string format. Groups
|
|
6
30
|
* consecutive passages from the same book together.
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseVerseRange = parseVerseRange;
|
|
4
|
+
exports.getChapterUrl = getChapterUrl;
|
|
3
5
|
exports.getPassagesString = getPassagesString;
|
|
4
6
|
exports.getScripturePassage = getScripturePassage;
|
|
5
7
|
exports.getLessonScripture = getLessonScripture;
|
|
@@ -8,17 +10,24 @@ exports.verseToSuperscript = verseToSuperscript;
|
|
|
8
10
|
const bibleStatuses_1 = require("../data/bibleStatuses");
|
|
9
11
|
const languages_1 = require("../functions/languages");
|
|
10
12
|
const bibleChapters_1 = require("../types/bibleChapters");
|
|
13
|
+
const sets_1 = require("./sets");
|
|
11
14
|
/**
|
|
12
|
-
* Parses a verse range string like "GEN.1.1-GEN.1.25" or "JHN.3.16"
|
|
13
|
-
* start and end verse IDs
|
|
15
|
+
* Parses a verse range string like "GEN.1.1-GEN.1.25" or "JHN.3.16" or "REV.22"
|
|
16
|
+
* Returns the start and end verse IDs
|
|
14
17
|
*/
|
|
15
18
|
function parseVerseRange(passageId) {
|
|
16
19
|
// Handle single verse: "GEN.1.1" -> "GEN.1.1-GEN.1.1"
|
|
17
20
|
const parts = passageId.includes('-')
|
|
18
21
|
? passageId.split('-')
|
|
19
22
|
: [passageId, passageId];
|
|
20
|
-
const
|
|
21
|
-
const
|
|
23
|
+
const startParts = parts[0].split('.');
|
|
24
|
+
const endParts = parts[1].split('.');
|
|
25
|
+
const startBook = startParts[0];
|
|
26
|
+
const startChapter = startParts[1];
|
|
27
|
+
const startVerse = startParts.length > 2 ? startParts[2] : '1';
|
|
28
|
+
const endBook = endParts[0];
|
|
29
|
+
const endChapter = endParts[1];
|
|
30
|
+
const endVerse = endParts.length > 2 ? endParts[2] : '1';
|
|
22
31
|
return {
|
|
23
32
|
startBook,
|
|
24
33
|
startChapter,
|
|
@@ -26,8 +35,24 @@ function parseVerseRange(passageId) {
|
|
|
26
35
|
endBook,
|
|
27
36
|
endChapter,
|
|
28
37
|
endVerse,
|
|
38
|
+
startChapterId: `${startBook}.${startChapter}`,
|
|
39
|
+
endChapterId: `${endBook}.${endChapter}`,
|
|
29
40
|
};
|
|
30
41
|
}
|
|
42
|
+
function getChapterUrl(params) {
|
|
43
|
+
const startBook = 'startBook' in params
|
|
44
|
+
? params.startBook
|
|
45
|
+
: parseVerseRange(params.passageId).startBook;
|
|
46
|
+
const startChapter = 'startChapter' in params
|
|
47
|
+
? params.startChapter
|
|
48
|
+
: parseVerseRange(params.passageId).startChapter;
|
|
49
|
+
return (sets_1.firebaseUrl +
|
|
50
|
+
encodeURIComponent('audio_bibles' +
|
|
51
|
+
`/${params.bibleAudioId}` +
|
|
52
|
+
`/${startBook}` +
|
|
53
|
+
`/${startBook}_${startChapter.padStart(3, '0')}.mp3`) +
|
|
54
|
+
`?alt=media`);
|
|
55
|
+
}
|
|
31
56
|
/** Extracts verses from a chapter based on verse numbers */
|
|
32
57
|
function extractVersesFromChapter(chapter, startVerse, endVerse) {
|
|
33
58
|
const verses = chapter.verses.filter((verse) => {
|
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
import type { ArticleSession, BibleSession, WahaShareContent } from './users';
|
|
2
|
+
export interface BaseEventParams {
|
|
3
|
+
meetLanguageId: string;
|
|
4
|
+
appInterfaceLanguageId: string;
|
|
5
|
+
favorites: string;
|
|
6
|
+
pathname: string;
|
|
7
|
+
bible: string;
|
|
8
|
+
trainingUnlocked: boolean;
|
|
9
|
+
firestoreUserId?: string;
|
|
10
|
+
groupID?: string;
|
|
11
|
+
lessonID?: string;
|
|
12
|
+
setID?: string;
|
|
13
|
+
articleId?: string;
|
|
14
|
+
sessionID?: string;
|
|
15
|
+
clone?: string;
|
|
16
|
+
utm_campaign?: string;
|
|
17
|
+
utm_source?: string;
|
|
18
|
+
utm_content?: string;
|
|
19
|
+
utm_medium?: string;
|
|
20
|
+
utm_term?: string;
|
|
21
|
+
}
|
|
2
22
|
type Meeting = {
|
|
3
23
|
name: 'OpenPlayScreen';
|
|
4
24
|
payload: {
|
|
@@ -58,10 +78,16 @@ type Misc = {
|
|
|
58
78
|
payload: {
|
|
59
79
|
enabled: boolean;
|
|
60
80
|
};
|
|
81
|
+
} | {
|
|
82
|
+
name: 'StartOnboarding';
|
|
83
|
+
payload: {
|
|
84
|
+
usedOldOnboarding?: boolean;
|
|
85
|
+
};
|
|
61
86
|
} | {
|
|
62
87
|
name: 'FinishOnboarding';
|
|
63
88
|
payload: {
|
|
64
|
-
|
|
89
|
+
skippedFromPage: number | undefined;
|
|
90
|
+
usedOldOnboarding?: boolean;
|
|
65
91
|
};
|
|
66
92
|
} | {
|
|
67
93
|
name: 'ClickNotification';
|
|
@@ -128,23 +154,17 @@ type Bible = {
|
|
|
128
154
|
name: 'BibleSession';
|
|
129
155
|
payload: BibleSession;
|
|
130
156
|
};
|
|
131
|
-
type
|
|
132
|
-
name: '
|
|
133
|
-
payload: {
|
|
134
|
-
worksheetId: string;
|
|
135
|
-
didApply: boolean;
|
|
136
|
-
};
|
|
137
|
-
} | {
|
|
138
|
-
name: 'WorksheetStart';
|
|
157
|
+
type MicroLessons = {
|
|
158
|
+
name: 'MicroLessonStart';
|
|
139
159
|
payload: {
|
|
140
|
-
|
|
160
|
+
microLessonId: string;
|
|
141
161
|
};
|
|
142
162
|
} | {
|
|
143
|
-
name: '
|
|
163
|
+
name: 'MicroLessonComplete';
|
|
144
164
|
payload: {
|
|
145
|
-
|
|
165
|
+
microLessonId: string;
|
|
146
166
|
timeToCompletion: number;
|
|
147
167
|
};
|
|
148
168
|
};
|
|
149
|
-
export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note |
|
|
169
|
+
export type AnalyticsEvent = Meeting | Share | Misc | Article | Bible | Note | MicroLessons | Give;
|
|
150
170
|
export {};
|